box-content-preview 3.121.0 → 3.123.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib/index.js CHANGED
@@ -51,23 +51,21 @@ import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Me
51
51
  import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Minus_cc9df143_default__ } from "@box/blueprint-web-assets/icons/Medium/Minus";
52
52
  import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Plus_aaa7b14f_default__ } from "@box/blueprint-web-assets/icons/Medium/Plus";
53
53
  import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_CheckmarkCircle_e8bd4624_default__ } from "@box/blueprint-web-assets/icons/Medium/CheckmarkCircle";
54
+ import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_PencilTip_154ad3fd_default__ } from "@box/blueprint-web-assets/icons/Medium/PencilTip";
55
+ import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_SquarePlus_c11758f1_default__ } from "@box/blueprint-web-assets/icons/Medium/SquarePlus";
56
+ import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_TCursorHighlight_508374cb_default__ } from "@box/blueprint-web-assets/icons/Medium/TCursorHighlight";
57
+ import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Comment_c700dfbc_default__ } from "@box/blueprint-web-assets/icons/Medium/Comment";
54
58
  import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_GridView_ac92b674_default__ } from "@box/blueprint-web-assets/icons/Medium/GridView";
55
59
  import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Nav_d41e959a_default__ } from "@box/blueprint-web-assets/icons/Medium/Nav";
56
60
  import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_RotateLeft_c726d679_default__ } from "@box/blueprint-web-assets/icons/Medium/RotateLeft";
57
61
  import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Search_ef3e4aba_default__ } from "@box/blueprint-web-assets/icons/Medium/Search";
58
62
  import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_XMark_07fbe0f0_default__ } from "@box/blueprint-web-assets/icons/Medium/XMark";
59
- import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_PencilTip_154ad3fd_default__ } from "@box/blueprint-web-assets/icons/Medium/PencilTip";
60
- import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_SquarePlus_c11758f1_default__ } from "@box/blueprint-web-assets/icons/Medium/SquarePlus";
61
- import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_TCursorHighlight_508374cb_default__ } from "@box/blueprint-web-assets/icons/Medium/TCursorHighlight";
62
63
  import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_EllipsisVertical_06d33c4b_default__ } from "@box/blueprint-web-assets/icons/Medium/EllipsisVertical";
63
64
  import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ChevronDown_a545a634_default__ } from "@box/blueprint-web-assets/icons/Medium/ChevronDown";
64
65
  import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ChevronUp_d399c022_default__ } from "@box/blueprint-web-assets/icons/Medium/ChevronUp";
65
66
  import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_MediumFilled_Nav_ae6d790f_default__ } from "@box/blueprint-web-assets/icons/MediumFilled/Nav";
66
- import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Checkmark_52a58454_default__ } from "@box/blueprint-web-assets/icons/Medium/Checkmark";
67
- import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Download_0dc63cde_default__ } from "@box/blueprint-web-assets/icons/Medium/Download";
68
- import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Ellipsis_9a96c07b_default__ } from "@box/blueprint-web-assets/icons/Medium/Ellipsis";
69
- import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Expand_92c6b888_default__ } from "@box/blueprint-web-assets/icons/Medium/Expand";
70
- import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Trash_28211f44_default__ } from "@box/blueprint-web-assets/icons/Medium/Trash";
67
+ import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_MediumFilled_Pause_0cc1f701_default__ } from "@box/blueprint-web-assets/icons/MediumFilled/Pause";
68
+ import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_MediumFilled_Play_ee47c078_default__ } from "@box/blueprint-web-assets/icons/MediumFilled/Play";
71
69
  import { PreviewLoading as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_components_preview_386c8d2b_PreviewLoading__, getIcon as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_components_preview_386c8d2b_getIcon__ } from "box-ui-elements/es/components/preview";
72
70
  import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ChevronLeft_8bf40851_default__ } from "@box/blueprint-web-assets/icons/Medium/ChevronLeft";
73
71
  import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ChevronRight_619e782c_default__ } from "@box/blueprint-web-assets/icons/Medium/ChevronRight";
@@ -1114,7 +1112,7 @@ const DEFAULT_LANGUAGE = 'en-US';
1114
1112
  const MESSAGE_KEY_PREFIX = 'bcp.';
1115
1113
 
1116
1114
  // Only the npm build defines __BCP_DEFAULT_MESSAGES__; the CDN build bakes strings in per locale.
