@ohif/app 3.8.0-beta.54 → 3.8.0-beta.56

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 (51) hide show
  1. package/dist/{223.bundle.d4ac6ef2cfe47a9c4afc.js → 109.bundle.b4fee2a22b622839baf5.js} +50 -50
  2. package/dist/{471.bundle.eeb78105b59e688832a6.js → 121.bundle.8a4747e7280f7493f07f.js} +18 -18
  3. package/dist/{19.bundle.99b3819a5b7a6bd9394c.js → 155.bundle.c29eb80f89869abce330.js} +89 -89
  4. package/dist/{687.bundle.a6ee04b2e5fd5e5445b6.js → 164.bundle.db387d19f75dd737b9bd.js} +4 -4
  5. package/dist/17dd54813d5acc10bf8f.wasm +0 -0
  6. package/dist/{506.bundle.e243d2ef94ad3925c403.js → 188.bundle.dbe34be7a01e1d2eb815.js} +11 -11
  7. package/dist/{199.bundle.fdd939db52f25dc92071.js → 250.bundle.d0649631d09c928a102b.js} +43 -43
  8. package/dist/{965.bundle.67f3b1a05b5cbe521d62.js → 270.bundle.24c2dca618804cbc5933.js} +56 -56
  9. package/dist/{95.bundle.2236101be3cc36b322e8.js → 290.bundle.f14fb0cfd84a817704b6.js} +149 -35
  10. package/dist/{451.bundle.311cd3be9916e08450e9.js → 295.bundle.195776f4d6400701840b.js} +19 -20
  11. package/dist/{125.bundle.df666cb677e5a8982157.js → 297.bundle.81d63bb0b66d63df6d86.js} +4 -4
  12. package/dist/{613.bundle.9c0ad8fbe2c130862f6c.js → 317.bundle.43b405981747b1da99e1.js} +9 -9
  13. package/dist/{483.bundle.75d178137b66ccdbc9b0.js → 339.bundle.9dd2a6cfee0c8e78e08b.js} +66 -66
  14. package/dist/342.bundle.9cba26ae269724f08311.js +51866 -0
  15. package/dist/39.bundle.40deb7b1a56a61b60064.js +135203 -0
  16. package/dist/{466.bundle.93759a09e651f7b3c995.js → 50.bundle.c3cbd58149efffb8fe8d.js} +49 -49
  17. package/dist/{886.bundle.94a4536167d0f8cae1ae.js → 530.bundle.8784084927e0f61b058d.js} +23 -23
  18. package/dist/{250.bundle.577da106dd763c7bf9d0.js → 544.bundle.1502ae8187957cc5d7a5.js} +23 -23
  19. package/dist/{170.bundle.f343198e07760a7ead7d.js → 559.bundle.27406a40a15f23e9cbe0.js} +63 -63
  20. package/dist/{410.bundle.a348d8825d915c77d550.js → 594.bundle.47486e52801b56aef392.js} +11 -11
  21. package/dist/{661.bundle.949c984fe2f9f753b65c.js → 644.bundle.1e77691d2eeb96a423b0.js} +4 -4
  22. package/dist/{185.bundle.ff56990135b9136734cf.js → 68.bundle.ba70fc52febdf39a8a7a.js} +48 -48
  23. package/dist/{738.bundle.a68b638a4281ede90e1f.js → 704.bundle.99451fa50ffb2168489c.js} +195 -191
  24. package/dist/{359.bundle.ef640f0cee0493868d9d.js → 724.bundle.c7d66fb37bf5e9e3a2ef.js} +11 -11
  25. package/dist/{831.bundle.127a3064e8844d6d2c82.js → 726.bundle.2bdb443d1b5620d74e6e.js} +512 -512
  26. package/dist/{530.bundle.f904325ef4195d69ac0e.js → 835.bundle.4c0eaa2c1a427ee41817.js} +28 -28
  27. package/dist/{822.bundle.8b745e28bc9eb9afbc61.js → 862.bundle.5357c0d8b2fe9971a082.js} +18 -18
  28. package/dist/{181.bundle.aff453c348111303ceac.js → 889.bundle.d8fae421d8bfce626cf6.js} +36 -41
  29. package/dist/{281.bundle.fae344af5b015f837f25.js → 905.bundle.07e293bf89007e53ebfc.js} +9 -9
  30. package/dist/{814.bundle.0ec180d5b229f4e6406f.js → 907.bundle.ded7947e96dd1c71340a.js} +8 -8
  31. package/dist/{417.bundle.5c66801d23d0e98c00e6.js → 931.bundle.d270a1fda9a2836c3cc5.js} +25 -25
  32. package/dist/{686.bundle.62c827fe4f0d054c164e.js → 939.bundle.84ee0b844023d924a22b.js} +4 -4
  33. package/dist/{12.bundle.f8e4685ed24432735e1b.js → 961.bundle.527fd9c4c03417a323b6.js} +8 -8
  34. package/dist/{290.bundle.83733eacedfae557e8cf.js → 963.bundle.5d3306618aebb63887f5.js} +430 -200
  35. package/dist/{app.bundle.e97dc9a2b1087531aa22.js → app.bundle.72246bf7d821f3e37004.js} +184373 -170579
  36. package/dist/app.bundle.css +1 -1
  37. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  38. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  39. package/dist/{dicom-microscopy-viewer.bundle.a7d5060eead13771e784.js → dicom-microscopy-viewer.bundle.d3a56dc9f62df5e11019.js} +3 -3
  40. package/dist/index.html +1 -1
  41. package/dist/polySeg.bundle.63a3d7bee3e0ec0651df.js +249 -0
  42. package/dist/sw.js +1 -1
  43. package/package.json +22 -19
  44. package/dist/202.bundle.495cba6bbee744cf8f72.js +0 -18239
  45. package/dist/23.bundle.9d989522a6e4fdcb9c72.js +0 -900
  46. /package/dist/{19.css → 155.css} +0 -0
  47. /package/dist/{579.css → 481.css} +0 -0
  48. /package/dist/{466.css → 50.css} +0 -0
  49. /package/dist/{250.css → 544.css} +0 -0
  50. /package/dist/{181.css → 889.css} +0 -0
  51. /package/dist/{290.css → 963.css} +0 -0
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[95],{
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[290],{
3
3
 
4
- /***/ 15793:
4
+ /***/ 23722:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
6
 
7
7
 
8
8
  // EXPORTS
9
9
  __webpack_require__.d(__webpack_exports__, {
10
- IU: () => (/* reexport */ esm_cornerstoneStreamingImageVolumeLoader)
10
+ FC: () => (/* reexport */ esm_cornerstoneStreamingImageVolumeLoader)
11
11
  });
12
12
 
13
13
  // UNUSED EXPORTS: Enums, StreamingDynamicImageVolume, StreamingImageVolume, cornerstoneStreamingDynamicImageVolumeLoader, helpers
14
14
 
15
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 376 modules
16
- var esm = __webpack_require__(64225);
17
- // EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/index.js + 10 modules
18
- var gl_matrix_esm = __webpack_require__(45451);
15
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js
16
+ var esm = __webpack_require__(11953);
17
+ // EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/index.js
18
+ var gl_matrix_esm = __webpack_require__(84822);
19
19
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/streaming-image-volume-loader/dist/esm/helpers/getVolumeInfo.js
20
20
 
21
21
 
@@ -87,30 +87,144 @@ const groupBy = (array, key) => {
87
87
  return rv;
88
88
  }, {});
89
89
  };
