@ohif/app 3.8.0-beta.5 → 3.8.0-beta.51

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.
Files changed (55) hide show
  1. package/dist/{12.bundle.1c0fcebb2e63f538b03b.js → 12.bundle.505ff8d33e3b91db6c4b.js} +9 -11
  2. package/dist/{125.bundle.253395f320b72180da63.js → 125.bundle.df666cb677e5a8982157.js} +4 -5
  3. package/dist/{663.bundle.68a67d3504dc24cccc1a.js → 170.bundle.3364dca0af95fde51ec6.js} +97 -89
  4. package/dist/{181.bundle.2ddc6f90740895a3949c.js → 181.bundle.aff453c348111303ceac.js} +107 -74
  5. package/dist/181.css +1 -1
  6. package/dist/{370.bundle.085badd6055e8feea84f.js → 185.bundle.892c8cbfeaaa14540821.js} +338 -209
  7. package/dist/{19.bundle.05ccf775cb70682dfcdf.js → 19.bundle.15ee26f7912d361e90b6.js} +127 -136
  8. package/dist/{99.bundle.51efd3493cd1de6bf63c.js → 199.bundle.a6fc393364e32b43a307.js} +215 -162
  9. package/dist/202.bundle.495cba6bbee744cf8f72.js +18239 -0
  10. package/dist/20fc4c659b85ccd2a9c0.wasm +0 -0
  11. package/dist/{220.bundle.f7e1c96c94245e70f2be.js → 223.bundle.d4ac6ef2cfe47a9c4afc.js} +4422 -3671
  12. package/dist/{23.bundle.e008ad788170f2ed5569.js → 23.bundle.9d989522a6e4fdcb9c72.js} +1 -1
  13. package/dist/{250.bundle.8084960e3318cda37317.js → 250.bundle.577da106dd763c7bf9d0.js} +22 -27
  14. package/dist/{281.bundle.64640869327edc0d2cae.js → 281.bundle.849a5e58fb2c0a9012dc.js} +23 -25
  15. package/dist/{82.bundle.9e269153bafc15562988.js → 290.bundle.744ac8d04daee807702f.js} +1244 -695
  16. package/dist/{359.bundle.e2f5680a854894c32944.js → 359.bundle.59878f46325c60f5d603.js} +27 -30
  17. package/dist/{410.bundle.8bb12b01e1f838340950.js → 410.bundle.ac46ff16910fa2785bcc.js} +24 -28
  18. package/dist/{417.bundle.af0a207c29b109f84159.js → 417.bundle.5c66801d23d0e98c00e6.js} +2 -2
  19. package/dist/{451.bundle.9fd36f52ff69594f0669.js → 451.bundle.311cd3be9916e08450e9.js} +28 -41
  20. package/dist/{221.bundle.da7732c6f158b6f2b0d8.js → 466.bundle.43f3b29a2e1665bb9a65.js} +161 -151
  21. package/dist/{471.bundle.b3d77b83b1593c09a504.js → 471.bundle.eeb78105b59e688832a6.js} +31 -35
  22. package/dist/{788.bundle.428c065311327135d817.js → 483.bundle.3a3d61f78d5f1f8ad574.js} +131 -180
  23. package/dist/{506.bundle.c3d01c4b6cc01096ce9e.js → 506.bundle.97b3dd0fd0f4467dc21c.js} +13 -18
  24. package/dist/{530.bundle.a03b6f942ace3e1baa1e.js → 530.bundle.f904325ef4195d69ac0e.js} +10 -3
  25. package/dist/{613.bundle.de79995392c3fd2e9637.js → 613.bundle.72d635ed76fa208309f7.js} +76 -50
  26. package/dist/{774.bundle.4b2dc46a35012b898e1a.js → 661.bundle.949c984fe2f9f753b65c.js} +1851 -8944
  27. package/dist/{686.bundle.dccef1f36e4bc79bcc48.js → 686.bundle.62c827fe4f0d054c164e.js} +4 -5
  28. package/dist/{687.bundle.763e03b2624b6cc03ad2.js → 687.bundle.a0c6c77073595745e58e.js} +19 -35
  29. package/dist/{342.bundle.22d2df5cf6d83b24acee.js → 738.bundle.bf1d2c76e385a091999d.js} +938 -571
  30. package/dist/{814.bundle.d45ba7f8b856fbd4e75d.js → 814.bundle.477d51b23a2fe79a5b96.js} +9 -11
  31. package/dist/{822.bundle.891f2e57b1b7bc2f4cb4.js → 822.bundle.8b745e28bc9eb9afbc61.js} +14 -16
  32. package/dist/{757.bundle.ec8301d8e70d2b990f65.js → 831.bundle.127a3064e8844d6d2c82.js} +1 -368
  33. package/dist/{886.bundle.d5116d9b8ea4964b68a0.js → 886.bundle.94a4536167d0f8cae1ae.js} +19 -23
  34. package/dist/95.bundle.2236101be3cc36b322e8.js +8769 -0
  35. package/dist/{236.bundle.09d155c6f44b5a44e4bf.js → 965.bundle.5a31aeb079b7e72cec9c.js} +104 -126
  36. package/dist/app.bundle.css +11 -11
  37. package/dist/{app.bundle.671d2bb084d88c0cf3b7.js → app.bundle.ef06991fb9bbafce36ed.js} +185194 -61390
  38. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  39. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  40. package/dist/{dicom-microscopy-viewer.bundle.2c146384eb9466d02ff8.js → dicom-microscopy-viewer.bundle.a7d5060eead13771e784.js} +1 -1
  41. package/dist/index.html +1 -1
  42. package/dist/{index.worker.e62ecca63f1a2e124230.worker.js → index.worker.64c896c4316fcd506666.worker.js} +2 -2
  43. package/dist/index.worker.64c896c4316fcd506666.worker.js.map +1 -0
  44. package/dist/serve.json +12 -0
  45. package/dist/sw.js +1 -1
  46. package/package.json +21 -21
  47. package/dist/202.bundle.d3490836f71e001dd30f.js +0 -6336
  48. package/dist/604.bundle.a51f83e64004bca5f497.js +0 -1848
  49. package/dist/743.bundle.489f7df3a089d4d374e1.js +0 -78007
  50. package/dist/75788f12450d4c5ed494.wasm +0 -0
  51. package/dist/775.bundle.2285e7e0e67878948c0d.js +0 -1009
  52. package/dist/957.bundle.9ea4506963ef8b2d84ba.js +0 -30077
  53. package/dist/index.worker.e62ecca63f1a2e124230.worker.js.map +0 -1
  54. /package/dist/{82.css → 290.css} +0 -0
  55. /package/dist/{221.css → 466.css} +0 -0
