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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/dist/{HLSView-S5JHEMWJ.js → HLSView-4TLGLPKO.js} +19 -4
  2. package/dist/HLSView-4TLGLPKO.js.map +7 -0
  3. package/dist/Prebuilt/components/Polls/Voting/LeaderboardEntry.d.ts +2 -1
  4. package/dist/Prebuilt/components/RoleChangeRequest/RequestPrompt.d.ts +2 -1
  5. package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +1 -0
  6. package/dist/{chunk-AWWYBQSE.js → chunk-ARSLHHAZ.js} +176 -159
  7. package/dist/{chunk-AWWYBQSE.js.map → chunk-ARSLHHAZ.js.map} +3 -3
  8. package/dist/index.cjs.js +159 -124
  9. package/dist/index.cjs.js.map +3 -3
  10. package/dist/index.js +1 -1
  11. package/dist/meta.cjs.json +40 -40
  12. package/dist/meta.esbuild.json +49 -49
  13. package/package.json +6 -6
  14. package/src/Button/Button.tsx +2 -2
  15. package/src/Prebuilt/components/Notifications/PermissionErrorModal.tsx +8 -1
  16. package/src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx +17 -5
  17. package/src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx +1 -0
  18. package/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx +4 -2
  19. package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +38 -81
  20. package/src/Prebuilt/components/Polls/Voting/StandardVoting.tsx +0 -1
  21. package/src/Prebuilt/components/Polls/Voting/TimedVoting.tsx +2 -3
  22. package/src/Prebuilt/components/Polls/Voting/Voting.tsx +3 -3
  23. package/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx +1 -2
  24. package/src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx +6 -4
  25. package/src/Prebuilt/components/Polls/common/StatusIndicator.tsx +1 -1
  26. package/src/Prebuilt/components/Preview/PreviewJoin.tsx +4 -14
  27. package/src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx +15 -5
  28. package/src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx +3 -0
  29. package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +11 -1
  30. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +16 -2
  31. package/src/Prebuilt/layouts/HLSView.jsx +16 -1
  32. package/src/Sheet/Sheet.tsx +1 -1
  33. package/dist/HLSView-S5JHEMWJ.js.map +0 -7