90
- function splitFramesByFrameReferenceTime(imageIds) {
91
- const framesMetadata = imageIds.map((imageId) => {
92
- const petImageModule = esm.metaData.get('petImageModule', imageId);
93
- const { frameReferenceTime = 0 } = petImageModule ?? {};
94
- return { imageId, frameReferenceTime };
90
+ function getIPPGroups(imageIds) {
91
+ const ippMetadata = imageIds.map((imageId) => {
92
+ const { imagePositionPatient } = esm.metaData.get('imagePlaneModule', imageId);
93
+ return { imageId, imagePositionPatient };
95
94
  });
96
- const framesGroups = groupBy(framesMetadata, 'frameReferenceTime');
97
- const sortedFrameReferenceTimes = Object.keys(framesGroups)
98
- .map(Number.parseFloat)
99
- .sort((a, b) => a - b);
100
- const imageIdsGroups = sortedFrameReferenceTimes.map((key) => framesGroups[key].map((item) => item.imageId));
101
- return imageIdsGroups;
95
+ if (!ippMetadata.every((item) => item.imagePositionPatient)) {
96
+ return null;
97
+ }
98
+ const positionGroups = groupBy(ippMetadata, 'imagePositionPatient');
99
+ const positions = Object.keys(positionGroups);
100
+ const frame_count = positionGroups[positions[0]].length;
101
+ if (frame_count === 1) {
102
+ return null;
103
+ }
104
+ const frame_count_equal = positions.every((k) => positionGroups[k].length === frame_count);
105
+ if (!frame_count_equal) {
106
+ return null;
107
+ }
108
+ return positionGroups;
102
109
  }
103
- function splitImageIdsBy4DTags_splitImageIdsBy4DTags(imageIds) {
104
- const fncList = [splitFramesByFrameReferenceTime];
105
- for (let i = 0; i < fncList.length; i++) {
106
- const framesGroups = fncList[i](imageIds);
107
- if (!framesGroups || framesGroups.length <= 1) {
108
- continue;
110
+ function test4DTag(IPPGroups, value_getter) {
111
+ const frame_groups = {};
112
+ let first_frame_value_set = [];
113
+ const positions = Object.keys(IPPGroups);
114
+ for (let i = 0; i < positions.length; i++) {
115
+ const frame_value_set = new Set();
116
+ const frames = IPPGroups[positions[i]];
117
+ for (let j = 0; j < frames.length; j++) {
118
+ const frame_value = value_getter(frames[j].imageId) || 0;
119
+ frame_groups[frame_value] = frame_groups[frame_value] || [];
120
+ frame_groups[frame_value].push({ imageId: frames[j].imageId });
121
+ frame_value_set.add(frame_value);
122
+ if (frame_value_set.size - 1 < j) {
123
+ return undefined;
124
+ }
125
+ }
126
+ if (i == 0) {
127
+ first_frame_value_set = Array.from(frame_value_set);
128
+ }
129
+ else if (!setEquals(first_frame_value_set, frame_value_set)) {
130
+ return undefined;
131
+ }
132
+ }
133
+ return frame_groups;
134
+ }
135
+ function getTagValue(imageId, tag) {
136
+ const value = esm.metaData.get(tag, imageId);
137
+ try {
138
+ return parseFloat(value);
139
+ }
140
+ catch {
141
+ return undefined;
142
+ }
143
+ }
144
+ function getPhilipsPrivateBValue(imageId) {
145
+ const value = esm.metaData.get('20011003', imageId);
146
+ try {
147
+ const { InlineBinary } = value;
148
+ if (InlineBinary) {
149
+ const value_bytes = atob(InlineBinary);
150
+ const ary_buf = new ArrayBuffer(value_bytes.length);
151
+ const dv = new DataView(ary_buf);
152
+ for (let i = 0; i < value_bytes.length; i++) {
153
+ dv.setUint8(i, value_bytes.charCodeAt(i));
154
+ }
155
+ return new Float32Array(ary_buf)[0];
156
+ }
157
+ return parseFloat(value);
158
+ }
159
+ catch {
160
+ return undefined;
161
+ }
162
+ }
163
+ function getSiemensPrivateBValue(imageId) {
164
+ let value = esm.metaData.get('0019100c', imageId);
165
+ try {
166
+ const { InlineBinary } = value;
167
+ if (InlineBinary) {
168
+ value = atob(InlineBinary);
169
+ }
170
+ return parseFloat(value);
171
+ }
172
+ catch {
173
+ return undefined;
174
+ }
175
+ }
176
+ function getGEPrivateBValue(imageId) {
177
+ let value = esm.metaData.get('00431039', imageId);
178
+ try {
179
+ const { InlineBinary } = value;
180
+ if (InlineBinary) {
181
+ value = atob(InlineBinary).split('//');
182
+ }
183
+ return parseFloat(value[0]) % 100000;
184
+ }
185
+ catch {
186
+ return undefined;
187
+ }
188
+ }
189
+ function setEquals(set_a, set_b) {
190
+ if (set_a.length != set_b.size) {
191
+ return false;
192
+ }
193
+ for (let i = 0; i < set_a.length; i++) {
194
+ if (!set_b.has(set_a[i])) {
195
+ return false;
109
196
  }
110
- const framesPerGroup = framesGroups[0].length;
111
- const groupsHaveSameLength = framesGroups.every((g) => g.length === framesPerGroup);
112
- if (groupsHaveSameLength) {
113
- return framesGroups;
197
+ }
198
+ return true;
199
+ }
200
+ function getPetFrameReferenceTime(imageId) {
201
+ const moduleInfo = esm.metaData.get('petImageModule', imageId);
202
+ return moduleInfo ? moduleInfo['frameReferenceTime'] : 0;
203
+ }
204
+ function splitImageIdsBy4DTags_splitImageIdsBy4DTags(imageIds) {
205
+ const positionGroups = getIPPGroups(imageIds);
206
+ if (!positionGroups) {
207
+ return [imageIds];
208
+ }
209
+ const fncList2 = [
210
+ (imageId) => getTagValue(imageId, 'TemporalPositionIdentifier'),
211
+ (imageId) => getTagValue(imageId, 'DiffusionBValue'),
212
+ (imageId) => getTagValue(imageId, 'TriggerTime'),
213
+ (imageId) => getTagValue(imageId, 'EchoTime'),
214
+ (imageId) => getTagValue(imageId, 'EchoNumber'),
215
+ getPhilipsPrivateBValue,
216
+ getSiemensPrivateBValue,
217
+ getGEPrivateBValue,
218
+ getPetFrameReferenceTime,
219
+ ];
220
+ for (let i = 0; i < fncList2.length; i++) {
221
+ const frame_groups = test4DTag(positionGroups, fncList2[i]);
222
+ if (frame_groups) {
223
+ const sortedKeys = Object.keys(frame_groups)
224
+ .map(Number.parseFloat)
225
+ .sort((a, b) => a - b);
226
+ const imageIdsGroups = sortedKeys.map((key) => frame_groups[key].map((item) => item.imageId));
227
+ return imageIdsGroups;
114
228
  }
115
229
  }
116
230
  return [imageIds];
@@ -188,7 +302,7 @@ const requestTypeDefault = esm.Enums.RequestType.Prefetch;
188
302
  const { ProgressiveIterator } = esm.utilities;
189
303
  const { ImageQualityStatus } = esm.Enums;
190
304
  const { imageRetrieveMetadataProvider } = esm.utilities;
191
- class BaseStreamingImageVolume_BaseStreamingImageVolume extends esm.ImageVolume {
305
+ class BaseStreamingImageVolume extends esm.ImageVolume {
192
306
  constructor(imageVolumeProperties, streamingProperties) {
193
307
  super(imageVolumeProperties);
194
308
  this.framesLoaded = 0;
@@ -657,7 +771,7 @@ function handleArrayBufferLoad(scalarData, image, options) {
657
771
 
658
772
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/streaming-image-volume-loader/dist/esm/StreamingImageVolume.js
659
773
 
660
- class StreamingImageVolume extends BaseStreamingImageVolume_BaseStreamingImageVolume {
774
+ class StreamingImageVolume extends BaseStreamingImageVolume {
661
775
  constructor(imageVolumeProperties, streamingProperties) {
662
776
  if (!imageVolumeProperties.imageIds) {
663
777
  imageVolumeProperties.imageIds = streamingProperties.imageIds;
@@ -754,7 +868,7 @@ var Events;
754
868
  (function (Events) {
755
869
  Events["DYNAMIC_VOLUME_TIME_POINT_INDEX_CHANGED"] = "DYNAMIC_VOLUME_TIME_POINT_INDEX_CHANGED";
756
870
  })(Events || (Events = {}));
757
- /* harmony default export */ const enums_Events = ((/* unused pure expression or super */ null && (Events)));
871
+ /* harmony default export */ const enums_Events = (Events);
758
872
 
759
873
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/streaming-image-volume-loader/dist/esm/enums/index.js
760
874
 
@@ -764,7 +878,7 @@ var Events;
764
878
 
765
879
 
766
880
 
767
- class StreamingDynamicImageVolume_StreamingDynamicImageVolume extends (/* unused pure expression or super */ null && (BaseStreamingImageVolume)) {
881
+ class StreamingDynamicImageVolume_StreamingDynamicImageVolume extends BaseStreamingImageVolume {
768
882
  constructor(imageVolumeProperties, streamingProperties) {
769
883
  StreamingDynamicImageVolume_StreamingDynamicImageVolume._ensureValidData(imageVolumeProperties, streamingProperties);
770
884
  super(imageVolumeProperties, streamingProperties);
@@ -853,7 +967,7 @@ class StreamingDynamicImageVolume_StreamingDynamicImageVolume extends (/* unused
853
967
  this._timePointIndex = newTimePointIndex;
854
968
  imageData.getPointData().setActiveScalars(`timePoint-${newTimePointIndex}`);
855
969
  this.invalidateVolume(true);
856
- triggerEvent(eventTarget, StreamingEvents.DYNAMIC_VOLUME_TIME_POINT_INDEX_CHANGED, {
970
+ (0,esm.triggerEvent)(esm.eventTarget, enums_Events.DYNAMIC_VOLUME_TIME_POINT_INDEX_CHANGED, {
857
971
  volumeId: this.volumeId,
858
972
  timePointIndex: newTimePointIndex,
859
973
  });
@@ -935,11 +1049,11 @@ const helpers = {
935
1049
 
936
1050
  /***/ }),
937
1051
 
938
- /***/ 76010:
1052
+ /***/ 90445:
939
1053
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
940
1054
 
941
1055
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
942
- /* harmony export */ Z: () => (__WEBPACK_DEFAULT_EXPORT__)
1056
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
943
1057
  /* harmony export */ });
944
1058
  /*!
945
1059
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[451],{
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[295],{
3
3
 
4
- /***/ 4451:
4
+ /***/ 58295:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
6
 
7
7
  // ESM COMPAT FLAG
@@ -13,16 +13,16 @@ __webpack_require__.d(__webpack_exports__, {
13
13
  });
14
14
 
15
15
  // EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
16
- var prop_types = __webpack_require__(3827);
16
+ var prop_types = __webpack_require__(11374);
17
17
  var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
18
18
  // EXTERNAL MODULE: ../../../node_modules/react/index.js
19
- var react = __webpack_require__(43001);
19
+ var react = __webpack_require__(41766);
20
20
  // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
21
- var es = __webpack_require__(69190);
22
- // EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
23
- var src = __webpack_require__(71771);
21
+ var es = __webpack_require__(80619);
22
+ // EXTERNAL MODULE: ../../core/src/index.ts + 66 modules
23
+ var src = __webpack_require__(14283);
24
24
  // EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
25
- var ui_src = __webpack_require__(18414);
25
+ var ui_src = __webpack_require__(55395);
26
26
  ;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-seg/src/utils/initSEGToolGroup.ts
27
27
  function createSEGToolGroupAndAddTools(ToolGroupService, customizationService, toolGroupId) {
28
28
  const {
@@ -66,11 +66,11 @@ function _askHydrate(uiViewportDialogService, viewportId) {
66
66
  return new Promise(function (resolve, reject) {
67
67
  const message = 'Do you want to open this Segmentation?';
68
68
  const actions = [{
69
- type: ui_src/* ButtonEnums.type */.LZ.dt.secondary,
69
+ type: ui_src/* ButtonEnums.type */.Ny.NW.secondary,
70
70
  text: 'No',
71
71
  value: RESPONSE.CANCEL
72
72
  }, {
73
- type: ui_src/* ButtonEnums.type */.LZ.dt.primary,
73
+ type: ui_src/* ButtonEnums.type */.Ny.NW.primary,
74
74
  text: 'Yes',
75
75
  value: RESPONSE.HYDRATE_SEG
76
76
  }];
@@ -104,17 +104,17 @@ function _getStatusComponent({
104
104
  let StatusIcon = null;
105
105
  const {
106
106
  t
107
- } = (0,es/* useTranslation */.$G)('Common');
107
+ } = (0,es/* useTranslation */.Bd)('Common');
108
108
  const loadStr = t('LOAD');
109
109
  switch (isHydrated) {
110
110
  case true:
111
- StatusIcon = () => /*#__PURE__*/react.createElement(ui_src/* Icon */.JO, {
111
+ StatusIcon = () => /*#__PURE__*/react.createElement(ui_src/* Icon */.In, {
112
112
  name: "status-alert"
113
113
  });
114
114
  ToolTipMessage = () => /*#__PURE__*/react.createElement("div", null, "This Segmentation is loaded in the segmentation panel");
115
115
  break;
116
116
  case false:
117
- StatusIcon = () => /*#__PURE__*/react.createElement(ui_src/* Icon */.JO, {
117
+ StatusIcon = () => /*#__PURE__*/react.createElement(ui_src/* Icon */.In, {
118
118
  className: "text-aqua-pale",
119
119
  name: "status-untracked"
120
120
  });
@@ -132,7 +132,7 @@ function _getStatusComponent({
132
132
  ,
133
133
  onMouseUp: onStatusClick
134
134
  }, loadStr));
135
- return /*#__PURE__*/react.createElement(react.Fragment, null, ToolTipMessage && /*#__PURE__*/react.createElement(ui_src/* Tooltip */.u, {
135
+ return /*#__PURE__*/react.createElement(react.Fragment, null, ToolTipMessage && /*#__PURE__*/react.createElement(ui_src/* Tooltip */.m_, {
136
136
  content: /*#__PURE__*/react.createElement(ToolTipMessage, null),
137
137
  position: "bottom-left"
138
138
  }, /*#__PURE__*/react.createElement(StatusArea, null)), !ToolTipMessage && /*#__PURE__*/react.createElement(StatusArea, null));
@@ -163,7 +163,7 @@ function OHIFCornerstoneSEGViewport(props) {
163
163
  } = props;
164
164
  const {
165
165
  t
166
- } = (0,es/* useTranslation */.$G)('SEGViewport');
166
+ } = (0,es/* useTranslation */.Bd)('SEGViewport');
167
167
  const viewportId = viewportOptions.viewportId;
168
168
  const {
169
169
  displaySetService,
@@ -179,7 +179,7 @@ function OHIFCornerstoneSEGViewport(props) {
179
179
  throw new Error('SEG viewport should only have a single display set');
180
180
  }
181
181
  const segDisplaySet = displaySets[0];
182
- const [viewportGrid, viewportGridService] = (0,ui_src/* useViewportGrid */.O_)();
182
+ const [viewportGrid, viewportGridService] = (0,ui_src/* useViewportGrid */.ih)();
183
183
 
184
184
  // States
185
185
  const [selectedSegment, setSelectedSegment] = (0,react.useState)(1);
@@ -249,7 +249,6 @@ function OHIFCornerstoneSEGViewport(props) {
249
249
  },
250
250
  onElementEnabled: onElementEnabled,
251
251
  onElementDisabled: onElementDisabled
252
- // initialImageIndex={initialImageIndex}
253
252
  }));
254
253
  }, [viewportId, segDisplaySet, toolGroupId]);
255
254
  const onSegmentChange = (0,react.useCallback)(direction => {
@@ -409,7 +408,7 @@ function OHIFCornerstoneSEGViewport(props) {
409
408
  });
410
409
  setIsHydrated(isHydrated);
411
410
  };
412
- return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(ui_src/* ViewportActionBar */.uY, {
411
+ return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(ui_src/* ViewportActionBar */.cS, {
413
412
  onDoubleClick: evt => {
414
413
  evt.stopPropagation();
415
414
  evt.preventDefault();
@@ -427,7 +426,7 @@ function OHIFCornerstoneSEGViewport(props) {
427
426
  studyDate: formatDate(StudyDate),
428
427
  seriesDescription: `SEG Viewport ${SeriesDescription}`,
429
428
  patientInformation: {
430
- patientName: PatientName ? src["default"].utils.formatPN(PatientName.Alphabetic) : '',
429
+ patientName: PatientName ? src/* default.utils */.Ay.utils.formatPN(PatientName.Alphabetic) : '',
431
430
  patientSex: PatientSex || '',
432
431
  patientAge: PatientAge || '',
433
432
  MRN: PatientID || '',
@@ -439,7 +438,7 @@ function OHIFCornerstoneSEGViewport(props) {
439
438
  }
440
439
  }), /*#__PURE__*/react.createElement("div", {
441
440
  className: "relative flex h-full w-full flex-row overflow-hidden"
442
- }, segIsLoading && /*#__PURE__*/react.createElement(ui_src/* LoadingIndicatorTotalPercent */.bk, {
441
+ }, segIsLoading && /*#__PURE__*/react.createElement(ui_src/* LoadingIndicatorTotalPercent */.pT, {
443
442
  className: "h-full w-full",
444
443
  totalNumbers: processingProgress.totalSegments,
445
444
  percentComplete: processingProgress.percentComplete,
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[125],{
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[297],{
3
3
 
4
- /***/ 39125:
4
+ /***/ 46297:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
6
 
7
7
  __webpack_require__.r(__webpack_exports__);
8
8
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
9
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
10
10
  /* harmony export */ });
11
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43001);
12
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3827);
11
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41766);
12
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11374);
13
13
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
14
14
 
15
15
 
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[613],{
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[317],{
3
3
 
4
- /***/ 32613:
4
+ /***/ 55317:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
6
 
7
7
  // ESM COMPAT FLAG
@@ -12,16 +12,16 @@ __webpack_require__.d(__webpack_exports__, {
12
12
  "default": () => (/* binding */ segmentation_src)
13
13
  });
14
14
 
15
- // EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
16
- var src = __webpack_require__(71771);
15
+ // EXTERNAL MODULE: ../../core/src/index.ts + 66 modules
16
+ var src = __webpack_require__(14283);
17
17
  ;// CONCATENATED MODULE: ../../../modes/segmentation/package.json
18
- const package_namespaceObject = JSON.parse('{"u2":"@ohif/mode-segmentation"}');
18
+ const package_namespaceObject = /*#__PURE__*/JSON.parse('{"UU":"@ohif/mode-segmentation"}');
19
19
  ;// CONCATENATED MODULE: ../../../modes/segmentation/src/id.js
20
20
 
21
- const id = package_namespaceObject.u2;
21
+ const id = package_namespaceObject.UU;
22
22
 
23
23
  // EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
24
- var ui_src = __webpack_require__(18414);
24
+ var ui_src = __webpack_require__(55395);
25
25
  ;// CONCATENATED MODULE: ../../../modes/segmentation/src/toolbarButtons.ts
26
26
 
27
27
 
@@ -123,7 +123,7 @@ const toolbarButtons = [
123
123
  },
124
124
  isAction: true,
125
125
  // ?
126
- renderer: ui_src/* WindowLevelMenuItem */.eJ,
126
+ renderer: ui_src/* WindowLevelMenuItem */.d4,
127
127
  items: [_createWwwcPreset(1, 'Soft tissue', '400 / 40'), _createWwwcPreset(2, 'Lung', '1500 / -600'), _createWwwcPreset(3, 'Liver', '150 / 90'), _createWwwcPreset(4, 'Bone', '2500 / 480'), _createWwwcPreset(5, 'Brain', '80 / 40')]
128
128
  }
129
129
  },
@@ -543,7 +543,7 @@ function modeFactory({
543
543
  /** SopClassHandlers used by the mode */
544
544
  sopClassHandlers: [ohif.sopClassHandler, segmentation.sopClassHandler],
545
545
  /** hotkeys for mode */
546
- hotkeys: [...src/* hotkeys */.dD.defaults.hotkeyBindings]
546
+ hotkeys: [...src/* hotkeys */.ot.defaults.hotkeyBindings]
547
547
  };
548
548
  }
549
549
  const mode = {