@ohif/app 3.14.0-beta.97 → 3.14.0-beta.99

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 (62) hide show
  1. package/dist/{1645.bundle.a98b9ca6.js → 1645.bundle.1a466b16.js} +600 -600
  2. package/dist/{1788.bundle.3f1349d2.js → 1788.bundle.962951f9.js} +26 -26
  3. package/dist/{1793.bundle.27458a55.js → 1793.bundle.30f89e46.js} +5 -3
  4. package/dist/{1862.bundle.79bfe469.js → 1862.bundle.3ae388c3.js} +2 -2
  5. package/dist/204.bundle.bc44c201.js +101 -0
  6. package/dist/204.bundle.css +52 -0
  7. package/dist/{2748.bundle.eaa94e2e.js → 2103.bundle.1cf348e8.js} +1 -1771
  8. package/dist/{2478.bundle.fc6ab30b.js → 2478.bundle.68ff1b2d.js} +2 -2
  9. package/dist/{2717.bundle.d5f58443.js → 2717.bundle.4318f1ee.js} +45 -43
  10. package/dist/{5989.bundle.f484884a.js → 287.bundle.ee60c370.js} +4570 -832
  11. package/dist/{2894.bundle.d612efb2.js → 2894.bundle.30c0af5b.js} +20 -14
  12. package/dist/{2991.bundle.f94892fb.js → 2991.bundle.77642eee.js} +101 -97
  13. package/dist/{3004.bundle.51919fdc.js → 3004.bundle.5568149a.js} +39 -38
  14. package/dist/{3255.bundle.13e205ac.js → 3255.bundle.3272671f.js} +29 -27
  15. package/dist/{3366.bundle.62baeeec.js → 3366.bundle.d9e78e25.js} +57 -53
  16. package/dist/{3468.bundle.f5dc5e44.js → 3468.bundle.666f2441.js} +37 -27
  17. package/dist/{347.bundle.397bb252.js → 347.bundle.1323658e.js} +44 -44
  18. package/dist/{3622.bundle.f4cf2d16.js → 3622.bundle.edb42b96.js} +56 -54
  19. package/dist/{3723.bundle.eab70100.js → 3723.bundle.43ff1971.js} +1 -1
  20. package/dist/{3771.bundle.aba09bd7.js → 3771.bundle.a5754f97.js} +8 -8
  21. package/dist/{4449.bundle.aaa4ab92.js → 4487.bundle.fa0375a4.js} +853 -95
  22. package/dist/{4606.bundle.a3485206.js → 4606.bundle.6c297e2a.js} +9 -7
  23. package/dist/{4998.bundle.3aedb48d.js → 4998.bundle.25b8cbfe.js} +5 -3
  24. package/dist/{5076.bundle.95c07142.js → 5076.bundle.2a14756f.js} +66 -66
  25. package/dist/{5143.bundle.04f54c00.js → 5143.bundle.53156bb0.js} +358 -226
  26. package/dist/{5154.bundle.2f460017.js → 5154.bundle.ccd02dd7.js} +5 -3
  27. package/dist/{5320.bundle.9b05cebb.js → 5320.bundle.c17eb4a7.js} +678 -546
  28. package/dist/{6212.bundle.e505e123.js → 6212.bundle.c4856be7.js} +48 -46
  29. package/dist/{6253.bundle.9b473339.js → 6253.bundle.596ce463.js} +1225 -1145
  30. package/dist/{1153.bundle.51d39e80.js → 6314.bundle.5aadfe48.js} +199 -420
  31. package/dist/{641.bundle.4627a8e1.js → 641.bundle.8e45751e.js} +89 -89
  32. package/dist/{6481.bundle.d2fca485.js → 6481.bundle.85093e70.js} +29 -23
  33. package/dist/{6507.bundle.d52f5e81.js → 6507.bundle.bbcdd01e.js} +76 -76
  34. package/dist/{6722.bundle.d09a8aad.js → 6722.bundle.3e9a4ef6.js} +4 -4
  35. package/dist/{6956.bundle.c82fd790.js → 6956.bundle.dc0e8660.js} +33 -33
  36. package/dist/{7526.bundle.0685dfeb.js → 7526.bundle.3460c3ca.js} +55 -53
  37. package/dist/{7604.bundle.9eb317c8.js → 7604.bundle.f1eeded4.js} +2 -2
  38. package/dist/{8312.bundle.2cb75b58.js → 8312.bundle.d67b6f4e.js} +652 -687
  39. package/dist/{6847.bundle.b2adb444.js → 8729.bundle.e17fe9b2.js} +87 -845
  40. package/dist/{8788.bundle.4bb4c65b.js → 8788.bundle.83ddf642.js} +21 -20
  41. package/dist/{8868.bundle.4c357767.js → 8868.bundle.8f3653b3.js} +31 -31
  42. package/dist/{8923.bundle.9aca06c4.js → 8923.bundle.8b682e96.js} +148 -148
  43. package/dist/{899.bundle.9a033d16.js → 899.bundle.4e1aee7f.js} +73 -203
  44. package/dist/{9187.bundle.8f72b4fe.js → 9187.bundle.407afa07.js} +112 -110
  45. package/dist/9385.bundle.fb0bbf4a.js +1888 -0
  46. package/dist/{9481.bundle.ccb81f53.js → 9481.bundle.d045ae3a.js} +8 -6
  47. package/dist/{9517.bundle.1ae74db3.js → 9517.bundle.3e2896ef.js} +31 -17
  48. package/dist/{9620.bundle.d1dc0be1.js → 9620.bundle.b4cc392c.js} +63 -61
  49. package/dist/{9841.bundle.0f40f02b.js → 9841.bundle.4f2c401a.js} +93 -91
  50. package/dist/{9886.bundle.cabb4a24.js → 9886.bundle.b00d5d78.js} +4 -4
  51. package/dist/{8037.bundle.30a187f7.js → 9889.bundle.bf312047.js} +7743 -1098
  52. package/dist/{9948.bundle.1172ebca.js → 9948.bundle.fecf81f8.js} +5 -5
  53. package/dist/{app.bundle.12bfd0b7.js → app.bundle.bb359653.js} +1953 -1245
  54. package/dist/{compute.bundle.0ed1fe87.js → compute.bundle.9267d449.js} +13 -12
  55. package/dist/{histogram-worker.bundle.58e60d7c.js → histogram-worker.bundle.29bcdbf6.js} +6 -5
  56. package/dist/index.html +1 -1
  57. package/dist/{interpolation.bundle.5a53d112.js → interpolation.bundle.ee9998a4.js} +8 -7
  58. package/dist/{lib-router.bundle.a5ac870a.js → lib-router.bundle.2a887bc7.js} +334 -201
  59. package/dist/{polySeg.bundle.b4089601.js → polySeg.bundle.a55f8eee.js} +12 -12
  60. package/dist/sw.js +11 -1
  61. package/package.json +14 -19
  62. package/dist/1566.bundle.d58db206.js +0 -3610