package/dist/index.cjs.js CHANGED
@@ -108,7 +108,7 @@ var __async = (__this, __arguments, generator) => {
108
108
  var define_process_env_default;
109
109
  var init_define_process_env = __esm({
110
110
  "<define:process.env>"() {
111
- define_process_env_default = { NVM_INC: "/Users/ravitheja/.nvm/versions/node/v18.17.0/include/node", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_emoji_mart: "^5.2.2", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_scripts_size: "size-limit", npm_package_devDependencies_prettier: "^2.4.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_dependencies__100mslive_types_prebuilt: "0.12.5", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", TERM_PROGRAM: "vscode", npm_package_size_limit_0_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", NODE: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_scripts_types_build: "tsc -p tsconfig.json", INIT_CWD: "/Users/ravitheja/Documents/web-sdks", NVM_CD_FLAGS: "-q", npm_package_devDependencies_typescript: "~4.7.4", npm_config_version_git_tag: "true", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", TERM: "xterm-256color", SHELL: "/bin/zsh", npm_package_devDependencies_jest: "26.6.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", npm_package_size_limit_4_limit: "20 KB", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_toast: "1.0.0", TMPDIR: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/", npm_package_devDependencies_esbuild: "^0.18.13", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies__100mslive_react_icons: "0.9.1-alpha.2", npm_package_size_limit_6_limit: "150 KB", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_config_init_license: "MIT", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", TERM_PROGRAM_VERSION: "1.85.1", npm_package_devDependencies_concurrently: "^6.4.0", npm_package_dependencies_screenfull: "^5.1.0", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", ZDOTDIR: "/Users/ravitheja", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", npm_package_dependencies_uuid: "^8.3.2", npm_package_private: "true", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_sideEffects: "false", ZSH: "/Users/ravitheja/.oh-my-zsh", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_readmeFilename: "README.md", NVM_DIR: "/Users/ravitheja/.nvm", USER: "ravitheja", 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_react: "^18.1.0", npm_package_license: "MIT", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_devDependencies__types_react: "^18.1.0", COMMAND_MODE: "unix2003", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_exports___import: "./dist/index.js", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_devDependencies__babel_core: "^7.18.2", NX_TASK_HASH: "1d39446b045193a1060769172cf5e4d8f371cb30cc83089500d48f5243a66663", npm_package_repository_directory: "packages/roomkit-react", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.8tHoKq6Yge/Listeners", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_devDependencies__types_jest: "^27.0.3", npm_execpath: "/usr/local/Cellar/yarn/1.22.19/libexec/bin/yarn.js", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", PAGER: "less", npm_package_module: "dist/index.js", npm_package_dependencies_react_use: "^17.4.0", npm_package_devDependencies__types_mdx: "2.0.2", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", npm_package_author_name: "100ms", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_dependencies__stitches_react: "^1.2.8", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", PATH: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1705574182636-0.40094544212351324:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1705574182236-0.10136835258993937:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1705574157793-0.9903788580668094:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/Users/ravitheja/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build","--no-private"]}', npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_scripts_lint_fix: "yarn lint --fix", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_size_limit_5_limit: "20 KB", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_nx: "^14.5.1", npm_config_workspaces_experimental: "true", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_devDependencies_rollup: "^2.70.1", _: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1705574182636-0.40094544212351324/node", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", NX_WORKSPACE_ROOT: "/Users/ravitheja/Documents/web-sdks", npm_package_dependencies__radix_ui_react_progress: "1.0.0", USER_ZDOTDIR: "/Users/ravitheja", __CFBundleIdentifier: "com.microsoft.VSCode", npm_package_size_limit_7_limit: "100 KB", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_devDependencies_ts_jest: "26.5.6", PWD: "/Users/ravitheja/Documents/web-sdks/packages/roomkit-react", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_dependencies__100mslive_react_sdk: "0.9.1-alpha.2", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_lifecycle_event: "build:only", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", LANG: "en_US.UTF-8", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", npm_package_keywords_0: "100mslive", npm_package_size_limit_2_limit: "400 KB", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.1-alpha.2", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_1: "react", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_version_commit_hooks: "true", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_keywords_2: "prebuilt", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "--ms-enable-electron-run-as-node", XPC_FLAGS: "0x0", npm_package_keywords_3: "roomkit", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", npm_config_bin_links: "true", npm_package_engines_node: ">=16", FORCE_COLOR: "true", npm_package_devDependencies__storybook_react: "^7.0.27", npm_config_wrap_output: "", npm_package_scripts_cypress_open: "cypress open", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_main: "dist/index.cjs.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.2.1-alpha.2", npm_package_dependencies_recordrtc: "^5.6.2", VSCODE_INJECTION: "1", SHLVL: "5", HOME: "/Users/ravitheja", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_package_dependencies_react_window: "^1.8.7", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_source: "src/index.ts", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies__100mslive_hls_player: "0.2.1-alpha.2", npm_package_devDependencies_husky: "^6.0.0", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_exports___default: "./dist/index.js", LESS: "-R", LOGNAME: "ravitheja", YARN_WRAP_OUTPUT: "false", npm_package_scripts_format: "prettier -w src/**", npm_package_dependencies_qrcode_react: "^3.1.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_typings: "dist/index.d.ts", PREFIX: "/usr/local", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_exports___require: "./dist/index.cjs.js", VSCODE_GIT_IPC_HANDLE: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/vscode-git-4dbfa2fdda.sock", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_scripts_babel: "npx storybook@latest babelrc", NVM_BIN: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.19 npm/? node/v18.17.0 darwin x64", npm_package_dependencies__radix_ui_react_label: "1.0.0", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_devDependencies__types_node: "^16.11.17", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", npm_package_scripts_types: "tsc -w", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_lerna: "^5.6.2", npm_package_files_1: "src", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_files_0: "dist", npm_package_size_limit_3_limit: "20 KB", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_workspaces_0: "packages/*", npm_package_dependencies_react_draggable: "^4.4.5", COLORTERM: "truecolor", npm_node_execpath: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_workspaces_1: "examples/*", npm_config_version_tag_prefix: "v", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", REACT_APP_TILE_SHAPE: "16-9", REACT_APP_THEME: "dark", REACT_APP_COLOR: "#FF0000", REACT_APP_LOGO: "", REACT_APP_FONT: "Roboto", REACT_APP_SHOW_CHAT: "true", REACT_APP_SHOW_SCREENSHARE: "true", REACT_APP_VIDEO_AVATAR: "true", REACT_APP_TOKEN_GENERATION_ENDPOINT: "https://qa-in2.100ms.live/hmsapi/hrashi-studystream.qa-app.100ms.live/", REACT_APP_ENV: "qa", REACT_APP_LOGROCKET_ID: "<Your Logrocket project ID>", REACT_APP_POLICY_CONFIG: "", REACT_APP_WEBINAR_PROPS: "{}", REACT_APP_ENABLE_STATS_FOR_NERDS: "true", REACT_APP_AUDIO_PLAYLIST: '[{"name":"Audio1","id":"audio1","metadata":{"description":"Artist1"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio1.mp3","type":"audio"},{"name":"Audio2","id":"audio2","metadata":{"description":"Artist2"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio2.mp3","type":"audio"},{"name":"Audio3","id":"audio3","metadata":{"description":"Artist3"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio3.mp3","type":"audio"},{"name":"Audio4","id":"audio4","metadata":{"description":"Artist4"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio4.mp3","type":"audio"},{"name":"Audio5","id":"audio5","metadata":{"description":"Artist5"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio5.mp3","type":"audio"},{"name":"Audio6","id":"audio6","metadata":{"description":"Artist6"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio6.mp3","type":"audio"}]', REACT_APP_VIDEO_PLAYLIST: '[{"name":"Video1","id":"video1","url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/video1.mp4","type":"video"}]', REACT_APP_HOST_NAME: "ravi.qa-app.100ms.live", REACT_APP_DEFAULT_APP_DETAILS: '{"headlessConfig":{"uiMode":"activespeaker","hideAudioLevel":true,"hideTileAudioMute":true}}', REACT_APP_TOKEN_GENERATION_ENDPOINT_DOMAIN: "ravi.qa-app.100ms.live", REACT_APP_ZIPY_KEY: "", REACT_APP_PUSHER_APP_KEY: "4ae6f78bb2b7f2d9ed11", REACT_APP_PUSHER_AUTHENDPOINT: "https://whiteboard-server.vercel.app/api/pusher/auth", REACT_APP_ENABLE_WHITEBOARD: "true", REACT_APP_TRANSCRIPTION_ROOM_ID: "644df1027cebfa471fcc52fd", STORYBOOK_ROOM_LAYOUT_ENDPOINT: "https://api-nonprod.100ms.live/v2/layouts/ui", STORYBOOK_TOKEN_BY_ROOM_CODE_ENDPOINT: "https://auth-nonprod.100ms.live/v2/token", STORYBOOK_INIT_API_ENDPOINT: "https://qa-init.100ms.live/init", STORYBOOK_SAMPLE_ROOM_CODE: "dkz-teqx-wap" };
111
+ define_process_env_default = { NVM_INC: "/Users/ravitheja/.nvm/versions/node/v18.17.0/include/node", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_emoji_mart: "^5.2.2", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_scripts_size: "size-limit", npm_package_devDependencies_prettier: "^2.4.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_dependencies__100mslive_types_prebuilt: "0.12.5", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", TERM_PROGRAM: "vscode", npm_package_size_limit_0_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", NODE: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_scripts_types_build: "tsc -p tsconfig.json", INIT_CWD: "/Users/ravitheja/Documents/web-sdks/scripts", NVM_CD_FLAGS: "-q", npm_package_devDependencies_typescript: "~4.7.4", npm_config_version_git_tag: "true", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", TERM: "xterm-256color", SHELL: "/bin/zsh", npm_package_devDependencies_jest: "26.6.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", npm_package_size_limit_4_limit: "20 KB", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_toast: "1.0.0", TMPDIR: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/", npm_package_devDependencies_esbuild: "^0.18.13", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies__100mslive_react_icons: "0.9.2-alpha.0", npm_package_size_limit_6_limit: "150 KB", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_config_init_license: "MIT", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", TERM_PROGRAM_VERSION: "1.85.2", npm_package_devDependencies_concurrently: "^6.4.0", npm_package_dependencies_screenfull: "^5.1.0", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", ZDOTDIR: "/Users/ravitheja", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", npm_package_dependencies_uuid: "^8.3.2", npm_package_private: "true", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_sideEffects: "false", ZSH: "/Users/ravitheja/.oh-my-zsh", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_readmeFilename: "README.md", NVM_DIR: "/Users/ravitheja/.nvm", USER: "ravitheja", 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_react: "^18.1.0", npm_package_license: "MIT", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_devDependencies__types_react: "^18.1.0", COMMAND_MODE: "unix2003", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_exports___import: "./dist/index.js", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_devDependencies__babel_core: "^7.18.2", NX_TASK_HASH: "8d7ba53451278864a4cd1c54a4294a9720fede2924e96082fbed986180ee8a8c", npm_package_repository_directory: "packages/roomkit-react", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.5lUeYdLBIu/Listeners", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_devDependencies__types_jest: "^27.0.3", npm_execpath: "/usr/local/Cellar/yarn/1.22.19/libexec/bin/yarn.js", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", PAGER: "less", npm_package_module: "dist/index.js", npm_package_dependencies_react_use: "^17.4.0", npm_package_devDependencies__types_mdx: "2.0.2", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", npm_package_author_name: "100ms", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_dependencies__stitches_react: "^1.2.8", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", PATH: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1705913498356-0.43708507478229097:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1705913497811-0.379639415023473:/Users/ravitheja/Documents/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1705913475111-0.1370974562629641:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.config/yarn/link/node_modules/.bin:/Users/ravitheja/Documents/web-sdks/node_modules/.bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node_modules/npm/bin/node-gyp-bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/ravitheja/.nvm/versions/node/v18.17.0/bin:/Users/ravitheja/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build","--no-private"]}', npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_scripts_lint_fix: "yarn lint --fix", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_size_limit_5_limit: "20 KB", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_nx: "^14.5.1", npm_config_workspaces_experimental: "true", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_devDependencies_rollup: "^2.70.1", _: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/yarn--1705913498356-0.43708507478229097/node", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", NX_WORKSPACE_ROOT: "/Users/ravitheja/Documents/web-sdks", npm_package_dependencies__radix_ui_react_progress: "1.0.0", USER_ZDOTDIR: "/Users/ravitheja", __CFBundleIdentifier: "com.microsoft.VSCode", npm_package_size_limit_7_limit: "100 KB", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_devDependencies_ts_jest: "26.5.6", PWD: "/Users/ravitheja/Documents/web-sdks/packages/roomkit-react", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_dependencies__100mslive_react_sdk: "0.9.2-alpha.0", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_lifecycle_event: "build:only", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", LANG: "en_US.UTF-8", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", npm_package_keywords_0: "100mslive", npm_package_size_limit_2_limit: "400 KB", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.2-alpha.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_1: "react", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_version_commit_hooks: "true", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_keywords_2: "prebuilt", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "--ms-enable-electron-run-as-node", XPC_FLAGS: "0x0", npm_package_keywords_3: "roomkit", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", npm_config_bin_links: "true", npm_package_engines_node: ">=16", FORCE_COLOR: "true", npm_package_devDependencies__storybook_react: "^7.0.27", npm_config_wrap_output: "", npm_package_scripts_cypress_open: "cypress open", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_main: "dist/index.cjs.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.2.2-alpha.0", npm_package_dependencies_recordrtc: "^5.6.2", VSCODE_INJECTION: "1", SHLVL: "5", HOME: "/Users/ravitheja", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_package_dependencies_react_window: "^1.8.7", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_source: "src/index.ts", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies__100mslive_hls_player: "0.2.2-alpha.0", npm_package_devDependencies_husky: "^6.0.0", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_exports___default: "./dist/index.js", LESS: "-R", LOGNAME: "ravitheja", YARN_WRAP_OUTPUT: "false", npm_package_scripts_format: "prettier -w src/**", npm_package_dependencies_qrcode_react: "^3.1.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_typings: "dist/index.d.ts", PREFIX: "/usr/local", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_exports___require: "./dist/index.cjs.js", VSCODE_GIT_IPC_HANDLE: "/var/folders/_k/lv0n3xdx0n9c5c6nzjvb629r0000gn/T/vscode-git-4dbfa2fdda.sock", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_scripts_babel: "npx storybook@latest babelrc", NVM_BIN: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.19 npm/? node/v18.17.0 darwin x64", npm_package_dependencies__radix_ui_react_label: "1.0.0", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_devDependencies__types_node: "^16.11.17", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", npm_package_scripts_types: "tsc -w", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_lerna: "^5.6.2", npm_package_files_1: "src", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_files_0: "dist", npm_package_size_limit_3_limit: "20 KB", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_workspaces_0: "packages/*", npm_package_dependencies_react_draggable: "^4.4.5", COLORTERM: "truecolor", npm_node_execpath: "/Users/ravitheja/.nvm/versions/node/v18.17.0/bin/node", npm_package_workspaces_1: "examples/*", npm_config_version_tag_prefix: "v", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", REACT_APP_TILE_SHAPE: "16-9", REACT_APP_THEME: "dark", REACT_APP_COLOR: "#FF0000", REACT_APP_LOGO: "", REACT_APP_FONT: "Roboto", REACT_APP_SHOW_CHAT: "true", REACT_APP_SHOW_SCREENSHARE: "true", REACT_APP_VIDEO_AVATAR: "true", REACT_APP_TOKEN_GENERATION_ENDPOINT: "https://qa-in2.100ms.live/hmsapi/hrashi-studystream.qa-app.100ms.live/", REACT_APP_ENV: "qa", REACT_APP_LOGROCKET_ID: "<Your Logrocket project ID>", REACT_APP_POLICY_CONFIG: "", REACT_APP_WEBINAR_PROPS: "{}", REACT_APP_ENABLE_STATS_FOR_NERDS: "true", REACT_APP_AUDIO_PLAYLIST: '[{"name":"Audio1","id":"audio1","metadata":{"description":"Artist1"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio1.mp3","type":"audio"},{"name":"Audio2","id":"audio2","metadata":{"description":"Artist2"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio2.mp3","type":"audio"},{"name":"Audio3","id":"audio3","metadata":{"description":"Artist3"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio3.mp3","type":"audio"},{"name":"Audio4","id":"audio4","metadata":{"description":"Artist4"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio4.mp3","type":"audio"},{"name":"Audio5","id":"audio5","metadata":{"description":"Artist5"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio5.mp3","type":"audio"},{"name":"Audio6","id":"audio6","metadata":{"description":"Artist6"},"url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/audio6.mp3","type":"audio"}]', REACT_APP_VIDEO_PLAYLIST: '[{"name":"Video1","id":"video1","url":"https://d2qi07yyjujoxr.cloudfront.net/webapp/playlist/video1.mp4","type":"video"}]', REACT_APP_HOST_NAME: "ravi.qa-app.100ms.live", REACT_APP_DEFAULT_APP_DETAILS: '{"headlessConfig":{"uiMode":"activespeaker","hideAudioLevel":true,"hideTileAudioMute":true}}', REACT_APP_TOKEN_GENERATION_ENDPOINT_DOMAIN: "ravi.qa-app.100ms.live", REACT_APP_ZIPY_KEY: "", REACT_APP_PUSHER_APP_KEY: "4ae6f78bb2b7f2d9ed11", REACT_APP_PUSHER_AUTHENDPOINT: "https://whiteboard-server.vercel.app/api/pusher/auth", REACT_APP_ENABLE_WHITEBOARD: "true", REACT_APP_TRANSCRIPTION_ROOM_ID: "644df1027cebfa471fcc52fd", STORYBOOK_ROOM_LAYOUT_ENDPOINT: "https://api-nonprod.100ms.live/v2/layouts/ui", STORYBOOK_TOKEN_BY_ROOM_CODE_ENDPOINT: "https://auth-nonprod.100ms.live/v2/token", STORYBOOK_INIT_API_ENDPOINT: "https://qa-init.100ms.live/init", STORYBOOK_SAMPLE_ROOM_CODE: "dkz-teqx-wap" };
112
112
  }
113
113
  });
114
114
 
@@ -912,8 +912,8 @@ var init_Button = __esm({
912
912
  "$secondary_bright",
913
913
  "$secondary_dim",
914
914
  "$secondary_disabled",
915
- "$on_surface_high",
916
- "$on_surface_low"
915
+ "$on_secondary_high",
916
+ "$on_secondary_low"
917
917
  ),
918
918
  danger: getButtonVariants(
919
919
  "$alert_error_default",
@@ -5138,7 +5138,7 @@ var init_Sheet = __esm({
5138
5138
  borderTopRightRadius: "$3",
5139
5139
  boxShadow: "0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)",
5140
5140
  position: "fixed",
5141
- zIndex: 1001,
5141
+ zIndex: 22,
5142
5142
  top: 0,
5143
5143
  right: 0,
5144
5144
  left: 0,
@@ -18268,7 +18268,7 @@ function qh(a2) {
18268
18268
  return a2 ? e.sessionStore[a2] : e.sessionStore;
18269
18269
  };
18270
18270
  }
18271
- var import_ua_parser_js, import_uuid3, import_uuid4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Ht, import_eventemitter24, import_uuid9, import_uuid10, ga, Ta, fa, Ot, Fr, Gr, Br, m, y, Qi, ya, nr, zi, ka, $r, Yi, Wr, U, Ea, yn, kn, G, Bt, jr, w, Xi, Aa, ye, An, ba, ae, Ra, Q, ue, bn, Rn, Z, K, Ha, Qr, Hn, In, er, Ia, Ln, wn, Dn, _n, Nn, On, xn, Un, rt, Ca, Vn, z, Yr, Bn, oe, Fn, Ft, La, Xr, Gn, Zr, $n, Wn, Kn, qn, jn, Jn, Qn, zn, es, ec, wa, tc, is, tr, rs, ss, as, os, ns, cs, ds, ls, us, Da, d, pe, N, ps, Ie, Na, dc, hs, ms, gs, Ue, v, T, xa, h, sr, Ts, ne, fs, Ms, ys, H, M, dr, q, lr, ur, As, bs, pr, Cs, hr, Ls, mr, Sr, _s, Ns, qe, ht, k, Ar, mt, Gs, ao, oo, j, br, no, co, lo, uo, po, J, Kh, Jh, si, $s, Qh, zh, Yh, ho, mo, Zh, Ws, em, So, tm, im, rm, sm, am, om, Ks, qs, cm, dm, js, lm, um, Js, pm, hm, mm, Qs, zs, go, To, fo, Sm, gm, Tm, fm, vm, Ys, Cm, vo, Lm, wm, Dm, yo, ko, Lr, fe, $, xi, Ki, Go, $o, Wo, Ko, ma, qo, Sa, xr, Me, jo, Jo, Qo, zo, Yo, Xo, Zo, en, tn, rn, Ur, sn, an, on, nn, cn, dn;
18271
+ var import_ua_parser_js, import_uuid3, import_uuid4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Ht, import_eventemitter24, import_uuid9, import_uuid10, ga, Ta, fa, Ot, Fr, Gr, Br, m, k, Qi, ya, nr, zi, ka, $r, Yi, Wr, U, Ea, yn, kn, G, Bt, jr, w, Xi, Aa, ye, An, ba, ae, Ra, Q, ue, bn, Rn, Z, K, Ha, Qr, Hn, In, er, Ia, Ln, wn, Dn, _n, Nn, On, xn, Un, rt, Ca, Vn, z, Yr, Bn, oe, Fn, Ft, La, Xr, Gn, Zr, $n, Wn, Kn, qn, jn, Jn, Qn, zn, es, ec, wa, tc, is, tr, rs, ss, as, os, ns, cs, ds, ls, us, Da, d, pe, N, ps, Ie, Na, dc, hs, ms, gs, Ue, v, T, xa, h, sr, Ts, ne, fs, Ms, ys, H, M, dr, q, lr, ur, As, bs, pr, Cs, hr, Ls, mr, Sr, _s, Ns, qe, ht, y, Ar, mt, Gs, ao, oo, j, br, no, co, lo, uo, po, J, Kh, Jh, si, $s, Qh, zh, Yh, ho, mo, Zh, Ws, em, So, tm, im, rm, sm, am, om, Ks, qs, cm, dm, js, lm, um, Js, pm, hm, mm, Qs, zs, go, To, fo, Sm, gm, Tm, fm, vm, Ys, Cm, vo, Lm, wm, Dm, yo, ko, Lr, fe, $, xi, Ki, Go, $o, Wo, Ko, ma, qo, Sa, xr, Me, jo, Jo, Qo, zo, Yo, Xo, Zo, en, tn, rn, Ur, sn, an, on, nn, cn, dn;
18272
18272
  var init_dist = __esm({
18273
18273
  "../hms-video-store/dist/index.js"() {
18274
18274
  "use strict";
@@ -18309,7 +18309,7 @@ var init_dist = __esm({
18309
18309
  Gr.call(e, t) && Br(a2, t, e[t]);
18310
18310
  return a2;
18311
18311
  };
18312
- y = (a2, e) => Ta(a2, fa(e));
18312
+ k = (a2, e) => Ta(a2, fa(e));
18313
18313
  Qi = (a2, e) => {
18314
18314
  var t = {};
18315
18315
  for (var i in a2)
@@ -18321,7 +18321,7 @@ var init_dist = __esm({
18321
18321
  };
18322
18322
  ya = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18323
18323
  nr = ya((jc, Va) => {
18324
- Va.exports = { version: "0.11.1-alpha.2", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", 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/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"] };
18324
+ Va.exports = { version: "0.11.2-alpha.0", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", 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/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"] };
18325
18325
  });
18326
18326
  zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(zi || {});
18327
18327
  ka = ((e) => (e.CHAT = "chat", e))(ka || {});
@@ -18751,12 +18751,12 @@ var init_dist = __esm({
18751
18751
  this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = fs();
18752
18752
  }
18753
18753
  toSignalParams() {
18754
- return { name: this.name, info: y(m({}, this.properties), { timestamp: this.timestamp, domain: Ue }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
18754
+ return { name: this.name, info: k(m({}, this.properties), { timestamp: this.timestamp, domain: Ue }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
18755
18755
  }
18756
18756
  };
18757
18757
  M = class {
18758
18758
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
18759
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(y(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
18759
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(k(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
18760
18760
  return new H({ name: o, level: n, properties: l });
18761
18761
  }
18762
18762
  static disconnect(e, t) {
@@ -18770,7 +18770,7 @@ var init_dist = __esm({
18770
18770
  }
18771
18771
  static join(i) {
18772
18772
  var r = i, { error: e } = r, t = Qi(r, ["error"]);
18773
- let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(y(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
18773
+ let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(k(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
18774
18774
  return new H({ name: s, level: o, properties: n });
18775
18775
  }
18776
18776
  static publish({ devices: e, settings: t, error: i }) {
@@ -18813,7 +18813,7 @@ var init_dist = __esm({
18813
18813
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
18814
18814
  if (!t && e.degradedAt instanceof Date) {
18815
18815
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
18816
- s = y(m({}, s), { duration: n, restoredAt: o });
18816
+ s = k(m({}, s), { duration: n, restoredAt: o });
18817
18817
  }
18818
18818
  return new H({ name: i, level: r, properties: s });
18819
18819
  }
@@ -18945,7 +18945,7 @@ var init_dist = __esm({
18945
18945
  };
18946
18946
  qe.makePeerId = () => (0, import_uuid7.v4)();
18947
18947
  ht = "HMS-Store:";
18948
- k = class {
18948
+ y = class {
18949
18949
  static v(e, ...t) {
18950
18950
  this.log(0, e, ...t);
18951
18951
  }
@@ -19010,7 +19010,7 @@ var init_dist = __esm({
19010
19010
  }
19011
19011
  }
19012
19012
  };
19013
- k.level = 0;
19013
+ y.level = 0;
19014
19014
  Ar = (a2, e) => e;
19015
19015
  mt = (a2, e) => e;
19016
19016
  Gs = (a2, e) => e;
@@ -19133,7 +19133,7 @@ var init_dist = __esm({
19133
19133
  let t = br(a2, e);
19134
19134
  if (t) {
19135
19135
  if (t.type !== "audio") {
19136
- k.w("Please pass audio track here");
19136
+ y.w("Please pass audio track here");
19137
19137
  return;
19138
19138
  }
19139
19139
  return t.volume;
@@ -19151,7 +19151,7 @@ var init_dist = __esm({
19151
19151
  let t = br(a2, e);
19152
19152
  if (t) {
19153
19153
  if (t.type !== "video") {
19154
- k.w("Please pass video track here");
19154
+ y.w("Please pass video track here");
19155
19155
  return;
19156
19156
  }
19157
19157
  return t.layer;
@@ -22072,7 +22072,7 @@ var init_StatusIndicator = __esm({
22072
22072
  variant: "caption",
22073
22073
  css: {
22074
22074
  fontWeight: "$semiBold",
22075
- color: "$on_surface_high"
22075
+ color: "$on_primary_high"
22076
22076
  }
22077
22077
  },
22078
22078
  isLive ? "LIVE" : "ENDED"
@@ -22412,7 +22412,6 @@ var init_MultipleChoiceOptions = __esm({
22412
22412
  questionIndex,
22413
22413
  options,
22414
22414
  canRespond,
22415
- response,
22416
22415
  totalResponses,
22417
22416
  selectedOptions,
22418
22417
  setSelectedOptions,
@@ -22438,7 +22437,7 @@ var init_MultipleChoiceOptions = __esm({
22438
22437
  {
22439
22438
  id: `${questionIndex}-${option.index}`,
22440
22439
  disabled: !canRespond,
22441
- checked: (_a8 = response == null ? void 0 : response.options) == null ? void 0 : _a8.includes(option.index),
22440
+ checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
22442
22441
  onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
22443
22442
  css: {
22444
22443
  cursor: canRespond ? "pointer" : "not-allowed"
@@ -22490,7 +22489,6 @@ var init_SingleChoiceOptions = __esm({
22490
22489
  SingleChoiceOptions = ({
22491
22490
  questionIndex,
22492
22491
  options,
22493
- response,
22494
22492
  canRespond,
22495
22493
  setAnswer,
22496
22494
  totalResponses,
@@ -22498,9 +22496,10 @@ var init_SingleChoiceOptions = __esm({
22498
22496
  correctOptionIndex,
22499
22497
  isStopped,
22500
22498
  isQuiz,
22501
- localPeerResponse
22499
+ localPeerResponse,
22500
+ answer
22502
22501
  }) => {
22503
- return /* @__PURE__ */ import_react105.default.createElement(RadioGroup.Root, { value: response == null ? void 0 : response.option, onValueChange: (value) => setAnswer(value) }, /* @__PURE__ */ import_react105.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
22502
+ return /* @__PURE__ */ import_react105.default.createElement(RadioGroup.Root, { value: answer || null, onValueChange: (value) => setAnswer(value) }, /* @__PURE__ */ import_react105.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
22504
22503
  return /* @__PURE__ */ import_react105.default.createElement(Flex, { align: "start", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$5" } }, !isStopped || !isQuiz ? /* @__PURE__ */ import_react105.default.createElement(
22505
22504
  RadioGroup.Item,
22506
22505
  {
@@ -22534,7 +22533,7 @@ var init_SingleChoiceOptions = __esm({
22534
22533
  }
22535
22534
  }
22536
22535
  )
22537
- ) : null, isStopped && correctOptionIndex === option.index && isQuiz ? /* @__PURE__ */ import_react105.default.createElement(Flex, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react105.default.createElement(import_react_icons51.CheckCircleIcon, null)) : null, /* @__PURE__ */ import_react105.default.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ import_react105.default.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ import_react105.default.createElement(Text, { css: { display: "flex", flexGrow: "1" } }, /* @__PURE__ */ import_react105.default.createElement(Label3, { htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ import_react105.default.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ import_react105.default.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && (localPeerResponse == null ? void 0 : localPeerResponse.option) === option.index ? /* @__PURE__ */ import_react105.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
22536
+ ) : null, isStopped && correctOptionIndex === option.index && isQuiz ? /* @__PURE__ */ import_react105.default.createElement(Flex, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react105.default.createElement(import_react_icons51.CheckCircleIcon, null)) : null, /* @__PURE__ */ import_react105.default.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ import_react105.default.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ import_react105.default.createElement(Text, { css: { display: "flex", flexGrow: "1", color: "$on_surface_high" } }, /* @__PURE__ */ import_react105.default.createElement(Label3, { style: { color: "inherit" }, htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ import_react105.default.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ import_react105.default.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && (localPeerResponse == null ? void 0 : localPeerResponse.option) === option.index ? /* @__PURE__ */ import_react105.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
22538
22537
  })));
22539
22538
  };
22540
22539
  SingleChoiceOptionInputs = ({ isQuiz, options, selectAnswer, handleOptionTextChange, removeOption }) => {
@@ -22998,7 +22997,8 @@ var init_LeaderboardEntry = __esm({
22998
22997
  questionCount,
22999
22998
  correctResponses,
23000
22999
  userName,
23001
- maxPossibleScore
23000
+ maxPossibleScore,
23001
+ duration
23002
23002
  }) => {
23003
23003
  return /* @__PURE__ */ import_react109.default.createElement(Flex, { align: "center", justify: "between", css: { my: "$4" } }, /* @__PURE__ */ import_react109.default.createElement(Flex, { align: "center", css: { gap: "$6" } }, /* @__PURE__ */ import_react109.default.createElement(
23004
23004
  Flex,
@@ -23016,7 +23016,7 @@ var init_LeaderboardEntry = __esm({
23016
23016
  }
23017
23017
  },
23018
23018
  position
23019
- ), /* @__PURE__ */ import_react109.default.createElement(Box, null, /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, userName), /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "sm", css: { mt: "$1" } }, score, " / ", maxPossibleScore, " points"))), /* @__PURE__ */ import_react109.default.createElement(Flex, { align: "center", css: { gap: "$4", color: "$on_surface_medium" } }, position === 1 ? /* @__PURE__ */ import_react109.default.createElement(import_react_icons55.TrophyFilledIcon, { height: 16, width: 16 }) : null, /* @__PURE__ */ import_react109.default.createElement(import_react_icons55.CheckCircleIcon, { height: 16, width: 16 }), questionCount ? /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "xs" }, correctResponses, " / ", questionCount) : null));
23019
+ ), /* @__PURE__ */ import_react109.default.createElement(Box, null, /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, userName), /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "sm", css: { mt: "$1" } }, score, " / ", maxPossibleScore, " points"))), /* @__PURE__ */ import_react109.default.createElement(Flex, { align: "center", css: { gap: "$4", color: "$on_surface_medium" } }, position === 1 ? /* @__PURE__ */ import_react109.default.createElement(import_react_icons55.TrophyFilledIcon, { height: 16, width: 16 }) : null, questionCount ? /* @__PURE__ */ import_react109.default.createElement(import_react109.default.Fragment, null, /* @__PURE__ */ import_react109.default.createElement(import_react_icons55.CheckCircleIcon, { height: 16, width: 16 }), /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "xs" }, correctResponses, "/", questionCount)) : null, duration ? /* @__PURE__ */ import_react109.default.createElement(Flex, { align: "center", css: { gap: "$2", color: "$on_surface_medium" } }, /* @__PURE__ */ import_react109.default.createElement(import_react_icons55.ClockIcon, { height: 16, width: 16 }), /* @__PURE__ */ import_react109.default.createElement(Text, { variant: "xs" }, (duration / 1e3).toFixed(3), "s")) : null));
23020
23020
  };