1117
- const defaultStrings = (0,_isNpmBuild__WEBPACK_IMPORTED_MODULE_0__/* .isNpmBuild */ .w)() ? {"rotate_left":"Rotate left","zoom_current_scale":"Current zoom level","zoom_in":"Zoom in","zoom_out":"Zoom out","enter_fullscreen":"Enter fullscreen","exit_fullscreen":"Exit fullscreen","controls_more":"More options","controls_find":"Find","controls_rotate_document":"Rotate document","controls_zoom_scale":"Zoom: {1}","controls_view_as_grid":"View as grid","controls_show_thumbnails":"View thumbnails","controls_hide_thumbnails":"Hide thumbnails","controls_shortcut_ctrl":"Ctrl + {1}","drawing_comment":"Markup","region_comment":"Comment on Region","highlight_text":"Highlight and Comment","exit_annotations":"Exit Annotations","annotation_tools":"Comment and markup","drawing_color":"Drawing color","drawing_color_blue":"Blue","drawing_color_green":"Green","drawing_color_red":"Red","drawing_color_orange":"Orange","drawing_color_yellow":"Yellow","drawing_color_purple":"Purple","previous_page":"Previous page","enter_page_num":"Click to enter page number","next_page":"Next page","download":"Download","print":"Print","print_notification":"Please press the print button to get a printable version of this document.","print_loading":"Preparing to print...","print_ready":"Ready to print.","print_close":"Close print dialog","previous_file":"Previous file","logo":"Logo","next_file":"Next file","loading_preview":"Loading Preview...","download_file":"Download File","text_truncated":"This file has been truncated due to size limits. Please download to view the whole file.","toggle_findbar":"Toggle findbar","toggle_thumbnails":"Toggle thumbnails","gallery_view":"Gallery view","page_gallery":"Page gallery","page_gallery_tile":"Page {1}","has_x_refs":"This preview has references you cannot view. Open the file in its native application.","find_next":"Find next","find_previous":"Find previous","find_close":"Close","find_label":"Search input","thumbnail_label":"Page thumbnails","file_preview_label":"File preview","comparison_banner_current":"Current version","comparison_banner_previous":"Previous version","comparison_banner_actions":"More actions","comparison_banner_open_full_preview":"Open Full Preview","comparison_banner_close":"Close","comparison_banner_make_current":"Make Current","comparison_banner_delete":"Delete","error_generic":"This preview didn’t load. Please try to open or download the file to view.","error_unsupported":"This preview didn’t load because the file type is unsupported. Please try to open or download the file to view.","error_account":"This preview didn’t load because your account is unable to preview this file type. Please try to open or download the file to view.","error_permissions":"This preview didn’t load because you don’t have permission. Please ask the file owner to update permissions.","error_refresh":"This preview didn’t load. Please try to open or download the file to view.","error_rate_limit":"This preview didn’t load because your request was rate limited. Please try to open or download the file to view.","error_reupload":"This preview didn’t load. Please try to open or download the file to view.","error_browser_unsupported":"Your browser doesn’t support preview for {1}. Please try to open or download the file to view.","error_document":"This preview didn’t load because the document may be protected. Please try to open or download the file to view.","error_password_protected":"This preview didn’t load because the document is protected. Please try to open or download the file to view.","error_try_again_later":"This preview didn’t load. Please refresh the page or download file to view.","error_bad_file":"This preview didn’t load. Please try to open or download the file to view.","error_not_downloadable":"Something seems to be wrong with this file. Please refresh the page, and if the issue continues, try to upload a new version.","error_flash_not_enabled":"This preview didn’t load because Flash is not enabled on your browser. Please try to enable Flash or download the file to view.","error_internet_explorer_office_online":"This version of Internet Explorer is out of date and the experience may be degraded. Please try switching to a different browser for a better experience.","error_large_file":"File exceeds supported size for preview. Open or download the file to view.","error_too_many_operations":"The file is too complex to display in your browser. Please download it to view.","error_zero_byte_file":"Cannot preview 0 B file. Open or download the file to view.","filename":"Name","last_modified_date":"Modified","size":"Size","search":"Search","search_results":"Search Results","search_placeholder":"Search files and folders","search_clear":"Clear search","breadcrumb":"Breadcrumb","breadcrumb_truncated":"Show hidden folders","media_autoplay":"Autoplay","media_autoplay_disabled":"Disabled","media_autoplay_enabled":"Enabled","media_play_next":"Play next file","media_play_next_disabled":"Disabled","media_play_next_enabled":"Enabled","media_speed":"Speed","media_speed_normal":"Normal","media_quality":"Quality","media_quality_auto":"Auto","media_guides":"Guides","media_guides_off":"Off","media_guides_default":"Default","media_guides_widescreen_hd":"Widescreen HD","media_guides_vertical":"Vertical","media_guides_square":"Square","media_guides_social_portrait":"Social Portrait","media_guides_cinemascope":"Cinemascope","media_guides_univisium":"Univisium","media_guides_cinema_flat":"Cinema Flat","media_guides_scope":"Scope","media_guides_fullscreen":"Fullscreen","media_guides_ultrawide":"Ultrawide","media_volume_slider":"Volume Slider","media_generating_waveform":"Generating waveform","media_loading":"Loading","media_zoom":"Zoom","media_zoom_slider":"Zoom Slider","media_time_slider":"Media Slider","media_comment_marker":"Comment marker","media_range_comment":"Comment","media_range_clear":"Clear","media_shuttle_forward":"Scanning forward at {1}x","media_shuttle_reverse":"Scanning backward at {1}x","media_mute":"Mute","media_unmute":"Unmute","media_play":"Play","media_pause":"Pause","media_skip_forward":"Skip forward","media_skip_backward":"Skip backward","media_settings":"Settings","media_subtitles_cc":"Subtitles/Closed Captions","media_time_format":"Time format","media_time_format_standard":"Standard time","media_time_format_timecode":"Timecode","media_time_format_frames":"Frame numbers","volume":"Volume","of":"of","subtitles":"Subtitles","off":"Off","media_audio":"Audio","track":"Track","media_auto_generated_captions":"Auto-Generated Captions","auto_generated":"Auto-Generated","box3d_animation_clips":"Animation clips","box3d_camera_projection_perspective":"Perspective","box3d_camera_projection_orthographic":"Orthographic","box3d_reset":"Reset","box3d_toggle_animation":"Play/pause animation","box3d_toggle_vr":"Toggle VR display","box3d_render_mode_lit":"Lit","box3d_render_mode_unlit":"Unlit","box3d_render_mode_normals":"Normals","box3d_render_mode_shape":"Shape","box3d_render_mode_uv_overlay":"UV Overlay","box3d_settings":"Settings","box3d_settings_render_label":"Render mode","box3d_settings_grid_label":"Show grid","box3d_settings_wireframes_label":"Show wireframes","box3d_settings_skeletons_label":"Show skeletons","box3d_settings_projection_label":"Camera Projection","box3d_settings_rotate_label":"Rotate Model","box3d_settings_rotate_left":"Rotate left around {1} axis","box3d_settings_rotate_right":"Rotate right around {1} axis","document_label":"Document Viewer","annotation_add_comment_placeholder":"Add a comment here...","annotation_reply_placeholder":"Post a reply...","annotation_done":"Done","annotation_close":"Close","annotation_cancel":"Cancel","annotation_save":"Save","annotation_post":"Post","annotation_delete":"Delete","annotation_delete_confirmation_message":"Delete this annotation?","annotation_profile_alt":"Avatar","annotation_anonymous_user_name":"Some User","annotation_posting_message":"Posting...","annotation_point_toggle":"Point annotation mode","annotation_draw_toggle":"Drawing annotation mode","annotation_highlight_toggle":"Highlight text","annotation_highlight_comment":"Add comment to highlighted text","annotation_who_highlighted":"{1} highlighted","annotation_who_drew":"{1} drew","annotation_draw_save":"Save drawing","annotation_draw_delete":"Delete drawing","annotations_load_error":"Annotations could not be loaded for this file. Please refresh the page to try again.","annotations_create_error":"This annotation could not be created. Please try again.","annotations_delete_error":"This annotation could not be deleted. Please try again.","annotations_authorization_error":"Annotations could not be loaded for this file. You may not have permission to take this action.","notification_button_default_text":"Okay","notification_button_default_label":"Clear Notification","notification_annotation_point_mode":"Click anywhere to add a comment to the document","notification_annotation_draw_mode":"Press down and drag the pointer to draw on the document","notification_degraded_preview":"Your connection to {1} is being blocked. Please reach out to your network admin to adjust firewall settings.","notification_cannot_download":"This file could not be downloaded.","notification_cannot_download_due_to_policy":"The file could not be downloaded due to a security policy.","link_contact_us":"Contact Us","360_videos":"360-degree videos","360_images":"360-degree images","3d_models":"3D models","afrikaans":"Afrikaans","albanian":"Albanian","arabic":"Arabic","armenian":"Armenian","belarusian":"Belarusian","bengali":"Bengali","bosnian":"Bosnian","bulgarian":"Bulgarian","burmese":"Burmese","catalan":"Catalan","central_khmer":"Central Khmer","chinese":"Chinese","croatian":"Croatian","czech":"Czech","danish":"Danish","dutch":"Dutch","english":"English","estonian":"Estonian","filipino":"Filipino","finnish":"Finnish","french":"French","galician":"Galician","ganda":"Ganda","georgian":"Georgian","german":"German","haitian_creole":"Haitian Creole","hebrew":"Hebrew","hindi":"Hindi","hmong":"Hmong","hungarian":"Hungarian","icelandic":"Icelandic","indonesian":"Indonesian","irish":"Irish","italian":"Italian","japanese":"Japanese","kazakh":"Kazakh","korean":"Korean","kurdish":"Kurdish","lao":"Lao","latvian":"Latvian","lithuanian":"Lithuanian","luxembourgish":"Luxembourgish","malay_macrolanguage":"Malay","modern_greek_1453_":"Greek","mongolian":"Mongolian","norwegian":"Norwegian","persian":"Persian","polish":"Polish","portuguese":"Portuguese","romanian":"Romanian","russian":"Russian","serbian":"Serbian","sichuan_yi":"Sichuan Yi","sicilian":"Sicilian","slovak":"Slovak","slovenian":"Slovenian","somali":"Somali","spanish":"Spanish","swahili_macrolanguage":"Swahili","swedish":"Swedish","swiss_german":"Swiss German","tagalog":"Tagalog","telugu":"Telugu","thai":"Thai","tibetan":"Tibetan","turkish":"Turkish","ukrainian":"Ukrainian","uzbek":"Uzbek","vietnamese":"Vietnamese"} : {};
1115
+ const defaultStrings = (0,_isNpmBuild__WEBPACK_IMPORTED_MODULE_0__/* .isNpmBuild */ .w)() ? {"rotate_left":"Rotate left","zoom_current_scale":"Current zoom level","zoom_in":"Zoom in","zoom_out":"Zoom out","enter_fullscreen":"Enter fullscreen","exit_fullscreen":"Exit fullscreen","controls_more":"More options","controls_find":"Find","controls_rotate_document":"Rotate document","controls_zoom_scale":"Zoom: {1}","controls_view_as_grid":"View as grid","controls_show_thumbnails":"View thumbnails","controls_hide_thumbnails":"Hide thumbnails","controls_shortcut_ctrl":"Ctrl + {1}","drawing_comment":"Markup","region_comment":"Comment on Region","highlight_text":"Highlight and Comment","exit_annotations":"Exit Annotations","annotation_tools":"Comment and markup","drawing_color":"Drawing color","drawing_color_blue":"Blue","drawing_color_green":"Green","drawing_color_red":"Red","drawing_color_orange":"Orange","drawing_color_yellow":"Yellow","drawing_color_purple":"Purple","previous_page":"Previous page","enter_page_num":"Click to enter page number","next_page":"Next page","download":"Download","print":"Print","print_notification":"Please press the print button to get a printable version of this document.","print_loading":"Preparing to print...","print_ready":"Ready to print.","print_close":"Close print dialog","previous_file":"Previous file","logo":"Logo","next_file":"Next file","loading_preview":"Loading Preview...","download_file":"Download File","text_truncated":"This file has been truncated due to size limits. Please download to view the whole file.","toggle_findbar":"Toggle findbar","toggle_thumbnails":"Toggle thumbnails","gallery_view":"Gallery view","page_gallery":"Page gallery","page_gallery_tile":"Page {1}","has_x_refs":"This preview has references you cannot view. Open the file in its native application.","find_next":"Find next","find_previous":"Find previous","find_close":"Close","find_label":"Search input","thumbnail_label":"Page thumbnails","file_preview_label":"File preview","comparison_banner_current":"Current version","comparison_banner_previous":"Previous version","comparison_banner_version":"Version {1}","comparison_banner_actions":"More actions","comparison_banner_open_full_preview":"Open Full Preview","comparison_banner_close":"Close","comparison_banner_make_current":"Make Current","comparison_banner_delete":"Delete","error_generic":"This preview didn’t load. Please try to open or download the file to view.","error_unsupported":"This preview didn’t load because the file type is unsupported. Please try to open or download the file to view.","error_account":"This preview didn’t load because your account is unable to preview this file type. Please try to open or download the file to view.","error_permissions":"This preview didn’t load because you don’t have permission. Please ask the file owner to update permissions.","error_refresh":"This preview didn’t load. Please try to open or download the file to view.","error_rate_limit":"This preview didn’t load because your request was rate limited. Please try to open or download the file to view.","error_reupload":"This preview didn’t load. Please try to open or download the file to view.","error_browser_unsupported":"Your browser doesn’t support preview for {1}. Please try to open or download the file to view.","error_document":"This preview didn’t load because the document may be protected. Please try to open or download the file to view.","error_password_protected":"This preview didn’t load because the document is protected. Please try to open or download the file to view.","error_try_again_later":"This preview didn’t load. Please refresh the page or download file to view.","error_bad_file":"This preview didn’t load. Please try to open or download the file to view.","error_not_downloadable":"Something seems to be wrong with this file. Please refresh the page, and if the issue continues, try to upload a new version.","error_flash_not_enabled":"This preview didn’t load because Flash is not enabled on your browser. Please try to enable Flash or download the file to view.","error_internet_explorer_office_online":"This version of Internet Explorer is out of date and the experience may be degraded. Please try switching to a different browser for a better experience.","error_large_file":"File exceeds supported size for preview. Open or download the file to view.","error_too_many_operations":"The file is too complex to display in your browser. Please download it to view.","error_zero_byte_file":"Cannot preview 0 B file. Open or download the file to view.","filename":"Name","last_modified_date":"Modified","size":"Size","search":"Search","search_results":"Search Results","search_placeholder":"Search files and folders","search_clear":"Clear search","breadcrumb":"Breadcrumb","breadcrumb_truncated":"Show hidden folders","media_autoplay":"Autoplay","media_autoplay_disabled":"Disabled","media_autoplay_enabled":"Enabled","media_play_next":"Play next file","media_play_next_disabled":"Disabled","media_play_next_enabled":"Enabled","media_speed":"Speed","media_speed_normal":"Normal","media_quality":"Quality","media_quality_auto":"Auto","media_guides":"Guides","media_guides_off":"Off","media_guides_default":"Default","media_guides_widescreen_hd":"Widescreen HD","media_guides_vertical":"Vertical","media_guides_square":"Square","media_guides_social_portrait":"Social Portrait","media_guides_cinemascope":"Cinemascope","media_guides_univisium":"Univisium","media_guides_cinema_flat":"Cinema Flat","media_guides_scope":"Scope","media_guides_fullscreen":"Fullscreen","media_guides_ultrawide":"Ultrawide","media_volume_slider":"Volume Slider","media_generating_waveform":"Generating waveform","media_loading":"Loading","media_zoom":"Zoom","media_zoom_slider":"Zoom Slider","media_time_slider":"Media Slider","media_comment_marker":"Comment marker","media_range_comment":"Comment","media_range_clear":"Clear","media_shuttle_forward":"Scanning forward at {1}x","media_shuttle_reverse":"Scanning backward at {1}x","media_mute":"Mute","media_unmute":"Unmute","media_play":"Play","media_pause":"Pause","media_skip_forward":"Skip forward","media_skip_backward":"Skip backward","media_settings":"Settings","media_subtitles_cc":"Subtitles/Closed Captions","media_time_format":"Time format","media_time_format_standard":"Standard time","media_time_format_timecode":"Timecode","media_time_format_frames":"Frame numbers","volume":"Volume","of":"of","subtitles":"Subtitles","off":"Off","media_audio":"Audio","track":"Track","media_auto_generated_captions":"Auto-Generated Captions","auto_generated":"Auto-Generated","box3d_animation_clips":"Animation clips","box3d_camera_projection_perspective":"Perspective","box3d_camera_projection_orthographic":"Orthographic","box3d_reset":"Reset","box3d_toggle_animation":"Play/pause animation","box3d_toggle_vr":"Toggle VR display","box3d_render_mode_lit":"Lit","box3d_render_mode_unlit":"Unlit","box3d_render_mode_normals":"Normals","box3d_render_mode_shape":"Shape","box3d_render_mode_uv_overlay":"UV Overlay","box3d_settings":"Settings","box3d_settings_render_label":"Render mode","box3d_settings_grid_label":"Show grid","box3d_settings_wireframes_label":"Show wireframes","box3d_settings_skeletons_label":"Show skeletons","box3d_settings_projection_label":"Camera Projection","box3d_settings_rotate_label":"Rotate Model","box3d_settings_rotate_left":"Rotate left around {1} axis","box3d_settings_rotate_right":"Rotate right around {1} axis","document_label":"Document Viewer","annotation_add_comment_placeholder":"Add a comment here...","annotation_reply_placeholder":"Post a reply...","annotation_done":"Done","annotation_close":"Close","annotation_cancel":"Cancel","annotation_save":"Save","annotation_post":"Post","annotation_delete":"Delete","annotation_delete_confirmation_message":"Delete this annotation?","annotation_profile_alt":"Avatar","annotation_anonymous_user_name":"Some User","annotation_posting_message":"Posting...","annotation_point_toggle":"Point annotation mode","annotation_draw_toggle":"Drawing annotation mode","annotation_highlight_toggle":"Highlight text","annotation_highlight_comment":"Add comment to highlighted text","annotation_who_highlighted":"{1} highlighted","annotation_who_drew":"{1} drew","annotation_draw_save":"Save drawing","annotation_draw_delete":"Delete drawing","annotations_load_error":"Annotations could not be loaded for this file. Please refresh the page to try again.","annotations_create_error":"This annotation could not be created. Please try again.","annotations_delete_error":"This annotation could not be deleted. Please try again.","annotations_authorization_error":"Annotations could not be loaded for this file. You may not have permission to take this action.","notification_button_default_text":"Okay","notification_button_default_label":"Clear Notification","notification_annotation_point_mode":"Click anywhere to add a comment to the document","notification_annotation_draw_mode":"Press down and drag the pointer to draw on the document","notification_degraded_preview":"Your connection to {1} is being blocked. Please reach out to your network admin to adjust firewall settings.","notification_cannot_download":"This file could not be downloaded.","notification_cannot_download_due_to_policy":"The file could not be downloaded due to a security policy.","link_contact_us":"Contact Us","360_videos":"360-degree videos","360_images":"360-degree images","3d_models":"3D models","afrikaans":"Afrikaans","albanian":"Albanian","arabic":"Arabic","armenian":"Armenian","belarusian":"Belarusian","bengali":"Bengali","bosnian":"Bosnian","bulgarian":"Bulgarian","burmese":"Burmese","catalan":"Catalan","central_khmer":"Central Khmer","chinese":"Chinese","croatian":"Croatian","czech":"Czech","danish":"Danish","dutch":"Dutch","english":"English","estonian":"Estonian","filipino":"Filipino","finnish":"Finnish","french":"French","galician":"Galician","ganda":"Ganda","georgian":"Georgian","german":"German","haitian_creole":"Haitian Creole","hebrew":"Hebrew","hindi":"Hindi","hmong":"Hmong","hungarian":"Hungarian","icelandic":"Icelandic","indonesian":"Indonesian","irish":"Irish","italian":"Italian","japanese":"Japanese","kazakh":"Kazakh","korean":"Korean","kurdish":"Kurdish","lao":"Lao","latvian":"Latvian","lithuanian":"Lithuanian","luxembourgish":"Luxembourgish","malay_macrolanguage":"Malay","modern_greek_1453_":"Greek","mongolian":"Mongolian","norwegian":"Norwegian","persian":"Persian","polish":"Polish","portuguese":"Portuguese","romanian":"Romanian","russian":"Russian","serbian":"Serbian","sichuan_yi":"Sichuan Yi","sicilian":"Sicilian","slovak":"Slovak","slovenian":"Slovenian","somali":"Somali","spanish":"Spanish","swahili_macrolanguage":"Swahili","swedish":"Swedish","swiss_german":"Swiss German","tagalog":"Tagalog","telugu":"Telugu","thai":"Thai","tibetan":"Tibetan","turkish":"Turkish","ukrainian":"Ukrainian","uzbek":"Uzbek","vietnamese":"Vietnamese"} : {};
1118
1116
  let language = true ? "en-US" : 0;
1119
1117
  let strings = defaultStrings;
