box-content-preview 3.128.0 → 3.130.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 +19 -13
- package/dist/lib/i18n/da-DK.js +20 -14
- package/dist/lib/i18n/de-DE.js +21 -15
- package/dist/lib/i18n/en-AU.js +6 -0
- package/dist/lib/i18n/en-CA.js +7 -1
- package/dist/lib/i18n/en-GB.js +6 -0
- package/dist/lib/i18n/en-US.js +7 -1
- package/dist/lib/i18n/en-x-pseudo.js +7 -1
- package/dist/lib/i18n/es-419.js +23 -17
- package/dist/lib/i18n/es-ES.js +23 -17
- package/dist/lib/i18n/fi-FI.js +24 -18
- package/dist/lib/i18n/fr-CA.js +21 -15
- package/dist/lib/i18n/fr-FR.js +21 -15
- package/dist/lib/i18n/hi-IN.js +19 -13
- package/dist/lib/i18n/it-IT.js +23 -17
- package/dist/lib/i18n/ja-JP.js +32 -26
- package/dist/lib/i18n/ko-KR.js +24 -18
- package/dist/lib/i18n/nb-NO.js +23 -17
- package/dist/lib/i18n/nl-NL.js +22 -16
- package/dist/lib/i18n/pl-PL.js +24 -18
- package/dist/lib/i18n/pt-BR.js +23 -17
- package/dist/lib/i18n/ru-RU.js +24 -18
- package/dist/lib/i18n/sv-SE.js +20 -14
- package/dist/lib/i18n/tr-TR.js +24 -18
- package/dist/lib/i18n/zh-CN.js +24 -18
- package/dist/lib/i18n/zh-TW.js +24 -18
- package/dist/lib/index.css +14 -13
- package/dist/lib/index.js +447 -189
- package/package.json +1 -1
package/dist/lib/index.js
CHANGED
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
*/
|
|
23
23
|
import { Archive as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_Archive__, FileAiPrompt as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileAiPrompt__, FileAiSession as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileAiSession__, FileAudio as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileAudio__, FileBookmark as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileBookmark__, FileBoxNote as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileBoxNote__, FileCanvas as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileCanvas__, FileCode as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileCode__, FileDefault as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileDefault__, FileDocs as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileDocs__, FileDwg as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileDwg__, FileExcel as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileExcel__, FileIllustrator as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileIllustrator__, FileImage as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileImage__, FileIndesign as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileIndesign__, FileKeynote as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileKeynote__, FileMarkdown as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileMarkdown__, FileNumbers as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileNumbers__, FilePages as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FilePages__, FilePdf as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FilePdf__, FilePhotoshop as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FilePhotoshop__, FilePowerpoint as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FilePowerpoint__, FilePresentation as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FilePresentation__, FileSheets as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileSheets__, FileSlides as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileSlides__, FileSpreadsheet as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileSpreadsheet__, FileText as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileText__, FileThreeD as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileThreeD__, FileVariable as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileVariable__, FileVector as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileVector__, FileVideo as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileVideo__, FileWord as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileWord__, FileXbd as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileXbd__, FileXdw as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileXdw__, FileZip as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FileZip__, FolderArchive as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FolderArchive__, FolderExternal as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FolderExternal__, FolderPersonal as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FolderPersonal__, FolderShared as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FolderShared__, FolderVariable as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Content_3c90b2ee_FolderVariable__ } from "@box/blueprint-web-assets/icons/Content";
|
|
24
24
|
import { AgentCustomExtract as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Logo_bf2ae2e9_AgentCustomExtract__, BoxApps as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Logo_bf2ae2e9_BoxApps__, Form as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Logo_bf2ae2e9_Form__, FormSubmission as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Logo_bf2ae2e9_FormSubmission__, RelayAdvanced as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Logo_bf2ae2e9_RelayAdvanced__ } from "@box/blueprint-web-assets/icons/Logo";
|
|
25
|
-
import { decode as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_utils_keys_d752524f_decode__ } from "box-ui-elements/es/utils/keys";
|
|
26
25
|
import { defineMessages as __WEBPACK_EXTERNAL_MODULE_react_intl_934d3829_defineMessages__, useIntl as __WEBPACK_EXTERNAL_MODULE_react_intl_934d3829_useIntl__ } from "react-intl";
|
|
27
26
|
import { default as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_elements_common_Internationalize_d2da695e_default__ } from "box-ui-elements/es/elements/common/Internationalize";
|
|
28
27
|
import { default as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_features_virtualized_table_VirtualizedTable_9bb4c7d0_default__ } from "box-ui-elements/es/features/virtualized-table/VirtualizedTable";
|
|
@@ -36,6 +35,7 @@ import { default as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_components_brea
|
|
|
36
35
|
import { default as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_components_plain_button_PlainButton_6ddbae5a_default__ } from "box-ui-elements/es/components/plain-button/PlainButton";
|
|
37
36
|
import { Grid as __WEBPACK_EXTERNAL_MODULE__box_react_virtualized_dist_es_Grid_5f3cce90_Grid__ } from "@box/react-virtualized/dist/es/Grid";
|
|
38
37
|
import * as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__ from "@box/blueprint-web";
|
|
38
|
+
import * as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Fill_15c08185__ from "@box/blueprint-web-assets/icons/Fill";
|
|
39
39
|
import * as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_3b21b01f__ from "@box/blueprint-web-assets/icons/Medium";
|
|
40
40
|
import * as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_MediumFilled_1ed4080c__ from "@box/blueprint-web-assets/icons/MediumFilled";
|
|
41
41
|
import * as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__ from "@box/blueprint-web-assets/tokens/tokens";
|
|
@@ -64,7 +64,6 @@ import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Me
|
|
|
64
64
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Nav_d41e959a_default__ } from "@box/blueprint-web-assets/icons/Medium/Nav";
|
|
65
65
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Search_ef3e4aba_default__ } from "@box/blueprint-web-assets/icons/Medium/Search";
|
|
66
66
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_MediumFilled_Nav_ae6d790f_default__ } from "@box/blueprint-web-assets/icons/MediumFilled/Nav";
|
|
67
|
-
import { Search as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Fill_15c08185_Search__ } from "@box/blueprint-web-assets/icons/Fill";
|
|
68
67
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_MediumFilled_Pause_0cc1f701_default__ } from "@box/blueprint-web-assets/icons/MediumFilled/Pause";
|
|
69
68
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_MediumFilled_Play_ee47c078_default__ } from "@box/blueprint-web-assets/icons/MediumFilled/Play";
|
|
70
69
|
import { PreviewLoading as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_components_preview_386c8d2b_PreviewLoading__, getIcon as __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_components_preview_386c8d2b_getIcon__ } from "box-ui-elements/es/components/preview";
|
|
@@ -72,16 +71,28 @@ import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Me
|
|
|
72
71
|
import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_ChevronRight_619e782c_default__ } from "@box/blueprint-web-assets/icons/Medium/ChevronRight";
|
|
73
72
|
/******/ var __webpack_modules__ = ({
|
|
74
73
|
|
|
74
|
+
/***/ 584
|
|
75
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
76
|
+
|
|
77
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
78
|
+
/* harmony export */ A: () => (/* binding */ FILE_EXTENSION_CATEGORIES),
|
|
79
|
+
/* harmony export */ Z: () => (/* binding */ FILE_CATEGORY_COLORS)
|
|
80
|
+
/* harmony export */ });
|
|
81
|
+
var FILE_EXTENSION_CATEGORIES={audio:[`aac`,`aif`,`aifc`,`aiff`,`amr`,`au`,`flac`,`m3u`,`m4a`,`mid`,`mp3`,`ra`,`wav`,`wma`,`wpl`],boxcanvas:[`boxcanvas`],boxnote:[`boxnote`],code:`as.as3.asm.aspx.bat.c.cc.cmake.cpp.cs.css.cxx.db.diff.erb.groovy.h.haml.hh.htm.html.java.js.json.less.m.make.ml.mm.php.pl.plist.properties.py.rb.rst.sass.scala.scm.script.sh.sml.sql.wabba.yaml`.split(`.`),document:[`dot`,`dotx`,`msg`,`odt`,`rtf`,`wpd`,`xhtml`,`xml`,`xsd`,`xsl`],"docuworks-binder":[`xbd`],"docuworks-file":[`xdw`],dwg:[`dwg`,`dwgzip`],"excel-spreadsheet":[`xls`,`xlsb`,`xlsm`,`xlsx`],"google-docs":[`gdoc`],"google-sheets":[`gsheet`],"google-slides":[`gslide`,`gslides`],illustrator:[`ai`],image:[`bmp`,`cr2`,`crw`,`dng`,`gdraw`,`gif`,`heic`,`heif`,`jpeg`,`jpg`,`nef`,`png`,`ps`,`raf`,`raw`,`svg`,`svs`,`tga`,`tif`,`tiff`,`webp`],indesign:[`idml`,`indd`,`indt`,`inx`],keynote:[`key`],markdown:[`md`,`markdown`],numbers:[`numbers`],pages:[`pages`],pdf:[`pdf`],photoshop:[`psb`,`psd`],"powerpoint-presentation":[`ppt`,`pptm`,`pptx`],presentation:[`odp`,`otp`,`pot`,`potx`],spreadsheet:[`csv`,`ods`,`tsv`,`xlt`,`xltx`],text:[`fdx`,`log`,`txt`,`vi`,`vim`,`vtt`,`webdoc`],threed:[`3ds`,`box3d`,`dae`,`fbx`,`mtl`,`obj`,`ply`,`stl`],vector:[`eps`],video:[`3g2`,`3gp`,`avi`,`flv`,`m2ts`,`m2v`,`m4v`,`mkv`,`mov`,`mp4`,`mpeg`,`mpg`,`mts`,`ogg`,`qt`,`ts`,`wmv`],"word-document":[`doc`,`docm`,`docx`],zip:[`gz`,`rar`,`tgz`,`zip`]},COLOR_TOKENS={red:`var(--bp-watermelon-red-120, var(--watermelon-red-120))`,orange:`var(--bp-orange-130, var(--orange-120))`,green:`var(--bp-green-light-135, var(--green-light-120))`,lightBlue:`var(--bp-light-blue-115, var(--light-blue-110))`,darkBlue:`var(--bp-light-blue-135, var(--light-blue-120))`,purple:`var(--bp-purple-rain-100, var(--purple-rain-100))`,gray:`var(--bp-gray-100, var(--gray-100))`},FILE_CATEGORY_COLORS={audio:COLOR_TOKENS.purple,boxcanvas:COLOR_TOKENS.orange,boxnote:COLOR_TOKENS.gray,code:COLOR_TOKENS.red,document:COLOR_TOKENS.gray,"docuworks-binder":COLOR_TOKENS.gray,"docuworks-file":COLOR_TOKENS.green,dwg:COLOR_TOKENS.lightBlue,"excel-spreadsheet":COLOR_TOKENS.green,"google-docs":COLOR_TOKENS.darkBlue,"google-sheets":COLOR_TOKENS.green,"google-slides":COLOR_TOKENS.orange,illustrator:COLOR_TOKENS.orange,image:COLOR_TOKENS.green,indesign:COLOR_TOKENS.gray,keynote:COLOR_TOKENS.lightBlue,markdown:COLOR_TOKENS.gray,numbers:COLOR_TOKENS.green,pages:COLOR_TOKENS.orange,pdf:COLOR_TOKENS.red,photoshop:COLOR_TOKENS.lightBlue,"powerpoint-presentation":COLOR_TOKENS.red,presentation:COLOR_TOKENS.orange,spreadsheet:COLOR_TOKENS.green,text:COLOR_TOKENS.darkBlue,threed:COLOR_TOKENS.orange,vector:COLOR_TOKENS.orange,video:COLOR_TOKENS.lightBlue,"word-document":COLOR_TOKENS.darkBlue,zip:COLOR_TOKENS.gray};
|
|
82
|
+
|
|
83
|
+
/***/ },
|
|
84
|
+
|
|
75
85
|
/***/ 1057
|
|
76
86
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
77
87
|
|
|
78
88
|
|
|
79
89
|
// EXPORTS
|
|
80
90
|
__webpack_require__.d(__webpack_exports__, {
|
|
81
|
-
zG: () => (/* binding */ ItemIcon)
|
|
91
|
+
zG: () => (/* binding */ ItemIcon),
|
|
92
|
+
RU: () => (/* binding */ itemIconTable)
|
|
82
93
|
});
|
|
83
94
|
|
|
84
|
-
// UNUSED EXPORTS: default
|
|
95
|
+
// UNUSED EXPORTS: default
|
|
85
96
|
|
|
86
97
|
;// external "@box/blueprint-web-assets/icons/Content"
|
|
87
98
|
|
|
@@ -96,22 +107,16 @@ var itemIconTable={ai_session:__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_asset
|
|
|
96
107
|
|
|
97
108
|
/***/ },
|
|
98
109
|
|
|
99
|
-
/***/
|
|
110
|
+
/***/ 76
|
|
100
111
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
101
112
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
;// ./node_modules/@box/item-icon/dist/esm/lib/constants.js
|
|
111
|
-
var FILE_EXTENSION_CATEGORIES={audio:[`aac`,`aif`,`aifc`,`aiff`,`amr`,`au`,`flac`,`m3u`,`m4a`,`mid`,`mp3`,`ra`,`wav`,`wma`,`wpl`],boxcanvas:[`boxcanvas`],boxnote:[`boxnote`],code:`as.as3.asm.aspx.bat.c.cc.cmake.cpp.cs.css.cxx.db.diff.erb.groovy.h.haml.hh.htm.html.java.js.json.less.m.make.ml.mm.php.pl.plist.properties.py.rb.rst.sass.scala.scm.script.sh.sml.sql.wabba.yaml`.split(`.`),document:[`dot`,`dotx`,`msg`,`odt`,`rtf`,`wpd`,`xhtml`,`xml`,`xsd`,`xsl`],"docuworks-binder":[`xbd`],"docuworks-file":[`xdw`],dwg:[`dwg`,`dwgzip`],"excel-spreadsheet":[`xls`,`xlsb`,`xlsm`,`xlsx`],"google-docs":[`gdoc`],"google-sheets":[`gsheet`],"google-slides":[`gslide`,`gslides`],illustrator:[`ai`],image:[`bmp`,`cr2`,`crw`,`dng`,`gdraw`,`gif`,`heic`,`heif`,`jpeg`,`jpg`,`nef`,`png`,`ps`,`raf`,`raw`,`svg`,`svs`,`tga`,`tif`,`tiff`,`webp`],indesign:[`idml`,`indd`,`indt`,`inx`],keynote:[`key`],markdown:[`md`,`markdown`],numbers:[`numbers`],pages:[`pages`],pdf:[`pdf`],photoshop:[`psb`,`psd`],"powerpoint-presentation":[`ppt`,`pptm`,`pptx`],presentation:[`odp`,`otp`,`pot`,`potx`],spreadsheet:[`csv`,`ods`,`tsv`,`xlt`,`xltx`],text:[`fdx`,`log`,`txt`,`vi`,`vim`,`vtt`,`webdoc`],threed:[`3ds`,`box3d`,`dae`,`fbx`,`mtl`,`obj`,`ply`,`stl`],vector:[`eps`],video:[`3g2`,`3gp`,`avi`,`flv`,`m2ts`,`m2v`,`m4v`,`mkv`,`mov`,`mp4`,`mpeg`,`mpg`,`mts`,`ogg`,`qt`,`ts`,`wmv`],"word-document":[`doc`,`docm`,`docx`],zip:[`gz`,`rar`,`tgz`,`zip`]},COLOR_TOKENS={red:`var(--bp-watermelon-red-120, var(--watermelon-red-120))`,orange:`var(--bp-orange-130, var(--orange-120))`,green:`var(--bp-green-light-135, var(--green-light-120))`,lightBlue:`var(--bp-light-blue-115, var(--light-blue-110))`,darkBlue:`var(--bp-light-blue-135, var(--light-blue-120))`,purple:`var(--bp-purple-rain-100, var(--purple-rain-100))`,gray:`var(--bp-gray-100, var(--gray-100))`},FILE_CATEGORY_COLORS={audio:COLOR_TOKENS.purple,boxcanvas:COLOR_TOKENS.orange,boxnote:COLOR_TOKENS.gray,code:COLOR_TOKENS.red,document:COLOR_TOKENS.gray,"docuworks-binder":COLOR_TOKENS.gray,"docuworks-file":COLOR_TOKENS.green,dwg:COLOR_TOKENS.lightBlue,"excel-spreadsheet":COLOR_TOKENS.green,"google-docs":COLOR_TOKENS.darkBlue,"google-sheets":COLOR_TOKENS.green,"google-slides":COLOR_TOKENS.orange,illustrator:COLOR_TOKENS.orange,image:COLOR_TOKENS.green,indesign:COLOR_TOKENS.gray,keynote:COLOR_TOKENS.lightBlue,markdown:COLOR_TOKENS.gray,numbers:COLOR_TOKENS.green,pages:COLOR_TOKENS.orange,pdf:COLOR_TOKENS.red,photoshop:COLOR_TOKENS.lightBlue,"powerpoint-presentation":COLOR_TOKENS.red,presentation:COLOR_TOKENS.orange,spreadsheet:COLOR_TOKENS.green,text:COLOR_TOKENS.darkBlue,threed:COLOR_TOKENS.orange,vector:COLOR_TOKENS.orange,video:COLOR_TOKENS.lightBlue,"word-document":COLOR_TOKENS.darkBlue,zip:COLOR_TOKENS.gray};
|
|
112
|
-
;// ./node_modules/@box/item-icon/dist/esm/lib/utils.js
|
|
113
|
-
/* unused harmony import specifier */ var utils_FILE_CATEGORY_COLORS;
|
|
114
|
-
var getFileCategoryByExtension=(extension=``)=>{let iconTypes={};return Object.entries(FILE_EXTENSION_CATEGORIES).forEach(([iconType,typeExtensions])=>{typeExtensions.forEach(typeExtension=>{iconTypes[typeExtension]=iconType})}),iconTypes[extension]||`default`},getColorByExtension=fileCategory=>fileCategory?utils_FILE_CATEGORY_COLORS[fileCategory]:void 0;
|
|
113
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
114
|
+
/* harmony export */ N: () => (/* binding */ getFileCategoryByExtension)
|
|
115
|
+
/* harmony export */ });
|
|
116
|
+
/* unused harmony export getColorByExtension */
|
|
117
|
+
/* unused harmony import specifier */ var FILE_CATEGORY_COLORS;
|
|
118
|
+
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(584);
|
|
119
|
+
var getFileCategoryByExtension=(extension=``)=>{let iconTypes={};return Object.entries(_constants_js__WEBPACK_IMPORTED_MODULE_0__/* .FILE_EXTENSION_CATEGORIES */ .A).forEach(([iconType,typeExtensions])=>{typeExtensions.forEach(typeExtension=>{iconTypes[typeExtension]=iconType})}),iconTypes[extension]||`default`},getColorByExtension=fileCategory=>fileCategory?FILE_CATEGORY_COLORS[fileCategory]:void 0;
|
|
115
120
|
|
|
116
121
|
/***/ },
|
|
117
122
|
|
|
@@ -151,7 +156,7 @@ function BlueprintProviders({
|
|
|
151
156
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
152
157
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
153
158
|
/* harmony export */ });
|
|
154
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
159
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4903);
|
|
155
160
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
156
161
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
157
162
|
function _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); }
|
|
@@ -1225,7 +1230,7 @@ const DEFAULT_LANGUAGE = 'en-US';
|
|
|
1225
1230
|
const MESSAGE_KEY_PREFIX = 'bcp.';
|
|
1226
1231
|
|
|
1227
1232
|
// Only the npm build defines __BCP_DEFAULT_MESSAGES__; the CDN build bakes strings in per locale.
|
|
1228
|
-
const defaultStrings = (0,_isNpmBuild__WEBPACK_IMPORTED_MODULE_0__/* .isNpmBuild */ .w)() ? {"rotate_left":"Rotate left","zoom_current_scale":"Current zoom level","zoom_in":"Zoom in","zoom_out":"Zoom out","enter_fullscreen":"Enter fullscreen","exit_fullscreen":"Exit fullscreen","controls_more":"More options","controls_find":"Find","controls_rotate_document":"Rotate document","controls_rotate_image":"Rotate image","controls_zoom_scale":"Zoom: {1}","controls_view_as_grid":"View as grid","controls_show_thumbnails":"View thumbnails","controls_hide_thumbnails":"Hide thumbnails","controls_shortcut_ctrl":"Ctrl + {1}","drawing_comment":"Markup","region_comment":"Comment on Region","highlight_text":"Highlight and Comment","exit_annotations":"Exit Annotations","annotation_tools":"Comment and markup","drawing_color":"Drawing color","drawing_color_blue":"Blue","drawing_color_green":"Green","drawing_color_red":"Red","drawing_color_orange":"Orange","drawing_color_yellow":"Yellow","drawing_color_purple":"Purple","previous_page":"Previous page","enter_page_num":"Click to enter page number","next_page":"Next page","download":"Download","print":"Print","print_notification":"Please press the print button to get a printable version of this document.","print_loading":"Preparing to print...","print_ready":"Ready to print.","print_close":"Close print dialog","previous_file":"Previous file","logo":"Logo","next_file":"Next file","loading_preview":"Loading Preview...","download_file":"Download File","text_truncated":"This file has been truncated due to size limits. Please download to view the whole file.","notice_info":"Info","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","find_placeholder":"Find in document","find_match_count":"{1} of {2}","thumbnail_label":"Page thumbnails","file_preview_label":"File preview","comparison_banner_current":"Current version","comparison_banner_previous":"Previous version","comparison_banner_version":"Version {1}","comparison_banner_actions":"More actions","comparison_banner_open_full_preview":"Open Full Preview","comparison_banner_close":"Close","comparison_banner_make_current":"Make Current","comparison_banner_delete":"Delete","error_generic":"This preview didn’t load. Please try to open or download the file to view.","error_unsupported":"This preview didn’t load because the file type is unsupported. Please try to open or download the file to view.","error_account":"This preview didn’t load because your account is unable to preview this file type. Please try to open or download the file to view.","error_permissions":"This preview didn’t load because you don’t have permission. Please ask the file owner to update permissions.","error_refresh":"This preview didn’t load. Please try to open or download the file to view.","error_rate_limit":"This preview didn’t load because your request was rate limited. Please try to open or download the file to view.","error_reupload":"This preview didn’t load. Please try to open or download the file to view.","error_browser_unsupported":"Your browser doesn’t support preview for {1}. Please try to open or download the file to view.","error_document":"This preview didn’t load because the document may be protected. Please try to open or download the file to view.","error_password_protected":"This preview didn’t load because the document is protected. Please try to open or download the file to view.","error_try_again_later":"This preview didn’t load. Please refresh the page or download file to view.","error_bad_file":"This preview didn’t load. Please try to open or download the file to view.","error_not_downloadable":"Something seems to be wrong with this file. Please refresh the page, and if the issue continues, try to upload a new version.","error_flash_not_enabled":"This preview didn’t load because Flash is not enabled on your browser. Please try to enable Flash or download the file to view.","error_internet_explorer_office_online":"This version of Internet Explorer is out of date and the experience may be degraded. Please try switching to a different browser for a better experience.","error_large_file":"File exceeds supported size for preview. Open or download the file to view.","error_too_many_operations":"The file is too complex to display in your browser. Please download it to view.","error_zero_byte_file":"Cannot preview 0 B file. Open or download the file to view.","filename":"Name","last_modified_date":"Modified","size":"Size","search":"Search","search_results":"Search Results","search_placeholder":"Search files and folders","search_clear":"Clear search","breadcrumb":"Breadcrumb","breadcrumb_truncated":"Show hidden folders","media_autoplay":"Autoplay","media_autoplay_disabled":"Disabled","media_autoplay_enabled":"Enabled","media_play_next":"Play next file","media_play_next_disabled":"Disabled","media_play_next_enabled":"Enabled","media_speed":"Speed","media_speed_normal":"Normal","media_quality":"Quality","media_quality_auto":"Auto","media_guides":"Guides","media_guides_off":"Off","media_guides_default":"Default","media_guides_widescreen_hd":"Widescreen HD","media_guides_vertical":"Vertical","media_guides_square":"Square","media_guides_social_portrait":"Social Portrait","media_guides_cinemascope":"Cinemascope","media_guides_univisium":"Univisium","media_guides_cinema_flat":"Cinema Flat","media_guides_scope":"Scope","media_guides_fullscreen":"Fullscreen","media_guides_ultrawide":"Ultrawide","media_volume_slider":"Volume Slider","media_generating_waveform":"Generating waveform","media_loading":"Loading","media_zoom":"Zoom","media_zoom_slider":"Zoom Slider","media_time_slider":"Media Slider","media_comment_marker":"Comment marker","media_range_comment":"Comment","media_range_clear":"Clear","media_shuttle_forward":"Scanning forward at {1}x","media_shuttle_reverse":"Scanning backward at {1}x","media_mute":"Mute","media_unmute":"Unmute","media_play":"Play","media_pause":"Pause","media_skip_forward":"Skip forward","media_skip_backward":"Skip backward","media_settings":"Settings","media_subtitles_cc":"Subtitles/Closed Captions","media_time_format":"Time format","media_time_format_standard":"Standard time","media_time_format_timecode":"Timecode","media_time_format_frames":"Frame numbers","volume":"Volume","of":"of","subtitles":"Subtitles","off":"Off","media_audio":"Audio","track":"Track","media_auto_generated_captions":"Auto-Generated Captions","auto_generated":"Auto-Generated","box3d_animation_clips":"Animation clips","box3d_camera_projection_perspective":"Perspective","box3d_camera_projection_orthographic":"Orthographic","box3d_reset":"Reset","box3d_toggle_animation":"Play/pause animation","box3d_toggle_vr":"Toggle VR display","box3d_render_mode_lit":"Lit","box3d_render_mode_unlit":"Unlit","box3d_render_mode_normals":"Normals","box3d_render_mode_shape":"Shape","box3d_render_mode_uv_overlay":"UV Overlay","box3d_settings":"Settings","box3d_settings_render_label":"Render mode","box3d_settings_grid_label":"Show grid","box3d_settings_wireframes_label":"Show wireframes","box3d_settings_skeletons_label":"Show skeletons","box3d_settings_projection_label":"Camera Projection","box3d_settings_rotate_label":"Rotate Model","box3d_settings_rotate_left":"Rotate left around {1} axis","box3d_settings_rotate_right":"Rotate right around {1} axis","document_label":"Document Viewer","annotation_add_comment_placeholder":"Add a comment here...","annotation_reply_placeholder":"Post a reply...","annotation_done":"Done","annotation_close":"Close","annotation_cancel":"Cancel","annotation_save":"Save","annotation_post":"Post","annotation_delete":"Delete","annotation_delete_confirmation_message":"Delete this annotation?","annotation_profile_alt":"Avatar","annotation_anonymous_user_name":"Some User","annotation_posting_message":"Posting...","annotation_point_toggle":"Point annotation mode","annotation_draw_toggle":"Drawing annotation mode","annotation_highlight_toggle":"Highlight text","annotation_highlight_comment":"Add comment to highlighted text","annotation_who_highlighted":"{1} highlighted","annotation_who_drew":"{1} drew","annotation_draw_save":"Save drawing","annotation_draw_delete":"Delete drawing","annotations_load_error":"Annotations could not be loaded for this file. Please refresh the page to try again.","annotations_create_error":"This annotation could not be created. Please try again.","annotations_delete_error":"This annotation could not be deleted. Please try again.","annotations_authorization_error":"Annotations could not be loaded for this file. You may not have permission to take this action.","notification_button_default_text":"Okay","notification_button_default_label":"Clear Notification","notification_annotation_point_mode":"Click anywhere to add a comment to the document","notification_annotation_draw_mode":"Press down and drag the pointer to draw on the document","notification_degraded_preview":"Your connection to {1} is being blocked. Please reach out to your network admin to adjust firewall settings.","notification_cannot_download":"This file could not be downloaded.","notification_cannot_download_due_to_policy":"The file could not be downloaded due to a security policy.","notifications_region_label":"Notifications","notification_icon_error":"Error","notification_icon_info":"Information","notification_icon_success":"Success","notification_icon_warning":"Warning","notification_webgl_context_lost":"WebGL Context Lost","notification_webgl_context_restored":"WebGL Context Restored","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"} : {};
|
|
1233
|
+
const defaultStrings = (0,_isNpmBuild__WEBPACK_IMPORTED_MODULE_0__/* .isNpmBuild */ .w)() ? {"rotate_left":"Rotate left","zoom_current_scale":"Current zoom level","zoom_in":"Zoom in","zoom_out":"Zoom out","enter_fullscreen":"Enter fullscreen","exit_fullscreen":"Exit fullscreen","controls_more":"More options","controls_find":"Find","controls_rotate_document":"Rotate document","controls_rotate_image":"Rotate image","controls_zoom_scale":"Zoom: {1}","controls_view_as_grid":"View as grid","controls_show_thumbnails":"View thumbnails","controls_hide_thumbnails":"Hide thumbnails","controls_shortcut_ctrl":"Ctrl + {1}","controls_toolbar":"Preview controls","drawing_comment":"Markup","region_comment":"Comment on Region","highlight_text":"Highlight and Comment","exit_annotations":"Exit Annotations","annotation_tools":"Comment","annotation_region_comment":"Comment on region","annotation_highlight_text":"Highlight and comment","annotation_tools_toolbar":"Comment and markup tools","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.","notice_info":"Info","toggle_findbar":"Toggle findbar","toggle_thumbnails":"Toggle thumbnails","thumbnails_toggle_show":"Show thumbnails","thumbnails_toggle_hide":"Hide 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","find_placeholder":"Find in document","find_match_count":"{1} of {2}","thumbnail_label":"Page thumbnails","file_preview_label":"File preview","comparison_banner_current":"Current version","comparison_banner_previous":"Previous version","comparison_banner_version":"Version {1}","comparison_banner_actions":"More actions","comparison_banner_open_full_preview":"Open Full Preview","comparison_banner_close":"Close","comparison_banner_make_current":"Make Current","comparison_banner_delete":"Delete","error_generic":"This preview didn’t load. Please try to open or download the file to view.","error_unsupported":"This preview didn’t load because the file type is unsupported. Please try to open or download the file to view.","error_account":"This preview didn’t load because your account is unable to preview this file type. Please try to open or download the file to view.","error_permissions":"This preview didn’t load because you don’t have permission. Please ask the file owner to update permissions.","error_refresh":"This preview didn’t load. Please try to open or download the file to view.","error_rate_limit":"This preview didn’t load because your request was rate limited. Please try to open or download the file to view.","error_reupload":"This preview didn’t load. Please try to open or download the file to view.","error_browser_unsupported":"Your browser doesn’t support preview for {1}. Please try to open or download the file to view.","error_document":"This preview didn’t load because the document may be protected. Please try to open or download the file to view.","error_password_protected":"This preview didn’t load because the document is protected. Please try to open or download the file to view.","error_try_again_later":"This preview didn’t load. Please refresh the page or download file to view.","error_bad_file":"This preview didn’t load. Please try to open or download the file to view.","error_not_downloadable":"Something seems to be wrong with this file. Please refresh the page, and if the issue continues, try to upload a new version.","error_flash_not_enabled":"This preview didn’t load because Flash is not enabled on your browser. Please try to enable Flash or download the file to view.","error_internet_explorer_office_online":"This version of Internet Explorer is out of date and the experience may be degraded. Please try switching to a different browser for a better experience.","error_large_file":"File exceeds supported size for preview. Open or download the file to view.","error_too_many_operations":"The file is too complex to display in your browser. Please download it to view.","error_zero_byte_file":"Cannot preview 0 B file. Open or download the file to view.","filename":"Name","last_modified_date":"Modified","size":"Size","search":"Search","search_results":"Search Results","search_placeholder":"Search files and folders","search_clear":"Clear search","breadcrumb":"Breadcrumb","breadcrumb_truncated":"Show hidden folders","media_autoplay":"Autoplay","media_autoplay_disabled":"Disabled","media_autoplay_enabled":"Enabled","media_play_next":"Play next file","media_play_next_disabled":"Disabled","media_play_next_enabled":"Enabled","media_speed":"Speed","media_speed_normal":"Normal","media_quality":"Quality","media_quality_auto":"Auto","media_guides":"Guides","media_guides_off":"Off","media_guides_default":"Default","media_guides_widescreen_hd":"Widescreen HD","media_guides_vertical":"Vertical","media_guides_square":"Square","media_guides_social_portrait":"Social Portrait","media_guides_cinemascope":"Cinemascope","media_guides_univisium":"Univisium","media_guides_cinema_flat":"Cinema Flat","media_guides_scope":"Scope","media_guides_fullscreen":"Fullscreen","media_guides_ultrawide":"Ultrawide","media_volume_slider":"Volume Slider","media_generating_waveform":"Generating waveform","media_loading":"Loading","media_zoom":"Zoom","media_zoom_slider":"Zoom Slider","media_time_slider":"Media Slider","media_comment_marker":"Comment marker","media_range_comment":"Comment","media_range_clear":"Clear","media_shuttle_forward":"Scanning forward at {1}x","media_shuttle_reverse":"Scanning backward at {1}x","media_mute":"Mute","media_unmute":"Unmute","media_play":"Play","media_pause":"Pause","media_skip_forward":"Skip forward","media_skip_backward":"Skip backward","media_settings":"Settings","media_subtitles_cc":"Subtitles/Closed Captions","media_time_format":"Time format","media_time_format_standard":"Standard time","media_time_format_timecode":"Timecode","media_time_format_frames":"Frame numbers","volume":"Volume","of":"of","subtitles":"Subtitles","off":"Off","media_audio":"Audio","track":"Track","media_auto_generated_captions":"Auto-Generated Captions","auto_generated":"Auto-Generated","box3d_animation_clips":"Animation clips","box3d_camera_projection_perspective":"Perspective","box3d_camera_projection_orthographic":"Orthographic","box3d_reset":"Reset","box3d_toggle_animation":"Play/pause animation","box3d_toggle_vr":"Toggle VR display","box3d_render_mode_lit":"Lit","box3d_render_mode_unlit":"Unlit","box3d_render_mode_normals":"Normals","box3d_render_mode_shape":"Shape","box3d_render_mode_uv_overlay":"UV Overlay","box3d_settings":"Settings","box3d_settings_render_label":"Render mode","box3d_settings_grid_label":"Show grid","box3d_settings_wireframes_label":"Show wireframes","box3d_settings_skeletons_label":"Show skeletons","box3d_settings_projection_label":"Camera Projection","box3d_settings_rotate_label":"Rotate Model","box3d_settings_rotate_left":"Rotate left around {1} axis","box3d_settings_rotate_right":"Rotate right around {1} axis","document_label":"Document Viewer","annotation_add_comment_placeholder":"Add a comment here...","annotation_reply_placeholder":"Post a reply...","annotation_done":"Done","annotation_close":"Close","annotation_cancel":"Cancel","annotation_save":"Save","annotation_post":"Post","annotation_delete":"Delete","annotation_delete_confirmation_message":"Delete this annotation?","annotation_profile_alt":"Avatar","annotation_anonymous_user_name":"Some User","annotation_posting_message":"Posting...","annotation_point_toggle":"Point annotation mode","annotation_draw_toggle":"Drawing annotation mode","annotation_highlight_toggle":"Highlight text","annotation_highlight_comment":"Add comment to highlighted text","annotation_who_highlighted":"{1} highlighted","annotation_who_drew":"{1} drew","annotation_draw_save":"Save drawing","annotation_draw_delete":"Delete drawing","annotations_load_error":"Annotations could not be loaded for this file. Please refresh the page to try again.","annotations_create_error":"This annotation could not be created. Please try again.","annotations_delete_error":"This annotation could not be deleted. Please try again.","annotations_authorization_error":"Annotations could not be loaded for this file. You may not have permission to take this action.","notification_button_default_text":"Okay","notification_button_default_label":"Clear Notification","notification_annotation_point_mode":"Click anywhere to add a comment to the document","notification_annotation_draw_mode":"Press down and drag the pointer to draw on the document","notification_degraded_preview":"Your connection to {1} is being blocked. Please reach out to your network admin to adjust firewall settings.","notification_cannot_download":"This file could not be downloaded.","notification_cannot_download_due_to_policy":"The file could not be downloaded due to a security policy.","notifications_region_label":"Notifications","notification_icon_error":"Error","notification_icon_info":"Information","notification_icon_success":"Success","notification_icon_warning":"Warning","notification_webgl_context_lost":"WebGL Context Lost","notification_webgl_context_restored":"WebGL Context Restored","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"} : {};
|
|
1229
1234
|
let language = true ? "en-US" : 0;
|
|
1230
1235
|
let strings = defaultStrings;
|
|
1231
1236
|
function getLanguage() {
|
|
@@ -1252,67 +1257,55 @@ function translate(key) {
|
|
|
1252
1257
|
|
|
1253
1258
|
/***/ },
|
|
1254
1259
|
|
|
1255
|
-
/***/
|
|
1260
|
+
/***/ 4903
|
|
1256
1261
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1257
1262
|
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
var
|
|
1304
|
-
var Uri_default = /*#__PURE__*/__webpack_require__.n(Uri);
|
|
1305
|
-
;// external "box-ui-elements/es/utils/keys"
|
|
1306
|
-
|
|
1307
|
-
// EXTERNAL MODULE: ./src/lib/DownloadReachability.js
|
|
1308
|
-
var DownloadReachability = __webpack_require__(4312);
|
|
1309
|
-
// EXTERNAL MODULE: ./src/lib/Location.js
|
|
1310
|
-
var Location = __webpack_require__(968);
|
|
1311
|
-
// EXTERNAL MODULE: ./src/lib/PreviewError.js
|
|
1312
|
-
var PreviewError = __webpack_require__(8041);
|
|
1313
|
-
// EXTERNAL MODULE: ./src/lib/events.js
|
|
1314
|
-
var events = __webpack_require__(6526);
|
|
1315
|
-
;// ./src/lib/util.js
|
|
1263
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1264
|
+
/* harmony export */ Bm: () => (/* binding */ removeActivationListener),
|
|
1265
|
+
/* harmony export */ G9: () => (/* binding */ openContentInsideIframe),
|
|
1266
|
+
/* harmony export */ GT: () => (/* binding */ getProp),
|
|
1267
|
+
/* harmony export */ Is: () => (/* binding */ findScriptLocation),
|
|
1268
|
+
/* harmony export */ L4: () => (/* binding */ isBoxWebApp),
|
|
1269
|
+
/* harmony export */ Lb: () => (/* binding */ replacePlaceholders),
|
|
1270
|
+
/* harmony export */ NJ: () => (/* binding */ createContentUrl),
|
|
1271
|
+
/* harmony export */ Ne: () => (/* binding */ appendQueryParams),
|
|
1272
|
+
/* harmony export */ OE: () => (/* binding */ isLocalStorageAvailable),
|
|
1273
|
+
/* harmony export */ Ot: () => (/* binding */ pageNumberFromScroll),
|
|
1274
|
+
/* harmony export */ Pw: () => (/* binding */ loadScripts),
|
|
1275
|
+
/* harmony export */ RU: () => (/* binding */ getCurrentTimeMs),
|
|
1276
|
+
/* harmony export */ Te: () => (/* binding */ convertWatermarkPref),
|
|
1277
|
+
/* harmony export */ Uw: () => (/* binding */ openUrlInsideIframe),
|
|
1278
|
+
/* harmony export */ Vl: () => (/* binding */ handleRepresentationBlobFetch),
|
|
1279
|
+
/* harmony export */ Y_: () => (/* binding */ setDimensions),
|
|
1280
|
+
/* harmony export */ Yf: () => (/* binding */ getDistance),
|
|
1281
|
+
/* harmony export */ cd: () => (/* binding */ addActivationListener),
|
|
1282
|
+
/* harmony export */ dJ: () => (/* binding */ getHeaders),
|
|
1283
|
+
/* harmony export */ dt: () => (/* binding */ getPreloadImageRequestPromisesByBatch),
|
|
1284
|
+
/* harmony export */ fX: () => (/* binding */ createStylesheet),
|
|
1285
|
+
/* harmony export */ fZ: () => (/* binding */ CLIENT_VERSION),
|
|
1286
|
+
/* harmony export */ iP: () => (/* binding */ isValidFileId),
|
|
1287
|
+
/* harmony export */ i_: () => (/* binding */ getPreloadImageRequestPromises),
|
|
1288
|
+
/* harmony export */ jN: () => (/* binding */ appendAuthParams),
|
|
1289
|
+
/* harmony export */ je: () => (/* binding */ activationHandler),
|
|
1290
|
+
/* harmony export */ kd: () => (/* binding */ getClosestPageToPinch),
|
|
1291
|
+
/* harmony export */ lM: () => (/* binding */ appendAuthParamsV2),
|
|
1292
|
+
/* harmony export */ mx: () => (/* binding */ insertTemplate),
|
|
1293
|
+
/* harmony export */ my: () => (/* binding */ createAssetUrlCreator),
|
|
1294
|
+
/* harmony export */ nl: () => (/* binding */ createFragment),
|
|
1295
|
+
/* harmony export */ qj: () => (/* binding */ stripAuthFromString),
|
|
1296
|
+
/* harmony export */ t9: () => (/* binding */ getMidpoint),
|
|
1297
|
+
/* harmony export */ tJ: () => (/* binding */ prefetchAssets),
|
|
1298
|
+
/* harmony export */ w4: () => (/* binding */ loadStylesheets),
|
|
1299
|
+
/* harmony export */ wU: () => (/* binding */ decodeKeydown),
|
|
1300
|
+
/* harmony export */ wo: () => (/* binding */ requires360Viewer)
|
|
1301
|
+
/* harmony export */ });
|
|
1302
|
+
/* unused harmony exports clearPromises, createScript, createPrefetch, createPageUrl, fetchPageImage */
|
|
1303
|
+
/* harmony import */ var jsuri__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9890);
|
|
1304
|
+
/* harmony import */ var jsuri__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jsuri__WEBPACK_IMPORTED_MODULE_0__);
|
|
1305
|
+
/* harmony import */ var _DownloadReachability__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4312);
|
|
1306
|
+
/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(968);
|
|
1307
|
+
/* harmony import */ var _PreviewError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8041);
|
|
1308
|
+
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6526);
|
|
1316
1309
|
/* provided dependency */ var __ = __webpack_require__(441)["Tl"];
|
|
1317
1310
|
function 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; }
|
|
1318
1311
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -1324,11 +1317,10 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
1324
1317
|
|
|
1325
1318
|
|
|
1326
1319
|
|
|
1327
|
-
|
|
1328
1320
|
const CLIENT_NAME = "box-content-preview"; // eslint-disable-line no-undef
|
|
1329
1321
|
const CLIENT_NAME_KEY = 'box_client_name';
|
|
1330
1322
|
const CLIENT_VERSION_KEY = 'box_client_version';
|
|
1331
|
-
const CLIENT_VERSION = "3.
|
|
1323
|
+
const CLIENT_VERSION = "3.130.0"; // eslint-disable-line no-undef
|
|
1332
1324
|
const HEADER_CLIENT_NAME = 'X-Box-Client-Name';
|
|
1333
1325
|
const HEADER_CLIENT_VERSION = 'X-Box-Client-Version';
|
|
1334
1326
|
const PROMISE_MAP = {};
|
|
@@ -1526,7 +1518,7 @@ function appendQueryParams(url, queryParams) {
|
|
|
1526
1518
|
if (!queryParams) {
|
|
1527
1519
|
return url;
|
|
1528
1520
|
}
|
|
1529
|
-
const uri = new (
|
|
1521
|
+
const uri = new (jsuri__WEBPACK_IMPORTED_MODULE_0___default())(url);
|
|
1530
1522
|
Object.keys(queryParams).forEach(key => {
|
|
1531
1523
|
const value = queryParams[key];
|
|
1532
1524
|
if (value) {
|
|
@@ -1593,9 +1585,9 @@ function appendAuthParamsV2(url, sharedLink = '', password = '') {
|
|
|
1593
1585
|
* @return {string} Content url
|
|
1594
1586
|
*/
|
|
1595
1587
|
function createContentUrl(template, asset, resolveCacheBuster = false) {
|
|
1596
|
-
if (
|
|
1588
|
+
if (_DownloadReachability__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.isDownloadHostBlocked()) {
|
|
1597
1589
|
// eslint-disable-next-line
|
|
1598
|
-
template =
|
|
1590
|
+
template = _DownloadReachability__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.replaceDownloadHostWithDefault(template);
|
|
1599
1591
|
}
|
|
1600
1592
|
const url = template.replace('{+asset_path}', asset || '');
|
|
1601
1593
|
if (!resolveCacheBuster) {
|
|
@@ -1721,14 +1713,51 @@ function loadScripts(urls, disableAMD = false) {
|
|
|
1721
1713
|
}
|
|
1722
1714
|
|
|
1723
1715
|
/**
|
|
1724
|
-
* Function to decode key down events into keys
|
|
1716
|
+
* Function to decode key down events into keys, such as Shift+I, Control+I or Space.
|
|
1717
|
+
* Works for both React synthetic and native events. Only one modifier is kept, in the order
|
|
1718
|
+
* Control, Shift, Meta, and Alt is ignored. Returns an empty string for a modifier on its own.
|
|
1725
1719
|
*
|
|
1726
1720
|
* @public
|
|
1727
1721
|
* @param {KeyboardEvent<Element>} event - Keydown event
|
|
1728
1722
|
* @return {string} Decoded keydown key
|
|
1729
1723
|
*/
|
|
1730
1724
|
function decodeKeydown(event) {
|
|
1731
|
-
|
|
1725
|
+
let modifier = '';
|
|
1726
|
+
|
|
1727
|
+
// keyIdentifier is the older spec still sent by some Safari versions
|
|
1728
|
+
let key = event.key || event.keyIdentifier || '';
|
|
1729
|
+
if (event.ctrlKey) {
|
|
1730
|
+
modifier = 'Control';
|
|
1731
|
+
} else if (event.shiftKey) {
|
|
1732
|
+
modifier = 'Shift';
|
|
1733
|
+
} else if (event.metaKey) {
|
|
1734
|
+
modifier = 'Meta';
|
|
1735
|
+
}
|
|
1736
|
+
if (key === modifier) {
|
|
1737
|
+
key = '';
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
// keyIdentifier reports characters as UTF8 code points, such as U+0041
|
|
1741
|
+
if (key.indexOf('U+') === 0) {
|
|
1742
|
+
key = key === 'U+001B' ? 'Escape' : String.fromCharCode(Number(key.replace('U+', '0x')));
|
|
1743
|
+
}
|
|
1744
|
+
if (!key) {
|
|
1745
|
+
return '';
|
|
1746
|
+
}
|
|
1747
|
+
if (key === ' ') {
|
|
1748
|
+
key = 'Space';
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
// Legacy Edge reports Esc
|
|
1752
|
+
if (key === 'Esc') {
|
|
1753
|
+
key = 'Escape';
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
// keyIdentifier does not prefix arrow keys with Arrow
|
|
1757
|
+
if (key === 'Right' || key === 'Left' || key === 'Down' || key === 'Up') {
|
|
1758
|
+
key = `Arrow${key}`;
|
|
1759
|
+
}
|
|
1760
|
+
return modifier ? `${modifier}+${key}` : key;
|
|
1732
1761
|
}
|
|
1733
1762
|
|
|
1734
1763
|
/**
|
|
@@ -2029,7 +2058,7 @@ function isValidFileId(fileId) {
|
|
|
2029
2058
|
*/
|
|
2030
2059
|
function isBoxWebApp() {
|
|
2031
2060
|
const boxHostnameRegex = /(app|ent)\.(box\.com|boxcn\.net|boxenterprise\.net)/;
|
|
2032
|
-
return boxHostnameRegex.test(
|
|
2061
|
+
return boxHostnameRegex.test(_Location__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.getHostname());
|
|
2033
2062
|
}
|
|
2034
2063
|
|
|
2035
2064
|
/**
|
|
@@ -2076,7 +2105,7 @@ function isLocalStorageAvailable() {
|
|
|
2076
2105
|
function handleRepresentationBlobFetch(response) {
|
|
2077
2106
|
const status = getProp(response, 'status');
|
|
2078
2107
|
if (status === 202) {
|
|
2079
|
-
const error = new
|
|
2108
|
+
const error = new _PreviewError__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A(_events__WEBPACK_IMPORTED_MODULE_4__/* .ERROR_CODE */ .bo.DELETED_REPS, __('error_refresh'), {
|
|
2080
2109
|
isRepDeleted: true
|
|
2081
2110
|
});
|
|
2082
2111
|
return Promise.reject(error);
|
|
@@ -3924,8 +3953,8 @@ function useWindowVirtualizer(options) {
|
|
|
3924
3953
|
var blueprint_web_ = __webpack_require__(8912);
|
|
3925
3954
|
// EXTERNAL MODULE: ./node_modules/@box/item-icon/dist/esm/lib/item-icon/item-icon.js + 2 modules
|
|
3926
3955
|
var item_icon = __webpack_require__(1057);
|
|
3927
|
-
// EXTERNAL MODULE: ./node_modules/@box/item-icon/dist/esm/lib/utils.js
|
|
3928
|
-
var utils = __webpack_require__(
|
|
3956
|
+
// EXTERNAL MODULE: ./node_modules/@box/item-icon/dist/esm/lib/utils.js
|
|
3957
|
+
var utils = __webpack_require__(76);
|
|
3929
3958
|
;// ./node_modules/@box/readable-time/dist/esm/lib/constants.js
|
|
3930
3959
|
var ONE_HOUR_MS=36e5,nonUppercaseLocales=[`ru`];
|
|
3931
3960
|
;// ./node_modules/@box/readable-time/dist/esm/lib/utils.js
|
|
@@ -4075,8 +4104,9 @@ function ArchiveTableV2({
|
|
|
4075
4104
|
}, /*#__PURE__*/external_react_["default"].createElement(item_icon/* ItemIcon */.zG, {
|
|
4076
4105
|
ariaHidden: true,
|
|
4077
4106
|
iconType: isFolder ? 'folder-plain' : (0,utils/* getFileCategoryByExtension */.N)(extension)
|
|
4078
|
-
}), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.
|
|
4079
|
-
as: "span"
|
|
4107
|
+
}), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.EllipsizableText, {
|
|
4108
|
+
as: "span",
|
|
4109
|
+
lineClamp: 1
|
|
4080
4110
|
}, item.name))), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Cell, null, item.modified_at ? /*#__PURE__*/external_react_["default"].createElement(ReadableTime, {
|
|
4081
4111
|
alwaysShowTime: true,
|
|
4082
4112
|
textProps: {
|
|
@@ -4095,6 +4125,14 @@ function ArchiveTableV2({
|
|
|
4095
4125
|
}
|
|
4096
4126
|
}))));
|
|
4097
4127
|
}
|
|
4128
|
+
// EXTERNAL MODULE: external "@box/blueprint-web-assets/icons/Medium"
|
|
4129
|
+
var Medium_ = __webpack_require__(9747);
|
|
4130
|
+
// EXTERNAL MODULE: external "@box/blueprint-web-assets/icons/Fill"
|
|
4131
|
+
var Fill_ = __webpack_require__(7693);
|
|
4132
|
+
// EXTERNAL MODULE: external "@box/blueprint-web-assets/tokens/tokens"
|
|
4133
|
+
var tokens_ = __webpack_require__(8380);
|
|
4134
|
+
// EXTERNAL MODULE: ./src/lib/viewers/controls/settings/stopMenuKeyPropagation.ts
|
|
4135
|
+
var stopMenuKeyPropagation = __webpack_require__(9646);
|
|
4098
4136
|
;// ./src/lib/viewers/archive/BreadcrumbsV2.scss
|
|
4099
4137
|
// extracted by mini-css-extract-plugin
|
|
4100
4138
|
|
|
@@ -4104,6 +4142,11 @@ function ArchiveTableV2({
|
|
|
4104
4142
|
|
|
4105
4143
|
|
|
4106
4144
|
|
|
4145
|
+
|
|
4146
|
+
|
|
4147
|
+
|
|
4148
|
+
|
|
4149
|
+
|
|
4107
4150
|
function BreadcrumbsV2({
|
|
4108
4151
|
filename,
|
|
4109
4152
|
fullPath,
|
|
@@ -4111,6 +4154,9 @@ function BreadcrumbsV2({
|
|
|
4111
4154
|
resin,
|
|
4112
4155
|
view
|
|
4113
4156
|
}) {
|
|
4157
|
+
const container = external_react_["default"].useContext(BlueprintProviders/* PortalContainerContext */.n);
|
|
4158
|
+
const breadcrumbRef = external_react_["default"].useRef(null);
|
|
4159
|
+
const [isCompact, setIsCompact] = external_react_["default"].useState(false);
|
|
4114
4160
|
const pathNames = fullPath === constants/* ROOT_FOLDER */.Od ? [] : fullPath.split('/').slice(0, -1);
|
|
4115
4161
|
const crumbs = [{
|
|
4116
4162
|
id: constants/* ROOT_FOLDER */.Od,
|
|
@@ -4119,9 +4165,35 @@ function BreadcrumbsV2({
|
|
|
4119
4165
|
id: `${pathNames.slice(0, index + 1).join('/')}/`,
|
|
4120
4166
|
name
|
|
4121
4167
|
}))];
|
|
4168
|
+
let hiddenCrumbs = [];
|
|
4169
|
+
let visibleCrumbs = crumbs;
|
|
4170
|
+
if (isCompact) {
|
|
4171
|
+
hiddenCrumbs = crumbs.slice(0, -1);
|
|
4172
|
+
visibleCrumbs = crumbs.slice(-1);
|
|
4173
|
+
} else if (crumbs.length > 4) {
|
|
4174
|
+
hiddenCrumbs = crumbs.slice(1, -2);
|
|
4175
|
+
visibleCrumbs = [crumbs[0], ...crumbs.slice(-2)];
|
|
4176
|
+
}
|
|
4177
|
+
external_react_["default"].useLayoutEffect(() => {
|
|
4178
|
+
const breadcrumb = breadcrumbRef.current;
|
|
4179
|
+
if (!breadcrumb) {
|
|
4180
|
+
return undefined;
|
|
4181
|
+
}
|
|
4182
|
+
const updateCompactLayout = () => {
|
|
4183
|
+
const {
|
|
4184
|
+
clientWidth
|
|
4185
|
+
} = breadcrumb;
|
|
4186
|
+
setIsCompact(clientWidth > 0 && clientWidth <= parseInt(tokens_.BreakpointMedium, 10));
|
|
4187
|
+
};
|
|
4188
|
+
updateCompactLayout();
|
|
4189
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
4190
|
+
return undefined;
|
|
4191
|
+
}
|
|
4192
|
+
const observer = new ResizeObserver(updateCompactLayout);
|
|
4193
|
+
observer.observe(breadcrumb);
|
|
4194
|
+
return () => observer.disconnect();
|
|
4195
|
+
}, []);
|
|
4122
4196
|
const handlePageLinkClick = path => {
|
|
4123
|
-
// Blueprint crumbs accept no per-item attributes, so the click is logged programmatically
|
|
4124
|
-
// (precedent: MP3Viewer.js recordToolbarAction)
|
|
4125
4197
|
resin?.recordAction({
|
|
4126
4198
|
action: 'programmatic',
|
|
4127
4199
|
component: 'archive',
|
|
@@ -4130,19 +4202,66 @@ function BreadcrumbsV2({
|
|
|
4130
4202
|
});
|
|
4131
4203
|
onClick(path);
|
|
4132
4204
|
};
|
|
4205
|
+
const collapsedCrumbs = hiddenCrumbs.length > 0 && /*#__PURE__*/external_react_["default"].createElement("li", {
|
|
4206
|
+
className: "bp-BreadcrumbsV2-overflow"
|
|
4207
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Root, {
|
|
4208
|
+
modal: false
|
|
4209
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Trigger, {
|
|
4210
|
+
asChild: true
|
|
4211
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.IconButton, {
|
|
4212
|
+
"aria-label": BreadcrumbsV2_('breadcrumb_truncated'),
|
|
4213
|
+
icon: Medium_.Ellipsis,
|
|
4214
|
+
size: "x-small"
|
|
4215
|
+
})), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Content, {
|
|
4216
|
+
align: "start",
|
|
4217
|
+
className: "bp-BreadcrumbsV2-menu",
|
|
4218
|
+
container: container ?? undefined,
|
|
4219
|
+
onEscapeKeyDown: stopMenuKeyPropagation/* stopEscapePropagation */.s,
|
|
4220
|
+
onKeyDown: stopMenuKeyPropagation/* stopKeyPropagation */.a
|
|
4221
|
+
}, hiddenCrumbs.map(crumb => /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Tooltip, {
|
|
4222
|
+
key: crumb.id,
|
|
4223
|
+
content: crumb.name
|
|
4224
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Item, {
|
|
4225
|
+
onSelect: () => handlePageLinkClick(crumb.id)
|
|
4226
|
+
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Text, {
|
|
4227
|
+
as: "span",
|
|
4228
|
+
className: "bp-BreadcrumbsV2-menuLabel"
|
|
4229
|
+
}, crumb.name)))))), /*#__PURE__*/external_react_["default"].createElement(Fill_.PointerRight, {
|
|
4230
|
+
"aria-hidden": "true",
|
|
4231
|
+
height: tokens_.bpSize030,
|
|
4232
|
+
width: tokens_.bpSize030
|
|
4233
|
+
}));
|
|
4133
4234
|
return /*#__PURE__*/external_react_["default"].createElement("div", {
|
|
4235
|
+
ref: breadcrumbRef,
|
|
4134
4236
|
className: "bp-BreadcrumbsV2",
|
|
4135
4237
|
"data-testid": "bp-archive-breadcrumbs"
|
|
4136
4238
|
}, view === constants/* VIEWS */.Vw.VIEW_SEARCH ? /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Text, {
|
|
4137
4239
|
as: "span",
|
|
4138
4240
|
variant: "bodyDefaultBold"
|
|
4139
|
-
}, BreadcrumbsV2_('search_results')) : /*#__PURE__*/external_react_["default"].createElement(
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4241
|
+
}, BreadcrumbsV2_('search_results')) : /*#__PURE__*/external_react_["default"].createElement("nav", {
|
|
4242
|
+
"aria-label": BreadcrumbsV2_('breadcrumb'),
|
|
4243
|
+
className: "bp-BreadcrumbsV2-nav"
|
|
4244
|
+
}, /*#__PURE__*/external_react_["default"].createElement("ol", {
|
|
4245
|
+
className: "bp-BreadcrumbsV2-list"
|
|
4246
|
+
}, isCompact && collapsedCrumbs, visibleCrumbs.map((crumb, index) => /*#__PURE__*/external_react_["default"].createElement(external_react_["default"].Fragment, {
|
|
4247
|
+
key: crumb.id
|
|
4248
|
+
}, /*#__PURE__*/external_react_["default"].createElement("li", {
|
|
4249
|
+
className: crumb.id === fullPath ? 'bp-BreadcrumbsV2-current' : 'bp-BreadcrumbsV2-ancestor'
|
|
4250
|
+
}, crumb.id === fullPath ? /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Focusable, null, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.EllipsizableText, {
|
|
4251
|
+
"aria-current": "page",
|
|
4252
|
+
as: "span",
|
|
4253
|
+
lineClamp: 1,
|
|
4254
|
+
variant: "bodyLargeBold"
|
|
4255
|
+
}, crumb.name)) : /*#__PURE__*/external_react_["default"].createElement(external_react_["default"].Fragment, null, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.TextButton, {
|
|
4256
|
+
color: "textOnLightSecondary",
|
|
4257
|
+
ellipsizable: true,
|
|
4258
|
+
onClick: () => handlePageLinkClick(crumb.id),
|
|
4259
|
+
variant: "bodyLarge"
|
|
4260
|
+
}, crumb.name), /*#__PURE__*/external_react_["default"].createElement(Fill_.PointerRight, {
|
|
4261
|
+
"aria-hidden": "true",
|
|
4262
|
+
height: tokens_.bpSize030,
|
|
4263
|
+
width: tokens_.bpSize030
|
|
4264
|
+
}))), !isCompact && index === 0 && collapsedCrumbs)))));
|
|
4146
4265
|
}
|
|
4147
4266
|
;// ./src/lib/viewers/archive/SearchBarV2.scss
|
|
4148
4267
|
// extracted by mini-css-extract-plugin
|
|
@@ -6536,8 +6655,8 @@ var SettingsContext = __webpack_require__(3072);
|
|
|
6536
6655
|
var BlueprintProviders = __webpack_require__(2758);
|
|
6537
6656
|
// EXTERNAL MODULE: ./src/lib/constants.js
|
|
6538
6657
|
var constants = __webpack_require__(9130);
|
|
6539
|
-
// EXTERNAL MODULE: ./src/lib/util.js
|
|
6540
|
-
var util = __webpack_require__(
|
|
6658
|
+
// EXTERNAL MODULE: ./src/lib/util.js
|
|
6659
|
+
var util = __webpack_require__(4903);
|
|
6541
6660
|
;// ./src/lib/viewers/controls/media/MediaSettingsV2.scss
|
|
6542
6661
|
// extracted by mini-css-extract-plugin
|
|
6543
6662
|
|
|
@@ -6725,7 +6844,7 @@ function MediaSettingsV2({
|
|
|
6725
6844
|
buttonType: "icon",
|
|
6726
6845
|
"data-target-id": "MediaSettingsV2-toggle",
|
|
6727
6846
|
label: __('media_settings'),
|
|
6728
|
-
onKeyDown: utils/*
|
|
6847
|
+
onKeyDown: utils/* stopMenuTriggerKeyPropagation */.z9,
|
|
6729
6848
|
size: "large",
|
|
6730
6849
|
variant: "on-dark"
|
|
6731
6850
|
})), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Content, {
|
|
@@ -7150,10 +7269,12 @@ var TabularDigits = __webpack_require__(2459);
|
|
|
7150
7269
|
var videoFps = __webpack_require__(3234);
|
|
7151
7270
|
// EXTERNAL MODULE: ./src/lib/BlueprintProviders.tsx
|
|
7152
7271
|
var BlueprintProviders = __webpack_require__(2758);
|
|
7153
|
-
// EXTERNAL MODULE: ./src/lib/util.js
|
|
7154
|
-
var util = __webpack_require__(
|
|
7272
|
+
// EXTERNAL MODULE: ./src/lib/util.js
|
|
7273
|
+
var util = __webpack_require__(4903);
|
|
7155
7274
|
// EXTERNAL MODULE: ./src/lib/viewers/controls/media/DurationLabels.tsx + 1 modules
|
|
7156
7275
|
var DurationLabels = __webpack_require__(820);
|
|
7276
|
+
// EXTERNAL MODULE: ./src/lib/viewers/controls/media/utils.ts
|
|
7277
|
+
var utils = __webpack_require__(5346);
|
|
7157
7278
|
;// ./src/lib/viewers/controls/media/TimestampControl.scss
|
|
7158
7279
|
// extracted by mini-css-extract-plugin
|
|
7159
7280
|
|
|
@@ -7175,6 +7296,7 @@ var DurationLabels = __webpack_require__(820);
|
|
|
7175
7296
|
|
|
7176
7297
|
|
|
7177
7298
|
|
|
7299
|
+
|
|
7178
7300
|
let TimeFormat = /*#__PURE__*/function (TimeFormat) {
|
|
7179
7301
|
TimeFormat["STANDARD"] = "standard";
|
|
7180
7302
|
TimeFormat["TIMECODE"] = "timecode";
|
|
@@ -7192,14 +7314,6 @@ function formatLabel(time, format, fps) {
|
|
|
7192
7314
|
return (0,DurationLabels/* formatTime */.f)(time);
|
|
7193
7315
|
}
|
|
7194
7316
|
}
|
|
7195
|
-
|
|
7196
|
-
// The viewer maps Space, Enter and the arrow keys to playback, seek and volume shortcuts.
|
|
7197
|
-
const stopMenuTriggerKeyPropagation = event => {
|
|
7198
|
-
const key = (0,util/* decodeKeydown */.wU)(event);
|
|
7199
|
-
if (key === 'Enter' || key === 'Space' || key === 'ArrowDown' || key === 'ArrowUp') {
|
|
7200
|
-
event.stopPropagation();
|
|
7201
|
-
}
|
|
7202
|
-
};
|
|
7203
7317
|
const FORMAT_OPTIONS = [{
|
|
7204
7318
|
label: () => __('media_time_format_standard'),
|
|
7205
7319
|
value: TimeFormat.STANDARD
|
|
@@ -7379,7 +7493,7 @@ function TimestampControl({
|
|
|
7379
7493
|
}),
|
|
7380
7494
|
"data-resin-target": "timeFormat",
|
|
7381
7495
|
"data-testid": "bp-TimestampControl-button",
|
|
7382
|
-
onKeyDown: stopMenuTriggerKeyPropagation,
|
|
7496
|
+
onKeyDown: utils/* stopMenuTriggerKeyPropagation */.z9,
|
|
7383
7497
|
type: "button"
|
|
7384
7498
|
}, renderBlueprintTime(), renderChevron())), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.DropdownMenu.Content, {
|
|
7385
7499
|
align: "center",
|
|
@@ -7603,8 +7717,8 @@ function IconVolumeMax24(props) {
|
|
|
7603
7717
|
// EXTERNAL MODULE: ./node_modules/lodash/noop.js
|
|
7604
7718
|
var noop = __webpack_require__(3950);
|
|
7605
7719
|
var noop_default = /*#__PURE__*/__webpack_require__.n(noop);
|
|
7606
|
-
// EXTERNAL MODULE: ./src/lib/util.js
|
|
7607
|
-
var util = __webpack_require__(
|
|
7720
|
+
// EXTERNAL MODULE: ./src/lib/util.js
|
|
7721
|
+
var util = __webpack_require__(4903);
|
|
7608
7722
|
;// ./src/lib/viewers/controls/slider/VolumeSliderControl.scss
|
|
7609
7723
|
// extracted by mini-css-extract-plugin
|
|
7610
7724
|
|
|
@@ -8305,10 +8419,11 @@ function useDismissableMarkerSelection(hostSelectedId = null, selectionSeq = nul
|
|
|
8305
8419
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8306
8420
|
/* harmony export */ B9: () => (/* binding */ stopToolbarKeyPropagation),
|
|
8307
8421
|
/* harmony export */ KN: () => (/* binding */ percent),
|
|
8308
|
-
/* harmony export */ My: () => (/* binding */ stopActivationKeyPropagation)
|
|
8422
|
+
/* harmony export */ My: () => (/* binding */ stopActivationKeyPropagation),
|
|
8423
|
+
/* harmony export */ z9: () => (/* binding */ stopMenuTriggerKeyPropagation)
|
|
8309
8424
|
/* harmony export */ });
|
|
8310
8425
|
/* unused harmony export round */
|
|
8311
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8426
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4903);
|
|
8312
8427
|
|
|
8313
8428
|
const round = value => {
|
|
8314
8429
|
return +value.toFixed(4);
|
|
@@ -8324,6 +8439,14 @@ const stopActivationKeyPropagation = event => {
|
|
|
8324
8439
|
event.stopPropagation();
|
|
8325
8440
|
}
|
|
8326
8441
|
};
|
|
8442
|
+
const MENU_TRIGGER_KEYS = new Set(['ArrowDown', 'ArrowUp', 'Enter', 'Space']);
|
|
8443
|
+
|
|
8444
|
+
// Menu triggers also open on the vertical arrows, which the viewer maps to volume and comment seeking.
|
|
8445
|
+
const stopMenuTriggerKeyPropagation = event => {
|
|
8446
|
+
if (MENU_TRIGGER_KEYS.has((0,_util__WEBPACK_IMPORTED_MODULE_0__/* .decodeKeydown */ .wU)(event))) {
|
|
8447
|
+
event.stopPropagation();
|
|
8448
|
+
}
|
|
8449
|
+
};
|
|
8327
8450
|
const TOOLBAR_KEYS = new Set(['ArrowLeft', 'ArrowRight', 'End', 'Enter', 'Home', 'Space']);
|
|
8328
8451
|
|
|
8329
8452
|
// Toolbars move focus with the arrow, Home and End keys, which the viewer maps to seeking.
|
|
@@ -8438,8 +8561,8 @@ function SettingsFlyout({
|
|
|
8438
8561
|
}
|
|
8439
8562
|
}, isOpen && children);
|
|
8440
8563
|
}
|
|
8441
|
-
// EXTERNAL MODULE: ./src/lib/util.js
|
|
8442
|
-
var util = __webpack_require__(
|
|
8564
|
+
// EXTERNAL MODULE: ./src/lib/util.js
|
|
8565
|
+
var util = __webpack_require__(4903);
|
|
8443
8566
|
;// ./src/lib/viewers/controls/settings/SettingsList.tsx
|
|
8444
8567
|
const _excluded = ["children", "className", "isActive", "onKeyDown"];
|
|
8445
8568
|
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); }
|
|
@@ -8998,8 +9121,8 @@ var classnames = __webpack_require__(2485);
|
|
|
8998
9121
|
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
8999
9122
|
// EXTERNAL MODULE: ./src/lib/viewers/controls/icons/IconCheckMark24.tsx
|
|
9000
9123
|
var IconCheckMark24 = __webpack_require__(6815);
|
|
9001
|
-
// EXTERNAL MODULE: ./src/lib/util.js
|
|
9002
|
-
var util = __webpack_require__(
|
|
9124
|
+
// EXTERNAL MODULE: ./src/lib/util.js
|
|
9125
|
+
var util = __webpack_require__(4903);
|
|
9003
9126
|
;// ./src/lib/viewers/controls/settings/SettingsRadioItem.scss
|
|
9004
9127
|
// extracted by mini-css-extract-plugin
|
|
9005
9128
|
|
|
@@ -9188,8 +9311,8 @@ var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
|
9188
9311
|
// EXTERNAL MODULE: ./node_modules/lodash/noop.js
|
|
9189
9312
|
var noop = __webpack_require__(3950);
|
|
9190
9313
|
var noop_default = /*#__PURE__*/__webpack_require__.n(noop);
|
|
9191
|
-
// EXTERNAL MODULE: ./src/lib/util.js
|
|
9192
|
-
var util = __webpack_require__(
|
|
9314
|
+
// EXTERNAL MODULE: ./src/lib/util.js
|
|
9315
|
+
var util = __webpack_require__(4903);
|
|
9193
9316
|
;// ./src/lib/viewers/controls/slider/SliderControl.scss
|
|
9194
9317
|
// extracted by mini-css-extract-plugin
|
|
9195
9318
|
|
|
@@ -9758,8 +9881,8 @@ function IconShuttleForward(props) {
|
|
|
9758
9881
|
}));
|
|
9759
9882
|
}
|
|
9760
9883
|
/* harmony default export */ const icons_IconShuttleForward = (IconShuttleForward);
|
|
9761
|
-
// EXTERNAL MODULE: ./src/lib/util.js
|
|
9762
|
-
var util = __webpack_require__(
|
|
9884
|
+
// EXTERNAL MODULE: ./src/lib/util.js
|
|
9885
|
+
var util = __webpack_require__(4903);
|
|
9763
9886
|
;// ./src/lib/viewers/media/waveform/WaveformShuttleIndicator.scss
|
|
9764
9887
|
// extracted by mini-css-extract-plugin
|
|
9765
9888
|
|
|
@@ -13480,7 +13603,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13480
13603
|
/* harmony export */ loadPeaks: () => (/* binding */ loadPeaks),
|
|
13481
13604
|
/* harmony export */ runClientDecode: () => (/* binding */ runClientDecode)
|
|
13482
13605
|
/* harmony export */ });
|
|
13483
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
13606
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4903);
|
|
13484
13607
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4929);
|
|
13485
13608
|
/* harmony import */ var _createWaveformLoader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4971);
|
|
13486
13609
|
/* harmony import */ var _validateWaveformPayload__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1053);
|
|
@@ -21643,7 +21766,18 @@ var x = (y) => {
|
|
|
21643
21766
|
var x = {}; __webpack_require__.d(x, y); return x
|
|
21644
21767
|
}
|
|
21645
21768
|
var y = (x) => (() => (x))
|
|
21646
|
-
module.exports = x({ ["BlueprintProvider"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.BlueprintProvider), ["
|
|
21769
|
+
module.exports = x({ ["BlueprintProvider"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.BlueprintProvider), ["Button"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Button), ["Cell"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Cell), ["Column"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Column), ["DataTableWrapper"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.DataTableWrapper), ["DropdownMenu"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.DropdownMenu), ["EllipsizableText"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.EllipsizableText), ["EmptyState"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.EmptyState), ["Focusable"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Focusable), ["Ghost"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Ghost), ["IconButton"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.IconButton), ["IconToggleButton"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.IconToggleButton), ["InlineNotice"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.InlineNotice), ["Link"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Link), ["LoadingIndicator"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.LoadingIndicator), ["Modal"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Modal), ["Notification"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Notification), ["Popover"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Popover), ["Row"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Row), ["SearchInput"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.SearchInput), ["Select"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Select), ["SelectMenu"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.SelectMenu), ["Switch"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Switch), ["Table"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Table), ["TableBody"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TableBody), ["TableHeader"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TableHeader), ["Text"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Text), ["TextButton"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TextButton), ["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), ["useNotification"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.useNotification) });
|
|
21770
|
+
|
|
21771
|
+
/***/ },
|
|
21772
|
+
|
|
21773
|
+
/***/ 7693
|
|
21774
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
21775
|
+
|
|
21776
|
+
var x = (y) => {
|
|
21777
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
|
21778
|
+
}
|
|
21779
|
+
var y = (x) => (() => (x))
|
|
21780
|
+
module.exports = x({ ["PointerRight"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Fill_15c08185__.PointerRight), ["Search"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Fill_15c08185__.Search) });
|
|
21647
21781
|
|
|
21648
21782
|
/***/ },
|
|
21649
21783
|
|
|
@@ -21676,7 +21810,7 @@ var x = (y) => {
|
|
|
21676
21810
|
var x = {}; __webpack_require__.d(x, y); return x
|
|
21677
21811
|
}
|
|
21678
21812
|
var y = (x) => (() => (x))
|
|
21679
|
-
module.exports = x({ ["BoxBlue100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.BoxBlue100), ["GreenLight100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.GreenLight100), ["Grimace100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Grimace100), ["Size3"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Size3), ["Size5"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Size5), ["Size8"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Size8), ["WatermelonRed100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.WatermelonRed100), ["Yellorange100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Yellorange100), ["Yellow100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Yellow100), ["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) });
|
|
21813
|
+
module.exports = x({ ["BoxBlue100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.BoxBlue100), ["BreakpointMedium"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.BreakpointMedium), ["GrayWhite"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.GrayWhite), ["GreenLight100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.GreenLight100), ["Grimace100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Grimace100), ["Size3"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Size3), ["Size5"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Size5), ["Size8"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Size8), ["WatermelonRed100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.WatermelonRed100), ["Yellorange100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Yellorange100), ["Yellow100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.Yellow100), ["bpBoxBlue100"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.bpBoxBlue100), ["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), ["bpSize030"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_tokens_tokens_b764a744__.bpSize030) });
|
|
21680
21814
|
|
|
21681
21815
|
/***/ },
|
|
21682
21816
|
|
|
@@ -36759,8 +36893,8 @@ var pickBy = __webpack_require__(1086);
|
|
|
36759
36893
|
var pickBy_default = /*#__PURE__*/__webpack_require__.n(pickBy);
|
|
36760
36894
|
// EXTERNAL MODULE: ./src/lib/DownloadReachability.js
|
|
36761
36895
|
var DownloadReachability = __webpack_require__(4312);
|
|
36762
|
-
// EXTERNAL MODULE: ./src/lib/util.js
|
|
36763
|
-
var util = __webpack_require__(
|
|
36896
|
+
// EXTERNAL MODULE: ./src/lib/util.js
|
|
36897
|
+
var util = __webpack_require__(4903);
|
|
36764
36898
|
// EXTERNAL MODULE: ./src/lib/constants.js
|
|
36765
36899
|
var constants = __webpack_require__(9130);
|
|
36766
36900
|
;// ./src/lib/metadataAPI.js
|
|
@@ -37308,7 +37442,7 @@ var isNpmBuild = __webpack_require__(8080);
|
|
|
37308
37442
|
;// ./src/lib/Logger.js
|
|
37309
37443
|
/* eslint-disable no-undef */
|
|
37310
37444
|
const CLIENT_NAME = "box-content-preview";
|
|
37311
|
-
const CLIENT_VERSION = "3.
|
|
37445
|
+
const CLIENT_VERSION = "3.130.0";
|
|
37312
37446
|
/* eslint-enable no-undef */
|
|
37313
37447
|
|
|
37314
37448
|
class Logger {
|
|
@@ -38957,9 +39091,14 @@ class BaseViewer extends (events_default()) {
|
|
|
38957
39091
|
*
|
|
38958
39092
|
* @protected
|
|
38959
39093
|
* @param {string} key - Keydown key
|
|
39094
|
+
* @param {KeyboardEvent} [event] - Keydown event
|
|
38960
39095
|
* @return {boolean} Consumed or not
|
|
38961
39096
|
*/
|
|
38962
|
-
handleFullscreenKey(key) {
|
|
39097
|
+
handleFullscreenKey(key, event) {
|
|
39098
|
+
// Decoded keys drop Alt, and Alt+F opens the browser menu on Windows
|
|
39099
|
+
if (event?.altKey) {
|
|
39100
|
+
return false;
|
|
39101
|
+
}
|
|
38963
39102
|
if ((key === 'f' || key === 'F') && this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ)) {
|
|
38964
39103
|
this.toggleFullscreen();
|
|
38965
39104
|
return true;
|
|
@@ -40645,9 +40784,10 @@ class ImageBaseViewer extends viewers_BaseViewer {
|
|
|
40645
40784
|
*
|
|
40646
40785
|
* @private
|
|
40647
40786
|
* @param {string} key - Keydown key
|
|
40787
|
+
* @param {KeyboardEvent} [event] - Keydown event
|
|
40648
40788
|
* @return {boolean} Consumed or not
|
|
40649
40789
|
*/
|
|
40650
|
-
onKeydown(key) {
|
|
40790
|
+
onKeydown(key, event) {
|
|
40651
40791
|
// Return false when media controls are not ready or are focused
|
|
40652
40792
|
if (!this.controls) {
|
|
40653
40793
|
return false;
|
|
@@ -40660,7 +40800,7 @@ class ImageBaseViewer extends viewers_BaseViewer {
|
|
|
40660
40800
|
this.zoomOut();
|
|
40661
40801
|
return true;
|
|
40662
40802
|
}
|
|
40663
|
-
return this.handleFullscreenKey(key);
|
|
40803
|
+
return this.handleFullscreenKey(key, event);
|
|
40664
40804
|
}
|
|
40665
40805
|
|
|
40666
40806
|
/**
|
|
@@ -41672,7 +41812,8 @@ var utils = __webpack_require__(5346);
|
|
|
41672
41812
|
// extracted by mini-css-extract-plugin
|
|
41673
41813
|
|
|
41674
41814
|
;// ./src/lib/viewers/controls/controls-bar/ControlsBarV2.tsx
|
|
41675
|
-
|
|
41815
|
+
/* provided dependency */ var ControlsBarV2_ = __webpack_require__(441)["Tl"];
|
|
41816
|
+
const ControlsBarV2_excluded = ["aria-label", "children", "size"];
|
|
41676
41817
|
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); }
|
|
41677
41818
|
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; }
|
|
41678
41819
|
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; }
|
|
@@ -41682,6 +41823,7 @@ function ControlsBarV2_objectWithoutPropertiesLoose(r, e) { if (null == r) retur
|
|
|
41682
41823
|
|
|
41683
41824
|
function ControlsBarV2(_ref, ref) {
|
|
41684
41825
|
let {
|
|
41826
|
+
'aria-label': ariaLabel = ControlsBarV2_('controls_toolbar'),
|
|
41685
41827
|
children,
|
|
41686
41828
|
size = 'large'
|
|
41687
41829
|
} = _ref,
|
|
@@ -41691,6 +41833,7 @@ function ControlsBarV2(_ref, ref) {
|
|
|
41691
41833
|
}
|
|
41692
41834
|
return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Root, ControlsBarV2_extends({
|
|
41693
41835
|
ref: ref,
|
|
41836
|
+
"aria-label": ariaLabel,
|
|
41694
41837
|
className: `bp-ControlsBarV2 bp-ControlsBarV2--${size}`,
|
|
41695
41838
|
colorScheme: "dark",
|
|
41696
41839
|
"data-testid": "bp-ControlsBar"
|
|
@@ -41720,6 +41863,7 @@ function AnnotationsPaletteV2({
|
|
|
41720
41863
|
className: "bp-AnnotationsPaletteV2",
|
|
41721
41864
|
"data-testid": "bp-AnnotationsPaletteV2"
|
|
41722
41865
|
}, /*#__PURE__*/external_react_["default"].createElement(controls_bar_ControlsBarV2, {
|
|
41866
|
+
"aria-label": AnnotationsPaletteV2_('annotation_tools_toolbar'),
|
|
41723
41867
|
size: "small"
|
|
41724
41868
|
}, children));
|
|
41725
41869
|
}
|
|
@@ -41759,12 +41903,12 @@ function Mode({
|
|
|
41759
41903
|
testId: 'bp-AnnotationsControls-drawBtn'
|
|
41760
41904
|
},
|
|
41761
41905
|
[AnnotationMode.HIGHLIGHT]: {
|
|
41762
|
-
label: AnnotationsPaletteV2_('
|
|
41906
|
+
label: AnnotationsPaletteV2_('annotation_highlight_text'),
|
|
41763
41907
|
resinTarget: 'highlightText',
|
|
41764
41908
|
testId: 'bp-AnnotationsControls-highlightBtn'
|
|
41765
41909
|
},
|
|
41766
41910
|
[AnnotationMode.REGION]: {
|
|
41767
|
-
label: AnnotationsPaletteV2_('
|
|
41911
|
+
label: AnnotationsPaletteV2_('annotation_region_comment'),
|
|
41768
41912
|
resinTarget: 'highlightRegion',
|
|
41769
41913
|
testId: 'bp-AnnotationsControls-regionBtn'
|
|
41770
41914
|
}
|
|
@@ -41792,7 +41936,6 @@ function Mode({
|
|
|
41792
41936
|
|
|
41793
41937
|
|
|
41794
41938
|
|
|
41795
|
-
|
|
41796
41939
|
const getColorLabels = () => ({
|
|
41797
41940
|
[AnnotationColor.BOX_BLUE]: ColorPickerControlV2_('drawing_color_blue'),
|
|
41798
41941
|
[AnnotationColor.GREEN_LIGHT]: ColorPickerControlV2_('drawing_color_green'),
|
|
@@ -41802,7 +41945,7 @@ const getColorLabels = () => ({
|
|
|
41802
41945
|
[AnnotationColor.GRIMACE]: ColorPickerControlV2_('drawing_color_purple')
|
|
41803
41946
|
});
|
|
41804
41947
|
function ColorPickerControlV2({
|
|
41805
|
-
activeColor =
|
|
41948
|
+
activeColor = AnnotationColor.BOX_BLUE,
|
|
41806
41949
|
colors,
|
|
41807
41950
|
onColorSelect
|
|
41808
41951
|
}) {
|
|
@@ -42790,15 +42933,16 @@ class ImageViewer extends image_ImageBaseViewer {
|
|
|
42790
42933
|
* Handles keyboard events for the image
|
|
42791
42934
|
*
|
|
42792
42935
|
* @param {string} key - Keydown key
|
|
42936
|
+
* @param {KeyboardEvent} [event] - Keydown event
|
|
42793
42937
|
* @return {boolean} Consumed or not
|
|
42794
42938
|
*/
|
|
42795
|
-
onKeydown(key) {
|
|
42939
|
+
onKeydown(key, event) {
|
|
42796
42940
|
// This bare key belongs to the Blueprint controls bar, whose menu lists it; the older bar has no such shortcut
|
|
42797
|
-
if (this.controls && (key === 'r' || key === 'R') && this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ)) {
|
|
42941
|
+
if (this.controls && (key === 'r' || key === 'R') && !event?.altKey && this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ)) {
|
|
42798
42942
|
this.rotateLeft();
|
|
42799
42943
|
return true;
|
|
42800
42944
|
}
|
|
42801
|
-
return super.onKeydown(key);
|
|
42945
|
+
return super.onKeydown(key, event);
|
|
42802
42946
|
}
|
|
42803
42947
|
|
|
42804
42948
|
// Annotation overrides
|
|
@@ -46351,11 +46495,12 @@ class Image360Viewer extends box3d_Box3DViewer {
|
|
|
46351
46495
|
* Handles keyboard events
|
|
46352
46496
|
*
|
|
46353
46497
|
* @param {string} key - Keydown key
|
|
46498
|
+
* @param {KeyboardEvent} [event] - Keydown event
|
|
46354
46499
|
* @return {boolean} Consumed or not
|
|
46355
46500
|
*/
|
|
46356
|
-
onKeydown(key) {
|
|
46501
|
+
onKeydown(key, event) {
|
|
46357
46502
|
// Without React controls the legacy Box3DControls bar renders, which has no fullscreen shortcut
|
|
46358
|
-
return this.getViewerOption('useReactControls') ? this.handleFullscreenKey(key) : false;
|
|
46503
|
+
return this.getViewerOption('useReactControls') ? this.handleFullscreenKey(key, event) : false;
|
|
46359
46504
|
}
|
|
46360
46505
|
renderUI() {
|
|
46361
46506
|
if (!this.controls) {
|
|
@@ -47362,10 +47507,11 @@ class TextBaseViewer extends viewers_BaseViewer {
|
|
|
47362
47507
|
* Handles keyboard events for media
|
|
47363
47508
|
*
|
|
47364
47509
|
* @param {string} key - keydown key
|
|
47510
|
+
* @param {KeyboardEvent} [event] - keydown event
|
|
47365
47511
|
* @return {boolean} consumed or not
|
|
47366
47512
|
* @protected
|
|
47367
47513
|
*/
|
|
47368
|
-
onKeydown(key) {
|
|
47514
|
+
onKeydown(key, event) {
|
|
47369
47515
|
// Return false when media controls are not ready or are focused
|
|
47370
47516
|
if (!this.controls) {
|
|
47371
47517
|
return false;
|
|
@@ -47378,7 +47524,7 @@ class TextBaseViewer extends viewers_BaseViewer {
|
|
|
47378
47524
|
this.zoomOut();
|
|
47379
47525
|
return true;
|
|
47380
47526
|
}
|
|
47381
|
-
return this.handleFullscreenKey(key);
|
|
47527
|
+
return this.handleFullscreenKey(key, event);
|
|
47382
47528
|
}
|
|
47383
47529
|
|
|
47384
47530
|
/**
|
|
@@ -55719,7 +55865,7 @@ function TimeControlsV2({
|
|
|
55719
55865
|
onUpdate: onTimeChange,
|
|
55720
55866
|
step: fps ? 1 / fps : 5,
|
|
55721
55867
|
title: TimeControlsV2_('media_time_slider'),
|
|
55722
|
-
track: `linear-gradient(to right, ${
|
|
55868
|
+
track: `linear-gradient(to right, ${tokens_.GrayWhite} calc(${currentPercentage}% - 2.5px), transparent calc(${currentPercentage}% - 2.5px), transparent calc(${currentPercentage}% + 2.5px), ${TRACK_COLOR_BUFFERED} calc(${currentPercentage}% + 2.5px), ${TRACK_COLOR_BUFFERED} ${bufferedPercentage}%, ${TRACK_COLOR_UNPLAYED} ${bufferedPercentage}%, ${TRACK_COLOR_UNPLAYED} 100%)`,
|
|
55723
55869
|
value: currentValue
|
|
55724
55870
|
}), durationValue > 0 && clusters.map(cluster => cluster.isSinglePoint ? /*#__PURE__*/external_react_["default"].createElement(MarkerTick, {
|
|
55725
55871
|
key: cluster.id,
|
|
@@ -58894,6 +59040,7 @@ function ThumbnailsToggleV2({
|
|
|
58894
59040
|
if (!onThumbnailsToggle) {
|
|
58895
59041
|
return null;
|
|
58896
59042
|
}
|
|
59043
|
+
const label = isThumbnailsOpen ? ThumbnailsToggleV2_('thumbnails_toggle_hide') : ThumbnailsToggleV2_('thumbnails_toggle_show');
|
|
58897
59044
|
return /*#__PURE__*/external_react_["default"].createElement("div", {
|
|
58898
59045
|
className: "bp-ThumbnailsToggleV2"
|
|
58899
59046
|
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.ToggleGroup, {
|
|
@@ -58901,10 +59048,10 @@ function ThumbnailsToggleV2({
|
|
|
58901
59048
|
type: "multiple",
|
|
58902
59049
|
value: isThumbnailsOpen ? ['thumbnails'] : []
|
|
58903
59050
|
}, /*#__PURE__*/external_react_["default"].createElement(ToggleTooltipV2, {
|
|
58904
|
-
content:
|
|
59051
|
+
content: label
|
|
58905
59052
|
}, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.ToggleItem, {
|
|
58906
59053
|
"aria-expanded": isThumbnailsOpen,
|
|
58907
|
-
"aria-label":
|
|
59054
|
+
"aria-label": label,
|
|
58908
59055
|
"data-resin-target": "thumbnails",
|
|
58909
59056
|
icon: isThumbnailsOpen ? __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_MediumFilled_Nav_ae6d790f_default__ : __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Nav_d41e959a_default__,
|
|
58910
59057
|
value: "thumbnails"
|
|
@@ -59537,8 +59684,8 @@ class DocFindBar extends (events_default()) {
|
|
|
59537
59684
|
}
|
|
59538
59685
|
}
|
|
59539
59686
|
/* harmony default export */ const doc_DocFindBar = (DocFindBar);
|
|
59540
|
-
|
|
59541
|
-
|
|
59687
|
+
// EXTERNAL MODULE: external "@box/blueprint-web-assets/icons/Fill"
|
|
59688
|
+
var Fill_ = __webpack_require__(7693);
|
|
59542
59689
|
;// ./src/lib/viewers/doc/DocFindBarV2.scss
|
|
59543
59690
|
// extracted by mini-css-extract-plugin
|
|
59544
59691
|
|
|
@@ -59608,7 +59755,7 @@ function DocFindBarV2({
|
|
|
59608
59755
|
'bp-DocFindBarV2-field--filled': !!query
|
|
59609
59756
|
}),
|
|
59610
59757
|
variant: "bodyDefault"
|
|
59611
|
-
}, /*#__PURE__*/external_react_["default"].createElement(
|
|
59758
|
+
}, /*#__PURE__*/external_react_["default"].createElement(Fill_.Search, {
|
|
59612
59759
|
"aria-hidden": true,
|
|
59613
59760
|
className: "bp-DocFindBarV2-searchIcon",
|
|
59614
59761
|
color: tokens_.bpIconIconOnLightSecondary
|
|
@@ -60798,7 +60945,7 @@ const GalleryTile = /*#__PURE__*/external_react_["default"].memo(function Galler
|
|
|
60798
60945
|
tabIndex: isFocused ? 0 : -1
|
|
60799
60946
|
}, /*#__PURE__*/external_react_["default"].createElement("span", {
|
|
60800
60947
|
"aria-hidden": "true",
|
|
60801
|
-
className:
|
|
60948
|
+
className: `bp-gallery-tile-badge${isBlueprintEnabled ? ' bp-gallery-tile-badge--blueprint' : ''}`
|
|
60802
60949
|
}, isBlueprintEnabled ? /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Text, {
|
|
60803
60950
|
as: "span",
|
|
60804
60951
|
color: "textOnDarkDefault",
|
|
@@ -64057,15 +64204,14 @@ class DocBaseViewer extends viewers_BaseViewer {
|
|
|
64057
64204
|
case 'R':
|
|
64058
64205
|
// The rotate control is hidden while the gallery is open, so the key follows it.
|
|
64059
64206
|
// These bare keys belong to the v2 controls bar; the older bar has no such shortcuts.
|
|
64060
|
-
if (this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ) && !this.galleryController?.isOpen && this.featureEnabled('rotate.enabled')) {
|
|
64207
|
+
if (this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ) && !event?.altKey && !this.galleryController?.isOpen && this.featureEnabled('rotate.enabled')) {
|
|
64061
64208
|
this.rotateLeft();
|
|
64062
64209
|
break;
|
|
64063
64210
|
}
|
|
64064
64211
|
return this.findBar ? this.findBar.onKeydown(event) : false;
|
|
64065
64212
|
case 'f':
|
|
64066
64213
|
case 'F':
|
|
64067
|
-
if (this.
|
|
64068
|
-
this.toggleFullscreen();
|
|
64214
|
+
if (this.handleFullscreenKey(key, event)) {
|
|
64069
64215
|
break;
|
|
64070
64216
|
}
|
|
64071
64217
|
return this.findBar ? this.findBar.onKeydown(event) : false;
|
|
@@ -70302,11 +70448,12 @@ class Model3DViewer extends box3d_Box3DViewer {
|
|
|
70302
70448
|
* Handles keyboard events
|
|
70303
70449
|
*
|
|
70304
70450
|
* @param {string} key - Keydown key
|
|
70451
|
+
* @param {KeyboardEvent} [event] - Keydown event
|
|
70305
70452
|
* @return {boolean} Consumed or not
|
|
70306
70453
|
*/
|
|
70307
|
-
onKeydown(key) {
|
|
70454
|
+
onKeydown(key, event) {
|
|
70308
70455
|
// Without React controls the legacy Model3DControls bar renders, which has no fullscreen shortcut
|
|
70309
|
-
return this.getViewerOption('useReactControls') ? this.handleFullscreenKey(key) : false;
|
|
70456
|
+
return this.getViewerOption('useReactControls') ? this.handleFullscreenKey(key, event) : false;
|
|
70310
70457
|
}
|
|
70311
70458
|
renderUI() {
|
|
70312
70459
|
if (!this.controls || !this.renderer) {
|
|
@@ -71126,31 +71273,59 @@ class ComparisonBannerRoot {
|
|
|
71126
71273
|
this.hostEl.remove();
|
|
71127
71274
|
}
|
|
71128
71275
|
}
|
|
71129
|
-
// EXTERNAL MODULE: ./node_modules/@box/item-icon/dist/esm/lib/item-icon/item-icon.js + 2 modules
|
|
71130
|
-
var item_icon = __webpack_require__(1057);
|
|
71131
|
-
// EXTERNAL MODULE: ./node_modules/@box/item-icon/dist/esm/lib/utils.js + 1 modules
|
|
71132
|
-
var lib_utils = __webpack_require__(6494);
|
|
71133
71276
|
;// external "box-ui-elements/es/components/preview"
|
|
71134
71277
|
|
|
71135
71278
|
;// ./src/lib/viewers/error/ErrorIcon.tsx
|
|
71136
71279
|
|
|
71137
71280
|
|
|
71138
|
-
|
|
71139
71281
|
function ErrorIcon({
|
|
71140
|
-
extension
|
|
71141
|
-
isBlueprintEnabled = false
|
|
71282
|
+
extension
|
|
71142
71283
|
}) {
|
|
71143
|
-
if (isBlueprintEnabled) {
|
|
71144
|
-
return /*#__PURE__*/external_react_["default"].createElement(item_icon/* ItemIcon */.zG, {
|
|
71145
|
-
ariaHidden: true,
|
|
71146
|
-
iconType: (0,lib_utils/* getFileCategoryByExtension */.N)(extension?.toLowerCase())
|
|
71147
|
-
});
|
|
71148
|
-
}
|
|
71149
71284
|
const Icon = __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_components_preview_386c8d2b_getIcon__(extension);
|
|
71150
71285
|
return /*#__PURE__*/external_react_["default"].createElement(Icon, {
|
|
71151
71286
|
extension: extension
|
|
71152
71287
|
});
|
|
71153
71288
|
}
|
|
71289
|
+
// EXTERNAL MODULE: ./node_modules/@box/item-icon/dist/esm/lib/utils.js
|
|
71290
|
+
var lib_utils = __webpack_require__(76);
|
|
71291
|
+
// EXTERNAL MODULE: ./node_modules/@box/item-icon/dist/esm/lib/item-icon/item-icon.js + 2 modules
|
|
71292
|
+
var item_icon = __webpack_require__(1057);
|
|
71293
|
+
;// ./src/lib/viewers/error/PreviewErrorV2.tsx
|
|
71294
|
+
/* provided dependency */ var PreviewErrorV2_ = __webpack_require__(441)["Tl"];
|
|
71295
|
+
|
|
71296
|
+
|
|
71297
|
+
|
|
71298
|
+
function PreviewErrorV2({
|
|
71299
|
+
extension,
|
|
71300
|
+
linkText,
|
|
71301
|
+
linkUrl,
|
|
71302
|
+
message,
|
|
71303
|
+
onDownload
|
|
71304
|
+
}) {
|
|
71305
|
+
const fileCategory = (0,lib_utils/* getFileCategoryByExtension */.N)(extension?.toLowerCase());
|
|
71306
|
+
const illustration = item_icon/* itemIconTable */.RU[fileCategory] || item_icon/* itemIconTable */.RU.default;
|
|
71307
|
+
const hasLink = !!linkText && !!linkUrl;
|
|
71308
|
+
return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.EmptyState, {
|
|
71309
|
+
body: /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Text, {
|
|
71310
|
+
as: "p"
|
|
71311
|
+
}, message),
|
|
71312
|
+
className: "bp-PreviewErrorV2-emptyState",
|
|
71313
|
+
illustration: illustration
|
|
71314
|
+
}, hasLink && /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.EmptyState.PrimaryAction, {
|
|
71315
|
+
clickOnSpace: false,
|
|
71316
|
+
"data-resin-target": "errorLink",
|
|
71317
|
+
render: /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Link, {
|
|
71318
|
+
href: linkUrl,
|
|
71319
|
+
rel: "noopener noreferrer",
|
|
71320
|
+
target: "_blank",
|
|
71321
|
+
unstyled: true
|
|
71322
|
+
})
|
|
71323
|
+
}, linkText), !hasLink && onDownload && /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.EmptyState.PrimaryAction, {
|
|
71324
|
+
"data-resin-target": "download",
|
|
71325
|
+
"data-testid": "preview-error-download-btn",
|
|
71326
|
+
onClick: onDownload
|
|
71327
|
+
}, PreviewErrorV2_('download')));
|
|
71328
|
+
}
|
|
71154
71329
|
;// ./src/lib/viewers/error/PreviewError.scss
|
|
71155
71330
|
// extracted by mini-css-extract-plugin
|
|
71156
71331
|
|
|
@@ -71166,6 +71341,8 @@ function ErrorIcon({
|
|
|
71166
71341
|
|
|
71167
71342
|
|
|
71168
71343
|
|
|
71344
|
+
|
|
71345
|
+
|
|
71169
71346
|
class PreviewErrorViewer extends viewers_BaseViewer {
|
|
71170
71347
|
/**
|
|
71171
71348
|
* @inheritdoc
|
|
@@ -71187,6 +71364,13 @@ class PreviewErrorViewer extends viewers_BaseViewer {
|
|
|
71187
71364
|
|
|
71188
71365
|
// Call super() first to set up common layout
|
|
71189
71366
|
super.setup();
|
|
71367
|
+
if (this.featureEnabled(constants/* BLUEPRINT_MIGRATION_SUPPORTING_UI */.Ed)) {
|
|
71368
|
+
this.infoEl = this.createViewer(document.createElement('div'));
|
|
71369
|
+
this.infoEl.className = 'bp-PreviewErrorV2';
|
|
71370
|
+
this.infoEl.setAttribute('data-resin-feature', 'previewError');
|
|
71371
|
+
this.errorRoot = (0,client_.createRoot)(this.infoEl);
|
|
71372
|
+
return;
|
|
71373
|
+
}
|
|
71190
71374
|
this.infoEl = this.createViewer(document.createElement('div'));
|
|
71191
71375
|
this.infoEl.className = 'bp-error';
|
|
71192
71376
|
this.iconEl = this.infoEl.appendChild(document.createElement('div'));
|
|
@@ -71218,6 +71402,9 @@ class PreviewErrorViewer extends viewers_BaseViewer {
|
|
|
71218
71402
|
if (this.iconRoot) {
|
|
71219
71403
|
this.iconRoot.unmount();
|
|
71220
71404
|
}
|
|
71405
|
+
if (this.errorRoot) {
|
|
71406
|
+
this.errorRoot.unmount();
|
|
71407
|
+
}
|
|
71221
71408
|
super.destroy();
|
|
71222
71409
|
}
|
|
71223
71410
|
|
|
@@ -71241,21 +71428,30 @@ class PreviewErrorViewer extends viewers_BaseViewer {
|
|
|
71241
71428
|
const {
|
|
71242
71429
|
extension: iconExtension
|
|
71243
71430
|
} = file || {};
|
|
71431
|
+
const hasLink = !!(details && details.linkText && details.linkUrl);
|
|
71432
|
+
if (this.errorRoot) {
|
|
71433
|
+
this.errorRoot.render(/*#__PURE__*/external_react_["default"].createElement(BlueprintProviders/* default */.A, null, /*#__PURE__*/external_react_["default"].createElement(PreviewErrorV2, {
|
|
71434
|
+
extension: iconExtension,
|
|
71435
|
+
linkText: hasLink ? details.linkText : undefined,
|
|
71436
|
+
linkUrl: hasLink ? details.linkUrl : undefined,
|
|
71437
|
+
message: displayMessage,
|
|
71438
|
+
onDownload: !hasLink && canDownload(file, this.options) ? this.download : undefined
|
|
71439
|
+
})));
|
|
71440
|
+
} else {
|
|
71441
|
+
// Display the default or file-specific error icon
|
|
71442
|
+
this.iconRoot.render(/*#__PURE__*/external_react_["default"].createElement(ErrorIcon, {
|
|
71443
|
+
extension: iconExtension
|
|
71444
|
+
}));
|
|
71244
71445
|
|
|
71245
|
-
|
|
71246
|
-
|
|
71247
|
-
extension: iconExtension,
|
|
71248
|
-
isBlueprintEnabled: this.featureEnabled(constants/* BLUEPRINT_MIGRATION_SUPPORTING_UI */.Ed)
|
|
71249
|
-
}));
|
|
71250
|
-
|
|
71251
|
-
// Display user-friendly error message
|
|
71252
|
-
this.messageEl.textContent = displayMessage;
|
|
71446
|
+
// Display user-friendly error message
|
|
71447
|
+
this.messageEl.textContent = displayMessage;
|
|
71253
71448
|
|
|
71254
|
-
|
|
71255
|
-
|
|
71256
|
-
|
|
71257
|
-
|
|
71258
|
-
|
|
71449
|
+
// Add optional link or download button
|
|
71450
|
+
if (hasLink) {
|
|
71451
|
+
this.addLinkButton(details.linkText, details.linkUrl);
|
|
71452
|
+
} else if (canDownload(file, this.options)) {
|
|
71453
|
+
this.addDownloadButton();
|
|
71454
|
+
}
|
|
71259
71455
|
}
|
|
71260
71456
|
this.loaded = true;
|
|
71261
71457
|
|
|
@@ -71487,6 +71683,63 @@ class CollectionNavigationRoot {
|
|
|
71487
71683
|
})));
|
|
71488
71684
|
}
|
|
71489
71685
|
}
|
|
71686
|
+
// EXTERNAL MODULE: ./node_modules/@box/item-icon/dist/esm/lib/constants.js
|
|
71687
|
+
var lib_constants = __webpack_require__(584);
|
|
71688
|
+
;// ./src/lib/LoadingIconV2.scss
|
|
71689
|
+
// extracted by mini-css-extract-plugin
|
|
71690
|
+
|
|
71691
|
+
;// ./src/lib/LoadingIconV2.tsx
|
|
71692
|
+
/* provided dependency */ var LoadingIconV2_ = __webpack_require__(441)["Tl"];
|
|
71693
|
+
function LoadingIconV2_defineProperty(e, r, t) { return (r = LoadingIconV2_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
71694
|
+
function LoadingIconV2_toPropertyKey(t) { var i = LoadingIconV2_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
71695
|
+
function LoadingIconV2_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); }
|
|
71696
|
+
|
|
71697
|
+
|
|
71698
|
+
|
|
71699
|
+
|
|
71700
|
+
|
|
71701
|
+
|
|
71702
|
+
const isFileCategory = category => Object.prototype.hasOwnProperty.call(lib_constants/* FILE_CATEGORY_COLORS */.Z, category);
|
|
71703
|
+
const LoadingIconV2 = ({
|
|
71704
|
+
extension
|
|
71705
|
+
}) => {
|
|
71706
|
+
const category = (0,lib_utils/* getFileCategoryByExtension */.N)(extension?.toLowerCase());
|
|
71707
|
+
const ringColor = isFileCategory(category) ? lib_constants/* FILE_CATEGORY_COLORS */.Z[category] : tokens_.bpBoxBlue100;
|
|
71708
|
+
// Video files are displayed on a dark background
|
|
71709
|
+
const theme = category === 'video' ? 'dark' : 'light';
|
|
71710
|
+
return /*#__PURE__*/external_react_["default"].createElement("div", {
|
|
71711
|
+
"aria-label": LoadingIconV2_('loading_preview'),
|
|
71712
|
+
className: classnames_default()('bp-LoadingIconV2', `bp-LoadingIconV2--${theme}`),
|
|
71713
|
+
role: "progressbar"
|
|
71714
|
+
}, /*#__PURE__*/external_react_["default"].createElement("div", {
|
|
71715
|
+
className: "bp-LoadingIconV2-ring",
|
|
71716
|
+
style: {
|
|
71717
|
+
'--bp-loading-icon-ring-color': ringColor
|
|
71718
|
+
}
|
|
71719
|
+
}), /*#__PURE__*/external_react_["default"].createElement("div", {
|
|
71720
|
+
className: "bp-LoadingIconV2-content"
|
|
71721
|
+
}, /*#__PURE__*/external_react_["default"].createElement(item_icon/* ItemIcon */.zG, {
|
|
71722
|
+
ariaHidden: true,
|
|
71723
|
+
className: "bp-LoadingIconV2-icon",
|
|
71724
|
+
iconType: category
|
|
71725
|
+
})));
|
|
71726
|
+
};
|
|
71727
|
+
class LoadingIconV2Root {
|
|
71728
|
+
constructor({
|
|
71729
|
+
containerEl
|
|
71730
|
+
}) {
|
|
71731
|
+
LoadingIconV2_defineProperty(this, "root", void 0);
|
|
71732
|
+
this.root = (0,client_.createRoot)(containerEl);
|
|
71733
|
+
}
|
|
71734
|
+
destroy() {
|
|
71735
|
+
this.root.unmount();
|
|
71736
|
+
}
|
|
71737
|
+
render(extension) {
|
|
71738
|
+
this.root.render(/*#__PURE__*/external_react_["default"].createElement(LoadingIconV2, {
|
|
71739
|
+
extension: extension
|
|
71740
|
+
}));
|
|
71741
|
+
}
|
|
71742
|
+
}
|
|
71490
71743
|
;// ./src/lib/PreviewUI.js
|
|
71491
71744
|
/* provided dependency */ var PreviewUI_ = __webpack_require__(441)["Tl"];
|
|
71492
71745
|
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; }
|
|
@@ -71500,6 +71753,7 @@ function PreviewUI_toPrimitive(t, r) { if ("object" != typeof t || !t) return t;
|
|
|
71500
71753
|
|
|
71501
71754
|
|
|
71502
71755
|
|
|
71756
|
+
|
|
71503
71757
|
class PreviewUI {
|
|
71504
71758
|
constructor() {
|
|
71505
71759
|
/** @property {CollectionNavigationRoot} - Blueprint navigation arrows, set only with the supporting UI flag */
|
|
@@ -71516,7 +71770,9 @@ class PreviewUI {
|
|
|
71516
71770
|
PreviewUI_defineProperty(this, "mousemoveHandler", void 0);
|
|
71517
71771
|
/** @property {Function} - Keydown handler */
|
|
71518
71772
|
PreviewUI_defineProperty(this, "keydownHandler", void 0);
|
|
71519
|
-
/** @property {
|
|
71773
|
+
/** @property {boolean} - Whether the Blueprint migration supporting UI flag is on */
|
|
71774
|
+
PreviewUI_defineProperty(this, "isSupportingUiEnabled", void 0);
|
|
71775
|
+
/** @property {LoadingIcon|LoadingIconV2Root} - Loading icon instance */
|
|
71520
71776
|
PreviewUI_defineProperty(this, "loadingIcon", void 0);
|
|
71521
71777
|
/** @property {HTMLElement} - Preview container element which houses the sidebar and content */
|
|
71522
71778
|
PreviewUI_defineProperty(this, "previewContainer", void 0);
|
|
@@ -71589,7 +71845,8 @@ class PreviewUI {
|
|
|
71589
71845
|
this.container = this.container.querySelector(constants/* SELECTOR_BOX_PREVIEW_CONTAINER */.xK);
|
|
71590
71846
|
this.previewContainer = this.container.querySelector(constants/* SELECTOR_BOX_PREVIEW */.Vm);
|
|
71591
71847
|
this.contentContainer = this.container.querySelector(constants/* SELECTOR_BOX_PREVIEW_CONTENT */.bE);
|
|
71592
|
-
|
|
71848
|
+
this.isSupportingUiEnabled = isFeatureEnabled(options.features, constants/* BLUEPRINT_MIGRATION_SUPPORTING_UI */.Ed);
|
|
71849
|
+
if (this.isSupportingUiEnabled) {
|
|
71593
71850
|
this.setupCollectionNavigation();
|
|
71594
71851
|
}
|
|
71595
71852
|
|
|
@@ -71812,7 +72069,8 @@ class PreviewUI {
|
|
|
71812
72069
|
showLoadingIcon(extension) {
|
|
71813
72070
|
const iconEl = this.container.querySelector(constants/* SELECTOR_BOX_PREVIEW_ICON */.VF);
|
|
71814
72071
|
if (iconEl) {
|
|
71815
|
-
|
|
72072
|
+
const LoadingIconClass = this.isSupportingUiEnabled ? LoadingIconV2Root : LoadingIcon;
|
|
72073
|
+
this.loadingIcon = this.loadingIcon || new LoadingIconClass({
|
|
71816
72074
|
containerEl: iconEl
|
|
71817
72075
|
});
|
|
71818
72076
|
this.loadingIcon.render(extension);
|