@@ -31,17 +31,17 @@ const CodingSchemeDesignators = {
31
31
  'CST4'
32
32
  ]
33
33
  };
34
- const RelationshipType = (/* unused pure expression or super */ null && ({
34
+ const RelationshipType = {
35
35
  INFERRED_FROM: 'INFERRED FROM',
36
36
  CONTAINS: 'CONTAINS'
37
- }));
38
- const enums = (/* unused pure expression or super */ null && ({
37
+ };
38
+ const enums = {
39
39
  CodeNameCodeSequenceValues,
40
40
  CodingSchemeDesignators,
41
41
  RelationshipType,
42
42
  SCOORDTypes
43
- }));
44
- /* unused export default */ var __rspack_default_export = ((/* unused pure expression or super */ null && (enums)));
43
+ };
44
+ /* export default */ __webpack_exports__.Ay = (enums);
45
45
 
46
46
  __webpack_require__.d(__webpack_exports__, {
47
47
  }, {
@@ -53,15 +53,19 @@ __webpack_require__.d(__webpack_exports__, {
53
53
 
54
54
  },
55
55
  4293(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
56
+ // ESM COMPAT FLAG
57
+ __webpack_require__.r(__webpack_exports__);
56
58
 
57
59
  // EXPORTS
58
60
  __webpack_require__.d(__webpack_exports__, {
61
+ Enums: () => (/* reexport */ enums/* ["default"] */.Ay),
62
+ createReferencedImageDisplaySet: () => (/* reexport */ createReferencedImageDisplaySet/* ["default"] */.A),
59
63
  "default": () => (/* binding */ cornerstone_dicom_sr_src),
60
- $F: () => (/* reexport */ hydrateStructuredReport)
64
+ hydrateStructuredReport: () => (/* reexport */ hydrateStructuredReport),
65
+ srProtocol: () => (/* reexport */ srProtocol),
66
+ toolNames: () => (/* reexport */ tools_toolNames)
61
67
  });
62
68
 
63
- // UNUSED EXPORTS: Enums, createReferencedImageDisplaySet, srProtocol, toolNames
64
-
65
69
  // EXTERNAL MODULE: ../../node_modules/react/jsx-runtime.js
66
70
  var jsx_runtime = __webpack_require__(31085);
67
71
  // EXTERNAL MODULE: ../../node_modules/react/compiler-runtime.js
@@ -140,20 +144,20 @@ function getRenderableData({ GraphicType, GraphicData, ValueType, imageId }) {
140
144
  // here we reshape the data for that purpose.
141
145
  const center = pointsWorld[0];
142
146
  const onPerimeter = pointsWorld[1];
143
- const radius = gl_matrix_esm/* .vec3.distance */.eR.Io(center, onPerimeter);
147
+ const radius = gl_matrix_esm.vec3.distance(center, onPerimeter);
144
148
  const imagePlaneModule = core_dist_esm.metaData.get('imagePlaneModule', imageId);
145
149
  if (!imagePlaneModule) {
146
150
  throw new Error('No imagePlaneModule found');
147
151
  }
148
152
  const { columnCosines, rowCosines } = imagePlaneModule; // we need to get major/minor axis (which are both the same size major = minor)
149
- const firstAxisStart = gl_matrix_esm/* .vec3.create */.eR.vt();
150
- gl_matrix_esm/* .vec3.scaleAndAdd */.eR.Ln(firstAxisStart, center, columnCosines, radius);
151
- const firstAxisEnd = gl_matrix_esm/* .vec3.create */.eR.vt();
152
- gl_matrix_esm/* .vec3.scaleAndAdd */.eR.Ln(firstAxisEnd, center, columnCosines, -radius);
153
- const secondAxisStart = gl_matrix_esm/* .vec3.create */.eR.vt();
154
- gl_matrix_esm/* .vec3.scaleAndAdd */.eR.Ln(secondAxisStart, center, rowCosines, radius);
155
- const secondAxisEnd = gl_matrix_esm/* .vec3.create */.eR.vt();
156
- gl_matrix_esm/* .vec3.scaleAndAdd */.eR.Ln(secondAxisEnd, center, rowCosines, -radius);
153
+ const firstAxisStart = gl_matrix_esm.vec3.create();
154
+ gl_matrix_esm.vec3.scaleAndAdd(firstAxisStart, center, columnCosines, radius);
155
+ const firstAxisEnd = gl_matrix_esm.vec3.create();
156
+ gl_matrix_esm.vec3.scaleAndAdd(firstAxisEnd, center, columnCosines, -radius);
157
+ const secondAxisStart = gl_matrix_esm.vec3.create();
158
+ gl_matrix_esm.vec3.scaleAndAdd(secondAxisStart, center, rowCosines, radius);
159
+ const secondAxisEnd = gl_matrix_esm.vec3.create();
160
+ gl_matrix_esm.vec3.scaleAndAdd(secondAxisEnd, center, rowCosines, -radius);
157
161
  renderableData = [
158
162
  firstAxisStart,
159
163
  firstAxisEnd,
@@ -177,24 +181,24 @@ function getRenderableData({ GraphicType, GraphicData, ValueType, imageId }) {
177
181
  // just fine when we skip them. At least for SCOORD3D annotations.
178
182
  return pointsWorld;
179
183
  }
180
- const majorAxisStart = gl_matrix_esm/* .vec3.fromValues */.eR.fA(...pointsWorld[0]);
181
- const majorAxisEnd = gl_matrix_esm/* .vec3.fromValues */.eR.fA(...pointsWorld[1]);
182
- const minorAxisStart = gl_matrix_esm/* .vec3.fromValues */.eR.fA(...pointsWorld[2]);
183
- const minorAxisEnd = gl_matrix_esm/* .vec3.fromValues */.eR.fA(...pointsWorld[3]);
184
- const majorAxisVec = gl_matrix_esm/* .vec3.create */.eR.vt();
185
- gl_matrix_esm/* .vec3.sub */.eR.jb(majorAxisVec, majorAxisEnd, majorAxisStart); // normalize majorAxisVec to avoid scaling issues
186
- gl_matrix_esm/* .vec3.normalize */.eR.S8(majorAxisVec, majorAxisVec);
187
- const minorAxisVec = gl_matrix_esm/* .vec3.create */.eR.vt();
188
- gl_matrix_esm/* .vec3.sub */.eR.jb(minorAxisVec, minorAxisEnd, minorAxisStart);
189
- gl_matrix_esm/* .vec3.normalize */.eR.S8(minorAxisVec, minorAxisVec);
184
+ const majorAxisStart = gl_matrix_esm.vec3.fromValues(...pointsWorld[0]);
185
+ const majorAxisEnd = gl_matrix_esm.vec3.fromValues(...pointsWorld[1]);
186
+ const minorAxisStart = gl_matrix_esm.vec3.fromValues(...pointsWorld[2]);
187
+ const minorAxisEnd = gl_matrix_esm.vec3.fromValues(...pointsWorld[3]);
188
+ const majorAxisVec = gl_matrix_esm.vec3.create();
189
+ gl_matrix_esm.vec3.sub(majorAxisVec, majorAxisEnd, majorAxisStart); // normalize majorAxisVec to avoid scaling issues
190
+ gl_matrix_esm.vec3.normalize(majorAxisVec, majorAxisVec);
191
+ const minorAxisVec = gl_matrix_esm.vec3.create();
192
+ gl_matrix_esm.vec3.sub(minorAxisVec, minorAxisEnd, minorAxisStart);
193
+ gl_matrix_esm.vec3.normalize(minorAxisVec, minorAxisVec);
190
194
  const imagePlaneModule = core_dist_esm.metaData.get('imagePlaneModule', imageId);
191
195
  if (!imagePlaneModule) {
192
196
  throw new Error('imageId does not have imagePlaneModule metadata');
193
197
  }
194
198
  const { columnCosines } = imagePlaneModule; // find which axis is parallel to the columnCosines
195
- const columnCosinesVec = gl_matrix_esm/* .vec3.fromValues */.eR.fA(...columnCosines);
196
- const projectedMajorAxisOnColVec = Math.abs(gl_matrix_esm/* .vec3.dot */.eR.Om(columnCosinesVec, majorAxisVec));
197
- const projectedMinorAxisOnColVec = Math.abs(gl_matrix_esm/* .vec3.dot */.eR.Om(columnCosinesVec, minorAxisVec));
199
+ const columnCosinesVec = gl_matrix_esm.vec3.fromValues(...columnCosines);
200
+ const projectedMajorAxisOnColVec = Math.abs(gl_matrix_esm.vec3.dot(columnCosinesVec, majorAxisVec));
201
+ const projectedMinorAxisOnColVec = Math.abs(gl_matrix_esm.vec3.dot(columnCosinesVec, minorAxisVec));
198
202
  const absoluteOfMajorDotProduct = Math.abs(projectedMajorAxisOnColVec);
199
203
  const absoluteOfMinorDotProduct = Math.abs(projectedMinorAxisOnColVec);
200
204
  renderableData = [];
@@ -428,9 +432,9 @@ const SOPClassHandlerId3D = `${id}.sopClassHandlerModule.${SOPClassHandlerName3D
428
432
 
429
433
 
430
434
 
431
- const { sopClassDictionary } = src/* .utils */.Wp;
432
- const { CORNERSTONE_3D_TOOLS_SOURCE_NAME, CORNERSTONE_3D_TOOLS_SOURCE_VERSION } = cornerstone_src/* .Enums */.fX;
433
- const { MetadataProvider: metadataProvider } = src/* .classes */.Ly;
435
+ const { sopClassDictionary } = src.utils;
436
+ const { CORNERSTONE_3D_TOOLS_SOURCE_NAME, CORNERSTONE_3D_TOOLS_SOURCE_VERSION } = cornerstone_src.Enums;
437
+ const { MetadataProvider: metadataProvider } = src.classes;
434
438
  const { TEXT_ANNOTATION_POSITION, COMMENT_CODE, CodeScheme: Cornerstone3DCodeScheme } = esm/* .adaptersSR.Cornerstone3D */.QX.Cornerstone3D; /**
435
439
  * TODO
436
440
  * - [ ] Add SR thumbnail
@@ -460,7 +464,7 @@ const validateSameStudyUID = (uid, instances)=>{
460
464
  */
461
465
  function addInstances(instances, _displaySetService) {
462
466
  this.instances.push(...instances);
463
- src/* .utils.sortStudyInstances */.Wp.sortStudyInstances(this.instances); // The last instance is the newest one, so is the one most interesting.
467
+ src.utils.sortStudyInstances(this.instances); // The last instance is the newest one, so is the one most interesting.
464
468
  // Eventually, the SR viewer should have the ability to choose which SR
465
469
  // gets loaded, and to navigate among them.
466
470
  this.instance = this.instances[this.instances.length - 1]; // The date/time of the display set is that of the instance it shows, so it
@@ -468,7 +472,7 @@ function addInstances(instances, _displaySetService) {
468
472
  // still hold those of the first report saved into the series, so leaving
469
473
  // them would show, and summarize by, a date older than the report shown and
470
474
  // older than the position the series list has just sorted this one into.
471
- const { SeriesDate, SeriesTime } = src/* .utils.getLatestInstanceDateTime */.Wp.getLatestInstanceDateTime(this.instance);
475
+ const { SeriesDate, SeriesTime } = src.utils.getLatestInstanceDateTime(this.instance);
472
476
  this.SeriesDate = SeriesDate;
473
477
  this.SeriesTime = SeriesTime;
474
478
  this.isLoaded = false;
@@ -487,7 +491,7 @@ function _getDisplaySetsFromSeries(instances, servicesManager, extensionManager)
487
491
  throw new Error('No instances were provided');
488
492
  }
489
493
  const displaySet = {
490
- displaySetInstanceUID: src/* .utils.guid */.Wp.guid(),
494
+ displaySetInstanceUID: src.utils.guid(),
491
495
  instances
492
496
  };
493
497
  _extendDisplaySet(displaySet, {
@@ -504,7 +508,7 @@ function _getDisplaySetsFromSeries(instances, servicesManager, extensionManager)
504
508
  */
505
509
  function _extendDisplaySet(displaySet, { servicesManager, extensionManager }) {
506
510
  const { instances } = displaySet;
507
- src/* .utils.sortStudyInstances */.Wp.sortStudyInstances(instances); // The last instance is the newest one, so is the one most interesting.
511
+ src.utils.sortStudyInstances(instances); // The last instance is the newest one, so is the one most interesting.
508
512
  // Eventually, the SR viewer should have the ability to choose which SR
509
513
  // gets loaded, and to navigate among them.
510
514
  const instance = instances[instances.length - 1];
@@ -512,7 +516,7 @@ function _extendDisplaySet(displaySet, { servicesManager, extensionManager }) {
512
516
  validateSameStudyUID(instance.StudyInstanceUID, instances); // The date/time of the display set is that of the instance it shows. A
513
517
  // report saved into an existing series keeps the original SeriesDate, so only
514
518
  // the instance level content date/time places it as the newest one.
515
- const { SeriesDate, SeriesTime } = src/* .utils.getLatestInstanceDateTime */.Wp.getLatestInstanceDateTime(instance);
519
+ const { SeriesDate, SeriesTime } = src.utils.getLatestInstanceDateTime(instance);
516
520
  const is3DSR = SOPClassUID === sopClassDictionary.Comprehensive3DSR;
517
521
  const conceptIsImagingMeasurementReport = ConceptNameCodeSequence?.CodeValue === enums/* .CodeNameCodeSequenceValues.ImagingMeasurementReport */.n7.ImagingMeasurementReport; // A report flagged as an Imaging Measurement Report but stored without its
518
522
  // report body (no ContentSequence / (0040,A730)) cannot be parsed or rendered
@@ -522,9 +526,9 @@ function _extendDisplaySet(displaySet, { servicesManager, extensionManager }) {
522
526
  const hasReportContent = !!instance.ContentSequence;
523
527
  const isImagingMeasurementReport = conceptIsImagingMeasurementReport && hasReportContent; // Surface the empty report through the standard display set message list, so
524
528
  // it is reported in the display set tray like any other display set problem.
525
- const messages = new src/* .DisplaySetMessageList */.WZ();
529
+ const messages = new src.DisplaySetMessageList();
526
530
  if (!hasReportContent) {
527
- messages.addMessage(src/* .DisplaySetMessage.CODES.MISSING_REPORT_CONTENT */.Ob.CODES.MISSING_REPORT_CONTENT);
531
+ messages.addMessage(src.DisplaySetMessage.CODES.MISSING_REPORT_CONTENT);
528
532
  }
529
533
  Object.assign(displaySet, {
530
534
  Modality: 'SR',
@@ -547,7 +551,7 @@ function _extendDisplaySet(displaySet, { servicesManager, extensionManager }) {
547
551
  instance,
548
552
  predecessorImageId,
549
553
  addInstances,
550
- label: SeriesDescription || `${i18n_src/* ["default"].t */.A.t('Series')} ${SeriesNumber} - ${i18n_src/* ["default"].t */.A.t('SR')}`
554
+ label: SeriesDescription || `${i18n_src["default"].t('Series')} ${SeriesNumber} - ${i18n_src["default"].t('SR')}`
551
555
  });
552
556
  displaySet.load = ()=>_load(displaySet, servicesManager, extensionManager);
553
557
  } /**
@@ -600,7 +604,7 @@ async function _load(srDisplaySet, servicesManager, extensionManager) {
600
604
  srDisplaySet.isLoaded = true; /** Check currently added displaySets and add measurements if the sources exist.
601
605
  * Walk the SR's study first in default series order (not load order) so SCOORD3D
602
606
  * FrameOfReference matching picks a stable series when several share FOR. */
603
- const displaySetsForSRPass = src/* .utils.sortDisplaySetsCopy */.Wp.sortDisplaySetsCopy(displaySetService.activeDisplaySets, {
607
+ const displaySetsForSRPass = src.utils.sortDisplaySetsCopy(displaySetService.activeDisplaySets, {
604
608
  studyInstanceUIDFirst: srDisplaySet.StudyInstanceUID
605
609
  });
606
610
  displaySetsForSRPass.forEach((activeDisplaySet)=>{
@@ -1224,7 +1228,7 @@ function generateReport(measurementData, additionalFindingTypes, options = {}) {
1224
1228
  const filteredToolState = utils_getFilteredCornerstoneToolState(measurementData, additionalFindingTypes);
1225
1229
  const report = generateReport_MeasurementReport.generateReport(filteredToolState, core_dist_esm.metaData, {
1226
1230
  ...options,
1227
- ...src/* .utils.getOhifWriterHeader */.Wp.getOhifWriterHeader('@cornerstonejs/adapters', 'CS3D', (/* inlined export .version */"5.18.3"), options)
1231
+ ...src.utils.getOhifWriterHeader('@cornerstonejs/adapters', 'CS3D', (/* inlined export .version */"5.18.3"), options)
1228
1232
  });
1229
1233
  const { dataset } = report; // Set the default character set as UTF-8
1230
1234
  // https://dicom.innolitics.com/ciods/nm-image/sop-common/00080005
@@ -1267,9 +1271,9 @@ function getLabelFromDCMJSImportedToolData(toolData) {
1267
1271
 
1268
1272
 
1269
1273
  const { locking } = dist_esm.annotation;
1270
- const { guid } = src/* ["default"].utils */.Ay.utils;
1274
+ const { guid } = src["default"].utils;
1271
1275
  const { MeasurementReport: hydrateStructuredReport_MeasurementReport } = esm/* .adaptersSR.Cornerstone3D */.QX.Cornerstone3D;
1272
- const { CORNERSTONE_3D_TOOLS_SOURCE_NAME: hydrateStructuredReport_CORNERSTONE_3D_TOOLS_SOURCE_NAME, CORNERSTONE_3D_TOOLS_SOURCE_VERSION: hydrateStructuredReport_CORNERSTONE_3D_TOOLS_SOURCE_VERSION } = cornerstone_src/* .Enums */.fX;
1276
+ const { CORNERSTONE_3D_TOOLS_SOURCE_NAME: hydrateStructuredReport_CORNERSTONE_3D_TOOLS_SOURCE_NAME, CORNERSTONE_3D_TOOLS_SOURCE_VERSION: hydrateStructuredReport_CORNERSTONE_3D_TOOLS_SOURCE_VERSION } = cornerstone_src.Enums;
1273
1277
  const convertCode = (codingValues, code)=>{
1274
1278
  if (!code || code.CodingSchemeDesignator === 'CORNERSTONEJS') {
1275
1279
  return;
@@ -1312,7 +1316,7 @@ function hydrateStructuredReport({ servicesManager, extensionManager, commandsMa
1312
1316
  if (!mappings || !mappings.length) {
1313
1317
  throw new Error(`Attempting to hydrate measurements service when no mappings present. This shouldn't be reached.`);
1314
1318
  }
1315
- const instance = src/* .DicomMetadataStore.getInstance */.H8.getInstance(studyUID, seriesUID, sopUID);
1319
+ const instance = src.DicomMetadataStore.getInstance(studyUID, seriesUID, sopUID);
1316
1320
  const sopInstanceUIDToImageId = {};
1317
1321
  displaySet.measurements.forEach((measurement)=>{
1318
1322
  const { ReferencedSOPInstanceUID, imageId, frameNumber = 1 } = measurement;
@@ -1490,7 +1494,7 @@ function chooseDisplaySet(displaySets, reference) {
1490
1494
  console.warn('No display set found for', reference);
1491
1495
  return;
1492
1496
  }
1493
- const sortedDisplaySets = src/* ["default"].utils.sortDisplaySetsCopy */.Ay.utils.sortDisplaySetsCopy(displaySets);
1497
+ const sortedDisplaySets = src["default"].utils.sortDisplaySetsCopy(displaySets);
1494
1498
  if (sortedDisplaySets.length === 1) {
1495
1499
  return sortedDisplaySets[0];
1496
1500
  }
@@ -1552,9 +1556,9 @@ function chooseCameraView(_ds, points) {
1552
1556
  }
1553
1557
  function centerOf(points) {
1554
1558
  const scale = 1 / points.length;
1555
- const center = gl_matrix_esm/* .vec3.create */.eR.vt();
1559
+ const center = gl_matrix_esm.vec3.create();
1556
1560
  for (const point of points){
1557
- gl_matrix_esm/* .vec3.scaleAndAdd */.eR.Ln(center, center, point, scale);
1561
+ gl_matrix_esm.vec3.scaleAndAdd(center, center, point, scale);
1558
1562
  }
1559
1563
  return center;
1560
1564
  }
@@ -1577,7 +1581,7 @@ function choosePoints(points) {
1577
1581
 
1578
1582
 
1579
1583
 
1580
- const { log } = src/* ["default"] */.Ay;
1584
+ const { log } = src["default"];
1581
1585
  const commandsModule = (props)=>{
1582
1586
  const { servicesManager, extensionManager, commandsManager } = props;
1583
1587
  const { customizationService } = servicesManager.services;
@@ -1623,7 +1627,7 @@ const commandsModule = (props)=>{
1623
1627
  // date/time in its own zone instead. A report added to an existing
1624
1628
  // series takes that series' date and time, which the adapter copies
1625
1629
  // from the predecessor instance.
1626
- const { date, time } = src/* .utils.getCurrentDicomDateTime */.Wp.getCurrentDicomDateTime();
1630
+ const { date, time } = src.utils.getCurrentDicomDateTime();
1627
1631
  const naturalizedReport = generateReport(measurementData, additionalFindingTypes, {
1628
1632
  ...options.predecessorImageId ? {} : {
1629
1633
  SeriesDate: date,
@@ -1634,7 +1638,7 @@ const commandsModule = (props)=>{
1634
1638
  // time, and its instance number is derived from the one predecessor
1635
1639
  // instance, which is not necessarily the highest in the series. Stamp
1636
1640
  // both so this report is identifiable as the most recent instance.
1637
- src/* .utils.updateNewInstanceMetadata */.Wp.updateNewInstanceMetadata(naturalizedReport);
1641
+ src.utils.updateNewInstanceMetadata(naturalizedReport);
1638
1642
  const { ContentSequence } = naturalizedReport; // The content sequence has 5 or more elements, of which
1639
1643
  // the `[4]` element contains the annotation data, so this is
1640
1644
  // checking that there is some annotation data present.
@@ -2291,7 +2295,7 @@ __webpack_require__.d(__webpack_exports__, {
2291
2295
  97226(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
2292
2296
  /* import */ var _ohif_core__rspack_import_0 = __webpack_require__(34142);
2293
2297
 
2294
- const ImageSet = _ohif_core__rspack_import_0/* .classes.ImageSet */.Ly.ImageSet;
2298
+ const ImageSet = _ohif_core__rspack_import_0.classes.ImageSet;
2295
2299
  const findInstance = (measurement, displaySetService)=>{
2296
2300
  const { displaySetInstanceUID, ReferencedSOPInstanceUID: sopUid } = measurement;
2297
2301
  const referencedDisplaySet = displaySetService.getDisplaySetByUID(displaySetInstanceUID);
@@ -1,14 +1,24 @@
1
1
  "use strict";
2
2
  (globalThis["rspackChunk_ohif_app"] ||= []).push([[3468], {
3
3
  71039(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
4
+ // ESM COMPAT FLAG
5
+ __webpack_require__.r(__webpack_exports__);
4
6
 
5
7
  // EXPORTS
6
8
  __webpack_require__.d(__webpack_exports__, {
7
- "default": () => (/* binding */ modes_tmtv_src)
9
+ cs3d: () => (/* binding */ cs3d),
10
+ customizations: () => (/* binding */ customizations),
11
+ "default": () => (/* binding */ modes_tmtv_src),
12
+ extensionDependencies: () => (/* binding */ extensionDependencies),
13
+ initToolGroups: () => (/* reexport */ src_initToolGroups),
14
+ modeInstance: () => (/* binding */ modeInstance),
15
+ ohif: () => (/* binding */ ohif),
16
+ onModeEnter: () => (/* binding */ onModeEnter),
17
+ tmtv: () => (/* binding */ tmtv),
18
+ tmtvLayout: () => (/* binding */ tmtvLayout),
19
+ tmtvRoute: () => (/* binding */ tmtvRoute)
8
20
  });
9
21
 
10
- // UNUSED EXPORTS: cs3d, customizations, extensionDependencies, initToolGroups, modeInstance, ohif, onModeEnter, tmtv, tmtvLayout, tmtvRoute
11
-
12
22
  // EXTERNAL MODULE: ../core/src/index.ts + 76 modules
13
23
  var src = __webpack_require__(34142);
14
24
  // EXTERNAL MODULE: ../../modes/basic/src/index.tsx + 4 modules
@@ -216,8 +226,8 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
216
226
  }
217
227
  ]
218
228
  };
219
- toolGroupService.createToolGroupAndAddTools(tmtv_src/* .toolGroupIds.CT */.i.CT, tools);
220
- toolGroupService.createToolGroupAndAddTools(tmtv_src/* .toolGroupIds.PT */.i.PT, {
229
+ toolGroupService.createToolGroupAndAddTools(tmtv_src.toolGroupIds.CT, tools);
230
+ toolGroupService.createToolGroupAndAddTools(tmtv_src.toolGroupIds.PT, {
221
231
  active: tools.active,
222
232
  passive: [
223
233
  ...tools.passive,
@@ -228,8 +238,8 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
228
238
  enabled: tools.enabled,
229
239
  disabled: tools.disabled
230
240
  });
231
- toolGroupService.createToolGroupAndAddTools(tmtv_src/* .toolGroupIds.Fusion */.i.Fusion, tools);
232
- toolGroupService.createToolGroupAndAddTools(tmtv_src/* .toolGroupIds["default"] */.i["default"], tools);
241
+ toolGroupService.createToolGroupAndAddTools(tmtv_src.toolGroupIds.Fusion, tools);
242
+ toolGroupService.createToolGroupAndAddTools(tmtv_src.toolGroupIds["default"], tools);
233
243
  const mipTools = {
234
244
  active: [
235
245
  {
@@ -246,7 +256,7 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
246
256
  {
247
257
  toolName: toolNames.MipJumpToClick,
248
258
  configuration: {
249
- toolGroupId: tmtv_src/* .toolGroupIds.PT */.i.PT
259
+ toolGroupId: tmtv_src.toolGroupIds.PT
250
260
  },
251
261
  bindings: [
252
262
  {
@@ -266,7 +276,7 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
266
276
  }
267
277
  ]
268
278
  };
269
- toolGroupService.createToolGroupAndAddTools(tmtv_src/* .toolGroupIds.MIP */.i.MIP, mipTools);
279
+ toolGroupService.createToolGroupAndAddTools(tmtv_src.toolGroupIds.MIP, mipTools);
270
280
  } /**
271
281
  * Mode tool group setup, sharing the options-object signature used by all
272
282
  * modes so implementations are interchangeable via the `initToolGroups` mode
@@ -288,14 +298,14 @@ function setCrosshairsConfiguration(matches, toolNames, toolGroupService, displa
288
298
  }
289
299
  const { SeriesInstanceUID } = matchDetails;
290
300
  const displaySets = displaySetService.getDisplaySetsForSeries(SeriesInstanceUID);
291
- const toolConfig = toolGroupService.getToolConfiguration(tmtv_src/* .toolGroupIds.Fusion */.i.Fusion, toolNames.Crosshairs);
301
+ const toolConfig = toolGroupService.getToolConfiguration(tmtv_src.toolGroupIds.Fusion, toolNames.Crosshairs);
292
302
  const crosshairsConfig = {
293
303
  ...toolConfig,
294
304
  filterActorUIDsToSetSlabThickness: [
295
305
  displaySets[0].displaySetInstanceUID
296
306
  ]
297
307
  };
298
- toolGroupService.setToolConfiguration(tmtv_src/* .toolGroupIds.Fusion */.i.Fusion, toolNames.Crosshairs, crosshairsConfig);
308
+ toolGroupService.setToolConfiguration(tmtv_src.toolGroupIds.Fusion, toolNames.Crosshairs, crosshairsConfig);
299
309
  }
300
310
 
301
311
  ;// CONCATENATED MODULE: ../../modes/tmtv/src/utils/setFusionActiveVolume.js
@@ -311,8 +321,8 @@ function setFusionActiveVolume(matches, toolNames, toolGroupService, displaySetS
311
321
  if (!displaySets || displaySets.length === 0) {
312
322
  return;
313
323
  }
314
- const wlToolConfig = toolGroupService.getToolConfiguration(tmtv_src/* .toolGroupIds.Fusion */.i.Fusion, toolNames.WindowLevel);
315
- const ellipticalToolConfig = toolGroupService.getToolConfiguration(tmtv_src/* .toolGroupIds.Fusion */.i.Fusion, toolNames.EllipticalROI); // Todo: this should not take into account the loader id
324
+ const wlToolConfig = toolGroupService.getToolConfiguration(tmtv_src.toolGroupIds.Fusion, toolNames.WindowLevel);
325
+ const ellipticalToolConfig = toolGroupService.getToolConfiguration(tmtv_src.toolGroupIds.Fusion, toolNames.EllipticalROI); // Todo: this should not take into account the loader id
316
326
  const volumeId = `cornerstoneStreamingImageVolume:${displaySets[0].displaySetInstanceUID}`;
317
327
  const { SeriesInstanceUID: SeriesInstanceUID2 } = matchDetails2;
318
328
  const ctDisplaySets = displaySetService.getDisplaySetsForSeries(SeriesInstanceUID2);
@@ -325,8 +335,8 @@ function setFusionActiveVolume(matches, toolNames, toolGroupService, displaySetS
325
335
  ...ellipticalToolConfig,
326
336
  volumeId
327
337
  };
328
- toolGroupService.setToolConfiguration(tmtv_src/* .toolGroupIds.Fusion */.i.Fusion, toolNames.WindowLevel, windowLevelConfig);
329
- toolGroupService.setToolConfiguration(tmtv_src/* .toolGroupIds.Fusion */.i.Fusion, toolNames.EllipticalROI, ellipticalROIConfig);
338
+ toolGroupService.setToolConfiguration(tmtv_src.toolGroupIds.Fusion, toolNames.WindowLevel, windowLevelConfig);
339
+ toolGroupService.setToolConfiguration(tmtv_src.toolGroupIds.Fusion, toolNames.EllipticalROI, ellipticalROIConfig);
330
340
  }
331
341
 
332
342
  ;// CONCATENATED MODULE: ../../modes/tmtv/src/index.ts
@@ -337,7 +347,7 @@ function setFusionActiveVolume(matches, toolNames, toolGroupService, displaySetS
337
347
 
338
348
 
339
349
 
340
- const { MetadataProvider } = src/* .classes */.Ly;
350
+ const { MetadataProvider } = src.classes;
341
351
  const ohif = {
342
352
  layout: '@ohif/extension-default.layoutTemplateModule.viewerLayout',
343
353
  sopClassHandler: '@ohif/extension-default.sopClassHandlerModule.stack',
@@ -364,7 +374,7 @@ const extensionDependencies = {
364
374
  * configuration and the PT VOI hanging protocol attribute.
365
375
  */
366
376
  function onModeEnter(ctx) {
367
- basic_src/* .onModeEnter.call */.jQ.call(this, ctx);
377
+ basic_src.onModeEnter.call(this, ctx);
368
378
  const { servicesManager, extensionManager, commandsManager } = ctx;
369
379
  const { toolGroupService, customizationService, hangingProtocolService, displaySetService } = servicesManager.services;
370
380
  const utilityModule = extensionManager.getModuleEntry('@ohif/extension-cornerstone.utilityModule.tools');
@@ -435,14 +445,14 @@ const tmtvLayout = {
435
445
  };
436
446
  const tmtvRoute = {
437
447
  path: 'tmtv',
438
- layoutTemplate: basic_src/* .layoutTemplate */.ZM,
448
+ layoutTemplate: basic_src.layoutTemplate,
439
449
  layoutInstance: tmtvLayout
440
450
  };
441
451
  const modeInstance = {
442
452
  // We should not be.
443
453
  id: id,
444
454
  routeName: 'tmtv',
445
- displayName: i18next/* ["default"].t */.A.t('Modes:Total Metabolic Tumor Volume'),
455
+ displayName: i18next["default"].t('Modes:Total Metabolic Tumor Volume'),
446
456
  // The mode route seeds these onto the Mode customization scope on enter, so
447
457
  // `?customization=` modules extend them through the `mode` phase. The tmtv
448
458
  // extension supplies the TMTV-specific button/section packs.
@@ -457,11 +467,11 @@ const modeInstance = {
457
467
  }
458
468
  ],
459
469
  toolGroupAdditions: {
460
- [tmtv_src/* .toolGroupIds.CT */.i.CT]: [],
461
- [tmtv_src/* .toolGroupIds.PT */.i.PT]: [],
462
- [tmtv_src/* .toolGroupIds.Fusion */.i.Fusion]: [],
463
- [tmtv_src/* .toolGroupIds.MIP */.i.MIP]: [],
464
- [tmtv_src/* .toolGroupIds["default"] */.i["default"]]: []
470
+ [tmtv_src.toolGroupIds.CT]: [],
471
+ [tmtv_src.toolGroupIds.PT]: [],
472
+ [tmtv_src.toolGroupIds.Fusion]: [],
473
+ [tmtv_src.toolGroupIds.MIP]: [],
474
+ [tmtv_src.toolGroupIds["default"]]: []
465
475
  },
466
476
  initToolGroups: src_initToolGroups,
467
477
  // at default scope when the mode loads (see `customizations` below), and the
@@ -471,14 +481,14 @@ const modeInstance = {
471
481
  /**
472
482
  * Lifecycle hooks
473
483
  */ onModeEnter,
474
- onModeExit: basic_src/* .onModeExit */.$2,
484
+ onModeExit: basic_src.onModeExit,
475
485
  validationTags: {
476
486
  study: [],
477
487
  series: []
478
488
  },
479
489
  // the demo studies that belong to the preclinical 4D mode. Until we have a
480
490
  // better way to identify 4D studies we use the mrn/StudyInstanceUID.
481
- isValidMode: basic_src/* .isValidMode */.ur,
491
+ isValidMode: basic_src.isValidMode,
482
492
  modeModalities: [
483
493
  [
484
494
  'PT',
@@ -520,7 +530,7 @@ const customizations = {
520
530
  */
521
531
  const mode = {
522
532
  id: id,
523
- modeFactory: basic_src/* .modeFactory */.U1,
533
+ modeFactory: basic_src.modeFactory,
524
534
  modeInstance,
525
535
  extensionDependencies,
526
536
  customizations