1120
1118
  function getLanguage() {
@@ -1217,7 +1215,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
1217
1215
  const CLIENT_NAME = "box-content-preview"; // eslint-disable-line no-undef
1218
1216
  const CLIENT_NAME_KEY = 'box_client_name';
1219
1217
  const CLIENT_VERSION_KEY = 'box_client_version';
1220
- const CLIENT_VERSION = "3.121.0"; // eslint-disable-line no-undef
1218
+ const CLIENT_VERSION = "3.123.0"; // eslint-disable-line no-undef
1221
1219
  const HEADER_CLIENT_NAME = 'X-Box-Client-Name';
1222
1220
  const HEADER_CLIENT_VERSION = 'X-Box-Client-Version';
1223
1221
  const PROMISE_MAP = {};
@@ -4020,7 +4018,8 @@ function BreadcrumbsV2({
4020
4018
  onClick(path);
4021
4019
  };
4022
4020
  return /*#__PURE__*/external_react_["default"].createElement("div", {
4023
- className: "bp-BreadcrumbsV2"
4021
+ className: "bp-BreadcrumbsV2",
4022
+ "data-testid": "bp-archive-breadcrumbs"
4024
4023
  }, view === constants/* VIEWS */.Vw.VIEW_SEARCH ? /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Text, {
4025
4024
  as: "span",
4026
4025
  variant: "bodyDefaultBold"
@@ -5127,7 +5126,8 @@ class Breadcrumbs extends external_react_["default"].PureComponent {
5127
5126
  view
5128
5127
  } = this.props;
5129
5128
  return /*#__PURE__*/external_react_["default"].createElement("div", {
5130
- className: "bp-Breadcrumbs"
5129
+ className: "bp-Breadcrumbs",
5130
+ "data-testid": "bp-archive-breadcrumbs"
5131
5131
  }, /*#__PURE__*/external_react_["default"].createElement(__WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_components_breadcrumb_da64b71d_default__, null, view === constants/* VIEWS */.Vw.VIEW_SEARCH ? /*#__PURE__*/external_react_["default"].createElement("span", null, __('search_results')) : this.getPathItems(fullPath).map(pathItem => /*#__PURE__*/external_react_["default"].createElement(__WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_components_plain_button_PlainButton_6ddbae5a_default__, {
5132
5132
  key: pathItem.path,
5133
5133
  "data-resin-target": "breadcrumb",
@@ -5421,7 +5421,8 @@ class ArchiveExplorer extends external_react_.Component {
5421
5421
  resin: resin,
5422
5422
  view: view
5423
5423
  }), /*#__PURE__*/external_react_.createElement("div", {
5424
- className: "bp-ArchiveExplorer-table"
5424
+ className: "bp-ArchiveExplorer-table",
5425
+ "data-testid": "bp-archive-table"
5425
5426
  }, v2 ? /*#__PURE__*/external_react_.createElement(v2.ArchiveTableV2, {
5426
5427
  items: itemList,
5427
5428
  onItemClick: item => this.handleItemClick({
@@ -6378,7 +6379,7 @@ function MediaSettingsMenuSubtitles({
6378
6379
 
6379
6380
  /***/ },
6380
6381
 
6381
- /***/ 3519
6382
+ /***/ 4027
6382
6383
  (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6383
6384
 
6384
6385
 
@@ -6400,74 +6401,8 @@ var Medium_ = __webpack_require__(9747);
6400
6401
  var tokens_ = __webpack_require__(8380);
6401
6402
  // EXTERNAL MODULE: ./src/lib/viewers/controls/settings/SettingsRadioItem.tsx + 1 modules
6402
6403
  var SettingsRadioItem = __webpack_require__(8394);
6403
- // EXTERNAL MODULE: ./src/lib/viewers/controls/tooltip/MenuTriggerTooltipV2.tsx
6404
- var MenuTriggerTooltipV2 = __webpack_require__(6014);
6405
- ;// ./src/lib/viewers/controls/settings/SettingsToggleV2.scss
6406
- // extracted by mini-css-extract-plugin
6407
-
6408
- ;// ./src/lib/viewers/controls/settings/SettingsToggleV2.tsx
6409
- const _excluded = ["badge", "buttonType", "label"],
6410
- _excluded2 = ["badge", "buttonType", "label"];
6411
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
6412
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
6413
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
6414
-
6415
-
6416
-
6417
-
6418
-
6419
-
6420
- // Toolbar.Button throws outside a Toolbar.Root, so toggles rendered elsewhere use IconButton.
6421
-
6422
- // The Tooltip wraps the button inside this component so that a Popover or DropdownMenu trigger
6423
- // rendered around it (asChild) keeps its own data-state; Radix gives the child's props precedence.
6424
- function SettingsToggleV2(props, ref) {
6425
- const isMenuOpen = props['aria-expanded'] === true || props['aria-expanded'] === 'true';
6426
- if (props.buttonType === 'icon') {
6427
- const {
6428
- badge,
6429
- buttonType,
6430
- label
6431
- } = props,
6432
- rest = _objectWithoutProperties(props, _excluded);
6433
-
6434
- // IconButton renders only its icon, so the badge sits beside the button in a positioned wrapper.
6435
- return /*#__PURE__*/external_react_["default"].createElement("span", {
6436
- className: "bp-SettingsToggleV2"
6437
- }, /*#__PURE__*/external_react_["default"].createElement(MenuTriggerTooltipV2/* default */.A, {
6438
- content: label,
6439
- isMenuOpen: isMenuOpen
6440
- }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.IconButton, _extends({
6441
- ref: ref,
6442
- "aria-label": label,
6443
- "data-resin-target": "settingsOpen",
6444
- icon: Medium_.Gear
6445
- }, rest))), /*#__PURE__*/external_react_["default"].isValidElement(badge) && /*#__PURE__*/external_react_["default"].createElement("span", {
6446
- className: "bp-SettingsToggleV2-badge"
6447
- }, badge));
6448
- }
6449
- const {
6450
- badge,
6451
- buttonType,
6452
- label
6453
- } = props,
6454
- rest = _objectWithoutProperties(props, _excluded2);
6455
- return /*#__PURE__*/external_react_["default"].createElement(MenuTriggerTooltipV2/* default */.A, {
6456
- content: label,
6457
- isMenuOpen: isMenuOpen
6458
- }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Button, _extends({
6459
- ref: ref,
6460
- "aria-label": label,
6461
- "data-resin-target": "settingsOpen"
6462
- }, rest), /*#__PURE__*/external_react_["default"].createElement("span", {
6463
- className: "bp-SettingsToggleV2"
6464
- }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Icon, {
6465
- icon: Medium_.Gear
6466
- }), /*#__PURE__*/external_react_["default"].isValidElement(badge) && /*#__PURE__*/external_react_["default"].createElement("span", {
6467
- className: "bp-SettingsToggleV2-badge"
6468
- }, badge))));
6469
- }
6470
- /* harmony default export */ const settings_SettingsToggleV2 = (/*#__PURE__*/external_react_["default"].forwardRef(SettingsToggleV2));
6404
+ // EXTERNAL MODULE: ./src/lib/viewers/controls/settings/SettingsToggleV2.tsx + 1 modules
6405
+ var SettingsToggleV2 = __webpack_require__(4574);
6471
6406
  // EXTERNAL MODULE: ./src/lib/viewers/controls/settings/stopMenuKeyPropagation.ts
6472
6407
  var stopMenuKeyPropagation = __webpack_require__(9646);
6473
6408
  // EXTERNAL MODULE: ./src/lib/viewers/controls/media/MediaSettingsAudioTracks.tsx
@@ -6673,7 +6608,7 @@ function MediaSettingsV2({
6673
6608
  open: isOpen
6674
6609
  }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Trigger, {
6675
6610
  asChild: true
6676
- }, /*#__PURE__*/external_react_["default"].createElement(settings_SettingsToggleV2, {
6611
+ }, /*#__PURE__*/external_react_["default"].createElement(SettingsToggleV2/* default */.A, {
6677
6612
  buttonType: "icon",
6678
6613
  "data-target-id": "MediaSettingsV2-toggle",
6679
6614
  label: __('media_settings'),
@@ -9073,6 +9008,92 @@ function SettingsRadioItem(props, ref) {
9073
9008
 
9074
9009
  /***/ },
9075
9010
 
9011
+ /***/ 4574
9012
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9013
+
9014
+
9015
+ // EXPORTS
9016
+ __webpack_require__.d(__webpack_exports__, {
9017
+ A: () => (/* binding */ settings_SettingsToggleV2)
9018
+ });
9019
+
9020
+ // EXTERNAL MODULE: external "react"
9021
+ var external_react_ = __webpack_require__(1649);
9022
+ // EXTERNAL MODULE: external "@box/blueprint-web"
9023
+ var blueprint_web_ = __webpack_require__(8912);
9024
+ // EXTERNAL MODULE: external "@box/blueprint-web-assets/icons/Medium"
9025
+ var Medium_ = __webpack_require__(9747);
9026
+ // EXTERNAL MODULE: ./src/lib/viewers/controls/tooltip/MenuTriggerTooltipV2.tsx
9027
+ var MenuTriggerTooltipV2 = __webpack_require__(6014);
9028
+ ;// ./src/lib/viewers/controls/settings/SettingsToggleV2.scss
9029
+ // extracted by mini-css-extract-plugin
9030
+
9031
+ ;// ./src/lib/viewers/controls/settings/SettingsToggleV2.tsx
9032
+ const _excluded = ["badge", "buttonType", "label"],
9033
+ _excluded2 = ["badge", "buttonType", "label"];
9034
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
9035
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9036
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
9037
+
9038
+
9039
+
9040
+
9041
+
9042
+
9043
+ // Toolbar.Button throws outside a Toolbar.Root, so toggles rendered elsewhere use IconButton.
9044
+
9045
+ // The Tooltip wraps the button inside this component so that a Popover or DropdownMenu trigger
9046
+ // rendered around it (asChild) keeps its own data-state; Radix gives the child's props precedence.
9047
+ function SettingsToggleV2(props, ref) {
9048
+ const isMenuOpen = props['aria-expanded'] === true || props['aria-expanded'] === 'true';
9049
+ if (props.buttonType === 'icon') {
9050
+ const {
9051
+ badge,
9052
+ buttonType,
9053
+ label
9054
+ } = props,
9055
+ rest = _objectWithoutProperties(props, _excluded);
9056
+
9057
+ // IconButton renders only its icon, so the badge sits beside the button in a positioned wrapper.
9058
+ return /*#__PURE__*/external_react_["default"].createElement("span", {
9059
+ className: "bp-SettingsToggleV2"
9060
+ }, /*#__PURE__*/external_react_["default"].createElement(MenuTriggerTooltipV2/* default */.A, {
9061
+ content: label,
9062
+ isMenuOpen: isMenuOpen
9063
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.IconButton, _extends({
9064
+ ref: ref,
9065
+ "aria-label": label,
9066
+ "data-resin-target": "settingsOpen",
9067
+ icon: Medium_.Gear
9068
+ }, rest))), /*#__PURE__*/external_react_["default"].isValidElement(badge) && /*#__PURE__*/external_react_["default"].createElement("span", {
9069
+ className: "bp-SettingsToggleV2-badge"
9070
+ }, badge));
9071
+ }
9072
+ const {
9073
+ badge,
9074
+ buttonType,
9075
+ label
9076
+ } = props,
9077
+ rest = _objectWithoutProperties(props, _excluded2);
9078
+ return /*#__PURE__*/external_react_["default"].createElement(MenuTriggerTooltipV2/* default */.A, {
9079
+ content: label,
9080
+ isMenuOpen: isMenuOpen
9081
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Button, _extends({
9082
+ ref: ref,
9083
+ "aria-label": label,
9084
+ "data-resin-target": "settingsOpen"
9085
+ }, rest), /*#__PURE__*/external_react_["default"].createElement("span", {
9086
+ className: "bp-SettingsToggleV2"
9087
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Icon, {
9088
+ icon: Medium_.Gear
9089
+ }), /*#__PURE__*/external_react_["default"].isValidElement(badge) && /*#__PURE__*/external_react_["default"].createElement("span", {
9090
+ className: "bp-SettingsToggleV2-badge"
9091
+ }, badge))));
9092
+ }
9093
+ /* harmony default export */ const settings_SettingsToggleV2 = (/*#__PURE__*/external_react_["default"].forwardRef(SettingsToggleV2));
9094
+
9095
+ /***/ },
9096
+
9076
9097
  /***/ 9646
9077
9098
  (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9078
9099
 
@@ -9338,8 +9359,8 @@ var blueprint_web_ = __webpack_require__(8912);
9338
9359
  var MediaLoadingIndicator = __webpack_require__(4301);
9339
9360
  // EXTERNAL MODULE: ./src/lib/viewers/controls/media/MediaSettings.tsx + 2 modules
9340
9361
  var MediaSettings = __webpack_require__(112);
9341
- // EXTERNAL MODULE: ./src/lib/viewers/controls/media/MediaSettingsV2.tsx + 3 modules
9342
- var MediaSettingsV2 = __webpack_require__(3519);
9362
+ // EXTERNAL MODULE: ./src/lib/viewers/controls/media/MediaSettingsV2.tsx + 1 modules
9363
+ var MediaSettingsV2 = __webpack_require__(4027);
9343
9364
  // EXTERNAL MODULE: ./src/lib/viewers/controls/media/PlayOverlayIcon.tsx
9344
9365
  var PlayOverlayIcon = __webpack_require__(2048);
9345
9366
  // EXTERNAL MODULE: ./src/lib/viewers/controls/media/PlayPauseToggle.tsx + 1 modules
@@ -21568,7 +21589,7 @@ var x = (y) => {
21568
21589
  var x = {}; __webpack_require__.d(x, y); return x
21569
21590
  }
21570
21591
  var y = (x) => (() => (x))
21571
- module.exports = x({ ["BlueprintProvider"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.BlueprintProvider), ["Breadcrumb"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Breadcrumb), ["Cell"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Cell), ["Column"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Column), ["DataTableWrapper"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.DataTableWrapper), ["DropdownMenu"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.DropdownMenu), ["Ghost"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Ghost), ["IconButton"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.IconButton), ["IconToggleButton"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.IconToggleButton), ["LoadingIndicator"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.LoadingIndicator), ["Modal"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Modal), ["Row"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Row), ["SearchInput"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.SearchInput), ["SelectMenu"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.SelectMenu), ["Table"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Table), ["TableBody"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TableBody), ["TableHeader"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TableHeader), ["Text"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Text), ["Toolbar"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Toolbar), ["Tooltip"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Tooltip), ["TooltipProvider"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TooltipProvider), ["VisuallyHidden"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.VisuallyHidden), ["useNoopTreatment"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.useNoopTreatment) });
21592
+ module.exports = x({ ["BlueprintProvider"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.BlueprintProvider), ["Breadcrumb"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Breadcrumb), ["Cell"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Cell), ["Column"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Column), ["DataTableWrapper"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.DataTableWrapper), ["DropdownMenu"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.DropdownMenu), ["EllipsizableText"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.EllipsizableText), ["Focusable"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Focusable), ["Ghost"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Ghost), ["IconButton"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.IconButton), ["IconToggleButton"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.IconToggleButton), ["LoadingIndicator"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.LoadingIndicator), ["Modal"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Modal), ["Popover"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Popover), ["Row"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Row), ["SearchInput"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.SearchInput), ["Select"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Select), ["SelectMenu"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.SelectMenu), ["Switch"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Switch), ["Table"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Table), ["TableBody"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TableBody), ["TableHeader"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TableHeader), ["Text"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Text), ["Toolbar"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Toolbar), ["Tooltip"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Tooltip), ["TooltipProvider"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TooltipProvider), ["VisuallyHidden"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.VisuallyHidden), ["useNoopTreatment"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.useNoopTreatment) });
21572
21593
 
21573
21594
  /***/ },
21574
21595
 
@@ -21579,7 +21600,7 @@ var x = (y) => {
21579
21600
  var x = {}; __webpack_require__.d(x, y); return x
21580
21601
  }
21581
21602
  var y = (x) => (() => (x))
21582
- module.exports = x({ ["ArrowCurveBack5"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ArrowCurveBack5), ["ArrowCurveForward5"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ArrowCurveForward5), ["ArrowsMaximize"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ArrowsMaximize), ["ArrowsMinimize"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ArrowsMinimize), ["ChevronDown"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ChevronDown), ["ChevronLeft"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ChevronLeft), ["ChevronRight"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ChevronRight), ["ChevronUp"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ChevronUp), ["ClosedCaption"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ClosedCaption), ["Comment"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Comment), ["Element"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Element), ["Gear"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Gear), ["Volume0"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Volume0), ["Volume1"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Volume1), ["Volume2"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Volume2), ["VolumeX"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.VolumeX), ["XMark"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.XMark), ["ZoomIn"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ZoomIn), ["ZoomOut"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ZoomOut) });
21603
+ module.exports = x({ ["ArrowCurveBack5"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ArrowCurveBack5), ["ArrowCurveForward"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ArrowCurveForward), ["ArrowCurveForward5"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ArrowCurveForward5), ["ArrowsMaximize"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ArrowsMaximize), ["ArrowsMinimize"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ArrowsMinimize), ["Checkmark"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Checkmark), ["ChevronDown"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ChevronDown), ["ChevronLeft"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ChevronLeft), ["ChevronRight"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ChevronRight), ["ChevronUp"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ChevronUp), ["ClosedCaption"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ClosedCaption), ["Comment"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Comment), ["Download"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Download), ["Element"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Element), ["Ellipsis"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Ellipsis), ["Expand"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Expand), ["GaugeNeedle"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.GaugeNeedle), ["Gear"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Gear), ["RotateLeft"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.RotateLeft), ["Trash"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Trash), ["Volume0"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Volume0), ["Volume1"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Volume1), ["Volume2"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.Volume2), ["VolumeX"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.VolumeX), ["XMark"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.XMark), ["ZoomIn"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ZoomIn), ["ZoomOut"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__.ZoomOut) });
21583
21604
 
21584
21605
  /***/ },
21585
21606
 
@@ -37233,7 +37254,7 @@ var isNpmBuild = __webpack_require__(8080);
37233
37254
  ;// ./src/lib/Logger.js
37234
37255
  /* eslint-disable no-undef */
37235
37256
  const CLIENT_NAME = "box-content-preview";
37236
- const CLIENT_VERSION = "3.121.0";
37257
+ const CLIENT_VERSION = "3.123.0";
37237
37258
  /* eslint-enable no-undef */
37238
37259
 
37239
37260
  class Logger {
@@ -44841,7 +44862,8 @@ class Image360Viewer extends box3d_Box3DViewer {
44841
44862
  * @return {boolean} Consumed or not
44842
44863
  */
44843
44864
  onKeydown(key) {
44844
- return this.handleFullscreenKey(key);
44865
+ // Without React controls the legacy Box3DControls bar renders, which has no fullscreen shortcut
44866
+ return this.getViewerOption('useReactControls') ? this.handleFullscreenKey(key) : false;
44845
44867
  }
44846
44868
  renderUI() {
44847
44869
  if (!this.controls) {
@@ -53535,10 +53557,12 @@ var MediaToggle = __webpack_require__(8997);
53535
53557
  // data-state Toolbar.ToggleItem uses for its selected styling, so the tooltip gets its own element.
53536
53558
  function ToggleTooltipV2({
53537
53559
  children,
53538
- content
53560
+ content,
53561
+ side
53539
53562
  }) {
53540
53563
  return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Tooltip, {
53541
- content: content
53564
+ content: content,
53565
+ side: side
53542
53566
  }, /*#__PURE__*/external_react_["default"].createElement("span", {
53543
53567
  className: "bp-ToggleTooltipV2"
53544
53568
  }, children));
@@ -53730,8 +53754,8 @@ function VideoControls({
53730
53754
  onFullscreenToggle: onFullscreenToggle
53731
53755
  })))));
53732
53756
  }
53733
- // EXTERNAL MODULE: ./src/lib/viewers/controls/media/MediaSettingsV2.tsx + 3 modules
53734
- var MediaSettingsV2 = __webpack_require__(3519);
53757
+ // EXTERNAL MODULE: ./src/lib/viewers/controls/media/MediaSettingsV2.tsx + 1 modules
53758
+ var MediaSettingsV2 = __webpack_require__(4027);
53735
53759
  // EXTERNAL MODULE: ./src/lib/viewers/controls/media/PlayPauseButton.tsx + 2 modules
53736
53760
  var PlayPauseButton = __webpack_require__(5760);
53737
53761
  // EXTERNAL MODULE: ./src/lib/viewers/controls/media/SkipButton.tsx + 2 modules
@@ -54161,6 +54185,298 @@ function VideoFullscreenButton({
54161
54185
  type: "button"
54162
54186
  }, isFullscreen ? /*#__PURE__*/external_react_["default"].createElement(icons_IconArrowsMinimizeMedium24, null) : /*#__PURE__*/external_react_["default"].createElement(icons_IconArrowsMaximizeMedium24, null));
54163
54187
  }
54188
+ // EXTERNAL MODULE: external "react-dom"
54189
+ var external_react_dom_ = __webpack_require__(7516);
54190
+ ;// ./src/lib/viewers/controls/annotations/AnnotationsPaletteAnchorV2.scss
54191
+ // extracted by mini-css-extract-plugin
54192
+
54193
+ ;// ./src/lib/viewers/controls/annotations/AnnotationsPaletteAnchorV2.tsx
54194
+
54195
+
54196
+
54197
+
54198
+
54199
+ // Portals the palette out of the controls so it alone can stack above the annotator's layers, pinned to
54200
+ // the anchor's top-right corner where an end-aligned menu would open
54201
+ function AnnotationsPaletteAnchorV2({
54202
+ anchorRef,
54203
+ children
54204
+ }) {
54205
+ const container = external_react_["default"].useContext(BlueprintProviders/* PortalContainerContext */.n) ?? document.body;
54206
+ const {
54207
+ setIsForced
54208
+ } = external_react_["default"].useContext(ControlsLayerContext);
54209
+ const [point, setPoint] = external_react_["default"].useState(null);
54210
+ external_react_["default"].useLayoutEffect(() => {
54211
+ const anchorEl = anchorRef.current;
54212
+ if (!anchorEl) {
54213
+ return undefined;
54214
+ }
54215
+ const updatePoint = () => {
54216
+ const anchorRect = anchorEl.getBoundingClientRect();
54217
+ const containerRect = container.getBoundingClientRect();
54218
+ const left = anchorRect.right - containerRect.left;
54219
+ const top = anchorRect.top - containerRect.top;
54220
+ setPoint(prev => prev && prev.left === left && prev.top === top ? prev : {
54221
+ left,
54222
+ top
54223
+ });
54224
+ };
54225
+ updatePoint();
54226
+ const observer = new ResizeObserver(updatePoint);
54227
+ observer.observe(container);
54228
+ return () => observer.disconnect();
54229
+ }, [anchorRef, container]);
54230
+
54231
+ // The palette is outside the controls layer, so the layer is held open to keep the anchor in view
54232
+ external_react_["default"].useEffect(() => {
54233
+ setIsForced(true);
54234
+ return () => setIsForced(false);
54235
+ }, [setIsForced]);
54236
+ if (!point) {
54237
+ return null;
54238
+ }
54239
+ return /*#__PURE__*/(0,external_react_dom_.createPortal)(/*#__PURE__*/external_react_["default"].createElement("div", {
54240
+ className: "bp-AnnotationsPaletteAnchorV2",
54241
+ "data-testid": "bp-AnnotationsPaletteAnchorV2",
54242
+ style: {
54243
+ left: point.left,
54244
+ top: point.top
54245
+ }
54246
+ }, children), container);
54247
+ }
54248
+ ;// external "@box/blueprint-web-assets/icons/Medium/PencilTip"
54249
+
54250
+ ;// external "@box/blueprint-web-assets/icons/Medium/SquarePlus"
54251
+
54252
+ ;// external "@box/blueprint-web-assets/icons/Medium/TCursorHighlight"
54253
+
54254
+ ;// ./src/lib/viewers/controls/annotations/annotationModeIcons.ts
54255
+
54256
+
54257
+
54258
+
54259
+ const ANNOTATION_MODE_ICONS = {
54260
+ [AnnotationMode.DRAWING]: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_PencilTip_154ad3fd_default__,
54261
+ [AnnotationMode.HIGHLIGHT]: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_TCursorHighlight_508374cb_default__,
54262
+ [AnnotationMode.REGION]: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_SquarePlus_c11758f1_default__
54263
+ };
54264
+ /* harmony default export */ const annotationModeIcons = (ANNOTATION_MODE_ICONS);
54265
+ ;// ./src/lib/viewers/controls/annotations/AnnotationsPaletteV2.scss
54266
+ // extracted by mini-css-extract-plugin
54267
+
54268
+ ;// ./src/lib/viewers/controls/annotations/AnnotationsPaletteV2.tsx
54269
+ /* provided dependency */ var AnnotationsPaletteV2_ = __webpack_require__(441)["Tl"];
54270
+ function AnnotationsPaletteV2_extends() { return AnnotationsPaletteV2_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, AnnotationsPaletteV2_extends.apply(null, arguments); }
54271
+
54272
+
54273
+
54274
+
54275
+
54276
+
54277
+
54278
+
54279
+ function AnnotationsPaletteV2({
54280
+ children
54281
+ }) {
54282
+ return /*#__PURE__*/external_react_["default"].createElement("div", {
54283
+ className: "bp-AnnotationsPaletteV2",
54284
+ "data-testid": "bp-AnnotationsPaletteV2"
54285
+ }, /*#__PURE__*/external_react_["default"].createElement(controls_bar_ControlsBarV2, null, children));
54286
+ }
54287
+ function Modes({
54288
+ annotationMode,
54289
+ children,
54290
+ onAnnotationModeClick = (noop_default())
54291
+ }) {
54292
+ // The single-select group reports an empty value when the active mode is clicked again. Exiting
54293
+ // is left to the trigger on the main bar, so the palette never closes under the cursor.
54294
+ const handleModeChange = mode => {
54295
+ if (!mode || mode === annotationMode) {
54296
+ return;
54297
+ }
54298
+ onAnnotationModeClick({
54299
+ mode: mode
54300
+ });
54301
+ };
54302
+ return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.ToggleGroup, {
54303
+ "data-testid": "bp-annotations-controls",
54304
+ onValueChange: handleModeChange,
54305
+ type: "single",
54306
+ value: annotationMode
54307
+ }, children);
54308
+ }
54309
+ function Mode({
54310
+ value
54311
+ }) {
54312
+ const {
54313
+ label,
54314
+ resinTarget,
54315
+ testId
54316
+ } = {
54317
+ [AnnotationMode.DRAWING]: {
54318
+ label: AnnotationsPaletteV2_('drawing_comment'),
54319
+ resinTarget: 'draw',
54320
+ testId: 'bp-AnnotationsControls-drawBtn'
54321
+ },
54322
+ [AnnotationMode.HIGHLIGHT]: {
54323
+ label: AnnotationsPaletteV2_('highlight_text'),
54324
+ resinTarget: 'highlightText',
54325
+ testId: 'bp-AnnotationsControls-highlightBtn'
54326
+ },
54327
+ [AnnotationMode.REGION]: {
54328
+ label: AnnotationsPaletteV2_('region_comment'),
54329
+ resinTarget: 'highlightRegion',
54330
+ testId: 'bp-AnnotationsControls-regionBtn'
54331
+ }
54332
+ }[value];
54333
+ return /*#__PURE__*/external_react_["default"].createElement(ToggleTooltipV2, {
54334
+ content: label
54335
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.ToggleItem, {
54336
+ "aria-label": label,
54337
+ "data-resin-target": resinTarget,
54338
+ "data-testid": testId,
54339
+ icon: annotationModeIcons[value],
54340
+ value: value
54341
+ }));
54342
+ }
54343
+ /* harmony default export */ const annotations_AnnotationsPaletteV2 = (AnnotationsPaletteV2_extends(AnnotationsPaletteV2, {
54344
+ Mode,
54345
+ Modes
54346
+ }));
54347
+ ;// external "@box/blueprint-web-assets/icons/Medium/Comment"
54348
+
54349
+ ;// ./src/lib/viewers/controls/annotations/AnnotationsToggleV2.tsx
54350
+ /* provided dependency */ var AnnotationsToggleV2_ = __webpack_require__(441)["Tl"];
54351
+ function AnnotationsToggleV2_extends() { return AnnotationsToggleV2_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, AnnotationsToggleV2_extends.apply(null, arguments); }
54352
+
54353
+
54354
+
54355
+
54356
+
54357
+
54358
+
54359
+ // The toolbar parts throw outside a Toolbar.Root, so surfaces without one (the media bar) use a standalone button.
54360
+
54361
+ const TOGGLE_VALUE = 'annotations';
54362
+ function AnnotationsToggleV2(props, ref) {
54363
+ const {
54364
+ annotationMode = AnnotationMode.NONE,
54365
+ isExpanded,
54366
+ modes,
54367
+ onAnnotationModeClick = (noop_default()),
54368
+ onAnnotationModeEscape = (noop_default()),
54369
+ tooltipSide
54370
+ } = props;
54371
+ const [lastMode, setLastMode] = external_react_["default"].useState(null);
54372
+ const isActive = annotationMode !== AnnotationMode.NONE;
54373
+ const resumeMode = lastMode && modes.includes(lastMode) ? lastMode : modes[0];
54374
+ external_react_["default"].useEffect(() => {
54375
+ if (annotationMode !== AnnotationMode.NONE) {
54376
+ setLastMode(annotationMode);
54377
+ }
54378
+ }, [annotationMode]);
54379
+
54380
+ // Global event handlers
54381
+ external_react_["default"].useEffect(() => {
54382
+ const handleKeyDown = event => {
54383
+ if (event.key !== 'Escape') {
54384
+ return;
54385
+ }
54386
+ event.preventDefault();
54387
+ event.stopPropagation();
54388
+ onAnnotationModeEscape();
54389
+ };
54390
+ if (annotationMode !== AnnotationMode.NONE) {
54391
+ document.addEventListener('keydown', handleKeyDown);
54392
+ }
54393
+ return () => {
54394
+ document.removeEventListener('keydown', handleKeyDown);
54395
+ };
54396
+ }, [annotationMode, onAnnotationModeEscape]);
54397
+ if (!resumeMode) {
54398
+ return null;
54399
+ }
54400
+ const handleToggle = isPressed => {
54401
+ onAnnotationModeClick({
54402
+ mode: isPressed ? resumeMode : AnnotationMode.NONE
54403
+ });
54404
+ };
54405
+ const toggleProps = {
54406
+ ref,
54407
+ 'aria-expanded': isExpanded ?? isActive,
54408
+ 'aria-label': AnnotationsToggleV2_('annotation_tools'),
54409
+ 'data-resin-target': 'annotations',
54410
+ 'data-testid': 'bp-AnnotationsControls-toggleBtn',
54411
+ icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Comment_c700dfbc_default__
54412
+ };
54413
+ const renderToggle = toggle => /*#__PURE__*/external_react_["default"].createElement(ToggleTooltipV2, {
54414
+ content: AnnotationsToggleV2_('annotation_tools'),
54415
+ side: tooltipSide
54416
+ }, toggle);
54417
+ if (props.buttonType === 'icon') {
54418
+ const {
54419
+ className,
54420
+ size,
54421
+ variant
54422
+ } = props;
54423
+ return renderToggle(/*#__PURE__*/external_react_["default"].createElement(blueprint_web_.IconToggleButton, AnnotationsToggleV2_extends({}, toggleProps, {
54424
+ className: className,
54425
+ onPressedChange: handleToggle,
54426
+ pressed: isActive,
54427
+ size: size,
54428
+ variant: variant
54429
+ })));
54430
+ }
54431
+ return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.ToggleGroup, {
54432
+ onValueChange: value => handleToggle(value.includes(TOGGLE_VALUE)),
54433
+ type: "multiple",
54434
+ value: isActive ? [TOGGLE_VALUE] : []
54435
+ }, renderToggle(/*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.ToggleItem, AnnotationsToggleV2_extends({}, toggleProps, {
54436
+ value: TOGGLE_VALUE
54437
+ }))));
54438
+ }
54439
+ /* harmony default export */ const annotations_AnnotationsToggleV2 = (/*#__PURE__*/external_react_["default"].forwardRef(AnnotationsToggleV2));
54440
+ ;// ./src/lib/viewers/controls/color-picker/ColorPickerControlV2.scss
54441
+ // extracted by mini-css-extract-plugin
54442
+
54443
+ ;// ./src/lib/viewers/controls/color-picker/ColorPickerControlV2.tsx
54444
+ /* provided dependency */ var ColorPickerControlV2_ = __webpack_require__(441)["Tl"];
54445
+
54446
+
54447
+
54448
+
54449
+
54450
+ const getColorLabels = () => ({
54451
+ [AnnotationColor.BOX_BLUE]: ColorPickerControlV2_('drawing_color_blue'),
54452
+ [AnnotationColor.GREEN_LIGHT]: ColorPickerControlV2_('drawing_color_green'),
54453
+ [AnnotationColor.WATERMELON_RED]: ColorPickerControlV2_('drawing_color_red'),
54454
+ [AnnotationColor.YELLORANGE]: ColorPickerControlV2_('drawing_color_orange'),
54455
+ [AnnotationColor.YELLOW]: ColorPickerControlV2_('drawing_color_yellow'),
54456
+ [AnnotationColor.GRIMACE]: ColorPickerControlV2_('drawing_color_purple')
54457
+ });
54458
+ function ColorPickerControlV2({
54459
+ activeColor = __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_styles_variables_c815ce80_bdlBoxBlue__,
54460
+ colors,
54461
+ onColorSelect
54462
+ }) {
54463
+ const colorLabels = getColorLabels();
54464
+ return /*#__PURE__*/external_react_["default"].createElement("div", {
54465
+ className: "bp-ColorPickerControlV2",
54466
+ "data-testid": "bp-color-picker-control"
54467
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.SelectMenu.Grid, {
54468
+ "aria-label": ColorPickerControlV2_('drawing_color'),
54469
+ columns: colors.length
54470
+ }, colors.map(color => /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.SelectMenu.Option.ColorCircle, {
54471
+ key: color,
54472
+ active: color === activeColor,
54473
+ "aria-label": colorLabels[color] || color,
54474
+ className: "bp-ColorPickerControlV2-swatch",
54475
+ color: color,
54476
+ "data-resin-target": "colorSelect",
54477
+ onClick: () => onColorSelect(color)
54478
+ }))));
54479
+ }
54164
54480
  ;// ./src/lib/viewers/media/VideoControlsV2.scss
54165
54481
  // extracted by mini-css-extract-plugin
54166
54482
 
@@ -54177,12 +54493,20 @@ function VideoFullscreenButton({
54177
54493
 
54178
54494
 
54179
54495
 
54496
+
54497
+
54498
+
54499
+
54500
+
54501
+
54502
+
54503
+
54180
54504
 
54181
54505
 
54182
54506
 
54183
54507
  function VideoControlsV2({
54184
54508
  annotationColor,
54185
- annotationMode,
54509
+ annotationMode = AnnotationMode.NONE,
54186
54510
  aspectRatio,
54187
54511
  audioTrack,
54188
54512
  audioTracks,
@@ -54232,6 +54556,55 @@ function VideoControlsV2({
54232
54556
  videoAnnotationsEnabled = false,
54233
54557
  volume
54234
54558
  }) {
54559
+ const isFullscreen = useFullscreen();
54560
+
54561
+ // Listed in the palette's button order, which is also the order the toggle falls back to
54562
+ const annotationModes = [];
54563
+ if (videoAnnotationsEnabled && isBlueprintEnabled && !isFullscreen) {
54564
+ if (hasRegion) {
54565
+ annotationModes.push(AnnotationMode.REGION);
54566
+ }
54567
+ if (hasDrawing) {
54568
+ annotationModes.push(AnnotationMode.DRAWING);
54569
+ }
54570
+ }
54571
+ const hasAnnotationsV2 = annotationModes.length > 0;
54572
+ const isAnnotating = hasAnnotationsV2 && annotationMode !== AnnotationMode.NONE;
54573
+ const [isPaletteDismissed, setIsPaletteDismissed] = external_react_["default"].useState(false);
54574
+ const [paletteMode, setPaletteMode] = external_react_["default"].useState(annotationMode);
54575
+ const isPaletteOpen = isAnnotating && !isPaletteDismissed;
54576
+ const annotationsToggleRef = external_react_["default"].useRef(null);
54577
+ if (paletteMode !== annotationMode) {
54578
+ setPaletteMode(annotationMode);
54579
+ setIsPaletteDismissed(false);
54580
+ }
54581
+
54582
+ // The annotator mounts its drawing and region layers beside the video, so a press anywhere in its
54583
+ // container starts a markup. Capture runs before the annotator's own handlers can stop the event.
54584
+ external_react_["default"].useEffect(() => {
54585
+ const surfaceEl = mediaEl?.parentElement;
54586
+ if (!isAnnotating || !surfaceEl) {
54587
+ return undefined;
54588
+ }
54589
+ const handlePointerDown = () => setIsPaletteDismissed(true);
54590
+ surfaceEl.addEventListener('pointerdown', handlePointerDown, true);
54591
+ return () => {
54592
+ surfaceEl.removeEventListener('pointerdown', handlePointerDown, true);
54593
+ };
54594
+ }, [isAnnotating, mediaEl]);
54595
+ external_react_["default"].useEffect(() => {
54596
+ const toggleEl = annotationsToggleRef.current;
54597
+ if (!isAnnotating || !isPaletteDismissed || !toggleEl) {
54598
+ return undefined;
54599
+ }
54600
+ const handleRestore = () => setIsPaletteDismissed(false);
54601
+ toggleEl.addEventListener('focus', handleRestore);
54602
+ toggleEl.addEventListener('pointerenter', handleRestore);
54603
+ return () => {
54604
+ toggleEl.removeEventListener('focus', handleRestore);
54605
+ toggleEl.removeEventListener('pointerenter', handleRestore);
54606
+ };
54607
+ }, [isAnnotating, isPaletteDismissed]);
54235
54608
  return /*#__PURE__*/external_react_["default"].createElement(ExperiencesProvider, {
54236
54609
  experiences: experiences
54237
54610
  }, /*#__PURE__*/external_react_["default"].createElement("div", {
@@ -54336,7 +54709,31 @@ function VideoControlsV2({
54336
54709
  rate: rate,
54337
54710
  subtitle: subtitle,
54338
54711
  subtitles: subtitles
54339
- }), videoAnnotationsEnabled && /*#__PURE__*/external_react_["default"].createElement(external_react_["default"].Fragment, null, /*#__PURE__*/external_react_["default"].createElement("div", {
54712
+ }), hasAnnotationsV2 && /*#__PURE__*/external_react_["default"].createElement(external_react_["default"].Fragment, null, /*#__PURE__*/external_react_["default"].createElement("div", {
54713
+ className: "bp-VideoControlsV2-divider"
54714
+ }), /*#__PURE__*/external_react_["default"].createElement(annotations_AnnotationsToggleV2, {
54715
+ ref: annotationsToggleRef,
54716
+ annotationMode: annotationMode,
54717
+ buttonType: "icon",
54718
+ className: "bp-VideoControlsV2-annotationsToggle",
54719
+ isExpanded: isPaletteOpen,
54720
+ modes: annotationModes,
54721
+ onAnnotationModeClick: onAnnotationModeClick,
54722
+ onAnnotationModeEscape: onAnnotationModeEscape,
54723
+ tooltipSide: isPaletteOpen ? 'left' : undefined
54724
+ }), isPaletteOpen && /*#__PURE__*/external_react_["default"].createElement(AnnotationsPaletteAnchorV2, {
54725
+ anchorRef: annotationsToggleRef
54726
+ }, /*#__PURE__*/external_react_["default"].createElement(annotations_AnnotationsPaletteV2, null, /*#__PURE__*/external_react_["default"].createElement(annotations_AnnotationsPaletteV2.Modes, {
54727
+ annotationMode: annotationMode,
54728
+ onAnnotationModeClick: onAnnotationModeClick
54729
+ }, annotationModes.map(mode => /*#__PURE__*/external_react_["default"].createElement(annotations_AnnotationsPaletteV2.Mode, {
54730
+ key: mode,
54731
+ value: mode
54732
+ }))), annotationMode === AnnotationMode.DRAWING && /*#__PURE__*/external_react_["default"].createElement(external_react_["default"].Fragment, null, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Separator, null), /*#__PURE__*/external_react_["default"].createElement(ColorPickerControlV2, {
54733
+ activeColor: annotationColor,
54734
+ colors: ANNOTATION_COLORS,
54735
+ onColorSelect: onAnnotationColorChange
54736
+ }))))), videoAnnotationsEnabled && !isBlueprintEnabled && /*#__PURE__*/external_react_["default"].createElement(external_react_["default"].Fragment, null, /*#__PURE__*/external_react_["default"].createElement("div", {
54340
54737
  className: "bp-VideoControlsV2-divider"
54341
54738
  }), /*#__PURE__*/external_react_["default"].createElement(AnnotationsControls, {
54342
54739
  annotationColor: annotationColor,
@@ -56690,8 +57087,6 @@ class Video360Loader extends box3d_Base360Loader {
56690
57087
  }
56691
57088
  }
56692
57089
  /* harmony default export */ const video360_Video360Loader = (new Video360Loader());
56693
- // EXTERNAL MODULE: external "react-dom"
56694
- var external_react_dom_ = __webpack_require__(7516);
56695
57090
  ;// ./src/lib/viewers/controls/icons/IconSearchMedium24.tsx
56696
57091
  function IconSearchMedium24_extends() { return IconSearchMedium24_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, IconSearchMedium24_extends.apply(null, arguments); }
56697
57092
 
@@ -56960,231 +57355,6 @@ function AnnotationsExitButtonV2({
56960
57355
  icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_XMark_07fbe0f0_default__
56961
57356
  }))));
56962
57357
  }
56963
- ;// external "@box/blueprint-web-assets/icons/Medium/PencilTip"
56964
-
56965
- ;// external "@box/blueprint-web-assets/icons/Medium/SquarePlus"
56966
-
56967
- ;// external "@box/blueprint-web-assets/icons/Medium/TCursorHighlight"
56968
-
56969
- ;// ./src/lib/viewers/controls/annotations/annotationModeIcons.ts
56970
-
56971
-
56972
-
56973
-
56974
- const ANNOTATION_MODE_ICONS = {
56975
- [AnnotationMode.DRAWING]: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_PencilTip_154ad3fd_default__,
56976
- [AnnotationMode.HIGHLIGHT]: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_TCursorHighlight_508374cb_default__,
56977
- [AnnotationMode.REGION]: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_SquarePlus_c11758f1_default__
56978
- };
56979
- /* harmony default export */ const annotationModeIcons = (ANNOTATION_MODE_ICONS);
56980
- ;// ./src/lib/viewers/controls/annotations/AnnotationsPaletteV2.scss
56981
- // extracted by mini-css-extract-plugin
56982
-
56983
- ;// ./src/lib/viewers/controls/annotations/AnnotationsPaletteV2.tsx
56984
- /* provided dependency */ var AnnotationsPaletteV2_ = __webpack_require__(441)["Tl"];
56985
- function AnnotationsPaletteV2_extends() { return AnnotationsPaletteV2_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, AnnotationsPaletteV2_extends.apply(null, arguments); }
56986
-
56987
-
56988
-
56989
-
56990
-
56991
-
56992
-
56993
-
56994
- function AnnotationsPaletteV2({
56995
- children
56996
- }) {
56997
- return /*#__PURE__*/external_react_["default"].createElement("div", {
56998
- className: "bp-AnnotationsPaletteV2",
56999
- "data-testid": "bp-AnnotationsPaletteV2"
57000
- }, /*#__PURE__*/external_react_["default"].createElement(controls_bar_ControlsBarV2, null, children));
57001
- }
57002
- function Modes({
57003
- annotationMode,
57004
- children,
57005
- onAnnotationModeClick = (noop_default())
57006
- }) {
57007
- // The single-select group reports an empty value when the active mode is clicked again. Exiting
57008
- // is left to the trigger on the main bar, so the palette never closes under the cursor.
57009
- const handleModeChange = mode => {
57010
- if (!mode || mode === annotationMode) {
57011
- return;
57012
- }
57013
- onAnnotationModeClick({
57014
- mode: mode
57015
- });
57016
- };
57017
- return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.ToggleGroup, {
57018
- "data-testid": "bp-annotations-controls",
57019
- onValueChange: handleModeChange,
57020
- type: "single",
57021
- value: annotationMode
57022
- }, children);
57023
- }
57024
- function Mode({
57025
- value
57026
- }) {
57027
- const {
57028
- label,
57029
- resinTarget,
57030
- testId
57031
- } = {
57032
- [AnnotationMode.DRAWING]: {
57033
- label: AnnotationsPaletteV2_('drawing_comment'),
57034
- resinTarget: 'draw',
57035
- testId: 'bp-AnnotationsControls-drawBtn'
57036
- },
57037
- [AnnotationMode.HIGHLIGHT]: {
57038
- label: AnnotationsPaletteV2_('highlight_text'),
57039
- resinTarget: 'highlightText',
57040
- testId: 'bp-AnnotationsControls-highlightBtn'
57041
- },
57042
- [AnnotationMode.REGION]: {
57043
- label: AnnotationsPaletteV2_('region_comment'),
57044
- resinTarget: 'highlightRegion',
57045
- testId: 'bp-AnnotationsControls-regionBtn'
57046
- }
57047
- }[value];
57048
- return /*#__PURE__*/external_react_["default"].createElement(ToggleTooltipV2, {
57049
- content: label
57050
- }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.ToggleItem, {
57051
- "aria-label": label,
57052
- "data-resin-target": resinTarget,
57053
- "data-testid": testId,
57054
- icon: annotationModeIcons[value],
57055
- value: value
57056
- }));
57057
- }
57058
- /* harmony default export */ const annotations_AnnotationsPaletteV2 = (AnnotationsPaletteV2_extends(AnnotationsPaletteV2, {
57059
- Mode,
57060
- Modes
57061
- }));
57062
- ;// ./src/lib/viewers/controls/annotations/AnnotationsToggleV2.tsx
57063
- /* provided dependency */ var AnnotationsToggleV2_ = __webpack_require__(441)["Tl"];
57064
- function AnnotationsToggleV2_extends() { return AnnotationsToggleV2_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, AnnotationsToggleV2_extends.apply(null, arguments); }
57065
-
57066
-
57067
-
57068
-
57069
-
57070
-
57071
-
57072
- // The toolbar parts throw outside a Toolbar.Root, so surfaces without one (the media bar) use a standalone button.
57073
-
57074
- const TOGGLE_VALUE = 'annotations';
57075
- function AnnotationsToggleV2(props, ref) {
57076
- const {
57077
- annotationMode = AnnotationMode.NONE,
57078
- modes,
57079
- onAnnotationModeClick = (noop_default()),
57080
- onAnnotationModeEscape = (noop_default())
57081
- } = props;
57082
- const [lastMode, setLastMode] = external_react_["default"].useState(null);
57083
- const isActive = annotationMode !== AnnotationMode.NONE;
57084
- const resumeMode = lastMode && modes.includes(lastMode) ? lastMode : modes[0];
57085
- external_react_["default"].useEffect(() => {
57086
- if (annotationMode !== AnnotationMode.NONE) {
57087
- setLastMode(annotationMode);
57088
- }
57089
- }, [annotationMode]);
57090
-
57091
- // Global event handlers
57092
- external_react_["default"].useEffect(() => {
57093
- const handleKeyDown = event => {
57094
- if (event.key !== 'Escape') {
57095
- return;
57096
- }
57097
- event.preventDefault();
57098
- event.stopPropagation();
57099
- onAnnotationModeEscape();
57100
- };
57101
- if (annotationMode !== AnnotationMode.NONE) {
57102
- document.addEventListener('keydown', handleKeyDown);
57103
- }
57104
- return () => {
57105
- document.removeEventListener('keydown', handleKeyDown);
57106
- };
57107
- }, [annotationMode, onAnnotationModeEscape]);
57108
- if (!resumeMode) {
57109
- return null;
57110
- }
57111
- const handleToggle = isPressed => {
57112
- onAnnotationModeClick({
57113
- mode: isPressed ? resumeMode : AnnotationMode.NONE
57114
- });
57115
- };
57116
- const toggleProps = {
57117
- ref,
57118
- 'aria-expanded': isActive,
57119
- 'aria-label': AnnotationsToggleV2_('annotation_tools'),
57120
- 'data-resin-target': 'annotations',
57121
- 'data-testid': 'bp-AnnotationsControls-toggleBtn',
57122
- icon: annotationModeIcons[isActive ? annotationMode : resumeMode]
57123
- };
57124
- const renderToggle = toggle => /*#__PURE__*/external_react_["default"].createElement(ToggleTooltipV2, {
57125
- content: AnnotationsToggleV2_('annotation_tools')
57126
- }, toggle);
57127
- if (props.buttonType === 'icon') {
57128
- const {
57129
- size,
57130
- variant
57131
- } = props;
57132
- return renderToggle(/*#__PURE__*/external_react_["default"].createElement(blueprint_web_.IconToggleButton, AnnotationsToggleV2_extends({}, toggleProps, {
57133
- onPressedChange: handleToggle,
57134
- pressed: isActive,
57135
- size: size,
57136
- variant: variant
57137
- })));
57138
- }
57139
- return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.ToggleGroup, {
57140
- onValueChange: value => handleToggle(value.includes(TOGGLE_VALUE)),
57141
- type: "multiple",
57142
- value: isActive ? [TOGGLE_VALUE] : []
57143
- }, renderToggle(/*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.ToggleItem, AnnotationsToggleV2_extends({}, toggleProps, {
57144
- value: TOGGLE_VALUE
57145
- }))));
57146
- }
57147
- /* harmony default export */ const annotations_AnnotationsToggleV2 = (/*#__PURE__*/external_react_["default"].forwardRef(AnnotationsToggleV2));
57148
- ;// ./src/lib/viewers/controls/color-picker/ColorPickerControlV2.scss
57149
- // extracted by mini-css-extract-plugin
57150
-
57151
- ;// ./src/lib/viewers/controls/color-picker/ColorPickerControlV2.tsx
57152
- /* provided dependency */ var ColorPickerControlV2_ = __webpack_require__(441)["Tl"];
57153
-
57154
-
57155
-
57156
-
57157
-
57158
- const getColorLabels = () => ({
57159
- [AnnotationColor.BOX_BLUE]: ColorPickerControlV2_('drawing_color_blue'),
57160
- [AnnotationColor.GREEN_LIGHT]: ColorPickerControlV2_('drawing_color_green'),
57161
- [AnnotationColor.WATERMELON_RED]: ColorPickerControlV2_('drawing_color_red'),
57162
- [AnnotationColor.YELLORANGE]: ColorPickerControlV2_('drawing_color_orange'),
57163
- [AnnotationColor.YELLOW]: ColorPickerControlV2_('drawing_color_yellow'),
57164
- [AnnotationColor.GRIMACE]: ColorPickerControlV2_('drawing_color_purple')
57165
- });
57166
- function ColorPickerControlV2({
57167
- activeColor = __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_styles_variables_c815ce80_bdlBoxBlue__,
57168
- colors,
57169
- onColorSelect
57170
- }) {
57171
- const colorLabels = getColorLabels();
57172
- return /*#__PURE__*/external_react_["default"].createElement("div", {
57173
- className: "bp-ColorPickerControlV2",
57174
- "data-testid": "bp-color-picker-control"
57175
- }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.SelectMenu.Grid, {
57176
- "aria-label": ColorPickerControlV2_('drawing_color'),
57177
- columns: colors.length
57178
- }, colors.map(color => /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.SelectMenu.Option.ColorCircle, {
57179
- key: color,
57180
- active: color === activeColor,
57181
- "aria-label": colorLabels[color] || color,
57182
- className: "bp-ColorPickerControlV2-swatch",
57183
- color: color,
57184
- "data-resin-target": "colorSelect",
57185
- onClick: () => onColorSelect(color)
57186
- }))));
57187
- }
57188
57358
  ;// ./src/lib/viewers/controls/controls-bar/useControlsOverflow.ts
57189
57359
 
57190
57360
 
@@ -61837,6 +62007,9 @@ const DocBaseViewer_MIN_PINCH_SCALE_DELTA = 0.01;
61837
62007
  const MIN_PINCH_SCALE_VALUE = 0.25;
61838
62008
  const DocBaseViewer_MIN_SCALE = 0.1;
61839
62009
  const METRICS_WHITELIST = [lib_events/* USER_DOCUMENT_THUMBNAIL_EVENTS */.Xe.CLOSE, lib_events/* USER_DOCUMENT_THUMBNAIL_EVENTS */.Xe.NAVIGATE, lib_events/* USER_DOCUMENT_THUMBNAIL_EVENTS */.Xe.OPEN];
62010
+ // npm pdf.js draws its sharp detail canvas over zoomed pages only when maxCanvasPixels is positive
62011
+ const NPM_PDFJS_MAX_CANVAS_SIZE = 2 ** 25; // pdf.js desktop default
62012
+ const LEGACY_PDFJS_MAX_CANVAS_SIZE = -1; // Unlimited
61840
62013
  const MOBILE_MAX_CANVAS_SIZE = 2949120; // ~3MP 1920x1536
61841
62014
  const PAGES_UNIT_NAME = 'pages';
61842
62015
  const PDFJS_TEXT_LAYER_MODE = {
@@ -62909,12 +63082,18 @@ class DocBaseViewer extends viewers_BaseViewer {
62909
63082
  findController: this.pdfFindController,
62910
63083
  imageResourcesPath: this.featureEnabled('useNpmPdfjs') ? assetUrlCreator('pdfjs-images/') : assetUrlCreator(IMAGES),
62911
63084
  linkService: this.pdfLinkService,
62912
- maxCanvasPixels: this.isMobile ? MOBILE_MAX_CANVAS_SIZE : -1,
63085
+ maxCanvasPixels: this.getMaxCanvasPixels(),
62913
63086
  renderInteractiveForms: false,
62914
63087
  // Enabling prevents unverified signatures from being displayed
62915
63088
  textLayerMode: hasTextLayer ? enabledTextLayerMode : PDFJS_TEXT_LAYER_MODE.DISABLE
62916
63089
  });
62917
63090
  }
63091
+ getMaxCanvasPixels() {
63092
+ if (this.isMobile) {
63093
+ return MOBILE_MAX_CANVAS_SIZE;
63094
+ }
63095
+ return this.featureEnabled('useNpmPdfjs') ? NPM_PDFJS_MAX_CANVAS_SIZE : LEGACY_PDFJS_MAX_CANVAS_SIZE;
63096
+ }
62918
63097
 
62919
63098
  /**
62920
63099
  * Initializes the Find Bar
@@ -67189,6 +67368,389 @@ function Model3DControlsNew_Model3DControls({
67189
67368
  onFullscreenToggle: onFullscreenToggle
67190
67369
  }));
67191
67370
  }
67371
+ ;// external "@box/blueprint-web-assets/icons/MediumFilled/Pause"
67372
+
67373
+ ;// external "@box/blueprint-web-assets/icons/MediumFilled/Play"
67374
+
67375
+ // EXTERNAL MODULE: ./src/lib/viewers/controls/settings/SettingsRadioItem.tsx + 1 modules
67376
+ var SettingsRadioItem = __webpack_require__(8394);
67377
+ ;// ./src/lib/viewers/controls/box3d/AnimationClipsControlV2.tsx
67378
+ /* provided dependency */ var AnimationClipsControlV2_ = __webpack_require__(441)["Tl"];
67379
+ function AnimationClipsControlV2_extends() { return AnimationClipsControlV2_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, AnimationClipsControlV2_extends.apply(null, arguments); }
67380
+
67381
+
67382
+
67383
+
67384
+
67385
+
67386
+
67387
+
67388
+
67389
+ // The Tooltip sits inside the DropdownMenu trigger so the trigger keeps the menu's data-state.
67390
+ function AnimationClipsControlV2_AnimationClipsToggle(props, ref) {
67391
+ const isMenuOpen = props['aria-expanded'] === true || props['aria-expanded'] === 'true';
67392
+ return /*#__PURE__*/external_react_["default"].createElement(MenuTriggerTooltipV2/* default */.A, {
67393
+ content: AnimationClipsControlV2_('box3d_animation_clips'),
67394
+ isMenuOpen: isMenuOpen
67395
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Button, AnimationClipsControlV2_extends({
67396
+ ref: ref,
67397
+ "aria-label": AnimationClipsControlV2_('box3d_animation_clips'),
67398
+ "data-resin-target": "animationClips"
67399
+ }, props), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Icon, {
67400
+ icon: Medium_.GaugeNeedle
67401
+ })));
67402
+ }
67403
+ const AnimationClipsToggleV2 = /*#__PURE__*/external_react_["default"].forwardRef(AnimationClipsControlV2_AnimationClipsToggle);
67404
+ function AnimationClipsControlV2({
67405
+ animationClips,
67406
+ currentAnimationClipId,
67407
+ onAnimationClipSelect
67408
+ }) {
67409
+ const container = external_react_["default"].useContext(BlueprintProviders/* PortalContainerContext */.n);
67410
+ // Props types this as () => void, but the viewer's handler reads the selected clip id.
67411
+ const onSelect = onAnimationClipSelect;
67412
+ const handleValueChange = id => {
67413
+ window.Box?.Preview?.resin?.recordAction?.(SettingsRadioItem/* settingsRadioItemAction */.w);
67414
+ onSelect(id);
67415
+ };
67416
+ return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Root, {
67417
+ modal: false
67418
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Trigger, {
67419
+ asChild: true
67420
+ }, /*#__PURE__*/external_react_["default"].createElement(AnimationClipsToggleV2, null)), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Content, {
67421
+ align: "start",
67422
+ container: container,
67423
+ onEscapeKeyDown: stopMenuKeyPropagation/* stopEscapePropagation */.s,
67424
+ onKeyDown: stopMenuKeyPropagation/* stopKeyPropagation */.a,
67425
+ side: "top"
67426
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.RadioGroup, {
67427
+ onValueChange: handleValueChange,
67428
+ value: currentAnimationClipId
67429
+ }, animationClips.map(({
67430
+ duration,
67431
+ id,
67432
+ name
67433
+ }) => /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.RadioSelectItem, {
67434
+ key: id,
67435
+ "data-resin-target": "settingsRadioItem",
67436
+ value: id
67437
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Text, {
67438
+ as: "span"
67439
+ }, `${formatDuration(duration)} ${name}`))))));
67440
+ }
67441
+ ;// ./src/lib/viewers/controls/box3d/AnimationControlsV2.tsx
67442
+ /* provided dependency */ var AnimationControlsV2_ = __webpack_require__(441)["Tl"];
67443
+
67444
+
67445
+
67446
+
67447
+
67448
+ function AnimationControlsV2({
67449
+ animationClips,
67450
+ currentAnimationClipId,
67451
+ isPlaying,
67452
+ onAnimationClipSelect,
67453
+ onPlayPause
67454
+ }) {
67455
+ if (!animationClips.length) {
67456
+ return null;
67457
+ }
67458
+ const label = isPlaying ? AnimationControlsV2_('media_pause') : AnimationControlsV2_('media_play');
67459
+ return /*#__PURE__*/external_react_["default"].createElement(external_react_["default"].Fragment, null, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Tooltip, {
67460
+ content: label
67461
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Button, {
67462
+ "aria-label": label,
67463
+ "data-resin-target": "playPause",
67464
+ onClick: () => onPlayPause(!isPlaying)
67465
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Icon, {
67466
+ icon: isPlaying ? __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_MediumFilled_Pause_0cc1f701_default__ : __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_MediumFilled_Play_ee47c078_default__
67467
+ }))), /*#__PURE__*/external_react_["default"].createElement(AnimationClipsControlV2, {
67468
+ animationClips: animationClips,
67469
+ currentAnimationClipId: currentAnimationClipId,
67470
+ onAnimationClipSelect: onAnimationClipSelect
67471
+ }));
67472
+ }
67473
+ ;// ./src/lib/viewers/controls/box3d/RotateRight.scss
67474
+ // extracted by mini-css-extract-plugin
67475
+
67476
+ ;// ./src/lib/viewers/controls/box3d/RotateRight.tsx
67477
+ function RotateRight_extends() { return RotateRight_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, RotateRight_extends.apply(null, arguments); }
67478
+
67479
+
67480
+
67481
+
67482
+ // Blueprint has RotateLeft and no RotateRight. Mirror the left glyph for the clockwise control.
67483
+ function RotateRight(props) {
67484
+ return /*#__PURE__*/external_react_["default"].createElement(Medium_.RotateLeft, RotateRight_extends({}, props, {
67485
+ className: ['bp-RotateRight', props.className].filter(Boolean).join(' ')
67486
+ }));
67487
+ }
67488
+ ;// ./src/lib/viewers/controls/box3d/RotateAxisControlV2.scss
67489
+ // extracted by mini-css-extract-plugin
67490
+
67491
+ ;// ./src/lib/viewers/controls/box3d/RotateAxisControlV2.tsx
67492
+ /* provided dependency */ var RotateAxisControlV2_ = __webpack_require__(441)["Tl"];
67493
+
67494
+
67495
+
67496
+
67497
+
67498
+
67499
+ const RotateAxisControlV2_ROTATION_STEP = 90;
67500
+ function RotateAxisControlV2({
67501
+ axis,
67502
+ onRotateOnAxisChange
67503
+ }) {
67504
+ const axisName = axis.toUpperCase();
67505
+ const handleClickLeft = () => onRotateOnAxisChange({
67506
+ [axis]: -RotateAxisControlV2_ROTATION_STEP
67507
+ });
67508
+ const handleClickRight = () => onRotateOnAxisChange({
67509
+ [axis]: RotateAxisControlV2_ROTATION_STEP
67510
+ });
67511
+ return /*#__PURE__*/external_react_["default"].createElement("div", {
67512
+ className: "bp-RotateAxisControlV2",
67513
+ "data-testid": `bp-rotate-axis-control-${axis}`
67514
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.IconButton, {
67515
+ "aria-label": (0,util/* replacePlaceholders */.Lb)(RotateAxisControlV2_('box3d_settings_rotate_left'), [axisName]),
67516
+ "data-resin-target": "rotateAxisLeft",
67517
+ "data-testid": "bp-rotate-axis-control-left",
67518
+ icon: Medium_.RotateLeft,
67519
+ onClick: handleClickLeft
67520
+ }), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Text, {
67521
+ as: "span",
67522
+ "data-testid": "bp-rotate-axis-control-label",
67523
+ variant: "bodyDefaultBold"
67524
+ }, axisName), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.IconButton, {
67525
+ "aria-label": (0,util/* replacePlaceholders */.Lb)(RotateAxisControlV2_('box3d_settings_rotate_right'), [axisName]),
67526
+ "data-resin-target": "rotateAxisRight",
67527
+ "data-testid": "bp-rotate-axis-control-right",
67528
+ icon: RotateRight,
67529
+ onClick: handleClickRight
67530
+ }));
67531
+ }
67532
+ ;// ./src/lib/viewers/controls/box3d/RotateAxisControlsV2.scss
67533
+ // extracted by mini-css-extract-plugin
67534
+
67535
+ ;// ./src/lib/viewers/controls/box3d/RotateAxisControlsV2.tsx
67536
+ /* provided dependency */ var RotateAxisControlsV2_ = __webpack_require__(441)["Tl"];
67537
+
67538
+
67539
+
67540
+
67541
+ function RotateAxisControlsV2({
67542
+ onRotateOnAxisChange
67543
+ }) {
67544
+ const labelId = external_react_["default"].useId();
67545
+ return /*#__PURE__*/external_react_["default"].createElement("div", {
67546
+ "aria-labelledby": labelId,
67547
+ className: "bp-RotateAxisControlsV2",
67548
+ role: "group"
67549
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Text, {
67550
+ as: "span",
67551
+ "data-testid": "bp-rotate-axis-controls-label",
67552
+ id: labelId,
67553
+ variant: "bodyDefaultBold"
67554
+ }, RotateAxisControlsV2_('box3d_settings_rotate_label')), /*#__PURE__*/external_react_["default"].createElement(RotateAxisControlV2, {
67555
+ axis: "x",
67556
+ onRotateOnAxisChange: onRotateOnAxisChange
67557
+ }), /*#__PURE__*/external_react_["default"].createElement(RotateAxisControlV2, {
67558
+ axis: "y",
67559
+ onRotateOnAxisChange: onRotateOnAxisChange
67560
+ }), /*#__PURE__*/external_react_["default"].createElement(RotateAxisControlV2, {
67561
+ axis: "z",
67562
+ onRotateOnAxisChange: onRotateOnAxisChange
67563
+ }));
67564
+ }
67565
+ // EXTERNAL MODULE: ./src/lib/viewers/controls/settings/SettingsToggleV2.tsx + 1 modules
67566
+ var SettingsToggleV2 = __webpack_require__(4574);
67567
+ ;// ./src/lib/viewers/controls/box3d/Model3DSettingsV2.scss
67568
+ // extracted by mini-css-extract-plugin
67569
+
67570
+ ;// ./src/lib/viewers/controls/box3d/Model3DSettingsV2.tsx
67571
+ /* provided dependency */ var Model3DSettingsV2_ = __webpack_require__(441)["Tl"];
67572
+
67573
+
67574
+
67575
+
67576
+
67577
+
67578
+
67579
+
67580
+
67581
+ function Model3DSettingsV2({
67582
+ cameraProjection,
67583
+ onCameraProjectionChange,
67584
+ onClose = (noop_default()),
67585
+ onOpen = (noop_default()),
67586
+ onRenderModeChange,
67587
+ onRotateOnAxisChange,
67588
+ onShowGridToggle,
67589
+ onShowSkeletonsToggle,
67590
+ onShowWireframesToggle,
67591
+ renderMode,
67592
+ showGrid,
67593
+ showSkeletons,
67594
+ showWireframes
67595
+ }) {
67596
+ const container = external_react_["default"].useContext(BlueprintProviders/* PortalContainerContext */.n) ?? undefined;
67597
+ const handleOpenChange = isOpen => {
67598
+ if (isOpen) {
67599
+ onOpen();
67600
+ } else {
67601
+ onClose();
67602
+ }
67603
+ };
67604
+ return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Popover.Root, {
67605
+ modal: false,
67606
+ onOpenChange: handleOpenChange
67607
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Popover.Trigger, {
67608
+ asChild: true
67609
+ }, /*#__PURE__*/external_react_["default"].createElement(SettingsToggleV2/* default */.A, {
67610
+ label: Model3DSettingsV2_('box3d_settings')
67611
+ })), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Popover.ContentContainer, {
67612
+ align: "start",
67613
+ "aria-label": Model3DSettingsV2_('box3d_settings'),
67614
+ container: container,
67615
+ "data-testid": "bp-model3d-settings",
67616
+ onEscapeKeyDown: stopMenuKeyPropagation/* stopEscapePropagation */.s,
67617
+ onKeyDown: stopMenuKeyPropagation/* stopKeyPropagation */.a,
67618
+ side: "top"
67619
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Popover.MainContent, null, /*#__PURE__*/external_react_["default"].createElement("div", {
67620
+ className: "bp-Model3DSettingsV2"
67621
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Select, {
67622
+ "data-resin-target": "settingsDropdown",
67623
+ label: Model3DSettingsV2_('box3d_settings_render_label'),
67624
+ onValueChange: value => onRenderModeChange(value),
67625
+ placeholder: Model3DSettingsV2_('box3d_settings_render_label'),
67626
+ value: renderMode
67627
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Select.Content, {
67628
+ container: container,
67629
+ onEscapeKeyDown: stopMenuKeyPropagation/* stopEscapePropagation */.s
67630
+ }, getRenderModeOptions().map(({
67631
+ label,
67632
+ value
67633
+ }) => /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Select.Option, {
67634
+ key: value,
67635
+ text: label,
67636
+ value: value
67637
+ })))), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Switch.Item, {
67638
+ checked: showGrid,
67639
+ "data-resin-target": "settingsCheckbox",
67640
+ label: Model3DSettingsV2_('box3d_settings_grid_label'),
67641
+ onCheckedChange: onShowGridToggle,
67642
+ value: "grid"
67643
+ }), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Switch.Item, {
67644
+ checked: showWireframes,
67645
+ "data-resin-target": "settingsCheckbox",
67646
+ label: Model3DSettingsV2_('box3d_settings_wireframes_label'),
67647
+ onCheckedChange: onShowWireframesToggle,
67648
+ value: "wireframes"
67649
+ }), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Switch.Item, {
67650
+ checked: showSkeletons,
67651
+ "data-resin-target": "settingsCheckbox",
67652
+ label: Model3DSettingsV2_('box3d_settings_skeletons_label'),
67653
+ onCheckedChange: onShowSkeletonsToggle,
67654
+ value: "skeletons"
67655
+ }), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Select, {
67656
+ "data-resin-target": "settingsDropdown",
67657
+ label: Model3DSettingsV2_('box3d_settings_projection_label'),
67658
+ onValueChange: value => onCameraProjectionChange(value),
67659
+ placeholder: Model3DSettingsV2_('box3d_settings_projection_label'),
67660
+ value: cameraProjection
67661
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Select.Content, {
67662
+ container: container,
67663
+ onEscapeKeyDown: stopMenuKeyPropagation/* stopEscapePropagation */.s
67664
+ }, getCameraProjectionOptions().map(({
67665
+ label,
67666
+ value
67667
+ }) => /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Select.Option, {
67668
+ key: value,
67669
+ text: label,
67670
+ value: value
67671
+ })))), /*#__PURE__*/external_react_["default"].createElement(RotateAxisControlsV2, {
67672
+ onRotateOnAxisChange: onRotateOnAxisChange
67673
+ })))));
67674
+ }
67675
+ ;// ./src/lib/viewers/controls/box3d/ResetControlV2.tsx
67676
+ /* provided dependency */ var ResetControlV2_ = __webpack_require__(441)["Tl"];
67677
+
67678
+
67679
+
67680
+ function ResetControlV2({
67681
+ onReset
67682
+ }) {
67683
+ return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Tooltip, {
67684
+ content: ResetControlV2_('box3d_reset')
67685
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Button, {
67686
+ "aria-label": ResetControlV2_('box3d_reset'),
67687
+ "data-resin-target": "resetView",
67688
+ onClick: () => onReset()
67689
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Icon, {
67690
+ icon: Medium_.ArrowCurveForward
67691
+ })));
67692
+ }
67693
+ ;// ./src/lib/viewers/box3d/model3d/Model3DControlsV2.tsx
67694
+
67695
+
67696
+
67697
+
67698
+
67699
+
67700
+
67701
+ function Model3DControlsV2({
67702
+ animationClips,
67703
+ cameraProjection,
67704
+ currentAnimationClipId,
67705
+ isPlaying,
67706
+ isVrShown,
67707
+ onAnimationClipSelect,
67708
+ onCameraProjectionChange,
67709
+ onFullscreenToggle,
67710
+ onPlayPause,
67711
+ onRenderModeChange,
67712
+ onRotateOnAxisChange,
67713
+ onReset,
67714
+ onSettingsClose,
67715
+ onSettingsOpen,
67716
+ onShowGridToggle,
67717
+ onShowSkeletonsToggle,
67718
+ onShowWireframesToggle,
67719
+ onVrToggle,
67720
+ renderMode,
67721
+ showGrid,
67722
+ showSkeletons,
67723
+ showWireframes
67724
+ }) {
67725
+ return /*#__PURE__*/external_react_["default"].createElement(controls_bar_ControlsBarV2, null, /*#__PURE__*/external_react_["default"].createElement(ResetControlV2, {
67726
+ onReset: onReset
67727
+ }), /*#__PURE__*/external_react_["default"].createElement(AnimationControlsV2, {
67728
+ animationClips: animationClips,
67729
+ currentAnimationClipId: currentAnimationClipId,
67730
+ isPlaying: isPlaying,
67731
+ onAnimationClipSelect: onAnimationClipSelect,
67732
+ onPlayPause: onPlayPause
67733
+ }), /*#__PURE__*/external_react_["default"].createElement(VrToggleControlV2, {
67734
+ isVrShown: isVrShown,
67735
+ onVrToggle: onVrToggle
67736
+ }), /*#__PURE__*/external_react_["default"].createElement(Model3DSettingsV2, {
67737
+ cameraProjection: cameraProjection,
67738
+ onCameraProjectionChange: onCameraProjectionChange,
67739
+ onClose: onSettingsClose,
67740
+ onOpen: onSettingsOpen,
67741
+ onRenderModeChange: onRenderModeChange,
67742
+ onRotateOnAxisChange: onRotateOnAxisChange,
67743
+ onShowGridToggle: onShowGridToggle,
67744
+ onShowSkeletonsToggle: onShowSkeletonsToggle,
67745
+ onShowWireframesToggle: onShowWireframesToggle,
67746
+ renderMode: renderMode,
67747
+ showGrid: showGrid,
67748
+ showSkeletons: showSkeletons,
67749
+ showWireframes: showWireframes
67750
+ }), /*#__PURE__*/external_react_["default"].createElement(FullscreenToggleV2, {
67751
+ onFullscreenToggle: onFullscreenToggle
67752
+ }));
67753
+ }
67192
67754
  ;// ./src/lib/viewers/box3d/model3d/Model3DVrControls.js
