@ohif/app 3.13.0-beta.106 → 3.13.0-beta.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{100.bundle.56df37048f18e8d6.js → 100.bundle.e4a99d657ea0f5c5.js} +2 -2
- package/dist/{1206.bundle.b33445313bf69d18.js → 1206.bundle.79ed23079c78f18d.js} +1 -1
- package/dist/{1602.bundle.5abf7d4e0dd3642d.js → 1602.bundle.b94123841d0be28c.js} +4 -4
- package/dist/{2779.bundle.79cd776285d6beb2.js → 2779.bundle.75035bef73785648.js} +2 -2
- package/dist/{3500.bundle.d335f7029fa62beb.js → 3500.bundle.028ff02de8479e1f.js} +3 -3
- package/dist/{3760.bundle.21030c7f7d799dfe.js → 3760.bundle.d418d6de1fdf8ba1.js} +6 -6
- package/dist/{414.bundle.b876112aa5b17ba6.js → 414.bundle.173a6d43876f37df.js} +12 -12
- package/dist/{5189.bundle.55049ff3ee39ea66.js → 5189.bundle.ef9d707c4c3f31aa.js} +4 -4
- package/dist/{5448.bundle.541ef1e88921f80c.js → 5448.bundle.8cda5b8e4baea275.js} +1 -1
- package/dist/{5708.bundle.8e2f521ddeced690.js → 5708.bundle.cd752df2477f08e7.js} +6 -6
- package/dist/{5910.bundle.b9f4a4f1b60212be.js → 5910.bundle.c1199bd45e450735.js} +2 -2
- package/dist/{7231.bundle.d915ae1cec94a9eb.js → 7231.bundle.e80ae4c82e76f9aa.js} +2 -2
- package/dist/{7248.bundle.9a36a0a365fc8222.js → 7248.bundle.3c863bbe9838c22d.js} +2 -2
- package/dist/{7295.bundle.743b3f030f71fcf2.js → 7295.bundle.3e5952995b3991d8.js} +6 -6
- package/dist/{8832.bundle.b2a8fd246769659c.js → 8832.bundle.80bef8516a5463fe.js} +7 -7
- package/dist/{899.bundle.d0a255f4e353338f.js → 899.bundle.6f855ae8df39327e.js} +2 -2
- package/dist/{9068.bundle.30eec013c80cd484.js → 9068.bundle.29adebcfccb4bc8e.js} +2 -2
- package/dist/{9116.bundle.4b256eb78332fe66.js → 9116.bundle.1619bafaca4952a1.js} +2 -2
- package/dist/{7847.bundle.dcd1f26a407a8ed1.js → 9358.bundle.1b85858cf5d8b064.js} +131 -13
- package/dist/{9415.bundle.9ff85569bf94fcd5.js → 9415.bundle.65b1f625994dcdeb.js} +2 -2
- package/dist/{app.bundle.e21787617957146b.js → app.bundle.4bf8509cc48f40b9.js} +274 -24
- package/dist/app.bundle.css +2 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +5 -5
- /package/dist/{1180.bundle.2d084ec1b1aac6e9.js → 1180.bundle.9c2fb20ea8fd0a02.js} +0 -0
- /package/dist/{2666.bundle.ad52c2a7dee5d2e1.js → 2666.bundle.0d382ec9ac6a66e4.js} +0 -0
- /package/dist/{4556.bundle.014a9ed62e01a08b.js → 4556.bundle.c26b805e6342df5a.js} +0 -0
- /package/dist/{4683.bundle.edef5d40d333ba9d.js → 4683.bundle.dd3c4e497c45c79d.js} +0 -0
- /package/dist/{4834.bundle.63009b7524d93dd3.js → 4834.bundle.984efd9f19bd83a9.js} +0 -0
- /package/dist/{5696.bundle.e6dee5c933cf2d83.js → 5696.bundle.7a0b7139a57852e8.js} +0 -0
- /package/dist/{6001.bundle.0e5a3fa0050f84ce.js → 6001.bundle.6a9b30e2c5049393.js} +0 -0
- /package/dist/{8423.bundle.14bde19a189c2798.js → 8423.bundle.44870962c74d2272.js} +0 -0
- /package/dist/{9290.bundle.c6819531baa18703.js → 9290.bundle.99e766acc8f04788.js} +0 -0
- /package/dist/{9437.bundle.e40c0a63e67c24d7.js → 9437.bundle.143bb2e03b76d043.js} +0 -0
|
@@ -19,8 +19,8 @@ const SOPClassHandlerId = `${id}.sopClassHandlerModule.${SOPClassHandlerName}`;
|
|
|
19
19
|
var react = __webpack_require__(86326);
|
|
20
20
|
// EXTERNAL MODULE: ../../core/src/index.ts + 69 modules
|
|
21
21
|
var src = __webpack_require__(62901);
|
|
22
|
-
// EXTERNAL MODULE: ../../i18n/src/index.js +
|
|
23
|
-
var i18n_src = __webpack_require__(
|
|
22
|
+
// EXTERNAL MODULE: ../../i18n/src/index.js + 300 modules
|
|
23
|
+
var i18n_src = __webpack_require__(90119);
|
|
24
24
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
|
|
25
25
|
var esm = __webpack_require__(70594);
|
|
26
26
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 79 modules
|
|
@@ -85360,8 +85360,8 @@ var react = __webpack_require__(86326);
|
|
|
85360
85360
|
// EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
|
|
85361
85361
|
var prop_types = __webpack_require__(97598);
|
|
85362
85362
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
85363
|
-
// EXTERNAL MODULE: ../../i18n/src/index.js +
|
|
85364
|
-
var i18n_src = __webpack_require__(
|
|
85363
|
+
// EXTERNAL MODULE: ../../i18n/src/index.js + 300 modules
|
|
85364
|
+
var i18n_src = __webpack_require__(90119);
|
|
85365
85365
|
// EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 29 modules
|
|
85366
85366
|
var es = __webpack_require__(75258);
|
|
85367
85367
|
// EXTERNAL MODULE: ../../../node_modules/react-router-dom/dist/index.js
|
|
@@ -85393,8 +85393,8 @@ Compose.propTypes = {
|
|
|
85393
85393
|
};
|
|
85394
85394
|
// EXTERNAL MODULE: ../../core/src/index.ts + 69 modules
|
|
85395
85395
|
var core_src = __webpack_require__(62901);
|
|
85396
|
-
// EXTERNAL MODULE: ../../ui-next/src/index.ts +
|
|
85397
|
-
var ui_next_src = __webpack_require__(
|
|
85396
|
+
// EXTERNAL MODULE: ../../ui-next/src/index.ts + 3682 modules
|
|
85397
|
+
var ui_next_src = __webpack_require__(39987);
|
|
85398
85398
|
// EXTERNAL MODULE: ./state/index.js + 1 modules
|
|
85399
85399
|
var state_0 = __webpack_require__(55461);
|
|
85400
85400
|
;// CONCATENATED MODULE: ./utils/preserveQueryParameters.ts
|
|
@@ -86209,7 +86209,7 @@ function defaultSettingsMenuItems({
|
|
|
86209
86209
|
}) {
|
|
86210
86210
|
const items = [{
|
|
86211
86211
|
id: 'about',
|
|
86212
|
-
label: 'About
|
|
86212
|
+
label: t('Header:About'),
|
|
86213
86213
|
onClick: () => {
|
|
86214
86214
|
const AboutModal = customizationService.getCustomization('ohif.aboutModal');
|
|
86215
86215
|
show({
|
|
@@ -86220,7 +86220,7 @@ function defaultSettingsMenuItems({
|
|
|
86220
86220
|
}
|
|
86221
86221
|
}, {
|
|
86222
86222
|
id: 'userPreferences',
|
|
86223
|
-
label: '
|
|
86223
|
+
label: t('Header:Preferences'),
|
|
86224
86224
|
onClick: () => {
|
|
86225
86225
|
const UserPreferencesModal = customizationService.getCustomization('ohif.userPreferencesModal');
|
|
86226
86226
|
show({
|
|
@@ -86230,6 +86230,20 @@ function defaultSettingsMenuItems({
|
|
|
86230
86230
|
});
|
|
86231
86231
|
}
|
|
86232
86232
|
}];
|
|
86233
|
+
const AppearanceModal = customizationService.getCustomization('ohif.appearanceModal');
|
|
86234
|
+
if (AppearanceModal) {
|
|
86235
|
+
items.splice(1, 0, {
|
|
86236
|
+
id: 'appearance',
|
|
86237
|
+
label: AppearanceModal.menuTitle ?? t('Header:Appearance'),
|
|
86238
|
+
onClick: () => {
|
|
86239
|
+
show({
|
|
86240
|
+
content: AppearanceModal,
|
|
86241
|
+
title: AppearanceModal.title ?? t('AppearanceModal:Appearance'),
|
|
86242
|
+
containerClassName: AppearanceModal.containerClassName ?? 'max-w-md'
|
|
86243
|
+
});
|
|
86244
|
+
}
|
|
86245
|
+
});
|
|
86246
|
+
}
|
|
86233
86247
|
if (appConfig.oidc) {
|
|
86234
86248
|
items.push({
|
|
86235
86249
|
id: 'logout',
|
|
@@ -88097,35 +88111,35 @@ pluginImports_modes.push("@ohif/mode-ultrasound-pleura-bline");
|
|
|
88097
88111
|
async function loadModule(module) {
|
|
88098
88112
|
if (typeof module !== 'string') return module;
|
|
88099
88113
|
if (module === "@ohif/extension-default") {
|
|
88100
|
-
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(
|
|
88114
|
+
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(9358), __webpack_require__.e(6214)]).then(__webpack_require__.bind(__webpack_require__, 5213));
|
|
88101
88115
|
return imported.default;
|
|
88102
88116
|
}
|
|
88103
88117
|
if (module === "@ohif/extension-cornerstone") {
|
|
88104
|
-
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(
|
|
88118
|
+
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(9358), __webpack_require__.e(414), __webpack_require__.e(3833)]).then(__webpack_require__.bind(__webpack_require__, 84461));
|
|
88105
88119
|
return imported.default;
|
|
88106
88120
|
}
|
|
88107
88121
|
if (module === "@ohif/extension-measurement-tracking") {
|
|
88108
|
-
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(379), __webpack_require__.e(5406), __webpack_require__.e(
|
|
88122
|
+
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(379), __webpack_require__.e(5406), __webpack_require__.e(9358), __webpack_require__.e(414), __webpack_require__.e(7248), __webpack_require__.e(3760)]).then(__webpack_require__.bind(__webpack_require__, 34879));
|
|
88109
88123
|
return imported.default;
|
|
88110
88124
|
}
|
|
88111
88125
|
if (module === "@ohif/extension-cornerstone-dicom-sr") {
|
|
88112
|
-
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(379), __webpack_require__.e(
|
|
88126
|
+
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(379), __webpack_require__.e(9358), __webpack_require__.e(414), __webpack_require__.e(7248), __webpack_require__.e(976)]).then(__webpack_require__.bind(__webpack_require__, 81107));
|
|
88113
88127
|
return imported.default;
|
|
88114
88128
|
}
|
|
88115
88129
|
if (module === "@ohif/extension-cornerstone-dicom-seg") {
|
|
88116
|
-
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(379), __webpack_require__.e(
|
|
88130
|
+
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(379), __webpack_require__.e(9358), __webpack_require__.e(414), __webpack_require__.e(5708)]).then(__webpack_require__.bind(__webpack_require__, 53451));
|
|
88117
88131
|
return imported.default;
|
|
88118
88132
|
}
|
|
88119
88133
|
if (module === "@ohif/extension-cornerstone-dicom-pmap") {
|
|
88120
|
-
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(379), __webpack_require__.e(
|
|
88134
|
+
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(379), __webpack_require__.e(9358), __webpack_require__.e(414), __webpack_require__.e(9415)]).then(__webpack_require__.bind(__webpack_require__, 76494));
|
|
88121
88135
|
return imported.default;
|
|
88122
88136
|
}
|
|
88123
88137
|
if (module === "@ohif/extension-cornerstone-dynamic-volume") {
|
|
88124
|
-
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(
|
|
88138
|
+
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(9358), __webpack_require__.e(414), __webpack_require__.e(1602)]).then(__webpack_require__.bind(__webpack_require__, 42061));
|
|
88125
88139
|
return imported.default;
|
|
88126
88140
|
}
|
|
88127
88141
|
if (module === "@ohif/extension-dicom-microscopy") {
|
|
88128
|
-
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(5731), __webpack_require__.e(
|
|
88142
|
+
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(5731), __webpack_require__.e(9358), __webpack_require__.e(8832)]).then(__webpack_require__.bind(__webpack_require__, 4671));
|
|
88129
88143
|
return imported.default;
|
|
88130
88144
|
}
|
|
88131
88145
|
if (module === "@ohif/extension-dicom-pdf") {
|
|
@@ -88137,11 +88151,11 @@ async function loadModule(module) {
|
|
|
88137
88151
|
return imported.default;
|
|
88138
88152
|
}
|
|
88139
88153
|
if (module === "@ohif/extension-tmtv") {
|
|
88140
|
-
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(379), __webpack_require__.e(
|
|
88154
|
+
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(379), __webpack_require__.e(9358), __webpack_require__.e(414), __webpack_require__.e(7295)]).then(__webpack_require__.bind(__webpack_require__, 75366));
|
|
88141
88155
|
return imported.default;
|
|
88142
88156
|
}
|
|
88143
88157
|
if (module === "@ohif/extension-test") {
|
|
88144
|
-
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(
|
|
88158
|
+
const imported = await Promise.all(/* import() */ [__webpack_require__.e(4456), __webpack_require__.e(8568), __webpack_require__.e(6577), __webpack_require__.e(5989), __webpack_require__.e(8432), __webpack_require__.e(6650), __webpack_require__.e(9358), __webpack_require__.e(414), __webpack_require__.e(8423)]).then(__webpack_require__.bind(__webpack_require__, 49182));
|
|
88145
88159
|
return imported.default;
|
|
88146
88160
|
}
|
|
88147
88161
|
if (module === "@ohif/extension-cornerstone-dicom-rt") {
|
|
@@ -107759,7 +107773,7 @@ function uuidv4() {
|
|
|
107759
107773
|
}
|
|
107760
107774
|
|
|
107761
107775
|
},
|
|
107762
|
-
|
|
107776
|
+
90119(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
107763
107777
|
"use strict";
|
|
107764
107778
|
|
|
107765
107779
|
// EXPORTS
|
|
@@ -108930,7 +108944,7 @@ const detectionOptions = {
|
|
|
108930
108944
|
}
|
|
108931
108945
|
});
|
|
108932
108946
|
;// CONCATENATED MODULE: ../../i18n/package.json
|
|
108933
|
-
var package_namespaceObject = JSON.parse('{"rE":"3.13.0-beta.
|
|
108947
|
+
var package_namespaceObject = JSON.parse('{"rE":"3.13.0-beta.106"}')
|
|
108934
108948
|
;// CONCATENATED MODULE: ../../i18n/src/utils.js
|
|
108935
108949
|
const languagesMap = {
|
|
108936
108950
|
ar: 'Arabic',
|
|
@@ -109206,6 +109220,8 @@ var de_ViewportDownloadForm_namespaceObject = JSON.parse('{"emptyFilenameError":
|
|
|
109206
109220
|
});
|
|
109207
109221
|
;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/AboutModal.json
|
|
109208
109222
|
var en_US_AboutModal_namespaceObject = JSON.parse('{"About OHIF Viewer":"About OHIF Viewer","Browser":"Browser","Build number":"Build Number","Commit hash":"Commit hash","Commit Hash":"Commit Hash","Current Browser & OS":"Current Browser & OS","Data citation":"Data citation","Important links":"Important links","Last master commits":"Latest Master Commits","More details":"More details","Name":"Name","OS":"OS","Report an issue":"Report an issue","Repository URL":"Repository URL","Value":"Value","Version information":"Version Information","Version number":"Version number","Visit the forum":"Visit the forum"}')
|
|
109223
|
+
;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/AppearanceModal.json
|
|
109224
|
+
var AppearanceModal_namespaceObject = JSON.parse('{"Appearance":"Appearance","Theme":"Theme","Default Theme":"Tonal: OHIF Blue","Custom":"Custom","Custom Theme":"Custom Theme","Hide":"Hide","Apply":"Apply","Clear":"Clear","No valid theme tokens found":"No valid theme tokens found. Expected lines like --primary: 220 90% 60%","Paste your custom theme color tokens here":"Paste your custom theme color tokens here"}')
|
|
109209
109225
|
;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/Buttons.json
|
|
109210
109226
|
var en_US_Buttons_namespaceObject = JSON.parse('{"Acquired":"Acquired","Angle":"Angle","Annotation":"Annotation","Axial":"Axial","Bidirectional":"Bidirectional","Brush":"Brush","Cine":"Cine","Cancel":"Cancel","Capture":"Capture","Circle":"Circle","Sphere":"Sphere","Clear":"Clear","Coronal":"Coronal","Crosshairs":"Crosshairs","Download":"Download","Ellipse":"Ellipse","Elliptical":"Elliptical","Flip H":"Flip H","Flip Horizontally":"Flip Horizontally","Flip V":"Flip V","Freehand":"Freehand","Grid Layout":"Grid Layout","Invert":"Invert","Layout":"$t(Common:Layout)","Length":"Length","Levels":"Levels","Magnify":"Magnify","Manual":"Manual","Measurements":"Measurements","More":"$t(Common:More)","More Tools":"More Tools","Next":"$t(Common:Next)","Pan":"Pan","Play":"$t(Common:Play)","Previous":"$t(Common:Previous)","Probe":"Probe","ROI Window":"ROI Window","Rectangle":"Rectangle","Reference Lines":"Reference Lines","Reset":"$t(Common:Reset)","Reset to defaults":"Reset to Defaults","Rotate Right":"Rotate Right","Sagittal":"Sagittal","Save":"Save","Stack Scroll":"Stack Scroll","Stack Image Sync":"Stack Image Sync","Stop":"$t(Common:Stop)","Themes":"Themes","Zoom":"Zoom","Adjust window/level presets and customize image contrast settings":"Adjust window/level presets and customize image contrast settings","Zoom-in":"Zoom-in","Cobb Angle":"Cobb Angle","Calibration":"Calibration","Dicom Tag Browser":"DICOM Tag Browser","Magnify Probe":"Magnify Probe","Ultrasound Directional":"Ultrasound Directional","Window Level Region":"Window Level Region","Image Overlay":"Image Overlay","Image Slice Sync":"Image Slice Sync","Freehand ROI":"Freehand ROI","Spline ROI":"Spline ROI","Livewire tool":"Livewire tool","Livewire Contour":"Livewire Contour","Segment Label Display":"Segment Label Display","Data Overlay":"Data Overlay","Configure data overlay options and manage foreground/background display sets":"Configure data overlay options and manage foreground/background display sets","Orientation":"Orientation","Change viewport orientation between axial, sagittal, coronal and reformat planes":"Change viewport orientation between axial, sagittal, coronal and reformat planes","Status":"Status","Navigation":"Navigation","Navigate between segments/measurements and manage their visibility":"Navigate between segments/measurements and manage their visibility","Tracking Status":"Tracking Status","View and manage tracking status of measurements and annotations":"View and manage tracking status of measurements and annotations","Advanced Window Level":"Advanced Window Level","Advanced window/level settings with manual controls and presets":"Advanced window/level settings with manual controls and presets","Threshold":"Threshold","Image threshold settings":"Image threshold settings","Opacity":"Opacity","Image opacity settings":"Image opacity settings","Colorbar":"Colorbar","Enable position synchronization on stack viewports":"Enable position synchronization on stack viewports","Show Reference Lines":"Show Reference Lines","Toggle Image Overlay":"Toggle Image Overlay","Calibration Line":"Calibration Line","Ellipse ROI":"Ellipse ROI","Rectangle ROI":"Rectangle ROI","Circle Tool":"Circle Tool","Click to show or hide segment labels when hovering with your mouse.":"Click to show or hide segment labels when hovering with your mouse.","Arrow Annotate":"Arrow Annotate","Bidirectional Tool":"Bidirectional Tool","Bone":"Bone","Brain":"Brain","Dismiss Aspect":"Dismiss Aspect","Ellipse Tool":"Ellipse Tool","Flip Horizontal":"Flip Horizontal","Invert Colors":"Invert Colors","Keep Aspect":"Keep Aspect","Length Tool":"Length Tool","Liver":"Liver","Lung":"Lung","More Measure Tools":"More Measure Tools","Reset View":"Reset View","Rotate +90":"Rotate +90","Soft tissue":"Soft tissue","W/L Presets":"W/L Presets","Window Level":"Window Level","Point":"Point","Point Tool":"Point Tool","Polygon":"Polygon","Polygon Tool":"Polygon Tool","Box":"Box","Box Tool":"Box Tool","Freehand Polygon":"Freehand Polygon","Freehand Polygon Tool":"Freehand Polygon Tool","Freehand Line":"Freehand Line","Freehand Line Tool":"Freehand Line Tool","Line":"Line","Line Tool":"Line Tool","3D Rotate":"3D Rotate","Shape":"Shape","MPR":"MPR","Rectangle ROI Threshold":"Rectangle ROI Threshold","Select the PT Axial to enable this tool":"Select the PT Axial to enable this tool","Create new segmentation to enable this tool.":"Create new segmentation to enable this tool.","Freehand Segmentation":"Freehand Segmentation","Spline Contour Segmentation Tool":"Spline Contour Segmentation Tool","Sculptor Tool":"Sculptor Tool","Interpolate Contours":"Interpolate Contours","Marker Mode":"Marker Mode","Include":"Include","Exclude":"Exclude","Clear Markers":"Clear Markers","Radius (mm)":"Radius (mm)","Dynamic":"Dynamic","Range":"Range","Spline Type":"Spline Type","Catmull Rom Spline":"Catmull Rom Spline","Linear Spline":"Linear Spline","B-Spline":"B-Spline","Simplified Spline":"Simplified Spline","Dynamic Cursor Size":"Dynamic Cursor Size","No segmentations available":"No segmentations available","Threshold Tool":"Threshold Tool","Threshold Tools":"Threshold Tools","Select a 3D viewport to enable this tool":"Select a 3D viewport to enable this tool","Not available on the current viewport":"Not available on the current viewport","Select an MPR viewport to enable this tool":"Select an MPR viewport to enable this tool","Interpolate Labelmap":"Interpolate Labelmap","Segment Bidirectional":"Segment Bidirectional","Tool not available for this modality":"Tool not available for this modality","One Click Segment":"One Click Segment","Labelmap Assist":"Labelmap Assist","Marker Guided Labelmap":"Marker Guided Labelmap","Eraser":"Eraser","Shapes":"Shapes","Create new segmentation to enable shapes tool.":"Create new segmentation to enable shapes tool.","US Pleura B-line Annotation":"US Pleura B-line Annotation","Arrow Annotate Tool":"Arrow Annotate Tool"}')
|
|
109211
109227
|
;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/CineDialog.json
|
|
@@ -109221,7 +109237,7 @@ var en_US_DatePicker_namespaceObject = JSON.parse('{"Clear dates":"Clear dates",
|
|
|
109221
109237
|
;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/ErrorBoundary.json
|
|
109222
109238
|
var en_US_ErrorBoundary_namespaceObject = JSON.parse('{"Context":"Context","Error Message":"Error Message","Something went wrong":"Something went wrong","in":"in","Sorry, something went wrong there. Try again.":"Sorry, something went wrong there. Try again.","Stack Trace":"Stack Trace"}')
|
|
109223
109239
|
;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/Header.json
|
|
109224
|
-
var en_US_Header_namespaceObject = JSON.parse('{"About":"About","Back to Viewer":"Back to Viewer","INVESTIGATIONAL USE ONLY":"INVESTIGATIONAL USE ONLY","Options":"Options","Preferences":"Preferences","Study list":"Study list","Logout":"Logout"}')
|
|
109240
|
+
var en_US_Header_namespaceObject = JSON.parse('{"About":"About","Appearance":"Appearance","Back to Viewer":"Back to Viewer","INVESTIGATIONAL USE ONLY":"INVESTIGATIONAL USE ONLY","Options":"Options","Preferences":"Preferences","Study list":"Study list","Logout":"Logout"}')
|
|
109225
109241
|
;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/HotkeysValidators.json
|
|
109226
109242
|
var en_US_HotkeysValidators_namespaceObject = JSON.parse('{"Field can\'t be empty":"Field can\'t be empty","Hotkey is already in use":"\\"{{action}}\\" is already using the \\"{{pressedKeys}}\\" shortcut.","It\'s not possible to define only modifier keys (ctrl, alt and shift) as a shortcut":"It\'s not possible to define only modifier keys (ctrl, alt and shift) as a shortcut","Shortcut combination is not allowed":"{{pressedKeys}} shortcut combination is not allowed"}')
|
|
109227
109243
|
;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/MeasurementTable.json
|
|
@@ -109305,11 +109321,13 @@ var USAnnotationPanel_namespaceObject = JSON.parse('{"Workflow":"Workflow","Dept
|
|
|
109305
109321
|
|
|
109306
109322
|
|
|
109307
109323
|
|
|
109324
|
+
|
|
109308
109325
|
|
|
109309
109326
|
|
|
109310
109327
|
/* export default */ const en_US = ({
|
|
109311
109328
|
'en-US': {
|
|
109312
109329
|
AboutModal: en_US_AboutModal_namespaceObject,
|
|
109330
|
+
AppearanceModal: AppearanceModal_namespaceObject,
|
|
109313
109331
|
Buttons: en_US_Buttons_namespaceObject,
|
|
109314
109332
|
CineDialog: en_US_CineDialog_namespaceObject,
|
|
109315
109333
|
Common: en_US_Common_namespaceObject,
|
|
@@ -110299,7 +110317,7 @@ esm_i18next/* ["default"].currentLanguage */.A.currentLanguage = () => ({
|
|
|
110299
110317
|
/* export default */ const src = (esm_i18next/* ["default"] */.A);
|
|
110300
110318
|
|
|
110301
110319
|
},
|
|
110302
|
-
|
|
110320
|
+
39987(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
110303
110321
|
"use strict";
|
|
110304
110322
|
|
|
110305
110323
|
// EXPORTS
|
|
@@ -110309,7 +110327,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
110309
110327
|
ub_: () => (/* reexport */ Accordion_AccordionContent),
|
|
110310
110328
|
AsP: () => (/* reexport */ Accordion_AccordionItem),
|
|
110311
110329
|
$m7: () => (/* reexport */ Accordion_AccordionTrigger),
|
|
110330
|
+
lsJ: () => (/* reexport */ ActiveThemeProvider),
|
|
110312
110331
|
se: () => (/* reexport */ components_AllInOneMenu),
|
|
110332
|
+
KU0: () => (/* reexport */ AppearanceModal),
|
|
110313
110333
|
$nd: () => (/* reexport */ Button_Button),
|
|
110314
110334
|
uR7: () => (/* reexport */ COLUMN_IDS),
|
|
110315
110335
|
ZpM: () => (/* reexport */ Card),
|
|
@@ -110428,7 +110448,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
110428
110448
|
yFj: () => (/* reexport */ formatDICOMDate),
|
|
110429
110449
|
L2C: () => (/* reexport */ formatDICOMTime),
|
|
110430
110450
|
n6V: () => (/* reexport */ parseStudyDateTimestamp),
|
|
110451
|
+
sSB: () => (/* reexport */ themePresets),
|
|
110431
110452
|
oRP: () => (/* reexport */ dist_ue),
|
|
110453
|
+
zUl: () => (/* reexport */ useActiveTheme),
|
|
110432
110454
|
Pcq: () => (/* reexport */ useByteArray),
|
|
110433
110455
|
tqw: () => (/* reexport */ useCine),
|
|
110434
110456
|
n1D: () => (/* reexport */ useIconPresentation),
|
|
@@ -270316,10 +270338,42 @@ AboutModal.ProductBeta = ProductBeta;
|
|
|
270316
270338
|
AboutModal.Body = AboutModal_Body;
|
|
270317
270339
|
AboutModal.DetailItem = DetailItem;
|
|
270318
270340
|
AboutModal.SocialItem = SocialItem;
|
|
270341
|
+
;// CONCATENATED MODULE: ../../ui-next/src/components/OHIFModals/AppearanceModal.tsx
|
|
270342
|
+
|
|
270343
|
+
|
|
270344
|
+
function AppearanceModal({
|
|
270345
|
+
children,
|
|
270346
|
+
className
|
|
270347
|
+
}) {
|
|
270348
|
+
return /*#__PURE__*/react.createElement("div", {
|
|
270349
|
+
className: utils_cn('flex max-h-[80vh] w-full max-w-md flex-col overflow-hidden', className)
|
|
270350
|
+
}, children);
|
|
270351
|
+
}
|
|
270352
|
+
function AppearanceModal_Body({
|
|
270353
|
+
children,
|
|
270354
|
+
className
|
|
270355
|
+
}) {
|
|
270356
|
+
return /*#__PURE__*/react.createElement("div", {
|
|
270357
|
+
className: utils_cn('flex-1 overflow-y-auto', className)
|
|
270358
|
+
}, /*#__PURE__*/react.createElement("div", {
|
|
270359
|
+
className: "mt-1 mb-4 flex flex-col space-y-4"
|
|
270360
|
+
}, children));
|
|
270361
|
+
}
|
|
270362
|
+
function SectionLabel({
|
|
270363
|
+
children,
|
|
270364
|
+
className
|
|
270365
|
+
}) {
|
|
270366
|
+
return /*#__PURE__*/react.createElement("span", {
|
|
270367
|
+
className: utils_cn('text-muted-foreground text-lg', className)
|
|
270368
|
+
}, children);
|
|
270369
|
+
}
|
|
270370
|
+
AppearanceModal.Body = AppearanceModal_Body;
|
|
270371
|
+
AppearanceModal.SectionLabel = SectionLabel;
|
|
270319
270372
|
;// CONCATENATED MODULE: ../../ui-next/src/components/OHIFModals/index.ts
|
|
270320
270373
|
|
|
270321
270374
|
|
|
270322
270375
|
|
|
270376
|
+
|
|
270323
270377
|
;// CONCATENATED MODULE: ../../ui-next/src/components/Modal/Modal.tsx
|
|
270324
270378
|
|
|
270325
270379
|
|
|
@@ -275636,6 +275690,200 @@ const IconPresentationProvider = ({
|
|
|
275636
275690
|
}, children);
|
|
275637
275691
|
};
|
|
275638
275692
|
const useIconPresentation = () => (0,react.useContext)(IconSizeContext);
|
|
275693
|
+
;// CONCATENATED MODULE: ../../ui-next/src/themes/themes.css
|
|
275694
|
+
// extracted by css-extract-rspack-plugin
|
|
275695
|
+
|
|
275696
|
+
;// CONCATENATED MODULE: ../../ui-next/src/themes/orchid.json
|
|
275697
|
+
var orchid_namespaceObject = JSON.parse('{"name":"orchid","label":"Tonal: Orchid","cssVars":{"dark":{"highlight":"292 75% 62%","neutral":"270 18% 55%","neutral-light":"275 35% 75%","neutral-dark":"268 20% 24%","background":"270 45% 6%","foreground":"280 15% 96%","card":"268 40% 10%","card-foreground":"280 15% 96%","popover":"264 48% 13%","popover-foreground":"280 15% 96%","primary":"270 85% 65%","primary-foreground":"0 0% 98%","secondary":"268 45% 32%","secondary-foreground":"275 45% 88%","muted":"268 40% 10%","muted-foreground":"272 30% 60%","accent":"268 50% 20%","accent-foreground":"280 15% 96%","destructive":"0 65% 40%","destructive-foreground":"0 0% 98%","border":"268 30% 18%","input":"268 40% 25%","ring":"270 80% 60%"}}}')
|
|
275698
|
+
;// CONCATENATED MODULE: ../../ui-next/src/themes/arctic.json
|
|
275699
|
+
var arctic_namespaceObject = JSON.parse('{"name":"arctic","label":"Tonal: Arctic","cssVars":{"dark":{"highlight":"173 81% 52%","neutral":"185 20% 55%","neutral-light":"180 40% 78%","neutral-dark":"190 18% 22%","background":"0 0% 0%","foreground":"180 10% 97%","card":"203 39% 9%","card-foreground":"180 10% 97%","popover":"202 54% 11%","popover-foreground":"180 10% 97%","primary":"175 85% 42%","primary-foreground":"185 50% 8%","secondary":"180 45% 28%","secondary-foreground":"175 50% 88%","muted":"203 39% 9%","muted-foreground":"185 30% 60%","accent":"185 55% 18%","accent-foreground":"180 10% 97%","destructive":"0 65% 35%","destructive-foreground":"0 0% 98%","border":"190 25% 17%","input":"223 40% 24%","ring":"175 85% 42%"}}}')
|
|
275700
|
+
;// CONCATENATED MODULE: ../../ui-next/src/themes/verdant.json
|
|
275701
|
+
var verdant_namespaceObject = JSON.parse('{"name":"verdant","label":"Tonal: Verdant","cssVars":{"dark":{"highlight":"152 79% 52%","neutral":"150 15% 52%","neutral-light":"145 30% 72%","neutral-dark":"155 18% 24%","background":"155 40% 5%","foreground":"140 15% 95%","card":"152 35% 9%","card-foreground":"140 15% 95%","popover":"167 65% 10%","popover-foreground":"140 15% 95%","primary":"152 75% 40%","primary-foreground":"155 50% 8%","secondary":"150 40% 26%","secondary-foreground":"145 40% 85%","muted":"152 35% 9%","muted-foreground":"148 25% 55%","accent":"150 45% 16%","accent-foreground":"140 15% 95%","destructive":"0 65% 38%","destructive-foreground":"0 0% 98%","border":"150 25% 16%","input":"150 35% 22%","ring":"152 75% 40%"}}}')
|
|
275702
|
+
;// CONCATENATED MODULE: ../../ui-next/src/themes/midnight.json
|
|
275703
|
+
var midnight_namespaceObject = JSON.parse('{"name":"midnight","label":"Neutral: Midnight","cssVars":{"dark":{"highlight":"188 90% 58%","neutral":"213 22% 59%","neutral-light":"214 69% 81%","neutral-dark":"214 16% 21%","background":"240 15% 3%","foreground":"0 0% 99%","card":"240 12% 8%","card-foreground":"0 0% 99%","popover":"225 45% 13%","popover-foreground":"0 0% 99%","primary":"210 100% 62%","primary-foreground":"0 0% 99%","secondary":"215 55% 32%","secondary-foreground":"200 60% 88%","muted":"240 12% 8%","muted-foreground":"210 40% 70%","accent":"220 65% 20%","accent-foreground":"0 0% 99%","destructive":"0 70% 35%","destructive-foreground":"0 0% 99%","border":"240 10% 18%","input":"225 35% 24%","ring":"210 100% 62%"}}}')
|
|
275704
|
+
;// CONCATENATED MODULE: ../../ui-next/src/themes/slate.json
|
|
275705
|
+
var slate_namespaceObject = JSON.parse('{"name":"slate","label":"Neutral: Slate","cssVars":{"dark":{"highlight":"217 97% 52%","neutral":"0 0% 55%","neutral-light":"0 0% 75%","neutral-dark":"0 0% 25%","background":"0 0% 0%","foreground":"0 0% 96%","card":"0 0% 7%","card-foreground":"0 0% 96%","popover":"0 0% 9%","popover-foreground":"0 0% 96%","primary":"230 75% 55%","primary-foreground":"0 0% 98%","secondary":"0 0% 25%","secondary-foreground":"0 0% 85%","muted":"0 0% 7%","muted-foreground":"0 0% 60%","accent":"0 0% 18%","accent-foreground":"0 0% 96%","destructive":"0 65% 40%","destructive-foreground":"0 0% 98%","border":"0 0% 18%","input":"0 0% 22%","ring":"215 75% 55%"}}}')
|
|
275706
|
+
;// CONCATENATED MODULE: ../../ui-next/src/themes/deep.json
|
|
275707
|
+
var deep_namespaceObject = JSON.parse('{"name":"deep","label":"Neutral: Deep","cssVars":{"dark":{"highlight":"184 53% 54%","neutral":"215 15% 50%","neutral-light":"210 20% 68%","neutral-dark":"220 18% 22%","background":"0 0% 0%","foreground":"215 15% 82%","card":"218 25% 5%","card-foreground":"215 15% 82%","popover":"215 30% 8%","popover-foreground":"215 15% 82%","primary":"200 43% 48%","primary-foreground":"210 20% 92%","secondary":"218 30% 18%","secondary-foreground":"215 25% 75%","muted":"214 28% 5%","muted-foreground":"215 18% 48%","accent":"216 32% 12%","accent-foreground":"215 15% 82%","destructive":"0 50% 35%","destructive-foreground":"0 15% 90%","border":"218 22% 10%","input":"216 28% 15%","ring":"215 45% 42%"}}}')
|
|
275708
|
+
;// CONCATENATED MODULE: ../../ui-next/src/themes/index.ts
|
|
275709
|
+
|
|
275710
|
+
|
|
275711
|
+
|
|
275712
|
+
|
|
275713
|
+
|
|
275714
|
+
|
|
275715
|
+
const themePresets = [orchid_namespaceObject, arctic_namespaceObject, verdant_namespaceObject, midnight_namespaceObject, slate_namespaceObject, deep_namespaceObject];
|
|
275716
|
+
;// CONCATENATED MODULE: ../../ui-next/src/contextProviders/ActiveThemeProvider.tsx
|
|
275717
|
+
|
|
275718
|
+
|
|
275719
|
+
|
|
275720
|
+
const STORAGE_KEY_THEME = 'ohif:theme';
|
|
275721
|
+
const STORAGE_KEY_CUSTOM_CSS = 'ohif:custom-theme-css';
|
|
275722
|
+
const CUSTOM_STYLE_ID = 'ohif-custom-theme';
|
|
275723
|
+
const VALID_THEMES = new Set(['default', 'custom', ...themePresets.map(p => p.name)]);
|
|
275724
|
+
// 'custom' is deliberately not URL-addressable: the CSS behind it lives only in
|
|
275725
|
+
// the visitor's own localStorage, so a ?theme=custom link cannot reproduce a look
|
|
275726
|
+
// and would only strand the app in a custom state with no CSS behind it.
|
|
275727
|
+
function isValidUrlTheme(theme) {
|
|
275728
|
+
return !!theme && theme !== 'custom' && VALID_THEMES.has(theme);
|
|
275729
|
+
}
|
|
275730
|
+
const ActiveThemeContext = /*#__PURE__*/react.createContext(undefined);
|
|
275731
|
+
function removeThemeClasses() {
|
|
275732
|
+
const classList = document.body.classList;
|
|
275733
|
+
const toRemove = [];
|
|
275734
|
+
classList.forEach(cls => {
|
|
275735
|
+
if (cls.startsWith('theme-')) {
|
|
275736
|
+
toRemove.push(cls);
|
|
275737
|
+
}
|
|
275738
|
+
});
|
|
275739
|
+
toRemove.forEach(cls => classList.remove(cls));
|
|
275740
|
+
}
|
|
275741
|
+
function removeCustomStyleElement() {
|
|
275742
|
+
const style = document.getElementById(CUSTOM_STYLE_ID);
|
|
275743
|
+
if (style) {
|
|
275744
|
+
style.remove();
|
|
275745
|
+
}
|
|
275746
|
+
}
|
|
275747
|
+
function parseCssVars(cssText) {
|
|
275748
|
+
const vars = [];
|
|
275749
|
+
|
|
275750
|
+
// Remove comment spans entirely (text included), then any unterminated tail,
|
|
275751
|
+
// so comment contents never bleed into a variable value.
|
|
275752
|
+
const stripped = cssText.replace(/\/\*[\s\S]*?\*\//g, '').replace(/\/\*[\s\S]*$/, '');
|
|
275753
|
+
|
|
275754
|
+
// Split on newlines AND semicolons so single-line/minified CSS parses too.
|
|
275755
|
+
for (const raw of stripped.split(/[\n;]/)) {
|
|
275756
|
+
let line = raw.trim();
|
|
275757
|
+
|
|
275758
|
+
// Tolerate a selector prefix on the same segment, e.g. ":root {" or ".dark{".
|
|
275759
|
+
const braceIdx = line.lastIndexOf('{');
|
|
275760
|
+
if (braceIdx !== -1) {
|
|
275761
|
+
line = line.slice(braceIdx + 1).trim();
|
|
275762
|
+
}
|
|
275763
|
+
const colonIdx = line.indexOf(':');
|
|
275764
|
+
if (colonIdx === -1) continue;
|
|
275765
|
+
const name = line.slice(0, colonIdx).trim();
|
|
275766
|
+
if (!/^--[a-zA-Z0-9-]+$/.test(name)) continue;
|
|
275767
|
+
const value = line.slice(colonIdx + 1).replace(/[{}]/g, '').trim();
|
|
275768
|
+
if (!value) continue;
|
|
275769
|
+
|
|
275770
|
+
// Token values are plain HSL triplets — parentheses are never legitimate,
|
|
275771
|
+
// and rejecting them keeps url(...) out of the injected stylesheet even if
|
|
275772
|
+
// a future rule ever consumes a token outside hsl().
|
|
275773
|
+
if (value.includes('(') || value.includes(')')) continue;
|
|
275774
|
+
vars.push(` ${name}: ${value};`);
|
|
275775
|
+
}
|
|
275776
|
+
return vars;
|
|
275777
|
+
}
|
|
275778
|
+
function injectCustomStyles(vars) {
|
|
275779
|
+
const block = vars.join('\n');
|
|
275780
|
+
const css = `:root {\n${block}\n}\n.dark {\n${block}\n}`;
|
|
275781
|
+
let style = document.getElementById(CUSTOM_STYLE_ID);
|
|
275782
|
+
if (!style) {
|
|
275783
|
+
style = document.createElement('style');
|
|
275784
|
+
style.id = CUSTOM_STYLE_ID;
|
|
275785
|
+
document.head.appendChild(style);
|
|
275786
|
+
}
|
|
275787
|
+
style.textContent = css;
|
|
275788
|
+
}
|
|
275789
|
+
function ActiveThemeProvider({
|
|
275790
|
+
children
|
|
275791
|
+
}) {
|
|
275792
|
+
const [activeTheme, setActiveThemeState] = react.useState(() => {
|
|
275793
|
+
if (typeof window === 'undefined') return 'default';
|
|
275794
|
+
const urlTheme = new URLSearchParams(window.location.search).get('theme');
|
|
275795
|
+
if (isValidUrlTheme(urlTheme)) return urlTheme;
|
|
275796
|
+
|
|
275797
|
+
// Validate the stored value the same way the URL param is validated — a stale
|
|
275798
|
+
// key (renamed preset, older build) must not become a theme-* body class.
|
|
275799
|
+
const stored = localStorage.getItem(STORAGE_KEY_THEME);
|
|
275800
|
+
if (!stored || !VALID_THEMES.has(stored)) return 'default';
|
|
275801
|
+
if (stored === 'custom' && !localStorage.getItem(STORAGE_KEY_CUSTOM_CSS)) return 'default';
|
|
275802
|
+
return stored;
|
|
275803
|
+
});
|
|
275804
|
+
const [customCss, setCustomCssState] = react.useState(() => {
|
|
275805
|
+
if (typeof window === 'undefined') return '';
|
|
275806
|
+
return localStorage.getItem(STORAGE_KEY_CUSTOM_CSS) || '';
|
|
275807
|
+
});
|
|
275808
|
+
const setActiveTheme = react.useCallback(theme => {
|
|
275809
|
+
if (!VALID_THEMES.has(theme)) return;
|
|
275810
|
+
setActiveThemeState(theme);
|
|
275811
|
+
removeThemeClasses();
|
|
275812
|
+
if (theme !== 'default' && theme !== 'custom') {
|
|
275813
|
+
document.body.classList.add(`theme-${theme}`);
|
|
275814
|
+
}
|
|
275815
|
+
if (theme !== 'custom') {
|
|
275816
|
+
removeCustomStyleElement();
|
|
275817
|
+
}
|
|
275818
|
+
if (theme === 'default') {
|
|
275819
|
+
localStorage.removeItem(STORAGE_KEY_THEME);
|
|
275820
|
+
} else {
|
|
275821
|
+
localStorage.setItem(STORAGE_KEY_THEME, theme);
|
|
275822
|
+
}
|
|
275823
|
+
}, []);
|
|
275824
|
+
const applyCustomTheme = react.useCallback(cssText => {
|
|
275825
|
+
const vars = parseCssVars(cssText);
|
|
275826
|
+
if (vars.length === 0) return false;
|
|
275827
|
+
injectCustomStyles(vars);
|
|
275828
|
+
setCustomCssState(cssText);
|
|
275829
|
+
localStorage.setItem(STORAGE_KEY_CUSTOM_CSS, cssText);
|
|
275830
|
+
setActiveThemeState('custom');
|
|
275831
|
+
removeThemeClasses();
|
|
275832
|
+
localStorage.setItem(STORAGE_KEY_THEME, 'custom');
|
|
275833
|
+
return true;
|
|
275834
|
+
}, []);
|
|
275835
|
+
const clearCustomTheme = react.useCallback(() => {
|
|
275836
|
+
removeCustomStyleElement();
|
|
275837
|
+
setCustomCssState('');
|
|
275838
|
+
localStorage.removeItem(STORAGE_KEY_CUSTOM_CSS);
|
|
275839
|
+
setActiveThemeState('default');
|
|
275840
|
+
removeThemeClasses();
|
|
275841
|
+
localStorage.removeItem(STORAGE_KEY_THEME);
|
|
275842
|
+
}, []);
|
|
275843
|
+
|
|
275844
|
+
// Persist URL param override to localStorage
|
|
275845
|
+
react.useEffect(() => {
|
|
275846
|
+
const urlTheme = new URLSearchParams(window.location.search).get('theme');
|
|
275847
|
+
if (isValidUrlTheme(urlTheme)) {
|
|
275848
|
+
if (urlTheme === 'default') {
|
|
275849
|
+
localStorage.removeItem(STORAGE_KEY_THEME);
|
|
275850
|
+
} else {
|
|
275851
|
+
localStorage.setItem(STORAGE_KEY_THEME, urlTheme);
|
|
275852
|
+
}
|
|
275853
|
+
}
|
|
275854
|
+
}, []);
|
|
275855
|
+
|
|
275856
|
+
// Apply initial theme on mount (including custom theme re-injection on reload)
|
|
275857
|
+
react.useEffect(() => {
|
|
275858
|
+
if (activeTheme === 'custom' && customCss) {
|
|
275859
|
+
applyCustomTheme(customCss);
|
|
275860
|
+
} else if (activeTheme !== 'default') {
|
|
275861
|
+
document.body.classList.add(`theme-${activeTheme}`);
|
|
275862
|
+
}
|
|
275863
|
+
return () => {
|
|
275864
|
+
removeThemeClasses();
|
|
275865
|
+
removeCustomStyleElement();
|
|
275866
|
+
};
|
|
275867
|
+
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
275868
|
+
|
|
275869
|
+
const value = react.useMemo(() => ({
|
|
275870
|
+
activeTheme,
|
|
275871
|
+
setActiveTheme,
|
|
275872
|
+
customCss,
|
|
275873
|
+
applyCustomTheme,
|
|
275874
|
+
clearCustomTheme
|
|
275875
|
+
}), [activeTheme, setActiveTheme, customCss, applyCustomTheme, clearCustomTheme]);
|
|
275876
|
+
return /*#__PURE__*/react.createElement(ActiveThemeContext.Provider, {
|
|
275877
|
+
value: value
|
|
275878
|
+
}, children);
|
|
275879
|
+
}
|
|
275880
|
+
function useActiveTheme() {
|
|
275881
|
+
const context = react.useContext(ActiveThemeContext);
|
|
275882
|
+
if (context === undefined) {
|
|
275883
|
+
throw new Error('useActiveTheme must be used within an ActiveThemeProvider');
|
|
275884
|
+
}
|
|
275885
|
+
return context;
|
|
275886
|
+
}
|
|
275639
275887
|
;// CONCATENATED MODULE: ../../ui-next/src/contextProviders/index.ts
|
|
275640
275888
|
|
|
275641
275889
|
|
|
@@ -275656,6 +275904,8 @@ const useIconPresentation = () => (0,react.useContext)(IconSizeContext);
|
|
|
275656
275904
|
|
|
275657
275905
|
|
|
275658
275906
|
|
|
275907
|
+
|
|
275908
|
+
|
|
275659
275909
|
|
|
275660
275910
|
|
|
275661
275911
|
|
|
@@ -292271,8 +292521,8 @@ Typography.propTypes = {
|
|
|
292271
292521
|
;// CONCATENATED MODULE: ../../ui/src/components/Typography/index.js
|
|
292272
292522
|
|
|
292273
292523
|
/* export default */ const components_Typography = (Typography_Typography);
|
|
292274
|
-
// EXTERNAL MODULE: ../../ui-next/src/index.ts +
|
|
292275
|
-
var src = __webpack_require__(
|
|
292524
|
+
// EXTERNAL MODULE: ../../ui-next/src/index.ts + 3682 modules
|
|
292525
|
+
var src = __webpack_require__(39987);
|
|
292276
292526
|
;// CONCATENATED MODULE: ../../ui/src/components/EmptyStudies/EmptyStudies.tsx
|
|
292277
292527
|
|
|
292278
292528
|
|
|
@@ -441862,7 +442112,7 @@ __webpack_require__.u = (chunkId) => {
|
|
|
441862
442112
|
// return url for filenames not based on template
|
|
441863
442113
|
|
|
441864
442114
|
// return url for filenames based on template
|
|
441865
|
-
return "" + ({1644: "interpolation",6915: "histogram-worker",8547: "compute",8781: "polySeg",}[chunkId] || chunkId) + ".bundle." + {100: "
|
|
442115
|
+
return "" + ({1644: "interpolation",6915: "histogram-worker",8547: "compute",8781: "polySeg",}[chunkId] || chunkId) + ".bundle." + {100: "e4a99d657ea0f5c5",115: "919ea3debae7de2f",1180: "9c2fb20ea8fd0a02",1206: "79ed23079c78f18d",1229: "f721ec472f3d61bf",1602: "b94123841d0be28c",1644: "9aea6a9ef4bd1f89",2195: "3045b375883a2e79",2666: "0d382ec9ac6a66e4",2779: "75035bef73785648",3500: "028ff02de8479e1f",3760: "d418d6de1fdf8ba1",379: "cacf70fcef530540",3856: "285a42d08540a74a",414: "173a6d43876f37df",4456: "2c6f4bb6de866b88",4556: "c26b805e6342df5a",4683: "dd3c4e497c45c79d",4834: "984efd9f19bd83a9",5189: "ef9d707c4c3f31aa",5406: "4dcfa7c697973300",5448: "8cda5b8e4baea275",5696: "7a0b7139a57852e8",5708: "cd752df2477f08e7",5731: "a4e001a42e60e779",5910: "c1199bd45e450735",5989: "6a8c5b7de30385c8",6001: "6a9b30e2c5049393",6577: "f614df8efd7562f4",6650: "29f772517a82ee09",6915: "11211bad02ea21bb",7231: "e80ae4c82e76f9aa",7248: "3c863bbe9838c22d",7295: "3e5952995b3991d8",7463: "c91424236bf63ca0",8423: "44870962c74d2272",8432: "6df9d7dee19b3e77",8547: "11dbfc2d25ce8e89",8568: "73ae0a60200a13e0",8781: "485090724c5da16c",8832: "80bef8516a5463fe",899: "6f855ae8df39327e",9068: "29adebcfccb4bc8e",9116: "1619bafaca4952a1",9290: "99e766acc8f04788",9358: "1b85858cf5d8b064",9415: "65b1f625994dcdeb",9437: "143bb2e03b76d043",}[chunkId] + ".js"
|
|
441866
442116
|
}
|
|
441867
442117
|
})();
|
|
441868
442118
|
// webpack/runtime/get mini-css chunk filename
|
|
@@ -442222,7 +442472,7 @@ chunkLoadingGlobal.push = __rspack_jsonp.bind(null, chunkLoadingGlobal.push.bind
|
|
|
442222
442472
|
})();
|
|
442223
442473
|
// webpack/runtime/chunk_prefetch_trigger
|
|
442224
442474
|
(() => {
|
|
442225
|
-
var chunkToChildrenMap = {"3833":[7231],"3760":[7231,9068,1206],"976":[7231,9068],"5708":[7231,899],"9415":[7231,5448],"1602":[7231],"9116":[7463],"100":[115],"7295":[7231],"8423":[7231],"3500":[8432,6650,
|
|
442475
|
+
var chunkToChildrenMap = {"3833":[7231],"3760":[7231,9068,1206],"976":[7231,9068],"5708":[7231,899],"9415":[7231,5448],"1602":[7231],"9116":[7463],"100":[115],"7295":[7231],"8423":[7231],"3500":[8432,6650,9358,414,5910],"5910":[7231]};
|
|
442226
442476
|
__webpack_require__.f.prefetch = (chunkId, promises) => {
|
|
442227
442477
|
Promise.all(promises).then(() => {
|
|
442228
442478
|
var chunks = chunkToChildrenMap[chunkId];
|