@elice/material-runbox 1.260910.0 → 1.260915.0-edsmigration.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/cjs/components/material-runbox/MaterialAdminRunboxConfirmDialog.js +7 -7
- package/cjs/components/material-runbox/MaterialRunbox.js +2 -2
- package/cjs/components/material-runbox/MaterialRunboxAlert.js +3 -3
- package/cjs/components/material-runbox/MaterialRunboxContent.d.ts +1 -1
- package/cjs/components/material-runbox/MaterialRunboxContent.js +33 -23
- package/cjs/components/material-runbox/MaterialRunboxHeader.js +13 -11
- package/cjs/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +5 -5
- package/cjs/components/material-runbox/actions/MaterialRunboxActionDisconnect.js +6 -6
- package/cjs/components/material-runbox/actions/MaterialRunboxActionDisconnectDialog.js +11 -9
- package/cjs/components/material-runbox/actions/MaterialRunboxActionDisconnectMenuItem.js +7 -8
- package/cjs/components/material-runbox/actions/MaterialRunboxActionGrade.js +25 -24
- package/cjs/components/material-runbox/actions/MaterialRunboxActionMenu.js +11 -7
- package/cjs/components/material-runbox/actions/MaterialRunboxActionReset.js +15 -16
- package/cjs/components/material-runbox/actions/MaterialRunboxActionRestart.js +13 -14
- package/cjs/components/material-runbox/actions/MaterialRunboxActionShare.js +8 -8
- package/cjs/components/material-runbox/actions/MaterialRunboxActionSubmitLog.js +6 -6
- package/cjs/components/material-runbox/actions/MaterialRunboxActionSubmitLogDialog.js +46 -38
- package/cjs/components/material-runbox/contexts/MaterialRunboxCommandContext.js +2 -2
- package/cjs/components/material-runbox/contexts/MaterialRunboxContext.d.ts +1 -1
- package/cjs/components/material-runbox/disk/MaterialRunboxDiskUsageAlert.js +5 -5
- package/cjs/components/material-runbox/disk/MaterialRunboxDiskUsageDialog.js +17 -13
- package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetButton.d.ts +2 -2
- package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetButton.js +5 -6
- package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetDialog.js +20 -16
- package/cjs/components/material-runbox/hooks/useRunboxControl.js +2 -2
- package/cjs/components/material-runbox/runtime/RuntimeChangeMaterialDialog.js +7 -7
- package/cjs/components/material-runbox/runtime/RuntimeOverlayConflicted.js +39 -27
- package/cjs/components/material-runbox/runtime/RuntimeOverlayLoading.js +68 -49
- package/cjs/components/material-runbox/runtime/RuntimeOverlayTerminated.js +35 -27
- package/cjs/components/material-runbox/runtime/runtime-loading-tips.d.ts +2 -2
- package/cjs/components/material-runbox/status/MaterialRunboxStatusButton.js +7 -7
- package/cjs/components/material-runbox/status/MaterialRunboxStatusConnectionItem.d.ts +1 -1
- package/cjs/components/material-runbox/status/MaterialRunboxStatusConnectionItem.js +16 -10
- package/cjs/components/material-runbox/status/MaterialRunboxStatusPopover.d.ts +1 -1
- package/cjs/components/material-runbox/status/MaterialRunboxStatusPopover.js +24 -20
- package/cjs/components/material-runbox/status/MaterialRunboxStatusResourceItem.js +22 -14
- package/cjs/components/material-runbox/theme.d.ts +2 -2
- package/cjs/components/material-runbox/theme.js +3 -3
- package/cjs/components/material-runbox/timer/MaterialRunboxQuotaAlmostEndDialog.js +39 -25
- package/cjs/components/material-runbox/timer/MaterialRunboxQuotaAmount.js +7 -5
- package/cjs/components/material-runbox/timer/MaterialRunboxQuotaPerSessionAlmostEndDialog.js +39 -25
- package/cjs/components/material-runbox/timer/MaterialRunboxQuotaTimePart.js +9 -5
- package/cjs/components/material-runbox/timer/MaterialRunboxTimer.js +17 -13
- package/cjs/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.d.ts +1 -1
- package/cjs/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.js +76 -48
- package/cjs/components/shared/hooks/useBreakpoint.d.ts +2 -2
- package/cjs/components/shared/hooks/useBreakpoint.js +3 -3
- package/cjs/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.d.ts +1 -1
- package/cjs/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.js +12 -11
- package/es/components/material-runbox/MaterialAdminRunboxConfirmDialog.js +1 -1
- package/es/components/material-runbox/MaterialRunbox.js +1 -1
- package/es/components/material-runbox/MaterialRunboxAlert.js +1 -1
- package/es/components/material-runbox/MaterialRunboxContent.d.ts +1 -1
- package/es/components/material-runbox/MaterialRunboxContent.js +19 -9
- package/es/components/material-runbox/MaterialRunboxHeader.js +9 -7
- package/es/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +2 -2
- package/es/components/material-runbox/actions/MaterialRunboxActionDisconnect.js +3 -3
- package/es/components/material-runbox/actions/MaterialRunboxActionDisconnectDialog.js +4 -2
- package/es/components/material-runbox/actions/MaterialRunboxActionDisconnectMenuItem.js +4 -5
- package/es/components/material-runbox/actions/MaterialRunboxActionGrade.js +6 -5
- package/es/components/material-runbox/actions/MaterialRunboxActionMenu.js +8 -4
- package/es/components/material-runbox/actions/MaterialRunboxActionReset.js +5 -6
- package/es/components/material-runbox/actions/MaterialRunboxActionRestart.js +4 -5
- package/es/components/material-runbox/actions/MaterialRunboxActionShare.js +4 -4
- package/es/components/material-runbox/actions/MaterialRunboxActionSubmitLog.js +3 -3
- package/es/components/material-runbox/actions/MaterialRunboxActionSubmitLogDialog.js +28 -20
- package/es/components/material-runbox/contexts/MaterialRunboxCommandContext.js +1 -1
- package/es/components/material-runbox/contexts/MaterialRunboxContext.d.ts +1 -1
- package/es/components/material-runbox/disk/MaterialRunboxDiskUsageAlert.js +3 -3
- package/es/components/material-runbox/disk/MaterialRunboxDiskUsageDialog.js +10 -6
- package/es/components/material-runbox/disk/MaterialRunboxEnvResetButton.d.ts +2 -2
- package/es/components/material-runbox/disk/MaterialRunboxEnvResetButton.js +3 -4
- package/es/components/material-runbox/disk/MaterialRunboxEnvResetDialog.js +10 -6
- package/es/components/material-runbox/hooks/useRunboxControl.js +1 -1
- package/es/components/material-runbox/runtime/RuntimeChangeMaterialDialog.js +1 -1
- package/es/components/material-runbox/runtime/RuntimeOverlayConflicted.js +26 -14
- package/es/components/material-runbox/runtime/RuntimeOverlayLoading.js +38 -19
- package/es/components/material-runbox/runtime/RuntimeOverlayTerminated.js +20 -12
- package/es/components/material-runbox/runtime/runtime-loading-tips.d.ts +2 -2
- package/es/components/material-runbox/status/MaterialRunboxStatusButton.js +5 -5
- package/es/components/material-runbox/status/MaterialRunboxStatusConnectionItem.d.ts +1 -1
- package/es/components/material-runbox/status/MaterialRunboxStatusConnectionItem.js +13 -7
- package/es/components/material-runbox/status/MaterialRunboxStatusPopover.d.ts +1 -1
- package/es/components/material-runbox/status/MaterialRunboxStatusPopover.js +19 -15
- package/es/components/material-runbox/status/MaterialRunboxStatusResourceItem.js +17 -9
- package/es/components/material-runbox/theme.d.ts +2 -2
- package/es/components/material-runbox/theme.js +1 -1
- package/es/components/material-runbox/timer/MaterialRunboxQuotaAlmostEndDialog.js +26 -12
- package/es/components/material-runbox/timer/MaterialRunboxQuotaAmount.js +5 -3
- package/es/components/material-runbox/timer/MaterialRunboxQuotaPerSessionAlmostEndDialog.js +26 -12
- package/es/components/material-runbox/timer/MaterialRunboxQuotaTimePart.js +7 -3
- package/es/components/material-runbox/timer/MaterialRunboxTimer.js +11 -7
- package/es/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.d.ts +1 -1
- package/es/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.js +55 -27
- package/es/components/shared/hooks/useBreakpoint.d.ts +2 -2
- package/es/components/shared/hooks/useBreakpoint.js +1 -1
- package/es/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.d.ts +1 -1
- package/es/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.js +10 -9
- package/package.json +17 -18
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var edsMaterial = require('@elice/eds-material');
|
|
6
7
|
var intl = require('@elice/intl');
|
|
7
|
-
var material = require('@mui/material');
|
|
8
8
|
|
|
9
9
|
//
|
|
10
10
|
//
|
|
@@ -17,25 +17,25 @@ var MaterialAdminRunboxConfirmDialog = function MaterialAdminRunboxConfirmDialog
|
|
|
17
17
|
//
|
|
18
18
|
//
|
|
19
19
|
//
|
|
20
|
-
return jsxRuntime.jsxs(
|
|
20
|
+
return jsxRuntime.jsxs(edsMaterial.Dialog, {
|
|
21
21
|
open: isOpen,
|
|
22
22
|
onClose: onClose,
|
|
23
|
-
children: [jsxRuntime.jsx(
|
|
23
|
+
children: [jsxRuntime.jsx(edsMaterial.DialogTitle, {
|
|
24
24
|
children: intl$1.formatMessage({
|
|
25
25
|
id: 'material.tutoring.runbox_confirm_dialog.title'
|
|
26
26
|
})
|
|
27
|
-
}), jsxRuntime.jsx(
|
|
27
|
+
}), jsxRuntime.jsx(edsMaterial.DialogContent, {
|
|
28
28
|
children: intl$1.formatMessage({
|
|
29
29
|
id: 'material.tutoring.runbox_confirm_dialog.content'
|
|
30
30
|
})
|
|
31
|
-
}), jsxRuntime.jsxs(
|
|
32
|
-
children: [jsxRuntime.jsx(
|
|
31
|
+
}), jsxRuntime.jsxs(edsMaterial.DialogActions, {
|
|
32
|
+
children: [jsxRuntime.jsx(edsMaterial.Button, {
|
|
33
33
|
color: "inherit",
|
|
34
34
|
onClick: onClose,
|
|
35
35
|
children: intl$1.formatMessage({
|
|
36
36
|
id: 'common.cancel'
|
|
37
37
|
})
|
|
38
|
-
}), jsxRuntime.jsx(
|
|
38
|
+
}), jsxRuntime.jsx(edsMaterial.Button, {
|
|
39
39
|
onClick: onConfirm,
|
|
40
40
|
children: intl$1.formatMessage({
|
|
41
41
|
id: 'material.tutoring.runbox_confirm_dialog.action.confirm'
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var edsMaterial = require('@elice/eds-material');
|
|
7
8
|
var intl = require('@elice/intl');
|
|
8
|
-
var material = require('@mui/material');
|
|
9
9
|
var MaterialRunboxContent = require('./MaterialRunboxContent.js');
|
|
10
10
|
var theme = require('./theme.js');
|
|
11
11
|
var en = require('./locales/en.json.js');
|
|
@@ -31,7 +31,7 @@ var MaterialRunbox = function MaterialRunbox(_a) {
|
|
|
31
31
|
eliceMaterialRunboxApiConfiguration = _a.eliceMaterialRunboxApiConfiguration,
|
|
32
32
|
__intl = _a.__intl,
|
|
33
33
|
contentProps = tslib.__rest(_a, ["enableAutoShutdownToggle", "enableUrlShare", "locale", "showMessenger", "getRunningRunboxLinkProps", "eliceMaterialRunboxApiConfiguration", "__intl"]);
|
|
34
|
-
return jsxRuntime.jsx(
|
|
34
|
+
return jsxRuntime.jsx(edsMaterial.ThemeProvider, {
|
|
35
35
|
theme: theme.runboxDarkTheme,
|
|
36
36
|
children: jsxRuntime.jsx(intl.RawEliceIntlProvider, {
|
|
37
37
|
value: __intl,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var edsMaterial = require('@elice/eds-material');
|
|
6
7
|
var intl = require('@elice/intl');
|
|
7
|
-
var material = require('@mui/material');
|
|
8
8
|
var useMaterialRunboxRunboxIdStarterGet = require('./hooks/useMaterialRunboxRunboxIdStarterGet.js');
|
|
9
9
|
|
|
10
10
|
var MaterialRunboxAlert = function MaterialRunboxAlert(_ref) {
|
|
@@ -28,13 +28,13 @@ var MaterialRunboxAlert = function MaterialRunboxAlert(_ref) {
|
|
|
28
28
|
if (!isStudentRunboxRunning || !isTutoring) {
|
|
29
29
|
return null;
|
|
30
30
|
}
|
|
31
|
-
return jsxRuntime.jsx(
|
|
31
|
+
return jsxRuntime.jsx(edsMaterial.Alert, {
|
|
32
32
|
severity: "warning",
|
|
33
33
|
sx: {
|
|
34
34
|
width: '100%',
|
|
35
35
|
borderRadius: '0'
|
|
36
36
|
},
|
|
37
|
-
children: jsxRuntime.jsx(
|
|
37
|
+
children: jsxRuntime.jsx(edsMaterial.AlertTitle, {
|
|
38
38
|
children: intl$1.formatMessage({
|
|
39
39
|
id: 'runbox.alert.title'
|
|
40
40
|
})
|
|
@@ -5,12 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
|
+
var edsMaterial = require('@elice/eds-material');
|
|
9
|
+
var edsXSnackbar = require('@elice/eds-x-snackbar');
|
|
8
10
|
var intl = require('@elice/intl');
|
|
9
|
-
var muiXSnackbar = require('@elice/mui-x-snackbar');
|
|
10
11
|
var openapiClientMaterialRunbox = require('@elice/openapi-client-material-runbox');
|
|
11
12
|
var runboxClient = require('@elice/runbox-client');
|
|
12
13
|
var iconsMaterial = require('@mui/icons-material');
|
|
13
|
-
var material = require('@mui/material');
|
|
14
14
|
var reactQuery = require('@tanstack/react-query');
|
|
15
15
|
var MaterialAdminRunboxConfirmDialog = require('./MaterialAdminRunboxConfirmDialog.js');
|
|
16
16
|
var MaterialRunboxAlert = require('./MaterialRunboxAlert.js');
|
|
@@ -38,7 +38,7 @@ var SNACKBAR_CONTAINER_CLASS = 'elice-material-runbox-snackbar-container';
|
|
|
38
38
|
//
|
|
39
39
|
//
|
|
40
40
|
//
|
|
41
|
-
var StyledRunboxContainer =
|
|
41
|
+
var StyledRunboxContainer = edsMaterial.styled('div')(_templateObject || (_templateObject = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n\n .", " {\n position: absolute;\n }\n"])), SNACKBAR_CONTAINER_CLASS);
|
|
42
42
|
//
|
|
43
43
|
//
|
|
44
44
|
//
|
|
@@ -162,34 +162,38 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
162
162
|
//
|
|
163
163
|
//
|
|
164
164
|
if (isInitialLoading || starterEnabled && isLoading) {
|
|
165
|
-
return jsxRuntime.jsx(
|
|
165
|
+
return jsxRuntime.jsx(edsMaterial.ThemeProvider, {
|
|
166
166
|
theme: theme.runboxLightTheme,
|
|
167
167
|
children: jsxRuntime.jsx(StyledRunboxContainer, {
|
|
168
168
|
sx: {
|
|
169
169
|
backgroundColor: 'background.paper'
|
|
170
170
|
},
|
|
171
|
-
children: jsxRuntime.jsx(
|
|
171
|
+
children: jsxRuntime.jsx(edsMaterial.CircularProgress, {})
|
|
172
172
|
})
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
if (isError) {
|
|
176
|
-
return jsxRuntime.jsx(
|
|
176
|
+
return jsxRuntime.jsx(edsMaterial.ThemeProvider, {
|
|
177
177
|
theme: theme.runboxLightTheme,
|
|
178
178
|
children: jsxRuntime.jsx(StyledRunboxContainer, {
|
|
179
179
|
sx: {
|
|
180
180
|
backgroundColor: 'background.paper',
|
|
181
181
|
color: 'text.primary'
|
|
182
182
|
},
|
|
183
|
-
children: jsxRuntime.jsxs(
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
children: jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
184
|
+
sx: {
|
|
185
|
+
gap: '1.5rem'
|
|
186
|
+
},
|
|
187
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
186
188
|
variant: "h6",
|
|
187
189
|
children: intl$1.formatMessage({
|
|
188
190
|
id: 'runbox.runtime.message.startError'
|
|
189
191
|
})
|
|
190
|
-
}), jsxRuntime.jsxs(
|
|
191
|
-
|
|
192
|
-
|
|
192
|
+
}), jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
193
|
+
sx: {
|
|
194
|
+
gap: '0.5rem'
|
|
195
|
+
},
|
|
196
|
+
children: [jsxRuntime.jsx(edsMaterial.Button, {
|
|
193
197
|
startIcon: jsxRuntime.jsx(iconsMaterial.Refresh, {}),
|
|
194
198
|
onClick: function onClick() {
|
|
195
199
|
return refetch();
|
|
@@ -197,7 +201,7 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
197
201
|
children: intl$1.formatMessage({
|
|
198
202
|
id: 'runbox.common.retry'
|
|
199
203
|
})
|
|
200
|
-
}), typeof showMessenger === 'function' ? jsxRuntime.jsx(
|
|
204
|
+
}), typeof showMessenger === 'function' ? jsxRuntime.jsx(edsMaterial.Button, {
|
|
201
205
|
variant: "outlined",
|
|
202
206
|
onClick: function onClick() {
|
|
203
207
|
return showMessenger();
|
|
@@ -212,26 +216,32 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
212
216
|
});
|
|
213
217
|
}
|
|
214
218
|
if (!enabledLxpPlan) {
|
|
215
|
-
return jsxRuntime.jsx(
|
|
219
|
+
return jsxRuntime.jsx(edsMaterial.ThemeProvider, {
|
|
216
220
|
theme: theme.runboxLightTheme,
|
|
217
221
|
children: jsxRuntime.jsx(StyledRunboxContainer, {
|
|
218
222
|
sx: {
|
|
219
223
|
backgroundColor: 'background.paper',
|
|
220
224
|
color: 'text.primary'
|
|
221
225
|
},
|
|
222
|
-
children: jsxRuntime.jsxs(
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
+
children: jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
227
|
+
sx: {
|
|
228
|
+
textAlign: 'center',
|
|
229
|
+
gap: '0.5rem'
|
|
230
|
+
},
|
|
231
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
226
232
|
variant: "h6",
|
|
227
|
-
|
|
233
|
+
sx: {
|
|
234
|
+
color: 'text.secondary'
|
|
235
|
+
},
|
|
228
236
|
children: intl$1.formatMessage({
|
|
229
237
|
id: 'runbox.runtime.message.runbox_unavailable'
|
|
230
238
|
})
|
|
231
|
-
}), jsxRuntime.jsx(
|
|
239
|
+
}), jsxRuntime.jsx(edsMaterial.Typography, {
|
|
232
240
|
variant: "body1",
|
|
233
|
-
|
|
234
|
-
|
|
241
|
+
sx: {
|
|
242
|
+
color: 'text.tertiary',
|
|
243
|
+
whiteSpace: 'pre-line'
|
|
244
|
+
},
|
|
235
245
|
children: intl$1.formatMessage({
|
|
236
246
|
id: 'runbox.runtime.message.lxp_plan_required'
|
|
237
247
|
})
|
|
@@ -296,7 +306,7 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
296
306
|
onRunboxRefetchRequest: refetch,
|
|
297
307
|
onRunboxRunningIdChange: onRunboxRunningIdChange,
|
|
298
308
|
children: jsxRuntime.jsx(StyledRunboxContainer, {
|
|
299
|
-
children: jsxRuntime.jsx(
|
|
309
|
+
children: jsxRuntime.jsx(edsXSnackbar.SnackbarProvider, {
|
|
300
310
|
domRoot: snackbarRoot !== null && snackbarRoot !== void 0 ? snackbarRoot : document.body,
|
|
301
311
|
classes: {
|
|
302
312
|
containerRoot: SNACKBAR_CONTAINER_CLASS
|
|
@@ -7,13 +7,13 @@ var _styled = require('@emotion/styled/base');
|
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var React = require('react');
|
|
9
9
|
var apiClient = require('@elice/api-client');
|
|
10
|
+
var edsKit = require('@elice/eds-kit');
|
|
11
|
+
var edsMaterial = require('@elice/eds-material');
|
|
10
12
|
var intl = require('@elice/intl');
|
|
11
13
|
var materialSharedUtils = require('@elice/material-shared-utils');
|
|
12
|
-
var muiElements = require('@elice/mui-elements');
|
|
13
14
|
var runboxClient = require('@elice/runbox-client');
|
|
14
15
|
var types = require('@elice/types');
|
|
15
16
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
16
|
-
var material = require('@mui/material');
|
|
17
17
|
var reactQuery = require('@tanstack/react-query');
|
|
18
18
|
var MaterialRunboxActionDisconnect = require('./actions/MaterialRunboxActionDisconnect.js');
|
|
19
19
|
var MaterialRunboxActionGrade = require('./actions/MaterialRunboxActionGrade.js');
|
|
@@ -125,7 +125,7 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref4) {
|
|
|
125
125
|
if (isLeaderboardSubmitInfoLoading || remainSubmitCount === null) {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
return jsxRuntime.jsx(
|
|
128
|
+
return jsxRuntime.jsx(edsKit.Tag, {
|
|
129
129
|
label: intl$1.formatMessage({
|
|
130
130
|
id: 'runbox.header.submitInfo'
|
|
131
131
|
}, {
|
|
@@ -171,16 +171,16 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref4) {
|
|
|
171
171
|
*/
|
|
172
172
|
var renderOptionMenu = function renderOptionMenu() {
|
|
173
173
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
174
|
-
children: [isSmallTabletOrSmaller ? jsxRuntime.jsx(
|
|
174
|
+
children: [isSmallTabletOrSmaller ? jsxRuntime.jsx(edsMaterial.IconButton, {
|
|
175
175
|
size: "small",
|
|
176
176
|
disabled: !isRunboxRunning,
|
|
177
177
|
onClick: handleMenuButtonClick,
|
|
178
|
-
children: jsxRuntime.jsx(
|
|
178
|
+
children: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
179
179
|
icon: proSolidSvgIcons.faEllipsisVertical
|
|
180
180
|
})
|
|
181
|
-
}) : jsxRuntime.jsx(
|
|
181
|
+
}) : jsxRuntime.jsx(edsMaterial.Button, {
|
|
182
182
|
disabled: !isRunboxRunning,
|
|
183
|
-
startIcon: jsxRuntime.jsx(
|
|
183
|
+
startIcon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
184
184
|
icon: proSolidSvgIcons.faEllipsisVertical
|
|
185
185
|
}),
|
|
186
186
|
color: "inherit",
|
|
@@ -231,11 +231,13 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref4) {
|
|
|
231
231
|
runtimeTemplateId: runtimeTemplate.id,
|
|
232
232
|
courseId: courseId,
|
|
233
233
|
userId: studentUserId
|
|
234
|
-
}), jsxRuntime.jsxs(
|
|
234
|
+
}), jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
235
235
|
direction: "row",
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
sx: {
|
|
237
|
+
marginLeft: 'auto',
|
|
238
|
+
gap: '0.5rem',
|
|
239
|
+
alignItems: 'center'
|
|
240
|
+
},
|
|
239
241
|
children: [renderHeaderSubmitInfo(), renderOptionMenu(), renderHeaderActionDisconnect(), renderHeaderActionGrade()]
|
|
240
242
|
})]
|
|
241
243
|
});
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _styled = require('@emotion/styled/base');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var edsMaterial = require('@elice/eds-material');
|
|
7
8
|
var intl = require('@elice/intl');
|
|
8
|
-
var material = require('@mui/material');
|
|
9
9
|
var MaterialRunboxApiContext = require('../contexts/MaterialRunboxApiContext.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -16,7 +16,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
16
16
|
//
|
|
17
17
|
//
|
|
18
18
|
//
|
|
19
|
-
var StyledFormControlLabel = /*#__PURE__*/_styled__default.default(
|
|
19
|
+
var StyledFormControlLabel = /*#__PURE__*/_styled__default.default(edsMaterial.FormControlLabel, {
|
|
20
20
|
target: "e1ket70c0"
|
|
21
21
|
})("production" === "production" ? {
|
|
22
22
|
name: "1ep9nyp",
|
|
@@ -57,7 +57,7 @@ var MaterialRunboxActionAutoShutdown = function MaterialRunboxActionAutoShutdown
|
|
|
57
57
|
//
|
|
58
58
|
//
|
|
59
59
|
//
|
|
60
|
-
return jsxRuntime.jsx(
|
|
60
|
+
return jsxRuntime.jsx(edsMaterial.Tooltip, {
|
|
61
61
|
title: intl$1.formatMessage({
|
|
62
62
|
id: 'runbox.action.autoShutdown.tooltip'
|
|
63
63
|
}, {
|
|
@@ -68,7 +68,7 @@ var MaterialRunboxActionAutoShutdown = function MaterialRunboxActionAutoShutdown
|
|
|
68
68
|
})
|
|
69
69
|
}),
|
|
70
70
|
children: jsxRuntime.jsx(StyledFormControlLabel, {
|
|
71
|
-
control: jsxRuntime.jsx(
|
|
71
|
+
control: jsxRuntime.jsx(edsMaterial.Switch, {
|
|
72
72
|
checked: !(runtime === null || runtime === void 0 ? void 0 : runtime.autoShutdown),
|
|
73
73
|
disabled: !runtime || runtimeTemplate.autoShutdown,
|
|
74
74
|
onChange: handleAction
|
|
@@ -76,7 +76,7 @@ var MaterialRunboxActionAutoShutdown = function MaterialRunboxActionAutoShutdown
|
|
|
76
76
|
label: intl$1.formatMessage({
|
|
77
77
|
id: 'runbox.action.autoShutdown.title'
|
|
78
78
|
}),
|
|
79
|
-
|
|
79
|
+
slotProps: {
|
|
80
80
|
typography: {
|
|
81
81
|
variant: 'body2'
|
|
82
82
|
}
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
|
+
var edsKit = require('@elice/eds-kit');
|
|
9
|
+
var edsMaterial = require('@elice/eds-material');
|
|
8
10
|
var intl = require('@elice/intl');
|
|
9
|
-
var muiElements = require('@elice/mui-elements');
|
|
10
11
|
var runboxClient = require('@elice/runbox-client');
|
|
11
12
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
12
|
-
var material = require('@mui/material');
|
|
13
13
|
var MaterialRunboxActionDisconnectDialog = require('./MaterialRunboxActionDisconnectDialog.js');
|
|
14
14
|
var useBreakpoint = require('../../shared/hooks/useBreakpoint.js');
|
|
15
15
|
var MaterialRunboxControlContext = require('../contexts/MaterialRunboxControlContext.js');
|
|
@@ -52,23 +52,23 @@ var MaterialRunboxActionDisconnect = function MaterialRunboxActionDisconnect() {
|
|
|
52
52
|
*/
|
|
53
53
|
var renderActionButton = function renderActionButton() {
|
|
54
54
|
if (isSmallTabletOrSmaller) {
|
|
55
|
-
return jsxRuntime.jsx(
|
|
55
|
+
return jsxRuntime.jsx(edsMaterial.Tooltip, {
|
|
56
56
|
title: intl$1.formatMessage({
|
|
57
57
|
id: 'runbox.action.disconnect.title'
|
|
58
58
|
}),
|
|
59
59
|
children: jsxRuntime.jsx("span", {
|
|
60
|
-
children: jsxRuntime.jsx(
|
|
60
|
+
children: jsxRuntime.jsx(edsMaterial.IconButton, {
|
|
61
61
|
size: "small",
|
|
62
62
|
disabled: isRunboxTerminated,
|
|
63
63
|
onClick: handleClickAction,
|
|
64
|
-
children: jsxRuntime.jsx(
|
|
64
|
+
children: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
65
65
|
icon: proSolidSvgIcons.faLinkSlash
|
|
66
66
|
})
|
|
67
67
|
})
|
|
68
68
|
})
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
return jsxRuntime.jsx(
|
|
71
|
+
return jsxRuntime.jsx(edsMaterial.Button, {
|
|
72
72
|
disabled: isRunboxTerminated,
|
|
73
73
|
variant: "contained",
|
|
74
74
|
color: "inherit",
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var edsMaterial = require('@elice/eds-material');
|
|
6
7
|
var intl = require('@elice/intl');
|
|
7
|
-
var material = require('@mui/material');
|
|
8
8
|
|
|
9
9
|
var MaterialRunboxActionDisconnectDialog = function MaterialRunboxActionDisconnectDialog(_ref) {
|
|
10
10
|
var open = _ref.open,
|
|
@@ -26,29 +26,31 @@ var MaterialRunboxActionDisconnectDialog = function MaterialRunboxActionDisconne
|
|
|
26
26
|
//
|
|
27
27
|
//
|
|
28
28
|
//
|
|
29
|
-
return jsxRuntime.jsxs(
|
|
29
|
+
return jsxRuntime.jsxs(edsMaterial.Dialog, {
|
|
30
30
|
open: open,
|
|
31
31
|
onClose: onClose,
|
|
32
|
-
children: [jsxRuntime.jsx(
|
|
32
|
+
children: [jsxRuntime.jsx(edsMaterial.DialogTitle, {
|
|
33
33
|
children: intl$1.formatMessage({
|
|
34
34
|
id: 'runbox.action.disconnect.dialog.title'
|
|
35
35
|
})
|
|
36
|
-
}), jsxRuntime.jsx(
|
|
37
|
-
children: jsxRuntime.jsx(
|
|
38
|
-
|
|
36
|
+
}), jsxRuntime.jsx(edsMaterial.DialogContent, {
|
|
37
|
+
children: jsxRuntime.jsx(edsMaterial.Typography, {
|
|
38
|
+
sx: {
|
|
39
|
+
whiteSpace: 'pre-line'
|
|
40
|
+
},
|
|
39
41
|
children: intl$1.formatMessage({
|
|
40
42
|
id: 'runbox.action.disconnect.dialog.description'
|
|
41
43
|
})
|
|
42
44
|
})
|
|
43
|
-
}), jsxRuntime.jsxs(
|
|
44
|
-
children: [jsxRuntime.jsx(
|
|
45
|
+
}), jsxRuntime.jsxs(edsMaterial.DialogActions, {
|
|
46
|
+
children: [jsxRuntime.jsx(edsMaterial.Button, {
|
|
45
47
|
variant: "contained",
|
|
46
48
|
color: "inherit",
|
|
47
49
|
onClick: handleClickClose,
|
|
48
50
|
children: intl$1.formatMessage({
|
|
49
51
|
id: 'runbox.common.close'
|
|
50
52
|
})
|
|
51
|
-
}), jsxRuntime.jsx(
|
|
53
|
+
}), jsxRuntime.jsx(edsMaterial.Button, {
|
|
52
54
|
variant: "contained",
|
|
53
55
|
color: "primary",
|
|
54
56
|
onClick: handleClickDisconnect,
|
|
@@ -5,12 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
|
+
var edsKit = require('@elice/eds-kit');
|
|
9
|
+
var edsMaterial = require('@elice/eds-material');
|
|
8
10
|
var intl = require('@elice/intl');
|
|
9
|
-
var muiElements = require('@elice/mui-elements');
|
|
10
11
|
var runboxClient = require('@elice/runbox-client');
|
|
11
12
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
12
|
-
var lab = require('@mui/lab');
|
|
13
|
-
var material = require('@mui/material');
|
|
14
13
|
var MaterialRunboxActionDisconnectDialog = require('./MaterialRunboxActionDisconnectDialog.js');
|
|
15
14
|
var MaterialRunboxControlContext = require('../contexts/MaterialRunboxControlContext.js');
|
|
16
15
|
|
|
@@ -57,20 +56,20 @@ var MaterialRunboxActionDisconnectMenuItem = function MaterialRunboxActionDiscon
|
|
|
57
56
|
//
|
|
58
57
|
//
|
|
59
58
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
60
|
-
children: [jsxRuntime.jsxs(
|
|
59
|
+
children: [jsxRuntime.jsxs(edsMaterial.MenuItem, {
|
|
61
60
|
fullWidth: true,
|
|
62
|
-
component:
|
|
61
|
+
component: edsMaterial.Button,
|
|
63
62
|
color: "inherit",
|
|
64
63
|
loading: isStopping,
|
|
65
64
|
disabled: isRunboxTerminated,
|
|
66
65
|
onClick: function onClick() {
|
|
67
66
|
return setDisconnectDialogOpen(true);
|
|
68
67
|
},
|
|
69
|
-
children: [jsxRuntime.jsx(
|
|
70
|
-
children: jsxRuntime.jsx(
|
|
68
|
+
children: [jsxRuntime.jsx(edsMaterial.ListItemIcon, {
|
|
69
|
+
children: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
71
70
|
icon: proSolidSvgIcons.faLinkSlash
|
|
72
71
|
})
|
|
73
|
-
}), jsxRuntime.jsx(
|
|
72
|
+
}), jsxRuntime.jsx(edsMaterial.ListItemText, {
|
|
74
73
|
children: intl$1.formatMessage({
|
|
75
74
|
id: 'runbox.action.disconnect.title'
|
|
76
75
|
})
|
|
@@ -7,13 +7,12 @@ var _styled = require('@emotion/styled/base');
|
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var React = require('react');
|
|
9
9
|
var reactTransitionGroup = require('react-transition-group');
|
|
10
|
+
var edsMaterial = require('@elice/eds-material');
|
|
11
|
+
var edsXSnackbar = require('@elice/eds-x-snackbar');
|
|
10
12
|
var intl = require('@elice/intl');
|
|
11
|
-
var muiXSnackbar = require('@elice/mui-x-snackbar');
|
|
12
13
|
var openapiClientMaterialRunbox = require('@elice/openapi-client-material-runbox');
|
|
13
14
|
var runboxClient = require('@elice/runbox-client');
|
|
14
15
|
var iconsMaterial = require('@mui/icons-material');
|
|
15
|
-
var lab = require('@mui/lab');
|
|
16
|
-
var material = require('@mui/material');
|
|
17
16
|
var reactQuery = require('@tanstack/react-query');
|
|
18
17
|
var MaterialRunboxApiContext = require('../contexts/MaterialRunboxApiContext.js');
|
|
19
18
|
var MaterialRunboxCommandContext = require('../contexts/MaterialRunboxCommandContext.js');
|
|
@@ -48,7 +47,7 @@ var TRANSITION_STYLE_MAP = {
|
|
|
48
47
|
//
|
|
49
48
|
//
|
|
50
49
|
//
|
|
51
|
-
var StyledMainActionButton = /*#__PURE__*/_styled__default.default(
|
|
50
|
+
var StyledMainActionButton = /*#__PURE__*/_styled__default.default(edsMaterial.Button, {
|
|
52
51
|
target: "eae460y2"
|
|
53
52
|
})("production" === "production" ? {
|
|
54
53
|
name: "tssn5p",
|
|
@@ -58,7 +57,7 @@ var StyledMainActionButton = /*#__PURE__*/_styled__default.default(lab.LoadingBu
|
|
|
58
57
|
styles: "min-width:4rem!important",
|
|
59
58
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
60
59
|
});
|
|
61
|
-
var StyledSubActionButton = /*#__PURE__*/_styled__default.default(
|
|
60
|
+
var StyledSubActionButton = /*#__PURE__*/_styled__default.default(edsMaterial.Button, {
|
|
62
61
|
target: "eae460y1"
|
|
63
62
|
})("transition:max-width ", TRANSITION_DURATION, "ms cubic-bezier(0.25, 0.46, 0.45, 1);");
|
|
64
63
|
var StyledTerminal = /*#__PURE__*/_styled__default.default("textarea", {
|
|
@@ -84,7 +83,7 @@ var MaterialRunboxActionGrade = function MaterialRunboxActionGrade(_ref5) {
|
|
|
84
83
|
courseId = _ref5.courseId;
|
|
85
84
|
var _a;
|
|
86
85
|
var intl$1 = intl.useRawEliceIntl();
|
|
87
|
-
var _useSnackbar =
|
|
86
|
+
var _useSnackbar = edsXSnackbar.useSnackbar(),
|
|
88
87
|
enqueueSnackbar = _useSnackbar.enqueueSnackbar;
|
|
89
88
|
var materialRunboxApi = MaterialRunboxApiContext.useMaterialRunboxApiContext();
|
|
90
89
|
var _useMaterialRunboxCom = MaterialRunboxCommandContext.useMaterialRunboxCommandContext(),
|
|
@@ -248,10 +247,10 @@ var MaterialRunboxActionGrade = function MaterialRunboxActionGrade(_ref5) {
|
|
|
248
247
|
}
|
|
249
248
|
return '';
|
|
250
249
|
};
|
|
251
|
-
return jsxRuntime.jsx(
|
|
250
|
+
return jsxRuntime.jsx(edsMaterial.Tooltip, {
|
|
252
251
|
title: getActionTooltipMessage(),
|
|
253
252
|
placement: "bottom-end",
|
|
254
|
-
children: jsxRuntime.jsxs(
|
|
253
|
+
children: jsxRuntime.jsxs(edsMaterial.ButtonGroup, {
|
|
255
254
|
variant: "contained",
|
|
256
255
|
children: [jsxRuntime.jsx(StyledMainActionButton, {
|
|
257
256
|
variant: "contained",
|
|
@@ -273,7 +272,7 @@ var MaterialRunboxActionGrade = function MaterialRunboxActionGrade(_ref5) {
|
|
|
273
272
|
disabled: isLastCommandRunning,
|
|
274
273
|
style: TRANSITION_STYLE_MAP[state],
|
|
275
274
|
onClick: handleGradeResultDialogOpen,
|
|
276
|
-
children: jsxRuntime.jsx(
|
|
275
|
+
children: jsxRuntime.jsx(edsMaterial.Badge, {
|
|
277
276
|
color: "error",
|
|
278
277
|
variant: "dot",
|
|
279
278
|
invisible: !hasUnreadResult,
|
|
@@ -294,24 +293,26 @@ var MaterialRunboxActionGrade = function MaterialRunboxActionGrade(_ref5) {
|
|
|
294
293
|
if ((lastCommand === null || lastCommand === void 0 ? void 0 : lastCommand.commandType) !== openapiClientMaterialRunbox.CommandType.Grade) {
|
|
295
294
|
return null;
|
|
296
295
|
}
|
|
297
|
-
return jsxRuntime.jsxs(
|
|
296
|
+
return jsxRuntime.jsxs(edsMaterial.Dialog, {
|
|
298
297
|
fullWidth: true,
|
|
299
298
|
open: isGradeResultDialogOpen,
|
|
300
299
|
maxWidth: "md",
|
|
301
300
|
onClose: handleGradeResultDialogClose,
|
|
302
|
-
children: [jsxRuntime.jsx(
|
|
301
|
+
children: [jsxRuntime.jsx(edsMaterial.DialogTitle, {
|
|
303
302
|
children: intl$1.formatMessage({
|
|
304
303
|
id: 'runbox.action.grade.dialog.title'
|
|
305
304
|
})
|
|
306
|
-
}), jsxRuntime.jsx(
|
|
307
|
-
children: jsxRuntime.jsxs(
|
|
308
|
-
|
|
309
|
-
|
|
305
|
+
}), jsxRuntime.jsx(edsMaterial.DialogContent, {
|
|
306
|
+
children: jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
307
|
+
sx: {
|
|
308
|
+
gap: '0.75rem'
|
|
309
|
+
},
|
|
310
|
+
children: [lastCommand.terminatedReason === 'done' ? jsxRuntime.jsx(edsMaterial.Alert, {
|
|
310
311
|
severity: "success",
|
|
311
312
|
children: intl$1.formatMessage({
|
|
312
313
|
id: 'runbox.action.grade.dialog.description.success'
|
|
313
314
|
})
|
|
314
|
-
}) : jsxRuntime.jsx(
|
|
315
|
+
}) : jsxRuntime.jsx(edsMaterial.Alert, {
|
|
315
316
|
severity: "error",
|
|
316
317
|
sx: {
|
|
317
318
|
whiteSpace: 'pre-line'
|
|
@@ -325,8 +326,8 @@ var MaterialRunboxActionGrade = function MaterialRunboxActionGrade(_ref5) {
|
|
|
325
326
|
rows: 20
|
|
326
327
|
})]
|
|
327
328
|
})
|
|
328
|
-
}), jsxRuntime.jsx(
|
|
329
|
-
children: jsxRuntime.jsx(
|
|
329
|
+
}), jsxRuntime.jsx(edsMaterial.DialogActions, {
|
|
330
|
+
children: jsxRuntime.jsx(edsMaterial.Button, {
|
|
330
331
|
color: "inherit",
|
|
331
332
|
disabled: isActionLoading,
|
|
332
333
|
onClick: handleGradeResultDialogClose,
|
|
@@ -341,23 +342,23 @@ var MaterialRunboxActionGrade = function MaterialRunboxActionGrade(_ref5) {
|
|
|
341
342
|
*
|
|
342
343
|
*/
|
|
343
344
|
var renderActionSubmitCountInfoDialog = function renderActionSubmitCountInfoDialog() {
|
|
344
|
-
return jsxRuntime.jsxs(
|
|
345
|
+
return jsxRuntime.jsxs(edsMaterial.Dialog, {
|
|
345
346
|
fullWidth: true,
|
|
346
347
|
maxWidth: "xs",
|
|
347
348
|
open: isSubmitCountInfoDialogOpen,
|
|
348
349
|
onClick: handleSubmitCountInfoDialogClose,
|
|
349
|
-
children: [jsxRuntime.jsx(
|
|
350
|
+
children: [jsxRuntime.jsx(edsMaterial.DialogTitle, {
|
|
350
351
|
children: intl$1.formatMessage({
|
|
351
352
|
id: 'runbtox.action.submitCountInfo.dialog.title'
|
|
352
353
|
})
|
|
353
|
-
}), jsxRuntime.jsx(
|
|
354
|
-
children: jsxRuntime.jsx(
|
|
354
|
+
}), jsxRuntime.jsx(edsMaterial.DialogContent, {
|
|
355
|
+
children: jsxRuntime.jsx(edsMaterial.Typography, {
|
|
355
356
|
children: intl$1.formatMessage({
|
|
356
357
|
id: 'runbox.action.submitCountInfo.dialog.description'
|
|
357
358
|
})
|
|
358
359
|
})
|
|
359
|
-
}), jsxRuntime.jsx(
|
|
360
|
-
children: jsxRuntime.jsx(
|
|
360
|
+
}), jsxRuntime.jsx(edsMaterial.DialogActions, {
|
|
361
|
+
children: jsxRuntime.jsx(edsMaterial.Button, {
|
|
361
362
|
color: "inherit",
|
|
362
363
|
onClick: handleSubmitCountInfoDialogClose,
|
|
363
364
|
children: intl$1.formatMessage({
|