@100mslive/roomkit-react 0.3.19-alpha.1 → 0.3.19-alpha.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. package/dist/{HLSView-MI7WHLIB.css → HLSView-3OIDEB7I.css} +3 -3
  2. package/dist/{HLSView-MI7WHLIB.css.map → HLSView-3OIDEB7I.css.map} +1 -1
  3. package/dist/{HLSView-6KUW45BA.js → HLSView-YQCSQSBU.js} +2 -2
  4. package/dist/Prebuilt/components/EndCallFeedback/Feedback.d.ts +2 -0
  5. package/dist/Prebuilt/components/EndCallFeedback/FeedbackForm.d.ts +28 -0
  6. package/dist/Prebuilt/components/EndCallFeedback/ThankyouView.d.ts +2 -0
  7. package/dist/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.d.ts +1 -0
  8. package/dist/{chunk-NC3PKPDD.js → chunk-SLFOQJ6P.js} +1180 -673
  9. package/dist/chunk-SLFOQJ6P.js.map +7 -0
  10. package/dist/index.cjs.css +2 -2
  11. package/dist/index.cjs.css.map +1 -1
  12. package/dist/index.cjs.js +1411 -872
  13. package/dist/index.cjs.js.map +4 -4
  14. package/dist/index.css +2 -2
  15. package/dist/index.css.map +1 -1
  16. package/dist/index.js +1 -1
  17. package/dist/meta.cjs.json +275 -33
  18. package/dist/meta.esbuild.json +285 -43
  19. package/package.json +8 -8
  20. package/src/Prebuilt/App.tsx +3 -0
  21. package/src/Prebuilt/AppStateContext.tsx +1 -2
  22. package/src/Prebuilt/Prebuilt.stories.tsx +1 -0
  23. package/src/Prebuilt/components/EndCallFeedback/Feedback.tsx +70 -0
  24. package/src/Prebuilt/components/EndCallFeedback/FeedbackForm.tsx +371 -0
  25. package/src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx +44 -0
  26. package/src/Prebuilt/components/LeaveScreen.tsx +2 -0
  27. package/src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts +1 -0
  28. package/src/Video/Video.tsx +1 -1
  29. package/dist/chunk-NC3PKPDD.js.map +0 -7
  30. /package/dist/{HLSView-6KUW45BA.js.map → HLSView-YQCSQSBU.js.map} +0 -0
@@ -34,8 +34,8 @@ var __objRest = (source, exclude) => {
34
34
  }
35
35
  return target;
36
36
  };
37
- var __esm = (fn, res) => function __init() {
38
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
37
+ var __esm = (fn2, res) => function __init() {
38
+ return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
39
39
  };
40
40
  var __commonJS = (cb, mod) => function __require() {
41
41
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
@@ -44,13 +44,13 @@ var __export = (target, all) => {
44
44
  for (var name in all)
45
45
  __defProp(target, name, { get: all[name], enumerable: true });
46
46
  };
47
- var __copyProps = (to2, from, except, desc) => {
47
+ var __copyProps = (to, from, except, desc) => {
48
48
  if (from && typeof from === "object" || typeof from === "function") {
49
49
  for (let key of __getOwnPropNames(from))
50
- if (!__hasOwnProp.call(to2, key) && key !== except)
51
- __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
50
+ if (!__hasOwnProp.call(to, key) && key !== except)
51
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
52
52
  }
53
- return to2;
53
+ return to;
54
54
  };
55
55
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
56
56
  // If the importer is in node compatibility mode or this is not an ESM
@@ -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_6cea5802-ce23-4c1e-97a2-70076471882b", 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.9-alpha.1", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 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.19-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_6cea5802-ce23-4c1e-97a2-70076471882b", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/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.19-alpha.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", 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: "592", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240811.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.6/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:1821", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.19-alpha.1", 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: "10472637880", 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: "4e76816ac6791d45d6099d5ecf81b9b730bbb9db", 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: "6790174dc36e26c3b589aa85cb1ac4b030a9489d29e85bee676df9058a07e5f4", 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--1724160935532-0.7852344527720556:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724160935303-0.6284305740362575:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724160908813-0.14105343274938886:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724160908629-0.46815752240870667:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/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.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_05bd7fdb-bfbd-48f1-a2d1-f746c00dddb2", INVOCATION_ID: "297196c99e914941bba85b21184f9190", 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: "644", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 92", 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.0.12077973", 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.19-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_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: "4e76816ac6791d45d6099d5ecf81b9b730bbb9db", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_6cea5802-ce23-4c1e-97a2-70076471882b", 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_6cea5802-ce23-4c1e-97a2-70076471882b", 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.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/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.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_6cea5802-ce23-4c1e-97a2-70076471882b" };
110
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_eee45824-212e-4509-b4ac-a06ec8d19d32", 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.9-alpha.3", 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.4 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.19-alpha.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_eee45824-212e-4509-b4ac-a06ec8d19d32", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/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.19-alpha.3", 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.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", 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: "592", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240825.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.6/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:17376", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.19-alpha.3", 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: "10612633702", 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: "8919738330a91f5d61f7b80ea15ea190ea80d564", 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: "30102a17ac4e4125615c7b45467171fe4dfc3ad5dd66de09cfdb0735404aea23", 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--1724924638317-0.7260196426287306:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724924638120-0.05624904757611571:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724924612646-0.3997085674690868:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724924612464-0.5366083812655351:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/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.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_7201bc1d-72e6-4026-ba1f-319d68d04b9a", INVOCATION_ID: "81675cc087004f02b5b793e5f39b7c96", 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: "646", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 297", 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.0.12077973", 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.19-alpha.3", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-alpha.3", 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: "8919738330a91f5d61f7b80ea15ea190ea80d564", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_eee45824-212e-4509-b4ac-a06ec8d19d32", 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_eee45824-212e-4509-b4ac-a06ec8d19d32", 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.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/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.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_eee45824-212e-4509-b4ac-a06ec8d19d32" };
111
111
  }
112
112
  });
113
113
 
@@ -2286,8 +2286,8 @@ var require_lodash = __commonJS({
2286
2286
  function createBind(func, bitmask, thisArg) {
2287
2287
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
2288
2288
  function wrapper() {
2289
- var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2290
- return fn.apply(isBind ? thisArg : this, arguments);
2289
+ var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2290
+ return fn2.apply(isBind ? thisArg : this, arguments);
2291
2291
  }
2292
2292
  return wrapper;
2293
2293
  }
@@ -2353,8 +2353,8 @@ var require_lodash = __commonJS({
2353
2353
  arity - length
2354
2354
  );
2355
2355
  }
2356
- var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2357
- return apply(fn, this, args);
2356
+ var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2357
+ return apply(fn2, this, args);
2358
2358
  }
2359
2359
  return wrapper;
2360
2360
  }
@@ -2442,7 +2442,7 @@ var require_lodash = __commonJS({
2442
2442
  arity - length
2443
2443
  );
2444
2444
  }
2445
- var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func;
2445
+ var thisBinding = isBind ? thisArg : this, fn2 = isBindKey ? thisBinding[func] : func;
2446
2446
  length = args.length;
2447
2447
  if (argPos) {
2448
2448
  args = reorder(args, argPos);
@@ -2453,9 +2453,9 @@ var require_lodash = __commonJS({
2453
2453
  args.length = ary2;
2454
2454
  }
2455
2455
  if (this && this !== root && this instanceof wrapper) {
2456
- fn = Ctor || createCtor(fn);
2456
+ fn2 = Ctor || createCtor(fn2);
2457
2457
  }
2458
- return fn.apply(thisBinding, args);
2458
+ return fn2.apply(thisBinding, args);
2459
2459
  }
2460
2460
  return wrapper;
2461
2461
  }