23021
23021
  }
23022
23022
  });
@@ -23125,7 +23125,8 @@ var init_PeerParticipationSummary = __esm({
23125
23125
  title: "Correct Answers",
23126
23126
  value: `${summary.totalUsers ? (100 * summary.correctUsers / summary.totalUsers).toFixed(0) : 0}% (${summary.correctUsers}/${summary.totalUsers})`
23127
23127
  },
23128
- { title: "Avg. Time Taken", value: summary.avgTime },
23128
+ // Time in ms
23129
+ { title: "Avg. Time Taken", value: `${(summary.avgTime / 1e3).toFixed(3)}s` },
23129
23130
  {
23130
23131
  title: "Avg. Score",
23131
23132
  value: Number.isInteger(summary.avgScore) ? summary.avgScore : summary.avgScore.toFixed(2)
@@ -23133,7 +23134,8 @@ var init_PeerParticipationSummary = __esm({
23133
23134
  ] : [
23134
23135
  { title: "Your rank", value: (peerEntry == null ? void 0 : peerEntry.position) ? `${peerEntry.position}/${summary.totalUsers}` : "-" },
23135
23136
  { title: "Points", value: peerEntry == null ? void 0 : peerEntry.score },
23136
- { title: "Time Taken", value: peerEntry == null ? void 0 : peerEntry.duration },
23137
+ // Time in ms
23138
+ { title: "Time Taken", value: `${(((peerEntry == null ? void 0 : peerEntry.duration) || 0) / 1e3).toFixed(3)}s` },
23137
23139
  {
23138
23140
  title: "Correct Answers",
23139
23141
  value: (peerEntry == null ? void 0 : peerEntry.totalResponses) ? `${peerEntry == null ? void 0 : peerEntry.correctResponses}/${peerEntry.totalResponses}` : "-"
@@ -23210,7 +23212,8 @@ var init_LeaderboardSummary = __esm({
23210
23212
  questionCount,
23211
23213
  correctResponses: question.correctResponses,
23212
23214
  userName: question.peer.username || "",
23213
- maxPossibleScore
23215
+ maxPossibleScore,
23216
+ duration: question.duration
23214
23217
  }
23215
23218
  )),
23216
23219
  ((_b7 = quizLeaderboard == null ? void 0 : quizLeaderboard.entries) == null ? void 0 : _b7.length) > 5 && !viewAllEntries ? /* @__PURE__ */ import_react113.default.createElement(
@@ -23262,9 +23265,7 @@ var init_QuestionCard = __esm({
23262
23265
  options = [],
23263
23266
  answer,
23264
23267
  setCurrentIndex,
23265
- skippable = false,
23266
23268
  responses = [],
23267
- isTimed = false,
23268
23269
  rolesThatCanViewResponses
23269
23270
  }) => {
23270
23271
  const actions = (0, import_react_sdk52.useHMSActions)();
@@ -23281,15 +23282,8 @@ var init_QuestionCard = __esm({
23281
23282
  const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
23282
23283
  const isLive = pollState === "started";
23283
23284
  const canRespond = isLive && !localPeerResponse;
23285
+ const startTime = (0, import_react114.useRef)(Date.now());
23284
23286
  const isCorrectAnswer = checkCorrectAnswer(answer, localPeerResponse, type);
23285
- const prev = index !== 1;
23286
- const next = index !== totalQuestions && (skippable || localPeerResponse);
23287
- const moveNext = (0, import_react114.useCallback)(() => {
23288
- setCurrentIndex((curr) => Math.min(totalQuestions, curr + 1));
23289
- }, [setCurrentIndex, totalQuestions]);
23290
- const movePrev = () => {
23291
- setCurrentIndex((curr) => Math.max(1, curr - 1));
23292
- };
23293
23287
  const [singleOptionAnswer, setSingleOptionAnswer] = (0, import_react114.useState)();
23294
23288
  const [multipleOptionAnswer, setMultipleOptionAnswer] = (0, import_react114.useState)(/* @__PURE__ */ new Set());
23295
23289
  const [showOptions, setShowOptions] = (0, import_react114.useState)(true);
@@ -23309,19 +23303,25 @@ var init_QuestionCard = __esm({
23309
23303
  {
23310
23304
  questionIndex: index,
23311
23305
  option: singleOptionAnswer,
23312
- options: Array.from(multipleOptionAnswer)
23313
- }
23314
- ]);
23315
- }), [actions, index, pollID, isValidVote, singleOptionAnswer, multipleOptionAnswer]);
23316
- const handleSkip = (0, import_react114.useCallback)(() => __async(void 0, null, function* () {
23317
- yield actions.interactivityCenter.addResponsesToPoll(pollID, [
23318
- {
23319
- questionIndex: index,
23320
- skipped: true
23306
+ options: Array.from(multipleOptionAnswer),
23307
+ duration: Date.now() - startTime.current
23321
23308
  }
23322
23309
  ]);
23323
- moveNext();
23324
- }), [actions, index, pollID, moveNext]);
23310
+ startTime.current = Date.now();
23311
+ if (isQuiz && index !== totalQuestions) {
23312
+ setSingleOptionAnswer(void 0);
23313
+ setMultipleOptionAnswer(/* @__PURE__ */ new Set());
23314
+ }
23315
+ }), [
23316
+ isValidVote,
23317
+ actions.interactivityCenter,
23318
+ pollID,
23319
+ index,
23320
+ singleOptionAnswer,
23321
+ multipleOptionAnswer,
23322
+ totalQuestions,
23323
+ isQuiz
23324
+ ]);
23325
23325
  return /* @__PURE__ */ import_react114.default.createElement(
23326
23326
  Box,
23327
23327
  {
@@ -23353,34 +23353,12 @@ var init_QuestionCard = __esm({
23353
23353
  totalQuestions,
23354
23354
  ": ",
23355
23355
  type.toUpperCase()
23356
- ), isTimed ? /* @__PURE__ */ import_react114.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react114.default.createElement(
23357
- IconButton,
23358
- {
23359
- disabled: !prev,
23360
- onClick: movePrev,
23361
- css: prev ? { color: "$on_surface_high", cursor: "pointer" } : {
23362
- color: "$on_surface_low",
23363
- cursor: "not-allowed"
23364
- }
23365
- },
23366
- /* @__PURE__ */ import_react114.default.createElement(import_react_icons57.ChevronLeftIcon, { height: 16, width: 16 })
23367
- ), /* @__PURE__ */ import_react114.default.createElement(
23368
- IconButton,
23369
- {
23370
- disabled: !next,
23371
- onClick: moveNext,
23372
- css: next ? { color: "$on_surface_high", cursor: "pointer" } : {
23373
- color: "$on_surface_low",
23374
- cursor: "not-allowed"
23375
- }
23376
- },
23377
- /* @__PURE__ */ import_react114.default.createElement(import_react_icons57.ChevronRightIcon, { height: 16, width: 16 })
23378
- )) : null),
23356
+ )),
23379
23357
  /* @__PURE__ */ import_react114.default.createElement(Flex, { justify: "between", css: { my: "$md" } }, /* @__PURE__ */ import_react114.default.createElement(Text, { css: { color: "$on_surface_high" } }, text), /* @__PURE__ */ import_react114.default.createElement(
23380
23358
  Box,
23381
23359
  {
23382
23360
  css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high", cursor: "pointer" } },
23383
- onClick: () => setShowOptions((prev2) => !prev2)
23361
+ onClick: () => setShowOptions((prev) => !prev)
23384
23362
  },
23385
23363
  /* @__PURE__ */ import_react114.default.createElement(
23386
23364
  import_react_icons57.ChevronDownIcon,
@@ -23392,17 +23370,18 @@ var init_QuestionCard = __esm({
23392
23370
  /* @__PURE__ */ import_react114.default.createElement(Box, { css: { maxHeight: showOptions ? "$80" : "0", transition: "max-height 0.3s ease", overflowY: "hidden" } }, type === "single-choice" /* SINGLE_CHOICE */ ? /* @__PURE__ */ import_react114.default.createElement(
23393
23371
  SingleChoiceOptions,
23394
23372
  {
23373
+ key: index,
23395
23374
  questionIndex: index,
23396
23375
  isQuiz,
23397
23376
  canRespond,
23398
- response: localPeerResponse,
23399
23377
  correctOptionIndex: answer == null ? void 0 : answer.option,
23400
23378
  options,
23401
23379
  setAnswer: setSingleOptionAnswer,
23402
23380
  totalResponses: result == null ? void 0 : result.totalResponses,
23403
23381
  showVoteCount,
23404
23382
  localPeerResponse,
23405
- isStopped: pollState === "stopped"
23383
+ isStopped: pollState === "stopped",
23384
+ answer: singleOptionAnswer
23406
23385
  }
23407
23386
  ) : null, type === "multiple-choice" /* MULTIPLE_CHOICE */ ? /* @__PURE__ */ import_react114.default.createElement(
23408
23387
  MultipleChoiceOptions,
@@ -23410,7 +23389,6 @@ var init_QuestionCard = __esm({
23410
23389
  questionIndex: index,
23411
23390
  isQuiz,
23412
23391
  canRespond,
23413
- response: localPeerResponse,
23414
23392
  correctOptionIndexes: answer == null ? void 0 : answer.options,
23415
23393
  options,
23416
23394
  selectedOptions: multipleOptionAnswer,
@@ -23424,17 +23402,29 @@ var init_QuestionCard = __esm({
23424
23402
  QuestionActions,
23425
23403
  {
23426
23404
  isValidVote,
23427
- skippable,
23428
- onSkip: handleSkip,
23429
23405
  onVote: handleVote,
23430
23406
  response: localPeerResponse,
23431
- isQuiz
23407
+ isQuiz,
23408
+ incrementIndex: () => {
23409
+ setCurrentIndex((curr) => Math.min(totalQuestions, curr + 1));
23410
+ }
23432
23411
  }
23433
23412
  ))
23434
23413
  );
23435
23414
  };
23436
- QuestionActions = ({ isValidVote, skippable, response, isQuiz, onVote, onSkip }) => {
23437
- return /* @__PURE__ */ import_react114.default.createElement(Flex, { align: "center", justify: "end", css: { gap: "$4", w: "100%" } }, skippable && !response ? /* @__PURE__ */ import_react114.default.createElement(Button, { variant: "standard", onClick: onSkip, css: { p: "$xs $10", fontWeight: "$semiBold" } }, "Skip") : null, response ? /* @__PURE__ */ import_react114.default.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_medium" } }, response.skipped ? "Skipped" : null, isQuiz && !response.skipped ? "Answered" : null, !isQuiz && !response.skipped ? "Voted" : null) : /* @__PURE__ */ import_react114.default.createElement(Button, { css: { p: "$xs $10", fontWeight: "$semiBold" }, disabled: !isValidVote, onClick: onVote }, isQuiz ? "Answer" : "Vote"));
23415
+ QuestionActions = ({ isValidVote, response, isQuiz, onVote, incrementIndex }) => {
23416
+ return /* @__PURE__ */ import_react114.default.createElement(Flex, { align: "center", justify: "end", css: { gap: "$4", w: "100%" } }, response ? /* @__PURE__ */ import_react114.default.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_medium" } }, response.skipped ? "Skipped" : null, isQuiz && !response.skipped ? "Answered" : null, !isQuiz && !response.skipped ? "Voted" : null) : /* @__PURE__ */ import_react114.default.createElement(
23417
+ Button,
23418
+ {
23419
+ css: { p: "$xs $10", fontWeight: "$semiBold" },
23420
+ disabled: !isValidVote,
23421
+ onClick: () => {
23422
+ onVote();
23423
+ incrementIndex();
23424
+ }
23425
+ },
23426
+ isQuiz ? "Answer" : "Vote"
23427
+ ));
23438
23428
  };
23439
23429
  }
23440
23430
  });
@@ -23471,7 +23461,6 @@ var init_StandardVoting = __esm({
23471
23461
  result: question.result,
23472
23462
  totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
23473
23463
  options: question.options,
23474
- skippable: question.skippable,
23475
23464
  responses: question.responses,
23476
23465
  answer: question.answer,
23477
23466
  setCurrentIndex: () => {
@@ -23513,12 +23502,10 @@ var init_TimedVoting = __esm({
23513
23502
  result: activeQuestion == null ? void 0 : activeQuestion.result,
23514
23503
  totalQuestions: ((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0,
23515
23504
  options: activeQuestion.options,
23516
- skippable: activeQuestion.skippable || false,
23517
23505
  responses: activeQuestion.responses,
23518
23506
  answer: activeQuestion.answer,
23519
23507
  setCurrentIndex,
23520
- rolesThatCanViewResponses: poll.rolesThatCanViewResponses,
23521
- isTimed: true
23508
+ rolesThatCanViewResponses: poll.rolesThatCanViewResponses
23522
23509
  }
23523
23510
  );
23524
23511
  };
@@ -23547,11 +23534,11 @@ var init_Voting = __esm({
23547
23534
  const pollCreatorName = (0, import_react_sdk53.useHMSStore)((0, import_react_sdk53.selectPeerNameByID)(poll == null ? void 0 : poll.createdBy));
23548
23535
  const isLocalPeerCreator = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectLocalPeerID) === (poll == null ? void 0 : poll.createdBy);
23549
23536
  const { setPollView } = usePollViewState();
23537
+ const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
23550
23538
  if (!poll) {
23551
23539
  return null;
23552
23540
  }
23553
23541
  const canViewLeaderboard = poll.type === "quiz" && poll.state === "stopped" && !poll.anonymous;
23554
- const isTimed = (poll.duration || 0) > 0;
23555
23542
  const isLive = poll.state === "started";
23556
23543
  return /* @__PURE__ */ import_react117.default.createElement(Container3, { rounded: true }, /* @__PURE__ */ import_react117.default.createElement(
23557
23544
  Flex,
@@ -23588,7 +23575,7 @@ var init_Voting = __esm({
23588
23575
  },
23589
23576
  /* @__PURE__ */ import_react117.default.createElement(import_react_icons58.CrossIcon, { onClick: toggleVoting })
23590
23577
  )
23591
- ), /* @__PURE__ */ import_react117.default.createElement(Flex, { direction: "column", css: { p: "$8 $10", overflowY: "auto" } }, poll.state === "started" ? /* @__PURE__ */ import_react117.default.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, pollCreatorName || "Participant", " started a ", poll.type) : null, isTimed ? /* @__PURE__ */ import_react117.default.createElement(TimedView, { poll }) : /* @__PURE__ */ import_react117.default.createElement(StandardView, { poll }), poll.state === "started" && isLocalPeerCreator && /* @__PURE__ */ import_react117.default.createElement(
23578
+ ), /* @__PURE__ */ import_react117.default.createElement(Flex, { direction: "column", css: { p: "$8 $10", overflowY: "auto" } }, poll.state === "started" ? /* @__PURE__ */ import_react117.default.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, pollCreatorName || "Participant", " started a ", poll.type) : null, showSingleView ? /* @__PURE__ */ import_react117.default.createElement(TimedView, { poll }) : /* @__PURE__ */ import_react117.default.createElement(StandardView, { poll }), poll.state === "started" && isLocalPeerCreator && /* @__PURE__ */ import_react117.default.createElement(
23592
23579
  Button,
23593
23580
  {
23594
23581
  variant: "danger",
@@ -26449,11 +26436,20 @@ var init_VBHandler = __esm({
26449
26436
  }
26450
26437
  };
26451
26438
  this.getBackground = () => {
26452
- var _a8, _b7, _c, _d;
26439
+ var _a8, _b7;
26453
26440
  if (this.effectsPlugin) {
26454
26441
  return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
26455
26442
  } else {
26456
- return ((_c = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.background) == null ? void 0 : _c.src) || ((_d = this.hmsPlugin) == null ? void 0 : _d.background);
26443
+ const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
26444
+ return (background == null ? void 0 : background.src) || background;
26445
+ }
26446
+ };
26447
+ this.getBlurAmount = () => {
26448
+ var _a8;
26449
+ if (this.effectsPlugin) {
26450
+ return this.effectsPlugin.getBlurAmount();
26451
+ } else {
26452
+ return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === import_hms_virtual_background2.HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
26457
26453
  }
26458
26454
  };
26459
26455
  this.getVBObject = () => {
@@ -26562,6 +26558,7 @@ var init_VBPicker = __esm({
26562
26558
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26563
26559
  const trackSelector = (0, import_react_sdk71.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
26564
26560
  const track = (0, import_react_sdk71.useHMSStore)(trackSelector);
26561
+ const [blurAmount, setBlurAmount] = (0, import_react146.useState)(VBHandler.getBlurAmount() || 0.5);
26565
26562
  const roomState = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectRoomState);
26566
26563
  const isLargeRoom = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectIsLargeRoom);
26567
26564
  const isEffectsEnabled = (0, import_react_sdk71.useHMSStore)(Qn);
@@ -26644,7 +26641,7 @@ var init_VBPicker = __esm({
26644
26641
  value: import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR,
26645
26642
  onClick: () => __async(void 0, null, function* () {
26646
26643
  var _a9;
26647
- yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(0.5);
26644
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
26648
26645
  setActiveBackground(import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR);
26649
26646
  })
26650
26647
  }
@@ -26652,6 +26649,19 @@ var init_VBPicker = __esm({
26652
26649
  activeBackground
26653
26650
  }
26654
26651
  ),
26652
+ activeBackground === import_hms_virtual_background3.HMSVirtualBackgroundTypes.BLUR ? /* @__PURE__ */ import_react146.default.createElement(
26653
+ Slider,
26654
+ {
26655
+ value: [blurAmount],
26656
+ onValueChange: (e) => __async(void 0, null, function* () {
26657
+ setBlurAmount(e[0]);
26658
+ yield VBHandler.setBlur(e[0]);
26659
+ }),
26660
+ step: 0.1,
26661
+ min: 0.1,
26662
+ max: 1
26663
+ }
26664
+ ) : null,
26655
26665
  /* @__PURE__ */ import_react146.default.createElement(
26656
26666
  VBCollection,
26657
26667
  {
@@ -27110,20 +27120,7 @@ var init_PreviewJoin = __esm({
27110
27120
  textColor: "#FFF",
27111
27121
  icon: /* @__PURE__ */ import_react152.default.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
27112
27122
  }
27113
- ) : null, /* @__PURE__ */ import_react152.default.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ import_react152.default.createElement(
27114
- Flex,
27115
- {
27116
- align: "center",
27117
- justify: "center",
27118
- css: {
27119
- mt: "$14",
27120
- "@md": { mt: 0 },
27121
- "@sm": { width: "100%" },
27122
- flexDirection: "column"
27123
- }
27124
- },
27125
- /* @__PURE__ */ import_react152.default.createElement(PreviewTile, { name, error: previewError })
27126
- ) : null, /* @__PURE__ */ import_react152.default.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 360}px` } }, /* @__PURE__ */ import_react152.default.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ import_react152.default.createElement(
27123
+ ) : null, /* @__PURE__ */ import_react152.default.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ import_react152.default.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ import_react152.default.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 360}px` } }, /* @__PURE__ */ import_react152.default.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ import_react152.default.createElement(
27127
27124
  PreviewForm_default,
27128
27125
  {
27129
27126
  name,
@@ -27164,9 +27161,12 @@ var init_PreviewJoin = __esm({
27164
27161
  bg: "$surface_default",
27165
27162
  aspectRatio,
27166
27163
  height: "min(360px, 70vh)",
27164
+ width: "auto",
27167
27165
  maxWidth: "640px",
27168
27166
  overflow: "clip",
27167
+ mt: "$14",
27169
27168
  "@md": {
27169
+ mt: 0,
27170
27170
  width: "min(220px, 70vw)",
27171
27171
  maxWidth: "100%",
27172
27172
  my: "$4"
@@ -27224,15 +27224,20 @@ var init_RequestPrompt = __esm({
27224
27224
  title,
27225
27225
  body,
27226
27226
  actionText = "Accept",
27227
- onAction
27227
+ onAction,
27228
+ disableActions = false
27228
27229
  }) => {
27229
27230
  const isMobile = (0, import_react_use29.useMedia)(config.media.md);
27230
27231
  if (isMobile) {
27231
- return /* @__PURE__ */ import_react153.default.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ import_react153.default.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ import_react153.default.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ import_react153.default.createElement(RequestActions, { actionText, onAction })));
27232
+ return /* @__PURE__ */ import_react153.default.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ import_react153.default.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ import_react153.default.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ import_react153.default.createElement(RequestActions, { actionText, onAction, disabled: disableActions })));
27232
27233
  }
27233
- return /* @__PURE__ */ import_react153.default.createElement(Dialog.Root, { open, modal: false, onOpenChange }, /* @__PURE__ */ import_react153.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react153.default.createElement(Dialog.Content, { css: { p: "$10" }, onInteractOutside: (e) => e.preventDefault() }, /* @__PURE__ */ import_react153.default.createElement(Dialog.Title, { css: { p: 0, display: "flex", flexDirection: "row", gap: "$md", justifyContent: "center" } }, /* @__PURE__ */ import_react153.default.createElement(Text, { variant: "h6" }, title)), /* @__PURE__ */ import_react153.default.createElement(Box, { css: { mt: "$4", mb: "$10" } }, body), /* @__PURE__ */ import_react153.default.createElement(RequestActions, { actionText, onAction }))));
27234
+ return /* @__PURE__ */ import_react153.default.createElement(Dialog.Root, { open, modal: false, onOpenChange }, /* @__PURE__ */ import_react153.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react153.default.createElement(Dialog.Content, { css: { p: "$10" }, onInteractOutside: (e) => e.preventDefault() }, /* @__PURE__ */ import_react153.default.createElement(Dialog.Title, { css: { p: 0, display: "flex", flexDirection: "row", gap: "$md", justifyContent: "center" } }, /* @__PURE__ */ import_react153.default.createElement(Text, { variant: "h6" }, title)), /* @__PURE__ */ import_react153.default.createElement(Box, { css: { mt: "$4", mb: "$10" } }, body), /* @__PURE__ */ import_react153.default.createElement(RequestActions, { actionText, onAction, disabled: disableActions }))));
27234
27235
  };
27235
- RequestActions = ({ onAction, actionText }) => /* @__PURE__ */ import_react153.default.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md", "@md": { mt: "$8", px: "$8" } } }, /* @__PURE__ */ import_react153.default.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ import_react153.default.createElement(Dialog.Close, { css: { width: "100%" } }, /* @__PURE__ */ import_react153.default.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" } }, "Decline"))), /* @__PURE__ */ import_react153.default.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ import_react153.default.createElement(Button, { variant: "primary", css: { width: "100%" }, onClick: onAction }, actionText)));
27236
+ RequestActions = ({
27237
+ onAction,
27238
+ actionText,
27239
+ disabled = false
27240
+ }) => /* @__PURE__ */ import_react153.default.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md", "@md": { mt: "$8", px: "$8" } } }, /* @__PURE__ */ import_react153.default.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ import_react153.default.createElement(Dialog.Close, { css: { width: "100%" } }, /* @__PURE__ */ import_react153.default.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" }, disabled }, "Decline"))), /* @__PURE__ */ import_react153.default.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ import_react153.default.createElement(Button, { variant: "primary", css: { width: "100%" }, onClick: onAction, disabled }, actionText)));
27236
27241
  }