67193
67755
  function Model3DVrControls_defineProperty(e, r, t) { return (r = Model3DVrControls_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
67194
67756
  function Model3DVrControls_toPropertyKey(t) { var i = Model3DVrControls_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
@@ -68095,6 +68657,8 @@ function Model3DViewer_toPrimitive(t, r) { if ("object" != typeof t || !t) retur
68095
68657
 
68096
68658
 
68097
68659
 
68660
+
68661
+
68098
68662
  const DEFAULT_AXIS_UP = '+Y';
68099
68663
  const DEFAULT_AXIS_FORWARD = '+Z';
68100
68664
  const DEFAULT_RENDER_GRID = true;
@@ -68538,7 +69102,8 @@ class Model3DViewer extends box3d_Box3DViewer {
68538
69102
  if (!this.controls || !this.renderer) {
68539
69103
  return;
68540
69104
  }
68541
- this.controls.render(/*#__PURE__*/external_react_["default"].createElement(Model3DControlsNew_Model3DControls, {
69105
+ const Controls = this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ) ? Model3DControlsV2 : Model3DControlsNew_Model3DControls;
69106
+ this.controls.render(/*#__PURE__*/external_react_["default"].createElement(Controls, {
68542
69107
  animationClips: this.animationClips,
68543
69108
  cameraProjection: this.projection,
68544
69109
  currentAnimationClipId: this.renderer.getAnimationClip(),
@@ -69146,16 +69711,6 @@ office_OfficeLoader,
69146
69711
  doc_DocLoader,
69147
69712
  // should come after text
69148
69713
  swf_SWFLoader, video360_Video360Loader, media_MediaLoader, image360_Image360Loader, image_ImageLoader, model3d_Model3DLoader, iframe_IFrameLoader]);
69149
- ;// external "@box/blueprint-web-assets/icons/Medium/Checkmark"
69150
-
69151
- ;// external "@box/blueprint-web-assets/icons/Medium/Download"
69152
-
69153
- ;// external "@box/blueprint-web-assets/icons/Medium/Ellipsis"
69154
-
69155
- ;// external "@box/blueprint-web-assets/icons/Medium/Expand"
69156
-
69157
- ;// external "@box/blueprint-web-assets/icons/Medium/Trash"
69158
-
69159
69714
  ;// ./src/lib/ComparisonBanner.scss
69160
69715
  // extracted by mini-css-extract-plugin
69161
69716
 
@@ -69173,9 +69728,8 @@ function ComparisonBanner_toPrimitive(t, r) { if ("object" != typeof t || !t) re
69173
69728
 
69174
69729
 
69175
69730
 
69176
-
69177
-
69178
-
69731
+ // The badge is a fixed-size circle, so larger version numbers are shown as "999+"
69732
+ const MAX_BADGE_VERSION = 999;
69179
69733
  function formatComparisonTimestamp(iso, locale) {
69180
69734
  if (!iso) {
69181
69735
  return '';
@@ -69194,6 +69748,23 @@ function formatComparisonTimestamp(iso, locale) {
69194
69748
  function getComparisonBannerAuthor(file = {}) {
69195
69749
  return file.modified_by?.name || file.created_by?.name || '';
69196
69750
  }
69751
+ function VersionBadge({
69752
+ fullLabel,
69753
+ isTruncated,
69754
+ label
69755
+ }) {
69756
+ const badge = /*#__PURE__*/external_react_["default"].createElement("span", {
69757
+ // When truncated, the tooltip supplies the full number
69758
+ "aria-label": isTruncated ? undefined : fullLabel,
69759
+ className: isTruncated ? 'bp-version-banner-badge bp-version-banner-badge--truncated' : 'bp-version-banner-badge',
69760
+ role: isTruncated ? undefined : 'img'
69761
+ }, label);
69762
+
69763
+ // Tooltip triggers must be focusable so keyboard users can open the full version number
69764
+ return isTruncated ? /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Tooltip, {
69765
+ content: fullLabel
69766
+ }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Focusable, null, badge)) : badge;
69767
+ }
69197
69768
  function ComparisonBanner({
69198
69769
  file = {},
69199
69770
  isComparedPreview = false,
@@ -69208,40 +69779,51 @@ function ComparisonBanner({
69208
69779
  const versionNumber = file.version_number != null && file.version_number !== '' ? String(file.version_number) : '';
69209
69780
  const timestamp = formatComparisonTimestamp(file.modified_at, locale);
69210
69781
  const author = getComparisonBannerAuthor(file);
69782
+ const isBadgeTruncated = Number(versionNumber) > MAX_BADGE_VERSION;
69783
+ const badgeLabel = isBadgeTruncated ? `${MAX_BADGE_VERSION}+` : versionNumber;
69784
+ const badgeFullLabel = (0,util/* replacePlaceholders */.Lb)(ComparisonBanner_('comparison_banner_version'), [versionNumber]);
69211
69785
  // When "Open Full Preview" is the only action, the close button covers it, so skip the menu
69212
69786
  const showMenu = !!(onMakeCurrent || onDownload || onDelete);
69213
69787
  const showClose = !!onOpenFullPreview;
69214
69788
  if (!versionNumber && !timestamp && !author) {
69215
69789
  return null;
69216
69790
  }
69217
- return /*#__PURE__*/external_react_["default"].createElement("div", {
69791
+ return /*#__PURE__*/external_react_["default"].createElement(BlueprintProviders/* default */.A, {
69792
+ container: menuContainer
69793
+ }, /*#__PURE__*/external_react_["default"].createElement("div", {
69218
69794
  className: isComparedPreview ? `${constants/* CLASS_BOX_PREVIEW_VERSION_BANNER */.on} ${constants/* CLASS_BOX_PREVIEW_VERSION_BANNER_COMPARED */.Uj}` : constants/* CLASS_BOX_PREVIEW_VERSION_BANNER */.on
69219
69795
  }, /*#__PURE__*/external_react_["default"].createElement("div", {
69220
69796
  "aria-label": isComparedPreview ? ComparisonBanner_('comparison_banner_previous') : ComparisonBanner_('comparison_banner_current'),
69221
69797
  className: "bp-version-banner-details",
69222
69798
  role: "status"
69223
- }, versionNumber && /*#__PURE__*/external_react_["default"].createElement("span", {
69224
- className: "bp-version-banner-badge"
69225
- }, versionNumber), (timestamp || author) && /*#__PURE__*/external_react_["default"].createElement("div", {
69799
+ }, versionNumber && /*#__PURE__*/external_react_["default"].createElement(VersionBadge, {
69800
+ fullLabel: badgeFullLabel,
69801
+ isTruncated: isBadgeTruncated,
69802
+ label: badgeLabel
69803
+ }), (timestamp || author) && /*#__PURE__*/external_react_["default"].createElement("div", {
69226
69804
  className: "bp-version-banner-info"
69227
- }, timestamp && /*#__PURE__*/external_react_["default"].createElement("div", {
69228
- className: "bp-version-banner-time"
69229
- }, timestamp), author && /*#__PURE__*/external_react_["default"].createElement("div", {
69230
- className: "bp-version-banner-author"
69805
+ }, timestamp && /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.EllipsizableText, {
69806
+ as: "div",
69807
+ className: "bp-version-banner-time",
69808
+ lineClamp: 1,
69809
+ variant: "bodyDefaultSemibold"
69810
+ }, timestamp), author && /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.EllipsizableText, {
69811
+ as: "div",
69812
+ className: "bp-version-banner-author",
69813
+ lineClamp: 1,
69814
+ variant: "caption"
69231
69815
  }, author))), isComparedPreview && (onMakeCurrent || onDownload || onOpenFullPreview || onDelete) && /*#__PURE__*/external_react_["default"].createElement("div", {
69232
69816
  className: "bp-version-banner-actions",
69233
69817
  onKeyDown: event => {
69234
69818
  event.stopPropagation(); // Prevents global key handling
69235
69819
  },
69236
69820
  role: "presentation"
69237
- }, /*#__PURE__*/external_react_["default"].createElement(BlueprintProviders/* default */.A, {
69238
- container: menuContainer
69239
69821
  }, showMenu && /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Root, null, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Trigger, {
69240
69822
  asChild: true
69241
69823
  }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.IconButton, {
69242
69824
  "aria-label": ComparisonBanner_('comparison_banner_actions'),
69243
69825
  "data-target-id": "ComparisonBanner-openActions",
69244
- icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Ellipsis_9a96c07b_default__,
69826
+ icon: Medium_.Ellipsis,
69245
69827
  size: "small",
69246
69828
  variant: isOnDark ? 'on-dark' : 'default'
69247
69829
  })), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Content, {
@@ -69252,21 +69834,21 @@ function ComparisonBanner({
69252
69834
  "data-target-id": "ComparisonBanner-makeCurrent",
69253
69835
  onSelect: onMakeCurrent
69254
69836
  }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Item.StartElement, {
69255
- icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Checkmark_52a58454_default__
69837
+ icon: Medium_.Checkmark
69256
69838
  }), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Item.MainContent, {
69257
69839
  label: ComparisonBanner_('comparison_banner_make_current')
69258
69840
  })), onDownload && /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Item, {
69259
69841
  "data-target-id": "ComparisonBanner-download",
69260
69842
  onSelect: onDownload
69261
69843
  }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Item.StartElement, {
69262
- icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Download_0dc63cde_default__
69844
+ icon: Medium_.Download
69263
69845
  }), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Item.MainContent, {
69264
69846
  label: ComparisonBanner_('download')
69265
69847
  })), onOpenFullPreview && /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Item, {
69266
69848
  "data-target-id": "ComparisonBanner-openFullPreview",
69267
69849
  onSelect: onOpenFullPreview
69268
69850
  }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Item.StartElement, {
69269
- icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Expand_92c6b888_default__
69851
+ icon: Medium_.Expand
69270
69852
  }), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Item.MainContent, {
69271
69853
  label: ComparisonBanner_('comparison_banner_open_full_preview')
69272
69854
  })), onDelete && (onMakeCurrent || onDownload || onOpenFullPreview) && /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Separator, null), onDelete && /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Item, {
@@ -69274,7 +69856,7 @@ function ComparisonBanner({
69274
69856
  onSelect: onDelete,
69275
69857
  variant: "destructive"
69276
69858
  }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Item.StartElement, {
69277
- icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Trash_28211f44_default__
69859
+ icon: Medium_.Trash
69278
69860
  }), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Item.MainContent, {
69279
69861
  label: ComparisonBanner_('comparison_banner_delete')
69280
69862
  })))), showMenu && showClose && /*#__PURE__*/external_react_["default"].createElement("span", {
@@ -69283,7 +69865,7 @@ function ComparisonBanner({
69283
69865
  }), showClose && /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.IconButton, {
69284
69866
  "aria-label": ComparisonBanner_('comparison_banner_close'),
69285
69867
  "data-target-id": "ComparisonBanner-close",
69286
- icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_XMark_07fbe0f0_default__,
69868
+ icon: Medium_.XMark,
69287
69869
  onClick: onOpenFullPreview,
69288
69870
  size: "small",
69289
69871
  variant: isOnDark ? 'on-dark' : 'default'