@@ -2512,14 +2512,14 @@ var require_lodash = __commonJS({
2512
2512
  function createPartial(func, bitmask, thisArg, partials) {
2513
2513
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
2514
2514
  function wrapper() {
2515
- var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2515
+ var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2516
2516
  while (++leftIndex < leftLength) {
2517
2517
  args[leftIndex] = partials[leftIndex];
2518
2518
  }
2519
2519
  while (argsLength--) {
2520
2520
  args[leftIndex++] = arguments[++argsIndex];
2521
2521
  }
2522
- return apply(fn, isBind ? thisArg : this, args);
2522
+ return apply(fn2, isBind ? thisArg : this, args);
2523
2523
  }
2524
2524
  return wrapper;
2525
2525
  }
@@ -4149,7 +4149,7 @@ var require_lodash = __commonJS({
4149
4149
  function eq(value, other) {
4150
4150
  return value === other || value !== value && other !== other;
4151
4151
  }
4152
- var gt2 = createRelationalOperation(baseGt);
4152
+ var gt = createRelationalOperation(baseGt);
4153
4153
  var gte = createRelationalOperation(function(value, other) {
4154
4154
  return value >= other;
4155
4155
  });
@@ -4291,7 +4291,7 @@ var require_lodash = __commonJS({
4291
4291
  function isWeakSet(value) {
4292
4292
  return isObjectLike(value) && baseGetTag(value) == weakSetTag;
4293
4293
  }
4294
- var lt = createRelationalOperation(baseLt);
4294
+ var lt2 = createRelationalOperation(baseLt);
4295
4295
  var lte = createRelationalOperation(function(value, other) {
4296
4296
  return value <= other;
4297
4297
  });
@@ -4373,7 +4373,7 @@ var require_lodash = __commonJS({
4373
4373
  var assignWith = createAssigner(function(object, source, srcIndex, customizer2) {
4374
4374
  copyObject(source, keys(source), object, customizer2);
4375
4375
  });
4376
- var at = flatRest(baseAt);
4376
+ var at2 = flatRest(baseAt);
4377
4377
  function create(prototype, properties) {
4378
4378
  var result2 = baseCreate(prototype);
4379
4379
  return properties == null ? result2 : baseAssign(result2, properties);
@@ -5107,7 +5107,7 @@ var require_lodash = __commonJS({
5107
5107
  lodash.assignIn = assignIn;
5108
5108
  lodash.assignInWith = assignInWith;
5109
5109
  lodash.assignWith = assignWith;
5110
- lodash.at = at;
5110
+ lodash.at = at2;
5111
5111
  lodash.before = before;
5112
5112
  lodash.bind = bind;
5113
5113
  lodash.bindAll = bindAll;
@@ -5288,7 +5288,7 @@ var require_lodash = __commonJS({
5288
5288
  lodash.forOwn = forOwn;
5289
5289
  lodash.forOwnRight = forOwnRight;
5290
5290
  lodash.get = get;
5291
- lodash.gt = gt2;
5291
+ lodash.gt = gt;
5292
5292
  lodash.gte = gte;
5293
5293
  lodash.has = has;
5294
5294
  lodash.hasIn = hasIn;
@@ -5341,7 +5341,7 @@ var require_lodash = __commonJS({
5341
5341
  lodash.lastIndexOf = lastIndexOf;
5342
5342
  lodash.lowerCase = lowerCase;
5343
5343
  lodash.lowerFirst = lowerFirst;
5344
- lodash.lt = lt;
5344
+ lodash.lt = lt2;
5345
5345
  lodash.lte = lte;
5346
5346
  lodash.max = max;
5347
5347
  lodash.maxBy = maxBy;
@@ -7671,12 +7671,12 @@ var require_sdp = __commonJS({
7671
7671
  return parsed;
7672
7672
  };
7673
7673
  SDPUtils2.writeRtpMap = function(codec) {
7674
- let pt = codec.payloadType;
7674
+ let pt2 = codec.payloadType;
7675
7675
  if (codec.preferredPayloadType !== void 0) {
7676
- pt = codec.preferredPayloadType;
7676
+ pt2 = codec.preferredPayloadType;
7677
7677
  }
7678
7678
  const channels = codec.channels || codec.numChannels || 1;
7679
- return "a=rtpmap:" + pt + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
7679
+ return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
7680
7680
  };
7681
7681
  SDPUtils2.parseExtmap = function(line) {
7682
7682
  const parts = line.substring(9).split(" ");
@@ -7702,9 +7702,9 @@ var require_sdp = __commonJS({
7702
7702
  };
7703
7703
  SDPUtils2.writeFmtp = function(codec) {
7704
7704
  let line = "";
7705
- let pt = codec.payloadType;
7705
+ let pt2 = codec.payloadType;
7706
7706
  if (codec.preferredPayloadType !== void 0) {
7707
- pt = codec.preferredPayloadType;
7707
+ pt2 = codec.preferredPayloadType;
7708
7708
  }
7709
7709
  if (codec.parameters && Object.keys(codec.parameters).length) {
7710
7710
  const params = [];
@@ -7715,7 +7715,7 @@ var require_sdp = __commonJS({
7715
7715
  params.push(param);
7716
7716
  }
7717
7717
  });
7718
- line += "a=fmtp:" + pt + " " + params.join(";") + "\r\n";
7718
+ line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
7719
7719
  }
7720
7720
  return line;
7721
7721
  };
@@ -7728,13 +7728,13 @@ var require_sdp = __commonJS({
7728
7728
  };
7729
7729
  SDPUtils2.writeRtcpFb = function(codec) {
7730
7730
  let lines = "";
7731
- let pt = codec.payloadType;
7731
+ let pt2 = codec.payloadType;
7732
7732
  if (codec.preferredPayloadType !== void 0) {
7733
- pt = codec.preferredPayloadType;
7733
+ pt2 = codec.preferredPayloadType;
7734
7734
  }
7735
7735
  if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
7736
7736
  codec.rtcpFeedback.forEach((fb) => {
7737
- lines += "a=rtcp-fb:" + pt + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
7737
+ lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
7738
7738
  });
7739
7739
  }
7740
7740
  return lines;
@@ -7862,21 +7862,21 @@ var require_sdp = __commonJS({
7862
7862
  const mline = lines[0].split(" ");
7863
7863
  description.profile = mline[2];
7864
7864
  for (let i = 3; i < mline.length; i++) {
7865
- const pt = mline[i];
7865
+ const pt2 = mline[i];
7866
7866
  const rtpmapline = SDPUtils2.matchPrefix(
7867
7867
  mediaSection,
7868
- "a=rtpmap:" + pt + " "
7868
+ "a=rtpmap:" + pt2 + " "
7869
7869
  )[0];
7870
7870
  if (rtpmapline) {
7871
7871
  const codec = SDPUtils2.parseRtpMap(rtpmapline);
7872
7872
  const fmtps = SDPUtils2.matchPrefix(
7873
7873
  mediaSection,
7874
- "a=fmtp:" + pt + " "
7874
+ "a=fmtp:" + pt2 + " "
7875
7875
  );
7876
7876
  codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
7877
7877
  codec.rtcpFeedback = SDPUtils2.matchPrefix(
7878
7878
  mediaSection,
7879
- "a=rtcp-fb:" + pt + " "
7879
+ "a=rtcp-fb:" + pt2 + " "
7880
7880
  ).map(SDPUtils2.parseRtcpFb);
7881
7881
  description.codecs.push(codec);
7882
7882
  switch (codec.name.toUpperCase()) {
@@ -8868,7 +8868,7 @@ var require_react_is_production_min = __commonJS({
8868
8868
  "use strict";
8869
8869
  init_define_process_env();
8870
8870
  var b2 = "function" === typeof Symbol && Symbol.for;
8871
- var c = b2 ? Symbol.for("react.element") : 60103;
8871
+ var c2 = b2 ? Symbol.for("react.element") : 60103;
8872
8872
  var d = b2 ? Symbol.for("react.portal") : 60106;
8873
8873
  var e = b2 ? Symbol.for("react.fragment") : 60107;
8874
8874
  var f2 = b2 ? Symbol.for("react.strict_mode") : 60108;
@@ -8890,7 +8890,7 @@ var require_react_is_production_min = __commonJS({
8890
8890
  if ("object" === typeof a2 && null !== a2) {
8891
8891
  var u = a2.$$typeof;
8892
8892
  switch (u) {
8893
- case c:
8893
+ case c2:
8894
8894
  switch (a2 = a2.type, a2) {
8895
8895
  case l2:
8896
8896
  case m:
@@ -8916,14 +8916,14 @@ var require_react_is_production_min = __commonJS({
8916
8916
  }
8917
8917
  }
8918
8918
  }
8919
- function A2(a2) {
8919
+ function A(a2) {
8920
8920
  return z2(a2) === m;
8921
8921
  }
8922
8922
  exports.AsyncMode = l2;
8923
8923
  exports.ConcurrentMode = m;
8924
8924
  exports.ContextConsumer = k;
8925
8925
  exports.ContextProvider = h2;
8926
- exports.Element = c;
8926
+ exports.Element = c2;
8927
8927
  exports.ForwardRef = n;
8928
8928
  exports.Fragment = e;
8929
8929
  exports.Lazy = t;
@@ -8933,9 +8933,9 @@ var require_react_is_production_min = __commonJS({
8933
8933
  exports.StrictMode = f2;
8934
8934
  exports.Suspense = p;
8935
8935
  exports.isAsyncMode = function(a2) {
8936
- return A2(a2) || z2(a2) === l2;
8936
+ return A(a2) || z2(a2) === l2;
8937
8937
  };
8938
- exports.isConcurrentMode = A2;
8938
+ exports.isConcurrentMode = A;
8939
8939
  exports.isContextConsumer = function(a2) {
8940
8940
  return z2(a2) === k;
8941
8941
  };
@@ -8943,7 +8943,7 @@ var require_react_is_production_min = __commonJS({
8943
8943
  return z2(a2) === h2;
8944
8944
  };
8945
8945
  exports.isElement = function(a2) {
8946
- return "object" === typeof a2 && null !== a2 && a2.$$typeof === c;
8946
+ return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
8947
8947
  };
8948
8948
  exports.isForwardRef = function(a2) {
8949
8949
  return z2(a2) === n;
@@ -9193,25 +9193,25 @@ var require_object_assign = __commonJS({
9193
9193
  }
9194
9194
  module.exports = shouldUseNative() ? Object.assign : function(target, source) {
9195
9195
  var from;
9196
- var to2 = toObject(target);
9196
+ var to = toObject(target);
9197
9197
  var symbols;
9198
9198
  for (var s = 1; s < arguments.length; s++) {
9199
9199
  from = Object(arguments[s]);
9200
9200
  for (var key in from) {
9201
9201
  if (hasOwnProperty.call(from, key)) {
9202
- to2[key] = from[key];
9202
+ to[key] = from[key];
9203
9203
  }
9204
9204
  }
9205
9205
  if (getOwnPropertySymbols) {
9206
9206
  symbols = getOwnPropertySymbols(from);
9207
9207
  for (var i = 0; i < symbols.length; i++) {
9208
9208
  if (propIsEnumerable.call(from, symbols[i])) {
9209
- to2[symbols[i]] = from[symbols[i]];
9209
+ to[symbols[i]] = from[symbols[i]];
9210
9210
  }
9211
9211
  }
9212
9212
  }
9213
9213
  }
9214
- return to2;
9214
+ return to;
9215
9215
  };
9216
9216
  }
9217
9217
  });
@@ -9359,7 +9359,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9359
9359
  shape: createShapeTypeChecker,
9360
9360
  exact: createStrictShapeTypeChecker
9361
9361
  };
9362
- function is2(x, y2) {
9362
+ function is(x, y2) {
9363
9363
  if (x === y2) {
9364
9364
  return x !== 0 || 1 / x === 1 / y2;
9365
9365
  } else {
@@ -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
  }
@@ -11884,7 +11884,7 @@ var StyledVideo = styled("video", {
11884
11884
  var Video = (_a7) => {
11885
11885
  var _b7 = _a7, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11886
11886
  const { videoRef } = useVideo({ trackId, attach });
11887
- return /* @__PURE__ */ React13.createElement(StyledVideo, __spreadValues({ autoPlay: true, muted: true, playsInline: true, controls: false, ref: videoRef }, props));
11887
+ return /* @__PURE__ */ React13.createElement(StyledVideo, __spreadValues({ ref: videoRef }, props));
11888
11888
  };
11889
11889
 
11890
11890
  // src/TileMenu/index.tsx
@@ -12911,13 +12911,13 @@ var Collapsible = {
12911
12911
 
12912
12912
  // src/Prebuilt/App.tsx
12913
12913
  init_define_process_env();
12914
- import React183, { useEffect as useEffect78, useRef as useRef33 } from "react";
12914
+ import React186, { useEffect as useEffect78, useRef as useRef33 } from "react";
12915
12915
  import { match as match16 } from "ts-pattern";
12916
12916
  import {
12917
12917
  HMSReactiveStore,
12918
12918
  HMSRoomProvider,
12919
12919
  selectIsConnectedToRoom as selectIsConnectedToRoom13,
12920
- useHMSActions as useHMSActions58,
12920
+ useHMSActions as useHMSActions59,
12921
12921
  useHMSStore as useHMSStore96
12922
12922
  } from "@100mslive/react-sdk";
12923
12923
 
@@ -13560,10 +13560,12 @@ function useRoomLayoutConferencingScreen() {
13560
13560
  };
13561
13561
  }
13562
13562
  function useRoomLayoutLeaveScreen() {
13563
+ var _a7, _b7;
13563
13564
  const screenProps = useRoomLayoutScreen({ screen: "leave" });
13564
13565
  const isLeaveScreenEnabled = !!screenProps;
13565
13566
  return {
13566
- isLeaveScreenEnabled
13567
+ isLeaveScreenEnabled,
13568
+ feedback: (_b7 = (_a7 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a7.elements) == null ? void 0 : _b7.feedback
13567
13569
  };
13568
13570
  }
13569
13571
  function useRoomLayoutHeader() {
@@ -14128,8 +14130,8 @@ var PipManager = class {
14128
14130
  /**
14129
14131
  * @private {boolean} on - whether pip is on/off
14130
14132
  */
14131
- this.callListeners = (on) => {
14132
- this.listeners.forEach((listener) => listener == null ? void 0 : listener(on));
14133
+ this.callListeners = (on2) => {
14134
+ this.listeners.forEach((listener) => listener == null ? void 0 : listener(on2));
14133
14135
  };
14134
14136
  this.reset();
14135
14137
  }
@@ -14494,7 +14496,7 @@ var useAppStateManager = () => {
14494
14496
  setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
14495
14497
  }).otherwise(() => {
14496
14498
  });
14497
- }, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave, hmsActions]);
14499
+ }, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave]);
14498
14500
  return { activeState, rejoin };
14499
14501
  };
14500
14502
 
@@ -19237,8 +19239,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
19237
19239
  // ../hms-video-store/dist/index.js
19238
19240
  var import_ua_parser_js = __toESM(require_ua_parser());
19239
19241
  var import_lodash3 = __toESM(require_lodash2());
19240
- import { v4 as lo } from "uuid";
19241
- import { v4 as no } from "uuid";
19242
+ import { v4 as mo } from "uuid";
19243
+ import { v4 as po } from "uuid";
19242
19244
 
19243
19245
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
19244
19246
  init_define_process_env();
@@ -19472,16 +19474,16 @@ function shimGetUserMedia(window2, browserDetails) {
19472
19474
  if (!navigator2.mediaDevices) {
19473
19475
  return;
19474
19476
  }
19475
- const constraintsToChrome_ = function(c) {
19476
- if (typeof c !== "object" || c.mandatory || c.optional) {
19477
- return c;
19477
+ const constraintsToChrome_ = function(c2) {
19478
+ if (typeof c2 !== "object" || c2.mandatory || c2.optional) {
19479
+ return c2;
19478
19480
  }
19479
19481
  const cc = {};
19480
- Object.keys(c).forEach((key) => {
19482
+ Object.keys(c2).forEach((key) => {
19481
19483
  if (key === "require" || key === "advanced" || key === "mediaSource") {
19482
19484
  return;
19483
19485
  }
19484
- const r = typeof c[key] === "object" ? c[key] : { ideal: c[key] };
19486
+ const r = typeof c2[key] === "object" ? c2[key] : { ideal: c2[key] };
19485
19487
  if (r.exact !== void 0 && typeof r.exact === "number") {
19486
19488
  r.min = r.max = r.exact;
19487
19489
  }
@@ -19517,8 +19519,8 @@ function shimGetUserMedia(window2, browserDetails) {
19517
19519
  });
19518
19520
  }
19519
19521
  });
19520
- if (c.advanced) {
19521
- cc.optional = (cc.optional || []).concat(c.advanced);
19522
+ if (c2.advanced) {
19523
+ cc.optional = (cc.optional || []).concat(c2.advanced);
19522
19524
  }
19523
19525
  return cc;
19524
19526
  };
@@ -19598,8 +19600,8 @@ function shimGetUserMedia(window2, browserDetails) {
19598
19600
  };
19599
19601
  };
19600
19602
  const getUserMedia_ = function(constraints, onSuccess, onError) {
19601
- shimConstraints_(constraints, (c) => {
19602
- navigator2.webkitGetUserMedia(c, onSuccess, (e) => {
19603
+ shimConstraints_(constraints, (c2) => {
19604
+ navigator2.webkitGetUserMedia(c2, onSuccess, (e) => {
19603
19605
  if (onError) {
19604
19606
  onError(shimError_(e));
19605
19607
  }
@@ -19610,8 +19612,8 @@ function shimGetUserMedia(window2, browserDetails) {
19610
19612
  if (navigator2.mediaDevices.getUserMedia) {
19611
19613
  const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
19612
19614
  navigator2.mediaDevices.getUserMedia = function(cs2) {
19613
- return shimConstraints_(cs2, (c) => origGetUserMedia(c).then((stream) => {
19614
- if (c.audio && !stream.getAudioTracks().length || c.video && !stream.getVideoTracks().length) {
19615
+ return shimConstraints_(cs2, (c2) => origGetUserMedia(c2).then((stream) => {
19616
+ if (c2.audio && !stream.getAudioTracks().length || c2.video && !stream.getVideoTracks().length) {
19615
19617
  stream.getTracks().forEach((track) => {
19616
19618
  track.stop();
19617
19619
  });
@@ -20279,13 +20281,13 @@ function shimGetUserMedia2(window2, browserDetails) {
20279
20281
  }
20280
20282
  };
20281
20283
  const nativeGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
20282
- navigator2.mediaDevices.getUserMedia = function(c) {
20283
- if (typeof c === "object" && typeof c.audio === "object") {
20284
- c = JSON.parse(JSON.stringify(c));
20285
- remap(c.audio, "autoGainControl", "mozAutoGainControl");
20286
- remap(c.audio, "noiseSuppression", "mozNoiseSuppression");
20284
+ navigator2.mediaDevices.getUserMedia = function(c2) {
20285
+ if (typeof c2 === "object" && typeof c2.audio === "object") {
20286
+ c2 = JSON.parse(JSON.stringify(c2));
20287
+ remap(c2.audio, "autoGainControl", "mozAutoGainControl");
20288
+ remap(c2.audio, "noiseSuppression", "mozNoiseSuppression");
20287
20289
  }
20288
- return nativeGetUserMedia(c);
20290
+ return nativeGetUserMedia(c2);
20289
20291
  };
20290
20292
  if (MediaStreamTrack && MediaStreamTrack.prototype.getSettings) {
20291
20293
  const nativeGetSettings = MediaStreamTrack.prototype.getSettings;
@@ -20298,13 +20300,13 @@ function shimGetUserMedia2(window2, browserDetails) {
20298
20300
  }
20299
20301
  if (MediaStreamTrack && MediaStreamTrack.prototype.applyConstraints) {
20300
20302
  const nativeApplyConstraints = MediaStreamTrack.prototype.applyConstraints;
20301
- MediaStreamTrack.prototype.applyConstraints = function(c) {
20302
- if (this.kind === "audio" && typeof c === "object") {
20303
- c = JSON.parse(JSON.stringify(c));
20304
- remap(c, "autoGainControl", "mozAutoGainControl");
20305
- remap(c, "noiseSuppression", "mozNoiseSuppression");
20303
+ MediaStreamTrack.prototype.applyConstraints = function(c2) {
20304
+ if (this.kind === "audio" && typeof c2 === "object") {
20305
+ c2 = JSON.parse(JSON.stringify(c2));
20306
+ remap(c2, "autoGainControl", "mozAutoGainControl");
20307
+ remap(c2, "noiseSuppression", "mozNoiseSuppression");
20306
20308
  }
20307
- return nativeApplyConstraints.apply(this, [c]);
20309
+ return nativeApplyConstraints.apply(this, [c2]);
20308
20310
  };
20309
20311
  }
20310
20312
  }
@@ -21335,88 +21337,104 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
21335
21337
 
21336
21338
  // ../hms-video-store/dist/index.js
21337
21339
  var import_lodash4 = __toESM(require_lodash2());
21338
- import { v4 as Mo } from "uuid";
21339
- import { v4 as Eo } from "uuid";
21340
- import { v4 as Ao } from "uuid";
21341
- import { EventEmitter2 as Ho } from "eventemitter2";
21342
- var qt = __toESM(require_lib());
21343
- import { EventEmitter2 as rn } from "eventemitter2";
21344
- import { v4 as cn } from "uuid";
21345
- import { EventEmitter2 as dn } from "eventemitter2";
21346
- import ln from "eventemitter2";
21347
- import { v4 as un } from "uuid";
21348
- import { v4 as mn } from "uuid";
21349
- var Ja = Object.defineProperty;
21350
- var Qa = Object.defineProperties;
21351
- var za = Object.getOwnPropertyDescriptors;
21352
- var ei = Object.getOwnPropertySymbols;
21353
- var as = Object.prototype.hasOwnProperty;
21354
- var os = Object.prototype.propertyIsEnumerable;
21355
- var ss = (a2, e, t) => e in a2 ? Ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21340
+ import { v4 as Po } from "uuid";
21341
+ import { v4 as Ro } from "uuid";
21342
+ import { v4 as wo } from "uuid";
21343
+ import { EventEmitter2 as Do } from "eventemitter2";
21344
+ var jt = __toESM(require_lib());
21345
+ import { EventEmitter2 as nn } from "eventemitter2";
21346
+ import { v4 as pn } from "uuid";
21347
+ import { EventEmitter2 as hn } from "eventemitter2";
21348
+ import mn from "eventemitter2";
21349
+ import { v4 as Sn } from "uuid";
21350
+ import { v4 as fn } from "uuid";
21351
+ var Xa = Object.defineProperty;
21352
+ var Za = Object.defineProperties;
21353
+ var eo = Object.getOwnPropertyDescriptors;
21354
+ var ti = Object.getOwnPropertySymbols;
21355
+ var ns = Object.prototype.hasOwnProperty;
21356
+ var cs = Object.prototype.propertyIsEnumerable;
21357
+ var os = (a2, e, t) => e in a2 ? Xa(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21356
21358
  var h = (a2, e) => {
21357
21359
  for (var t in e || (e = {}))
21358
- as.call(e, t) && ss(a2, t, e[t]);
21359
- if (ei)
21360
- for (var t of ei(e))
21361
- os.call(e, t) && ss(a2, t, e[t]);
21360
+ ns.call(e, t) && os(a2, t, e[t]);
21361
+ if (ti)
21362
+ for (var t of ti(e))
21363
+ cs.call(e, t) && os(a2, t, e[t]);
21362
21364
  return a2;
21363
21365
  };
21364
- var M = (a2, e) => Qa(a2, za(e));
21365
- var mr = (a2, e) => {
21366
+ var M = (a2, e) => Za(a2, eo(e));
21367
+ var gr = (a2, e) => {
21366
21368
  var t = {};
21367
21369
  for (var i in a2)
21368
- as.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21369
- if (a2 != null && ei)
21370
- for (var i of ei(a2))
21371
- e.indexOf(i) < 0 && os.call(a2, i) && (t[i] = a2[i]);
21370
+ ns.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21371
+ if (a2 != null && ti)
21372
+ for (var i of ti(a2))
21373
+ e.indexOf(i) < 0 && cs.call(a2, i) && (t[i] = a2[i]);
21372
21374
  return t;
21373
21375
  };
21374
- var Za = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21375
- var vr = Za((Hc, co) => {
21376
- co.exports = { version: "0.12.19-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
21376
+ var ro = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21377
+ var c = (a2, e, t) => new Promise((i, r) => {
21378
+ var s = (d) => {
21379
+ try {
21380
+ n(t.next(d));
21381
+ } catch (u) {
21382
+ r(u);
21383
+ }
21384
+ }, o = (d) => {
21385
+ try {
21386
+ n(t.throw(d));
21387
+ } catch (u) {
21388
+ r(u);
21389
+ }
21390
+ }, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
21391
+ n((t = t.apply(a2, e)).next());
21392
+ });
21393
+ var yr = ro((Dc, ho) => {
21394
+ ho.exports = { version: "0.12.19-alpha.3", 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"] };
21377
21395
  });
21378
- var Sr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Sr || {});
21379
- var eo = ((e) => (e.CHAT = "chat", e))(eo || {});
21380
- var ns = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ns || {});
21381
- var gr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(gr || {});
21382
- var cs = ((t) => (t.audio = "audio", t.video = "video", t))(cs || {});
21383
- function Be(a2, e) {
21396
+ var Tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Tr || {});
21397
+ var so = ((e) => (e.CHAT = "chat", e))(so || {});
21398
+ var ds = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ds || {});
21399
+ var fr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(fr || {});
21400
+ var ls = ((t) => (t.audio = "audio", t.video = "video", t))(ls || {});
21401
+ function Ue(a2, e) {
21384
21402
  let t, i;
21385
21403
  if (e)
21386
21404
  for (let r of e.auxiliaryTracks) {
21387
21405
  let s = a2[r];
21388
- to(s) && (i = ht(s) ? s : i, t = mt(s) ? s : t);
21406
+ ao(s) && (i = pt(s) ? s : i, t = ht(s) ? s : t);
21389
21407
  }
21390
21408
  return { video: t, audio: i };
21391
21409
  }
21392
- function ht(a2) {
21410
+ function pt(a2) {
21393
21411
  return a2 && a2.type === "audio";
21394
21412
  }
21395
- function mt(a2) {
21413
+ function ht(a2) {
21396
21414
  return a2 && a2.type === "video";
21397
21415
  }
21398
- function to(a2) {
21416
+ function ao(a2) {
21399
21417
  return a2 && a2.source === "screen";
21400
21418
  }
21401
- function ri(a2) {
21419
+ function si(a2) {
21402
21420
  return a2 && a2.source === "audioplaylist";
21403
21421
  }
21404
- function St(a2) {
21422
+ function mt(a2) {
21405
21423
  return a2 && a2.source === "videoplaylist";
21406
21424
  }
21407
- function ds(a2) {
21425
+ function us(a2) {
21408
21426
  return a2 ? !!(a2 != null && a2.degraded) : false;
21409
21427
  }
21410
- function Je(a2, e) {
21428
+ function je(a2, e) {
21411
21429
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21412
21430
  }
21413
- function gt(a2) {
21431
+ function St(a2) {
21414
21432
  var r;
21415
21433
  let e = false, t = false, i = false;
21416
21434
  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 };
21417
21435
  }
21418
- var us = ((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))(us || {});
21419
- var io = typeof window != "undefined" && typeof window.expect != "undefined";
21436
+ var hs = ((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))(hs || {});
21437
+ var oo = typeof window != "undefined" && typeof window.expect != "undefined";
21420
21438
  var l = class {
21421
21439
  static v(e, ...t) {
21422
21440
  this.log(0, e, ...t);
@@ -21482,26 +21500,29 @@ var l = class {
21482
21500
  }
21483
21501
  }
21484
21502
  };
21485
- l.level = io ? 7 : 0;
21486
- var ve = new import_ua_parser_js.UAParser();
21503
+ l.level = oo ? 7 : 0;
21504
+ var he = new import_ua_parser_js.UAParser();
21487
21505
  var B = typeof window != "undefined";
21488
- var ps;
21489
- var Ve = typeof window == "undefined" && !((ps = ve.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
21490
- var so = () => !Ve;
21491
- var rc = so();
21492
- var hs;
21493
21506
  var ms;
21494
- var Ts = ((ms = (hs = ve.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "firefox";
21495
- var fs = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(fs || {});
21496
- function ao() {
21507
+ var Be = typeof window == "undefined" && !((ms = he.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
21508
+ var co = () => !Be;
21509
+ var nc = co();
21510
+ var Ss;
21511
+ var gs;
21512
+ var ys = ((gs = (Ss = he.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase()) === "safari";
21513
+ var Ts;
21514
+ var fs;
21515
+ var ks = ((fs = (Ts = he.getBrowser()) == null ? void 0 : Ts.name) == null ? void 0 : fs.toLowerCase()) === "firefox";
21516
+ var Es = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Es || {});
21517
+ function lo() {
21497
21518
  if (B && window) {
21498
21519
  let a2 = window.location.hostname;
21499
21520
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21500
21521
  }
21501
21522
  return "CUSTOM";
21502
21523
  }
21503
- var ze = ao();
21504
- var E = { 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 }, 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 } };
21524
+ var Qe = lo();
21525
+ 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 }, 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 } };
21505
21526
  var f = class a extends Error {
21506
21527
  constructor(t, i, r, s, o, n = false) {
21507
21528
  super(s);
@@ -21531,99 +21552,99 @@ var f = class a extends Error {
21531
21552
  }`;
21532
21553
  }
21533
21554
  };
21534
- var oo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21555
+ var uo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21535
21556
  var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21536
- return new f(E.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21557
+ return new f(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21537
21558
  }, WebSocketConnectionLost(a2, e = "") {
21538
- return new f(E.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21559
+ return new f(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21539
21560
  }, AbnormalClose(a2, e = "") {
21540
- return new f(E.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21561
+ return new f(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21541
21562
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
21542
21563
  return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
21543
21564
  }, EndpointUnreachable(a2, e = "") {
21544
- return new f(E.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21565
+ return new f(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21545
21566
  }, InvalidTokenFormat(a2, e = "") {
21546
- return new f(E.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21567
+ return new f(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21547
21568
  }, InitConfigNotAvailable(a2, e = "") {
21548
- return new f(E.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21569
+ return new f(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21549
21570
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21550
- return new f(E.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21571
+ return new f(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21551
21572
  }, CantAccessCaptureDevice(a2, e, t = "") {
21552
- return new f(E.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21573
+ return new f(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21553
21574
  }, DeviceNotAvailable(a2, e, t = "") {
21554
- return new f(E.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21575
+ return new f(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21555
21576
  }, DeviceInUse(a2, e, t = "") {
21556
- return new f(E.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21577
+ return new f(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21557
21578
  }, DeviceLostMidway(a2, e, t = "") {
21558
- return new f(E.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21579
+ return new f(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21559
21580
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21560
- return new f(E.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21581
+ return new f(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21561
21582
  }, InvalidVideoSettings(a2, e = "") {
21562
- return new f(E.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21583
+ return new f(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21563
21584
  }, AutoplayBlocked(a2, e = "") {
21564
- return new f(E.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21585
+ return new f(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21565
21586
  }, CodecChangeNotPermitted(a2, e = "") {
21566
- return new f(E.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21587
+ return new f(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21567
21588
  }, OverConstrained(a2, e, t = "") {
21568
- return new f(E.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21589
+ return new f(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21569
21590
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21570
- return new f(E.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21591
+ return new f(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21571
21592
  }, SystemDeniedPermission(a2, e, t = "") {
21572
- return new f(E.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21593
+ return new f(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21573
21594
  }, CurrentTabNotShared() {
21574
- return new f(E.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");
21595
+ return new f(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");
21575
21596
  }, AudioPlaybackError(a2) {
21576
- return new f(E.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21597
+ return new f(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21577
21598
  }, SelectedDeviceMissing(a2) {
21578
- return new f(E.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21599
+ return new f(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21579
21600
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21580
- return new f(E.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21601
+ return new f(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21581
21602
  }, CreateAnswerFailed(a2, e = "") {
21582
- return new f(E.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21603
+ return new f(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21583
21604
  }, SetLocalDescriptionFailed(a2, e = "") {
21584
- return new f(E.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21605
+ return new f(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21585
21606
  }, SetRemoteDescriptionFailed(a2, e = "") {
21586
- return new f(E.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21607
+ return new f(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21587
21608
  }, ICEFailure(a2, e = "", t = false) {
21588
- return new f(E.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21609
+ return new f(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21589
21610
  }, ICEDisconnected(a2, e = "") {
21590
- return new f(E.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21611
+ return new f(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21591
21612
  }, StatsFailed(a2, e = "") {
21592
- return new f(E.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21613
+ return new f(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21593
21614
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21594
- return new f(a2, "ServerErrors", e, t, t, oo.includes(e));
21615
+ return new f(a2, "ServerErrors", e, t, t, uo.includes(e));
21595
21616
  }, AlreadyJoined(a2, e = "") {
21596
- return new f(E.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21617
+ return new f(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21597
21618
  }, CannotJoinPreviewInProgress(a2, e = "") {
21598
- return new f(E.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21619
+ return new f(P4.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21599
21620
  } }, GenericErrors: { NotConnected(a2, e = "") {
21600
- return new f(E.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21621
+ return new f(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21601
21622
  }, Signalling(a2, e) {
21602
- return new f(E.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21623
+ return new f(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21603
21624
  }, Unknown(a2, e) {
21604
- return new f(E.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21625
+ return new f(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21605
21626
  }, NotReady(a2, e = "") {
21606
- return new f(E.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21627
+ return new f(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21607
21628
  }, JsonParsingFailed(a2, e, t = "") {
21608
- return new f(E.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21629
+ return new f(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21609
21630
  }, TrackMetadataMissing(a2, e = "") {
21610
- return new f(E.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21631
+ return new f(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21611
21632
  }, RTCTrackMissing(a2, e = "") {
21612
- return new f(E.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21633
+ return new f(P4.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21613
21634
  }, PeerMetadataMissing(a2, e = "") {
21614
- return new f(E.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21635
+ return new f(P4.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21615
21636
  }, ValidationFailed(a2, e) {
21616
- return new f(E.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21637
+ return new f(P4.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21617
21638
  }, InvalidRole(a2, e) {
21618
- return new f(E.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21639
+ return new f(P4.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21619
21640
  }, PreviewAlreadyInProgress(a2, e = "") {
21620
- return new f(E.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21641
+ return new f(P4.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21621
21642
  }, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
21622
- return new f(E.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21643
+ return new f(P4.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21623
21644
  }, MissingMediaDevices() {
21624
- return new f(E.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
21645
+ return new f(P4.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
21625
21646
  }, MissingRTCPeerConnection() {
21626
- return new f(E.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
21647
+ return new f(P4.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
21627
21648
  } }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
21628
21649
  return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
21629
21650
  }, InitFailed(a2, e = "") {
@@ -21635,11 +21656,11 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21635
21656
  }, DeviceNotSupported(a2, e = "") {
21636
21657
  return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
21637
21658
  } }, PlaylistErrors: { NoEntryToPlay(a2, e) {
21638
- return new f(E.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21659
+ return new f(P4.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21639
21660
  }, NoEntryPlaying(a2, e) {
21640
- return new f(E.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21661
+ return new f(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21641
21662
  } } };
21642
- var fr = class {
21663
+ var Mr = class {
21643
21664
  constructor() {
21644
21665
  this.valuesMap = /* @__PURE__ */ new Map();
21645
21666
  }
@@ -21664,21 +21685,21 @@ var fr = class {
21664
21685
  return this.valuesMap.size;
21665
21686
  }
21666
21687
  };
21667
- var vs = () => {
21688
+ var Ps = () => {
21668
21689
  try {
21669
- B && !localStorage && (window.localStorage = new fr());
21690
+ B && !localStorage && (window.localStorage = new Mr());
21670
21691
  } catch (a2) {
21671
21692
  l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21672
21693
  }
21673
21694
  };
21674
- var he = class {
21695
+ var me = class {
21675
21696
  constructor(e) {
21676
21697
  this.key = e;
21677
21698
  this.storage = null;
21678
21699
  }
21679
21700
  getStorage() {
21680
21701
  try {
21681
- return B && !this.storage && (vs(), this.storage = window.localStorage), this.storage;
21702
+ return B && !this.storage && (Ps(), this.storage = window.localStorage), this.storage;
21682
21703
  } catch (e) {
21683
21704
  return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21684
21705
  }
@@ -21698,32 +21719,32 @@ var he = class {
21698
21719
  (e = this.getStorage()) == null || e.removeItem(this.key);
21699
21720
  }
21700
21721
  };
21701
- var Ms = () => {
21702
- let a2, e = new he("hms-analytics-deviceId"), t = e.get();
21703
- return t ? a2 = t : (a2 = no(), e.set(a2)), a2;
21722
+ var ai = () => {
21723
+ let a2, e = new me("hms-analytics-deviceId"), t = e.get();
21724
+ return t ? a2 = t : (a2 = po(), e.set(a2)), a2;
21704
21725
  };
21705
21726
  function ne(a2) {
21706
21727
  return a2 != null;
21707
21728
  }
21708
- var ks = vr().version;
21729
+ var Is = yr().version;
21709
21730
  function vt(a2 = "prod", e) {
21710
- let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21711
- if (Ve)
21712
- return Ps({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ks, 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 });
21713
- let r = ve.getOS(), s = ve.getDevice(), o = ve.getBrowser(), n = Mr(`web_${r.name}`), d = r.version || "", u = Mr(`${o.name}_${o.version}`), p = u;
21714
- return s.type && (p = `${Mr(`${s.vendor}_${s.type}`)}/${u}`), Ps({ os: n, os_version: d, sdk: t, sdk_version: ks, 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 });
21731
+ let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21732
+ if (Be)
21733
+ return As({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Is, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21734
+ let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = kr(`web_${r.name}`), d = r.version || "", u = kr(`${o.name}_${o.version}`), p = u;
21735
+ return s.type && (p = `${kr(`${s.vendor}_${s.type}`)}/${u}`), As({ os: n, os_version: d, sdk: t, sdk_version: Is, device_model: p, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21715
21736
  }
21716
- function Mr(a2) {
21737
+ function kr(a2) {
21717
21738
  return a2.replace(/ /g, "_");
21718
21739
  }
21719
- var Ps = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21740
+ var As = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21720
21741
  var H = class {
21721
21742
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21722
21743
  this.metadata = { peer: {}, userAgent: vt() };
21723
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = lo(), this.device_id = Ms();
21744
+ 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 = ai();
21724
21745
  }
21725
21746
  toSignalParams() {
21726
- return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21747
+ return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21727
21748
  }
21728
21749
  };
21729
21750
  var y = class {
@@ -21736,12 +21757,12 @@ var y = class {
21736
21757
  return new H({ name: i, level: r, properties: s });
21737
21758
  }
21738
21759
  static preview(i) {
21739
- var r = i, { error: e } = r, t = mr(r, ["error"]);
21760
+ var r = i, { error: e } = r, t = gr(r, ["error"]);
21740
21761
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21741
21762
  return new H({ name: s, level: o, properties: n });
21742
21763
  }
21743
21764
  static join(i) {
21744
- var r = i, { error: e } = r, t = mr(r, ["error"]);
21765
+ var r = i, { error: e } = r, t = gr(r, ["error"]);
21745
21766
  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);
21746
21767
  return new H({ name: s, level: o, properties: n });
21747
21768
  }
@@ -21811,8 +21832,8 @@ var y = class {
21811
21832
  static krispStop() {
21812
21833
  return new H({ name: "krisp.stop", level: 1 });
21813
21834
  }
21814
- static interruption(e, t, i) {
21815
- return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ type: t }, i) });
21835
+ static interruption({ started: e, type: t, reason: i, deviceInfo: r }) {
21836
+ return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ reason: i, type: t }, r) });
21816
21837
  }
21817
21838
  static eventNameFor(e, t) {
21818
21839
  return `${e}.${t ? "success" : "failed"}`;
@@ -21826,9 +21847,9 @@ var y = class {
21826
21847
  }
21827
21848
  };
21828
21849
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21829
- var yr = class {
21850
+ var Er = class {
21830
21851
  constructor() {
21831
- this.storage = new he("hms-device-selection");
21852
+ this.storage = new me("hms-device-selection");
21832
21853
  this.remember = false;
21833
21854
  this.TAG = "[HMSDeviceStorage]";
21834
21855
  }
@@ -21860,10 +21881,10 @@ var yr = class {
21860
21881
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
21861
21882
  }
21862
21883
  };
21863
- var J = new yr();
21864
- var kr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(kr || {});
21865
- var Pr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Pr || {});
21866
- function oi(a2, e = 300) {
21884
+ var J = new Er();
21885
+ var Pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Pr || {});
21886
+ var br = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(br || {});
21887
+ function ci(a2, e = 300) {
21867
21888
  let t;
21868
21889
  return function(...i) {
21869
21890
  clearTimeout(t), t = void 0;
@@ -21873,15 +21894,15 @@ function oi(a2, e = 300) {
21873
21894
  }, e);
21874
21895
  };
21875
21896
  }
21876
- var Ir = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ir || {});
21877
- var Rs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Rs || {});
21878
- var As = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(As || {});
21879
- var Hs = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Hs || {});
21880
- var Cs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Cs || {});
21881
- var Ls = ((e) => (e.CAPTION = "caption", e))(Ls || {});
21882
- var Rr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Rr || {});
21883
- var ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(ws || {});
21884
- var Ar = class {
21897
+ var Rr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Rr || {});
21898
+ var Ls = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Ls || {});
21899
+ var ws = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(ws || {});
21900
+ var Ds = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Ds || {});
21901
+ var _s = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(_s || {});
21902
+ var Ns = ((e) => (e.CAPTION = "caption", e))(Ns || {});
21903
+ var Hr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Hr || {});
21904
+ var Os = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Os || {});
21905
+ var Cr = class {
21885
21906
  constructor() {
21886
21907
  this.TAG = "[HMSIntersectionObserverWrapper]";
21887
21908
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21908,8 +21929,8 @@ var Ar = class {
21908
21929
  return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21909
21930
  }
21910
21931
  };
21911
- var Os = new Ar();
21912
- var Hr = class {
21932
+ var Vs = new Cr();
21933
+ var Lr = class {
21913
21934
  constructor() {
21914
21935
  this.TAG = "[HMSResizeObserverWrapper]";
21915
21936
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21922,7 +21943,7 @@ var Hr = class {
21922
21943
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
21923
21944
  };
21924
21945
  this.createObserver = () => {
21925
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(oi(this.handleResize, 300)));
21946
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(ci(this.handleResize, 300)));
21926
21947
  };
21927
21948
  this.handleResize = (e) => {
21928
21949
  var t;
@@ -21936,43 +21957,43 @@ var Hr = class {
21936
21957
  return e || l.w(this.TAG, "Resize Observer is not supported"), e;
21937
21958
  }
21938
21959
  };
21939
- var xs = new Hr();
21940
- var Cr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Cr || {});
21941
- var Lr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Lr || {});
21942
- var Vs = "https://event.100ms.live/v2/client/report";
21943
- var Fs = "https://event-nonprod.100ms.live/v2/client/report";
21944
- var Et = Math.pow(2, 31) - 1;
21945
- var st = class {
21960
+ var Fs = new Lr();
21961
+ var wr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(wr || {});
21962
+ var Dr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Dr || {});
21963
+ var $s = "https://event.100ms.live/v2/client/report";
21964
+ var Ks = "https://event-nonprod.100ms.live/v2/client/report";
21965
+ var Pt = Math.pow(2, 31) - 1;
21966
+ var rt = class {
21946
21967
  };
21947
- st.makePeerId = () => Ao();
21968
+ rt.makePeerId = () => wo();
21948
21969
  var V = (a2) => a2.room;
21949
- var Co = (a2) => a2.errors;
21950
- var qh = createSelector(Co, (a2) => a2.length === 0 ? null : a2.at(-1));
21951
- var jh = createSelector(V, (a2) => a2.id);
21970
+ var _o = (a2) => a2.errors;
21971
+ var Xh = createSelector(_o, (a2) => a2.length === 0 ? null : a2.at(-1));
21972
+ var Zh = createSelector(V, (a2) => a2.id);
21952
21973
  var K = (a2) => a2.peers;
21953
- var fi = (a2) => a2.messages.byID;
21954
- var zs = (a2) => a2.messages.allIDs;
21974
+ var Mi = (a2) => a2.messages.byID;
21975
+ var ea = (a2) => a2.messages.allIDs;
21955
21976
  var O = (a2) => a2.tracks;
21956
- var Vr = (a2) => a2.appData;
21957
- var Lo = (a2) => a2.speakers;
21958
- var xe = createSelector([V], (a2) => a2 && a2.isConnected);
21959
- var zh = createSelector([xe, 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));
21960
- var wo = (a2) => a2.hideLocalPeer;
21961
- var Te = createSelector([V, K, wo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21962
- var Do = createSelector(O, (a2) => Object.values(a2));
21977
+ var Gr = (a2) => a2.appData;
21978
+ var No = (a2) => a2.speakers;
21979
+ var Oe = createSelector([V], (a2) => a2 && a2.isConnected);
21980
+ var im = createSelector([Oe, 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));
21981
+ var Oo = (a2) => a2.hideLocalPeer;
21982
+ var fe = createSelector([V, K, Oo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21983
+ var xo = createSelector(O, (a2) => Object.values(a2));
21963
21984
  var ie = createSelector(V, K, (a2, e) => e[a2.localPeer]);
21964
21985
  var Ee = createSelector(V, (a2) => a2.localPeer);
21965
- var Yh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
21966
- var Xh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
21986
+ var rm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
21987
+ var sm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
21967
21988
  var oe = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
21968
21989
  var z = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
21969
- var _o = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21970
- var Xs = createSelector([oe, z, _o], (a2, e, t) => {
21990
+ var Uo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21991
+ var ia = createSelector([oe, z, Uo], (a2, e, t) => {
21971
21992
  let i = t ? [...t] : [];
21972
21993
  return a2 && i.unshift(a2), e && i.unshift(e), i;
21973
21994
  });
21974
- var Zh = createSelector(Te, (a2) => a2.filter((e) => !e.isLocal));
21975
- var em = createSelector(K, Lo, (a2, e) => {
21995
+ var am = createSelector(fe, (a2) => a2.filter((e) => !e.isLocal));
21996
+ var om = createSelector(K, No, (a2, e) => {
21976
21997
  let t = Object.entries(e).sort((i, r) => {
21977
21998
  var n, d;
21978
21999
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -21985,109 +22006,109 @@ var em = createSelector(K, Lo, (a2, e) => {
21985
22006
  }
21986
22007
  return null;
21987
22008
  });
21988
- var Gr = createSelector(ie, O, (a2, e) => {
21989
- let { video: t, audio: i } = Be(e, a2);
22009
+ var $r = createSelector(ie, O, (a2, e) => {
22010
+ let { video: t, audio: i } = Ue(e, a2);
21990
22011
  return !!(t || i);
21991
22012
  });
21992
- var No = createSelector(K, O, (a2, e) => {
22013
+ var Bo = createSelector(K, O, (a2, e) => {
21993
22014
  let t;
21994
22015
  for (let i in a2) {
21995
- let r = a2[i], { video: s, audio: o } = Be(e, r);
22016
+ let r = a2[i], { video: s, audio: o } = Ue(e, r);
21996
22017
  if (s)
21997
22018
  return r;
21998
22019
  o && !t && (t = r);
21999
22020
  }
22000
22021
  return t;
22001
22022
  });
22002
- var im = createSelector(No, (a2) => !!a2);
22003
- var rm = createSelector(K, O, (a2, e) => {
22023
+ var cm = createSelector(Bo, (a2) => !!a2);
22024
+ var dm = createSelector(K, O, (a2, e) => {
22004
22025
  for (let t in a2) {
22005
- let i = a2[t], { audio: r, video: s } = Be(e, i);
22026
+ let i = a2[t], { audio: r, video: s } = Ue(e, i);
22006
22027
  if (!s && r)
22007
22028
  return i;
22008
22029
  }
22009
22030
  });
22010
- var sm = createSelector(K, O, (a2, e) => {
22031
+ var lm = createSelector(K, O, (a2, e) => {
22011
22032
  let t = [], i = [];
22012
22033
  for (let r in a2) {
22013
- let s = a2[r], { video: o, audio: n } = Be(e, s);
22034
+ let s = a2[r], { video: o, audio: n } = Ue(e, s);
22014
22035
  o ? t.push(s) : n && i.push(s);
22015
22036
  }
22016
22037
  return t.concat(i);
22017
22038
  });
22018
- var am = createSelector(K, O, (a2, e) => {
22039
+ var um = createSelector(K, O, (a2, e) => {
22019
22040
  for (let t in e) {
22020
22041
  let i = e[t];
22021
- if (St(i) && mt(i) && i.peerId)
22042
+ if (mt(i) && ht(i) && i.peerId)
22022
22043
  return a2[i.peerId];
22023
22044
  }
22024
22045
  });
22025
- var om = createSelector(K, O, (a2, e) => {
22046
+ var pm = createSelector(K, O, (a2, e) => {
22026
22047
  for (let t in e) {
22027
22048
  let i = e[t];
22028
- if (ri(i) && i.peerId)
22049
+ if (si(i) && i.peerId)
22029
22050
  return a2[i.peerId];
22030
22051
  }
22031
22052
  });
22032
- var nm = createSelector(Do, (a2) => a2.filter(ds));
22033
- var cm = createSelector(zs, (a2) => a2.length);
22034
- var dm = createSelector(fi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22035
- var At = createSelector(zs, fi, (a2, e) => {
22053
+ var hm = createSelector(xo, (a2) => a2.filter(us));
22054
+ var mm = createSelector(ea, (a2) => a2.length);
22055
+ var Sm = createSelector(Mi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22056
+ var Rt = createSelector(ea, Mi, (a2, e) => {
22036
22057
  let t = [];
22037
22058
  return a2.forEach((i) => {
22038
22059
  t.push(e[i]);
22039
22060
  }), t;
22040
22061
  });
22041
- var Oo = createSelector(At, (a2) => a2.filter((e) => {
22062
+ var Vo = createSelector(Rt, (a2) => a2.filter((e) => {
22042
22063
  var t;
22043
22064
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
22044
22065
  }));
22045
- var lm = createSelector(Oo, (a2) => a2.filter((e) => !e.read).length);
22066
+ var gm = createSelector(Vo, (a2) => a2.filter((e) => !e.read).length);
22046
22067
  var re = createSelector([V], (a2) => a2 && a2.roomState);
22047
- var ea = createSelector(re, (a2) => a2 === "Preview");
22048
- var um = createSelector(V, (a2) => a2.roomState !== "Disconnected");
22049
- var pm = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22050
- var fe = (a2) => a2.roles;
22051
- var hm = createSelector([fe], (a2) => Object.keys(a2));
22052
- var ot = createSelector([ie, fe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22053
- var xo = (a2) => {
22068
+ var sa = createSelector(re, (a2) => a2 === "Preview");
22069
+ var Tm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
22070
+ var fm = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22071
+ var ve = (a2) => a2.roles;
22072
+ var vm = createSelector([ve], (a2) => Object.keys(a2));
22073
+ var at = createSelector([ie, ve], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22074
+ var Fo = (a2) => {
22054
22075
  var e;
22055
22076
  return (e = a2.preview) == null ? void 0 : e.asRole;
22056
22077
  };
22057
- var ta = createSelector([xo, fe], (a2, e) => a2 ? e[a2] : null);
22058
- var mm = createSelector([ot], (a2) => {
22078
+ var aa = createSelector([Fo, ve], (a2, e) => a2 ? e[a2] : null);
22079
+ var Mm = createSelector([at], (a2) => {
22059
22080
  var e;
22060
22081
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
22061
22082
  });
22062
- var ia = createSelector(ot, (a2) => a2 == null ? void 0 : a2.permissions);
22063
- var Sm = createSelector(V, (a2) => a2.recording);
22064
- var gm = createSelector(V, (a2) => a2.rtmp);
22065
- var Tm = createSelector(V, (a2) => a2.hls);
22066
- var fm = createSelector(V, (a2) => a2.transcriptions);
22067
- var vm = createSelector(V, (a2) => a2.sessionId);
22068
- var Mm = createSelector(V, (a2) => a2.startedAt);
22069
- var ym = createSelector(V, (a2) => !!a2.isLargeRoom);
22070
- var km = createSelector(V, (a2) => !!a2.isEffectsEnabled);
22071
- var Pm = createSelector(V, (a2) => !!a2.isVBEnabled);
22072
- var Em = createSelector(V, (a2) => a2.effectsKey);
22073
- var ra = (a2) => a2.polls;
22074
- var Am = createSelector(Te, (a2) => a2.filter((e) => e.isHandRaised));
22075
- var Uo = (a2) => a2.whiteboards;
22076
- var Hm = createSelector(Uo, (a2) => Object.values(a2)[0]);
22077
- var aa = (a2 = "audio") => (e) => e.playlist[a2].list;
22078
- var Wr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22079
- var oa = (a2 = "audio") => (e) => e.playlist[a2].progress;
22080
- var na = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22081
- var ca = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22082
- var da = (a2 = "audio") => (e) => e.playlist[a2].volume;
22083
- var la = (a2 = "audio") => createSelector(aa(a2), (e) => Object.values(e));
22084
- var ua = (a2 = "audio") => createSelector(aa(a2), Wr(a2), (e, t) => {
22083
+ var oa = createSelector(at, (a2) => a2 == null ? void 0 : a2.permissions);
22084
+ var ym = createSelector(V, (a2) => a2.recording);
22085
+ var km = createSelector(V, (a2) => a2.rtmp);
22086
+ var Em = createSelector(V, (a2) => a2.hls);
22087
+ var Pm = createSelector(V, (a2) => a2.transcriptions);
22088
+ var bm = createSelector(V, (a2) => a2.sessionId);
22089
+ var Im = createSelector(V, (a2) => a2.startedAt);
22090
+ var Am = createSelector(V, (a2) => !!a2.isLargeRoom);
22091
+ var Rm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
22092
+ var Hm = createSelector(V, (a2) => !!a2.isVBEnabled);
22093
+ var Cm = createSelector(V, (a2) => a2.effectsKey);
22094
+ var na = (a2) => a2.polls;
22095
+ var _m = createSelector(fe, (a2) => a2.filter((e) => e.isHandRaised));
22096
+ var Go = (a2) => a2.whiteboards;
22097
+ var Nm = createSelector(Go, (a2) => Object.values(a2)[0]);
22098
+ var da = (a2 = "audio") => (e) => e.playlist[a2].list;
22099
+ var Kr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22100
+ var la = (a2 = "audio") => (e) => e.playlist[a2].progress;
22101
+ var ua = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22102
+ var pa = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22103
+ var ha = (a2 = "audio") => (e) => e.playlist[a2].volume;
22104
+ var ma = (a2 = "audio") => createSelector(da(a2), (e) => Object.values(e));
22105
+ var Sa = (a2 = "audio") => createSelector(da(a2), Kr(a2), (e, t) => {
22085
22106
  if (t.id)
22086
22107
  return e[t.id];
22087
22108
  });
22088
- var pa = { selection: Wr("audio"), progress: oa("audio"), currentTime: na("audio"), playbackRate: ca("audio"), volume: da("audio"), list: la("audio"), selectedItem: ua("audio") };
22089
- var ha = { selection: Wr("video"), progress: oa("video"), currentTime: na("video"), playbackRate: ca("video"), volume: da("video"), list: la("video"), selectedItem: ua("video") };
22090
- function A(a2) {
22109
+ var ga = { selection: Kr("audio"), progress: la("audio"), currentTime: ua("audio"), playbackRate: pa("audio"), volume: ha("audio"), list: ma("audio"), selectedItem: Sa("audio") };
22110
+ var Ta = { selection: Kr("video"), progress: la("video"), currentTime: ua("video"), playbackRate: pa("video"), volume: ha("video"), list: ma("video"), selectedItem: Sa("video") };
22111
+ function R(a2) {
22091
22112
  return (e) => (t) => a2(t, e);
22092
22113
  }
22093
22114
  var Ht = "HMS-Store:";
@@ -22157,133 +22178,133 @@ var b = class {
22157
22178
  }
22158
22179
  };
22159
22180
  b.level = 0;
22160
- var $r = (a2, e) => e;
22181
+ var qr = (a2, e) => e;
22161
22182
  var Ct = (a2, e) => e;
22162
- var ma = (a2, e) => e;
22163
- var Bo = (a2, e) => e;
22164
- var Vo = (a2, e) => e;
22165
- var q = createSelector([K, $r], (a2, e) => e ? a2[e] : null);
22166
- var Kr = createSelector([O, Ct], (a2, e) => e ? a2[e] : null);
22167
- var Fo = createSelector([O, Ct], (a2, e) => {
22183
+ var fa = (a2, e) => e;
22184
+ var Wo = (a2, e) => e;
22185
+ var $o = (a2, e) => e;
22186
+ var q = createSelector([K, qr], (a2, e) => e ? a2[e] : null);
22187
+ var jr = createSelector([O, Ct], (a2, e) => e ? a2[e] : null);
22188
+ var Ko = createSelector([O, Ct], (a2, e) => {
22168
22189
  if (!e)
22169
22190
  return null;
22170
22191
  let t = a2[e];
22171
22192
  return (t == null ? void 0 : t.type) === "video" ? t : null;
22172
22193
  });
22173
- var Go = createSelector([O, Ct], (a2, e) => {
22194
+ var qo = createSelector([O, Ct], (a2, e) => {
22174
22195
  if (!e)
22175
22196
  return null;
22176
22197
  let t = a2[e];
22177
22198
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
22178
22199
  });
22179
- var Wo = createSelector([O, Ct], (a2, e) => {
22200
+ var jo = createSelector([O, Ct], (a2, e) => {
22180
22201
  if (!e)
22181
22202
  return null;
22182
22203
  let t = a2[e];
22183
22204
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22184
22205
  });
22185
- var $o = createSelector([O, Ct], (a2, e) => {
22206
+ var Jo = createSelector([O, Ct], (a2, e) => {
22186
22207
  if (!e)
22187
22208
  return null;
22188
22209
  let t = a2[e];
22189
22210
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22190
22211
  });
22191
- var Ko = createSelector([ra, Vo], (a2, e) => e ? a2[e] : null);
22192
- var Y = A(q);
22193
- var Vm = A(createSelector([Vr, Bo], (a2, e) => {
22212
+ var Qo = createSelector([na, $o], (a2, e) => e ? a2[e] : null);
22213
+ var Y = R(q);
22214
+ var qm = R(createSelector([Gr, Wo], (a2, e) => {
22194
22215
  if (a2)
22195
22216
  return e ? a2[e] : a2;
22196
22217
  }));
22197
- function Fm(a2) {
22218
+ function jm(a2) {
22198
22219
  return (e) => {
22199
22220
  if (e.sessionStore)
22200
22221
  return a2 ? e.sessionStore[a2] : e.sessionStore;
22201
22222
  };
22202
22223
  }
22203
- var Wm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
22204
- var $m = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
22205
- var vi = A(Kr);
22206
- var Sa = A(Fo);
22207
- var Km = A(Go);
22208
- var qm = A(Wo);
22209
- var jm = A($o);
22210
- var qo = A((a2, e) => {
22224
+ var Qm = R(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
22225
+ var zm = R(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
22226
+ var yi = R(jr);
22227
+ var va = R(Ko);
22228
+ var Ym = R(qo);
22229
+ var Xm = R(jo);
22230
+ var Zm = R(Jo);
22231
+ var zo = R((a2, e) => {
22211
22232
  let t = q(a2, e);
22212
22233
  if (t && t.videoTrack && t.videoTrack !== "")
22213
22234
  return a2.tracks[t.videoTrack];
22214
22235
  });
22215
- var jo = A((a2, e) => {
22236
+ var Yo = R((a2, e) => {
22216
22237
  let t = q(a2, e);
22217
22238
  if (t && t.audioTrack && t.audioTrack !== "")
22218
22239
  return a2.tracks[t.audioTrack];
22219
22240
  });
22220
- var Qm = A((a2, e) => {
22241
+ var tS = R((a2, e) => {
22221
22242
  let t = q(a2, e);
22222
22243
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22223
22244
  });
22224
- var ga = (a2, e) => e ? a2.speakers[e] : null;
22225
- var zm = A(createSelector(ga, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22226
- var Jo = (a2, e) => {
22227
- let t = jo(e)(a2);
22228
- return ga(a2, t == null ? void 0 : t.id);
22229
- };
22230
- var Ym = A(createSelector(Jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22231
- var Xm = A((a2, e) => {
22245
+ var Ma = (a2, e) => e ? a2.speakers[e] : null;
22246
+ var iS = R(createSelector(Ma, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22247
+ var Xo = (a2, e) => {
22248
+ let t = Yo(e)(a2);
22249
+ return Ma(a2, t == null ? void 0 : t.id);
22250
+ };
22251
+ var rS = R(createSelector(Xo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22252
+ var sS = R((a2, e) => {
22232
22253
  if (e)
22233
22254
  return a2.connectionQualities[e];
22234
22255
  });
22235
- var Zm = A((a2, e) => {
22256
+ var aS = R((a2, e) => {
22236
22257
  let t = q(a2, e);
22237
22258
  if (t) {
22238
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ht(a2.tracks[r]));
22259
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => pt(a2.tracks[r]));
22239
22260
  return i ? a2.tracks[i] : void 0;
22240
22261
  }
22241
22262
  });
22242
- var eS = A(createSelector(O, q, (a2, e) => {
22263
+ var oS = R(createSelector(O, q, (a2, e) => {
22243
22264
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22244
22265
  let r = a2[i];
22245
- return St(r) && mt(r);
22266
+ return mt(r) && ht(r);
22246
22267
  });
22247
22268
  return t ? a2[t] : void 0;
22248
22269
  }));
22249
- var tS = A(createSelector(O, q, (a2, e) => {
22270
+ var nS = R(createSelector(O, q, (a2, e) => {
22250
22271
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22251
22272
  let r = a2[i];
22252
- return St(r) && ht(r);
22273
+ return mt(r) && pt(r);
22253
22274
  });
22254
22275
  return t ? a2[t] : void 0;
22255
22276
  }));
22256
- var iS = A(createSelector(O, q, (a2, e) => {
22277
+ var cS = R(createSelector(O, q, (a2, e) => {
22257
22278
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22258
22279
  let r = a2[i];
22259
- return ri(r) && ht(r);
22280
+ return si(r) && pt(r);
22260
22281
  });
22261
22282
  return t ? a2[t] : void 0;
22262
22283
  }));
22263
- var Ta = A(createSelector(O, q, (a2, e) => Be(a2, e)));
22264
- var fa = (a2) => createSelector(Ta(a2), (e) => e.audio);
22265
- var sS = A((a2, e) => {
22284
+ var ya = R(createSelector(O, q, (a2, e) => Ue(a2, e)));
22285
+ var ka = (a2) => createSelector(ya(a2), (e) => e.audio);
22286
+ var lS = R((a2, e) => {
22266
22287
  let t = q(a2, e);
22267
- return Je(a2, t == null ? void 0 : t.audioTrack);
22288
+ return je(a2, t == null ? void 0 : t.audioTrack);
22268
22289
  });
22269
- var aS = A((a2, e) => {
22290
+ var uS = R((a2, e) => {
22270
22291
  let t = q(a2, e);
22271
- return Je(a2, t == null ? void 0 : t.videoTrack);
22292
+ return je(a2, t == null ? void 0 : t.videoTrack);
22272
22293
  });
22273
- var va = A((a2, e) => {
22294
+ var Ea = R((a2, e) => {
22274
22295
  if (e && a2.tracks[e])
22275
22296
  return a2.tracks[e].volume === 0;
22276
22297
  });
22277
- var oS = A((a2, e) => {
22298
+ var pS = R((a2, e) => {
22278
22299
  let t = q(a2, e);
22279
- return va(t == null ? void 0 : t.audioTrack)(a2);
22300
+ return Ea(t == null ? void 0 : t.audioTrack)(a2);
22280
22301
  });
22281
- var nS = A((a2, e) => {
22282
- let t = fa(e)(a2);
22283
- return va(t == null ? void 0 : t.id)(a2);
22302
+ var hS = R((a2, e) => {
22303
+ let t = ka(e)(a2);
22304
+ return Ea(t == null ? void 0 : t.id)(a2);
22284
22305
  });
22285
- var Ma = A((a2, e) => {
22286
- let t = Kr(a2, e);
22306
+ var Pa = R((a2, e) => {
22307
+ let t = jr(a2, e);
22287
22308
  if (t) {
22288
22309
  if (t.type !== "audio") {
22289
22310
  b.w("Please pass audio track here");
@@ -22292,16 +22313,16 @@ var Ma = A((a2, e) => {
22292
22313
  return t.volume;
22293
22314
  }
22294
22315
  });
22295
- var cS = A((a2, e) => {
22316
+ var mS = R((a2, e) => {
22296
22317
  let t = q(a2, e);
22297
- return Ma(t == null ? void 0 : t.audioTrack)(a2);
22318
+ return Pa(t == null ? void 0 : t.audioTrack)(a2);
22298
22319
  });
22299
- var dS = A((a2, e) => {
22300
- let t = fa(e)(a2);
22301
- return Ma(t == null ? void 0 : t.id)(a2);
22320
+ var SS = R((a2, e) => {
22321
+ let t = ka(e)(a2);
22322
+ return Pa(t == null ? void 0 : t.id)(a2);
22302
22323
  });
22303
- var lS = A((a2, e) => {
22304
- let t = Kr(a2, e);
22324
+ var gS = R((a2, e) => {
22325
+ let t = jr(a2, e);
22305
22326
  if (t) {
22306
22327
  if (t.type !== "video") {
22307
22328
  b.w("Please pass video track here");
@@ -22310,53 +22331,53 @@ var lS = A((a2, e) => {
22310
22331
  return t.layer;
22311
22332
  }
22312
22333
  });
22313
- var ya = createSelector([At, Ee, $r], (a2, e, t) => {
22334
+ var ba = createSelector([Rt, Ee, qr], (a2, e, t) => {
22314
22335
  if (t)
22315
22336
  return a2.filter((i) => {
22316
22337
  var r;
22317
22338
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22318
22339
  });
22319
22340
  });
22320
- var ka = createSelector([At, ma], (a2, e) => {
22341
+ var Ia = createSelector([Rt, fa], (a2, e) => {
22321
22342
  if (e)
22322
22343
  return a2.filter((t) => {
22323
22344
  var i, r;
22324
22345
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22325
22346
  });
22326
22347
  });
22327
- var Qo = createSelector(At, (a2) => a2.filter((e) => {
22348
+ var Zo = createSelector(Rt, (a2) => a2.filter((e) => {
22328
22349
  var t;
22329
22350
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22330
22351
  }));
22331
- var zo = createSelector([ka, ma], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22332
- var Yo = createSelector([ya, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22333
- var uS = createSelector(Qo, (a2) => a2.filter((e) => !e.read).length);
22334
- var pS = A(ya);
22335
- var hS = A(ka);
22336
- var mS = A(zo);
22337
- var SS = A(Yo);
22338
- var Pa = A(Ko);
22339
- var RS = createSelector([K, O], (a2, e) => Object.values(a2).map((i) => {
22352
+ var en = createSelector([Ia, fa], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22353
+ var tn = createSelector([ba, qr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22354
+ var TS = createSelector(Zo, (a2) => a2.filter((e) => !e.read).length);
22355
+ var fS = R(ba);
22356
+ var vS = R(Ia);
22357
+ var MS = R(en);
22358
+ var yS = R(tn);
22359
+ var Aa = R(Qo);
22360
+ var DS = createSelector([K, O], (a2, e) => Object.values(a2).map((i) => {
22340
22361
  var r;
22341
22362
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22342
22363
  }));
22343
- var Xo = (a2) => a2.roleChangeRequests[0] || null;
22344
- var AS = createSelector([Xo, K, fe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22345
- var HS = createSelector([ot], (a2) => gt(a2));
22346
- var CS = createSelector([ta], (a2) => gt(a2));
22347
- var en = createSelector([z, O], (a2, e) => {
22364
+ var rn = (a2) => a2.roleChangeRequests[0] || null;
22365
+ var _S = createSelector([rn, K, ve], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22366
+ var NS = createSelector([at], (a2) => St(a2));
22367
+ var OS = createSelector([aa], (a2) => St(a2));
22368
+ var an = createSelector([z, O], (a2, e) => {
22348
22369
  let t = null;
22349
22370
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22350
22371
  });
22351
- var tn = createSelector([oe, O], (a2, e) => {
22372
+ var on = createSelector([oe, O], (a2, e) => {
22352
22373
  let t = null;
22353
22374
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22354
22375
  });
22355
- var an = ((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))(an || {});
22356
- var zr = class {
22376
+ var dn = ((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))(dn || {});
22377
+ var Xr = class {
22357
22378
  constructor() {
22358
22379
  this.TAG = "[HTTPAnalyticsTransport]";
22359
- this.failedEvents = new he("client-events");
22380
+ this.failedEvents = new me("client-events");
22360
22381
  this.isConnected = true;
22361
22382
  this.env = null;
22362
22383
  this.websocketURL = "";
@@ -22372,7 +22393,7 @@ var zr = class {
22372
22393
  this.addEventToStorage(e);
22373
22394
  return;
22374
22395
  }
22375
- 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" ? Vs : Fs;
22396
+ 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" ? $s : Ks;
22376
22397
  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) => {
22377
22398
  if (r.status === 401) {
22378
22399
  this.removeFromStorage(e);
@@ -22398,66 +22419,93 @@ var zr = class {
22398
22419
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22399
22420
  }
22400
22421
  };
22401
- var Ie = new zr();
22422
+ var be = new Xr();
22423
+ var Vt = class {
22424
+ static handleError(e) {
22425
+ if (e.status === 404)
22426
+ throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
22427
+ if (e.status >= 400)
22428
+ throw S.APIErrors.ServerErrors(e.status, "FEEDBACK", e == null ? void 0 : e.statusText);
22429
+ }
22430
+ static sendFeedback(s) {
22431
+ return c(this, arguments, function* ({ token: e, eventEndpoint: t = "https://event.100ms.live", info: i, feedback: r }) {
22432
+ l.d(this.TAG, `sendFeedback: feedbackEndpoint=${t} peerId=${i.peer.peer_id} session=${i.peer.session_id} `);
22433
+ let o = new URL("v2/client/feedback", t), n = M(h({}, i), { payload: r });
22434
+ try {
22435
+ let d = yield fetch(o, { headers: { Authorization: `Bearer ${e}` }, body: JSON.stringify(n), method: "POST" });
22436
+ try {
22437
+ this.handleError(d);
22438
+ return;
22439
+ } catch (u) {
22440
+ throw l.e(this.TAG, "error", u.message, d.status), u instanceof f ? u : S.APIErrors.ServerErrors(d.status, "FEEDBACK", u.message);
22441
+ }
22442
+ } catch (d) {
22443
+ let u = d;
22444
+ throw ["Failed to fetch", "NetworkError", "ECONNRESET"].some((p) => u.message.includes(p)) ? S.APIErrors.EndpointUnreachable("FEEDBACK", u.message) : u;
22445
+ }
22446
+ });
22447
+ }
22448
+ };
22449
+ Vt.TAG = "[FeedbackService]";
22402
22450
  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 || {});
22403
- var ir = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(ir || {});
22404
- var ut = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ut || {});
22405
- var En = (a2) => a2.localPeer.id;
22406
- var bn = (a2) => a2.localPeer.audioTrack;
22407
- var In = (a2) => a2.localPeer.videoTrack;
22408
- var Rn = (a2, e) => e;
22409
- var qa = (a2, e) => e;
22410
- var An = (a2) => a2.remoteTrackStats;
22411
- var ja = (a2) => a2.peerStats;
22412
- var ts = (a2) => a2.localTrackStats;
22413
- var Ae = createSelector([ja, En], (a2, e) => a2[e]);
22414
- var Hn = createSelector(Ae, (a2) => {
22451
+ var sr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(sr || {});
22452
+ var lt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lt || {});
22453
+ var Rn = (a2) => a2.localPeer.id;
22454
+ var Hn = (a2) => a2.localPeer.audioTrack;
22455
+ var Cn = (a2) => a2.localPeer.videoTrack;
22456
+ var Ln = (a2, e) => e;
22457
+ var za = (a2, e) => e;
22458
+ var wn = (a2) => a2.remoteTrackStats;
22459
+ var Ya = (a2) => a2.peerStats;
22460
+ var rs = (a2) => a2.localTrackStats;
22461
+ var Ae = createSelector([Ya, Rn], (a2, e) => a2[e]);
22462
+ var Dn = createSelector(Ae, (a2) => {
22415
22463
  var e;
22416
22464
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22417
22465
  });
22418
- var Cn = createSelector(Ae, (a2) => {
22466
+ var _n = createSelector(Ae, (a2) => {
22419
22467
  var e;
22420
22468
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22421
22469
  });
22422
- var Ln = createSelector(Ae, (a2) => {
22470
+ var Nn = createSelector(Ae, (a2) => {
22423
22471
  var e;
22424
22472
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22425
22473
  });
22426
- var wn = createSelector(Ae, (a2) => {
22474
+ var On = createSelector(Ae, (a2) => {
22427
22475
  var e;
22428
22476
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22429
22477
  });
22430
- var Dn = createSelector(Ae, (a2) => {
22478
+ var xn = createSelector(Ae, (a2) => {
22431
22479
  var e;
22432
22480
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22433
22481
  });
22434
- var _n = createSelector(Ae, (a2) => {
22482
+ var Un = createSelector(Ae, (a2) => {
22435
22483
  var e;
22436
22484
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22437
22485
  });
22438
- var Nn = createSelector(Ae, (a2) => {
22486
+ var Bn = createSelector(Ae, (a2) => {
22439
22487
  var e;
22440
22488
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22441
22489
  });
22442
- var On = createSelector(Ae, (a2) => {
22490
+ var Vn = createSelector(Ae, (a2) => {
22443
22491
  var e;
22444
22492
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22445
22493
  });
22446
- var xn = createSelector([ja, Rn], (a2, e) => e ? a2[e] : void 0);
22447
- var Un = createSelector([An, qa], (a2, e) => e ? a2[e] : void 0);
22448
- var is = createSelector([ts, qa], (a2, e) => e ? a2[e] : void 0);
22449
- var Bn = A(xn);
22450
- var Vn = A(Un);
22451
- var Fn = createSelector([ts, bn], (a2, e) => {
22494
+ var Fn = createSelector([Ya, Ln], (a2, e) => e ? a2[e] : void 0);
22495
+ var Gn = createSelector([wn, za], (a2, e) => e ? a2[e] : void 0);
22496
+ var ss = createSelector([rs, za], (a2, e) => e ? a2[e] : void 0);
22497
+ var Wn = R(Fn);
22498
+ var $n = R(Gn);
22499
+ var Kn = createSelector([rs, Hn], (a2, e) => {
22452
22500
  var t;
22453
22501
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22454
22502
  });
22455
- var Gn = A(createSelector(is, (a2) => a2 == null ? void 0 : a2[0]));
22456
- var Wn = createSelector([ts, In], (a2, e) => {
22503
+ var qn = R(createSelector(ss, (a2) => a2 == null ? void 0 : a2[0]));
22504
+ var jn = createSelector([rs, Cn], (a2, e) => {
22457
22505
  var t;
22458
22506
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22459
22507
  });
22460
- var $n = A(createSelector(is, (a2) => a2));
22508
+ var Jn = R(createSelector(ss, (a2) => a2));
22461
22509
 
22462
22510
  // src/Prebuilt/components/Header/StreamActions.tsx
22463
22511
  import {
@@ -22576,7 +22624,7 @@ var RecordingStatus = () => {
22576
22624
  };
22577
22625
  var RecordingPauseStatus = () => {
22578
22626
  const recording = useHMSStore29(selectRecordingState2);
22579
- if (recording.hls && recording.hls.state === Rs.PAUSED) {
22627
+ if (recording.hls && recording.hls.state === Ls.PAUSED) {
22580
22628
  return /* @__PURE__ */ React64.createElement(
22581
22629
  Tooltip,
22582
22630
  {
@@ -24069,7 +24117,7 @@ var RoleOptions = ({ roleName, peerList }) => {
24069
24117
 
24070
24118
  // src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
24071
24119
  init_define_process_env();
24072
- import { match as match8, P as P4 } from "ts-pattern";
24120
+ import { match as match8, P as P5 } from "ts-pattern";
24073
24121
  import { selectPermissions as selectPermissions12, useHMSActions as useHMSActions31, useHMSStore as useHMSStore40 } from "@100mslive/react-sdk";
24074
24122
  var useGroupOnStageActions = ({ peers }) => {
24075
24123
  var _a7;
@@ -24086,9 +24134,9 @@ var useGroupOnStageActions = ({ peers }) => {
24086
24134
  const offStageRolePeers = peers.filter(
24087
24135
  (peer) => match8({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
24088
24136
  {
24089
- on_stage_role: P4.when((role) => !!role),
24090
- bring_to_stage_label: P4.when((label) => !!label),
24091
- roleName: P4.when((role) => !!role && off_stage_roles.includes(role))
24137
+ on_stage_role: P5.when((role) => !!role),
24138
+ bring_to_stage_label: P5.when((label) => !!label),
24139
+ roleName: P5.when((role) => !!role && off_stage_roles.includes(role))
24092
24140
  },
24093
24141
  () => true
24094
24142
  ).otherwise(() => false)
@@ -27391,7 +27439,7 @@ var Chat = () => {
27391
27439
  const listRef = useRef25(null);
27392
27440
  const hmsActions = useHMSActions42();
27393
27441
  const vanillaStore = useHMSVanillaStore11();
27394
- const { enabled: isChatEnabled = true } = useHMSStore61(Fm("chatState" /* CHAT_STATE */)) || {};
27442
+ const { enabled: isChatEnabled = true } = useHMSStore61(jm("chatState" /* CHAT_STATE */)) || {};
27395
27443
  const isMobile = useMedia20(config.media.md);
27396
27444
  const isMobileHLSStream = useMobileHLSStream();
27397
27445
  const isLandscapeStream = useLandscapeHLSStream();
@@ -27481,7 +27529,7 @@ var NewMessageIndicator = ({
27481
27529
  scrollToBottom,
27482
27530
  listRef
27483
27531
  }) => {
27484
- const unreadCount = useHMSStore61(dm);
27532
+ const unreadCount = useHMSStore61(Sm);
27485
27533
  if (!unreadCount || !listRef.current) {
27486
27534
  return null;
27487
27535
  }
@@ -28500,7 +28548,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28500
28548
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
28501
28549
  const hmsActions = useHMSActions45();
28502
28550
  const localPeer = useHMSStore69(selectLocalPeer8);
28503
- const role = useHMSStore69(ot);
28551
+ const role = useHMSStore69(at);
28504
28552
  const isVideoOn = useHMSStore69(selectIsLocalVideoEnabled6);
28505
28553
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28506
28554
  const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -28509,12 +28557,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28509
28557
  const roomState = useHMSStore69(selectRoomState5);
28510
28558
  const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
28511
28559
  const [isBlurSupported, setIsBlurSupported] = useState56(false);
28512
- const isEffectsEnabled = useHMSStore69(km);
28513
- const effectsKey = useHMSStore69(Em);
28560
+ const isEffectsEnabled = useHMSStore69(Rm);
28561
+ const effectsKey = useHMSStore69(Cm);
28514
28562
  const isMobile = useMedia24(config.media.md);
28515
28563
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28516
28564
  const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28517
- const background = useHMSStore69(Vm(APP_DATA.background));
28565
+ const background = useHMSStore69(qm(APP_DATA.background));
28518
28566
  const mediaList = backgroundMedia.map((media) => media.url || "");
28519
28567
  const inPreview = roomState === HMSRoomState5.Preview;
28520
28568
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -30890,7 +30938,7 @@ var useCloseScreenshareWhiteboard = () => {
30890
30938
  };
30891
30939
 
30892
30940
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
30893
- var HLSView = React157.lazy(() => import("./HLSView-6KUW45BA.js"));
30941
+ var HLSView = React157.lazy(() => import("./HLSView-YQCSQSBU.js"));
30894
30942
  var VideoStreamingSection = ({
30895
30943
  screenType,
30896
30944
  elements,
@@ -31655,12 +31703,468 @@ var KeyboardHandler = () => {
31655
31703
 
31656
31704
  // src/Prebuilt/components/LeaveScreen.tsx
31657
31705
  init_define_process_env();
31658
- import React164 from "react";
31706
+ import React167 from "react";
31659
31707
  import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
31708
+
31709
+ // src/Prebuilt/components/EndCallFeedback/Feedback.tsx
31710
+ init_define_process_env();
31711
+ import React166, { useState as useState70 } from "react";
31712
+ import { useMedia as useMedia43 } from "react-use";
31713
+
31714
+ // src/Prebuilt/components/EndCallFeedback/FeedbackForm.tsx
31715
+ init_define_process_env();
31716
+ import React164, { useState as useState69 } from "react";
31717
+ import { useMedia as useMedia41 } from "react-use";
31718
+ import { useHMSActions as useHMSActions52 } from "@100mslive/react-sdk";
31719
+ import { CheckIcon as CheckIcon9, CrossIcon as CrossIcon28 } from "@100mslive/react-icons";
31720
+ var FEEBACK_INDEX = {
31721
+ THANK_YOU: -10,
31722
+ INIT: -1
31723
+ };
31724
+ var FeedbackModal = ({
31725
+ ratings,
31726
+ index,
31727
+ setIndex
31728
+ }) => {
31729
+ const isMobile = useMedia41(config.media.md);
31730
+ const onOpenChange = () => {
31731
+ setIndex(FEEBACK_INDEX.INIT);
31732
+ };
31733
+ const avoidDefaultDomBehavior = (e) => {
31734
+ e.preventDefault();
31735
+ };
31736
+ if (isMobile) {
31737
+ return /* @__PURE__ */ React164.createElement(Sheet.Root, { open: index !== FEEBACK_INDEX.INIT, onOpenChange }, /* @__PURE__ */ React164.createElement(
31738
+ Sheet.Content,
31739
+ {
31740
+ css: { bg: "$surface_dim", p: "$12" },
31741
+ onPointerDownOutside: avoidDefaultDomBehavior,
31742
+ onInteractOutside: avoidDefaultDomBehavior
31743
+ },
31744
+ /* @__PURE__ */ React164.createElement(FeedbackContent, { ratings, indexSelected: index, setIndex })
31745
+ ));
31746
+ }
31747
+ return /* @__PURE__ */ React164.createElement(Dialog.Root, { open: index !== FEEBACK_INDEX.INIT, onOpenChange }, /* @__PURE__ */ React164.createElement(Dialog.Portal, null, /* @__PURE__ */ React164.createElement(Dialog.Overlay, null), /* @__PURE__ */ React164.createElement(
31748
+ Dialog.Content,
31749
+ {
31750
+ css: { bg: "$surface_dim", width: "528px", p: "$12" },
31751
+ onPointerDownOutside: avoidDefaultDomBehavior,
31752
+ onInteractOutside: avoidDefaultDomBehavior
31753
+ },
31754
+ /* @__PURE__ */ React164.createElement(FeedbackContent, { ratings, indexSelected: index, setIndex })
31755
+ )));
31756
+ };
31757
+ var FeedbackContent = ({
31758
+ ratings,
31759
+ indexSelected,
31760
+ setIndex
31761
+ }) => {
31762
+ const { feedback } = useRoomLayoutLeaveScreen();
31763
+ const { endpoints } = useHMSPrebuiltContext();
31764
+ const hmsActions = useHMSActions52();
31765
+ const [comment, setComment] = useState69("");
31766
+ const [selectedReasons, setSelectedReasons] = useState69(/* @__PURE__ */ new Set());
31767
+ const handleCheckedChange = (checked, index) => {
31768
+ const newSelected = new Set(selectedReasons);
31769
+ if (checked) {
31770
+ newSelected.add(index);
31771
+ } else {
31772
+ newSelected.delete(index);
31773
+ }
31774
+ setSelectedReasons(newSelected);
31775
+ };
31776
+ const submitFeedback = () => __async(void 0, null, function* () {
31777
+ if (indexSelected < 0 || ratings.length <= indexSelected) {
31778
+ return;
31779
+ }
31780
+ try {
31781
+ const reasons = [...selectedReasons].map((value) => {
31782
+ var _a7, _b7;
31783
+ return ((_b7 = (_a7 = ratings[indexSelected]) == null ? void 0 : _a7.reasons) == null ? void 0 : _b7[value]) || "";
31784
+ });
31785
+ yield hmsActions.submitSessionFeedback(
31786
+ {
31787
+ question: ratings[indexSelected].question,
31788
+ rating: ratings[indexSelected].value || 1,
31789
+ min_rating: 1,
31790
+ max_rating: ratings.length,
31791
+ reasons: selectedReasons.size === 0 ? [] : reasons,
31792
+ comment
31793
+ },
31794
+ endpoints == null ? void 0 : endpoints.event
31795
+ );
31796
+ } catch (e) {
31797
+ console.error(e);
31798
+ }
31799
+ setIndex(FEEBACK_INDEX.THANK_YOU);
31800
+ });
31801
+ return /* @__PURE__ */ React164.createElement(
31802
+ Flex,
31803
+ {
31804
+ css: {
31805
+ p: indexSelected === FEEBACK_INDEX.INIT ? "$12 !important" : "0",
31806
+ bg: "$surface_dim",
31807
+ r: "$3",
31808
+ gap: "$10"
31809
+ },
31810
+ direction: "column"
31811
+ },
31812
+ /* @__PURE__ */ React164.createElement(
31813
+ FeedbackHeader,
31814
+ {
31815
+ ratings,
31816
+ indexSelected,
31817
+ onEmojiClicked: (value) => {
31818
+ setSelectedReasons(/* @__PURE__ */ new Set());
31819
+ setIndex(value);
31820
+ }
31821
+ }
31822
+ ),
31823
+ /* @__PURE__ */ React164.createElement(
31824
+ FeedbackForm,
31825
+ {
31826
+ rating: ratings[indexSelected],
31827
+ comment,
31828
+ setComment,
31829
+ selectedReasons,
31830
+ handleCheckedChange
31831
+ }
31832
+ ),
31833
+ /* @__PURE__ */ React164.createElement(
31834
+ Button,
31835
+ {
31836
+ type: "submit",
31837
+ icon: true,
31838
+ css: {
31839
+ alignSelf: "end"
31840
+ },
31841
+ onClick: submitFeedback
31842
+ },
31843
+ (feedback == null ? void 0 : feedback.submit_btn_label) || "Submit Feedback"
31844
+ )
31845
+ );
31846
+ };
31847
+ var FeedbackHeader = ({
31848
+ onEmojiClicked,
31849
+ ratings,
31850
+ indexSelected = FEEBACK_INDEX.INIT
31851
+ }) => {
31852
+ const { feedback } = useRoomLayoutLeaveScreen();
31853
+ return /* @__PURE__ */ React164.createElement(React164.Fragment, null, /* @__PURE__ */ React164.createElement(Flex, { align: "center" }, /* @__PURE__ */ React164.createElement(
31854
+ Flex,
31855
+ {
31856
+ direction: "column",
31857
+ css: {
31858
+ flex: "1 1 0"
31859
+ }
31860
+ },
31861
+ /* @__PURE__ */ React164.createElement(
31862
+ Text,
31863
+ {
31864
+ variant: "h5",
31865
+ css: {
31866
+ c: "$on_surface_high",
31867
+ fontStyle: "normal"
31868
+ }
31869
+ },
31870
+ (feedback == null ? void 0 : feedback.title) || "How was your experience?"
31871
+ ),
31872
+ /* @__PURE__ */ React164.createElement(
31873
+ Text,
31874
+ {
31875
+ variant: "body1",
31876
+ css: {
31877
+ c: "$on_surface_medium",
31878
+ opacity: 0.9,
31879
+ fontWeight: "$regular"
31880
+ }
31881
+ },
31882
+ (feedback == null ? void 0 : feedback.sub_title) || "Your answers help us improve the quality."
31883
+ )
31884
+ ), indexSelected !== FEEBACK_INDEX.INIT ? /* @__PURE__ */ React164.createElement(CrossIcon28, { width: "24px", height: "24px", color: "white", onClick: () => onEmojiClicked(FEEBACK_INDEX.INIT) }) : null), /* @__PURE__ */ React164.createElement(
31885
+ Flex,
31886
+ {
31887
+ css: {
31888
+ gap: "$17",
31889
+ c: "$on_surface_high"
31890
+ }
31891
+ },
31892
+ ratings.map((element, index) => {
31893
+ return /* @__PURE__ */ React164.createElement(
31894
+ Flex,
31895
+ {
31896
+ align: "center",
31897
+ direction: "column",
31898
+ css: {
31899
+ c: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? "$on_surface_high" : "$on_surface_default",
31900
+ gap: "$4"
31901
+ },
31902
+ onClick: () => onEmojiClicked(index),
31903
+ key: `${index}`
31904
+ },
31905
+ /* @__PURE__ */ React164.createElement(
31906
+ Text,
31907
+ {
31908
+ css: {
31909
+ fontWeight: "$semiBold",
31910
+ fontSize: "$h4",
31911
+ pb: "$1",
31912
+ cursor: "pointer",
31913
+ opacity: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? 1 : 0.2
31914
+ }
31915
+ },
31916
+ element.emoji
31917
+ ),
31918
+ /* @__PURE__ */ React164.createElement(
31919
+ Text,
31920
+ {
31921
+ variant: "body1",
31922
+ css: {
31923
+ c: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? "$on_surface_medium" : "$on_surface_low",
31924
+ fontWeight: "$regular"
31925
+ }
31926
+ },
31927
+ element.label
31928
+ )
31929
+ );
31930
+ })
31931
+ ));
31932
+ };
31933
+ var FeedbackForm = ({
31934
+ rating,
31935
+ comment,
31936
+ setComment,
31937
+ selectedReasons,
31938
+ handleCheckedChange
31939
+ }) => {
31940
+ const { feedback } = useRoomLayoutLeaveScreen();
31941
+ return /* @__PURE__ */ React164.createElement(React164.Fragment, null, rating.reasons && rating.reasons.length > 0 && /* @__PURE__ */ React164.createElement(
31942
+ Flex,
31943
+ {
31944
+ direction: "column",
31945
+ css: {
31946
+ gap: "$4"
31947
+ }
31948
+ },
31949
+ /* @__PURE__ */ React164.createElement(
31950
+ Text,
31951
+ {
31952
+ variant: "sub2",
31953
+ css: {
31954
+ c: "$on_surface_high",
31955
+ fontWeight: "$semiBold",
31956
+ fontSize: "$sm",
31957
+ px: "$2"
31958
+ }
31959
+ },
31960
+ rating.question || "What do you like/dislike here?"
31961
+ ),
31962
+ /* @__PURE__ */ React164.createElement(
31963
+ Flex,
31964
+ {
31965
+ css: {
31966
+ alignItems: "flex-start",
31967
+ alignSelf: "stretch",
31968
+ flexWrap: "wrap",
31969
+ gap: "$6",
31970
+ flex: "1 1 calc(25% - 12px)",
31971
+ "@md": {
31972
+ flex: "1 1 calc(50% - 12px)"
31973
+ },
31974
+ "@sm": {
31975
+ flex: "1 1 100%"
31976
+ }
31977
+ }
31978
+ },
31979
+ rating.reasons.map((option, index) => {
31980
+ return /* @__PURE__ */ React164.createElement(
31981
+ Flex,
31982
+ {
31983
+ align: "center",
31984
+ gap: "2",
31985
+ key: index,
31986
+ css: {
31987
+ border: "1px solid $border_bright",
31988
+ r: "$1",
31989
+ p: "$6"
31990
+ }
31991
+ },
31992
+ /* @__PURE__ */ React164.createElement(
31993
+ Checkbox.Root,
31994
+ {
31995
+ id: `${option}-${index}`,
31996
+ checked: selectedReasons.has(index),
31997
+ onCheckedChange: (checked) => handleCheckedChange(checked, index),
31998
+ css: {
31999
+ cursor: "pointer",
32000
+ flexShrink: 0,
32001
+ bg: "$on_secondary_low",
32002
+ border: "1px solid $border_bright"
32003
+ }
32004
+ },
32005
+ /* @__PURE__ */ React164.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React164.createElement(CheckIcon9, { width: 12, height: 12 }))
32006
+ ),
32007
+ /* @__PURE__ */ React164.createElement(
32008
+ Label3,
32009
+ {
32010
+ css: {
32011
+ color: "$on_surface_high",
32012
+ fontSize: "$sm",
32013
+ fontWeight: "$regular",
32014
+ lineHeight: "20px"
32015
+ }
32016
+ },
32017
+ option
32018
+ )
32019
+ );
32020
+ })
32021
+ )
32022
+ ), (feedback == null ? void 0 : feedback.comment) && /* @__PURE__ */ React164.createElement(
32023
+ Flex,
32024
+ {
32025
+ direction: "column",
32026
+ css: {
32027
+ gap: "$4"
32028
+ }
32029
+ },
32030
+ /* @__PURE__ */ React164.createElement(
32031
+ Text,
32032
+ {
32033
+ variant: "body2",
32034
+ css: {
32035
+ c: "$on_surface_high",
32036
+ fontWeight: "$regular",
32037
+ fontSize: "$sm"
32038
+ }
32039
+ },
32040
+ (feedback == null ? void 0 : feedback.comment.label) || "Additional comments (optional)"
32041
+ ),
32042
+ /* @__PURE__ */ React164.createElement(
32043
+ TextArea,
32044
+ {
32045
+ maxLength: 1024,
32046
+ placeholder: (feedback == null ? void 0 : feedback.comment.placeholder) || "Tell us more...",
32047
+ css: {
32048
+ backgroundColor: "$surface_bright",
32049
+ border: "1px solid $border_bright",
32050
+ resize: "none",
32051
+ height: "$36",
32052
+ display: "flex"
32053
+ },
32054
+ value: comment,
32055
+ onChange: (event) => setComment(event.target.value.trimStart())
32056
+ }
32057
+ )
32058
+ ));
32059
+ };
32060
+
32061
+ // src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx
32062
+ init_define_process_env();
32063
+ import React165 from "react";
32064
+ import { useMedia as useMedia42 } from "react-use";
32065
+ import { UserMusicIcon } from "@100mslive/react-icons";
32066
+ var ThankyouView = () => {
32067
+ const isMobile = useMedia42(config.media.md);
32068
+ return /* @__PURE__ */ React165.createElement(
32069
+ Flex,
32070
+ {
32071
+ direction: isMobile ? "column" : "row",
32072
+ align: "center",
32073
+ css: {
32074
+ gap: "$10",
32075
+ border: "1px solid $border_default",
32076
+ borderRadius: !isMobile ? "$3" : "$3 $3 0 0",
32077
+ bg: "$surface_dim",
32078
+ w: !isMobile ? "528px" : "410px",
32079
+ p: "$12",
32080
+ pb: isMobile ? "$16" : "$12",
32081
+ "@md": {
32082
+ position: "absolute",
32083
+ bottom: "0"
32084
+ }
32085
+ }
32086
+ },
32087
+ /* @__PURE__ */ React165.createElement(UserMusicIcon, { width: "64px", height: "64px" }),
32088
+ /* @__PURE__ */ React165.createElement(Flex, { direction: "column", align: isMobile ? "center" : "start" }, /* @__PURE__ */ React165.createElement(Text, { variant: "h5" }, "Thank you for your feedback!"), /* @__PURE__ */ React165.createElement(
32089
+ Text,
32090
+ {
32091
+ variant: "body1",
32092
+ css: {
32093
+ fontWeight: "$regular",
32094
+ fontSize: "$md",
32095
+ opacity: "0.9"
32096
+ }
32097
+ },
32098
+ "Your answers help us improve."
32099
+ ))
32100
+ );
32101
+ };
32102
+
32103
+ // src/Prebuilt/components/EndCallFeedback/Feedback.tsx
32104
+ var Feedback = () => {
32105
+ const { feedback } = useRoomLayoutLeaveScreen();
32106
+ const [index, setIndex] = useState70(FEEBACK_INDEX.INIT);
32107
+ const isMobile = useMedia43(config.media.md);
32108
+ if (!feedback) {
32109
+ return null;
32110
+ }
32111
+ const { ratings } = feedback;
32112
+ if (!ratings) {
32113
+ return null;
32114
+ }
32115
+ ratings.sort((a2, b2) => {
32116
+ if (!a2.value || !b2.value) {
32117
+ return 0;
32118
+ }
32119
+ return a2.value - b2.value;
32120
+ });
32121
+ if (index === FEEBACK_INDEX.THANK_YOU) {
32122
+ return /* @__PURE__ */ React166.createElement(
32123
+ Flex,
32124
+ {
32125
+ justify: "center",
32126
+ css: {
32127
+ pt: "$16"
32128
+ }
32129
+ },
32130
+ /* @__PURE__ */ React166.createElement(ThankyouView, null)
32131
+ );
32132
+ }
32133
+ return /* @__PURE__ */ React166.createElement(
32134
+ Flex,
32135
+ {
32136
+ justify: "center",
32137
+ css: {
32138
+ pt: "$16",
32139
+ w: "528px"
32140
+ }
32141
+ },
32142
+ index === FEEBACK_INDEX.INIT ? /* @__PURE__ */ React166.createElement(
32143
+ Flex,
32144
+ {
32145
+ css: {
32146
+ p: "$12",
32147
+ border: "1px solid $border_default",
32148
+ bg: "$surface_dim",
32149
+ borderRadius: !isMobile ? "$3" : "$3 $3 0 0",
32150
+ gap: "$10",
32151
+ "@md": {
32152
+ position: "absolute",
32153
+ bottom: "0"
32154
+ }
32155
+ },
32156
+ direction: "column"
32157
+ },
32158
+ /* @__PURE__ */ React166.createElement(FeedbackHeader, { ratings, onEmojiClicked: setIndex })
32159
+ ) : /* @__PURE__ */ React166.createElement(FeedbackModal, { ratings, index, setIndex })
32160
+ );
32161
+ };
32162
+
32163
+ // src/Prebuilt/components/LeaveScreen.tsx
31660
32164
  var LeaveScreen = () => {
31661
32165
  const { rejoin } = useHMSAppStateContext();
31662
32166
  const [previewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW, defaultPreviewPreference);
31663
- return /* @__PURE__ */ React164.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React164.createElement(Box, { css: { h: "$18", "@md": { h: "$17" } }, "data-testid": "header" }, /* @__PURE__ */ React164.createElement(Header2, null)), /* @__PURE__ */ React164.createElement(
32167
+ return /* @__PURE__ */ React167.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React167.createElement(Box, { css: { h: "$18", "@md": { h: "$17" } }, "data-testid": "header" }, /* @__PURE__ */ React167.createElement(Header2, null)), /* @__PURE__ */ React167.createElement(
31664
32168
  Flex,
31665
32169
  {
31666
32170
  justify: "center",
@@ -31668,9 +32172,9 @@ var LeaveScreen = () => {
31668
32172
  align: "center",
31669
32173
  css: { bg: "$background_dim", flex: "1 1 0", position: "relative" }
31670
32174
  },
31671
- /* @__PURE__ */ React164.createElement(Text, { variant: "h2", css: { fontWeight: "$semiBold" } }, "\u{1F44B}"),
31672
- /* @__PURE__ */ React164.createElement(Text, { variant: "h4", css: { color: "$on_surface_high", fontWeight: "$semiBold", mt: "$12" } }, "You left the room"),
31673
- /* @__PURE__ */ React164.createElement(
32175
+ /* @__PURE__ */ React167.createElement(Text, { variant: "h2", css: { fontWeight: "$semiBold" } }, "\u{1F44B}"),
32176
+ /* @__PURE__ */ React167.createElement(Text, { variant: "h4", css: { color: "$on_surface_high", fontWeight: "$semiBold", mt: "$12" } }, "You left the room"),
32177
+ /* @__PURE__ */ React167.createElement(
31674
32178
  Text,
31675
32179
  {
31676
32180
  variant: "body1",
@@ -31682,10 +32186,10 @@ var LeaveScreen = () => {
31682
32186
  }
31683
32187
  },
31684
32188
  "Have a nice day",
31685
- previewPreference.name && /* @__PURE__ */ React164.createElement(Box, { as: "span", css: __spreadValues({}, textEllipsis(100)) }, ", ", previewPreference.name),
32189
+ previewPreference.name && /* @__PURE__ */ React167.createElement(Box, { as: "span", css: __spreadValues({}, textEllipsis(100)) }, ", ", previewPreference.name),
31686
32190
  "!"
31687
32191
  ),
31688
- /* @__PURE__ */ React164.createElement(Flex, { css: { mt: "$14", gap: "$10", alignItems: "center" } }, /* @__PURE__ */ React164.createElement(Text, { variant: "body1", css: { color: "$on_surface_medium", fontWeight: "$regular" } }, "Left by mistake?"), /* @__PURE__ */ React164.createElement(
32192
+ /* @__PURE__ */ React167.createElement(Flex, { css: { mt: "$14", gap: "$10", alignItems: "center" } }, /* @__PURE__ */ React167.createElement(Text, { variant: "body1", css: { color: "$on_surface_medium", fontWeight: "$regular" } }, "Left by mistake?"), /* @__PURE__ */ React167.createElement(
31689
32193
  Button,
31690
32194
  {
31691
32195
  onClick: () => {
@@ -31694,21 +32198,22 @@ var LeaveScreen = () => {
31694
32198
  },
31695
32199
  "data-testid": "join_again_btn"
31696
32200
  },
31697
- /* @__PURE__ */ React164.createElement(ExitIcon3, null),
31698
- /* @__PURE__ */ React164.createElement(Text, { css: { ml: "$3", fontWeight: "$semiBold", color: "inherit" } }, "Rejoin")
31699
- ))
32201
+ /* @__PURE__ */ React167.createElement(ExitIcon3, null),
32202
+ /* @__PURE__ */ React167.createElement(Text, { css: { ml: "$3", fontWeight: "$semiBold", color: "inherit" } }, "Rejoin")
32203
+ )),
32204
+ /* @__PURE__ */ React167.createElement(Feedback, null)
31700
32205
  ));
31701
32206
  };
31702
32207
 
31703
32208
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
31704
32209
  init_define_process_env();
31705
- import React165, { useEffect as useEffect63, useState as useState69 } from "react";
31706
- import { useMedia as useMedia41 } from "react-use";
31707
- import { match as match14, P as P5 } from "ts-pattern";
32210
+ import React168, { useEffect as useEffect63, useState as useState71 } from "react";
32211
+ import { useMedia as useMedia44 } from "react-use";
32212
+ import { match as match14, P as P6 } from "ts-pattern";
31708
32213
  import { RefreshIcon } from "@100mslive/react-icons";
31709
32214
  var MwebLandscapePrompt = () => {
31710
- const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState69(false);
31711
- const isLandscape = useMedia41(config.media.ls);
32215
+ const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState71(false);
32216
+ const isLandscape = useMedia44(config.media.ls);
31712
32217
  const isLandscapeHLSStream = useLandscapeHLSStream();
31713
32218
  useEffect63(() => {
31714
32219
  var _a7;
@@ -31724,7 +32229,7 @@ var MwebLandscapePrompt = () => {
31724
32229
  const angle = window.screen.orientation.angle;
31725
32230
  const type = window.screen.orientation.type || "";
31726
32231
  setShowMwebLandscapePrompt(
31727
- match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P5.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
32232
+ match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P6.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
31728
32233
  );
31729
32234
  };
31730
32235
  handleRotation();
@@ -31736,7 +32241,7 @@ var MwebLandscapePrompt = () => {
31736
32241
  if (isLandscapeHLSStream) {
31737
32242
  return null;
31738
32243
  }
31739
- return /* @__PURE__ */ React165.createElement(Dialog.Root, { open: showMwebLandscapePrompt, onOpenChange: setShowMwebLandscapePrompt }, /* @__PURE__ */ React165.createElement(Dialog.Portal, null, /* @__PURE__ */ React165.createElement(Dialog.Overlay, null), /* @__PURE__ */ React165.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React165.createElement(Box, null, /* @__PURE__ */ React165.createElement(
32244
+ return /* @__PURE__ */ React168.createElement(Dialog.Root, { open: showMwebLandscapePrompt, onOpenChange: setShowMwebLandscapePrompt }, /* @__PURE__ */ React168.createElement(Dialog.Portal, null, /* @__PURE__ */ React168.createElement(Dialog.Overlay, null), /* @__PURE__ */ React168.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React168.createElement(Box, null, /* @__PURE__ */ React168.createElement(
31740
32245
  Flex,
31741
32246
  {
31742
32247
  css: {
@@ -31745,9 +32250,9 @@ var MwebLandscapePrompt = () => {
31745
32250
  alignItems: "center"
31746
32251
  }
31747
32252
  },
31748
- /* @__PURE__ */ React165.createElement(RefreshIcon, { style: { marginRight: "0.5rem" } }),
31749
- /* @__PURE__ */ React165.createElement(Text, { variant: "lg", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, "Please rotate your device")
31750
- ), /* @__PURE__ */ React165.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "We do not support landscape mode as of now, please use the app in portrait mode for the best experience."), /* @__PURE__ */ React165.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React165.createElement(Button, { outlined: true, variant: "standard", css: { w: "100%" }, onClick: () => setShowMwebLandscapePrompt(false) }, "Continue anyway"))))));
32253
+ /* @__PURE__ */ React168.createElement(RefreshIcon, { style: { marginRight: "0.5rem" } }),
32254
+ /* @__PURE__ */ React168.createElement(Text, { variant: "lg", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, "Please rotate your device")
32255
+ ), /* @__PURE__ */ React168.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "We do not support landscape mode as of now, please use the app in portrait mode for the best experience."), /* @__PURE__ */ React168.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React168.createElement(Button, { outlined: true, variant: "standard", css: { w: "100%" }, onClick: () => setShowMwebLandscapePrompt(false) }, "Continue anyway"))))));
31751
32256
  };
31752
32257
 
31753
32258
  // src/Prebuilt/components/Notifications/index.tsx
@@ -31755,7 +32260,7 @@ init_define_process_env();
31755
32260
 
31756
32261
  // src/Prebuilt/components/Notifications/Notifications.tsx
31757
32262
  init_define_process_env();
31758
- import React174, { useCallback as useCallback36, useEffect as useEffect74 } from "react";
32263
+ import React177, { useCallback as useCallback36, useEffect as useEffect74 } from "react";
31759
32264
  import {
31760
32265
  HMSNotificationTypes as HMSNotificationTypes11,
31761
32266
  HMSRoomState as HMSRoomState10,
@@ -31773,11 +32278,11 @@ import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
31773
32278
 
31774
32279
  // src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx
31775
32280
  init_define_process_env();
31776
- import React166 from "react";
32281
+ import React169 from "react";
31777
32282
  import { useAutoplayError } from "@100mslive/react-sdk";
31778
32283
  function AutoplayBlockedModal() {
31779
32284
  const { error, resetError, unblockAudio } = useAutoplayError();
31780
- return /* @__PURE__ */ React166.createElement(
32285
+ return /* @__PURE__ */ React169.createElement(
31781
32286
  Dialog.Root,
31782
32287
  {
31783
32288
  open: !!error,
@@ -31788,7 +32293,7 @@ function AutoplayBlockedModal() {
31788
32293
  resetError();
31789
32294
  }
31790
32295
  },
31791
- /* @__PURE__ */ React166.createElement(DialogContent, { title: "Permission Error", closeable: false }, /* @__PURE__ */ React166.createElement(DialogRow, null, /* @__PURE__ */ React166.createElement(Text, { variant: "md" }, "The browser wants us to get a confirmation for playing the Audio. Please allow audio to proceed.")), /* @__PURE__ */ React166.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React166.createElement(
32296
+ /* @__PURE__ */ React169.createElement(DialogContent, { title: "Permission Error", closeable: false }, /* @__PURE__ */ React169.createElement(DialogRow, null, /* @__PURE__ */ React169.createElement(Text, { variant: "md" }, "The browser wants us to get a confirmation for playing the Audio. Please allow audio to proceed.")), /* @__PURE__ */ React169.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React169.createElement(
31792
32297
  Button,
31793
32298
  {
31794
32299
  variant: "primary",
@@ -31804,7 +32309,7 @@ function AutoplayBlockedModal() {
31804
32309
 
31805
32310
  // src/Prebuilt/components/Notifications/ChatNotifications.tsx
31806
32311
  init_define_process_env();
31807
- import React167, { useEffect as useEffect64 } from "react";
32312
+ import React170, { useEffect as useEffect64 } from "react";
31808
32313
  import { v4 as uuid4 } from "uuid";
31809
32314
  import { selectLocalPeerID as selectLocalPeerID14, selectSessionStore as selectSessionStore13, useHMSStore as useHMSStore88 } from "@100mslive/react-sdk";
31810
32315
  import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
@@ -31823,12 +32328,12 @@ var ChatNotifications = () => {
31823
32328
  }
31824
32329
  const notification = {
31825
32330
  id: uuid4(),
31826
- icon: chatState.enabled ? /* @__PURE__ */ React167.createElement(ChatUnreadIcon, null) : /* @__PURE__ */ React167.createElement(ChatIcon2, null),
32331
+ icon: chatState.enabled ? /* @__PURE__ */ React170.createElement(ChatUnreadIcon, null) : /* @__PURE__ */ React170.createElement(ChatIcon2, null),
31827
32332
  title: `Chat ${chatState.enabled ? "resumed" : "paused"} by ${(_b7 = chatState.updatedBy) == null ? void 0 : _b7.userName}`
31828
32333
  };
31829
32334
  ToastManager.addToast(notification);
31830
32335
  }, [chatState, localPeerId]);
31831
- return /* @__PURE__ */ React167.createElement(React167.Fragment, null);
32336
+ return /* @__PURE__ */ React170.createElement(React170.Fragment, null);
31832
32337
  };
31833
32338
 
31834
32339
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
@@ -31854,8 +32359,8 @@ init_define_process_env();
31854
32359
 
31855
32360
  // src/Prebuilt/components/Toast/ToastConfig.jsx
31856
32361
  init_define_process_env();
31857
- import React168, { useCallback as useCallback35 } from "react";
31858
- import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions52, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
32362
+ import React171, { useCallback as useCallback35 } from "react";
32363
+ import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions53, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
31859
32364
  import {
31860
32365
  ChatUnreadIcon as ChatUnreadIcon2,
31861
32366
  ConnectivityIcon,
@@ -31864,17 +32369,17 @@ import {
31864
32369
  PeopleRemoveIcon as PeopleRemoveIcon4,
31865
32370
  PoorConnectivityIcon as PoorConnectivityIcon2
31866
32371
  } from "@100mslive/react-icons";
31867
- var ChatAction = React168.forwardRef((_, ref) => {
32372
+ var ChatAction = React171.forwardRef((_, ref) => {
31868
32373
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
31869
32374
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
31870
32375
  if (isChatOpen) {
31871
32376
  return null;
31872
32377
  }
31873
- return /* @__PURE__ */ React168.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
32378
+ return /* @__PURE__ */ React171.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
31874
32379
  });
31875
- var HandRaiseAction = React168.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
32380
+ var HandRaiseAction = React171.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
31876
32381
  var _a7, _b7, _c;
31877
- const hmsActions = useHMSActions52();
32382
+ const hmsActions = useHMSActions53();
31878
32383
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
31879
32384
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
31880
32385
  const peer = useHMSStore89(selectPeerByID5(id));
@@ -31906,7 +32411,7 @@ var HandRaiseAction = React168.forwardRef(({ id = "", isSingleHandRaise = true }
31906
32411
  if (isSingleHandRaise && (!peer || !off_stage_roles.includes(peer.roleName))) {
31907
32412
  return null;
31908
32413
  }
31909
- return /* @__PURE__ */ React168.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: onClickHandler, ref }, isSingleHandRaise ? bring_to_stage_label : "View");
32414
+ return /* @__PURE__ */ React171.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: onClickHandler, ref }, isSingleHandRaise ? bring_to_stage_label : "View");
31910
32415
  });
31911
32416
  var ToastConfig = {
31912
32417
  PEER_JOINED: {
@@ -31914,13 +32419,13 @@ var ToastConfig = {
31914
32419
  var _a7;
31915
32420
  return {
31916
32421
  title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
31917
- icon: /* @__PURE__ */ React168.createElement(PeopleAddIcon4, null)
32422
+ icon: /* @__PURE__ */ React171.createElement(PeopleAddIcon4, null)
31918
32423
  };
31919
32424
  },
31920
32425
  multiple: function(notifications) {
31921
32426
  return {
31922
32427
  title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others joined`,
31923
- icon: /* @__PURE__ */ React168.createElement(PeopleAddIcon4, null)
32428
+ icon: /* @__PURE__ */ React171.createElement(PeopleAddIcon4, null)
31924
32429
  };
31925
32430
  }
31926
32431
  },
@@ -31929,13 +32434,13 @@ var ToastConfig = {
31929
32434
  var _a7;
31930
32435
  return {
31931
32436
  title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
31932
- icon: /* @__PURE__ */ React168.createElement(PeopleRemoveIcon4, null)
32437
+ icon: /* @__PURE__ */ React171.createElement(PeopleRemoveIcon4, null)
31933
32438
  };
31934
32439
  },
31935
32440
  multiple: function(notifications) {
31936
32441
  return {
31937
32442
  title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others left`,
31938
- icon: /* @__PURE__ */ React168.createElement(PeopleRemoveIcon4, null)
32443
+ icon: /* @__PURE__ */ React171.createElement(PeopleRemoveIcon4, null)
31939
32444
  };
31940
32445
  }
31941
32446
  },
@@ -31944,7 +32449,7 @@ var ToastConfig = {
31944
32449
  var _a7;
31945
32450
  return {
31946
32451
  title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
31947
- icon: /* @__PURE__ */ React168.createElement(HandIcon6, null)
32452
+ icon: /* @__PURE__ */ React171.createElement(HandIcon6, null)
31948
32453
  };
31949
32454
  },
31950
32455
  multiple: (notifications) => {
@@ -31955,7 +32460,7 @@ var ToastConfig = {
31955
32460
  })).size;
31956
32461
  return {
31957
32462
  title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
31958
- icon: /* @__PURE__ */ React168.createElement(HandIcon6, null)
32463
+ icon: /* @__PURE__ */ React171.createElement(HandIcon6, null)
31959
32464
  };
31960
32465
  }
31961
32466
  },
@@ -31964,8 +32469,8 @@ var ToastConfig = {
31964
32469
  var _a7, _b7;
31965
32470
  return {
31966
32471
  title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
31967
- icon: /* @__PURE__ */ React168.createElement(HandIcon6, null),
31968
- action: /* @__PURE__ */ React168.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
32472
+ icon: /* @__PURE__ */ React171.createElement(HandIcon6, null),
32473
+ action: /* @__PURE__ */ React171.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
31969
32474
  };
31970
32475
  },
31971
32476
  multiple: (notifications) => {
@@ -31976,8 +32481,8 @@ var ToastConfig = {
31976
32481
  })).size;
31977
32482
  return {
31978
32483
  title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
31979
- icon: /* @__PURE__ */ React168.createElement(HandIcon6, null),
31980
- action: /* @__PURE__ */ React168.createElement(HandRaiseAction, { isSingleHandRaise: false })
32484
+ icon: /* @__PURE__ */ React171.createElement(HandIcon6, null),
32485
+ action: /* @__PURE__ */ React171.createElement(HandRaiseAction, { isSingleHandRaise: false })
31981
32486
  };
31982
32487
  }
31983
32488
  },
@@ -31986,15 +32491,15 @@ var ToastConfig = {
31986
32491
  var _a7;
31987
32492
  return {
31988
32493
  title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
31989
- icon: /* @__PURE__ */ React168.createElement(ChatUnreadIcon2, null),
31990
- action: /* @__PURE__ */ React168.createElement(ChatAction, null)
32494
+ icon: /* @__PURE__ */ React171.createElement(ChatUnreadIcon2, null),
32495
+ action: /* @__PURE__ */ React171.createElement(ChatAction, null)
31991
32496
  };
31992
32497
  },
31993
32498
  multiple: (notifications) => {
31994
32499
  return {
31995
32500
  title: `${notifications.length} new messages`,
31996
- icon: /* @__PURE__ */ React168.createElement(ChatUnreadIcon2, null),
31997
- action: /* @__PURE__ */ React168.createElement(ChatAction, null)
32501
+ icon: /* @__PURE__ */ React171.createElement(ChatUnreadIcon2, null),
32502
+ action: /* @__PURE__ */ React171.createElement(ChatAction, null)
31998
32503
  };
31999
32504
  }
32000
32505
  },
@@ -32002,7 +32507,7 @@ var ToastConfig = {
32002
32507
  single: (online) => {
32003
32508
  return {
32004
32509
  title: `You are now ${online ? "online" : "connected"}`,
32005
- icon: /* @__PURE__ */ React168.createElement(ConnectivityIcon, null),
32510
+ icon: /* @__PURE__ */ React171.createElement(ConnectivityIcon, null),
32006
32511
  variant: "success",
32007
32512
  duration: 3e3
32008
32513
  };
@@ -32014,7 +32519,7 @@ var ToastConfig = {
32014
32519
  title: `You are offline for now. while we try to reconnect, please check
32015
32520
  your internet connection. ${message}.
32016
32521
  `,
32017
- icon: /* @__PURE__ */ React168.createElement(PoorConnectivityIcon2, null),
32522
+ icon: /* @__PURE__ */ React171.createElement(PoorConnectivityIcon2, null),
32018
32523
  variant: "warning",
32019
32524
  duration: 3e4
32020
32525
  };
@@ -32133,12 +32638,12 @@ var HandRaisedNotifications = () => {
32133
32638
 
32134
32639
  // src/Prebuilt/components/Notifications/InitErrorModal.tsx
32135
32640
  init_define_process_env();
32136
- import React169, { useEffect as useEffect66, useState as useState70 } from "react";
32641
+ import React172, { useEffect as useEffect66, useState as useState72 } from "react";
32137
32642
  import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
32138
32643
  var InitErrorModal = () => {
32139
32644
  const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
32140
- const [showModal, setShowModal] = useState70(false);
32141
- const [info, setInfo] = useState70({ title: "Init Error", description: "" });
32645
+ const [showModal, setShowModal] = useState72(false);
32646
+ const [info, setInfo] = useState72({ title: "Init Error", description: "" });
32142
32647
  useEffect66(() => {
32143
32648
  const data3 = notification == null ? void 0 : notification.data;
32144
32649
  if (!data3 || data3.action !== "INIT") {
@@ -32159,7 +32664,7 @@ var InitErrorModal = () => {
32159
32664
  setInfo({ title, description });
32160
32665
  setShowModal(true);
32161
32666
  }, [notification]);
32162
- return /* @__PURE__ */ React169.createElement(ErrorDialog, { open: showModal, onOpenChange: setShowModal, title: info.title }, /* @__PURE__ */ React169.createElement(Text, { variant: "sm", css: { wordBreak: "break-word" } }, info.description, " ", /* @__PURE__ */ React169.createElement("br", null), "Current URL - ", window.location.href));
32667
+ return /* @__PURE__ */ React172.createElement(ErrorDialog, { open: showModal, onOpenChange: setShowModal, title: info.title }, /* @__PURE__ */ React172.createElement(Text, { variant: "sm", css: { wordBreak: "break-word" } }, info.description, " ", /* @__PURE__ */ React172.createElement("br", null), "Current URL - ", window.location.href));
32163
32668
  };
32164
32669
 
32165
32670
  // src/Prebuilt/components/Notifications/PeerNotifications.tsx
@@ -32201,8 +32706,8 @@ var PeerNotifications = () => {
32201
32706
 
32202
32707
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
32203
32708
  init_define_process_env();
32204
- import React170, { useEffect as useEffect68, useState as useState71 } from "react";
32205
- import { useMedia as useMedia42 } from "react-use";
32709
+ import React173, { useEffect as useEffect68, useState as useState73 } from "react";
32710
+ import { useMedia as useMedia45 } from "react-use";
32206
32711
  import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
32207
32712
 
32208
32713
  // src/Prebuilt/images/android-perm-1.png
@@ -32214,12 +32719,12 @@ var ios_perm_0_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAACh
32214
32719
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
32215
32720
  function PermissionErrorNotificationModal() {
32216
32721
  const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
32217
- return /* @__PURE__ */ React170.createElement(PermissionErrorModal, { error: notification == null ? void 0 : notification.data });
32722
+ return /* @__PURE__ */ React173.createElement(PermissionErrorModal, { error: notification == null ? void 0 : notification.data });
32218
32723
  }
32219
32724
  var PermissionErrorModal = ({ error }) => {
32220
- const [deviceType, setDeviceType] = useState71("");
32221
- const [isSystemError, setIsSystemError] = useState71(false);
32222
- const isMobile = useMedia42(config.media.md);
32725
+ const [deviceType, setDeviceType] = useState73("");
32726
+ const [isSystemError, setIsSystemError] = useState73(false);
32727
+ const isMobile = useMedia45(config.media.md);
32223
32728
  useEffect68(() => {
32224
32729
  if (!error || (error == null ? void 0 : error.code) !== 3001 && (error == null ? void 0 : error.code) !== 3011 || (error == null ? void 0 : error.code) === 3001 && (error == null ? void 0 : error.message.includes("screen"))) {
32225
32730
  return;
@@ -32239,7 +32744,7 @@ var PermissionErrorModal = ({ error }) => {
32239
32744
  }
32240
32745
  setIsSystemError(error.code === 3011);
32241
32746
  }, [error]);
32242
- return deviceType ? /* @__PURE__ */ React170.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ React170.createElement(Dialog.Portal, null, /* @__PURE__ */ React170.createElement(Dialog.Overlay, null), /* @__PURE__ */ React170.createElement(
32747
+ return deviceType ? /* @__PURE__ */ React173.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ React173.createElement(Dialog.Portal, null, /* @__PURE__ */ React173.createElement(Dialog.Overlay, null), /* @__PURE__ */ React173.createElement(
32243
32748
  Dialog.Content,
32244
32749
  {
32245
32750
  css: {
@@ -32249,15 +32754,15 @@ var PermissionErrorModal = ({ error }) => {
32249
32754
  zIndex: 23
32250
32755
  }
32251
32756
  },
32252
- /* @__PURE__ */ React170.createElement(
32757
+ /* @__PURE__ */ React173.createElement(
32253
32758
  Dialog.Title,
32254
32759
  {
32255
32760
  css: {
32256
32761
  borderBottom: "1px solid $border_default"
32257
32762
  }
32258
32763
  },
32259
- isMobile && isIOS ? /* @__PURE__ */ React170.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
32260
- isMobile && isAndroid ? /* @__PURE__ */ React170.createElement(
32764
+ isMobile && isIOS ? /* @__PURE__ */ React173.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
32765
+ isMobile && isAndroid ? /* @__PURE__ */ React173.createElement(
32261
32766
  "img",
32262
32767
  {
32263
32768
  src: android_perm_1_default,
@@ -32265,12 +32770,12 @@ var PermissionErrorModal = ({ error }) => {
32265
32770
  alt: "Android Permission flow "
32266
32771
  }
32267
32772
  ) : null,
32268
- /* @__PURE__ */ React170.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
32773
+ /* @__PURE__ */ React173.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
32269
32774
  ),
32270
- /* @__PURE__ */ React170.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ? 'Enable permissions by reloading this page and clicking "Allow" on the pop-up, or change settings from the address bar.' : null, isMobile && isAndroid ? `To allow other users to see and hear you, click the blocked camera icon in your browser's address bar.` : null, !isMobile ? `Access to ${deviceType} is required. ` : null, isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from sytem settings` : null, !isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from address bar or browser settings.` : null),
32271
- isMobile && isIOS ? /* @__PURE__ */ React170.createElement(React170.Fragment, null, /* @__PURE__ */ React170.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ React170.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
32272
- isMobile && isAndroid ? /* @__PURE__ */ React170.createElement(React170.Fragment, null, /* @__PURE__ */ React170.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ React170.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
32273
- !isMobile ? /* @__PURE__ */ React170.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ React170.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
32775
+ /* @__PURE__ */ React173.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ? 'Enable permissions by reloading this page and clicking "Allow" on the pop-up, or change settings from the address bar.' : null, isMobile && isAndroid ? `To allow other users to see and hear you, click the blocked camera icon in your browser's address bar.` : null, !isMobile ? `Access to ${deviceType} is required. ` : null, isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from sytem settings` : null, !isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from address bar or browser settings.` : null),
32776
+ isMobile && isIOS ? /* @__PURE__ */ React173.createElement(React173.Fragment, null, /* @__PURE__ */ React173.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ React173.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
32777
+ isMobile && isAndroid ? /* @__PURE__ */ React173.createElement(React173.Fragment, null, /* @__PURE__ */ React173.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ React173.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
32778
+ !isMobile ? /* @__PURE__ */ React173.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ React173.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
32274
32779
  ))) : null;
32275
32780
  };
32276
32781
 
@@ -32310,16 +32815,16 @@ var ReconnectNotifications = () => {
32310
32815
 
32311
32816
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
32312
32817
  init_define_process_env();
32313
- import React171, { useEffect as useEffect70, useState as useState72 } from "react";
32818
+ import React174, { useEffect as useEffect70, useState as useState74 } from "react";
32314
32819
  import {
32315
32820
  HMSNotificationTypes as HMSNotificationTypes7,
32316
- useHMSActions as useHMSActions53,
32821
+ useHMSActions as useHMSActions54,
32317
32822
  useHMSNotifications as useHMSNotifications7
32318
32823
  } from "@100mslive/react-sdk";
32319
32824
  import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
32320
32825
  var TrackBulkUnmuteModal = () => {
32321
- const hmsActions = useHMSActions53();
32322
- const [muteNotification, setMuteNotification] = useState72(null);
32826
+ const hmsActions = useHMSActions54();
32827
+ const [muteNotification, setMuteNotification] = useState74(null);
32323
32828
  const notification = useHMSNotifications7([
32324
32829
  HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
32325
32830
  HMSNotificationTypes7.ROOM_ENDED,
@@ -32345,7 +32850,7 @@ var TrackBulkUnmuteModal = () => {
32345
32850
  }
32346
32851
  const { requestedBy: peer, tracks, enabled } = muteNotification;
32347
32852
  const types = new Set(tracks.map((track) => track.type));
32348
- return /* @__PURE__ */ React171.createElement(
32853
+ return /* @__PURE__ */ React174.createElement(
32349
32854
  RequestDialog,
32350
32855
  {
32351
32856
  title: "Unmute request",
@@ -32384,21 +32889,21 @@ var TrackNotifications = () => {
32384
32889
 
32385
32890
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
32386
32891
  init_define_process_env();
32387
- import React172, { useEffect as useEffect72, useState as useState73 } from "react";
32892
+ import React175, { useEffect as useEffect72, useState as useState75 } from "react";
32388
32893
  import {
32389
32894
  HMSNotificationTypes as HMSNotificationTypes9,
32390
- useHMSActions as useHMSActions54,
32895
+ useHMSActions as useHMSActions55,
32391
32896
  useHMSNotifications as useHMSNotifications9
32392
32897
  } from "@100mslive/react-sdk";
32393
32898
  import { MicOnIcon as MicOnIcon6 } from "@100mslive/react-icons";
32394
32899
  var TrackUnmuteModal = () => {
32395
- const hmsActions = useHMSActions54();
32900
+ const hmsActions = useHMSActions55();
32396
32901
  const notification = useHMSNotifications9([
32397
32902
  HMSNotificationTypes9.CHANGE_TRACK_STATE_REQUEST,
32398
32903
  HMSNotificationTypes9.ROOM_ENDED,
32399
32904
  HMSNotificationTypes9.REMOVED_FROM_ROOM
32400
32905
  ]);
32401
- const [muteNotification, setMuteNotification] = useState73(null);
32906
+ const [muteNotification, setMuteNotification] = useState75(null);
32402
32907
  useEffect72(() => {
32403
32908
  switch (notification == null ? void 0 : notification.type) {
32404
32909
  case HMSNotificationTypes9.REMOVED_FROM_ROOM:
@@ -32418,7 +32923,7 @@ var TrackUnmuteModal = () => {
32418
32923
  return null;
32419
32924
  }
32420
32925
  const { requestedBy: peer, track, enabled } = muteNotification;
32421
- return /* @__PURE__ */ React172.createElement(
32926
+ return /* @__PURE__ */ React175.createElement(
32422
32927
  RequestDialog,
32423
32928
  {
32424
32929
  title: `Unmute your ${track.type}?`,
@@ -32435,7 +32940,7 @@ var TrackUnmuteModal = () => {
32435
32940
 
32436
32941
  // src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
32437
32942
  init_define_process_env();
32438
- import React173, { useEffect as useEffect73 } from "react";
32943
+ import React176, { useEffect as useEffect73 } from "react";
32439
32944
  import { match as match15 } from "ts-pattern";
32440
32945
  import { HMSNotificationTypes as HMSNotificationTypes10, HMSTranscriptionState, useHMSNotifications as useHMSNotifications10 } from "@100mslive/react-sdk";
32441
32946
  import { AlertTriangleIcon as AlertTriangleIcon8, ClosedCaptionIcon as ClosedCaptionIcon3, OpenCaptionIcon as OpenCaptionIcon4 } from "@100mslive/react-icons";
@@ -32456,7 +32961,7 @@ var TranscriptionNotifications = () => {
32456
32961
  id = ToastManager.replaceToast(toastId, {
32457
32962
  title: `Failed to enable Closed Caption`,
32458
32963
  variant: "error",
32459
- icon: /* @__PURE__ */ React173.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
32964
+ icon: /* @__PURE__ */ React176.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
32460
32965
  });
32461
32966
  }
32462
32967
  ).with({ state: HMSTranscriptionState.STARTED }, () => {
@@ -32464,14 +32969,14 @@ var TranscriptionNotifications = () => {
32464
32969
  title: `Closed Captioning enabled for everyone`,
32465
32970
  variant: "standard",
32466
32971
  duration: 2e3,
32467
- icon: /* @__PURE__ */ React173.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
32972
+ icon: /* @__PURE__ */ React176.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
32468
32973
  });
32469
32974
  }).with({ state: HMSTranscriptionState.STOPPED }, () => {
32470
32975
  id = ToastManager.replaceToast(toastId, {
32471
32976
  title: `Closed Captioning disabled for everyone`,
32472
32977
  variant: "standard",
32473
32978
  duration: 2e3,
32474
- icon: /* @__PURE__ */ React173.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
32979
+ icon: /* @__PURE__ */ React176.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
32475
32980
  });
32476
32981
  }).otherwise(() => null);
32477
32982
  setToastId(id);
@@ -32505,7 +33010,7 @@ function Notifications() {
32505
33010
  }, []);
32506
33011
  useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
32507
33012
  useEffect74(() => {
32508
- var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
33013
+ var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p, _q;
32509
33014
  if (!notification || isNotificationDisabled) {
32510
33015
  return;
32511
33016
  }
@@ -32523,7 +33028,7 @@ function Notifications() {
32523
33028
  ToastManager.addToast({
32524
33029
  title: "The room is currently full, try joining later",
32525
33030
  close: true,
32526
- icon: /* @__PURE__ */ React174.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React174.createElement(GroupIcon2, null))
33031
+ icon: /* @__PURE__ */ React177.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React177.createElement(GroupIcon2, null))
32527
33032
  });
32528
33033
  } else {
32529
33034
  ToastManager.addToast({
@@ -32546,7 +33051,7 @@ function Notifications() {
32546
33051
  });
32547
33052
  break;
32548
33053
  case HMSNotificationTypes11.ROLE_UPDATED: {
32549
- if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
33054
+ if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
32550
33055
  ToastManager.addToast({
32551
33056
  title: `You are now a ${notification.data.roleName}`
32552
33057
  });
@@ -32580,7 +33085,7 @@ function Notifications() {
32580
33085
  const pollStartedBy = vanillaStore.getState(selectPeerNameByID7(notification.data.startedBy)) || "Participant";
32581
33086
  const pollToastID = ToastManager.addToast({
32582
33087
  title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
32583
- action: /* @__PURE__ */ React174.createElement(
33088
+ action: /* @__PURE__ */ React177.createElement(
32584
33089
  Button,
32585
33090
  {
32586
33091
  onClick: () => togglePollView(notification.data.id),
@@ -32621,15 +33126,15 @@ function Notifications() {
32621
33126
  if (isNotificationDisabled) {
32622
33127
  return null;
32623
33128
  }
32624
- return /* @__PURE__ */ React174.createElement(React174.Fragment, null, /* @__PURE__ */ React174.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React174.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React174.createElement(TrackNotifications, null), roomState === HMSRoomState10.Connected ? /* @__PURE__ */ React174.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React174.createElement(ReconnectNotifications, null), /* @__PURE__ */ React174.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React174.createElement(PermissionErrorNotificationModal, null), /* @__PURE__ */ React174.createElement(InitErrorModal, null), /* @__PURE__ */ React174.createElement(ChatNotifications, null), /* @__PURE__ */ React174.createElement(HandRaisedNotifications, null), /* @__PURE__ */ React174.createElement(TranscriptionNotifications, null));
33129
+ return /* @__PURE__ */ React177.createElement(React177.Fragment, null, /* @__PURE__ */ React177.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React177.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React177.createElement(TrackNotifications, null), roomState === HMSRoomState10.Connected ? /* @__PURE__ */ React177.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React177.createElement(ReconnectNotifications, null), /* @__PURE__ */ React177.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React177.createElement(PermissionErrorNotificationModal, null), /* @__PURE__ */ React177.createElement(InitErrorModal, null), /* @__PURE__ */ React177.createElement(ChatNotifications, null), /* @__PURE__ */ React177.createElement(HandRaisedNotifications, null), /* @__PURE__ */ React177.createElement(TranscriptionNotifications, null));
32625
33130
  }
32626
33131
 
32627
33132
  // src/Prebuilt/components/PIP/PIPProvider.tsx
32628
33133
  init_define_process_env();
32629
- import React175, { useCallback as useCallback37, useMemo as useMemo22, useState as useState74 } from "react";
33134
+ import React178, { useCallback as useCallback37, useMemo as useMemo22, useState as useState76 } from "react";
32630
33135
  var PIPProvider = ({ children }) => {
32631
33136
  const isSupported = "documentPictureInPicture" in window;
32632
- const [pipWindow, setPipWindow] = useState74(null);
33137
+ const [pipWindow, setPipWindow] = useState76(null);
32633
33138
  const closePipWindow = useCallback37(() => {
32634
33139
  if (pipWindow != null) {
32635
33140
  pipWindow.close();
@@ -32660,12 +33165,12 @@ var PIPProvider = ({ children }) => {
32660
33165
  closePipWindow
32661
33166
  };
32662
33167
  }, [closePipWindow, isSupported, pipWindow, requestPipWindow]);
32663
- return /* @__PURE__ */ React175.createElement(PIPContext.Provider, { value }, children);
33168
+ return /* @__PURE__ */ React178.createElement(PIPContext.Provider, { value }, children);
32664
33169
  };
32665
33170
 
32666
33171
  // src/Prebuilt/components/Preview/PreviewScreen.tsx
32667
33172
  init_define_process_env();
32668
- import React176 from "react";
33173
+ import React179 from "react";
32669
33174
  import { useSearchParam } from "react-use";
32670
33175
  var PreviewScreen = () => {
32671
33176
  var _a7, _b7, _c;
@@ -32677,28 +33182,28 @@ var PreviewScreen = () => {
32677
33182
  const authToken = useAuthToken();
32678
33183
  const roomLayout = useRoomLayout();
32679
33184
  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) || {};
32680
- return /* @__PURE__ */ React176.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React176.createElement(
33185
+ return /* @__PURE__ */ React179.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React179.createElement(
32681
33186
  Flex,
32682
33187
  {
32683
33188
  css: { flex: "1 1 0", position: "relative", overflowY: "auto", color: "$primary_default" },
32684
33189
  justify: "center",
32685
33190
  align: "center"
32686
33191
  },
32687
- authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ React176.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole != null ? previewAsRole : void 0 }) : /* @__PURE__ */ React176.createElement(FullPageProgress_default, null)
33192
+ authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ React179.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole != null ? previewAsRole : void 0 }) : /* @__PURE__ */ React179.createElement(FullPageProgress_default, null)
32688
33193
  ));
32689
33194
  };
32690
33195
 
32691
33196
  // src/Prebuilt/components/Toast/ToastContainer.jsx
32692
33197
  init_define_process_env();
32693
- import React178, { useEffect as useEffect75, useState as useState75 } from "react";
33198
+ import React181, { useEffect as useEffect75, useState as useState77 } from "react";
32694
33199
  import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
32695
33200
 
32696
33201
  // src/Prebuilt/components/Toast/Toast.jsx
32697
33202
  init_define_process_env();
32698
- import React177 from "react";
33203
+ import React180 from "react";
32699
33204
  var Toast2 = (_a7) => {
32700
33205
  var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
32701
- return /* @__PURE__ */ React177.createElement(
33206
+ return /* @__PURE__ */ React180.createElement(
32702
33207
  Toast.HMSToast,
32703
33208
  __spreadValues({
32704
33209
  title,
@@ -32715,16 +33220,16 @@ var Toast2 = (_a7) => {
32715
33220
  // src/Prebuilt/components/Toast/ToastContainer.jsx
32716
33221
  var ToastContainer = () => {
32717
33222
  const isConnected = useHMSStore92(selectIsConnectedToRoom11);
32718
- const [toasts, setToast] = useState75([]);
33223
+ const [toasts, setToast] = useState77([]);
32719
33224
  useEffect75(() => {
32720
33225
  ToastManager.addListener(setToast);
32721
33226
  return () => {
32722
33227
  ToastManager.removeListener(setToast);
32723
33228
  };
32724
33229
  }, []);
32725
- return /* @__PURE__ */ React178.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
32726
- return /* @__PURE__ */ React178.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
32727
- }), /* @__PURE__ */ React178.createElement(
33230
+ return /* @__PURE__ */ React181.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
33231
+ return /* @__PURE__ */ React181.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
33232
+ }), /* @__PURE__ */ React181.createElement(
32728
33233
  Toast.Viewport,
32729
33234
  {
32730
33235
  css: __spreadValues({
@@ -32736,27 +33241,27 @@ var ToastContainer = () => {
32736
33241
 
32737
33242
  // src/Prebuilt/layouts/Sheet.tsx
32738
33243
  init_define_process_env();
32739
- import React180 from "react";
33244
+ import React183 from "react";
32740
33245
  import { selectAppData as selectAppData14, useHMSStore as useHMSStore93 } from "@100mslive/react-sdk";
32741
33246
 
32742
33247
  // src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
32743
33248
  init_define_process_env();
32744
- import React179 from "react";
32745
- import { CrossIcon as CrossIcon28 } from "@100mslive/react-icons";
33249
+ import React182 from "react";
33250
+ import { CrossIcon as CrossIcon29 } from "@100mslive/react-icons";
32746
33251
  var RoomDetailsSheet = () => {
32747
33252
  const { title, description, details } = useRoomLayoutHeader();
32748
33253
  const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
32749
33254
  const showRoomDetailsSheet = useIsSheetTypeOpen(SHEET_OPTIONS.ROOM_DETAILS);
32750
- return /* @__PURE__ */ React179.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ React179.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ React179.createElement(
33255
+ return /* @__PURE__ */ React182.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ React182.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ React182.createElement(
32751
33256
  Flex,
32752
33257
  {
32753
33258
  justify: "between",
32754
33259
  align: "center",
32755
33260
  css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
32756
33261
  },
32757
- /* @__PURE__ */ React179.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
32758
- /* @__PURE__ */ React179.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React179.createElement(CrossIcon28, null))
32759
- ), /* @__PURE__ */ React179.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ React179.createElement(Logo, null), /* @__PURE__ */ React179.createElement(Box, null, /* @__PURE__ */ React179.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React179.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ React179.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
33262
+ /* @__PURE__ */ React182.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
33263
+ /* @__PURE__ */ React182.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React182.createElement(CrossIcon29, null))
33264
+ ), /* @__PURE__ */ React182.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ React182.createElement(Logo, null), /* @__PURE__ */ React182.createElement(Box, null, /* @__PURE__ */ React182.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React182.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ React182.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
32760
33265
  };
32761
33266
 
32762
33267
  // src/Prebuilt/layouts/Sheet.tsx
@@ -32764,21 +33269,21 @@ var Sheet2 = () => {
32764
33269
  const sheet = useHMSStore93(selectAppData14(APP_DATA.sheet));
32765
33270
  let ViewComponent;
32766
33271
  if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
32767
- ViewComponent = /* @__PURE__ */ React180.createElement(RoomDetailsSheet, null);
33272
+ ViewComponent = /* @__PURE__ */ React183.createElement(RoomDetailsSheet, null);
32768
33273
  }
32769
- return /* @__PURE__ */ React180.createElement(Box, null, ViewComponent);
33274
+ return /* @__PURE__ */ React183.createElement(Box, null, ViewComponent);
32770
33275
  };
32771
33276
 
32772
33277
  // src/Prebuilt/plugins/FlyingEmoji.jsx
32773
33278
  init_define_process_env();
32774
- import React181, { useCallback as useCallback38, useEffect as useEffect76, useMemo as useMemo23, useState as useState76 } from "react";
32775
- import { useMedia as useMedia43 } from "react-use";
33279
+ import React184, { useCallback as useCallback38, useEffect as useEffect76, useMemo as useMemo23, useState as useState78 } from "react";
33280
+ import { useMedia as useMedia46 } from "react-use";
32776
33281
  import {
32777
33282
  selectIsLargeRoom as selectIsLargeRoom4,
32778
33283
  selectLocalPeerID as selectLocalPeerID16,
32779
33284
  selectPeerNameByID as selectPeerNameByID8,
32780
33285
  useCustomEvent as useCustomEvent5,
32781
- useHMSActions as useHMSActions55,
33286
+ useHMSActions as useHMSActions56,
32782
33287
  useHMSStore as useHMSStore94,
32783
33288
  useHMSVanillaStore as useHMSVanillaStore18
32784
33289
  } from "@100mslive/react-sdk";
@@ -32808,9 +33313,9 @@ var getStartingPoints = (isMobile) => {
32808
33313
  function FlyingEmoji() {
32809
33314
  const localPeerId = useHMSStore94(selectLocalPeerID16);
32810
33315
  const vanillaStore = useHMSVanillaStore18();
32811
- const hmsActions = useHMSActions55();
32812
- const [emojis, setEmojis] = useState76([]);
32813
- const isMobile = useMedia43(config.media.md);
33316
+ const hmsActions = useHMSActions56();
33317
+ const [emojis, setEmojis] = useState78([]);
33318
+ const isMobile = useMedia46(config.media.md);
32814
33319
  const isLargeRoom = useHMSStore94(selectIsLargeRoom4);
32815
33320
  const startingPoints = useMemo23(() => getStartingPoints(isMobile), [isMobile]);
32816
33321
  const showFlyingEmoji = useCallback38(
@@ -32848,7 +33353,7 @@ function FlyingEmoji() {
32848
33353
  useEffect76(() => {
32849
33354
  window.showFlyingEmoji = showFlyingEmoji;
32850
33355
  }, [showFlyingEmoji]);
32851
- return /* @__PURE__ */ React181.createElement(
33356
+ return /* @__PURE__ */ React184.createElement(
32852
33357
  Box,
32853
33358
  {
32854
33359
  css: {
@@ -32864,7 +33369,7 @@ function FlyingEmoji() {
32864
33369
  }
32865
33370
  },
32866
33371
  emojis.map((emoji) => {
32867
- return /* @__PURE__ */ React181.createElement(
33372
+ return /* @__PURE__ */ React184.createElement(
32868
33373
  Flex,
32869
33374
  {
32870
33375
  key: emoji.id,
@@ -32878,8 +33383,8 @@ function FlyingEmoji() {
32878
33383
  },
32879
33384
  onAnimationEnd: () => setEmojis(emojis.filter((item) => item.id !== emoji.id))
32880
33385
  },
32881
- /* @__PURE__ */ React181.createElement(Box, null, /* @__PURE__ */ React181.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
32882
- emoji.senderName ? /* @__PURE__ */ React181.createElement(
33386
+ /* @__PURE__ */ React184.createElement(Box, null, /* @__PURE__ */ React184.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
33387
+ emoji.senderName ? /* @__PURE__ */ React184.createElement(
32883
33388
  Box,
32884
33389
  {
32885
33390
  css: {
@@ -32889,7 +33394,7 @@ function FlyingEmoji() {
32889
33394
  borderRadius: "$1"
32890
33395
  }
32891
33396
  },
32892
- /* @__PURE__ */ React181.createElement(
33397
+ /* @__PURE__ */ React184.createElement(
32893
33398
  Text,
32894
33399
  {
32895
33400
  css: {
@@ -32908,10 +33413,10 @@ function FlyingEmoji() {
32908
33413
 
32909
33414
  // src/Prebuilt/plugins/RemoteStopScreenshare.jsx
32910
33415
  init_define_process_env();
32911
- import React182, { useCallback as useCallback39 } from "react";
32912
- import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions56 } from "@100mslive/react-sdk";
33416
+ import React185, { useCallback as useCallback39 } from "react";
33417
+ import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions57 } from "@100mslive/react-sdk";
32913
33418
  function RemoteStopScreenshare() {
32914
- const actions = useHMSActions56();
33419
+ const actions = useHMSActions57();
32915
33420
  const onRemoteStopScreenshare = useCallback39(() => __async(this, null, function* () {
32916
33421
  yield actions.setScreenShareEnabled(false);
32917
33422
  }), [actions]);
@@ -32919,7 +33424,7 @@ function RemoteStopScreenshare() {
32919
33424
  type: REMOTE_STOP_SCREENSHARE_TYPE,
32920
33425
  onEvent: onRemoteStopScreenshare
32921
33426
  });
32922
- return /* @__PURE__ */ React182.createElement(React182.Fragment, null);
33427
+ return /* @__PURE__ */ React185.createElement(React185.Fragment, null);
32923
33428
  }
32924
33429
 
32925
33430
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
@@ -32928,7 +33433,7 @@ import { useCallback as useCallback40, useEffect as useEffect77, useRef as useRe
32928
33433
  import {
32929
33434
  selectIsConnectedToRoom as selectIsConnectedToRoom12,
32930
33435
  selectPermissions as selectPermissions20,
32931
- useHMSActions as useHMSActions57,
33436
+ useHMSActions as useHMSActions58,
32932
33437
  useHMSStore as useHMSStore95,
32933
33438
  useRecordingStreaming as useRecordingStreaming12
32934
33439
  } from "@100mslive/react-sdk";
@@ -32936,7 +33441,7 @@ var useAutoStartStreaming = () => {
32936
33441
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
32937
33442
  const permissions = useHMSStore95(selectPermissions20);
32938
33443
  const showStreamingUI = useShowStreamingUI();
32939
- const hmsActions = useHMSActions57();
33444
+ const hmsActions = useHMSActions58();
32940
33445
  const isConnected = useHMSStore95(selectIsConnectedToRoom12);
32941
33446
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
32942
33447
  const streamStartedRef = useRef32(false);
@@ -32977,7 +33482,7 @@ var useAutoStartStreaming = () => {
32977
33482
  };
32978
33483
 
32979
33484
  // src/Prebuilt/App.tsx
32980
- var HMSPrebuilt = React183.forwardRef(
33485
+ var HMSPrebuilt = React186.forwardRef(
32981
33486
  ({
32982
33487
  roomCode = "",
32983
33488
  authToken = "",
@@ -32993,7 +33498,7 @@ var HMSPrebuilt = React183.forwardRef(
32993
33498
  }, ref) => {
32994
33499
  var _a7, _b7, _c, _d;
32995
33500
  const reactiveStore = useRef33();
32996
- const [hydrated, setHydrated] = React183.useState(false);
33501
+ const [hydrated, setHydrated] = React186.useState(false);
32997
33502
  useEffect78(() => {
32998
33503
  setHydrated(true);
32999
33504
  const hms = new HMSReactiveStore();
@@ -33025,6 +33530,7 @@ var HMSPrebuilt = React183.forwardRef(
33025
33530
  const endpointsObj = endpoints;
33026
33531
  const tokenByRoomCodeEndpoint = (endpointsObj == null ? void 0 : endpointsObj.tokenByRoomCode) || "";
33027
33532
  const initEndpoint = (endpointsObj == null ? void 0 : endpointsObj.init) || "";
33533
+ const eventEndpoint = (endpointsObj == null ? void 0 : endpointsObj.event) || "";
33028
33534
  const roomLayoutEndpoint = (endpointsObj == null ? void 0 : endpointsObj.roomLayout) || "";
33029
33535
  const overrideLayout = {
33030
33536
  logo,
@@ -33044,7 +33550,7 @@ var HMSPrebuilt = React183.forwardRef(
33044
33550
  return null;
33045
33551
  }
33046
33552
  globalStyles();
33047
- return /* @__PURE__ */ React183.createElement(ErrorBoundary, null, /* @__PURE__ */ React183.createElement(
33553
+ return /* @__PURE__ */ React186.createElement(ErrorBoundary, null, /* @__PURE__ */ React186.createElement(
33048
33554
  HMSPrebuiltContext.Provider,
33049
33555
  {
33050
33556
  value: {
@@ -33057,11 +33563,12 @@ var HMSPrebuilt = React183.forwardRef(
33057
33563
  endpoints: {
33058
33564
  tokenByRoomCode: tokenByRoomCodeEndpoint,
33059
33565
  init: initEndpoint,
33060
- roomLayout: roomLayoutEndpoint
33566
+ roomLayout: roomLayoutEndpoint,
33567
+ event: eventEndpoint
33061
33568
  }
33062
33569
  }
33063
33570
  },
33064
- /* @__PURE__ */ React183.createElement(
33571
+ /* @__PURE__ */ React186.createElement(
33065
33572
  HMSRoomProvider,
33066
33573
  {
33067
33574
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
@@ -33071,7 +33578,7 @@ var HMSPrebuilt = React183.forwardRef(
33071
33578
  stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
33072
33579
  leaveOnUnload
33073
33580
  },
33074
- /* @__PURE__ */ React183.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React183.createElement(RoomLayoutContext.Consumer, null, (data3) => {
33581
+ /* @__PURE__ */ React186.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React186.createElement(RoomLayoutContext.Consumer, null, (data3) => {
33075
33582
  var _a8;
33076
33583
  const layout = data3 == null ? void 0 : data3.layout;
33077
33584
  const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
@@ -33080,7 +33587,7 @@ var HMSPrebuilt = React183.forwardRef(
33080
33587
  if (typography2 == null ? void 0 : typography2.font_family) {
33081
33588
  fontFamily = [`${typography2 == null ? void 0 : typography2.font_family}`, ...fontFamily];
33082
33589
  }
33083
- return /* @__PURE__ */ React183.createElement(
33590
+ return /* @__PURE__ */ React186.createElement(
33084
33591
  HMSThemeProvider,
33085
33592
  {
33086
33593
  themeType: `${theme2.name}-${Date.now()}`,
@@ -33093,7 +33600,7 @@ var HMSPrebuilt = React183.forwardRef(
33093
33600
  }
33094
33601
  }
33095
33602
  },
33096
- /* @__PURE__ */ React183.createElement(PIPProvider, null, /* @__PURE__ */ React183.createElement(Init, null), /* @__PURE__ */ React183.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ React183.createElement(
33603
+ /* @__PURE__ */ React186.createElement(PIPProvider, null, /* @__PURE__ */ React186.createElement(Init, null), /* @__PURE__ */ React186.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ React186.createElement(
33097
33604
  Box,
33098
33605
  {
33099
33606
  className: DEFAULT_PORTAL_CONTAINER.slice(1),
@@ -33105,7 +33612,7 @@ var HMSPrebuilt = React183.forwardRef(
33105
33612
  position: "relative"
33106
33613
  }
33107
33614
  },
33108
- /* @__PURE__ */ React183.createElement(
33615
+ /* @__PURE__ */ React186.createElement(
33109
33616
  AppRoutes,
33110
33617
  {
33111
33618
  authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint,
@@ -33124,11 +33631,11 @@ var AppStates = ({ activeState }) => {
33124
33631
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
33125
33632
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
33126
33633
  useAutoStartStreaming();
33127
- return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React183.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React183.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React183.createElement(ConferenceScreen, null));
33634
+ return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React186.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React186.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React186.createElement(ConferenceScreen, null));
33128
33635
  };
33129
33636
  var BackSwipe = () => {
33130
33637
  const isConnectedToRoom = useHMSStore96(selectIsConnectedToRoom13);
33131
- const hmsActions = useHMSActions58();
33638
+ const hmsActions = useHMSActions59();
33132
33639
  useEffect78(() => {
33133
33640
  const onRouteLeave = () => __async(void 0, null, function* () {
33134
33641
  if (isConnectedToRoom) {
@@ -33149,14 +33656,14 @@ function AppRoutes({
33149
33656
  const roomLayout = useRoomLayout();
33150
33657
  const isNotificationsDisabled = useIsNotificationDisabled();
33151
33658
  const { activeState, rejoin } = useAppStateManager();
33152
- return /* @__PURE__ */ React183.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ React183.createElement(React183.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ React183.createElement(AppData, null), /* @__PURE__ */ React183.createElement(ToastContainer, null), /* @__PURE__ */ React183.createElement(Notifications, null), /* @__PURE__ */ React183.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ React183.createElement(Sheet2, null), /* @__PURE__ */ React183.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ React183.createElement(FlyingEmoji, null), /* @__PURE__ */ React183.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React183.createElement(KeyboardHandler, null), /* @__PURE__ */ React183.createElement(
33659
+ return /* @__PURE__ */ React186.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ React186.createElement(React186.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ React186.createElement(AppData, null), /* @__PURE__ */ React186.createElement(ToastContainer, null), /* @__PURE__ */ React186.createElement(Notifications, null), /* @__PURE__ */ React186.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ React186.createElement(Sheet2, null), /* @__PURE__ */ React186.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ React186.createElement(FlyingEmoji, null), /* @__PURE__ */ React186.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React186.createElement(KeyboardHandler, null), /* @__PURE__ */ React186.createElement(
33153
33660
  AuthToken_default,
33154
33661
  {
33155
33662
  authTokenByRoomCodeEndpoint,
33156
33663
  defaultAuthToken,
33157
33664
  activeState
33158
33665
  }
33159
- ), roomLayout && activeState && /* @__PURE__ */ React183.createElement(AppStates, { activeState })));
33666
+ ), roomLayout && activeState && /* @__PURE__ */ React186.createElement(AppStates, { activeState })));
33160
33667
  }
33161
33668
 
33162
33669
  // src/Progress/index.tsx
@@ -33180,8 +33687,8 @@ init_define_process_env();
33180
33687
 
33181
33688
  // src/Diagnostics/Diagnostics.tsx
33182
33689
  init_define_process_env();
33183
- import React191, { useCallback as useCallback42, useRef as useRef35, useState as useState82 } from "react";
33184
- import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as useHMSActions60 } from "@100mslive/react-sdk";
33690
+ import React194, { useCallback as useCallback42, useRef as useRef35, useState as useState84 } from "react";
33691
+ import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as useHMSActions61 } from "@100mslive/react-sdk";
33185
33692
  import {
33186
33693
  CheckCircleIcon as CheckCircleIcon7,
33187
33694
  ConnectivityIcon as ConnectivityIcon2,
@@ -33193,24 +33700,24 @@ import {
33193
33700
 
33194
33701
  // src/Diagnostics/AudioTest.tsx
33195
33702
  init_define_process_env();
33196
- import React187, { useCallback as useCallback41, useEffect as useEffect79, useState as useState78 } from "react";
33703
+ import React190, { useCallback as useCallback41, useEffect as useEffect79, useState as useState80 } from "react";
33197
33704
  import {
33198
33705
  selectDevices,
33199
33706
  selectLocalAudioTrackID as selectLocalAudioTrackID2,
33200
33707
  selectLocalMediaSettings,
33201
33708
  selectTrackAudioByID as selectTrackAudioByID2,
33202
- useHMSActions as useHMSActions59,
33709
+ useHMSActions as useHMSActions60,
33203
33710
  useHMSStore as useHMSStore97
33204
33711
  } from "@100mslive/react-sdk";
33205
33712
  import { MicOnIcon as MicOnIcon7, SpeakerIcon as SpeakerIcon5, StopIcon as StopIcon3 } from "@100mslive/react-icons";
33206
33713
 
33207
33714
  // src/Diagnostics/components.tsx
33208
33715
  init_define_process_env();
33209
- import React185 from "react";
33716
+ import React188 from "react";
33210
33717
 
33211
33718
  // src/Diagnostics/DiagnosticsContext.ts
33212
33719
  init_define_process_env();
33213
- import React184, { useContext as useContext6 } from "react";
33720
+ import React187, { useContext as useContext6 } from "react";
33214
33721
  var DiagnosticsStep = /* @__PURE__ */ ((DiagnosticsStep2) => {
33215
33722
  DiagnosticsStep2[DiagnosticsStep2["BROWSER"] = 0] = "BROWSER";
33216
33723
  DiagnosticsStep2[DiagnosticsStep2["VIDEO"] = 1] = "VIDEO";
@@ -33224,7 +33731,7 @@ var initialSteps = {
33224
33731
  [2 /* AUDIO */]: { name: "Test Audio" },
33225
33732
  [3 /* CONNECTIVITY */]: { name: "Connection Quality" }
33226
33733
  };
33227
- var DiagnosticsContext = React184.createContext({
33734
+ var DiagnosticsContext = React187.createContext({
33228
33735
  activeStepIndex: 0,
33229
33736
  setActiveStep: () => {
33230
33737
  return;
@@ -33242,7 +33749,7 @@ var useDiagnostics = () => {
33242
33749
 
33243
33750
  // src/Diagnostics/components.tsx
33244
33751
  var TestContainer = ({ css: css2, children }) => {
33245
- return /* @__PURE__ */ React185.createElement(Box, { css: __spreadValues({ p: "$10" }, css2) }, children);
33752
+ return /* @__PURE__ */ React188.createElement(Box, { css: __spreadValues({ p: "$10" }, css2) }, children);
33246
33753
  };
33247
33754
  var TestFooter = ({
33248
33755
  error,
@@ -33260,7 +33767,7 @@ var TestFooter = ({
33260
33767
  }
33261
33768
  setActiveStep((step) => step + 1);
33262
33769
  };
33263
- return /* @__PURE__ */ React185.createElement(
33770
+ return /* @__PURE__ */ React188.createElement(
33264
33771
  Flex,
33265
33772
  {
33266
33773
  css: {
@@ -33278,20 +33785,20 @@ var TestFooter = ({
33278
33785
  "@lg": { flexDirection: "column", gap: "$8" }
33279
33786
  }
33280
33787
  },
33281
- /* @__PURE__ */ React185.createElement(Box, null, error && /* @__PURE__ */ React185.createElement(Text, { css: { c: "$alert_error_default" } }, "Error: ", error.message)),
33282
- children ? children : /* @__PURE__ */ React185.createElement(Flex, { align: "center", css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React185.createElement(Text, { css: { c: "$on_primary_medium" } }, ctaText), /* @__PURE__ */ React185.createElement(Flex, { align: "center", gap: "4" }, /* @__PURE__ */ React185.createElement(Button, { onClick: onNextStep, variant: "standard", outlined: true }, "Skip"), /* @__PURE__ */ React185.createElement(Button, { disabled: !!error, onClick: onNextStep }, "Yes")))
33788
+ /* @__PURE__ */ React188.createElement(Box, null, error && /* @__PURE__ */ React188.createElement(Text, { css: { c: "$alert_error_default" } }, "Error: ", error.message)),
33789
+ children ? children : /* @__PURE__ */ React188.createElement(Flex, { align: "center", css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React188.createElement(Text, { css: { c: "$on_primary_medium" } }, ctaText), /* @__PURE__ */ React188.createElement(Flex, { align: "center", gap: "4" }, /* @__PURE__ */ React188.createElement(Button, { onClick: onNextStep, variant: "standard", outlined: true }, "Skip"), /* @__PURE__ */ React188.createElement(Button, { disabled: !!error, onClick: onNextStep }, "Yes")))
33283
33790
  );
33284
33791
  };
33285
33792
 
33286
33793
  // src/Diagnostics/DeviceSelector.jsx
33287
33794
  init_define_process_env();
33288
33795
  var import_prop_types = __toESM(require_prop_types());
33289
- import React186, { useRef as useRef34, useState as useState77 } from "react";
33796
+ import React189, { useRef as useRef34, useState as useState79 } from "react";
33290
33797
  var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
33291
33798
  var _a7, _b7;
33292
- const [open, setOpen] = useState77(false);
33799
+ const [open, setOpen] = useState79(false);
33293
33800
  const ref = useRef34(null);
33294
- return /* @__PURE__ */ React186.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React186.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React186.createElement(
33801
+ return /* @__PURE__ */ React189.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React189.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React189.createElement(
33295
33802
  Flex,
33296
33803
  {
33297
33804
  align: "center",
@@ -33303,7 +33810,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
33303
33810
  }
33304
33811
  }
33305
33812
  },
33306
- /* @__PURE__ */ React186.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React186.createElement(
33813
+ /* @__PURE__ */ React189.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React189.createElement(
33307
33814
  DialogDropdownTrigger,
33308
33815
  {
33309
33816
  ref,
@@ -33311,7 +33818,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
33311
33818
  title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
33312
33819
  open
33313
33820
  }
33314
- ), /* @__PURE__ */ React186.createElement(Dropdown.Portal, null, /* @__PURE__ */ React186.createElement(
33821
+ ), /* @__PURE__ */ React189.createElement(Dropdown.Portal, null, /* @__PURE__ */ React189.createElement(
33315
33822
  Dropdown.Content,
33316
33823
  {
33317
33824
  align: "start",
@@ -33325,7 +33832,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
33325
33832
  }
33326
33833
  },
33327
33834
  devices.map((device) => {
33328
- return /* @__PURE__ */ React186.createElement(
33835
+ return /* @__PURE__ */ React189.createElement(
33329
33836
  Dropdown.Item,
33330
33837
  {
33331
33838
  key: device.label,
@@ -33351,33 +33858,33 @@ DeviceSelector2.propTypes = {
33351
33858
  };
33352
33859
 
33353
33860
  // src/Diagnostics/AudioTest.tsx
33354
- var SelectContainer = ({ children }) => /* @__PURE__ */ React187.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
33861
+ var SelectContainer = ({ children }) => /* @__PURE__ */ React190.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
33355
33862
  var MicTest = ({ setError }) => {
33356
33863
  var _a7, _b7;
33357
33864
  const { hmsDiagnostics } = useDiagnostics();
33358
33865
  const devices = useHMSStore97(selectDevices);
33359
- const [isRecording, setIsRecording] = useState78(false);
33360
- const [selectedMic, setSelectedMic] = useState78(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
33866
+ const [isRecording, setIsRecording] = useState80(false);
33867
+ const [selectedMic, setSelectedMic] = useState80(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
33361
33868
  const trackID = useHMSStore97(selectLocalAudioTrackID2);
33362
33869
  const audioLevel = useHMSStore97(selectTrackAudioByID2(trackID));
33363
33870
  const { audioOutputDeviceId } = useHMSStore97(selectLocalMediaSettings);
33364
33871
  const { playing, setPlaying, audioRef } = useAudioOutputTest({
33365
33872
  deviceId: audioOutputDeviceId || ((_b7 = devices.audioOutput[0]) == null ? void 0 : _b7.deviceId)
33366
33873
  });
33367
- return /* @__PURE__ */ React187.createElement(SelectContainer, null, /* @__PURE__ */ React187.createElement(
33874
+ return /* @__PURE__ */ React190.createElement(SelectContainer, null, /* @__PURE__ */ React190.createElement(
33368
33875
  DeviceSelector2,
33369
33876
  {
33370
33877
  title: "Microphone (Input)",
33371
33878
  devices: devices.audioInput,
33372
33879
  selection: selectedMic,
33373
- icon: /* @__PURE__ */ React187.createElement(MicOnIcon7, null),
33880
+ icon: /* @__PURE__ */ React190.createElement(MicOnIcon7, null),
33374
33881
  onChange: (deviceId) => {
33375
33882
  setError(void 0);
33376
33883
  setSelectedMic(deviceId);
33377
33884
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.stopMicCheck();
33378
33885
  }
33379
33886
  }
33380
- ), /* @__PURE__ */ React187.createElement(Flex, { css: { gap: "$6", alignItems: "center" } }, /* @__PURE__ */ React187.createElement(
33887
+ ), /* @__PURE__ */ React190.createElement(Flex, { css: { gap: "$6", alignItems: "center" } }, /* @__PURE__ */ React190.createElement(
33381
33888
  Button,
33382
33889
  {
33383
33890
  variant: "standard",
@@ -33397,9 +33904,9 @@ var MicTest = ({ setError }) => {
33397
33904
  },
33398
33905
  disabled: devices.audioInput.length === 0 || playing
33399
33906
  },
33400
- isRecording ? /* @__PURE__ */ React187.createElement(StopIcon3, null) : /* @__PURE__ */ React187.createElement(MicOnIcon7, null),
33907
+ isRecording ? /* @__PURE__ */ React190.createElement(StopIcon3, null) : /* @__PURE__ */ React190.createElement(MicOnIcon7, null),
33401
33908
  isRecording ? "Stop Recording" : "Record"
33402
- ), /* @__PURE__ */ React187.createElement(
33909
+ ), /* @__PURE__ */ React190.createElement(
33403
33910
  Button,
33404
33911
  {
33405
33912
  icon: true,
@@ -33413,9 +33920,9 @@ var MicTest = ({ setError }) => {
33413
33920
  },
33414
33921
  disabled: playing || (hmsDiagnostics == null ? void 0 : hmsDiagnostics.getRecordedAudio()) === TEST_AUDIO_URL
33415
33922
  },
33416
- /* @__PURE__ */ React187.createElement(SpeakerIcon5, null),
33923
+ /* @__PURE__ */ React190.createElement(SpeakerIcon5, null),
33417
33924
  playing ? "Playing..." : "Playback"
33418
- ), /* @__PURE__ */ React187.createElement(
33925
+ ), /* @__PURE__ */ React190.createElement(
33419
33926
  "audio",
33420
33927
  {
33421
33928
  ref: audioRef,
@@ -33423,7 +33930,7 @@ var MicTest = ({ setError }) => {
33423
33930
  onPlay: () => setPlaying(true),
33424
33931
  style: { display: "none" }
33425
33932
  }
33426
- )), /* @__PURE__ */ React187.createElement(Flex, { align: "center", css: { mt: "$4", maxWidth: "10rem", opacity: isRecording ? "1" : "0", gap: "$4" } }, /* @__PURE__ */ React187.createElement(Text, null, /* @__PURE__ */ React187.createElement(MicOnIcon7, null)), /* @__PURE__ */ React187.createElement(Progress.Root, { value: audioLevel, css: { h: "$2" } }, /* @__PURE__ */ React187.createElement(
33933
+ )), /* @__PURE__ */ React190.createElement(Flex, { align: "center", css: { mt: "$4", maxWidth: "10rem", opacity: isRecording ? "1" : "0", gap: "$4" } }, /* @__PURE__ */ React190.createElement(Text, null, /* @__PURE__ */ React190.createElement(MicOnIcon7, null)), /* @__PURE__ */ React190.createElement(Progress.Root, { value: audioLevel, css: { h: "$2" } }, /* @__PURE__ */ React190.createElement(
33427
33934
  Progress.Content,
33428
33935
  {
33429
33936
  style: {
@@ -33435,19 +33942,19 @@ var MicTest = ({ setError }) => {
33435
33942
  };
33436
33943
  var SpeakerTest = () => {
33437
33944
  var _a7;
33438
- const actions = useHMSActions59();
33945
+ const actions = useHMSActions60();
33439
33946
  const devices = useHMSStore97(selectDevices);
33440
33947
  const { audioOutputDeviceId } = useHMSStore97(selectLocalMediaSettings);
33441
33948
  if (devices.audioOutput.length === 0) {
33442
- return /* @__PURE__ */ React187.createElement(React187.Fragment, null);
33949
+ return /* @__PURE__ */ React190.createElement(React190.Fragment, null);
33443
33950
  }
33444
- return /* @__PURE__ */ React187.createElement(SelectContainer, null, /* @__PURE__ */ React187.createElement(
33951
+ return /* @__PURE__ */ React190.createElement(SelectContainer, null, /* @__PURE__ */ React190.createElement(
33445
33952
  DeviceSelector2,
33446
33953
  {
33447
33954
  title: "Speaker (Output)",
33448
33955
  devices: devices.audioOutput,
33449
33956
  selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
33450
- icon: /* @__PURE__ */ React187.createElement(SpeakerIcon5, null),
33957
+ icon: /* @__PURE__ */ React190.createElement(SpeakerIcon5, null),
33451
33958
  onChange: (deviceId) => {
33452
33959
  actions.setAudioOutputDevice(deviceId);
33453
33960
  }
@@ -33456,7 +33963,7 @@ var SpeakerTest = () => {
33456
33963
  };
33457
33964
  var AudioTest = () => {
33458
33965
  const { hmsDiagnostics, updateStep } = useDiagnostics();
33459
- const [error, setErrorAlone] = useState78();
33966
+ const [error, setErrorAlone] = useState80();
33460
33967
  const setError = useCallback41(
33461
33968
  (err) => {
33462
33969
  updateStep(2 /* AUDIO */, { hasFailed: !!err });
@@ -33467,7 +33974,7 @@ var AudioTest = () => {
33467
33974
  useEffect79(() => {
33468
33975
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.requestPermission({ audio: true }).catch((error2) => setError(error2));
33469
33976
  }, [hmsDiagnostics, setError]);
33470
- return /* @__PURE__ */ React187.createElement(React187.Fragment, null, /* @__PURE__ */ React187.createElement(TestContainer, null, /* @__PURE__ */ React187.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, "Record a 10 second audio clip and play it back to check that your microphone and speaker are working. If they aren't, make sure your volume is turned up, try a different speaker or microphone, or check your bluetooth settings."), /* @__PURE__ */ React187.createElement(
33977
+ return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(TestContainer, null, /* @__PURE__ */ React190.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, "Record a 10 second audio clip and play it back to check that your microphone and speaker are working. If they aren't, make sure your volume is turned up, try a different speaker or microphone, or check your bluetooth settings."), /* @__PURE__ */ React190.createElement(
33471
33978
  Flex,
33472
33979
  {
33473
33980
  css: {
@@ -33479,14 +33986,14 @@ var AudioTest = () => {
33479
33986
  }
33480
33987
  }
33481
33988
  },
33482
- /* @__PURE__ */ React187.createElement(MicTest, { setError }),
33483
- /* @__PURE__ */ React187.createElement(SpeakerTest, null)
33484
- )), /* @__PURE__ */ React187.createElement(TestFooter, { error, ctaText: "Does your audio sound good?" }), /* @__PURE__ */ React187.createElement(PermissionErrorModal, { error }));
33989
+ /* @__PURE__ */ React190.createElement(MicTest, { setError }),
33990
+ /* @__PURE__ */ React190.createElement(SpeakerTest, null)
33991
+ )), /* @__PURE__ */ React190.createElement(TestFooter, { error, ctaText: "Does your audio sound good?" }), /* @__PURE__ */ React190.createElement(PermissionErrorModal, { error }));
33485
33992
  };
33486
33993
 
33487
33994
  // src/Diagnostics/BrowserTest.tsx
33488
33995
  init_define_process_env();
33489
- import React188, { useEffect as useEffect80, useState as useState79 } from "react";
33996
+ import React191, { useEffect as useEffect80, useState as useState81 } from "react";
33490
33997
  import { parsedUserAgent as parsedUserAgent4 } from "@100mslive/react-sdk";
33491
33998
  var CMS_MEDIA_SERVER = "https://storage.googleapis.com/100ms-cms-prod/";
33492
33999
  var operatingSystemIconInfo = {
@@ -33568,11 +34075,11 @@ var browserTypeIconInfo = {
33568
34075
  icon: `${CMS_MEDIA_SERVER}cms/Opera_0f3bf4eb19/Opera_0f3bf4eb19.svg`
33569
34076
  }
33570
34077
  };
33571
- var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ React188.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ React188.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ React188.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ React188.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ React188.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ React188.createElement(Text, null, value)));
34078
+ var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ React191.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ React191.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ React191.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ React191.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ React191.createElement(Text, null, value)));
33572
34079
  var BrowserTest = () => {
33573
34080
  var _a7, _b7, _c, _d;
33574
34081
  const { hmsDiagnostics, updateStep } = useDiagnostics();
33575
- const [error, setError] = useState79();
34082
+ const [error, setError] = useState81();
33576
34083
  useEffect80(() => {
33577
34084
  try {
33578
34085
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.checkBrowserSupport();
@@ -33581,26 +34088,26 @@ var BrowserTest = () => {
33581
34088
  setError(err);
33582
34089
  }
33583
34090
  }, [hmsDiagnostics, updateStep]);
33584
- return /* @__PURE__ */ React188.createElement(React188.Fragment, null, /* @__PURE__ */ React188.createElement(TestContainer, { css: { display: "flex", gap: "$8", "@lg": { display: "block" } } }, /* @__PURE__ */ React188.createElement(
34091
+ return /* @__PURE__ */ React191.createElement(React191.Fragment, null, /* @__PURE__ */ React191.createElement(TestContainer, { css: { display: "flex", gap: "$8", "@lg": { display: "block" } } }, /* @__PURE__ */ React191.createElement(
33585
34092
  CheckDetails,
33586
34093
  {
33587
34094
  title: "Browser",
33588
34095
  iconURL: parsedUserAgent4.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = parsedUserAgent4.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
33589
34096
  value: `${parsedUserAgent4.getBrowser().name} ${parsedUserAgent4.getBrowser().version}`
33590
34097
  }
33591
- ), /* @__PURE__ */ React188.createElement(
34098
+ ), /* @__PURE__ */ React191.createElement(
33592
34099
  CheckDetails,
33593
34100
  {
33594
34101
  title: "Operating system",
33595
34102
  iconURL: parsedUserAgent4.getOS().name && ((_d = operatingSystemIconInfo[(_c = parsedUserAgent4.getOS().name) == null ? void 0 : _c.toLowerCase()]) == null ? void 0 : _d.icon),
33596
34103
  value: `${parsedUserAgent4.getOS().name} ${parsedUserAgent4.getOS().version}`
33597
34104
  }
33598
- )), /* @__PURE__ */ React188.createElement(TestFooter, { error, ctaText: "Is your device information correct?" }));
34105
+ )), /* @__PURE__ */ React191.createElement(TestFooter, { error, ctaText: "Is your device information correct?" }));
33599
34106
  };
33600
34107
 
33601
34108
  // src/Diagnostics/ConnectivityTest.tsx
33602
34109
  init_define_process_env();
33603
- import React189, { useState as useState80 } from "react";
34110
+ import React192, { useState as useState82 } from "react";
33604
34111
  import { ConnectivityState } from "@100mslive/react-sdk";
33605
34112
  import { CheckCircleIcon as CheckCircleIcon6, CrossCircleIcon as CrossCircleIcon4, EyeCloseIcon as EyeCloseIcon3, EyeOpenIcon as EyeOpenIcon2, LinkIcon } from "@100mslive/react-icons";
33606
34113
  var Regions = {
@@ -33623,8 +34130,8 @@ var ConnectivityTestStepResult = ({
33623
34130
  success,
33624
34131
  children
33625
34132
  }) => {
33626
- const [hideDetails, setHideDetails] = useState80(true);
33627
- return /* @__PURE__ */ React189.createElement(Box, { css: { my: "$10", p: "$10", r: "$1", bg: "$surface_bright" } }, /* @__PURE__ */ React189.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), success ? /* @__PURE__ */ React189.createElement(Flex, null, /* @__PURE__ */ React189.createElement(Text, { css: { c: "$alert_success" } }, /* @__PURE__ */ React189.createElement(CheckCircleIcon6, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React189.createElement(Text, { variant: "lg", css: { ml: "$4" } }, status)) : /* @__PURE__ */ React189.createElement(Flex, null, /* @__PURE__ */ React189.createElement(Text, { css: { c: "$alert_error_bright" } }, /* @__PURE__ */ React189.createElement(CrossCircleIcon4, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React189.createElement(Text, { variant: "lg", css: { ml: "$4" } }, "Failed")), /* @__PURE__ */ React189.createElement(
34133
+ const [hideDetails, setHideDetails] = useState82(true);
34134
+ return /* @__PURE__ */ React192.createElement(Box, { css: { my: "$10", p: "$10", r: "$1", bg: "$surface_bright" } }, /* @__PURE__ */ React192.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), success ? /* @__PURE__ */ React192.createElement(Flex, null, /* @__PURE__ */ React192.createElement(Text, { css: { c: "$alert_success" } }, /* @__PURE__ */ React192.createElement(CheckCircleIcon6, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React192.createElement(Text, { variant: "lg", css: { ml: "$4" } }, status)) : /* @__PURE__ */ React192.createElement(Flex, null, /* @__PURE__ */ React192.createElement(Text, { css: { c: "$alert_error_bright" } }, /* @__PURE__ */ React192.createElement(CrossCircleIcon4, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React192.createElement(Text, { variant: "lg", css: { ml: "$4" } }, "Failed")), /* @__PURE__ */ React192.createElement(
33628
34135
  Flex,
33629
34136
  {
33630
34137
  onClick: () => setHideDetails(!hideDetails),
@@ -33634,8 +34141,8 @@ var ConnectivityTestStepResult = ({
33634
34141
  color: "$primary_bright"
33635
34142
  }
33636
34143
  },
33637
- hideDetails ? /* @__PURE__ */ React189.createElement(EyeOpenIcon2, null) : /* @__PURE__ */ React189.createElement(EyeCloseIcon3, null),
33638
- /* @__PURE__ */ React189.createElement(
34144
+ hideDetails ? /* @__PURE__ */ React192.createElement(EyeOpenIcon2, null) : /* @__PURE__ */ React192.createElement(EyeCloseIcon3, null),
34145
+ /* @__PURE__ */ React192.createElement(
33639
34146
  Text,
33640
34147
  {
33641
34148
  variant: "caption",
@@ -33646,38 +34153,38 @@ var ConnectivityTestStepResult = ({
33646
34153
  hideDetails ? "View" : "Hide",
33647
34154
  " detailed information"
33648
34155
  )
33649
- ), !hideDetails ? /* @__PURE__ */ React189.createElement(Box, null, children) : null);
34156
+ ), !hideDetails ? /* @__PURE__ */ React192.createElement(Box, null, children) : null);
33650
34157
  };
33651
34158
  var DetailedInfo = ({
33652
34159
  title,
33653
34160
  value,
33654
34161
  Icon: Icon4
33655
34162
  }) => {
33656
- return /* @__PURE__ */ React189.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ React189.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ React189.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ React189.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ React189.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ React189.createElement(Text, { variant: "caption" }, value)));
34163
+ return /* @__PURE__ */ React192.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ React192.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ React192.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ React192.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ React192.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ React192.createElement(Text, { variant: "caption" }, value)));
33657
34164
  };
33658
34165
  var MediaServerResult = ({ result }) => {
33659
34166
  var _a7, _b7, _c, _d;
33660
- return /* @__PURE__ */ React189.createElement(
34167
+ return /* @__PURE__ */ React192.createElement(
33661
34168
  ConnectivityTestStepResult,
33662
34169
  {
33663
34170
  title: "Media server connection test",
33664
34171
  success: (result == null ? void 0 : result.isPublishICEConnected) && result.isSubscribeICEConnected
33665
34172
  },
33666
- /* @__PURE__ */ React189.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React189.createElement(
34173
+ /* @__PURE__ */ React192.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React192.createElement(
33667
34174
  DetailedInfo,
33668
34175
  {
33669
34176
  title: "Media Captured",
33670
34177
  value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
33671
34178
  Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
33672
34179
  }
33673
- ), /* @__PURE__ */ React189.createElement(
34180
+ ), /* @__PURE__ */ React192.createElement(
33674
34181
  DetailedInfo,
33675
34182
  {
33676
34183
  title: "Media Published",
33677
34184
  value: ((_c = result == null ? void 0 : result.stats) == null ? void 0 : _c.audio.bitrateSent) ? "Yes" : "No",
33678
34185
  Icon: ((_d = result == null ? void 0 : result.stats) == null ? void 0 : _d.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
33679
34186
  }
33680
- ), (result == null ? void 0 : result.connectionQualityScore) ? /* @__PURE__ */ React189.createElement(
34187
+ ), (result == null ? void 0 : result.connectionQualityScore) ? /* @__PURE__ */ React192.createElement(
33681
34188
  DetailedInfo,
33682
34189
  {
33683
34190
  title: "Connection Quality Score (CQS)",
@@ -33687,27 +34194,27 @@ var MediaServerResult = ({ result }) => {
33687
34194
  );
33688
34195
  };
33689
34196
  var SignallingResult = ({ result }) => {
33690
- return /* @__PURE__ */ React189.createElement(ConnectivityTestStepResult, { title: "Signalling server connection test", success: result == null ? void 0 : result.isConnected }, /* @__PURE__ */ React189.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React189.createElement(
34197
+ return /* @__PURE__ */ React192.createElement(ConnectivityTestStepResult, { title: "Signalling server connection test", success: result == null ? void 0 : result.isConnected }, /* @__PURE__ */ React192.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React192.createElement(
33691
34198
  DetailedInfo,
33692
34199
  {
33693
34200
  title: "Signalling Gateway",
33694
34201
  value: (result == null ? void 0 : result.isConnected) ? "Reachable" : "Unreachable",
33695
34202
  Icon: (result == null ? void 0 : result.isConnected) ? CheckCircleIcon6 : CrossCircleIcon4
33696
34203
  }
33697
- ), /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: LinkIcon })));
34204
+ ), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: LinkIcon })));
33698
34205
  };
33699
34206
  var AudioStats = ({ stats }) => {
33700
- return /* @__PURE__ */ React189.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React189.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
34207
+ return /* @__PURE__ */ React192.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React192.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
33701
34208
  };
33702
34209
  var VideoStats = ({ stats }) => {
33703
- return /* @__PURE__ */ React189.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React189.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React189.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
34210
+ return /* @__PURE__ */ React192.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React192.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
33704
34211
  };
33705
34212
  var Footer3 = ({
33706
34213
  error,
33707
34214
  result,
33708
34215
  restart
33709
34216
  }) => {
33710
- return /* @__PURE__ */ React189.createElement(TestFooter, { error }, /* @__PURE__ */ React189.createElement(Flex, { css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React189.createElement(Button, { variant: "standard", onClick: restart }, "Restart Test"), /* @__PURE__ */ React189.createElement(Button, { disabled: !result, onClick: () => result && downloadJson(result, "hms_diagnostics_results") }, "Download Test Report")));
34217
+ return /* @__PURE__ */ React192.createElement(TestFooter, { error }, /* @__PURE__ */ React192.createElement(Flex, { css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React192.createElement(Button, { variant: "standard", onClick: restart }, "Restart Test"), /* @__PURE__ */ React192.createElement(Button, { disabled: !result, onClick: () => result && downloadJson(result, "hms_diagnostics_results") }, "Download Test Report")));
33711
34218
  };
33712
34219
  var ConnectivityTestReport = ({
33713
34220
  error,
@@ -33717,14 +34224,14 @@ var ConnectivityTestReport = ({
33717
34224
  }) => {
33718
34225
  var _a7, _b7, _c, _d;
33719
34226
  if (error) {
33720
- return /* @__PURE__ */ React189.createElement(React189.Fragment, null, /* @__PURE__ */ React189.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React189.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ React189.createElement(CrossCircleIcon4, null)), /* @__PURE__ */ React189.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ React189.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ React189.createElement(Footer3, { restart: startTest, error }));
34227
+ return /* @__PURE__ */ React192.createElement(React192.Fragment, null, /* @__PURE__ */ React192.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React192.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ React192.createElement(CrossCircleIcon4, null)), /* @__PURE__ */ React192.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ React192.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ React192.createElement(Footer3, { restart: startTest, error }));
33721
34228
  }
33722
34229
  if (result) {
33723
34230
  console.log(result);
33724
- return /* @__PURE__ */ React189.createElement(React189.Fragment, null, /* @__PURE__ */ React189.createElement(TestContainer, null, /* @__PURE__ */ React189.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React189.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React189.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React189.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React189.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React189.createElement(Footer3, { result, restart: startTest, error }));
34231
+ return /* @__PURE__ */ React192.createElement(React192.Fragment, null, /* @__PURE__ */ React192.createElement(TestContainer, null, /* @__PURE__ */ React192.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React192.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React192.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React192.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React192.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React192.createElement(Footer3, { result, restart: startTest, error }));
33725
34232
  }
33726
34233
  if (progress !== void 0) {
33727
- return /* @__PURE__ */ React189.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React189.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ React189.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ React189.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ React189.createElement(
34234
+ return /* @__PURE__ */ React192.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React192.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ React192.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ React192.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ React192.createElement(
33728
34235
  Text,
33729
34236
  {
33730
34237
  variant: "body2",
@@ -33740,7 +34247,7 @@ var RegionSelector = ({
33740
34247
  setRegion,
33741
34248
  startTest
33742
34249
  }) => {
33743
- return /* @__PURE__ */ React189.createElement(TestContainer, { css: { borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React189.createElement(Text, { variant: "body1" }, "Select a region"), /* @__PURE__ */ React189.createElement(Text, { variant: "body2", css: { c: "$on_secondary_low" } }, "Select the closest region for best results"), /* @__PURE__ */ React189.createElement(
34250
+ return /* @__PURE__ */ React192.createElement(TestContainer, { css: { borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React192.createElement(Text, { variant: "body1" }, "Select a region"), /* @__PURE__ */ React192.createElement(Text, { variant: "body2", css: { c: "$on_secondary_low" } }, "Select the closest region for best results"), /* @__PURE__ */ React192.createElement(
33744
34251
  Flex,
33745
34252
  {
33746
34253
  justify: "between",
@@ -33752,7 +34259,7 @@ var RegionSelector = ({
33752
34259
  }
33753
34260
  }
33754
34261
  },
33755
- /* @__PURE__ */ React189.createElement(
34262
+ /* @__PURE__ */ React192.createElement(
33756
34263
  Flex,
33757
34264
  {
33758
34265
  css: {
@@ -33762,7 +34269,7 @@ var RegionSelector = ({
33762
34269
  }
33763
34270
  }
33764
34271
  },
33765
- Object.entries(Regions).map(([key, value]) => /* @__PURE__ */ React189.createElement(
34272
+ Object.entries(Regions).map(([key, value]) => /* @__PURE__ */ React192.createElement(
33766
34273
  Button,
33767
34274
  {
33768
34275
  key,
@@ -33774,15 +34281,15 @@ var RegionSelector = ({
33774
34281
  value
33775
34282
  ))
33776
34283
  ),
33777
- /* @__PURE__ */ React189.createElement(Flex, { css: { "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React189.createElement(Button, { variant: "primary", onClick: startTest, disabled: !startTest }, startTest ? "Start Test" : "Testing..."))
34284
+ /* @__PURE__ */ React192.createElement(Flex, { css: { "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React192.createElement(Button, { variant: "primary", onClick: startTest, disabled: !startTest }, startTest ? "Start Test" : "Testing..."))
33778
34285
  ));
33779
34286
  };
33780
34287
  var ConnectivityTest = () => {
33781
34288
  const { hmsDiagnostics, updateStep } = useDiagnostics();
33782
- const [region, setRegion] = useState80(Object.keys(Regions)[0]);
33783
- const [error, setError] = useState80();
33784
- const [progress, setProgress] = useState80();
33785
- const [result, setResult] = useState80();
34289
+ const [region, setRegion] = useState82(Object.keys(Regions)[0]);
34290
+ const [error, setError] = useState82();
34291
+ const [progress, setProgress] = useState82();
34292
+ const [result, setResult] = useState82();
33786
34293
  const startTest = () => {
33787
34294
  updateStep(3 /* CONNECTIVITY */, { hasFailed: false, isCompleted: false });
33788
34295
  setError(void 0);
@@ -33801,14 +34308,14 @@ var ConnectivityTest = () => {
33801
34308
  setError(error2);
33802
34309
  });
33803
34310
  };
33804
- return /* @__PURE__ */ React189.createElement(React189.Fragment, null, /* @__PURE__ */ React189.createElement(
34311
+ return /* @__PURE__ */ React192.createElement(React192.Fragment, null, /* @__PURE__ */ React192.createElement(
33805
34312
  RegionSelector,
33806
34313
  {
33807
34314
  region,
33808
34315
  setRegion,
33809
34316
  startTest: progress === void 0 || progress === ConnectivityState.COMPLETED ? startTest : void 0
33810
34317
  }
33811
- ), /* @__PURE__ */ React189.createElement(ConnectivityTestReport, { error, result, progress, startTest }));
34318
+ ), /* @__PURE__ */ React192.createElement(ConnectivityTestReport, { error, result, progress, startTest }));
33812
34319
  };
33813
34320
  var downloadJson = (obj, fileName) => {
33814
34321
  const a2 = document.createElement("a");
@@ -33822,7 +34329,7 @@ var downloadJson = (obj, fileName) => {
33822
34329
 
33823
34330
  // src/Diagnostics/VideoTest.tsx
33824
34331
  init_define_process_env();
33825
- import React190, { useEffect as useEffect81, useState as useState81 } from "react";
34332
+ import React193, { useEffect as useEffect81, useState as useState83 } from "react";
33826
34333
  import {
33827
34334
  selectDevices as selectDevices2,
33828
34335
  selectLocalMediaSettings as selectLocalMediaSettings2,
@@ -33836,14 +34343,14 @@ var VideoTest = () => {
33836
34343
  const { videoInput } = allDevices;
33837
34344
  const trackID = useHMSStore98(selectLocalVideoTrackID4);
33838
34345
  const sdkSelectedDevices = useHMSStore98(selectLocalMediaSettings2);
33839
- const [error, setError] = useState81();
34346
+ const [error, setError] = useState83();
33840
34347
  useEffect81(() => {
33841
34348
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck().catch((err) => {
33842
34349
  updateStep(1 /* VIDEO */, { hasFailed: true });
33843
34350
  setError(err);
33844
34351
  });
33845
34352
  }, [hmsDiagnostics, updateStep]);
33846
- return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(TestContainer, { css: { display: "flex", "@lg": { flexDirection: "column", alignItems: "center" } } }, trackID && /* @__PURE__ */ React190.createElement(
34353
+ return /* @__PURE__ */ React193.createElement(React193.Fragment, null, /* @__PURE__ */ React193.createElement(TestContainer, { css: { display: "flex", "@lg": { flexDirection: "column", alignItems: "center" } } }, trackID && /* @__PURE__ */ React193.createElement(
33847
34354
  StyledVideoTile.Container,
33848
34355
  {
33849
34356
  css: {
@@ -33853,30 +34360,30 @@ var VideoTest = () => {
33853
34360
  "@lg": { mr: 0, mb: "$10", aspectRatio: "1/1" }
33854
34361
  }
33855
34362
  },
33856
- /* @__PURE__ */ React190.createElement(Video, { mirror: true, trackId: trackID })
33857
- ), /* @__PURE__ */ React190.createElement(Flex, { direction: "column", css: { w: "100%" } }, /* @__PURE__ */ React190.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium", mb: "$10" } }, "Move in front of your camera to make sure it's working. If you don't see your video, try changing the selected camera. If the camera isn't part of your computer, check your settings to make sure your system recognizes it."), /* @__PURE__ */ React190.createElement(
34363
+ /* @__PURE__ */ React193.createElement(Video, { mirror: true, trackId: trackID })
34364
+ ), /* @__PURE__ */ React193.createElement(Flex, { direction: "column", css: { w: "100%" } }, /* @__PURE__ */ React193.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium", mb: "$10" } }, "Move in front of your camera to make sure it's working. If you don't see your video, try changing the selected camera. If the camera isn't part of your computer, check your settings to make sure your system recognizes it."), /* @__PURE__ */ React193.createElement(
33858
34365
  DeviceSelector2,
33859
34366
  {
33860
34367
  title: "Video",
33861
34368
  devices: videoInput || [],
33862
- icon: /* @__PURE__ */ React190.createElement(VideoOnIcon5, null),
34369
+ icon: /* @__PURE__ */ React193.createElement(VideoOnIcon5, null),
33863
34370
  selection: sdkSelectedDevices.videoInputDeviceId,
33864
34371
  onChange: (deviceId) => __async(void 0, null, function* () {
33865
34372
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.stopCameraCheck();
33866
34373
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck(deviceId);
33867
34374
  })
33868
34375
  }
33869
- ))), /* @__PURE__ */ React190.createElement(TestFooter, { error, ctaText: "Does your video look good?" }), /* @__PURE__ */ React190.createElement(PermissionErrorModal, { error }));
34376
+ ))), /* @__PURE__ */ React193.createElement(TestFooter, { error, ctaText: "Does your video look good?" }), /* @__PURE__ */ React193.createElement(PermissionErrorModal, { error }));
33870
34377
  };
33871
34378
 
33872
34379
  // src/Diagnostics/Diagnostics.tsx
33873
34380
  var DiagnosticsStepIcon = {
33874
- [1 /* VIDEO */]: /* @__PURE__ */ React191.createElement(VideoOnIcon6, { width: "2rem", height: "2rem" }),
33875
- [2 /* AUDIO */]: /* @__PURE__ */ React191.createElement(MicOnIcon8, { width: "2rem", height: "2rem" }),
33876
- [0 /* BROWSER */]: /* @__PURE__ */ React191.createElement(GlobeIcon, { width: "2rem", height: "2rem" }),
33877
- [3 /* CONNECTIVITY */]: /* @__PURE__ */ React191.createElement(ConnectivityIcon2, { width: "2rem", height: "2rem" })
34381
+ [1 /* VIDEO */]: /* @__PURE__ */ React194.createElement(VideoOnIcon6, { width: "2rem", height: "2rem" }),
34382
+ [2 /* AUDIO */]: /* @__PURE__ */ React194.createElement(MicOnIcon8, { width: "2rem", height: "2rem" }),
34383
+ [0 /* BROWSER */]: /* @__PURE__ */ React194.createElement(GlobeIcon, { width: "2rem", height: "2rem" }),
34384
+ [3 /* CONNECTIVITY */]: /* @__PURE__ */ React194.createElement(ConnectivityIcon2, { width: "2rem", height: "2rem" })
33878
34385
  };
33879
- var Container5 = ({ children }) => /* @__PURE__ */ React191.createElement(
34386
+ var Container5 = ({ children }) => /* @__PURE__ */ React194.createElement(
33880
34387
  Box,
33881
34388
  {
33882
34389
  css: {
@@ -33916,7 +34423,7 @@ var Container5 = ({ children }) => /* @__PURE__ */ React191.createElement(
33916
34423
  );
33917
34424
  var DiagnosticsStepTest = () => {
33918
34425
  const { activeStepIndex } = useDiagnostics();
33919
- let TestComponent = () => /* @__PURE__ */ React191.createElement(React191.Fragment, null);
34426
+ let TestComponent = () => /* @__PURE__ */ React194.createElement(React194.Fragment, null);
33920
34427
  if (activeStepIndex === 2 /* AUDIO */) {
33921
34428
  TestComponent = AudioTest;
33922
34429
  } else if (activeStepIndex === 1 /* VIDEO */) {
@@ -33926,47 +34433,47 @@ var DiagnosticsStepTest = () => {
33926
34433
  } else if (activeStepIndex === 3 /* CONNECTIVITY */) {
33927
34434
  TestComponent = ConnectivityTest;
33928
34435
  }
33929
- return /* @__PURE__ */ React191.createElement(TestComponent, { key: activeStepIndex });
34436
+ return /* @__PURE__ */ React194.createElement(TestComponent, { key: activeStepIndex });
33930
34437
  };
33931
34438
  var DiagnosticsStepHeader = () => {
33932
34439
  const { activeStepIndex, activeStep } = useDiagnostics();
33933
- return /* @__PURE__ */ React191.createElement(Flex, { css: { py: "$8", px: "$10", alignItems: "center", borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$primary_bright", mt: "$xs" } }, DiagnosticsStepIcon[activeStepIndex]), /* @__PURE__ */ React191.createElement(Text, { css: { fontSize: "$h6", ml: "$9" } }, activeStep.name));
34440
+ return /* @__PURE__ */ React194.createElement(Flex, { css: { py: "$8", px: "$10", alignItems: "center", borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React194.createElement(Text, { css: { c: "$primary_bright", mt: "$xs" } }, DiagnosticsStepIcon[activeStepIndex]), /* @__PURE__ */ React194.createElement(Text, { css: { fontSize: "$h6", ml: "$9" } }, activeStep.name));
33934
34441
  };
33935
34442
  var DiagnosticsStepContainer = () => {
33936
- return /* @__PURE__ */ React191.createElement(Box, { css: { border: "1px solid $border_default", r: "$1", w: "75%", maxWidth: "65rem", "@lg": { w: "100%" } } }, /* @__PURE__ */ React191.createElement(DiagnosticsStepHeader, null), /* @__PURE__ */ React191.createElement(DiagnosticsStepTest, null));
34443
+ return /* @__PURE__ */ React194.createElement(Box, { css: { border: "1px solid $border_default", r: "$1", w: "75%", maxWidth: "65rem", "@lg": { w: "100%" } } }, /* @__PURE__ */ React194.createElement(DiagnosticsStepHeader, null), /* @__PURE__ */ React194.createElement(DiagnosticsStepTest, null));
33937
34444
  };
33938
34445
  var DiagnosticsStepsList = () => {
33939
34446
  const { activeStepIndex, activeStep, steps } = useDiagnostics();
33940
- return /* @__PURE__ */ React191.createElement(Box, { css: { w: "25%", "@lg": { display: "none" } } }, Object.keys(DiagnosticsStep).filter((key) => !isNaN(Number(key))).map((key) => {
34447
+ return /* @__PURE__ */ React194.createElement(Box, { css: { w: "25%", "@lg": { display: "none" } } }, Object.keys(DiagnosticsStep).filter((key) => !isNaN(Number(key))).map((key) => {
33941
34448
  const keyIndex = Number(key);
33942
34449
  const step = steps[keyIndex];
33943
34450
  const isStepCompleted = activeStepIndex > keyIndex || activeStep.isCompleted;
33944
34451
  let color = "$on_primary_low";
33945
- let icon = /* @__PURE__ */ React191.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
34452
+ let icon = /* @__PURE__ */ React194.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
33946
34453
  if (activeStepIndex === keyIndex) {
33947
34454
  color = "$on_primary_high";
33948
- icon = /* @__PURE__ */ React191.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
34455
+ icon = /* @__PURE__ */ React194.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
33949
34456
  }
33950
34457
  if (isStepCompleted) {
33951
34458
  color = "$primary_bright";
33952
- icon = /* @__PURE__ */ React191.createElement(CheckCircleIcon7, { width: "1rem", height: "1rem" });
34459
+ icon = /* @__PURE__ */ React194.createElement(CheckCircleIcon7, { width: "1rem", height: "1rem" });
33953
34460
  }
33954
34461
  if (step.hasFailed) {
33955
34462
  color = "$alert_error_default";
33956
- icon = /* @__PURE__ */ React191.createElement(CrossCircleIcon5, { width: "1rem", height: "1rem" });
34463
+ icon = /* @__PURE__ */ React194.createElement(CrossCircleIcon5, { width: "1rem", height: "1rem" });
33957
34464
  }
33958
- return /* @__PURE__ */ React191.createElement(Flex, { key, css: { mb: "$10", c: color, gap: "$4", alignItems: "center" } }, icon, /* @__PURE__ */ React191.createElement(Text, { css: { c: color } }, step.name));
34465
+ return /* @__PURE__ */ React194.createElement(Flex, { key, css: { mb: "$10", c: color, gap: "$4", alignItems: "center" } }, icon, /* @__PURE__ */ React194.createElement(Text, { css: { c: color } }, step.name));
33959
34466
  }));
33960
34467
  };
33961
34468
  var DiagnosticsProvider = () => {
33962
- const actions = useHMSActions60();
33963
- const [activeStep, setActiveStep] = useState82(0);
33964
- const [steps, setSteps] = useState82(initialSteps);
34469
+ const actions = useHMSActions61();
34470
+ const [activeStep, setActiveStep] = useState84(0);
34471
+ const [steps, setSteps] = useState84(initialSteps);
33965
34472
  const diagnosticsRef = useRef35(actions.initDiagnostics());
33966
34473
  const updateStep = useCallback42((step, value) => {
33967
34474
  setSteps((prevSteps) => __spreadProps(__spreadValues({}, prevSteps), { [step]: __spreadValues(__spreadValues({}, prevSteps[step]), value) }));
33968
34475
  }, []);
33969
- return /* @__PURE__ */ React191.createElement(
34476
+ return /* @__PURE__ */ React194.createElement(
33970
34477
  DiagnosticsContext.Provider,
33971
34478
  {
33972
34479
  value: {
@@ -33977,11 +34484,11 @@ var DiagnosticsProvider = () => {
33977
34484
  updateStep
33978
34485
  }
33979
34486
  },
33980
- /* @__PURE__ */ React191.createElement(Container5, null, /* @__PURE__ */ React191.createElement(Text, { variant: "h4" }, "Pre-call Test"), /* @__PURE__ */ React191.createElement(Text, { variant: "md", css: { c: "$on_primary_medium" } }, "Make sure your devices and network are good to go, let's get started."), /* @__PURE__ */ React191.createElement(Flex, { css: { direction: "column", mt: "$12", justifyItems: "center" } }, /* @__PURE__ */ React191.createElement(DiagnosticsStepsList, null), /* @__PURE__ */ React191.createElement(DiagnosticsStepContainer, null)))
34487
+ /* @__PURE__ */ React194.createElement(Container5, null, /* @__PURE__ */ React194.createElement(Text, { variant: "h4" }, "Pre-call Test"), /* @__PURE__ */ React194.createElement(Text, { variant: "md", css: { c: "$on_primary_medium" } }, "Make sure your devices and network are good to go, let's get started."), /* @__PURE__ */ React194.createElement(Flex, { css: { direction: "column", mt: "$12", justifyItems: "center" } }, /* @__PURE__ */ React194.createElement(DiagnosticsStepsList, null), /* @__PURE__ */ React194.createElement(DiagnosticsStepContainer, null)))
33981
34488
  );
33982
34489
  };
33983
34490
  var Diagnostics = () => {
33984
- return /* @__PURE__ */ React191.createElement(HMSRoomProvider2, null, /* @__PURE__ */ React191.createElement(HMSThemeProvider, { themeType: "default" }, /* @__PURE__ */ React191.createElement(DiagnosticsProvider, null)));
34491
+ return /* @__PURE__ */ React194.createElement(HMSRoomProvider2, null, /* @__PURE__ */ React194.createElement(HMSThemeProvider, { themeType: "default" }, /* @__PURE__ */ React194.createElement(DiagnosticsProvider, null)));
33985
34492
  };
33986
34493
 
33987
34494
  export {
@@ -34116,4 +34623,4 @@ object-assign/index.js:
34116
34623
  @license MIT
34117
34624
  *)
34118
34625
  */
34119
- //# sourceMappingURL=chunk-NC3PKPDD.js.map
34626
+ //# sourceMappingURL=chunk-SLFOQJ6P.js.map