27237
27242
  });
27238
27243
 
@@ -27253,6 +27258,7 @@ var init_RoleChangeRequestModal = __esm({
27253
27258
  RoleChangeRequestModal = () => {
27254
27259
  const hmsActions = (0, import_react_sdk76.useHMSActions)();
27255
27260
  const { updateMetaData } = useMyMetadata();
27261
+ const isPreview = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectIsInPreview);
27256
27262
  const currentRole = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeerRoleName);
27257
27263
  const roleChangeRequest = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectRoleChangeRequest);
27258
27264
  const name = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeerName);
@@ -27315,7 +27321,8 @@ var init_RoleChangeRequestModal = __esm({
27315
27321
  yield updateMetaData({ prevRole: currentRole });
27316
27322
  yield hmsActions.lowerLocalPeerHand();
27317
27323
  }),
27318
- actionText: "Accept"
27324
+ actionText: "Accept",
27325
+ disableActions: !isPreview
27319
27326
  }
27320
27327
  );
27321
27328
  };
@@ -29281,7 +29288,7 @@ var HLSView_exports = {};
29281
29288
  __export(HLSView_exports, {
29282
29289
  default: () => HLSView_default
29283
29290
  });
29284
- var import_react184, import_react_use38, import_hls_player3, import_screenfull3, import_react_sdk90, import_react_icons88, hlsPlayer, HLSView, HLSView_default;
29291
+ var import_react184, import_react_use38, import_hls_player3, import_screenfull3, import_react_sdk90, import_react_icons88, hlsPlayer, toastMap, HLSView, HLSView_default;
29285
29292
  var init_HLSView = __esm({
29286
29293
  "src/Prebuilt/layouts/HLSView.jsx"() {
29287
29294
  "use strict";
@@ -29308,12 +29315,14 @@ var init_HLSView = __esm({
29308
29315
  init_Tooltip2();
29309
29316
  init_useSidepane();
29310
29317
  init_constants();
29318
+ toastMap = {};
29311
29319
  HLSView = () => {
29312
29320
  var _a8;
29313
29321
  const videoRef = (0, import_react184.useRef)(null);
29314
29322
  const hlsViewRef = (0, import_react184.useRef)(null);
29315
29323
  const hlsState = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectHLSState);
29316
29324
  const enablHlsStats = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectAppData)(APP_DATA.hlsStats));
29325
+ const notification = (0, import_react_sdk90.useHMSNotifications)(import_react_sdk90.HMSNotificationTypes.POLL_STOPPED);
29317
29326
  const hmsActions = (0, import_react_sdk90.useHMSActions)();
29318
29327
  const { themeType, theme: theme2 } = useTheme();
29319
29328
  const [streamEnded, setStreamEnded] = (0, import_react184.useState)(false);
@@ -29357,6 +29366,15 @@ var init_HLSView = __esm({
29357
29366
  setStreamEnded(false);
29358
29367
  }
29359
29368
  }, [hlsUrl, streamEnded, lastHlsUrl]);
29369
+ (0, import_react184.useEffect)(() => {
29370
+ if (!notification)
29371
+ return;
29372
+ const toastID = toastMap == null ? void 0 : toastMap[notification.data.id];
29373
+ if (toastID) {
29374
+ ToastManager.removeToast(toastMap[notification.data.id]);
29375
+ delete toastMap[notification.data.id];
29376
+ }
29377
+ }, [notification]);
29360
29378
  (0, import_react184.useEffect)(() => {
29361
29379
  const videoElem = videoRef.current;
29362
29380
  const setStreamEndedCallback = () => {
@@ -29393,7 +29411,7 @@ var init_HLSView = __esm({
29393
29411
  const pollId = parsedPayload.substr(parsedPayload.indexOf(":") + 1);
29394
29412
  const poll = vanillaStore.getState((0, import_react_sdk90.selectPollByID)(pollId));
29395
29413
  const pollStartedBy = vanillaStore.getState((0, import_react_sdk90.selectPeerNameByID)(poll.startedBy)) || "Participant";
29396
- ToastManager.addToast({
29414
+ const toastID = ToastManager.addToast({
29397
29415
  title: `${pollStartedBy} started a ${poll.type}: ${poll.title}`,
29398
29416
  action: /* @__PURE__ */ import_react184.default.createElement(
29399
29417
  Button,
@@ -29408,8 +29426,10 @@ var init_HLSView = __esm({
29408
29426
  }
29409
29427
  },
29410
29428
  poll.type === "quiz" ? "Answer" : "Vote"
29411
- )
29429
+ ),
29430
+ duration: Infinity
29412
29431
  });
29432
+ toastMap[pollId] = toastID;
29413
29433
  return;
29414
29434
  }
29415
29435
  switch (parsedPayload.type) {
@@ -31107,24 +31127,39 @@ function PermissionErrorModal() {
31107
31127
  }
31108
31128
  setIsSystemError(notification.data.code === 3011);
31109
31129
  }, [notification]);
31110
- return deviceType ? /* @__PURE__ */ import_react204.default.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ import_react204.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react204.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react204.default.createElement(Dialog.Content, { css: { w: "min(380px, 90%)", p: "$8" } }, /* @__PURE__ */ import_react204.default.createElement(
31111
- Dialog.Title,
31130
+ return deviceType ? /* @__PURE__ */ import_react204.default.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ import_react204.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react204.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react204.default.createElement(
31131
+ Dialog.Content,
31112
31132
  {
31113
31133
  css: {
31114
- borderBottom: "1px solid $border_default"
31134
+ w: "min(380px, 90%)",
31135
+ p: "$8",
31136
+ // overlay over Sheet.tsx
31137
+ zIndex: 23
31115
31138
  }
31116
31139
  },
31117
- isMobile && isIOS ? /* @__PURE__ */ import_react204.default.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
31118
- isMobile && isAndroid ? /* @__PURE__ */ import_react204.default.createElement(
31119
- "img",
31140
+ /* @__PURE__ */ import_react204.default.createElement(
31141
+ Dialog.Title,
31120
31142
  {
31121
- src: android_perm_1_default,
31122
- style: { maxWidth: "100%", maxHeight: "100%" },
31123
- alt: "Android Permission flow "
31124
- }
31125
- ) : null,
31126
- /* @__PURE__ */ import_react204.default.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
31127
- ), /* @__PURE__ */ import_react204.default.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), isMobile && isIOS ? /* @__PURE__ */ import_react204.default.createElement(import_react204.default.Fragment, null, /* @__PURE__ */ import_react204.default.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ import_react204.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null, isMobile && isAndroid ? /* @__PURE__ */ import_react204.default.createElement(import_react204.default.Fragment, null, /* @__PURE__ */ import_react204.default.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ import_react204.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null, !isMobile ? /* @__PURE__ */ import_react204.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react204.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null))) : null;
31143
+ css: {
31144
+ borderBottom: "1px solid $border_default"
31145
+ }
31146
+ },
31147
+ isMobile && isIOS ? /* @__PURE__ */ import_react204.default.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
31148
+ isMobile && isAndroid ? /* @__PURE__ */ import_react204.default.createElement(
31149
+ "img",
31150
+ {
31151
+ src: android_perm_1_default,
31152
+ style: { maxWidth: "100%", maxHeight: "100%" },
31153
+ alt: "Android Permission flow "
31154
+ }
31155
+ ) : null,
31156
+ /* @__PURE__ */ import_react204.default.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
31157
+ ),
31158
+ /* @__PURE__ */ import_react204.default.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),
31159
+ isMobile && isIOS ? /* @__PURE__ */ import_react204.default.createElement(import_react204.default.Fragment, null, /* @__PURE__ */ import_react204.default.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ import_react204.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
31160
+ isMobile && isAndroid ? /* @__PURE__ */ import_react204.default.createElement(import_react204.default.Fragment, null, /* @__PURE__ */ import_react204.default.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ import_react204.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
31161
+ !isMobile ? /* @__PURE__ */ import_react204.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react204.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
31162
+ ))) : null;
31128
31163
  }
31129
31164
  var import_react204, import_react_use42, import_react_sdk105;
31130
31165
  var init_PermissionErrorModal = __esm({