@ohif/app 3.14.0-beta.90 → 3.14.0-beta.92
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.fdfa1289.js} +174 -84
- 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.897484ee.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
|
|
@@ -42893,7 +42893,11 @@ function StudySummaryFromMetadata(props) {
|
|
|
42893
42893
|
t1 = null;
|
|
42894
42894
|
break bb0;
|
|
42895
42895
|
}
|
|
42896
|
-
const instanceMeta = studyMeta.series
|
|
42896
|
+
const instanceMeta = studyMeta.series.find(StudySummaryFromMetadata_temp)?.instances[0];
|
|
42897
|
+
if (!instanceMeta) {
|
|
42898
|
+
t1 = null;
|
|
42899
|
+
break bb0;
|
|
42900
|
+
}
|
|
42897
42901
|
const { StudyDate, StudyDescription: t2 } = instanceMeta;
|
|
42898
42902
|
StudyDescription = t2;
|
|
42899
42903
|
T0 = ui_next_src/* .StudySummary */.u3f;
|
|
@@ -42928,6 +42932,9 @@ function StudySummaryFromMetadata(props) {
|
|
|
42928
42932
|
}
|
|
42929
42933
|
return t2;
|
|
42930
42934
|
}
|
|
42935
|
+
function StudySummaryFromMetadata_temp(series) {
|
|
42936
|
+
return series.instances?.length;
|
|
42937
|
+
}
|
|
42931
42938
|
|
|
42932
42939
|
;// CONCATENATED MODULE: ../../extensions/cornerstone/src/components/StudyMeasurementsActions.tsx
|
|
42933
42940
|
|
|
@@ -43426,6 +43433,7 @@ function PanelMeasurement(props) {
|
|
|
43426
43433
|
|
|
43427
43434
|
|
|
43428
43435
|
|
|
43436
|
+
|
|
43429
43437
|
const getPanelModule = ({ commandsManager, servicesManager, extensionManager })=>{
|
|
43430
43438
|
const { toolbarService } = servicesManager.services;
|
|
43431
43439
|
const toolSectionMap = {
|
|
@@ -43454,27 +43462,75 @@ const getPanelModule = ({ commandsManager, servicesManager, extensionManager })=
|
|
|
43454
43462
|
segmentationRepresentationTypes: props?.segmentationRepresentationTypes
|
|
43455
43463
|
});
|
|
43456
43464
|
};
|
|
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
|
-
|
|
43465
|
+
const PanelSegmentationWithTools = (props)=>{
|
|
43466
|
+
const $ = (0,compiler_runtime.c)(14);
|
|
43467
|
+
const { t } = (0,es/* .useTranslation */.Bd)("SegmentationPanel");
|
|
43468
|
+
const tKey = `${props.segmentationRepresentationTypes?.[0] ?? "Segmentation"} tools`;
|
|
43469
|
+
let t0;
|
|
43470
|
+
if ($[0] !== t || $[1] !== tKey) {
|
|
43471
|
+
t0 = t(tKey);
|
|
43472
|
+
$[0] = t;
|
|
43473
|
+
$[1] = tKey;
|
|
43474
|
+
$[2] = t0;
|
|
43475
|
+
} else {
|
|
43476
|
+
t0 = $[2];
|
|
43477
|
+
}
|
|
43478
|
+
const tValue = t0;
|
|
43479
|
+
const t1 = toolSectionMap[props.segmentationRepresentationTypes?.[0]];
|
|
43480
|
+
let t2;
|
|
43481
|
+
if ($[3] !== t1 || $[4] !== tValue) {
|
|
43482
|
+
t2 = /*#__PURE__*/ (0,jsx_runtime.jsx)(default_src/* .Toolbox */.OO, {
|
|
43483
|
+
buttonSectionId: t1,
|
|
43484
|
+
title: tValue
|
|
43485
|
+
});
|
|
43486
|
+
$[3] = t1;
|
|
43487
|
+
$[4] = tValue;
|
|
43488
|
+
$[5] = t2;
|
|
43489
|
+
} else {
|
|
43490
|
+
t2 = $[5];
|
|
43491
|
+
}
|
|
43492
|
+
const t3 = props?.configuration;
|
|
43493
|
+
let t4;
|
|
43494
|
+
if ($[6] !== t3) {
|
|
43495
|
+
t4 = {
|
|
43496
|
+
...t3
|
|
43497
|
+
};
|
|
43498
|
+
$[6] = t3;
|
|
43499
|
+
$[7] = t4;
|
|
43500
|
+
} else {
|
|
43501
|
+
t4 = $[7];
|
|
43502
|
+
}
|
|
43503
|
+
const t5 = props?.segmentationRepresentationTypes;
|
|
43504
|
+
let t6;
|
|
43505
|
+
if ($[8] !== t4 || $[9] !== t5) {
|
|
43506
|
+
t6 = /*#__PURE__*/ (0,jsx_runtime.jsx)(PanelSegmentation, {
|
|
43507
|
+
commandsManager: commandsManager,
|
|
43508
|
+
servicesManager: servicesManager,
|
|
43509
|
+
extensionManager: extensionManager,
|
|
43510
|
+
configuration: t4,
|
|
43511
|
+
segmentationRepresentationTypes: t5
|
|
43512
|
+
});
|
|
43513
|
+
$[8] = t4;
|
|
43514
|
+
$[9] = t5;
|
|
43515
|
+
$[10] = t6;
|
|
43516
|
+
} else {
|
|
43517
|
+
t6 = $[10];
|
|
43518
|
+
}
|
|
43519
|
+
let t7;
|
|
43520
|
+
if ($[11] !== t2 || $[12] !== t6) {
|
|
43521
|
+
t7 = /*#__PURE__*/ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
43522
|
+
children: [
|
|
43523
|
+
t2,
|
|
43524
|
+
t6
|
|
43525
|
+
]
|
|
43526
|
+
});
|
|
43527
|
+
$[11] = t2;
|
|
43528
|
+
$[12] = t6;
|
|
43529
|
+
$[13] = t7;
|
|
43530
|
+
} else {
|
|
43531
|
+
t7 = $[13];
|
|
43532
|
+
}
|
|
43533
|
+
return t7;
|
|
43478
43534
|
};
|
|
43479
43535
|
return [
|
|
43480
43536
|
{
|
|
@@ -43511,7 +43567,7 @@ const getPanelModule = ({ commandsManager, servicesManager, extensionManager })=
|
|
|
43511
43567
|
iconName: 'tab-segmentation',
|
|
43512
43568
|
iconLabel: 'Segmentation',
|
|
43513
43569
|
label: i18n_src/* ["default"].t */.A.t('SegmentationPanel:Labelmap'),
|
|
43514
|
-
component: (props)
|
|
43570
|
+
component: (props)=>/*#__PURE__*/ (0,jsx_runtime.jsx)(PanelSegmentationWithTools, {
|
|
43515
43571
|
...props,
|
|
43516
43572
|
segmentationRepresentationTypes: [
|
|
43517
43573
|
esm_enums.SegmentationRepresentations.Labelmap,
|
|
@@ -43524,7 +43580,7 @@ const getPanelModule = ({ commandsManager, servicesManager, extensionManager })=
|
|
|
43524
43580
|
iconName: 'tab-contours',
|
|
43525
43581
|
iconLabel: 'Segmentation',
|
|
43526
43582
|
label: i18n_src/* ["default"].t */.A.t('SegmentationPanel:Contour'),
|
|
43527
|
-
component: (props)
|
|
43583
|
+
component: (props)=>/*#__PURE__*/ (0,jsx_runtime.jsx)(PanelSegmentationWithTools, {
|
|
43528
43584
|
...props,
|
|
43529
43585
|
segmentationRepresentationTypes: [
|
|
43530
43586
|
esm_enums.SegmentationRepresentations.Contour
|
|
@@ -46253,6 +46309,7 @@ const defaultActionIcons = [
|
|
|
46253
46309
|
{
|
|
46254
46310
|
id: 'settings',
|
|
46255
46311
|
iconName: 'Settings',
|
|
46312
|
+
label: 'Sort and filter series',
|
|
46256
46313
|
value: false
|
|
46257
46314
|
}
|
|
46258
46315
|
];
|
|
@@ -46692,7 +46749,7 @@ function PanelStudyBrowser({ getImageSrc, getStudiesForPatientByMRN, requestDisp
|
|
|
46692
46749
|
customMapDisplaySets,
|
|
46693
46750
|
mapDisplaySetsWithState
|
|
46694
46751
|
]);
|
|
46695
|
-
const tabs = createStudyBrowserTabs(StudyInstanceUIDs, studyDisplayList, displaySets); // TODO: Should not fire this on "close"
|
|
46752
|
+
const tabs = createStudyBrowserTabs(StudyInstanceUIDs, studyDisplayList, displaySets, undefined, displaySetService); // TODO: Should not fire this on "close"
|
|
46696
46753
|
function _handleStudyClick(StudyInstanceUID_0) {
|
|
46697
46754
|
const shouldCollapseStudy = expandedStudyInstanceUIDs.includes(StudyInstanceUID_0);
|
|
46698
46755
|
const updatedExpandedStudyInstanceUIDs = shouldCollapseStudy ? [
|
|
@@ -46888,38 +46945,63 @@ function _findTabAndStudyOfDisplaySet(displaySetInstanceUID, tabs, currentTabNam
|
|
|
46888
46945
|
/* import */ var react_jsx_runtime__rspack_import_0 = __webpack_require__(31085);
|
|
46889
46946
|
/* import */ var react_compiler_runtime__rspack_import_1 = __webpack_require__(54005);
|
|
46890
46947
|
/* import */ var react__rspack_import_2 = __webpack_require__(14041);
|
|
46891
|
-
/* import */ var
|
|
46948
|
+
/* import */ var react_i18next__rspack_import_3 = __webpack_require__(35261);
|
|
46949
|
+
/* import */ var _ohif_ui_next__rspack_import_4 = __webpack_require__(2727);
|
|
46950
|
+
|
|
46892
46951
|
|
|
46893
46952
|
|
|
46894
46953
|
|
|
46895
46954
|
|
|
46896
46955
|
|
|
46897
46956
|
function PanelStudyBrowserHeader(t0) {
|
|
46898
|
-
const $ = (0,react_compiler_runtime__rspack_import_1.c)(
|
|
46957
|
+
const $ = (0,react_compiler_runtime__rspack_import_1.c)(23);
|
|
46899
46958
|
const { viewPresets, updateViewPresetValue, actionIcons, updateActionIconValue } = t0;
|
|
46959
|
+
const { t } = (0,react_i18next__rspack_import_3/* .useTranslation */.Bd)("StudyBrowser");
|
|
46900
46960
|
let t1;
|
|
46901
|
-
if ($[0] !== actionIcons || $[1] !== updateActionIconValue) {
|
|
46961
|
+
if ($[0] !== actionIcons || $[1] !== t || $[2] !== updateActionIconValue) {
|
|
46902
46962
|
let t2;
|
|
46903
|
-
if ($[
|
|
46904
|
-
t2 = (icon, index)
|
|
46963
|
+
if ($[4] !== t || $[5] !== updateActionIconValue) {
|
|
46964
|
+
t2 = (icon, index)=>{
|
|
46965
|
+
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
46966
|
key: index,
|
|
46906
46967
|
onClick: ()=>updateActionIconValue(icon),
|
|
46907
46968
|
className: "cursor-pointer"
|
|
46908
46969
|
});
|
|
46909
|
-
|
|
46910
|
-
|
|
46970
|
+
if (!icon.label) {
|
|
46971
|
+
return iconElement;
|
|
46972
|
+
}
|
|
46973
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsxs)(_ohif_ui_next__rspack_import_4/* .Tooltip */.m_M, {
|
|
46974
|
+
children: [
|
|
46975
|
+
/*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_ohif_ui_next__rspack_import_4/* .TooltipTrigger */.k$k, {
|
|
46976
|
+
asChild: true,
|
|
46977
|
+
"aria-label": t(icon.label),
|
|
46978
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)("span", {
|
|
46979
|
+
className: "flex",
|
|
46980
|
+
children: iconElement
|
|
46981
|
+
})
|
|
46982
|
+
}),
|
|
46983
|
+
/*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_ohif_ui_next__rspack_import_4/* .TooltipContent */.ZIw, {
|
|
46984
|
+
children: t(icon.label)
|
|
46985
|
+
})
|
|
46986
|
+
]
|
|
46987
|
+
}, index);
|
|
46988
|
+
};
|
|
46989
|
+
$[4] = t;
|
|
46990
|
+
$[5] = updateActionIconValue;
|
|
46991
|
+
$[6] = t2;
|
|
46911
46992
|
} else {
|
|
46912
|
-
t2 = $[
|
|
46993
|
+
t2 = $[6];
|
|
46913
46994
|
}
|
|
46914
46995
|
t1 = actionIcons.map(t2);
|
|
46915
46996
|
$[0] = actionIcons;
|
|
46916
|
-
$[1] =
|
|
46917
|
-
$[2] =
|
|
46997
|
+
$[1] = t;
|
|
46998
|
+
$[2] = updateActionIconValue;
|
|
46999
|
+
$[3] = t1;
|
|
46918
47000
|
} else {
|
|
46919
|
-
t1 = $[
|
|
47001
|
+
t1 = $[3];
|
|
46920
47002
|
}
|
|
46921
47003
|
let t2;
|
|
46922
|
-
if ($[
|
|
47004
|
+
if ($[7] !== t1) {
|
|
46923
47005
|
t2 = /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)("div", {
|
|
46924
47006
|
className: "flex items-center justify-center",
|
|
46925
47007
|
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)("div", {
|
|
@@ -46927,60 +47009,60 @@ function PanelStudyBrowserHeader(t0) {
|
|
|
46927
47009
|
children: t1
|
|
46928
47010
|
})
|
|
46929
47011
|
});
|
|
46930
|
-
$[
|
|
46931
|
-
$[
|
|
47012
|
+
$[7] = t1;
|
|
47013
|
+
$[8] = t2;
|
|
46932
47014
|
} else {
|
|
46933
|
-
t2 = $[
|
|
47015
|
+
t2 = $[8];
|
|
46934
47016
|
}
|
|
46935
47017
|
let t3;
|
|
46936
|
-
if ($[
|
|
47018
|
+
if ($[9] !== viewPresets) {
|
|
46937
47019
|
t3 = viewPresets.filter(_temp);
|
|
46938
|
-
$[
|
|
46939
|
-
$[
|
|
47020
|
+
$[9] = viewPresets;
|
|
47021
|
+
$[10] = t3;
|
|
46940
47022
|
} else {
|
|
46941
|
-
t3 = $[
|
|
47023
|
+
t3 = $[10];
|
|
46942
47024
|
}
|
|
46943
47025
|
const t4 = t3[0].id;
|
|
46944
47026
|
let t5;
|
|
46945
|
-
if ($[
|
|
47027
|
+
if ($[11] !== updateViewPresetValue || $[12] !== viewPresets) {
|
|
46946
47028
|
t5 = (value)=>{
|
|
46947
47029
|
const selectedViewPreset = viewPresets.find((preset_0)=>preset_0.id === value);
|
|
46948
47030
|
updateViewPresetValue(selectedViewPreset);
|
|
46949
47031
|
};
|
|
46950
|
-
$[
|
|
46951
|
-
$[
|
|
46952
|
-
$[
|
|
47032
|
+
$[11] = updateViewPresetValue;
|
|
47033
|
+
$[12] = viewPresets;
|
|
47034
|
+
$[13] = t5;
|
|
46953
47035
|
} else {
|
|
46954
|
-
t5 = $[
|
|
47036
|
+
t5 = $[13];
|
|
46955
47037
|
}
|
|
46956
47038
|
let t6;
|
|
46957
|
-
if ($[
|
|
47039
|
+
if ($[14] !== viewPresets) {
|
|
46958
47040
|
t6 = viewPresets.map(_temp2);
|
|
46959
|
-
$[
|
|
46960
|
-
$[
|
|
47041
|
+
$[14] = viewPresets;
|
|
47042
|
+
$[15] = t6;
|
|
46961
47043
|
} else {
|
|
46962
|
-
t6 = $[
|
|
47044
|
+
t6 = $[15];
|
|
46963
47045
|
}
|
|
46964
47046
|
let t7;
|
|
46965
|
-
if ($[
|
|
47047
|
+
if ($[16] !== t3[0].id || $[17] !== t5 || $[18] !== t6) {
|
|
46966
47048
|
t7 = /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)("div", {
|
|
46967
47049
|
className: "ml-auto flex h-full items-center justify-center",
|
|
46968
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(
|
|
47050
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_ohif_ui_next__rspack_import_4/* .ToggleGroup */.OY8, {
|
|
46969
47051
|
type: "single",
|
|
46970
47052
|
value: t4,
|
|
46971
47053
|
onValueChange: t5,
|
|
46972
47054
|
children: t6
|
|
46973
47055
|
})
|
|
46974
47056
|
});
|
|
46975
|
-
$[
|
|
46976
|
-
$[
|
|
46977
|
-
$[
|
|
46978
|
-
$[
|
|
47057
|
+
$[16] = t3[0].id;
|
|
47058
|
+
$[17] = t5;
|
|
47059
|
+
$[18] = t6;
|
|
47060
|
+
$[19] = t7;
|
|
46979
47061
|
} else {
|
|
46980
|
-
t7 = $[
|
|
47062
|
+
t7 = $[19];
|
|
46981
47063
|
}
|
|
46982
47064
|
let t8;
|
|
46983
|
-
if ($[
|
|
47065
|
+
if ($[20] !== t2 || $[21] !== t7) {
|
|
46984
47066
|
t8 = /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(react_jsx_runtime__rspack_import_0.Fragment, {
|
|
46985
47067
|
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)("div", {
|
|
46986
47068
|
className: "bg-muted flex h-[40px] select-none rounded-t p-2",
|
|
@@ -46996,20 +47078,20 @@ function PanelStudyBrowserHeader(t0) {
|
|
|
46996
47078
|
})
|
|
46997
47079
|
})
|
|
46998
47080
|
});
|
|
46999
|
-
$[
|
|
47000
|
-
$[
|
|
47001
|
-
$[
|
|
47081
|
+
$[20] = t2;
|
|
47082
|
+
$[21] = t7;
|
|
47083
|
+
$[22] = t8;
|
|
47002
47084
|
} else {
|
|
47003
|
-
t8 = $[
|
|
47085
|
+
t8 = $[22];
|
|
47004
47086
|
}
|
|
47005
47087
|
return t8;
|
|
47006
47088
|
}
|
|
47007
47089
|
function _temp2(viewPreset, index_0) {
|
|
47008
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(
|
|
47090
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_ohif_ui_next__rspack_import_4/* .ToggleGroupItem */.dzE, {
|
|
47009
47091
|
"aria-label": viewPreset.id,
|
|
47010
47092
|
value: viewPreset.id,
|
|
47011
47093
|
className: "text-primary",
|
|
47012
|
-
children: /*#__PURE__*/ react__rspack_import_2.createElement(
|
|
47094
|
+
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
47095
|
}, index_0);
|
|
47014
47096
|
}
|
|
47015
47097
|
function _temp(preset) {
|
|
@@ -58317,7 +58399,21 @@ function DataSourceSelector_temp(it) {
|
|
|
58317
58399
|
;// CONCATENATED MODULE: ../../extensions/default/src/customizations/studyBrowserCustomization.ts
|
|
58318
58400
|
|
|
58319
58401
|
|
|
58320
|
-
const {
|
|
58402
|
+
const { getDateTimeSortKey } = src/* .utils */.Wp; /**
|
|
58403
|
+
* Orders by the given key, lowest first, and returns 0 when the keys are
|
|
58404
|
+
* equal, so that the study browser breaks the tie with its default order.
|
|
58405
|
+
*/
|
|
58406
|
+
const byKey = (keyOf)=>(a, b)=>{
|
|
58407
|
+
const keyA = keyOf(a);
|
|
58408
|
+
const keyB = keyOf(b);
|
|
58409
|
+
return keyA === keyB ? 0 : keyA < keyB ? -1 : 1;
|
|
58410
|
+
}; // A series with no number or no date sorts first.
|
|
58411
|
+
const seriesNumberKey = (displaySet)=>{
|
|
58412
|
+
const value = displaySet?.SeriesNumber;
|
|
58413
|
+
const seriesNumber = value === '' || value === null ? NaN : Number(value);
|
|
58414
|
+
return Number.isFinite(seriesNumber) ? seriesNumber : -Infinity;
|
|
58415
|
+
};
|
|
58416
|
+
const seriesDateTimeKey = (displaySet)=>getDateTimeSortKey(displaySet?.SeriesDate, displaySet?.SeriesTime);
|
|
58321
58417
|
/* export default */ var studyBrowserCustomization = ({
|
|
58322
58418
|
'studyBrowser.studyMenuItems': [],
|
|
58323
58419
|
'studyBrowser.thumbnailMenuItems': [
|
|
@@ -58337,17 +58433,11 @@ const { formatDate } = src/* .utils */.Wp;
|
|
|
58337
58433
|
'studyBrowser.sortFunctions': [
|
|
58338
58434
|
{
|
|
58339
58435
|
label: i18n_src/* ["default"].t */.A.t('StudyBrowser:Series Number'),
|
|
58340
|
-
sortFunction: (
|
|
58341
|
-
return a?.SeriesNumber - b?.SeriesNumber;
|
|
58342
|
-
}
|
|
58436
|
+
sortFunction: byKey(seriesNumberKey)
|
|
58343
58437
|
},
|
|
58344
58438
|
{
|
|
58345
58439
|
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
|
-
}
|
|
58440
|
+
sortFunction: byKey(seriesDateTimeKey)
|
|
58351
58441
|
}
|
|
58352
58442
|
],
|
|
58353
58443
|
'studyBrowser.viewPresets': [
|
|
@@ -59523,8 +59613,8 @@ function AboutModalDefault() {
|
|
|
59523
59613
|
version = $[3];
|
|
59524
59614
|
}
|
|
59525
59615
|
const browser = `${t0}${t1} ${version}`;
|
|
59526
|
-
const versionNumber = "3.14.0-beta.
|
|
59527
|
-
const commitHash = "
|
|
59616
|
+
const versionNumber = "3.14.0-beta.92";
|
|
59617
|
+
const commitHash = "97c31cfeaff2d60cb358db92c149d878979c8375";
|
|
59528
59618
|
let t2;
|
|
59529
59619
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
59530
59620
|
t2 = versionNumber.split("-");
|
|
@@ -62311,7 +62401,7 @@ function HeaderUndoRedo() {
|
|
|
62311
62401
|
|
|
62312
62402
|
|
|
62313
62403
|
|
|
62314
|
-
const { formatPN, formatDate
|
|
62404
|
+
const { formatPN, formatDate } = src/* .utils */.Wp;
|
|
62315
62405
|
function usePatientInfo() {
|
|
62316
62406
|
const $ = (0,compiler_runtime.c)(10);
|
|
62317
62407
|
const { servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
@@ -62360,7 +62450,7 @@ function usePatientInfo() {
|
|
|
62360
62450
|
PatientID: instance_0.PatientID || null,
|
|
62361
62451
|
PatientName: instance_0.PatientName ? formatPN(instance_0.PatientName) : null,
|
|
62362
62452
|
PatientSex: instance_0.PatientSex || null,
|
|
62363
|
-
PatientDOB:
|
|
62453
|
+
PatientDOB: formatDate(instance_0.PatientBirthDate) || null
|
|
62364
62454
|
});
|
|
62365
62455
|
checkMixedPatients(instance_0.PatientID || null);
|
|
62366
62456
|
};
|
|
@@ -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
|
|