box-content-preview 3.117.0 → 3.119.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/README.md +7 -7
- package/dist/lib/i18n/bn-IN.js +4 -0
- package/dist/lib/i18n/da-DK.js +16 -12
- package/dist/lib/i18n/de-DE.js +16 -12
- package/dist/lib/i18n/en-AU.js +4 -0
- package/dist/lib/i18n/en-CA.js +4 -0
- package/dist/lib/i18n/en-GB.js +4 -0
- package/dist/lib/i18n/en-US.js +4 -0
- package/dist/lib/i18n/en-x-pseudo.js +4 -0
- package/dist/lib/i18n/es-419.js +17 -13
- package/dist/lib/i18n/es-ES.js +17 -13
- package/dist/lib/i18n/fi-FI.js +17 -13
- package/dist/lib/i18n/fr-CA.js +16 -12
- package/dist/lib/i18n/fr-FR.js +16 -12
- package/dist/lib/i18n/hi-IN.js +4 -0
- package/dist/lib/i18n/it-IT.js +17 -13
- package/dist/lib/i18n/ja-JP.js +4 -0
- package/dist/lib/i18n/ko-KR.js +17 -13
- package/dist/lib/i18n/nb-NO.js +18 -14
- package/dist/lib/i18n/nl-NL.js +17 -13
- package/dist/lib/i18n/pl-PL.js +17 -13
- package/dist/lib/i18n/pt-BR.js +17 -13
- package/dist/lib/i18n/ru-RU.js +17 -13
- package/dist/lib/i18n/sv-SE.js +16 -12
- package/dist/lib/i18n/tr-TR.js +17 -13
- package/dist/lib/i18n/zh-CN.js +17 -13
- package/dist/lib/i18n/zh-TW.js +4 -0
- package/dist/lib/index.css +8 -4
- package/dist/lib/index.js +592 -141
- package/package.json +1 -1
package/dist/lib/index.js
CHANGED
|
@@ -46,28 +46,30 @@ import { default as __WEBPACK_EXTERNAL_MODULE_axios_default__ } from "axios";
|
|
|
46
46
|
import { bdlBoxBlue as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_styles_variables_c815ce80_bdlBoxBlue__, bdlGray65 as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_styles_variables_c815ce80_bdlGray65__, bdlGreenLight as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_styles_variables_c815ce80_bdlGreenLight__, bdlGrimace as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_styles_variables_c815ce80_bdlGrimace__, bdlWatermelonRed as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_styles_variables_c815ce80_bdlWatermelonRed__, bdlYellorange as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_styles_variables_c815ce80_bdlYellorange__, bdlYellow as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_styles_variables_c815ce80_bdlYellow__, white as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_styles_variables_c815ce80_white__ } from "box-ui-elements/es/styles/variables";
|
|
47
47
|
import { default as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_components_tooltip_Tooltip_97b5ae91_default__ } from "box-ui-elements/es/components/tooltip/Tooltip";
|
|
48
48
|
import { withTargetedClickThrough as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_features_targeting_hocs_e326fa91_withTargetedClickThrough__ } from "box-ui-elements/es/features/targeting/hocs";
|
|
49
|
+
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ArrowsMaximize_12b9ae40_default__ } from "@box/blueprint-web-assets/icons/Medium/ArrowsMaximize";
|
|
50
|
+
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ArrowsMinimize_35faab95_default__ } from "@box/blueprint-web-assets/icons/Medium/ArrowsMinimize";
|
|
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
|
+
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Plus_aaa7b14f_default__ } from "@box/blueprint-web-assets/icons/Medium/Plus";
|
|
49
53
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_CheckmarkCircle_e8bd4624_default__ } from "@box/blueprint-web-assets/icons/Medium/CheckmarkCircle";
|
|
50
54
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_XMark_07fbe0f0_default__ } from "@box/blueprint-web-assets/icons/Medium/XMark";
|
|
51
55
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_PencilTip_154ad3fd_default__ } from "@box/blueprint-web-assets/icons/Medium/PencilTip";
|
|
52
56
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_SquarePlus_c11758f1_default__ } from "@box/blueprint-web-assets/icons/Medium/SquarePlus";
|
|
53
57
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_TCursorHighlight_508374cb_default__ } from "@box/blueprint-web-assets/icons/Medium/TCursorHighlight";
|
|
54
58
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Search_ef3e4aba_default__ } from "@box/blueprint-web-assets/icons/Medium/Search";
|
|
55
|
-
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ArrowsMaximize_12b9ae40_default__ } from "@box/blueprint-web-assets/icons/Medium/ArrowsMaximize";
|
|
56
|
-
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ArrowsMinimize_35faab95_default__ } from "@box/blueprint-web-assets/icons/Medium/ArrowsMinimize";
|
|
57
59
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_GridView_ac92b674_default__ } from "@box/blueprint-web-assets/icons/Medium/GridView";
|
|
58
60
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ChevronDown_a545a634_default__ } from "@box/blueprint-web-assets/icons/Medium/ChevronDown";
|
|
59
61
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ChevronUp_d399c022_default__ } from "@box/blueprint-web-assets/icons/Medium/ChevronUp";
|
|
60
62
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_RotateLeft_c726d679_default__ } from "@box/blueprint-web-assets/icons/Medium/RotateLeft";
|
|
61
63
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Nav_d41e959a_default__ } from "@box/blueprint-web-assets/icons/Medium/Nav";
|
|
62
64
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_MediumFilled_Nav_ae6d790f_default__ } from "@box/blueprint-web-assets/icons/MediumFilled/Nav";
|
|
63
|
-
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Minus_cc9df143_default__ } from "@box/blueprint-web-assets/icons/Medium/Minus";
|
|
64
|
-
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Plus_aaa7b14f_default__ } from "@box/blueprint-web-assets/icons/Medium/Plus";
|
|
65
65
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Checkmark_52a58454_default__ } from "@box/blueprint-web-assets/icons/Medium/Checkmark";
|
|
66
66
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Download_0dc63cde_default__ } from "@box/blueprint-web-assets/icons/Medium/Download";
|
|
67
67
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Ellipsis_9a96c07b_default__ } from "@box/blueprint-web-assets/icons/Medium/Ellipsis";
|
|
68
68
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Expand_92c6b888_default__ } from "@box/blueprint-web-assets/icons/Medium/Expand";
|
|
69
69
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Trash_28211f44_default__ } from "@box/blueprint-web-assets/icons/Medium/Trash";
|
|
70
70
|
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";
|
|
71
|
+
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ChevronLeft_8bf40851_default__ } from "@box/blueprint-web-assets/icons/Medium/ChevronLeft";
|
|
72
|
+
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ChevronRight_619e782c_default__ } from "@box/blueprint-web-assets/icons/Medium/ChevronRight";
|
|
71
73
|
/******/ var __webpack_modules__ = ({
|
|
72
74
|
|
|
73
75
|
/***/ 1057
|
|
@@ -1111,7 +1113,7 @@ const DEFAULT_LANGUAGE = 'en-US';
|
|
|
1111
1113
|
const MESSAGE_KEY_PREFIX = 'bcp.';
|
|
1112
1114
|
|
|
1113
1115
|
// Only the npm build defines __BCP_DEFAULT_MESSAGES__; the CDN build bakes strings in per locale.
|
|
1114
|
-
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","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_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_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.","annotations_tooltip_body":"Make notes and comments to highlight key information when previewing content.","annotations_tooltip_title":"Add feedback on content","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"} : {};
|
|
1116
|
+
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_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.","annotations_tooltip_body":"Make notes and comments to highlight key information when previewing content.","annotations_tooltip_title":"Add feedback on content","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
1117
|
let language = true ? "en-US" : 0;
|
|
1116
1118
|
let strings = defaultStrings;
|
|
1117
1119
|
function getLanguage() {
|
|
@@ -1214,7 +1216,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
1214
1216
|
const CLIENT_NAME = "box-content-preview"; // eslint-disable-line no-undef
|
|
1215
1217
|
const CLIENT_NAME_KEY = 'box_client_name';
|
|
1216
1218
|
const CLIENT_VERSION_KEY = 'box_client_version';
|
|
1217
|
-
const CLIENT_VERSION = "3.
|
|
1219
|
+
const CLIENT_VERSION = "3.119.0"; // eslint-disable-line no-undef
|
|
1218
1220
|
const HEADER_CLIENT_NAME = 'X-Box-Client-Name';
|
|
1219
1221
|
const HEADER_CLIENT_VERSION = 'X-Box-Client-Version';
|
|
1220
1222
|
const PROMISE_MAP = {};
|
|
@@ -6741,6 +6743,40 @@ function DurationLabels({
|
|
|
6741
6743
|
|
|
6742
6744
|
/***/ },
|
|
6743
6745
|
|
|
6746
|
+
/***/ 4301
|
|
6747
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6748
|
+
|
|
6749
|
+
|
|
6750
|
+
// EXPORTS
|
|
6751
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
6752
|
+
A: () => (/* binding */ MediaLoadingIndicator)
|
|
6753
|
+
});
|
|
6754
|
+
|
|
6755
|
+
// EXTERNAL MODULE: external "react"
|
|
6756
|
+
var external_react_ = __webpack_require__(1649);
|
|
6757
|
+
// EXTERNAL MODULE: external "@box/blueprint-web"
|
|
6758
|
+
var blueprint_web_ = __webpack_require__(8912);
|
|
6759
|
+
;// ./src/lib/viewers/controls/media/MediaLoadingIndicator.scss
|
|
6760
|
+
// extracted by mini-css-extract-plugin
|
|
6761
|
+
|
|
6762
|
+
;// ./src/lib/viewers/controls/media/MediaLoadingIndicator.tsx
|
|
6763
|
+
/* provided dependency */ var __ = __webpack_require__(441)["Tl"];
|
|
6764
|
+
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); }
|
|
6765
|
+
|
|
6766
|
+
|
|
6767
|
+
|
|
6768
|
+
function MediaLoadingIndicator(props) {
|
|
6769
|
+
return /*#__PURE__*/external_react_["default"].createElement("div", _extends({
|
|
6770
|
+
className: "bp-MediaLoadingIndicator"
|
|
6771
|
+
}, props), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.LoadingIndicator, {
|
|
6772
|
+
"aria-label": __('media_loading'),
|
|
6773
|
+
size: "x-large",
|
|
6774
|
+
variant: "light"
|
|
6775
|
+
}));
|
|
6776
|
+
}
|
|
6777
|
+
|
|
6778
|
+
/***/ },
|
|
6779
|
+
|
|
6744
6780
|
/***/ 112
|
|
6745
6781
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6746
6782
|
|
|
@@ -10203,6 +10239,8 @@ var lodash_isFinite = __webpack_require__(2297);
|
|
|
10203
10239
|
var isFinite_default = /*#__PURE__*/__webpack_require__.n(lodash_isFinite);
|
|
10204
10240
|
// EXTERNAL MODULE: external "@box/blueprint-web"
|
|
10205
10241
|
var blueprint_web_ = __webpack_require__(8912);
|
|
10242
|
+
// EXTERNAL MODULE: ./src/lib/viewers/controls/media/MediaLoadingIndicator.tsx + 1 modules
|
|
10243
|
+
var MediaLoadingIndicator = __webpack_require__(4301);
|
|
10206
10244
|
// EXTERNAL MODULE: ./src/lib/viewers/controls/media/MediaSettings.tsx + 2 modules
|
|
10207
10245
|
var MediaSettings = __webpack_require__(112);
|
|
10208
10246
|
// EXTERNAL MODULE: ./src/lib/viewers/controls/media/MediaSettingsV2.tsx + 5 modules
|
|
@@ -13531,6 +13569,7 @@ function WaveformZoomControl({
|
|
|
13531
13569
|
|
|
13532
13570
|
|
|
13533
13571
|
|
|
13572
|
+
|
|
13534
13573
|
|
|
13535
13574
|
|
|
13536
13575
|
const PLACEHOLDER_PEAKS = placeholderPeaks();
|
|
@@ -13781,7 +13820,9 @@ function MP3ControlsV2({
|
|
|
13781
13820
|
onMouseDown: event => event.preventDefault(),
|
|
13782
13821
|
title: MP3ControlsV2_('media_play'),
|
|
13783
13822
|
type: "button"
|
|
13784
|
-
}), isWaitingToPlay && /*#__PURE__*/external_react_["default"].createElement(
|
|
13823
|
+
}), isWaitingToPlay && isBlueprintEnabled && /*#__PURE__*/external_react_["default"].createElement(MediaLoadingIndicator/* default */.A, {
|
|
13824
|
+
"data-testid": "bp-MP3ControlsV2-loading"
|
|
13825
|
+
}), isWaitingToPlay && !isBlueprintEnabled && /*#__PURE__*/external_react_["default"].createElement("div", {
|
|
13785
13826
|
className: "bp-media-buffering-spinner",
|
|
13786
13827
|
"data-testid": "bp-MP3ControlsV2-loading"
|
|
13787
13828
|
})), hasMediaMetadata && /*#__PURE__*/external_react_["default"].createElement("div", {
|
|
@@ -22573,7 +22614,7 @@ var x = (y) => {
|
|
|
22573
22614
|
var x = {}; __webpack_require__.d(x, y); return x
|
|
22574
22615
|
}
|
|
22575
22616
|
var y = (x) => (() => (x))
|
|
22576
|
-
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), ["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) });
|
|
22617
|
+
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) });
|
|
22577
22618
|
|
|
22578
22619
|
/***/ },
|
|
22579
22620
|
|
|
@@ -22606,7 +22647,7 @@ var x = (y) => {
|
|
|
22606
22647
|
var x = {}; __webpack_require__.d(x, y); return x
|
|
22607
22648
|
}
|
|
22608
22649
|
var y = (x) => (() => (x))
|
|
22609
|
-
module.exports = x({ ["BoxBlue100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.BoxBlue100), ["Size5"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Size5), ["Size8"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Size8), ["bpIconCtaIconOnDark"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.bpIconCtaIconOnDark), ["bpIconIconOnDark"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.bpIconIconOnDark), ["bpIconIconOnLightSecondary"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.bpIconIconOnLightSecondary) });
|
|
22650
|
+
module.exports = x({ ["BoxBlue100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.BoxBlue100), ["Size5"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Size5), ["Size8"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Size8), ["bpIconCtaIconOnDark"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.bpIconCtaIconOnDark), ["bpIconIconOnDark"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.bpIconIconOnDark), ["bpIconIconOnLightSecondary"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.bpIconIconOnLightSecondary), ["bpRadius03"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.bpRadius03) });
|
|
22610
22651
|
|
|
22611
22652
|
/***/ },
|
|
22612
22653
|
|
|
@@ -38238,7 +38279,7 @@ var isNpmBuild = __webpack_require__(8080);
|
|
|
38238
38279
|
;// ./src/lib/Logger.js
|
|
38239
38280
|
/* eslint-disable no-undef */
|
|
38240
38281
|
const CLIENT_NAME = "box-content-preview";
|
|
38241
|
-
const CLIENT_VERSION = "3.
|
|
38282
|
+
const CLIENT_VERSION = "3.119.0";
|
|
38242
38283
|
/* eslint-enable no-undef */
|
|
38243
38284
|
|
|
38244
38285
|
class Logger {
|
|
@@ -46181,6 +46222,143 @@ function TextControls({
|
|
|
46181
46222
|
onFullscreenToggle: onFullscreenToggle
|
|
46182
46223
|
})));
|
|
46183
46224
|
}
|
|
46225
|
+
// EXTERNAL MODULE: external "@box/blueprint-web"
|
|
46226
|
+
var blueprint_web_ = __webpack_require__(8912);
|
|
46227
|
+
;// ./src/lib/viewers/controls/controls-bar/ControlsBarV2.tsx
|
|
46228
|
+
const ControlsBarV2_excluded = ["children"];
|
|
46229
|
+
function ControlsBarV2_extends() { return ControlsBarV2_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; }, ControlsBarV2_extends.apply(null, arguments); }
|
|
46230
|
+
function ControlsBarV2_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = ControlsBarV2_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; }
|
|
46231
|
+
function ControlsBarV2_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; }
|
|
46232
|
+
|
|
46233
|
+
|
|
46234
|
+
function ControlsBarV2(_ref, ref) {
|
|
46235
|
+
let {
|
|
46236
|
+
children
|
|
46237
|
+
} = _ref,
|
|
46238
|
+
rest = ControlsBarV2_objectWithoutProperties(_ref, ControlsBarV2_excluded);
|
|
46239
|
+
if (!children) {
|
|
46240
|
+
return null;
|
|
46241
|
+
}
|
|
46242
|
+
return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Root, ControlsBarV2_extends({
|
|
46243
|
+
ref: ref,
|
|
46244
|
+
colorScheme: "dark",
|
|
46245
|
+
"data-testid": "bp-ControlsBar"
|
|
46246
|
+
}, rest), children);
|
|
46247
|
+
}
|
|
46248
|
+
/* harmony default export */ const controls_bar_ControlsBarV2 = (/*#__PURE__*/external_react_["default"].forwardRef(ControlsBarV2));
|
|
46249
|
+
;// external "@box/blueprint-web-assets/icons/Medium/ArrowsMaximize"
|
|
46250
|
+
|
|
46251
|
+
;// external "@box/blueprint-web-assets/icons/Medium/ArrowsMinimize"
|
|
46252
|
+
|
|
46253
|
+
;// ./src/lib/viewers/controls/fullscreen/FullscreenToggleV2.tsx
|
|
46254
|
+
/* provided dependency */ var FullscreenToggleV2_ = __webpack_require__(441)["Tl"];
|
|
46255
|
+
const FullscreenToggleV2_excluded = ["onFullscreenToggle"];
|
|
46256
|
+
function FullscreenToggleV2_extends() { return FullscreenToggleV2_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; }, FullscreenToggleV2_extends.apply(null, arguments); }
|
|
46257
|
+
function FullscreenToggleV2_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = FullscreenToggleV2_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; }
|
|
46258
|
+
function FullscreenToggleV2_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; }
|
|
46259
|
+
|
|
46260
|
+
|
|
46261
|
+
|
|
46262
|
+
|
|
46263
|
+
|
|
46264
|
+
function FullscreenToggleV2(_ref) {
|
|
46265
|
+
let {
|
|
46266
|
+
onFullscreenToggle
|
|
46267
|
+
} = _ref,
|
|
46268
|
+
rest = FullscreenToggleV2_objectWithoutProperties(_ref, FullscreenToggleV2_excluded);
|
|
46269
|
+
const isFullscreen = useFullscreen();
|
|
46270
|
+
const icon = isFullscreen ? __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ArrowsMinimize_35faab95_default__ : __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ArrowsMaximize_12b9ae40_default__;
|
|
46271
|
+
const label = isFullscreen ? FullscreenToggleV2_('exit_fullscreen') : FullscreenToggleV2_('enter_fullscreen');
|
|
46272
|
+
const handleClick = ({
|
|
46273
|
+
currentTarget
|
|
46274
|
+
}) => {
|
|
46275
|
+
onFullscreenToggle(!isFullscreen, currentTarget);
|
|
46276
|
+
};
|
|
46277
|
+
return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Tooltip, {
|
|
46278
|
+
content: label
|
|
46279
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Button, FullscreenToggleV2_extends({
|
|
46280
|
+
"aria-label": label,
|
|
46281
|
+
"data-resin-target": "fullscreen",
|
|
46282
|
+
onClick: handleClick
|
|
46283
|
+
}, rest), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Icon, {
|
|
46284
|
+
icon: icon
|
|
46285
|
+
})));
|
|
46286
|
+
}
|
|
46287
|
+
;// external "@box/blueprint-web-assets/icons/Medium/Minus"
|
|
46288
|
+
|
|
46289
|
+
;// external "@box/blueprint-web-assets/icons/Medium/Plus"
|
|
46290
|
+
|
|
46291
|
+
;// ./src/lib/viewers/controls/zoom/ZoomControlsV2.tsx
|
|
46292
|
+
/* provided dependency */ var ZoomControlsV2_ = __webpack_require__(441)["Tl"];
|
|
46293
|
+
|
|
46294
|
+
|
|
46295
|
+
|
|
46296
|
+
|
|
46297
|
+
|
|
46298
|
+
|
|
46299
|
+
function ZoomControlsV2({
|
|
46300
|
+
maxScale = MAX_SCALE,
|
|
46301
|
+
minScale = MIN_SCALE,
|
|
46302
|
+
onZoomIn,
|
|
46303
|
+
onZoomOut,
|
|
46304
|
+
resinTargetZoomIn = 'zoomIn',
|
|
46305
|
+
resinTargetZoomOut = 'zoomOut',
|
|
46306
|
+
scale = 1
|
|
46307
|
+
}) {
|
|
46308
|
+
const currentScale = Math.round((scale + Number.EPSILON) * 100) / 100;
|
|
46309
|
+
const maxScaleValue = isFinite_default()(maxScale) ? Math.min(maxScale, MAX_SCALE) : MAX_SCALE;
|
|
46310
|
+
const minScaleValue = isFinite_default()(minScale) ? Math.max(minScale, MIN_SCALE) : MIN_SCALE;
|
|
46311
|
+
return /*#__PURE__*/external_react_["default"].createElement(external_react_["default"].Fragment, null, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Tooltip, {
|
|
46312
|
+
content: ZoomControlsV2_('zoom_out')
|
|
46313
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Button, {
|
|
46314
|
+
"aria-label": ZoomControlsV2_('zoom_out'),
|
|
46315
|
+
"data-resin-target": resinTargetZoomOut,
|
|
46316
|
+
"data-testid": "bp-ZoomControls-out",
|
|
46317
|
+
disabled: currentScale <= minScaleValue,
|
|
46318
|
+
onClick: onZoomOut
|
|
46319
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Icon, {
|
|
46320
|
+
icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Minus_cc9df143_default__
|
|
46321
|
+
}))), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Text, {
|
|
46322
|
+
as: "span",
|
|
46323
|
+
color: "textOnDarkDefault",
|
|
46324
|
+
"data-testid": "bp-ZoomControls-current",
|
|
46325
|
+
title: ZoomControlsV2_('zoom_current_scale'),
|
|
46326
|
+
variant: "bodyDefaultSemibold"
|
|
46327
|
+
}, `${Math.round(currentScale * 100)}%`), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Tooltip, {
|
|
46328
|
+
content: ZoomControlsV2_('zoom_in')
|
|
46329
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Button, {
|
|
46330
|
+
"aria-label": ZoomControlsV2_('zoom_in'),
|
|
46331
|
+
"data-resin-target": resinTargetZoomIn,
|
|
46332
|
+
"data-testid": "bp-ZoomControls-in",
|
|
46333
|
+
disabled: currentScale >= maxScaleValue,
|
|
46334
|
+
onClick: onZoomIn
|
|
46335
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Icon, {
|
|
46336
|
+
icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Plus_aaa7b14f_default__
|
|
46337
|
+
}))));
|
|
46338
|
+
}
|
|
46339
|
+
;// ./src/lib/viewers/text/TextControlsV2.tsx
|
|
46340
|
+
|
|
46341
|
+
|
|
46342
|
+
|
|
46343
|
+
|
|
46344
|
+
function TextControlsV2({
|
|
46345
|
+
maxScale,
|
|
46346
|
+
minScale,
|
|
46347
|
+
onFullscreenToggle,
|
|
46348
|
+
onZoomIn,
|
|
46349
|
+
onZoomOut,
|
|
46350
|
+
scale
|
|
46351
|
+
}) {
|
|
46352
|
+
return /*#__PURE__*/external_react_["default"].createElement(controls_bar_ControlsBarV2, null, /*#__PURE__*/external_react_["default"].createElement(ZoomControlsV2, {
|
|
46353
|
+
maxScale: maxScale,
|
|
46354
|
+
minScale: minScale,
|
|
46355
|
+
onZoomIn: onZoomIn,
|
|
46356
|
+
onZoomOut: onZoomOut,
|
|
46357
|
+
scale: scale
|
|
46358
|
+
}), /*#__PURE__*/external_react_["default"].createElement(FullscreenToggleV2, {
|
|
46359
|
+
onFullscreenToggle: onFullscreenToggle
|
|
46360
|
+
}));
|
|
46361
|
+
}
|
|
46184
46362
|
;// ./src/lib/file.js
|
|
46185
46363
|
function file_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
46186
46364
|
function file_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? file_ownKeys(Object(t), !0).forEach(function (r) { file_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : file_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -46505,6 +46683,7 @@ function canDownload(file, previewOptions) {
|
|
|
46505
46683
|
|
|
46506
46684
|
|
|
46507
46685
|
|
|
46686
|
+
|
|
46508
46687
|
const ZOOM_DEFAULT = 1.0;
|
|
46509
46688
|
const ZOOM_MAX = 10;
|
|
46510
46689
|
const ZOOM_MIN = 0.1;
|
|
@@ -46746,7 +46925,8 @@ class TextBaseViewer extends viewers_BaseViewer {
|
|
|
46746
46925
|
if (!this.controls) {
|
|
46747
46926
|
return;
|
|
46748
46927
|
}
|
|
46749
|
-
this.
|
|
46928
|
+
const Controls = this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ) ? TextControlsV2 : TextControls;
|
|
46929
|
+
this.controls.render(/*#__PURE__*/external_react_["default"].createElement(Controls, {
|
|
46750
46930
|
maxScale: ZOOM_MAX,
|
|
46751
46931
|
minScale: ZOOM_MIN,
|
|
46752
46932
|
onFullscreenToggle: this.toggleFullscreen,
|
|
@@ -46791,8 +46971,6 @@ class TextBaseViewer extends viewers_BaseViewer {
|
|
|
46791
46971
|
|
|
46792
46972
|
// EXTERNAL MODULE: external "@box/blueprint-web-assets/tokens/tokens"
|
|
46793
46973
|
var tokens_ = __webpack_require__(8380);
|
|
46794
|
-
// EXTERNAL MODULE: external "@box/blueprint-web"
|
|
46795
|
-
var blueprint_web_ = __webpack_require__(8912);
|
|
46796
46974
|
;// ./src/lib/PrintModal.scss
|
|
46797
46975
|
// extracted by mini-css-extract-plugin
|
|
46798
46976
|
|
|
@@ -47361,6 +47539,17 @@ function MarkdownControls({
|
|
|
47361
47539
|
onFullscreenToggle: onFullscreenToggle
|
|
47362
47540
|
}));
|
|
47363
47541
|
}
|
|
47542
|
+
;// ./src/lib/viewers/text/MarkdownControlsV2.tsx
|
|
47543
|
+
|
|
47544
|
+
|
|
47545
|
+
|
|
47546
|
+
function MarkdownControlsV2({
|
|
47547
|
+
onFullscreenToggle
|
|
47548
|
+
}) {
|
|
47549
|
+
return /*#__PURE__*/external_react_["default"].createElement(controls_bar_ControlsBarV2, null, /*#__PURE__*/external_react_["default"].createElement(FullscreenToggleV2, {
|
|
47550
|
+
onFullscreenToggle: onFullscreenToggle
|
|
47551
|
+
}));
|
|
47552
|
+
}
|
|
47364
47553
|
;// ./src/lib/viewers/text/Markdown.scss
|
|
47365
47554
|
// extracted by mini-css-extract-plugin
|
|
47366
47555
|
|
|
@@ -47372,6 +47561,7 @@ function MarkdownControls({
|
|
|
47372
47561
|
|
|
47373
47562
|
|
|
47374
47563
|
|
|
47564
|
+
|
|
47375
47565
|
const MarkdownViewer_STATIC_URI = `third-party/text/${constants/* TEXT_STATIC_ASSETS_VERSION */.cR}/`;
|
|
47376
47566
|
class MarkdownViewer extends text_PlainTextViewer {
|
|
47377
47567
|
/**
|
|
@@ -47454,7 +47644,8 @@ class MarkdownViewer extends text_PlainTextViewer {
|
|
|
47454
47644
|
if (!this.controls) {
|
|
47455
47645
|
return;
|
|
47456
47646
|
}
|
|
47457
|
-
this.
|
|
47647
|
+
const Controls = this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ) ? MarkdownControlsV2 : MarkdownControls;
|
|
47648
|
+
this.controls.render(/*#__PURE__*/external_react_["default"].createElement(Controls, {
|
|
47458
47649
|
onFullscreenToggle: this.toggleFullscreen
|
|
47459
47650
|
}));
|
|
47460
47651
|
}
|
|
@@ -52781,6 +52972,8 @@ var play_48px = __webpack_require__(3493);
|
|
|
52781
52972
|
const arrow_curved_back_24px_namespaceObject = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M12.707 2.29346C12.3165 1.90293 11.6835 1.90293 11.293 2.29346L8.64648 4.93994C8.06097 5.52574 8.06083 6.47534 8.64648 7.06104L11.293 9.70752C11.6834 10.0976 12.3166 10.0976 12.707 9.70752C13.0974 9.3171 13.0972 8.68399 12.707 8.29346L11.4131 6.99951H12C15.3136 6.99951 17.9998 9.68597 18 12.9995C18 16.3132 15.3137 18.9995 12 18.9995C10.7239 18.9995 9.54372 18.6019 8.57227 17.9243C8.11945 17.6086 7.49569 17.7198 7.17969 18.1724C6.8638 18.6252 6.97502 19.2489 7.42773 19.5649C8.72394 20.4691 10.3016 20.9995 12 20.9995C16.4183 20.9995 20 17.4178 20 12.9995C19.9998 8.5814 16.4182 4.99951 12 4.99951H11.415L12.707 3.70752C13.0975 3.31707 13.0973 2.684 12.707 2.29346ZM3.2793 8.99951C2.67882 8.99951 2.32725 9.26833 2.27832 9.9126L2.09277 12.3882V12.4126C2.06348 12.8862 2.33203 13.2964 2.92285 13.2964C3.31348 13.2964 3.49414 13.2085 3.76758 12.9692C3.99217 12.7691 4.29991 12.5933 4.68555 12.5933C5.35925 12.5933 5.83283 13.0476 5.83301 13.6919C5.83301 14.3511 5.33984 14.8394 4.6709 14.8394C4.10449 14.8394 3.7627 14.5708 3.48926 14.1606C3.27447 13.8923 3.05948 13.7798 2.72266 13.7798C2.26868 13.7798 2.00015 14.0437 2 14.4829C2 14.6537 2.04404 14.8199 2.12207 14.9761C2.4834 15.6938 3.51855 16.2212 4.68555 16.2212C6.36035 16.2212 7.52246 15.2007 7.52246 13.6528C7.52229 12.3151 6.56531 11.3774 5.23242 11.3774C4.49526 11.3774 3.92389 11.6852 3.65039 12.1489H3.61621L3.75293 10.3765H6.44824C6.87793 10.3765 7.15137 10.1079 7.15137 9.68799C7.15121 9.26828 6.87292 8.99951 6.44824 8.99951H3.2793Z\" fill=\"white\"/>\n</svg>\n";
|
|
52782
52973
|
;// ./src/lib/icons/arrow_curved_forward_24px.svg
|
|
52783
52974
|
const arrow_curved_forward_24px_namespaceObject = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M11.293 2.29346C11.6835 1.90293 12.3165 1.90293 12.707 2.29346L15.3535 4.93994C15.939 5.52574 15.9392 6.47535 15.3535 7.06104L12.707 9.70752C12.3166 10.0976 11.6834 10.0976 11.293 9.70752C10.9026 9.31711 10.9028 8.684 11.293 8.29346L12.5869 6.99951H12C8.68642 6.99951 6.00021 9.68598 6 12.9995C6 16.3132 8.68629 18.9995 12 18.9995C13.2761 18.9995 14.4563 18.6019 15.4277 17.9243C15.8805 17.6086 16.5043 17.7198 16.8203 18.1724C17.1362 18.6252 17.025 19.2489 16.5723 19.5649C15.2761 20.4691 13.6984 20.9995 12 20.9995C7.58172 20.9995 4 17.4178 4 12.9995C4.00021 8.58141 7.58185 4.99951 12 4.99951H12.585L11.293 3.70752C10.9025 3.31708 10.9027 2.684 11.293 2.29346ZM20.9258 8.99951C21.3505 8.99951 21.6287 9.26828 21.6289 9.68799C21.6289 10.1079 21.3555 10.3765 20.9258 10.3765H18.2305L18.0938 12.1489H18.1279C18.4014 11.6852 18.9728 11.3774 19.71 11.3774C21.0428 11.3774 21.9998 12.3151 22 13.6528C22 15.2007 20.8379 16.2212 19.1631 16.2212C17.9961 16.2212 16.9609 15.6938 16.5996 14.9761C16.5216 14.8199 16.4775 14.6537 16.4775 14.4829C16.4777 14.0437 16.7462 13.7798 17.2002 13.7798C17.537 13.7798 17.752 13.8923 17.9668 14.1606C18.2402 14.5708 18.582 14.8394 19.1484 14.8394C19.8174 14.8394 20.3105 14.3511 20.3105 13.6919C20.3104 13.0476 19.8368 12.5933 19.1631 12.5933C18.7774 12.5933 18.4697 12.7691 18.2451 12.9692C17.9717 13.2085 17.791 13.2964 17.4004 13.2964C16.8096 13.2964 16.541 12.8862 16.5703 12.4126V12.3882L16.7559 9.9126C16.8048 9.26833 17.1564 8.99951 17.7568 8.99951H20.9258Z\" fill=\"white\"/>\n</svg>\n";
|
|
52975
|
+
// EXTERNAL MODULE: ./src/lib/viewers/controls/media/MediaLoadingIndicator.tsx + 1 modules
|
|
52976
|
+
var MediaLoadingIndicator = __webpack_require__(4301);
|
|
52784
52977
|
// EXTERNAL MODULE: ./src/lib/viewers/controls/media/PlayOverlayIcon.tsx
|
|
52785
52978
|
var PlayOverlayIcon = __webpack_require__(2048);
|
|
52786
52979
|
// EXTERNAL MODULE: ./src/lib/viewers/controls/media/utils.ts
|
|
@@ -52838,6 +53031,7 @@ function VideoPreloader_toPrimitive(t, r) { if ("object" != typeof t || !t) retu
|
|
|
52838
53031
|
|
|
52839
53032
|
|
|
52840
53033
|
|
|
53034
|
+
|
|
52841
53035
|
class VideoPreloader extends (events_default()) {
|
|
52842
53036
|
/**
|
|
52843
53037
|
* [constructor]
|
|
@@ -52874,6 +53068,8 @@ class VideoPreloader extends (events_default()) {
|
|
|
52874
53068
|
VideoPreloader_defineProperty(this, "showPreloadPromise", null);
|
|
52875
53069
|
/** @property {Root|undefined} - React root for the Blueprint play overlay */
|
|
52876
53070
|
VideoPreloader_defineProperty(this, "playOverlayRoot", void 0);
|
|
53071
|
+
/** @property {Root|undefined} - React root for the Blueprint loading indicator */
|
|
53072
|
+
VideoPreloader_defineProperty(this, "loadingRoot", void 0);
|
|
52877
53073
|
/**
|
|
52878
53074
|
* Cleans up preload DOM.
|
|
52879
53075
|
*
|
|
@@ -52882,6 +53078,10 @@ class VideoPreloader extends (events_default()) {
|
|
|
52882
53078
|
*/
|
|
52883
53079
|
VideoPreloader_defineProperty(this, "cleanupPreload", () => {
|
|
52884
53080
|
this.unmountBlueprintPlayOverlay();
|
|
53081
|
+
if (this.loadingRoot) {
|
|
53082
|
+
this.loadingRoot.unmount();
|
|
53083
|
+
this.loadingRoot = undefined;
|
|
53084
|
+
}
|
|
52885
53085
|
if (this.wrapperEl) {
|
|
52886
53086
|
if (this.wrapperEl.parentNode) {
|
|
52887
53087
|
this.wrapperEl.parentNode.removeChild(this.wrapperEl);
|
|
@@ -53185,7 +53385,12 @@ class VideoPreloader extends (events_default()) {
|
|
|
53185
53385
|
this.imageClickHandler = undefined;
|
|
53186
53386
|
}
|
|
53187
53387
|
this.wrapperEl.style.cursor = '';
|
|
53188
|
-
if (this.placeholderEl) {
|
|
53388
|
+
if (this.placeholderEl && this.preloadOptions?.isBlueprintEnabled) {
|
|
53389
|
+
if (!this.loadingRoot) {
|
|
53390
|
+
this.loadingRoot = (0,client_.createRoot)(this.placeholderEl.appendChild(document.createElement('div')));
|
|
53391
|
+
this.loadingRoot.render(/*#__PURE__*/external_react_["default"].createElement(MediaLoadingIndicator/* default */.A, null));
|
|
53392
|
+
}
|
|
53393
|
+
} else if (this.placeholderEl) {
|
|
53189
53394
|
const spinner = document.createElement('div');
|
|
53190
53395
|
spinner.className = 'bp-media-buffering-spinner';
|
|
53191
53396
|
this.placeholderEl.appendChild(spinner);
|
|
@@ -53386,13 +53591,16 @@ function VideoBaseViewer_toPrimitive(t, r) { if ("object" != typeof t || !t) ret
|
|
|
53386
53591
|
|
|
53387
53592
|
|
|
53388
53593
|
|
|
53594
|
+
|
|
53595
|
+
|
|
53596
|
+
|
|
53389
53597
|
const MOUSE_MOVE_TIMEOUT_IN_MILLIS = 1000;
|
|
53390
53598
|
const CLASS_PLAY_BUTTON = 'bp-media-play-button';
|
|
53391
53599
|
const CLASS_PLAY_CONTAINER = 'bp-media-overlay-play-container';
|
|
53392
53600
|
const CLASS_PLAY_CONTAINER_PLAY_BUTTON = 'bp-media-overlay-play-button';
|
|
53393
53601
|
const CLASS_SEEK_BUTTON = 'bp-media-overlay-seek-button';
|
|
53394
53602
|
const SMALL_VIDEO_WIDTH_THRESHOLD = 580;
|
|
53395
|
-
const SPINNER_HALF_SIZE = 40; // Half of the 80px spinner height (
|
|
53603
|
+
const SPINNER_HALF_SIZE = 40; // Half of the 80px spinner height (_mediaBase.scss and MediaLoadingIndicator.scss)
|
|
53396
53604
|
const VIDEO_ANNOTATIONS_ENABLED = 'videoAnnotations.enabled';
|
|
53397
53605
|
const DISCOVERABILITY_STATES = [AnnotationState.DRAWING, AnnotationState.NONE, AnnotationState.REGION_TEMP];
|
|
53398
53606
|
class VideoBaseViewer extends media_MediaBaseViewer {
|
|
@@ -53503,11 +53711,21 @@ class VideoBaseViewer extends media_MediaBaseViewer {
|
|
|
53503
53711
|
|
|
53504
53712
|
// Buffering spinner
|
|
53505
53713
|
this.bufferingSpinnerEl = this.mediaContainerEl.appendChild(document.createElement('div'));
|
|
53506
|
-
this.bufferingSpinnerEl.classList.add('bp-media-buffering-spinner');
|
|
53507
53714
|
this.bufferingSpinnerEl.classList.add(constants/* CLASS_HIDDEN */.zX);
|
|
53508
|
-
|
|
53509
|
-
|
|
53510
|
-
|
|
53715
|
+
// Shift up by half the control bar + half the spinner to visually center above the controls
|
|
53716
|
+
const spinnerMarginTop = this.useReactControls() && !this.isVideoPlayerV2 ? `-${constants/* VIDEO_PLAYER_CONTROL_BAR_HEIGHT */.qL / 2 + SPINNER_HALF_SIZE}px` : undefined;
|
|
53717
|
+
if (this.isBlueprintMediaControlsEnabled()) {
|
|
53718
|
+
this.bufferingSpinnerRoot = (0,client_.createRoot)(this.bufferingSpinnerEl);
|
|
53719
|
+
this.bufferingSpinnerRoot.render(/*#__PURE__*/external_react_["default"].createElement(MediaLoadingIndicator/* default */.A, {
|
|
53720
|
+
style: {
|
|
53721
|
+
marginTop: spinnerMarginTop
|
|
53722
|
+
}
|
|
53723
|
+
}));
|
|
53724
|
+
} else {
|
|
53725
|
+
this.bufferingSpinnerEl.classList.add('bp-media-buffering-spinner');
|
|
53726
|
+
if (spinnerMarginTop) {
|
|
53727
|
+
this.bufferingSpinnerEl.style.marginTop = spinnerMarginTop;
|
|
53728
|
+
}
|
|
53511
53729
|
}
|
|
53512
53730
|
this.lowerLights();
|
|
53513
53731
|
}
|
|
@@ -53766,6 +53984,10 @@ class VideoBaseViewer extends media_MediaBaseViewer {
|
|
|
53766
53984
|
if (this.seekBackwardButtonEl) {
|
|
53767
53985
|
this.seekBackwardButtonEl.removeEventListener('click', () => this.movePlayback(false, 5));
|
|
53768
53986
|
}
|
|
53987
|
+
if (this.bufferingSpinnerRoot) {
|
|
53988
|
+
this.bufferingSpinnerRoot.unmount();
|
|
53989
|
+
this.bufferingSpinnerRoot = undefined;
|
|
53990
|
+
}
|
|
53769
53991
|
this.bufferingSpinnerEl = null;
|
|
53770
53992
|
super.destroy();
|
|
53771
53993
|
}
|
|
@@ -53952,10 +54174,32 @@ class VideoBaseViewer extends media_MediaBaseViewer {
|
|
|
53952
54174
|
}
|
|
53953
54175
|
|
|
53954
54176
|
/**
|
|
53955
|
-
*
|
|
54177
|
+
* Shows the player's buffering indicator in place of the page-level crawler when Blueprint media
|
|
54178
|
+
* controls are on, so quality and track switches use the same loading state as buffering.
|
|
54179
|
+
*
|
|
54180
|
+
* @override
|
|
54181
|
+
* @return {void}
|
|
53956
54182
|
*/
|
|
53957
54183
|
showLoadingIcon() {
|
|
53958
|
-
|
|
54184
|
+
if (!this.isBlueprintMediaControlsEnabled()) {
|
|
54185
|
+
super.showLoadingIcon();
|
|
54186
|
+
return;
|
|
54187
|
+
}
|
|
54188
|
+
if (this.containerEl && this.mediaEl && !this.mediaEl.paused && !this.mediaEl.ended) {
|
|
54189
|
+
this.showBufferingSpinner();
|
|
54190
|
+
this.hidePlayButton();
|
|
54191
|
+
}
|
|
54192
|
+
}
|
|
54193
|
+
|
|
54194
|
+
/**
|
|
54195
|
+
* @override
|
|
54196
|
+
* @return {void}
|
|
54197
|
+
*/
|
|
54198
|
+
hideLoadingIcon() {
|
|
54199
|
+
super.hideLoadingIcon();
|
|
54200
|
+
if (this.isBlueprintMediaControlsEnabled()) {
|
|
54201
|
+
this.hideBufferingSpinner();
|
|
54202
|
+
}
|
|
53959
54203
|
}
|
|
53960
54204
|
|
|
53961
54205
|
/**
|
|
@@ -57705,26 +57949,6 @@ const ANNOTATION_MODE_ICONS = {
|
|
|
57705
57949
|
[AnnotationMode.REGION]: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_SquarePlus_c11758f1_default__
|
|
57706
57950
|
};
|
|
57707
57951
|
/* harmony default export */ const annotationModeIcons = (ANNOTATION_MODE_ICONS);
|
|
57708
|
-
;// ./src/lib/viewers/controls/controls-bar/ControlsBarV2.tsx
|
|
57709
|
-
const ControlsBarV2_excluded = ["children"];
|
|
57710
|
-
function ControlsBarV2_extends() { return ControlsBarV2_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; }, ControlsBarV2_extends.apply(null, arguments); }
|
|
57711
|
-
function ControlsBarV2_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = ControlsBarV2_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; }
|
|
57712
|
-
function ControlsBarV2_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; }
|
|
57713
|
-
|
|
57714
|
-
|
|
57715
|
-
function ControlsBarV2(_ref) {
|
|
57716
|
-
let {
|
|
57717
|
-
children
|
|
57718
|
-
} = _ref,
|
|
57719
|
-
rest = ControlsBarV2_objectWithoutProperties(_ref, ControlsBarV2_excluded);
|
|
57720
|
-
if (!children) {
|
|
57721
|
-
return null;
|
|
57722
|
-
}
|
|
57723
|
-
return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Root, ControlsBarV2_extends({
|
|
57724
|
-
colorScheme: "dark",
|
|
57725
|
-
"data-testid": "bp-ControlsBar"
|
|
57726
|
-
}, rest), children);
|
|
57727
|
-
}
|
|
57728
57952
|
;// ./src/lib/viewers/controls/tooltip/ToggleTooltipV2.scss
|
|
57729
57953
|
// extracted by mini-css-extract-plugin
|
|
57730
57954
|
|
|
@@ -57764,7 +57988,7 @@ function AnnotationsPaletteV2({
|
|
|
57764
57988
|
return /*#__PURE__*/external_react_["default"].createElement("div", {
|
|
57765
57989
|
className: "bp-AnnotationsPaletteV2",
|
|
57766
57990
|
"data-testid": "bp-AnnotationsPaletteV2"
|
|
57767
|
-
}, /*#__PURE__*/external_react_["default"].createElement(
|
|
57991
|
+
}, /*#__PURE__*/external_react_["default"].createElement(controls_bar_ControlsBarV2, null, children));
|
|
57768
57992
|
}
|
|
57769
57993
|
function Modes({
|
|
57770
57994
|
annotationMode,
|
|
@@ -57986,44 +58210,6 @@ function FindBarToggleV2({
|
|
|
57986
58210
|
icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Search_ef3e4aba_default__
|
|
57987
58211
|
})));
|
|
57988
58212
|
}
|
|
57989
|
-
;// external "@box/blueprint-web-assets/icons/Medium/ArrowsMaximize"
|
|
57990
|
-
|
|
57991
|
-
;// external "@box/blueprint-web-assets/icons/Medium/ArrowsMinimize"
|
|
57992
|
-
|
|
57993
|
-
;// ./src/lib/viewers/controls/fullscreen/FullscreenToggleV2.tsx
|
|
57994
|
-
/* provided dependency */ var FullscreenToggleV2_ = __webpack_require__(441)["Tl"];
|
|
57995
|
-
const FullscreenToggleV2_excluded = ["onFullscreenToggle"];
|
|
57996
|
-
function FullscreenToggleV2_extends() { return FullscreenToggleV2_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; }, FullscreenToggleV2_extends.apply(null, arguments); }
|
|
57997
|
-
function FullscreenToggleV2_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = FullscreenToggleV2_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; }
|
|
57998
|
-
function FullscreenToggleV2_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; }
|
|
57999
|
-
|
|
58000
|
-
|
|
58001
|
-
|
|
58002
|
-
|
|
58003
|
-
|
|
58004
|
-
function FullscreenToggleV2(_ref) {
|
|
58005
|
-
let {
|
|
58006
|
-
onFullscreenToggle
|
|
58007
|
-
} = _ref,
|
|
58008
|
-
rest = FullscreenToggleV2_objectWithoutProperties(_ref, FullscreenToggleV2_excluded);
|
|
58009
|
-
const isFullscreen = useFullscreen();
|
|
58010
|
-
const icon = isFullscreen ? __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ArrowsMinimize_35faab95_default__ : __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ArrowsMaximize_12b9ae40_default__;
|
|
58011
|
-
const label = isFullscreen ? FullscreenToggleV2_('exit_fullscreen') : FullscreenToggleV2_('enter_fullscreen');
|
|
58012
|
-
const handleClick = ({
|
|
58013
|
-
currentTarget
|
|
58014
|
-
}) => {
|
|
58015
|
-
onFullscreenToggle(!isFullscreen, currentTarget);
|
|
58016
|
-
};
|
|
58017
|
-
return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Tooltip, {
|
|
58018
|
-
content: label
|
|
58019
|
-
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Button, FullscreenToggleV2_extends({
|
|
58020
|
-
"aria-label": label,
|
|
58021
|
-
"data-resin-target": "fullscreen",
|
|
58022
|
-
onClick: handleClick
|
|
58023
|
-
}, rest), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Icon, {
|
|
58024
|
-
icon: icon
|
|
58025
|
-
})));
|
|
58026
|
-
}
|
|
58027
58213
|
;// external "@box/blueprint-web-assets/icons/Medium/GridView"
|
|
58028
58214
|
|
|
58029
58215
|
;// ./src/lib/viewers/controls/gallery/GalleryToggleV2.tsx
|
|
@@ -58263,58 +58449,6 @@ function ThumbnailsToggleV2({
|
|
|
58263
58449
|
value: "thumbnails"
|
|
58264
58450
|
}))));
|
|
58265
58451
|
}
|
|
58266
|
-
;// external "@box/blueprint-web-assets/icons/Medium/Minus"
|
|
58267
|
-
|
|
58268
|
-
;// external "@box/blueprint-web-assets/icons/Medium/Plus"
|
|
58269
|
-
|
|
58270
|
-
;// ./src/lib/viewers/controls/zoom/ZoomControlsV2.tsx
|
|
58271
|
-
/* provided dependency */ var ZoomControlsV2_ = __webpack_require__(441)["Tl"];
|
|
58272
|
-
|
|
58273
|
-
|
|
58274
|
-
|
|
58275
|
-
|
|
58276
|
-
|
|
58277
|
-
|
|
58278
|
-
function ZoomControlsV2({
|
|
58279
|
-
maxScale = MAX_SCALE,
|
|
58280
|
-
minScale = MIN_SCALE,
|
|
58281
|
-
onZoomIn,
|
|
58282
|
-
onZoomOut,
|
|
58283
|
-
resinTargetZoomIn = 'zoomIn',
|
|
58284
|
-
resinTargetZoomOut = 'zoomOut',
|
|
58285
|
-
scale = 1
|
|
58286
|
-
}) {
|
|
58287
|
-
const currentScale = Math.round((scale + Number.EPSILON) * 100) / 100;
|
|
58288
|
-
const maxScaleValue = isFinite_default()(maxScale) ? Math.min(maxScale, MAX_SCALE) : MAX_SCALE;
|
|
58289
|
-
const minScaleValue = isFinite_default()(minScale) ? Math.max(minScale, MIN_SCALE) : MIN_SCALE;
|
|
58290
|
-
return /*#__PURE__*/external_react_["default"].createElement(external_react_["default"].Fragment, null, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Tooltip, {
|
|
58291
|
-
content: ZoomControlsV2_('zoom_out')
|
|
58292
|
-
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Button, {
|
|
58293
|
-
"aria-label": ZoomControlsV2_('zoom_out'),
|
|
58294
|
-
"data-resin-target": resinTargetZoomOut,
|
|
58295
|
-
"data-testid": "bp-ZoomControls-out",
|
|
58296
|
-
disabled: currentScale <= minScaleValue,
|
|
58297
|
-
onClick: onZoomOut
|
|
58298
|
-
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Icon, {
|
|
58299
|
-
icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Minus_cc9df143_default__
|
|
58300
|
-
}))), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Text, {
|
|
58301
|
-
as: "span",
|
|
58302
|
-
color: "textOnDarkDefault",
|
|
58303
|
-
"data-testid": "bp-ZoomControls-current",
|
|
58304
|
-
title: ZoomControlsV2_('zoom_current_scale'),
|
|
58305
|
-
variant: "bodyDefaultSemibold"
|
|
58306
|
-
}, `${Math.round(currentScale * 100)}%`), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Tooltip, {
|
|
58307
|
-
content: ZoomControlsV2_('zoom_in')
|
|
58308
|
-
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Button, {
|
|
58309
|
-
"aria-label": ZoomControlsV2_('zoom_in'),
|
|
58310
|
-
"data-resin-target": resinTargetZoomIn,
|
|
58311
|
-
"data-testid": "bp-ZoomControls-in",
|
|
58312
|
-
disabled: currentScale >= maxScaleValue,
|
|
58313
|
-
onClick: onZoomIn
|
|
58314
|
-
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Icon, {
|
|
58315
|
-
icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Plus_aaa7b14f_default__
|
|
58316
|
-
}))));
|
|
58317
|
-
}
|
|
58318
58452
|
;// ./src/lib/viewers/doc/DocControlsV2.tsx
|
|
58319
58453
|
|
|
58320
58454
|
|
|
@@ -58388,7 +58522,7 @@ function DocControlsV2({
|
|
|
58388
58522
|
};
|
|
58389
58523
|
return /*#__PURE__*/external_react_["default"].createElement(ExperiencesProvider, {
|
|
58390
58524
|
experiences: experiences
|
|
58391
|
-
}, /*#__PURE__*/external_react_["default"].createElement(
|
|
58525
|
+
}, /*#__PURE__*/external_react_["default"].createElement(controls_bar_ControlsBarV2, null, !isGalleryOpen && /*#__PURE__*/external_react_["default"].createElement(external_react_["default"].Fragment, null, /*#__PURE__*/external_react_["default"].createElement(ThumbnailsToggleV2, {
|
|
58392
58526
|
isThumbnailsOpen: isThumbnailsOpen,
|
|
58393
58527
|
onThumbnailsToggle: onThumbnailsToggle
|
|
58394
58528
|
}), /*#__PURE__*/external_react_["default"].createElement(FindBarToggleV2, {
|
|
@@ -59268,10 +59402,10 @@ class Thumbnail {
|
|
|
59268
59402
|
}
|
|
59269
59403
|
|
|
59270
59404
|
/**
|
|
59271
|
-
*
|
|
59405
|
+
* Gets the cached thumbnail entry for an item
|
|
59272
59406
|
*
|
|
59273
59407
|
* @param {number} itemIndex - the item index for the overall list (0 indexed)
|
|
59274
|
-
* @return {
|
|
59408
|
+
* @return {{ image?: HTMLElement, inProgress: boolean } | null} - the cache entry, or null if none exists
|
|
59275
59409
|
*/
|
|
59276
59410
|
getImageFromCache(itemIndex) {
|
|
59277
59411
|
return this.thumbnailImageCache?.get(itemIndex) || null;
|
|
@@ -61975,6 +62109,156 @@ class ThumbnailsSidebar {
|
|
|
61975
62109
|
}
|
|
61976
62110
|
}
|
|
61977
62111
|
/* harmony default export */ const lib_ThumbnailsSidebar = (ThumbnailsSidebar);
|
|
62112
|
+
// EXTERNAL MODULE: external "react-dom"
|
|
62113
|
+
var external_react_dom_ = __webpack_require__(7516);
|
|
62114
|
+
;// ./src/lib/ThumbnailsSidebarV2.scss
|
|
62115
|
+
// extracted by mini-css-extract-plugin
|
|
62116
|
+
|
|
62117
|
+
;// ./src/lib/ThumbnailsSidebarV2.tsx
|
|
62118
|
+
/* provided dependency */ var ThumbnailsSidebarV2_ = __webpack_require__(441)["Tl"];
|
|
62119
|
+
function ThumbnailsSidebarV2_defineProperty(e, r, t) { return (r = ThumbnailsSidebarV2_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
62120
|
+
function ThumbnailsSidebarV2_toPropertyKey(t) { var i = ThumbnailsSidebarV2_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
62121
|
+
function ThumbnailsSidebarV2_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
62122
|
+
|
|
62123
|
+
|
|
62124
|
+
|
|
62125
|
+
|
|
62126
|
+
|
|
62127
|
+
|
|
62128
|
+
|
|
62129
|
+
|
|
62130
|
+
|
|
62131
|
+
const CLASS_SIDEBAR = 'bp-ThumbnailsSidebarV2';
|
|
62132
|
+
const CLASS_ITEM = 'bp-ThumbnailsSidebarV2-item';
|
|
62133
|
+
const CLASS_ITEM_SELECTED = 'bp-ThumbnailsSidebarV2-item--selected';
|
|
62134
|
+
const CLASS_OVERLAY = 'bp-ThumbnailsSidebarV2-overlay';
|
|
62135
|
+
const CLASS_PAGE = 'bp-ThumbnailsSidebarV2-page';
|
|
62136
|
+
const ThumbnailOverlay = /*#__PURE__*/external_react_["default"].memo(function ThumbnailOverlay({
|
|
62137
|
+
pageNumber
|
|
62138
|
+
}) {
|
|
62139
|
+
return /*#__PURE__*/external_react_["default"].createElement(external_react_["default"].Fragment, null, /*#__PURE__*/external_react_["default"].createElement("span", {
|
|
62140
|
+
className: "bp-ThumbnailsSidebarV2-ghost"
|
|
62141
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Ghost, {
|
|
62142
|
+
borderRadius: tokens_.bpRadius03,
|
|
62143
|
+
"data-testid": "bp-ThumbnailsSidebarV2-ghost",
|
|
62144
|
+
height: "100%",
|
|
62145
|
+
variant: "rectangle",
|
|
62146
|
+
width: "100%"
|
|
62147
|
+
})), /*#__PURE__*/external_react_["default"].createElement("span", {
|
|
62148
|
+
className: "bp-ThumbnailsSidebarV2-pageNumber"
|
|
62149
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Text, {
|
|
62150
|
+
as: "span",
|
|
62151
|
+
color: "textOnDarkDefault",
|
|
62152
|
+
variant: "bodyDefault"
|
|
62153
|
+
}, `${pageNumber}`)));
|
|
62154
|
+
});
|
|
62155
|
+
function setSelected(thumbnailEl, isSelected) {
|
|
62156
|
+
thumbnailEl.classList.toggle(CLASS_ITEM_SELECTED, isSelected);
|
|
62157
|
+
if (isSelected) {
|
|
62158
|
+
thumbnailEl.setAttribute('aria-current', 'true');
|
|
62159
|
+
} else {
|
|
62160
|
+
thumbnailEl.removeAttribute('aria-current');
|
|
62161
|
+
}
|
|
62162
|
+
}
|
|
62163
|
+
const getPageNumber = thumbnailEl => parseInt(thumbnailEl.dataset.bpPageNum || '', 10);
|
|
62164
|
+
class ThumbnailsSidebarV2 extends lib_ThumbnailsSidebar {
|
|
62165
|
+
constructor(element, pdfViewer, preloader) {
|
|
62166
|
+
super(element, pdfViewer, preloader);
|
|
62167
|
+
ThumbnailsSidebarV2_defineProperty(this, "overlayRoot", (0,client_.createRoot)(document.createElement('div')));
|
|
62168
|
+
ThumbnailsSidebarV2_defineProperty(this, "isOverlayRenderPending", false);
|
|
62169
|
+
ThumbnailsSidebarV2_defineProperty(this, "isDestroyed", false);
|
|
62170
|
+
element.classList.add(CLASS_SIDEBAR);
|
|
62171
|
+
}
|
|
62172
|
+
destroy() {
|
|
62173
|
+
this.isDestroyed = true;
|
|
62174
|
+
this.overlayRoot.unmount();
|
|
62175
|
+
this.anchorEl.classList.remove(CLASS_SIDEBAR);
|
|
62176
|
+
super.destroy();
|
|
62177
|
+
}
|
|
62178
|
+
applyCurrentPageSelection() {
|
|
62179
|
+
this.currentThumbnails.forEach(thumbnailEl => {
|
|
62180
|
+
if (thumbnailEl) {
|
|
62181
|
+
setSelected(thumbnailEl, getPageNumber(thumbnailEl) === this.currentPage);
|
|
62182
|
+
}
|
|
62183
|
+
});
|
|
62184
|
+
}
|
|
62185
|
+
createPlaceholderThumbnail(itemIndex) {
|
|
62186
|
+
const pageNumber = itemIndex + 1;
|
|
62187
|
+
const thumbnailEl = document.createElement('div');
|
|
62188
|
+
thumbnailEl.className = CLASS_ITEM;
|
|
62189
|
+
thumbnailEl.dataset.bpPageNum = `${pageNumber}`;
|
|
62190
|
+
thumbnailEl.setAttribute('role', 'button');
|
|
62191
|
+
thumbnailEl.setAttribute('aria-label', (0,util/* replacePlaceholders */.Lb)(ThumbnailsSidebarV2_('page_gallery_tile'), [`${pageNumber}`]));
|
|
62192
|
+
const overlayEl = document.createElement('span');
|
|
62193
|
+
overlayEl.className = CLASS_OVERLAY;
|
|
62194
|
+
overlayEl.setAttribute('aria-hidden', 'true');
|
|
62195
|
+
thumbnailEl.appendChild(overlayEl);
|
|
62196
|
+
|
|
62197
|
+
// Must stay last: ThumbnailsSidebar appends page images to lastChild.
|
|
62198
|
+
const pageEl = document.createElement('div');
|
|
62199
|
+
pageEl.className = CLASS_PAGE;
|
|
62200
|
+
thumbnailEl.appendChild(pageEl);
|
|
62201
|
+
setSelected(thumbnailEl, pageNumber === this.currentPage);
|
|
62202
|
+
const cachedImage = this.thumbnail.getImageFromCache(itemIndex);
|
|
62203
|
+
if (cachedImage?.image && !cachedImage.inProgress) {
|
|
62204
|
+
pageEl.appendChild(cachedImage.image);
|
|
62205
|
+
thumbnailEl.classList.add(CLASS_BOX_PREVIEW_THUMBNAIL_IMAGE_LOADED);
|
|
62206
|
+
}
|
|
62207
|
+
this.currentThumbnails.push(thumbnailEl);
|
|
62208
|
+
this.renderOverlays();
|
|
62209
|
+
return thumbnailEl;
|
|
62210
|
+
}
|
|
62211
|
+
generateThumbnailImages(listInfo) {
|
|
62212
|
+
super.generateThumbnailImages(listInfo);
|
|
62213
|
+
this.renderOverlays();
|
|
62214
|
+
}
|
|
62215
|
+
refresh() {
|
|
62216
|
+
const result = super.refresh();
|
|
62217
|
+
this.renderOverlays();
|
|
62218
|
+
return result;
|
|
62219
|
+
}
|
|
62220
|
+
thumbnailClickHandler(event) {
|
|
62221
|
+
const thumbnailEl = event.target.closest(`.${CLASS_ITEM}`);
|
|
62222
|
+
if (!thumbnailEl) {
|
|
62223
|
+
return;
|
|
62224
|
+
}
|
|
62225
|
+
if (this.onThumbnailSelect) {
|
|
62226
|
+
this.onThumbnailSelect(getPageNumber(thumbnailEl));
|
|
62227
|
+
}
|
|
62228
|
+
this.anchorEl.focus();
|
|
62229
|
+
event.preventDefault();
|
|
62230
|
+
event.stopImmediatePropagation();
|
|
62231
|
+
}
|
|
62232
|
+
renderOverlays() {
|
|
62233
|
+
if (this.isDestroyed || this.isOverlayRenderPending) {
|
|
62234
|
+
return;
|
|
62235
|
+
}
|
|
62236
|
+
this.isOverlayRenderPending = true;
|
|
62237
|
+
// Waits for VirtualScroller to attach the rows it is building.
|
|
62238
|
+
queueMicrotask(() => {
|
|
62239
|
+
this.isOverlayRenderPending = false;
|
|
62240
|
+
this.flushOverlays();
|
|
62241
|
+
});
|
|
62242
|
+
}
|
|
62243
|
+
flushOverlays() {
|
|
62244
|
+
if (this.isDestroyed) {
|
|
62245
|
+
return;
|
|
62246
|
+
}
|
|
62247
|
+
const portals = this.currentThumbnails.map(thumbnailEl => {
|
|
62248
|
+
const hostEl = thumbnailEl?.isConnected && thumbnailEl.querySelector(`.${CLASS_OVERLAY}`);
|
|
62249
|
+
if (!thumbnailEl || !hostEl) {
|
|
62250
|
+
return null;
|
|
62251
|
+
}
|
|
62252
|
+
const pageNumber = getPageNumber(thumbnailEl);
|
|
62253
|
+
return /*#__PURE__*/(0,external_react_dom_.createPortal)(/*#__PURE__*/external_react_["default"].createElement(ThumbnailOverlay, {
|
|
62254
|
+
pageNumber: pageNumber
|
|
62255
|
+
}), hostEl, `${pageNumber}`);
|
|
62256
|
+
});
|
|
62257
|
+
this.overlayRoot.render(/*#__PURE__*/external_react_["default"].createElement(BlueprintProviders/* default */.A, {
|
|
62258
|
+
container: this.anchorEl
|
|
62259
|
+
}, portals));
|
|
62260
|
+
}
|
|
62261
|
+
}
|
|
61978
62262
|
;// ./src/lib/viewers/doc/docAssets.js
|
|
61979
62263
|
|
|
61980
62264
|
const docAssets_STATIC_URI = `third-party/doc/${constants/* DOC_STATIC_ASSETS_VERSION */.r8}`;
|
|
@@ -62018,6 +62302,7 @@ function DocBaseViewer_toPrimitive(t, r) { if ("object" != typeof t || !t) retur
|
|
|
62018
62302
|
|
|
62019
62303
|
|
|
62020
62304
|
|
|
62305
|
+
|
|
62021
62306
|
|
|
62022
62307
|
|
|
62023
62308
|
const DOC_FIRST_PAGES_ENABLED = 'docFirstPages.enabled';
|
|
@@ -63563,7 +63848,8 @@ class DocBaseViewer extends viewers_BaseViewer {
|
|
|
63563
63848
|
// if the preloader has initialized the thumbnails sidebar don't reinitialize it when the pdf loads
|
|
63564
63849
|
// we only need one thumbnail sidebar for both the preloader and the pdfViewer
|
|
63565
63850
|
if (!this.thumbnailsSidebar) {
|
|
63566
|
-
|
|
63851
|
+
const Sidebar = this.featureEnabled(constants/* BLUEPRINT_MIGRATION_SUPPORTING_UI */.Ed) ? ThumbnailsSidebarV2 : lib_ThumbnailsSidebar;
|
|
63852
|
+
this.thumbnailsSidebar = new Sidebar(this.thumbnailsSidebarEl, this.pdfViewer, this.preloader);
|
|
63567
63853
|
this.thumbnailsSidebar.init({
|
|
63568
63854
|
currentPage: this.pdfViewer?.currentPageNumber,
|
|
63569
63855
|
isOpen: this.shouldThumbnailsBeToggled(),
|
|
@@ -69328,6 +69614,9 @@ swf_SWFLoader, video360_Video360Loader, media_MediaLoader, image360_Image360Load
|
|
|
69328
69614
|
|
|
69329
69615
|
;// external "@box/blueprint-web-assets/icons/Medium/Trash"
|
|
69330
69616
|
|
|
69617
|
+
;// ./src/lib/ComparisonBanner.scss
|
|
69618
|
+
// extracted by mini-css-extract-plugin
|
|
69619
|
+
|
|
69331
69620
|
;// ./src/lib/ComparisonBanner.tsx
|
|
69332
69621
|
/* provided dependency */ var ComparisonBanner_ = __webpack_require__(441)["Tl"];
|
|
69333
69622
|
function ComparisonBanner_defineProperty(e, r, t) { return (r = ComparisonBanner_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -69343,6 +69632,8 @@ function ComparisonBanner_toPrimitive(t, r) { if ("object" != typeof t || !t) re
|
|
|
69343
69632
|
|
|
69344
69633
|
|
|
69345
69634
|
|
|
69635
|
+
|
|
69636
|
+
|
|
69346
69637
|
function formatComparisonTimestamp(iso, locale) {
|
|
69347
69638
|
if (!iso) {
|
|
69348
69639
|
return '';
|
|
@@ -69375,6 +69666,9 @@ function ComparisonBanner({
|
|
|
69375
69666
|
const versionNumber = file.version_number != null && file.version_number !== '' ? String(file.version_number) : '';
|
|
69376
69667
|
const timestamp = formatComparisonTimestamp(file.modified_at, locale);
|
|
69377
69668
|
const author = getComparisonBannerAuthor(file);
|
|
69669
|
+
// When "Open Full Preview" is the only action, the close button covers it, so skip the menu
|
|
69670
|
+
const showMenu = !!(onMakeCurrent || onDownload || onDelete);
|
|
69671
|
+
const showClose = !!onOpenFullPreview;
|
|
69378
69672
|
if (!versionNumber && !timestamp && !author) {
|
|
69379
69673
|
return null;
|
|
69380
69674
|
}
|
|
@@ -69400,7 +69694,7 @@ function ComparisonBanner({
|
|
|
69400
69694
|
role: "presentation"
|
|
69401
69695
|
}, /*#__PURE__*/external_react_["default"].createElement(BlueprintProviders/* default */.A, {
|
|
69402
69696
|
container: menuContainer
|
|
69403
|
-
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Root, null, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Trigger, {
|
|
69697
|
+
}, showMenu && /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Root, null, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Trigger, {
|
|
69404
69698
|
asChild: true
|
|
69405
69699
|
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.IconButton, {
|
|
69406
69700
|
"aria-label": ComparisonBanner_('comparison_banner_actions'),
|
|
@@ -69441,7 +69735,17 @@ function ComparisonBanner({
|
|
|
69441
69735
|
icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Trash_28211f44_default__
|
|
69442
69736
|
}), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Item.MainContent, {
|
|
69443
69737
|
label: ComparisonBanner_('comparison_banner_delete')
|
|
69444
|
-
}))))
|
|
69738
|
+
})))), showMenu && showClose && /*#__PURE__*/external_react_["default"].createElement("span", {
|
|
69739
|
+
"aria-hidden": "true",
|
|
69740
|
+
className: "bp-version-banner-divider"
|
|
69741
|
+
}), showClose && /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.IconButton, {
|
|
69742
|
+
"aria-label": ComparisonBanner_('comparison_banner_close'),
|
|
69743
|
+
"data-target-id": "ComparisonBanner-close",
|
|
69744
|
+
icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_XMark_07fbe0f0_default__,
|
|
69745
|
+
onClick: onOpenFullPreview,
|
|
69746
|
+
size: "small",
|
|
69747
|
+
variant: isOnDark ? 'on-dark' : 'default'
|
|
69748
|
+
}))));
|
|
69445
69749
|
}
|
|
69446
69750
|
class ComparisonBannerRoot {
|
|
69447
69751
|
constructor(containerEl) {
|
|
@@ -69748,6 +70052,100 @@ class LoadingIcon {
|
|
|
69748
70052
|
}
|
|
69749
70053
|
;// ./src/lib/shell.html
|
|
69750
70054
|
const shell_namespaceObject = "<div class=\"bp-container\">\n <div class=\"bp-header-container bp-is-hidden\">\n <div>\n <span class=\"bp-default-logo\">\n <svg height=\"25\" width=\"45\" viewBox=\"0 0 98 52\" focusable=\"false\">\n <path\n d=\"M95.34 44.7c1.1 1.53.8 3.66-.75 4.8-1.56 1.13-3.74.84-4.93-.64l-7.8-10.23-7.82 10.23c-1.2 1.48-3.36 1.77-4.9.63-1.55-1.15-1.87-3.28-.75-4.8l9.06-11.86L68.4 21c-1.1-1.54-.8-3.67.75-4.8 1.55-1.14 3.72-.85 4.9.63l7.82 10.23 7.8-10.23c1.2-1.48 3.38-1.77 4.92-.63 1.52 1.13 1.84 3.26.73 4.8L86.3 32.84l9.04 11.85zM53.9 43.22c-5.86 0-10.6-4.65-10.6-10.4 0-5.72 4.74-10.37 10.6-10.37 5.85 0 10.6 4.65 10.6 10.38 0 5.74-4.75 10.4-10.6 10.4zm-31.23 0c-5.85 0-10.6-4.65-10.6-10.4 0-5.72 4.75-10.37 10.6-10.37 5.86 0 10.6 4.65 10.6 10.38 0 5.74-4.74 10.4-10.6 10.4zm31.22-27.7c-6.78 0-12.66 3.73-15.63 9.2-2.97-5.47-8.84-9.2-15.6-9.2-4 0-7.66 1.3-10.6 3.46V4.38C12.02 2.52 10.45 1 8.53 1 6.6 1 5.03 2.5 5 4.4v28.7c.16 9.43 8 17.03 17.67 17.03 6.77 0 12.64-3.73 15.6-9.2 2.98 5.47 8.86 9.2 15.62 9.2 9.74 0 17.66-7.75 17.66-17.32 0-9.55-7.92-17.3-17.68-17.3z\"\n ></path>\n </svg>\n </span>\n <img class=\"bp-is-hidden bp-custom-logo\" />\n <div class=\"bp-header-btns\">\n <button\n class=\"bp-btn-plain bp-btn-annotate-draw bp-is-hidden\"\n data-testid=\"draw-annotation\"\n type=\"button\"\n >\n <svg\n class=\"bp-btn-annotate-draw-enter\"\n width=\"22\"\n height=\"21\"\n viewBox=\"0 0 14.88 14.88\"\n focusable=\"false\"\n >\n <path\n d=\"M11.65,6.64,5.11,13.17.06,14.94,1.83,9.89,8.37,3.35Zm1.41-1.41L9.78,1.94,11.37.35a1,1,0,0,1,1.41,0l1.87,1.87a1,1,0,0,1,0,1.41Z\"\n transform=\"translate(-0.06 -0.06)\"\n fill-rule=\"evenodd\"\n />\n </svg>\n </button>\n <button\n class=\"bp-btn-plain bp-btn-annotate-point bp-is-hidden\"\n data-testid=\"point-annotation\"\n type=\"button\"\n >\n <svg width=\"22\" height=\"21\" viewBox=\"0 0 22 21\" focusable=\"false\">\n <path\n d=\"M11 21l-4-4H1.99C.89 17 0 16.11 0 15V2C0 .895.89 0 1.99 0h18.02C21.11 0 22 .89 22 2v13c0 1.105-.89 2-1.99 2H15l-4 4zm-7-9.5c0-.276.228-.5.51-.5h8.98c.282 0 .51.232.51.5 0 .276-.228.5-.51.5H4.51c-.282 0-.51-.232-.51-.5zm0-3c0-.276.23-.5.5-.5h11c.276 0 .5.232.5.5 0 .276-.23.5-.5.5h-11c-.276 0-.5-.232-.5-.5zm0-3c0-.276.22-.5.498-.5h13.004c.275 0 .498.232.498.5 0 .276-.22.5-.498.5H4.498C4.223 6 4 5.768 4 5.5z\"\n fill-rule=\"evenodd\"\n />\n </svg>\n </button>\n <button class=\"bp-btn-plain bp-btn-print bp-is-hidden\" data-testid=\"print-preview\" type=\"button\">\n <svg height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" focusable=\"false\">\n <path\n d=\"M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z\"\n />\n <path d=\"M0 0h24v24H0z\" fill=\"none\" />\n </svg>\n </button>\n <button class=\"bp-btn-plain bp-btn-download bp-is-hidden\" data-testid=\"download-preview\" type=\"button\">\n <svg height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" focusable=\"false\">\n <path d=\"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z\" />\n <path d=\"M0 0h24v24H0z\" fill=\"none\" />\n </svg>\n </button>\n </div>\n </div>\n </div>\n <div class=\"bp\" data-testid=\"bp\" tabindex=\"-1\">\n <div class=\"bp-content\" data-testid=\"bp-content\" tabindex=\"-1\" role=\"region\">\n <div class=\"bp-loading-wrapper\">\n <div class=\"bp-loading\">\n <div class=\"bp-icon bp-icon-file\"></div>\n <div class=\"bp-crawler-wrapper\">\n <div class=\"bp-crawler\">\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n </div>\n </div>\n <button class=\"bp-btn-plain bp-navigate bp-navigate-left bp-is-hidden\" type=\"button\">\n <svg viewBox=\"0 0 48 48\" focusable=\"false\">\n <path\n fill=\"#494949\"\n stroke=\"#DCDCDC\"\n stroke-miterlimit=\"10\"\n d=\"M30.8,33.2L21.7,24l9.2-9.2L28,12L16,24l12,12L30.8,33.2z\"\n />\n <path display=\"none\" fill=\"none\" d=\"M0,0h48v48H0V0z\" />\n </svg>\n </button>\n <button class=\"bp-btn-plain bp-navigate bp-navigate-right bp-is-hidden\" type=\"button\">\n <svg viewBox=\"0 0 48 48\" focusable=\"false\">\n <path\n fill=\"#494949\"\n stroke=\"#DCDCDC\"\n stroke-miterlimit=\"10\"\n d=\"M17.2,14.8l9.2,9.2l-9.2,9.2L20,36l12-12L20,12L17.2,14.8z\"\n />\n <path display=\"none\" fill=\"none\" d=\"M48,48H0L0,0l48,0V48z\" />\n </svg>\n </button>\n </div>\n </div>\n</div>\n";
|
|
70055
|
+
;// external "@box/blueprint-web-assets/icons/Medium/ChevronLeft"
|
|
70056
|
+
|
|
70057
|
+
;// external "@box/blueprint-web-assets/icons/Medium/ChevronRight"
|
|
70058
|
+
|
|
70059
|
+
;// ./src/lib/CollectionNavigation.scss
|
|
70060
|
+
// extracted by mini-css-extract-plugin
|
|
70061
|
+
|
|
70062
|
+
;// ./src/lib/CollectionNavigation.tsx
|
|
70063
|
+
/* provided dependency */ var CollectionNavigation_ = __webpack_require__(441)["Tl"];
|
|
70064
|
+
function CollectionNavigation_defineProperty(e, r, t) { return (r = CollectionNavigation_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
70065
|
+
function CollectionNavigation_toPropertyKey(t) { var i = CollectionNavigation_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
70066
|
+
function CollectionNavigation_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
70067
|
+
|
|
70068
|
+
|
|
70069
|
+
|
|
70070
|
+
|
|
70071
|
+
|
|
70072
|
+
|
|
70073
|
+
|
|
70074
|
+
|
|
70075
|
+
// Hosts with their own arrows, like box-ui-elements ContentPreview, hide `.bp-navigate`.
|
|
70076
|
+
const ARROW_CLASS_NAME = 'bp-navigate bp-CollectionNavigation-arrow';
|
|
70077
|
+
function CollectionNavigation({
|
|
70078
|
+
hasNext,
|
|
70079
|
+
hasPrevious,
|
|
70080
|
+
onNext,
|
|
70081
|
+
onPrevious
|
|
70082
|
+
}) {
|
|
70083
|
+
return /*#__PURE__*/external_react_["default"].createElement(external_react_["default"].Fragment, null, hasPrevious && /*#__PURE__*/external_react_["default"].createElement("div", {
|
|
70084
|
+
className: `${ARROW_CLASS_NAME} bp-CollectionNavigation-previous`
|
|
70085
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Tooltip, {
|
|
70086
|
+
content: CollectionNavigation_('previous_file')
|
|
70087
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.IconButton, {
|
|
70088
|
+
"aria-label": CollectionNavigation_('previous_file'),
|
|
70089
|
+
"data-target-id": "CollectionNavigation-previous",
|
|
70090
|
+
icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ChevronLeft_8bf40851_default__,
|
|
70091
|
+
onClick: onPrevious,
|
|
70092
|
+
size: "large",
|
|
70093
|
+
variant: "high-contrast"
|
|
70094
|
+
}))), hasNext && /*#__PURE__*/external_react_["default"].createElement("div", {
|
|
70095
|
+
className: `${ARROW_CLASS_NAME} bp-CollectionNavigation-next`
|
|
70096
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Tooltip, {
|
|
70097
|
+
content: CollectionNavigation_('next_file')
|
|
70098
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.IconButton, {
|
|
70099
|
+
"aria-label": CollectionNavigation_('next_file'),
|
|
70100
|
+
"data-target-id": "CollectionNavigation-next",
|
|
70101
|
+
icon: __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ChevronRight_619e782c_default__,
|
|
70102
|
+
onClick: onNext,
|
|
70103
|
+
size: "large",
|
|
70104
|
+
variant: "high-contrast"
|
|
70105
|
+
}))));
|
|
70106
|
+
}
|
|
70107
|
+
class CollectionNavigationRoot {
|
|
70108
|
+
constructor({
|
|
70109
|
+
containerEl,
|
|
70110
|
+
onNext,
|
|
70111
|
+
onPrevious
|
|
70112
|
+
}) {
|
|
70113
|
+
CollectionNavigation_defineProperty(this, "containerEl", void 0);
|
|
70114
|
+
CollectionNavigation_defineProperty(this, "hostEl", void 0);
|
|
70115
|
+
CollectionNavigation_defineProperty(this, "isDestroyed", false);
|
|
70116
|
+
CollectionNavigation_defineProperty(this, "onNext", void 0);
|
|
70117
|
+
CollectionNavigation_defineProperty(this, "onPrevious", void 0);
|
|
70118
|
+
CollectionNavigation_defineProperty(this, "root", void 0);
|
|
70119
|
+
this.containerEl = containerEl;
|
|
70120
|
+
this.onNext = onNext;
|
|
70121
|
+
this.onPrevious = onPrevious;
|
|
70122
|
+
this.hostEl = document.createElement('div');
|
|
70123
|
+
this.hostEl.className = 'bp-CollectionNavigationRoot';
|
|
70124
|
+
containerEl.appendChild(this.hostEl);
|
|
70125
|
+
this.root = (0,client_.createRoot)(this.hostEl);
|
|
70126
|
+
}
|
|
70127
|
+
destroy() {
|
|
70128
|
+
this.isDestroyed = true;
|
|
70129
|
+
this.root.unmount();
|
|
70130
|
+
this.hostEl.remove();
|
|
70131
|
+
}
|
|
70132
|
+
render({
|
|
70133
|
+
hasNext,
|
|
70134
|
+
hasPrevious
|
|
70135
|
+
}) {
|
|
70136
|
+
if (this.isDestroyed) {
|
|
70137
|
+
return;
|
|
70138
|
+
}
|
|
70139
|
+
this.root.render(/*#__PURE__*/external_react_["default"].createElement(BlueprintProviders/* default */.A, {
|
|
70140
|
+
container: this.hostEl
|
|
70141
|
+
}, /*#__PURE__*/external_react_["default"].createElement(CollectionNavigation, {
|
|
70142
|
+
hasNext: hasNext,
|
|
70143
|
+
hasPrevious: hasPrevious,
|
|
70144
|
+
onNext: this.onNext,
|
|
70145
|
+
onPrevious: this.onPrevious
|
|
70146
|
+
})));
|
|
70147
|
+
}
|
|
70148
|
+
}
|
|
69751
70149
|
;// ./src/lib/PreviewUI.js
|
|
69752
70150
|
/* provided dependency */ var PreviewUI_ = __webpack_require__(441)["Tl"];
|
|
69753
70151
|
function PreviewUI_defineProperty(e, r, t) { return (r = PreviewUI_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -69758,8 +70156,12 @@ function PreviewUI_toPrimitive(t, r) { if ("object" != typeof t || !t) return t;
|
|
|
69758
70156
|
|
|
69759
70157
|
|
|
69760
70158
|
|
|
70159
|
+
|
|
70160
|
+
|
|
69761
70161
|
class PreviewUI {
|
|
69762
70162
|
constructor() {
|
|
70163
|
+
/** @property {CollectionNavigationRoot} - Blueprint navigation arrows, set only with the supporting UI flag */
|
|
70164
|
+
PreviewUI_defineProperty(this, "collectionNavigation", void 0);
|
|
69763
70165
|
/** @property {HTMLElement} - Container element */
|
|
69764
70166
|
PreviewUI_defineProperty(this, "container", void 0);
|
|
69765
70167
|
/** @property {HTMLElement} - Content container element */
|
|
@@ -69791,6 +70193,10 @@ class PreviewUI {
|
|
|
69791
70193
|
this.loadingIcon.destroy();
|
|
69792
70194
|
this.loadingIcon = null;
|
|
69793
70195
|
}
|
|
70196
|
+
if (this.collectionNavigation) {
|
|
70197
|
+
this.collectionNavigation.destroy();
|
|
70198
|
+
this.collectionNavigation = null;
|
|
70199
|
+
}
|
|
69794
70200
|
if (this.container) {
|
|
69795
70201
|
this.container.innerHTML = '';
|
|
69796
70202
|
}
|
|
@@ -69837,6 +70243,9 @@ class PreviewUI {
|
|
|
69837
70243
|
this.container = this.container.querySelector(constants/* SELECTOR_BOX_PREVIEW_CONTAINER */.xK);
|
|
69838
70244
|
this.previewContainer = this.container.querySelector(constants/* SELECTOR_BOX_PREVIEW */.Vm);
|
|
69839
70245
|
this.contentContainer = this.container.querySelector(constants/* SELECTOR_BOX_PREVIEW_CONTENT */.bE);
|
|
70246
|
+
if (isFeatureEnabled(options.features, constants/* BLUEPRINT_MIGRATION_SUPPORTING_UI */.Ed)) {
|
|
70247
|
+
this.setupCollectionNavigation();
|
|
70248
|
+
}
|
|
69840
70249
|
|
|
69841
70250
|
// Setup the header, buttons, and theme
|
|
69842
70251
|
if (options.header !== 'none') {
|
|
@@ -69867,8 +70276,8 @@ class PreviewUI {
|
|
|
69867
70276
|
* Shows navigation arrows if there is a need
|
|
69868
70277
|
*
|
|
69869
70278
|
* @public
|
|
69870
|
-
* @param {
|
|
69871
|
-
* @param {
|
|
70279
|
+
* @param {string} id - File ID of current preview
|
|
70280
|
+
* @param {string[]} collection - Array of File IDs being previewed
|
|
69872
70281
|
* @return {void}
|
|
69873
70282
|
*/
|
|
69874
70283
|
showNavigation(id, collection) {
|
|
@@ -69878,6 +70287,10 @@ class PreviewUI {
|
|
|
69878
70287
|
if (!this.container) {
|
|
69879
70288
|
return;
|
|
69880
70289
|
}
|
|
70290
|
+
if (this.collectionNavigation) {
|
|
70291
|
+
this.showCollectionNavigation(id, collection);
|
|
70292
|
+
return;
|
|
70293
|
+
}
|
|
69881
70294
|
const leftNavEl = this.container.querySelector(constants/* SELECTOR_NAVIGATION_LEFT */.HV);
|
|
69882
70295
|
const rightNavEl = this.container.querySelector(constants/* SELECTOR_NAVIGATION_RIGHT */.Kh);
|
|
69883
70296
|
|
|
@@ -70072,6 +70485,44 @@ class PreviewUI {
|
|
|
70072
70485
|
loadingIconEl.parentElement.removeChild(loadingIconEl);
|
|
70073
70486
|
}
|
|
70074
70487
|
|
|
70488
|
+
/**
|
|
70489
|
+
* Replaces the shell's navigation arrows with Blueprint arrows.
|
|
70490
|
+
*
|
|
70491
|
+
* @private
|
|
70492
|
+
* @return {void}
|
|
70493
|
+
*/
|
|
70494
|
+
setupCollectionNavigation() {
|
|
70495
|
+
this.contentContainer.querySelectorAll(`${constants/* SELECTOR_NAVIGATION_LEFT */.HV}, ${constants/* SELECTOR_NAVIGATION_RIGHT */.Kh}`).forEach(navEl => navEl.remove());
|
|
70496
|
+
this.collectionNavigation = new CollectionNavigationRoot({
|
|
70497
|
+
containerEl: this.contentContainer,
|
|
70498
|
+
onNext: this.rightHandler,
|
|
70499
|
+
onPrevious: this.leftHandler
|
|
70500
|
+
});
|
|
70501
|
+
}
|
|
70502
|
+
|
|
70503
|
+
/**
|
|
70504
|
+
* Shows the Blueprint arrows for the current file's position in the collection.
|
|
70505
|
+
*
|
|
70506
|
+
* @private
|
|
70507
|
+
* @param {string} id - File ID of current preview
|
|
70508
|
+
* @param {string[]} collection - Array of File IDs being previewed
|
|
70509
|
+
* @return {void}
|
|
70510
|
+
*/
|
|
70511
|
+
showCollectionNavigation(id, collection) {
|
|
70512
|
+
const hasNavigation = collection.length > 1;
|
|
70513
|
+
const index = collection.indexOf(id);
|
|
70514
|
+
this.previewContainer.classList.remove(constants/* CLASS_BOX_PREVIEW_HAS_NAVIGATION */.eM);
|
|
70515
|
+
this.previewContainer.removeEventListener('mousemove', this.mousemoveHandler);
|
|
70516
|
+
if (hasNavigation) {
|
|
70517
|
+
this.previewContainer.classList.add(constants/* CLASS_BOX_PREVIEW_HAS_NAVIGATION */.eM);
|
|
70518
|
+
this.previewContainer.addEventListener('mousemove', this.mousemoveHandler);
|
|
70519
|
+
}
|
|
70520
|
+
this.collectionNavigation.render({
|
|
70521
|
+
hasNext: hasNavigation && index < collection.length - 1,
|
|
70522
|
+
hasPrevious: hasNavigation && index > 0
|
|
70523
|
+
});
|
|
70524
|
+
}
|
|
70525
|
+
|
|
70075
70526
|
/**
|
|
70076
70527
|
* Sets up the preview header.
|
|
70077
70528
|
*
|