@ohif/app 3.14.0-beta.90 → 3.14.0-beta.91
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/{1153.bundle.3b9c4b75.js → 1153.bundle.51d39e80.js} +52 -85
- package/dist/{1645.bundle.c61d372a.js → 1645.bundle.a98b9ca6.js} +3 -3
- package/dist/{3366.bundle.b225ae72.js → 3366.bundle.62baeeec.js} +1 -1
- package/dist/{4606.bundle.9a3f474f.js → 4606.bundle.a3485206.js} +1 -1
- package/dist/{5143.bundle.95aeb8c5.js → 5143.bundle.04f54c00.js} +108 -106
- package/dist/{5320.bundle.a4e386da.js → 5320.bundle.9b05cebb.js} +242 -237
- package/dist/{5989.bundle.2d80cbd0.js → 5989.bundle.f484884a.js} +262 -250
- package/dist/{6253.bundle.8a7c1171.js → 6253.bundle.2c8ac190.js} +166 -83
- package/dist/{6507.bundle.c8ac9bee.js → 6507.bundle.d52f5e81.js} +2 -2
- package/dist/{8037.bundle.d8f1add3.js → 8037.bundle.30a187f7.js} +292 -322
- package/dist/{8029.bundle.40857fb6.js → 8312.bundle.2cb75b58.js} +412 -7
- package/dist/{5383.bundle.79243338.js → 8868.bundle.4c357767.js} +240 -55
- package/dist/{5914.bundle.f6e9fc4a.js → 8923.bundle.9aca06c4.js} +246 -18
- package/dist/{9620.bundle.c3d1589b.js → 9620.bundle.d1dc0be1.js} +2 -2
- package/dist/{app.bundle.46f8d9cb.js → app.bundle.51cba444.js} +290 -196
- package/dist/{compute.bundle.deb7ad1f.js → compute.bundle.0ed1fe87.js} +6 -6
- package/dist/index.html +1 -1
- package/dist/{interpolation.bundle.16504135.js → interpolation.bundle.5a53d112.js} +5 -5
- package/dist/{polySeg.bundle.7088c2eb.js → polySeg.bundle.b4089601.js} +7 -7
- package/dist/sw.js +1 -1
- package/package.json +6 -6
|
@@ -2457,8 +2457,8 @@ function destroy() {
|
|
|
2457
2457
|
|
|
2458
2458
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/ai/dist/esm/index.js + 7 modules
|
|
2459
2459
|
var ai_dist_esm = __webpack_require__(20623);
|
|
2460
|
-
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/polymorphic-segmentation/dist/esm/index.js +
|
|
2461
|
-
var polymorphic_segmentation_dist_esm = __webpack_require__(
|
|
2460
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/polymorphic-segmentation/dist/esm/index.js + 15 modules
|
|
2461
|
+
var polymorphic_segmentation_dist_esm = __webpack_require__(21363);
|
|
2462
2462
|
// EXTERNAL MODULE: ../../extensions/default/src/index.ts + 162 modules
|
|
2463
2463
|
var default_src = __webpack_require__(55422);
|
|
2464
2464
|
// EXTERNAL MODULE: ../../extensions/cornerstone/src/state.ts
|
|
@@ -34816,8 +34816,8 @@ function ViewportColorbarsContainer(t0) {
|
|
|
34816
34816
|
|
|
34817
34817
|
/* export default */ var components_ViewportColorbar = (ViewportColorbar_ViewportColorbarsContainer);
|
|
34818
34818
|
|
|
34819
|
-
// EXTERNAL MODULE: ../core/src/hooks/index.ts +
|
|
34820
|
-
var src_hooks = __webpack_require__(
|
|
34819
|
+
// EXTERNAL MODULE: ../core/src/hooks/index.ts + 7 modules
|
|
34820
|
+
var src_hooks = __webpack_require__(19754);
|
|
34821
34821
|
// EXTERNAL MODULE: ../core/src/services/ToolBarService/ToolbarService.ts
|
|
34822
34822
|
var ToolbarService = __webpack_require__(61554);
|
|
34823
34823
|
;// CONCATENATED MODULE: ../../extensions/cornerstone/src/components/AdvancedRenderingControls/AdvancedRenderingControls.tsx
|
|
@@ -43426,6 +43426,7 @@ function PanelMeasurement(props) {
|
|
|
43426
43426
|
|
|
43427
43427
|
|
|
43428
43428
|
|
|
43429
|
+
|
|
43429
43430
|
const getPanelModule = ({ commandsManager, servicesManager, extensionManager })=>{
|
|
43430
43431
|
const { toolbarService } = servicesManager.services;
|
|
43431
43432
|
const toolSectionMap = {
|
|
@@ -43454,27 +43455,75 @@ const getPanelModule = ({ commandsManager, servicesManager, extensionManager })=
|
|
|
43454
43455
|
segmentationRepresentationTypes: props?.segmentationRepresentationTypes
|
|
43455
43456
|
});
|
|
43456
43457
|
};
|
|
43457
|
-
const
|
|
43458
|
-
const
|
|
43459
|
-
const
|
|
43460
|
-
const
|
|
43461
|
-
|
|
43462
|
-
|
|
43463
|
-
|
|
43464
|
-
|
|
43465
|
-
|
|
43466
|
-
|
|
43467
|
-
|
|
43468
|
-
|
|
43469
|
-
|
|
43470
|
-
|
|
43471
|
-
|
|
43472
|
-
|
|
43473
|
-
|
|
43474
|
-
|
|
43475
|
-
|
|
43476
|
-
|
|
43477
|
-
|
|
43458
|
+
const PanelSegmentationWithTools = (props)=>{
|
|
43459
|
+
const $ = (0,compiler_runtime.c)(14);
|
|
43460
|
+
const { t } = (0,es/* .useTranslation */.Bd)("SegmentationPanel");
|
|
43461
|
+
const tKey = `${props.segmentationRepresentationTypes?.[0] ?? "Segmentation"} tools`;
|
|
43462
|
+
let t0;
|
|
43463
|
+
if ($[0] !== t || $[1] !== tKey) {
|
|
43464
|
+
t0 = t(tKey);
|
|
43465
|
+
$[0] = t;
|
|
43466
|
+
$[1] = tKey;
|
|
43467
|
+
$[2] = t0;
|
|
43468
|
+
} else {
|
|
43469
|
+
t0 = $[2];
|
|
43470
|
+
}
|
|
43471
|
+
const tValue = t0;
|
|
43472
|
+
const t1 = toolSectionMap[props.segmentationRepresentationTypes?.[0]];
|
|
43473
|
+
let t2;
|
|
43474
|
+
if ($[3] !== t1 || $[4] !== tValue) {
|
|
43475
|
+
t2 = /*#__PURE__*/ (0,jsx_runtime.jsx)(default_src/* .Toolbox */.OO, {
|
|
43476
|
+
buttonSectionId: t1,
|
|
43477
|
+
title: tValue
|
|
43478
|
+
});
|
|
43479
|
+
$[3] = t1;
|
|
43480
|
+
$[4] = tValue;
|
|
43481
|
+
$[5] = t2;
|
|
43482
|
+
} else {
|
|
43483
|
+
t2 = $[5];
|
|
43484
|
+
}
|
|
43485
|
+
const t3 = props?.configuration;
|
|
43486
|
+
let t4;
|
|
43487
|
+
if ($[6] !== t3) {
|
|
43488
|
+
t4 = {
|
|
43489
|
+
...t3
|
|
43490
|
+
};
|
|
43491
|
+
$[6] = t3;
|
|
43492
|
+
$[7] = t4;
|
|
43493
|
+
} else {
|
|
43494
|
+
t4 = $[7];
|
|
43495
|
+
}
|
|
43496
|
+
const t5 = props?.segmentationRepresentationTypes;
|
|
43497
|
+
let t6;
|
|
43498
|
+
if ($[8] !== t4 || $[9] !== t5) {
|
|
43499
|
+
t6 = /*#__PURE__*/ (0,jsx_runtime.jsx)(PanelSegmentation, {
|
|
43500
|
+
commandsManager: commandsManager,
|
|
43501
|
+
servicesManager: servicesManager,
|
|
43502
|
+
extensionManager: extensionManager,
|
|
43503
|
+
configuration: t4,
|
|
43504
|
+
segmentationRepresentationTypes: t5
|
|
43505
|
+
});
|
|
43506
|
+
$[8] = t4;
|
|
43507
|
+
$[9] = t5;
|
|
43508
|
+
$[10] = t6;
|
|
43509
|
+
} else {
|
|
43510
|
+
t6 = $[10];
|
|
43511
|
+
}
|
|
43512
|
+
let t7;
|
|
43513
|
+
if ($[11] !== t2 || $[12] !== t6) {
|
|
43514
|
+
t7 = /*#__PURE__*/ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
43515
|
+
children: [
|
|
43516
|
+
t2,
|
|
43517
|
+
t6
|
|
43518
|
+
]
|
|
43519
|
+
});
|
|
43520
|
+
$[11] = t2;
|
|
43521
|
+
$[12] = t6;
|
|
43522
|
+
$[13] = t7;
|
|
43523
|
+
} else {
|
|
43524
|
+
t7 = $[13];
|
|
43525
|
+
}
|
|
43526
|
+
return t7;
|
|
43478
43527
|
};
|
|
43479
43528
|
return [
|
|
43480
43529
|
{
|
|
@@ -43511,7 +43560,7 @@ const getPanelModule = ({ commandsManager, servicesManager, extensionManager })=
|
|
|
43511
43560
|
iconName: 'tab-segmentation',
|
|
43512
43561
|
iconLabel: 'Segmentation',
|
|
43513
43562
|
label: i18n_src/* ["default"].t */.A.t('SegmentationPanel:Labelmap'),
|
|
43514
|
-
component: (props)
|
|
43563
|
+
component: (props)=>/*#__PURE__*/ (0,jsx_runtime.jsx)(PanelSegmentationWithTools, {
|
|
43515
43564
|
...props,
|
|
43516
43565
|
segmentationRepresentationTypes: [
|
|
43517
43566
|
esm_enums.SegmentationRepresentations.Labelmap,
|
|
@@ -43524,7 +43573,7 @@ const getPanelModule = ({ commandsManager, servicesManager, extensionManager })=
|
|
|
43524
43573
|
iconName: 'tab-contours',
|
|
43525
43574
|
iconLabel: 'Segmentation',
|
|
43526
43575
|
label: i18n_src/* ["default"].t */.A.t('SegmentationPanel:Contour'),
|
|
43527
|
-
component: (props)
|
|
43576
|
+
component: (props)=>/*#__PURE__*/ (0,jsx_runtime.jsx)(PanelSegmentationWithTools, {
|
|
43528
43577
|
...props,
|
|
43529
43578
|
segmentationRepresentationTypes: [
|
|
43530
43579
|
esm_enums.SegmentationRepresentations.Contour
|
|
@@ -46253,6 +46302,7 @@ const defaultActionIcons = [
|
|
|
46253
46302
|
{
|
|
46254
46303
|
id: 'settings',
|
|
46255
46304
|
iconName: 'Settings',
|
|
46305
|
+
label: 'Sort and filter series',
|
|
46256
46306
|
value: false
|
|
46257
46307
|
}
|
|
46258
46308
|
];
|
|
@@ -46692,7 +46742,7 @@ function PanelStudyBrowser({ getImageSrc, getStudiesForPatientByMRN, requestDisp
|
|
|
46692
46742
|
customMapDisplaySets,
|
|
46693
46743
|
mapDisplaySetsWithState
|
|
46694
46744
|
]);
|
|
46695
|
-
const tabs = createStudyBrowserTabs(StudyInstanceUIDs, studyDisplayList, displaySets); // TODO: Should not fire this on "close"
|
|
46745
|
+
const tabs = createStudyBrowserTabs(StudyInstanceUIDs, studyDisplayList, displaySets, undefined, displaySetService); // TODO: Should not fire this on "close"
|
|
46696
46746
|
function _handleStudyClick(StudyInstanceUID_0) {
|
|
46697
46747
|
const shouldCollapseStudy = expandedStudyInstanceUIDs.includes(StudyInstanceUID_0);
|
|
46698
46748
|
const updatedExpandedStudyInstanceUIDs = shouldCollapseStudy ? [
|
|
@@ -46888,38 +46938,63 @@ function _findTabAndStudyOfDisplaySet(displaySetInstanceUID, tabs, currentTabNam
|
|
|
46888
46938
|
/* import */ var react_jsx_runtime__rspack_import_0 = __webpack_require__(31085);
|
|
46889
46939
|
/* import */ var react_compiler_runtime__rspack_import_1 = __webpack_require__(54005);
|
|
46890
46940
|
/* import */ var react__rspack_import_2 = __webpack_require__(14041);
|
|
46891
|
-
/* import */ var
|
|
46941
|
+
/* import */ var react_i18next__rspack_import_3 = __webpack_require__(35261);
|
|
46942
|
+
/* import */ var _ohif_ui_next__rspack_import_4 = __webpack_require__(2727);
|
|
46943
|
+
|
|
46892
46944
|
|
|
46893
46945
|
|
|
46894
46946
|
|
|
46895
46947
|
|
|
46896
46948
|
|
|
46897
46949
|
function PanelStudyBrowserHeader(t0) {
|
|
46898
|
-
const $ = (0,react_compiler_runtime__rspack_import_1.c)(
|
|
46950
|
+
const $ = (0,react_compiler_runtime__rspack_import_1.c)(23);
|
|
46899
46951
|
const { viewPresets, updateViewPresetValue, actionIcons, updateActionIconValue } = t0;
|
|
46952
|
+
const { t } = (0,react_i18next__rspack_import_3/* .useTranslation */.Bd)("StudyBrowser");
|
|
46900
46953
|
let t1;
|
|
46901
|
-
if ($[0] !== actionIcons || $[1] !== updateActionIconValue) {
|
|
46954
|
+
if ($[0] !== actionIcons || $[1] !== t || $[2] !== updateActionIconValue) {
|
|
46902
46955
|
let t2;
|
|
46903
|
-
if ($[
|
|
46904
|
-
t2 = (icon, index)
|
|
46956
|
+
if ($[4] !== t || $[5] !== updateActionIconValue) {
|
|
46957
|
+
t2 = (icon, index)=>{
|
|
46958
|
+
const iconElement = /*#__PURE__*/ react__rspack_import_2.createElement(_ohif_ui_next__rspack_import_4/* .Icons */.FI1[icon.iconName] || _ohif_ui_next__rspack_import_4/* .Icons.MissingIcon */.FI1.MissingIcon, {
|
|
46905
46959
|
key: index,
|
|
46906
46960
|
onClick: ()=>updateActionIconValue(icon),
|
|
46907
46961
|
className: "cursor-pointer"
|
|
46908
46962
|
});
|
|
46909
|
-
|
|
46910
|
-
|
|
46963
|
+
if (!icon.label) {
|
|
46964
|
+
return iconElement;
|
|
46965
|
+
}
|
|
46966
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsxs)(_ohif_ui_next__rspack_import_4/* .Tooltip */.m_M, {
|
|
46967
|
+
children: [
|
|
46968
|
+
/*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_ohif_ui_next__rspack_import_4/* .TooltipTrigger */.k$k, {
|
|
46969
|
+
asChild: true,
|
|
46970
|
+
"aria-label": t(icon.label),
|
|
46971
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)("span", {
|
|
46972
|
+
className: "flex",
|
|
46973
|
+
children: iconElement
|
|
46974
|
+
})
|
|
46975
|
+
}),
|
|
46976
|
+
/*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_ohif_ui_next__rspack_import_4/* .TooltipContent */.ZIw, {
|
|
46977
|
+
children: t(icon.label)
|
|
46978
|
+
})
|
|
46979
|
+
]
|
|
46980
|
+
}, index);
|
|
46981
|
+
};
|
|
46982
|
+
$[4] = t;
|
|
46983
|
+
$[5] = updateActionIconValue;
|
|
46984
|
+
$[6] = t2;
|
|
46911
46985
|
} else {
|
|
46912
|
-
t2 = $[
|
|
46986
|
+
t2 = $[6];
|
|
46913
46987
|
}
|
|
46914
46988
|
t1 = actionIcons.map(t2);
|
|
46915
46989
|
$[0] = actionIcons;
|
|
46916
|
-
$[1] =
|
|
46917
|
-
$[2] =
|
|
46990
|
+
$[1] = t;
|
|
46991
|
+
$[2] = updateActionIconValue;
|
|
46992
|
+
$[3] = t1;
|
|
46918
46993
|
} else {
|
|
46919
|
-
t1 = $[
|
|
46994
|
+
t1 = $[3];
|
|
46920
46995
|
}
|
|
46921
46996
|
let t2;
|
|
46922
|
-
if ($[
|
|
46997
|
+
if ($[7] !== t1) {
|
|
46923
46998
|
t2 = /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)("div", {
|
|
46924
46999
|
className: "flex items-center justify-center",
|
|
46925
47000
|
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)("div", {
|
|
@@ -46927,60 +47002,60 @@ function PanelStudyBrowserHeader(t0) {
|
|
|
46927
47002
|
children: t1
|
|
46928
47003
|
})
|
|
46929
47004
|
});
|
|
46930
|
-
$[
|
|
46931
|
-
$[
|
|
47005
|
+
$[7] = t1;
|
|
47006
|
+
$[8] = t2;
|
|
46932
47007
|
} else {
|
|
46933
|
-
t2 = $[
|
|
47008
|
+
t2 = $[8];
|
|
46934
47009
|
}
|
|
46935
47010
|
let t3;
|
|
46936
|
-
if ($[
|
|
47011
|
+
if ($[9] !== viewPresets) {
|
|
46937
47012
|
t3 = viewPresets.filter(_temp);
|
|
46938
|
-
$[
|
|
46939
|
-
$[
|
|
47013
|
+
$[9] = viewPresets;
|
|
47014
|
+
$[10] = t3;
|
|
46940
47015
|
} else {
|
|
46941
|
-
t3 = $[
|
|
47016
|
+
t3 = $[10];
|
|
46942
47017
|
}
|
|
46943
47018
|
const t4 = t3[0].id;
|
|
46944
47019
|
let t5;
|
|
46945
|
-
if ($[
|
|
47020
|
+
if ($[11] !== updateViewPresetValue || $[12] !== viewPresets) {
|
|
46946
47021
|
t5 = (value)=>{
|
|
46947
47022
|
const selectedViewPreset = viewPresets.find((preset_0)=>preset_0.id === value);
|
|
46948
47023
|
updateViewPresetValue(selectedViewPreset);
|
|
46949
47024
|
};
|
|
46950
|
-
$[
|
|
46951
|
-
$[
|
|
46952
|
-
$[
|
|
47025
|
+
$[11] = updateViewPresetValue;
|
|
47026
|
+
$[12] = viewPresets;
|
|
47027
|
+
$[13] = t5;
|
|
46953
47028
|
} else {
|
|
46954
|
-
t5 = $[
|
|
47029
|
+
t5 = $[13];
|
|
46955
47030
|
}
|
|
46956
47031
|
let t6;
|
|
46957
|
-
if ($[
|
|
47032
|
+
if ($[14] !== viewPresets) {
|
|
46958
47033
|
t6 = viewPresets.map(_temp2);
|
|
46959
|
-
$[
|
|
46960
|
-
$[
|
|
47034
|
+
$[14] = viewPresets;
|
|
47035
|
+
$[15] = t6;
|
|
46961
47036
|
} else {
|
|
46962
|
-
t6 = $[
|
|
47037
|
+
t6 = $[15];
|
|
46963
47038
|
}
|
|
46964
47039
|
let t7;
|
|
46965
|
-
if ($[
|
|
47040
|
+
if ($[16] !== t3[0].id || $[17] !== t5 || $[18] !== t6) {
|
|
46966
47041
|
t7 = /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)("div", {
|
|
46967
47042
|
className: "ml-auto flex h-full items-center justify-center",
|
|
46968
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(
|
|
47043
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_ohif_ui_next__rspack_import_4/* .ToggleGroup */.OY8, {
|
|
46969
47044
|
type: "single",
|
|
46970
47045
|
value: t4,
|
|
46971
47046
|
onValueChange: t5,
|
|
46972
47047
|
children: t6
|
|
46973
47048
|
})
|
|
46974
47049
|
});
|
|
46975
|
-
$[
|
|
46976
|
-
$[
|
|
46977
|
-
$[
|
|
46978
|
-
$[
|
|
47050
|
+
$[16] = t3[0].id;
|
|
47051
|
+
$[17] = t5;
|
|
47052
|
+
$[18] = t6;
|
|
47053
|
+
$[19] = t7;
|
|
46979
47054
|
} else {
|
|
46980
|
-
t7 = $[
|
|
47055
|
+
t7 = $[19];
|
|
46981
47056
|
}
|
|
46982
47057
|
let t8;
|
|
46983
|
-
if ($[
|
|
47058
|
+
if ($[20] !== t2 || $[21] !== t7) {
|
|
46984
47059
|
t8 = /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(react_jsx_runtime__rspack_import_0.Fragment, {
|
|
46985
47060
|
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)("div", {
|
|
46986
47061
|
className: "bg-muted flex h-[40px] select-none rounded-t p-2",
|
|
@@ -46996,20 +47071,20 @@ function PanelStudyBrowserHeader(t0) {
|
|
|
46996
47071
|
})
|
|
46997
47072
|
})
|
|
46998
47073
|
});
|
|
46999
|
-
$[
|
|
47000
|
-
$[
|
|
47001
|
-
$[
|
|
47074
|
+
$[20] = t2;
|
|
47075
|
+
$[21] = t7;
|
|
47076
|
+
$[22] = t8;
|
|
47002
47077
|
} else {
|
|
47003
|
-
t8 = $[
|
|
47078
|
+
t8 = $[22];
|
|
47004
47079
|
}
|
|
47005
47080
|
return t8;
|
|
47006
47081
|
}
|
|
47007
47082
|
function _temp2(viewPreset, index_0) {
|
|
47008
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(
|
|
47083
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_ohif_ui_next__rspack_import_4/* .ToggleGroupItem */.dzE, {
|
|
47009
47084
|
"aria-label": viewPreset.id,
|
|
47010
47085
|
value: viewPreset.id,
|
|
47011
47086
|
className: "text-primary",
|
|
47012
|
-
children: /*#__PURE__*/ react__rspack_import_2.createElement(
|
|
47087
|
+
children: /*#__PURE__*/ react__rspack_import_2.createElement(_ohif_ui_next__rspack_import_4/* .Icons */.FI1[viewPreset.iconName] || _ohif_ui_next__rspack_import_4/* .Icons.MissingIcon */.FI1.MissingIcon)
|
|
47013
47088
|
}, index_0);
|
|
47014
47089
|
}
|
|
47015
47090
|
function _temp(preset) {
|
|
@@ -58317,7 +58392,21 @@ function DataSourceSelector_temp(it) {
|
|
|
58317
58392
|
;// CONCATENATED MODULE: ../../extensions/default/src/customizations/studyBrowserCustomization.ts
|
|
58318
58393
|
|
|
58319
58394
|
|
|
58320
|
-
const {
|
|
58395
|
+
const { getDateTimeSortKey } = src/* .utils */.Wp; /**
|
|
58396
|
+
* Orders by the given key, lowest first, and returns 0 when the keys are
|
|
58397
|
+
* equal, so that the study browser breaks the tie with its default order.
|
|
58398
|
+
*/
|
|
58399
|
+
const byKey = (keyOf)=>(a, b)=>{
|
|
58400
|
+
const keyA = keyOf(a);
|
|
58401
|
+
const keyB = keyOf(b);
|
|
58402
|
+
return keyA === keyB ? 0 : keyA < keyB ? -1 : 1;
|
|
58403
|
+
}; // A series with no number or no date sorts first.
|
|
58404
|
+
const seriesNumberKey = (displaySet)=>{
|
|
58405
|
+
const value = displaySet?.SeriesNumber;
|
|
58406
|
+
const seriesNumber = value === '' || value === null ? NaN : Number(value);
|
|
58407
|
+
return Number.isFinite(seriesNumber) ? seriesNumber : -Infinity;
|
|
58408
|
+
};
|
|
58409
|
+
const seriesDateTimeKey = (displaySet)=>getDateTimeSortKey(displaySet?.SeriesDate, displaySet?.SeriesTime);
|
|
58321
58410
|
/* export default */ var studyBrowserCustomization = ({
|
|
58322
58411
|
'studyBrowser.studyMenuItems': [],
|
|
58323
58412
|
'studyBrowser.thumbnailMenuItems': [
|
|
@@ -58337,17 +58426,11 @@ const { formatDate } = src/* .utils */.Wp;
|
|
|
58337
58426
|
'studyBrowser.sortFunctions': [
|
|
58338
58427
|
{
|
|
58339
58428
|
label: i18n_src/* ["default"].t */.A.t('StudyBrowser:Series Number'),
|
|
58340
|
-
sortFunction: (
|
|
58341
|
-
return a?.SeriesNumber - b?.SeriesNumber;
|
|
58342
|
-
}
|
|
58429
|
+
sortFunction: byKey(seriesNumberKey)
|
|
58343
58430
|
},
|
|
58344
58431
|
{
|
|
58345
58432
|
label: i18n_src/* ["default"].t */.A.t('StudyBrowser:Series Date'),
|
|
58346
|
-
sortFunction: (
|
|
58347
|
-
const dateA = new Date(formatDate(a?.SeriesDate));
|
|
58348
|
-
const dateB = new Date(formatDate(b?.SeriesDate));
|
|
58349
|
-
return dateB.getTime() - dateA.getTime();
|
|
58350
|
-
}
|
|
58433
|
+
sortFunction: byKey(seriesDateTimeKey)
|
|
58351
58434
|
}
|
|
58352
58435
|
],
|
|
58353
58436
|
'studyBrowser.viewPresets': [
|
|
@@ -59523,8 +59606,8 @@ function AboutModalDefault() {
|
|
|
59523
59606
|
version = $[3];
|
|
59524
59607
|
}
|
|
59525
59608
|
const browser = `${t0}${t1} ${version}`;
|
|
59526
|
-
const versionNumber = "3.14.0-beta.
|
|
59527
|
-
const commitHash = "
|
|
59609
|
+
const versionNumber = "3.14.0-beta.91";
|
|
59610
|
+
const commitHash = "593302a154a947b6e75e0680a591b26f8cb608f4";
|
|
59528
59611
|
let t2;
|
|
59529
59612
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
59530
59613
|
t2 = versionNumber.split("-");
|
|
@@ -62311,7 +62394,7 @@ function HeaderUndoRedo() {
|
|
|
62311
62394
|
|
|
62312
62395
|
|
|
62313
62396
|
|
|
62314
|
-
const { formatPN, formatDate
|
|
62397
|
+
const { formatPN, formatDate } = src/* .utils */.Wp;
|
|
62315
62398
|
function usePatientInfo() {
|
|
62316
62399
|
const $ = (0,compiler_runtime.c)(10);
|
|
62317
62400
|
const { servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
@@ -62360,7 +62443,7 @@ function usePatientInfo() {
|
|
|
62360
62443
|
PatientID: instance_0.PatientID || null,
|
|
62361
62444
|
PatientName: instance_0.PatientName ? formatPN(instance_0.PatientName) : null,
|
|
62362
62445
|
PatientSex: instance_0.PatientSex || null,
|
|
62363
|
-
PatientDOB:
|
|
62446
|
+
PatientDOB: formatDate(instance_0.PatientBirthDate) || null
|
|
62364
62447
|
});
|
|
62365
62448
|
checkMixedPatients(instance_0.PatientID || null);
|
|
62366
62449
|
};
|
|
@@ -560,7 +560,7 @@ var version = __webpack_require__(69544);
|
|
|
560
560
|
const DEFAULT_WRITER_HEADER = {
|
|
561
561
|
Manufacturer: 'CornerstoneJS',
|
|
562
562
|
ManufacturerModelName: '@cornerstonejs/adapters',
|
|
563
|
-
SoftwareVersions: (/* inlined export .version */"5.18.
|
|
563
|
+
SoftwareVersions: (/* inlined export .version */"5.18.3")
|
|
564
564
|
};
|
|
565
565
|
const valueOr = (value, fallback) => (0,dist_esm/* .hasNoValue */.Tn)(value) ? fallback : value;
|
|
566
566
|
function getWriterHeader() {
|
|
@@ -9313,7 +9313,7 @@ const graphicTypeEquals = graphicType => {
|
|
|
9313
9313
|
},
|
|
9314
9314
|
69544() {
|
|
9315
9315
|
"use strict";
|
|
9316
|
-
const version = '5.18.
|
|
9316
|
+
const version = '5.18.3';
|
|
9317
9317
|
|
|
9318
9318
|
|
|
9319
9319
|
|