@@ -1,9 +1,9 @@
1
- (self["webpackChunk"] = self["webpackChunk"] || []).push([[788],{
1
+ "use strict";
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[483],{
2
3
 
3
4
  /***/ 4483:
4
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5
6
 
6
- "use strict";
7
7
  // ESM COMPAT FLAG
8
8
  __webpack_require__.r(__webpack_exports__);
9
9
 
@@ -29,7 +29,6 @@ const ctAXIAL = {
29
29
  // index: 5,
30
30
  preset: 'first' // 'first', 'last', 'middle'
31
31
  },
32
-
33
32
  syncGroups: [{
34
33
  type: 'cameraPosition',
35
34
  id: 'axialSync',
@@ -101,7 +100,6 @@ const ptAXIAL = {
101
100
  // index: 5,
102
101
  preset: 'first' // 'first', 'last', 'middle'
103
102
  },
104
-
105
103
  syncGroups: [{
106
104
  type: 'cameraPosition',
107
105
  id: 'axialSync',
@@ -216,7 +214,6 @@ const fusionAXIAL = {
216
214
  // index: 5,
217
215
  preset: 'first' // 'first', 'last', 'middle'
218
216
  },
219
-
220
217
  syncGroups: [{
221
218
  type: 'cameraPosition',
222
219
  id: 'axialSync',
@@ -696,8 +693,8 @@ var react = __webpack_require__(43001);
696
693
  // EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
697
694
  var prop_types = __webpack_require__(3827);
698
695
  var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
699
- // EXTERNAL MODULE: ../../ui/src/index.js + 485 modules
700
- var src = __webpack_require__(71783);
696
+ // EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
697
+ var src = __webpack_require__(18414);
701
698
  // EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
702
699
  var core_src = __webpack_require__(71771);
703
700
  // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
@@ -726,11 +723,10 @@ const DEFAULT_MEATADATA = {
726
723
  * @param param0
727
724
  * @returns
728
725
  */
729
- function PanelPetSUV(_ref) {
730
- let {
731
- servicesManager,
732
- commandsManager
733
- } = _ref;
726
+ function PanelPetSUV({
727
+ servicesManager,
728
+ commandsManager
729
+ }) {
734
730
  const {
735
731
  t
736
732
  } = (0,es/* useTranslation */.$G)('PanelSUV');
@@ -799,10 +795,9 @@ function PanelPetSUV(_ref) {
799
795
  (0,react.useEffect)(() => {
800
796
  const {
801
797
  unsubscribe
802
- } = hangingProtocolService.subscribe(hangingProtocolService.EVENTS.PROTOCOL_CHANGED, _ref2 => {
803
- let {
804
- viewportMatchDetails
805
- } = _ref2;
798
+ } = hangingProtocolService.subscribe(hangingProtocolService.EVENTS.PROTOCOL_CHANGED, ({
799
+ viewportMatchDetails
800
+ }) => {
806
801
  const displaySetInfo = getMatchingPTDisplaySet(viewportMatchDetails);
807
802
  if (!displaySetInfo) {
808
803
  return;
@@ -931,21 +926,19 @@ PanelPetSUV.propTypes = {
931
926
  ;// CONCATENATED MODULE: ../../../extensions/tmtv/src/Panels/PanelROIThresholdSegmentation/segmentationEditHandler.tsx
932
927
 
933
928
 
934
- function segmentationItemEditHandler(_ref) {
935
- let {
936
- id,
937
- servicesManager
938
- } = _ref;
929
+ function segmentationItemEditHandler({
930
+ id,
931
+ servicesManager
932
+ }) {
939
933
  const {
940
934
  segmentationService,
941
935
  uiDialogService
942
936
  } = servicesManager.services;
943
937
  const segmentation = segmentationService.getSegmentation(id);
944
- const onSubmitHandler = _ref2 => {
945
- let {
946
- action,
947
- value
948
- } = _ref2;
938
+ const onSubmitHandler = ({
939
+ action,
940
+ value
941
+ }) => {
949
942
  switch (action.id) {
950
943
  case 'save':
951
944
  {
@@ -958,7 +951,6 @@ function segmentationItemEditHandler(_ref) {
958
951
  );
959
952
  }
960
953
  }
961
-
962
954
  uiDialogService.dismiss({
963
955
  id: 'enter-annotation'
964
956
  });
@@ -975,11 +967,10 @@ function segmentationItemEditHandler(_ref) {
975
967
  value: {
976
968
  label: segmentation.label || ''
977
969
  },
978
- body: _ref3 => {
979
- let {
980
- value,
981
- setValue
982
- } = _ref3;
970
+ body: ({
971
+ value,
972
+ setValue
973
+ }) => {
983
974
  const onChangeHandler = event => {
984
975
  event.persist();
985
976
  setValue(value => ({
@@ -1025,13 +1016,12 @@ function segmentationItemEditHandler(_ref) {
1025
1016
 
1026
1017
 
1027
1018
 
1028
- function ExportReports(_ref) {
1029
- let {
1030
- segmentations,
1031
- tmtvValue,
1032
- config,
1033
- commandsManager
1034
- } = _ref;
1019
+ function ExportReports({
1020
+ segmentations,
1021
+ tmtvValue,
1022
+ config,
1023
+ commandsManager
1024
+ }) {
1035
1025
  const {
1036
1026
  t
1037
1027
  } = (0,es/* useTranslation */.$G)('PanelSUVExport');
@@ -1077,12 +1067,11 @@ const options = [{
1077
1067
  label: 'Range',
1078
1068
  placeHolder: 'Range'
1079
1069
  }];
1080
- function ROIThresholdConfiguration(_ref) {
1081
- let {
1082
- config,
1083
- dispatch,
1084
- runCommand
1085
- } = _ref;
1070
+ function ROIThresholdConfiguration({
1071
+ config,
1072
+ dispatch,
1073
+ runCommand
1074
+ }) {
1086
1075
  const {
1087
1076
  t
1088
1077
  } = (0,es/* useTranslation */.$G)('ROIThresholdConfiguration');
@@ -1099,10 +1088,9 @@ function ROIThresholdConfiguration(_ref) {
1099
1088
  options: options,
1100
1089
  placeholder: options.find(option => option.value === config.strategy).placeHolder,
1101
1090
  value: config.strategy,
1102
- onChange: _ref2 => {
1103
- let {
1104
- value
1105
- } = _ref2;
1091
+ onChange: ({
1092
+ value
1093
+ }) => {
1106
1094
  dispatch({
1107
1095
  type: 'setStrategy',
1108
1096
  payload: {
@@ -1277,11 +1265,10 @@ function reducer(state, action) {
1277
1265
  return state;
1278
1266
  }
1279
1267
  }
1280
- function PanelRoiThresholdSegmentation(_ref) {
1281
- let {
1282
- servicesManager,
1283
- commandsManager
1284
- } = _ref;
1268
+ function PanelRoiThresholdSegmentation({
1269
+ servicesManager,
1270
+ commandsManager
1271
+ }) {
1285
1272
  const {
1286
1273
  segmentationService
1287
1274
  } = servicesManager.services;
@@ -1301,8 +1288,7 @@ function PanelRoiThresholdSegmentation(_ref) {
1301
1288
  weight: WEIGHT_DEFAULT
1302
1289
  });
1303
1290
  const [tmtvValue, setTmtvValue] = (0,react.useState)(null);
1304
- const runCommand = (0,react.useCallback)(function (commandName) {
1305
- let commandOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1291
+ const runCommand = (0,react.useCallback)((commandName, commandOptions = {}) => {
1306
1292
  return commandsManager.runCommand(commandName, commandOptions);
1307
1293
  }, [commandsManager]);
1308
1294
  const handleTMTVCalculation = (0,react.useCallback)(() => {
@@ -1507,12 +1493,11 @@ PanelRoiThresholdSegmentation.propTypes = {
1507
1493
  // - cancel promises when component is destroyed
1508
1494
  // - show errors in UI for thumbnails if promise fails
1509
1495
 
1510
- function getPanelModule(_ref) {
1511
- let {
1512
- commandsManager,
1513
- extensionManager,
1514
- servicesManager
1515
- } = _ref;
1496
+ function getPanelModule({
1497
+ commandsManager,
1498
+ extensionManager,
1499
+ servicesManager
1500
+ }) {
1516
1501
  const wrappedPanelPetSuv = () => {
1517
1502
  return /*#__PURE__*/react.createElement(PanelPetSUV, {
1518
1503
  commandsManager: commandsManager,
@@ -1542,10 +1527,10 @@ function getPanelModule(_ref) {
1542
1527
  }];
1543
1528
  }
1544
1529
  /* harmony default export */ const src_getPanelModule = (getPanelModule);
1545
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js + 348 modules
1546
- var esm = __webpack_require__(14957);
1547
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 331 modules
1548
- var dist_esm = __webpack_require__(3743);
1530
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js + 454 modules
1531
+ var esm = __webpack_require__(76634);
1532
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 376 modules
1533
+ var dist_esm = __webpack_require__(64225);
1549
1534
  ;// CONCATENATED MODULE: ../../../extensions/tmtv/src/utils/measurementServiceMappings/constants/supportedTools.js
1550
1535
  /* harmony default export */ const supportedTools = (['RectangleROIStartEndThreshold']);
1551
1536
  ;// CONCATENATED MODULE: ../../../extensions/tmtv/src/utils/measurementServiceMappings/utils/getSOPInstanceAttributes.js
@@ -1630,7 +1615,6 @@ const RectangleROIStartEndThreshold = {
1630
1615
  };
1631
1616
  }
1632
1617
  };
1633
-
1634
1618
  /* harmony default export */ const measurementServiceMappings_RectangleROIStartEndThreshold = (RectangleROIStartEndThreshold);
1635
1619
  ;// CONCATENATED MODULE: ../../../extensions/tmtv/src/utils/measurementServiceMappings/measurementServiceMappingsFactory.js
1636
1620
 
@@ -1700,11 +1684,10 @@ const CORNERSTONE_3D_TOOLS_SOURCE_VERSION = '0.1';
1700
1684
  * @param {Object} configuration
1701
1685
  * @param {Object|Array} configuration.csToolsConfig
1702
1686
  */
1703
- function init(_ref) {
1704
- let {
1705
- servicesManager,
1706
- extensionManager
1707
- } = _ref;
1687
+ function init({
1688
+ servicesManager,
1689
+ extensionManager
1690
+ }) {
1708
1691
  const {
1709
1692
  measurementService,
1710
1693
  displaySetService,
@@ -1797,8 +1780,7 @@ function _getStrategyFn(statistic) {
1797
1780
  * @param segmentIndex The index of the segment to use for masking
1798
1781
  * @returns
1799
1782
  */
1800
- function calculateSuvPeak(labelmap, referenceVolume, annotations) {
1801
- let segmentIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
1783
+ function calculateSuvPeak(labelmap, referenceVolume, annotations, segmentIndex = 1) {
1802
1784
  if (referenceVolume.metadata.Modality !== 'PT') {
1803
1785
  return;
1804
1786
  }
@@ -1832,11 +1814,10 @@ function calculateSuvPeak(labelmap, referenceVolume, annotations) {
1832
1814
  let max = 0;
1833
1815
  let maxIJK = [0, 0, 0];
1834
1816
  let maxLPS = [0, 0, 0];
1835
- const callback = _ref => {
1836
- let {
1837
- pointIJK,
1838
- pointLPS
1839
- } = _ref;
1817
+ const callback = ({
1818
+ pointIJK,
1819
+ pointLPS
1820
+ }) => {
1840
1821
  const offset = referenceVolumeImageData.computeOffsetIndex(pointIJK);
1841
1822
  const value = labelmapData[offset];
1842
1823
  if (value !== segmentIndex) {
@@ -1872,10 +1853,9 @@ function calculateSuvPeak(labelmap, referenceVolume, annotations) {
1872
1853
  */
1873
1854
  let count = 0;
1874
1855
  let acc = 0;
1875
- const suvPeakMeanCallback = _ref2 => {
1876
- let {
1877
- value
1878
- } = _ref2;
1856
+ const suvPeakMeanCallback = ({
1857
+ value
1858
+ }) => {
1879
1859
  acc += value;
1880
1860
  count += 1;
1881
1861
  };
@@ -1902,8 +1882,7 @@ function calculateSuvPeak(labelmap, referenceVolume, annotations) {
1902
1882
  * @param {number} segmentIndex
1903
1883
  * @returns {number} TMTV in ml
1904
1884
  */
1905
- function calculateTMTV(labelmaps) {
1906
- let segmentIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
1885
+ function calculateTMTV(labelmaps, segmentIndex = 1) {
1907
1886
  const volumeId = 'mergedLabelmap';
1908
1887
  const mergedLabelmap = esm.utilities.segmentation.createMergedLabelmapForIndex(labelmaps, segmentIndex, volumeId);
1909
1888
  const {
@@ -1942,11 +1921,10 @@ function createAndDownloadTMTVReport(segReport, additionalReportRows) {
1942
1921
  csv.push(`Patient ID,${firstReport.PatientID}`);
1943
1922
  csv.push(`Study Date,${firstReport.StudyDate}`);
1944
1923
  csv.push('');
1945
- additionalReportRows.forEach(_ref => {
1946
- let {
1947
- key,
1948
- value: values
1949
- } = _ref;
1924
+ additionalReportRows.forEach(({
1925
+ key,
1926
+ value: values
1927
+ }) => {
1950
1928
  const temp = [];
1951
1929
  temp.push(`${key}`);
1952
1930
  Object.keys(values).forEach(k => {
@@ -2001,12 +1979,11 @@ function dicomRTAnnotationExport(annotations) {
2001
1979
  const commandsModule_metadataProvider = core_src.classes.MetadataProvider;
2002
1980
  const RECTANGLE_ROI_THRESHOLD_MANUAL = 'RectangleROIStartEndThreshold';
2003
1981
  const LABELMAP = esm.Enums.SegmentationRepresentations.Labelmap;
2004
- const commandsModule = _ref => {
2005
- let {
2006
- servicesManager,
2007
- commandsManager,
2008
- extensionManager
2009
- } = _ref;
1982
+ const commandsModule = ({
1983
+ servicesManager,
1984
+ commandsManager,
1985
+ extensionManager
1986
+ }) => {
2010
1987
  const {
2011
1988
  viewportGridService,
2012
1989
  uiNotificationService,
@@ -2049,10 +2026,9 @@ const commandsModule = _ref => {
2049
2026
  return toolGroupIds;
2050
2027
  }
2051
2028
  const actions = {
2052
- getMatchingPTDisplaySet: _ref2 => {
2053
- let {
2054
- viewportMatchDetails
2055
- } = _ref2;
2029
+ getMatchingPTDisplaySet: ({
2030
+ viewportMatchDetails
2031
+ }) => {
2056
2032
  // Todo: this is assuming that the hanging protocol has successfully matched
2057
2033
  // the correct PT. For future, we should have a way to filter out the PTs
2058
2034
  // that are in the viewer layout (but then we have the problem of the attenuation
@@ -2063,12 +2039,9 @@ const commandsModule = _ref => {
2063
2039
  const {
2064
2040
  displaySetsInfo
2065
2041
  } = viewportDetails;
2066
- const displaySets = displaySetsInfo.map(_ref3 => {
2067
- let {
2068
- displaySetInstanceUID
2069
- } = _ref3;
2070
- return displaySetService.getDisplaySetByUID(displaySetInstanceUID);
2071
- });
2042
+ const displaySets = displaySetsInfo.map(({
2043
+ displaySetInstanceUID
2044
+ }) => displaySetService.getDisplaySetByUID(displaySetInstanceUID));
2072
2045
  if (!displaySets || displaySets.length === 0) {
2073
2046
  continue;
2074
2047
  }
@@ -2079,10 +2052,9 @@ const commandsModule = _ref => {
2079
2052
  }
2080
2053
  return ptDisplaySet;
2081
2054
  },
2082
- getPTMetadata: _ref4 => {
2083
- let {
2084
- ptDisplaySet
2085
- } = _ref4;
2055
+ getPTMetadata: ({
2056
+ ptDisplaySet
2057
+ }) => {
2086
2058
  const dataSource = extensionManager.getDataSources()[0];
2087
2059
  const imageIds = dataSource.getImageIdsForDisplaySet(ptDisplaySet);
2088
2060
  const firstImageId = imageIds[0];
@@ -2129,20 +2101,18 @@ const commandsModule = _ref => {
2129
2101
  }
2130
2102
  return segmentationId;
2131
2103
  },
2132
- setSegmentationActiveForToolGroups: _ref5 => {
2133
- let {
2134
- segmentationId
2135
- } = _ref5;
2104
+ setSegmentationActiveForToolGroups: ({
2105
+ segmentationId
2106
+ }) => {
2136
2107
  const toolGroupIds = _getMatchedViewportsToolGroupIds();
2137
2108
  toolGroupIds.forEach(toolGroupId => {
2138
2109
  segmentationService.setActiveSegmentationForToolGroup(segmentationId, toolGroupId);
2139
2110
  });
2140
2111
  },
2141
- thresholdSegmentationByRectangleROITool: _ref6 => {
2142
- let {
2143
- segmentationId,
2144
- config
2145
- } = _ref6;
2112
+ thresholdSegmentationByRectangleROITool: ({
2113
+ segmentationId,
2114
+ config
2115
+ }) => {
2146
2116
  const segmentation = esm.segmentation.state.getSegmentation(segmentationId);
2147
2117
  const {
2148
2118
  representationData
@@ -2197,10 +2167,9 @@ const commandsModule = _ref => {
2197
2167
  overwrite: true
2198
2168
  });
2199
2169
  },
2200
- calculateSuvPeak: _ref7 => {
2201
- let {
2202
- labelmap
2203
- } = _ref7;
2170
+ calculateSuvPeak: ({
2171
+ labelmap
2172
+ }) => {
2204
2173
  const {
2205
2174
  referencedVolumeId
2206
2175
  } = labelmap;
@@ -2215,11 +2184,10 @@ const commandsModule = _ref => {
2215
2184
  suvMaxLPS: suvPeak.maxLPS
2216
2185
  };
2217
2186
  },
2218
- getLesionStats: _ref8 => {
2219
- let {
2220
- labelmap,
2221
- segmentIndex = 1
2222
- } = _ref8;
2187
+ getLesionStats: ({
2188
+ labelmap,
2189
+ segmentIndex = 1
2190
+ }) => {
2223
2191
  const {
2224
2192
  scalarData,
2225
2193
  spacing
@@ -2253,10 +2221,9 @@ const commandsModule = _ref => {
2253
2221
  };
2254
2222
  return stats;
2255
2223
  },
2256
- calculateLesionGlycolysis: _ref9 => {
2257
- let {
2258
- lesionStats
2259
- } = _ref9;
2224
+ calculateLesionGlycolysis: ({
2225
+ lesionStats
2226
+ }) => {
2260
2227
  const {
2261
2228
  meanValue,
2262
2229
  volume
@@ -2265,22 +2232,20 @@ const commandsModule = _ref => {
2265
2232
  lesionGlyoclysisStats: volume * meanValue
2266
2233
  };
2267
2234
  },
2268
- calculateTMTV: _ref10 => {
2269
- let {
2270
- segmentations
2271
- } = _ref10;
2235
+ calculateTMTV: ({
2236
+ segmentations
2237
+ }) => {
2272
2238
  const labelmaps = segmentations.map(s => segmentationService.getLabelmapVolume(s.id));
2273
2239
  if (!labelmaps.length) {
2274
2240
  return;
2275
2241
  }
2276
2242
  return utils_calculateTMTV(labelmaps);
2277
2243
  },
2278
- exportTMTVReportCSV: _ref11 => {
2279
- let {
2280
- segmentations,
2281
- tmtv,
2282
- config
2283
- } = _ref11;
2244
+ exportTMTVReportCSV: ({
2245
+ segmentations,
2246
+ tmtv,
2247
+ config
2248
+ }) => {
2284
2249
  const segReport = commandsManager.runCommand('getSegmentationCSVReport', {
2285
2250
  segmentations
2286
2251
  });
@@ -2305,10 +2270,9 @@ const commandsModule = _ref => {
2305
2270
  }];
2306
2271
  createAndDownloadTMTVReport(segReport, additionalReportRows);
2307
2272
  },
2308
- getTotalLesionGlycolysis: _ref12 => {
2309
- let {
2310
- segmentations
2311
- } = _ref12;
2273
+ getTotalLesionGlycolysis: ({
2274
+ segmentations
2275
+ }) => {
2312
2276
  const labelmapVolumes = segmentations.map(s => segmentationService.getLabelmapVolume(s.id));
2313
2277
  let mergedLabelmap;
2314
2278
  // merge labelmap will through an error if labels maps are not the same size
@@ -2383,7 +2347,6 @@ const commandsModule = _ref => {
2383
2347
  return newPoint;
2384
2348
  //
2385
2349
  });
2386
-
2387
2350
  handles.points = newPoints;
2388
2351
  // IMPORTANT: invalidate the toolData for the cached stat to get updated
2389
2352
  // and re-calculate the projection points
@@ -2420,10 +2383,9 @@ const commandsModule = _ref => {
2420
2383
  annotations
2421
2384
  });
2422
2385
  },
2423
- getSegmentationCSVReport: _ref13 => {
2424
- let {
2425
- segmentations
2426
- } = _ref13;
2386
+ getSegmentationCSVReport: ({
2387
+ segmentations
2388
+ }) => {
2427
2389
  if (!segmentations || !segmentations.length) {
2428
2390
  segmentations = segmentationService.getSegmentations();
2429
2391
  }
@@ -2485,17 +2447,15 @@ const commandsModule = _ref => {
2485
2447
  }
2486
2448
  return report;
2487
2449
  },
2488
- exportRTReportForAnnotations: _ref14 => {
2489
- let {
2490
- annotations
2491
- } = _ref14;
2450
+ exportRTReportForAnnotations: ({
2451
+ annotations
2452
+ }) => {
2492
2453
  RTStructureSet(annotations);
2493
2454
  },
2494
- setFusionPTColormap: _ref15 => {
2495
- let {
2496
- toolGroupId,
2497
- colormap
2498
- } = _ref15;
2455
+ setFusionPTColormap: ({
2456
+ toolGroupId,
2457
+ colormap
2458
+ }) => {
2499
2459
  const toolGroup = toolGroupService.getToolGroup(toolGroupId);
2500
2460
  const {
2501
2461
  viewportMatchDetails
@@ -2639,13 +2599,12 @@ const tmtvExtension = {
2639
2599
  * Only required property. Should be a unique value across all extensions.
2640
2600
  */
2641
2601
  id: id,
2642
- preRegistration(_ref) {
2643
- let {
2644
- servicesManager,
2645
- commandsManager,
2646
- extensionManager,
2647
- configuration = {}
2648
- } = _ref;
2602
+ preRegistration({
2603
+ servicesManager,
2604
+ commandsManager,
2605
+ extensionManager,
2606
+ configuration = {}
2607
+ }) {
2649
2608
  init({
2650
2609
  servicesManager,
2651
2610
  commandsManager,
@@ -2655,12 +2614,11 @@ const tmtvExtension = {
2655
2614
  },
2656
2615
  getPanelModule: src_getPanelModule,
2657
2616
  getHangingProtocolModule: src_getHangingProtocolModule,
2658
- getCommandsModule(_ref2) {
2659
- let {
2660
- servicesManager,
2661
- commandsManager,
2662
- extensionManager
2663
- } = _ref2;
2617
+ getCommandsModule({
2618
+ servicesManager,
2619
+ commandsManager,
2620
+ extensionManager
2621
+ }) {
2664
2622
  return src_commandsModule({
2665
2623
  servicesManager,
2666
2624
  commandsManager,
@@ -2670,13 +2628,6 @@ const tmtvExtension = {
2670
2628
  };
2671
2629
  /* harmony default export */ const tmtv_src = (tmtvExtension);
2672
2630
 
2673
- /***/ }),
2674
-
2675
- /***/ 78753:
2676
- /***/ (() => {
2677
-
2678
- /* (ignored) */
2679
-
2680
2631
  /***/ })
2681
2632
 
2682
2633
  }]);
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- (self["webpackChunk"] = self["webpackChunk"] || []).push([[506],{
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[506],{
3
3
 
4
4
  /***/ 53506:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
@@ -323,12 +323,9 @@ function _getDisplaySetsFromSeries(instances, servicesManager, extensionManager)
323
323
  displaySet.referencedDisplaySetInstanceUID = referencedDisplaySet.displaySetInstanceUID;
324
324
  return referencedDisplaySet;
325
325
  };
326
- displaySet.load = _ref => {
327
- let {
328
- headers
329
- } = _ref;
330
- return _load(displaySet, servicesManager, extensionManager, headers);
331
- };
326
+ displaySet.load = ({
327
+ headers
328
+ }) => _load(displaySet, servicesManager, extensionManager, headers);
332
329
  return [displaySet];
333
330
  }
334
331
  function _load(rtDisplaySet, servicesManager, extensionManager, headers) {
@@ -401,11 +398,10 @@ function _segmentationExistsInCache(rtDisplaySet, segmentationService) {
401
398
  const contour = segmentationService.getContour(rtContourId);
402
399
  return contour !== undefined;
403
400
  }
404
- function getSopClassHandlerModule(_ref2) {
405
- let {
406
- servicesManager,
407
- extensionManager
408
- } = _ref2;
401
+ function getSopClassHandlerModule({
402
+ servicesManager,
403
+ extensionManager
404
+ }) {
409
405
  return [{
410
406
  name: 'dicom-rt',
411
407
  sopClassUids,
@@ -444,12 +440,11 @@ const extension = {
444
440
  * iconName, iconLabel, label, component} object. Example of a panel module
445
441
  * is the StudyBrowserPanel that is provided by the default extension in OHIF.
446
442
  */
447
- getViewportModule(_ref) {
448
- let {
449
- servicesManager,
450
- extensionManager,
451
- commandsManager
452
- } = _ref;
443
+ getViewportModule({
444
+ servicesManager,
445
+ extensionManager,
446
+ commandsManager
447
+ }) {
453
448
  const ExtendedOHIFCornerstoneRTViewport = props => {
454
449
  return /*#__PURE__*/react.createElement(OHIFCornerstoneRTViewport, _extends({
455
450
  servicesManager: servicesManager,
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- (self["webpackChunk"] = self["webpackChunk"] || []).push([[530],{
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[530],{
3
3
 
4
4
  /***/ 44530:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
@@ -551,7 +551,7 @@ __webpack_require__.d(__webpack_exports__, {
551
551
  kJ: () => (/* reexport */ interpret)
552
552
  });
553
553
 
554
- // UNUSED EXPORTS: ActionTypes, Interpreter, SpecialTargets, StateNode, actions, choose, createMachine, createSchema, doneInvoke, forwardTo, log, mapState, matchState, matchesState, pure, raise, send, sendParent, sendTo, sendUpdate, spawn, spawnBehavior, stop, t, toActorRef, toEventObject, toObserver, toSCXMLEvent
554
+ // UNUSED EXPORTS: ActionTypes, Interpreter, SpecialTargets, StateNode, actions, cancel, choose, createMachine, createSchema, doneInvoke, forwardTo, log, mapState, matchState, matchesState, pure, raise, send, sendParent, sendTo, sendUpdate, spawn, spawnBehavior, stop, t, toActorRef, toEventObject, toObserver, toSCXMLEvent
555
555
 
556
556
  ;// CONCATENATED MODULE: ../../../node_modules/xstate/es/_virtual/_tslib.js
557
557
  /*! *****************************************************************************
@@ -3744,7 +3744,13 @@ function () {
3744
3744
 
3745
3745
 
3746
3746
  scheduler.schedule(function () {
3747
- // it feels weird to handle this here but we need to handle this even slightly "out of band"
3747
+ var _a;
3748
+
3749
+ if ((_a = _this._state) === null || _a === void 0 ? void 0 : _a.done) {
3750
+ return;
3751
+ } // it feels weird to handle this here but we need to handle this even slightly "out of band"
3752
+
3753
+
3748
3754
  var _event = toSCXMLEvent({
3749
3755
  type: 'xstate.stop'
3750
3756
  });
@@ -6194,6 +6200,7 @@ var t = (/* unused pure expression or super */ null && (createSchema));
6194
6200
 
6195
6201
 
6196
6202
  var es_assign = actions_assign,
6203
+ es_cancel = (/* unused pure expression or super */ null && (cancel$1)),
6197
6204
  es_send = (/* unused pure expression or super */ null && (send$1)),
6198
6205
  es_sendTo = (/* unused pure expression or super */ null && (sendTo$1)),
6199
6206
  es_sendParent = (/* unused pure expression or super */ null && (sendParent$1)),