@ohif/app 3.12.0-beta.29 → 3.12.0-beta.30

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 (26) hide show
  1. package/dist/{1447.bundle.7ea0d8e4aa9d9f34bf41.js → 1447.bundle.7ccbf8c680ed0a7e69d5.js} +20 -15
  2. package/dist/{1459.bundle.8f1e6eda9e6c4b162b89.js → 1459.bundle.25ae02642118d90e49ac.js} +18 -17
  3. package/dist/{1807.bundle.d721cfc3d15d95ec8d82.js → 1807.bundle.fb43d3ec0c1810dfd665.js} +42 -41
  4. package/dist/{213.bundle.ef068a2f88aaa7372cbd.js → 213.bundle.a628d19d9049300164e7.js} +2 -2
  5. package/dist/{2243.bundle.25b3992cdcfe70ddd919.js → 2243.bundle.8230239618b7b3732cb7.js} +84 -83
  6. package/dist/{2424.bundle.afad8a53334a4495abdb.js → 2424.bundle.8e5801b13cbf46346e82.js} +2 -2
  7. package/dist/{4113.bundle.428c74d3e546a7277a9e.js → 4113.bundle.c5cda661ac043f9b5e97.js} +2 -2
  8. package/dist/{6027.bundle.4479affc92c33069af5d.js → 6027.bundle.744b0fb1b090256c0a77.js} +29 -28
  9. package/dist/{6201.bundle.6ec98c3f81a8154c432c.js → 6201.bundle.b32ee475e39dcf2d69b4.js} +2 -2
  10. package/dist/{6980.bundle.6df792cb5f9ad93a7d91.js → 6980.bundle.945ffbd91eaf6f3faaa9.js} +84 -83
  11. package/dist/{7197.bundle.c85bed3a067043ebdc69.js → 7197.bundle.27d101c9c06cd67ec070.js} +2 -2
  12. package/dist/{7639.bundle.be44963b6149ed6970fd.js → 7639.bundle.f34b172193c9c1218ed7.js} +42 -39
  13. package/dist/{7656.bundle.56e460a5793d66bf5f91.js → 7656.bundle.a821e6064d08e194a9e1.js} +60 -36
  14. package/dist/{810.bundle.7eb581c376d1fccefedf.js → 810.bundle.6843f6cc56987564bb42.js} +2 -2
  15. package/dist/{85.bundle.0e1a214b530e80641917.js → 85.bundle.333336f0acd7387b9c12.js} +90 -89
  16. package/dist/{8558.bundle.de825b993a974c6e70d4.js → 8558.bundle.700a45d1df4274c7569e.js} +2 -2
  17. package/dist/{8815.bundle.979df6afb75a8ff23bd1.js → 8815.bundle.4002e0e98ee51da6f347.js} +72 -69
  18. package/dist/{app.bundle.639b0587c99d124efe17.js → app.bundle.dc901a102d764ef35ad4.js} +38653 -38597
  19. package/dist/index.html +1 -1
  20. package/dist/sw.js +1 -1
  21. package/package.json +20 -20
  22. /package/dist/{1604.bundle.e306a0a1547e398121f1.js → 1604.bundle.a0651a36c30bba3ca428.js} +0 -0
  23. /package/dist/{1919.bundle.1bbede9be58e0a6c307c.js → 1919.bundle.28e3a73be5889d518468.js} +0 -0
  24. /package/dist/{414.bundle.b57e468bd49237bafdaf.js → 414.bundle.aba3037fd5feebd821dc.js} +0 -0
  25. /package/dist/{6991.bundle.956af935ea8d258215ea.js → 6991.bundle.b4826e45919342537aac.js} +0 -0
  26. /package/dist/{934.bundle.493402696bb6c0e70ee2.js → 934.bundle.615d68bb584003b7c065.js} +0 -0
@@ -332,8 +332,11 @@ function initToolGroups({
332
332
  _initToolGroups(toolNames, Enums, toolGroupService, commandsManager, servicesManager);
333
333
  }
334
334
 
335
+ // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
336
+ var i18next = __webpack_require__(40680);
335
337
  ;// ../../../modes/preclinical-4d/src/toolbarButtons.tsx
336
338
 
339
+
337
340
  const setToolActiveToolbar = {
338
341
  commandName: 'setToolActiveToolbar',
339
342
  commandOptions: {
@@ -375,8 +378,8 @@ const toolbarButtons = [{
375
378
  uiType: 'ohif.modalityLoadBadge',
376
379
  props: {
377
380
  icon: 'Status',
378
- label: 'Status',
379
- tooltip: 'Status',
381
+ label: i18next/* default */.A.t('Buttons:Status'),
382
+ tooltip: i18next/* default */.A.t('Buttons:Status'),
380
383
  evaluate: {
381
384
  name: 'evaluate.modalityLoadBadge',
382
385
  hideWhenDisabled: true
@@ -387,8 +390,8 @@ const toolbarButtons = [{
387
390
  uiType: 'ohif.navigationComponent',
388
391
  props: {
389
392
  icon: 'Navigation',
390
- label: 'Navigation',
391
- tooltip: 'Navigate between segments/measurements and manage their visibility',
393
+ label: i18next/* default */.A.t('Buttons:Navigation'),
394
+ tooltip: i18next/* default */.A.t('Buttons:Navigate between segments/measurements and manage their visibility'),
392
395
  evaluate: {
393
396
  name: 'evaluate.navigationComponent',
394
397
  hideWhenDisabled: true
@@ -399,8 +402,8 @@ const toolbarButtons = [{
399
402
  uiType: 'ohif.windowLevelMenuEmbedded',
400
403
  props: {
401
404
  icon: 'WindowLevel',
402
- label: 'Window Level',
403
- tooltip: 'Adjust window/level presets and customize image contrast settings',
405
+ label: i18next/* default */.A.t('Buttons:Window Level'),
406
+ tooltip: i18next/* default */.A.t('Buttons:Adjust window/level presets and customize image contrast settings'),
404
407
  evaluate: {
405
408
  name: 'evaluate.windowLevelMenuEmbedded',
406
409
  hideWhenDisabled: true
@@ -411,8 +414,8 @@ const toolbarButtons = [{
411
414
  uiType: 'ohif.trackingStatus',
412
415
  props: {
413
416
  icon: 'TrackingStatus',
414
- label: 'Tracking Status',
415
- tooltip: 'View and manage tracking status of measurements and annotations',
417
+ label: i18next/* default */.A.t('Buttons:Tracking Status'),
418
+ tooltip: i18next/* default */.A.t('Buttons:View and manage tracking status of measurements and annotations'),
416
419
  evaluate: {
417
420
  name: 'evaluate.trackingStatus',
418
421
  hideWhenDisabled: true
@@ -423,8 +426,8 @@ const toolbarButtons = [{
423
426
  uiType: 'ohif.toolButton',
424
427
  props: {
425
428
  icon: 'tool-length',
426
- label: 'Length',
427
- tooltip: 'Length Tool',
429
+ label: i18next/* default */.A.t('Buttons:Length'),
430
+ tooltip: i18next/* default */.A.t('Buttons:Length Tool'),
428
431
  commands: setToolActiveToolbar,
429
432
  evaluate: 'evaluate.cornerstoneTool'
430
433
  }
@@ -433,8 +436,8 @@ const toolbarButtons = [{
433
436
  uiType: 'ohif.toolButton',
434
437
  props: {
435
438
  icon: 'tool-bidirectional',
436
- label: 'Bidirectional',
437
- tooltip: 'Bidirectional Tool',
439
+ label: i18next/* default */.A.t('Buttons:Bidirectional'),
440
+ tooltip: i18next/* default */.A.t('Buttons:Bidirectional Tool'),
438
441
  commands: setToolActiveToolbar,
439
442
  evaluate: 'evaluate.cornerstoneTool'
440
443
  }
@@ -443,8 +446,8 @@ const toolbarButtons = [{
443
446
  uiType: 'ohif.toolButton',
444
447
  props: {
445
448
  icon: 'tool-annotate',
446
- label: 'Annotation',
447
- tooltip: 'Arrow Annotate',
449
+ label: i18next/* default */.A.t('Buttons:Annotation'),
450
+ tooltip: i18next/* default */.A.t('Buttons:Arrow Annotate'),
448
451
  commands: setToolActiveToolbar,
449
452
  evaluate: 'evaluate.cornerstoneTool'
450
453
  }
@@ -453,8 +456,8 @@ const toolbarButtons = [{
453
456
  uiType: 'ohif.toolButton',
454
457
  props: {
455
458
  icon: 'tool-ellipse',
456
- label: 'Ellipse',
457
- tooltip: 'Ellipse ROI',
459
+ label: i18next/* default */.A.t('Buttons:Ellipse'),
460
+ tooltip: i18next/* default */.A.t('Buttons:Ellipse ROI'),
458
461
  commands: setToolActiveToolbar,
459
462
  evaluate: 'evaluate.cornerstoneTool'
460
463
  }
@@ -463,7 +466,7 @@ const toolbarButtons = [{
463
466
  uiType: 'ohif.toolButton',
464
467
  props: {
465
468
  icon: 'tool-zoom',
466
- label: 'Zoom',
469
+ label: i18next/* default */.A.t('Buttons:Zoom'),
467
470
  commands: setToolActiveToolbar,
468
471
  evaluate: 'evaluate.cornerstoneTool'
469
472
  }
@@ -472,7 +475,7 @@ const toolbarButtons = [{
472
475
  uiType: 'ohif.toolButton',
473
476
  props: {
474
477
  icon: 'tool-window-level',
475
- label: 'Window Level',
478
+ label: i18next/* default */.A.t('Buttons:Window Level'),
476
479
  commands: setToolActiveToolbar,
477
480
  evaluate: 'evaluate.cornerstoneTool'
478
481
  }
@@ -482,7 +485,7 @@ const toolbarButtons = [{
482
485
  props: {
483
486
  type: 'tool',
484
487
  icon: 'tool-move',
485
- label: 'Pan',
488
+ label: i18next/* default */.A.t('Buttons:Pan'),
486
489
  commands: setToolActiveToolbar,
487
490
  evaluate: 'evaluate.cornerstoneTool'
488
491
  }
@@ -492,7 +495,7 @@ const toolbarButtons = [{
492
495
  props: {
493
496
  type: 'tool',
494
497
  icon: 'tool-3d-rotate',
495
- label: '3D Rotate',
498
+ label: i18next/* default */.A.t('Buttons:3D Rotate'),
496
499
  commands: setToolActiveToolbar,
497
500
  evaluate: 'evaluate.cornerstoneTool'
498
501
  }
@@ -501,7 +504,7 @@ const toolbarButtons = [{
501
504
  uiType: 'ohif.toolButton',
502
505
  props: {
503
506
  icon: 'tool-capture',
504
- label: 'Capture',
507
+ label: i18next/* default */.A.t('Buttons:Capture'),
505
508
  commands: 'showDownloadViewportModal',
506
509
  evaluate: ['evaluate.action', {
507
510
  name: 'evaluate.viewport.supported',
@@ -523,7 +526,7 @@ const toolbarButtons = [{
523
526
  props: {
524
527
  type: 'tool',
525
528
  icon: 'tool-crosshair',
526
- label: 'Crosshairs',
529
+ label: i18next/* default */.A.t('Buttons:Crosshairs'),
527
530
  commands: setToolActiveToolbar,
528
531
  evaluate: 'evaluate.cornerstoneTool'
529
532
  }
@@ -535,7 +538,7 @@ const toolbarButtons = [{
535
538
  uiType: 'ohif.toolBoxButton',
536
539
  props: {
537
540
  icon: 'tool-create-threshold',
538
- label: 'Rectangle ROI Threshold',
541
+ label: i18next/* default */.A.t('Buttons:Rectangle ROI Threshold'),
539
542
  commands: setToolActiveToolbar,
540
543
  evaluate: {
541
544
  name: 'evaluate.cornerstone.segmentation',
@@ -548,7 +551,7 @@ const toolbarButtons = [{
548
551
  uiType: 'ohif.toolButton',
549
552
  props: {
550
553
  icon: 'icon-tool-brush',
551
- label: 'Brush',
554
+ label: i18next/* default */.A.t('Buttons:Brush'),
552
555
  evaluate: {
553
556
  name: 'evaluate.cornerstone.segmentation',
554
557
  toolNames: ['CircularBrush', 'SphereBrush']
@@ -587,7 +590,7 @@ const toolbarButtons = [{
587
590
  uiType: 'ohif.toolButton',
588
591
  props: {
589
592
  icon: 'icon-tool-eraser',
590
- label: 'Eraser',
593
+ label: i18next/* default */.A.t('Buttons:Eraser'),
591
594
  evaluate: {
592
595
  name: 'evaluate.cornerstone.segmentation',
593
596
  toolNames: ['CircularEraser', 'SphereEraser']
@@ -626,7 +629,7 @@ const toolbarButtons = [{
626
629
  uiType: 'ohif.toolButton',
627
630
  props: {
628
631
  icon: 'icon-tool-threshold',
629
- label: 'Threshold',
632
+ label: i18next/* default */.A.t('Buttons:Threshold'),
630
633
  evaluate: {
631
634
  name: 'evaluate.cornerstone.segmentation',
632
635
  toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush']
@@ -707,8 +710,8 @@ const toolbarButtons = [{
707
710
  uiType: 'ohif.dataOverlayMenu',
708
711
  props: {
709
712
  icon: 'ViewportViews',
710
- label: 'Data Overlay',
711
- tooltip: 'Configure data overlay options and manage foreground/background display sets',
713
+ label: i18next/* default */.A.t('Buttons:Data Overlay'),
714
+ tooltip: i18next/* default */.A.t('Buttons:Configure data overlay options and manage foreground/background display sets'),
712
715
  evaluate: 'evaluate.dataOverlayMenu'
713
716
  }
714
717
  }, {
@@ -716,8 +719,8 @@ const toolbarButtons = [{
716
719
  uiType: 'ohif.orientationMenu',
717
720
  props: {
718
721
  icon: 'OrientationSwitch',
719
- label: 'Orientation',
720
- tooltip: 'Change viewport orientation between axial, sagittal, coronal and reformat planes',
722
+ label: i18next/* default */.A.t('Buttons:Orientation'),
723
+ tooltip: i18next/* default */.A.t('Buttons:Change viewport orientation between axial, sagittal, coronal and reformat planes'),
721
724
  evaluate: {
722
725
  name: 'evaluate.orientationMenu'
723
726
  // hideWhenDisabled: true,
@@ -728,8 +731,8 @@ const toolbarButtons = [{
728
731
  uiType: 'ohif.windowLevelMenu',
729
732
  props: {
730
733
  icon: 'WindowLevel',
731
- label: 'Window Level',
732
- tooltip: 'Adjust window/level presets and customize image contrast settings',
734
+ label: i18next/* default */.A.t('Buttons:Window Level'),
735
+ tooltip: i18next/* default */.A.t('Buttons:Adjust window/level presets and customize image contrast settings'),
733
736
  evaluate: 'evaluate.windowLevelMenu'
734
737
  }
735
738
  }, {
@@ -737,8 +740,8 @@ const toolbarButtons = [{
737
740
  uiType: 'ohif.voiManualControlMenu',
738
741
  props: {
739
742
  icon: 'WindowLevelAdvanced',
740
- label: 'Advanced Window Level',
741
- tooltip: 'Advanced window/level settings with manual controls and presets',
743
+ label: i18next/* default */.A.t('Buttons:Advanced Window Level'),
744
+ tooltip: i18next/* default */.A.t('Buttons:Advanced window/level settings with manual controls and presets'),
742
745
  evaluate: 'evaluate.voiManualControlMenu'
743
746
  }
744
747
  }, {
@@ -746,8 +749,8 @@ const toolbarButtons = [{
746
749
  uiType: 'ohif.thresholdMenu',
747
750
  props: {
748
751
  icon: 'Threshold',
749
- label: 'Threshold',
750
- tooltip: 'Image threshold settings',
752
+ label: i18next/* default */.A.t('Buttons:Threshold'),
753
+ tooltip: i18next/* default */.A.t('Buttons:Image threshold settings'),
751
754
  evaluate: {
752
755
  name: 'evaluate.thresholdMenu',
753
756
  hideWhenDisabled: true
@@ -758,8 +761,8 @@ const toolbarButtons = [{
758
761
  uiType: 'ohif.opacityMenu',
759
762
  props: {
760
763
  icon: 'Opacity',
761
- label: 'Opacity',
762
- tooltip: 'Image opacity settings',
764
+ label: i18next/* default */.A.t('Buttons:Opacity'),
765
+ tooltip: i18next/* default */.A.t('Buttons:Image opacity settings'),
763
766
  evaluate: {
764
767
  name: 'evaluate.opacityMenu',
765
768
  hideWhenDisabled: true
@@ -770,7 +773,7 @@ const toolbarButtons = [{
770
773
  uiType: 'ohif.colorbar',
771
774
  props: {
772
775
  type: 'tool',
773
- label: 'Colorbar'
776
+ label: i18next/* default */.A.t('Buttons:Colorbar')
774
777
  }
775
778
  }];
776
779
  /* harmony default export */ const src_toolbarButtons = (toolbarButtons);
@@ -7445,6 +7445,7 @@ DicomUpload.propTypes = {
7445
7445
  ;// ../../../extensions/cornerstone/src/customizations/captureViewportModalCustomization.tsx
7446
7446
 
7447
7447
 
7448
+
7448
7449
  const MAX_TEXTURE_SIZE = 10000;
7449
7450
  const DEFAULT_FILENAME = 'image';
7450
7451
  function ViewportDownloadFormNew({
@@ -7465,6 +7466,9 @@ function ViewportDownloadFormNew({
7465
7466
  const [showWarningMessage, setShowWarningMessage] = (0,react.useState)(true);
7466
7467
  const [filename, setFilename] = (0,react.useState)(DEFAULT_FILENAME);
7467
7468
  const [fileType, setFileType] = (0,react.useState)('jpg');
7469
+ const {
7470
+ t
7471
+ } = (0,es/* useTranslation */.Bd)('CaptureViewportModal');
7468
7472
  (0,react.useEffect)(() => {
7469
7473
  if (!viewportElement) {
7470
7474
  return;
@@ -7492,7 +7496,7 @@ function ViewportDownloadFormNew({
7492
7496
  }, /*#__PURE__*/react.createElement(ui_next_src/* ImageModal */.jiK.Filename, {
7493
7497
  value: filename,
7494
7498
  onChange: e => setFilename(e.target.value)
7495
- }, "File name"), /*#__PURE__*/react.createElement(ui_next_src/* ImageModal */.jiK.Filetype, {
7499
+ }, t('File name')), /*#__PURE__*/react.createElement(ui_next_src/* ImageModal */.jiK.Filetype, {
7496
7500
  selected: fileType,
7497
7501
  onSelect: setFileType,
7498
7502
  options: fileTypeOptions
@@ -7513,26 +7517,26 @@ function ViewportDownloadFormNew({
7513
7517
  },
7514
7518
  maxWidth: MAX_TEXTURE_SIZE.toString(),
7515
7519
  maxHeight: MAX_TEXTURE_SIZE.toString()
7516
- }, "Image size ", /*#__PURE__*/react.createElement("span", {
7520
+ }, t('Image size'), " ", /*#__PURE__*/react.createElement("span", {
7517
7521
  className: "text-muted-foreground"
7518
7522
  }, "px")), /*#__PURE__*/react.createElement(ui_next_src/* ImageModal */.jiK.SwitchOption, {
7519
7523
  defaultChecked: showAnnotations,
7520
7524
  checked: showAnnotations,
7521
7525
  onCheckedChange: onAnnotationsChange
7522
- }, "Include annotations"), warningState.enabled && /*#__PURE__*/react.createElement(ui_next_src/* ImageModal */.jiK.SwitchOption, {
7526
+ }, t('Include annotations')), warningState.enabled && /*#__PURE__*/react.createElement(ui_next_src/* ImageModal */.jiK.SwitchOption, {
7523
7527
  defaultChecked: showWarningMessage,
7524
7528
  checked: showWarningMessage,
7525
7529
  onCheckedChange: setShowWarningMessage
7526
- }, "Include warning message"), /*#__PURE__*/react.createElement(ui_next_src/* FooterAction */.esu, {
7530
+ }, t('Include warning message')), /*#__PURE__*/react.createElement(ui_next_src/* FooterAction */.esu, {
7527
7531
  className: "mt-2"
7528
7532
  }, /*#__PURE__*/react.createElement(ui_next_src/* FooterAction */.esu.Right, null, /*#__PURE__*/react.createElement(ui_next_src/* FooterAction */.esu.Secondary, {
7529
7533
  onClick: onClose
7530
- }, "Cancel"), /*#__PURE__*/react.createElement(ui_next_src/* FooterAction */.esu.Primary, {
7534
+ }, t('Common:Cancel')), /*#__PURE__*/react.createElement(ui_next_src/* FooterAction */.esu.Primary, {
7531
7535
  onClick: () => {
7532
7536
  onDownload(filename || DEFAULT_FILENAME, fileType);
7533
7537
  onClose();
7534
7538
  }
7535
- }, "Save"))))));
7539
+ }, t('Common:Save')))))));
7536
7540
  }
7537
7541
  /* harmony default export */ const captureViewportModalCustomization = ({
7538
7542
  'ohif.captureViewportModal': ViewportDownloadFormNew
@@ -7589,8 +7593,8 @@ function getCustomizationModule({
7589
7593
  /* harmony default export */ const src_getCustomizationModule = (getCustomizationModule);
7590
7594
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/labelmap-interpolation/dist/esm/index.js + 2 modules
7591
7595
  var labelmap_interpolation_dist_esm = __webpack_require__(7927);
7592
- // EXTERNAL MODULE: ../../i18n/src/index.js + 197 modules
7593
- var i18n_src = __webpack_require__(89806);
7596
+ // EXTERNAL MODULE: ../../i18n/src/index.js + 210 modules
7597
+ var i18n_src = __webpack_require__(68523);
7594
7598
  // EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/index.js + 1 modules
7595
7599
  var gl_matrix_esm = __webpack_require__(3823);
7596
7600
  ;// ../../../extensions/cornerstone/src/utils/imageSliceSync/toggleImageSliceSync.ts
@@ -9146,8 +9150,8 @@ function commandsModule({
9146
9150
  if (!labelConfig) {
9147
9151
  const label = await (0,default_src.callInputDialog)({
9148
9152
  uiDialogService,
9149
- title: 'Edit Measurement Label',
9150
- placeholder: measurement.label || 'Enter new label',
9153
+ title: i18n_src/* default */.A.t('Tools:Edit Measurement Label'),
9154
+ placeholder: measurement.label || i18n_src/* default */.A.t('Tools:Enter new label'),
9151
9155
  defaultValue: measurement.label
9152
9156
  });
9153
9157
  if (label !== undefined && label !== null) {
@@ -9380,8 +9384,8 @@ function commandsModule({
9380
9384
  if (!labelConfig) {
9381
9385
  const label = await (0,default_src.callInputDialog)({
9382
9386
  uiDialogService,
9383
- title: 'Edit Arrow Text',
9384
- placeholder: data?.data?.label || 'Enter new text',
9387
+ title: i18n_src/* default */.A.t('Tools:Edit Arrow Text'),
9388
+ placeholder: data?.data?.label || i18n_src/* default */.A.t('Tools:Enter new text'),
9385
9389
  defaultValue: data?.data?.label || ''
9386
9390
  });
9387
9391
  callback?.(label);
@@ -9631,8 +9635,8 @@ function commandsModule({
9631
9635
  if (!cornerstoneViewportService.getCornerstoneViewport(activeViewportId)) {
9632
9636
  // Cannot download a non-cornerstone viewport (image).
9633
9637
  uiNotificationService.show({
9634
- title: 'Download Image',
9635
- message: 'Image cannot be downloaded',
9638
+ title: i18n_src/* default */.A.t('Tools:Download Image'),
9639
+ message: i18n_src/* default */.A.t('Tools:Image cannot be downloaded'),
9636
9640
  type: 'error'
9637
9641
  });
9638
9642
  return;
@@ -9643,7 +9647,7 @@ function commandsModule({
9643
9647
  if (uiModalService) {
9644
9648
  uiModalService.show({
9645
9649
  content: utils_CornerstoneViewportDownloadForm,
9646
- title: 'Download High Quality Image',
9650
+ title: i18n_src/* default */.A.t('Tools:Download High Quality Image'),
9647
9651
  contentProps: {
9648
9652
  activeViewportId,
9649
9653
  cornerstoneViewportService
@@ -10148,7 +10152,7 @@ function commandsModule({
10148
10152
  // Todo: add support for multiple display sets
10149
10153
  const displaySetInstanceUID = options.displaySetInstanceUID || viewport.displaySetInstanceUIDs[0];
10150
10154
  const segs = segmentationService.getSegmentations();
10151
- const label = options.label || `Segmentation ${segs.length + 1}`;
10155
+ const label = options.label || `${i18n_src/* default */.A.t('Tools:Segmentation')} ${segs.length + 1}`;
10152
10156
  const segmentationId = options.segmentationId || `${esm.utilities.uuidv4()}`;
10153
10157
  const displaySet = displaySetService.getDisplaySetByUID(displaySetInstanceUID);
10154
10158
 
@@ -10158,7 +10162,7 @@ function commandsModule({
10158
10162
  segmentationId,
10159
10163
  segments: options.createInitialSegment ? {
10160
10164
  1: {
10161
- label: `${i18n_src/* default */.A.t('Segment')} 1`,
10165
+ label: `${i18n_src/* default */.A.t('Tools:Segment')} 1`,
10162
10166
  active: true
10163
10167
  }
10164
10168
  } : {}
@@ -10499,8 +10503,8 @@ function commandsModule({
10499
10503
  const segment = segmentation.segments[segmentIndex];
10500
10504
  (0,default_src.callInputDialog)({
10501
10505
  uiDialogService,
10502
- title: 'Edit Segment Label',
10503
- placeholder: 'Enter new label',
10506
+ title: i18n_src/* default */.A.t('Tools:Edit Segment Label'),
10507
+ placeholder: i18n_src/* default */.A.t('Tools:Enter new label'),
10504
10508
  defaultValue: segment.label
10505
10509
  }).then(label => {
10506
10510
  segmentationService.setSegmentLabel(segmentationId, segmentIndex, label);
@@ -10522,8 +10526,8 @@ function commandsModule({
10522
10526
  } = segmentation;
10523
10527
  (0,default_src.callInputDialog)({
10524
10528
  uiDialogService,
10525
- title: 'Edit Segmentation Label',
10526
- placeholder: 'Enter new label',
10529
+ title: i18n_src/* default */.A.t('Tools:Edit Segmentation Label'),
10530
+ placeholder: i18n_src/* default */.A.t('Tools:Enter new label'),
10527
10531
  defaultValue: label
10528
10532
  }).then(label => {
10529
10533
  segmentationService.addOrUpdateSegmentation({
@@ -10551,7 +10555,7 @@ function commandsModule({
10551
10555
  };
10552
10556
  uiDialogService.show({
10553
10557
  content: default_src.colorPickerDialog,
10554
- title: 'Segment Color',
10558
+ title: i18n_src/* default */.A.t('Tools:Segment Color'),
10555
10559
  contentProps: {
10556
10560
  value: rgbaColor,
10557
10561
  onSave: newRgbaColor => {
@@ -11331,7 +11335,10 @@ function commandsModule({
11331
11335
  };
11332
11336
  }
11333
11337
  /* harmony default export */ const src_commandsModule = (commandsModule);
11338
+ // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
11339
+ var i18next = __webpack_require__(40680);
11334
11340
  ;// ../../../extensions/cornerstone/src/hps/mpr.ts
11341
+
11335
11342
  const VOI_SYNC_GROUP = {
11336
11343
  type: 'voi',
11337
11344
  id: 'mpr',
@@ -11352,7 +11359,7 @@ const HYDRATE_SEG_SYNC_GROUP = {
11352
11359
  };
11353
11360
  const mpr = {
11354
11361
  id: 'mpr',
11355
- name: 'MPR',
11362
+ name: i18next/* default */.A.t('Hps:MPR'),
11356
11363
  locked: true,
11357
11364
  icon: 'layout-advanced-mpr',
11358
11365
  isPreset: true,
@@ -11450,10 +11457,11 @@ const mpr = {
11450
11457
  };
11451
11458
  ;// ../../../extensions/cornerstone/src/hps/fourUp.ts
11452
11459
 
11460
+
11453
11461
  const fourUp = {
11454
11462
  id: 'fourUp',
11455
11463
  locked: true,
11456
- name: '3D four up',
11464
+ name: i18next/* default */.A.t('Hps:3D four up'),
11457
11465
  icon: 'layout-advanced-3d-four-up',
11458
11466
  isPreset: true,
11459
11467
  createdDate: '2023-03-15T10:29:44.894Z',
@@ -11550,10 +11558,11 @@ const fourUp = {
11550
11558
  };
11551
11559
  ;// ../../../extensions/cornerstone/src/hps/main3D.ts
11552
11560
 
11561
+
11553
11562
  const main3D = {
11554
11563
  id: 'main3D',
11555
11564
  locked: true,
11556
- name: '3D main',
11565
+ name: i18next/* default */.A.t('Hps:3D main'),
11557
11566
  icon: 'layout-advanced-3d-main',
11558
11567
  isPreset: true,
11559
11568
  createdDate: '2023-03-15T10:29:44.894Z',
@@ -11670,10 +11679,11 @@ const main3D = {
11670
11679
  };
11671
11680
  ;// ../../../extensions/cornerstone/src/hps/mprAnd3DVolumeViewport.ts
11672
11681
 
11682
+
11673
11683
  const mprAnd3DVolumeViewport = {
11674
11684
  id: 'mprAnd3DVolumeViewport',
11675
11685
  locked: true,
11676
- name: 'mpr',
11686
+ name: i18next/* default */.A.t('Hps:mpr'),
11677
11687
  createdDate: '2023-03-15T10:29:44.894Z',
11678
11688
  modifiedDate: '2023-03-15T10:29:44.894Z',
11679
11689
  availableTo: {},
@@ -11776,10 +11786,11 @@ const mprAnd3DVolumeViewport = {
11776
11786
  };
11777
11787
  ;// ../../../extensions/cornerstone/src/hps/only3D.ts
11778
11788
 
11789
+
11779
11790
  const only3D = {
11780
11791
  id: 'only3D',
11781
11792
  locked: true,
11782
- name: '3D only',
11793
+ name: i18next/* default */.A.t('Hps:3D only'),
11783
11794
  icon: 'layout-advanced-3d-only',
11784
11795
  isPreset: true,
11785
11796
  createdDate: '2023-03-15T10:29:44.894Z',
@@ -11837,10 +11848,11 @@ const only3D = {
11837
11848
  };
11838
11849
  ;// ../../../extensions/cornerstone/src/hps/primary3D.ts
11839
11850
 
11851
+
11840
11852
  const primary3D = {
11841
11853
  id: 'primary3D',
11842
11854
  locked: true,
11843
- name: '3D primary',
11855
+ name: i18next/* default */.A.t('Hps:3D primary'),
11844
11856
  icon: 'layout-advanced-3d-primary',
11845
11857
  isPreset: true,
11846
11858
  createdDate: '2023-03-15T10:29:44.894Z',
@@ -11957,10 +11969,11 @@ const primary3D = {
11957
11969
  };
11958
11970
  ;// ../../../extensions/cornerstone/src/hps/primaryAxial.ts
11959
11971
 
11972
+
11960
11973
  const primaryAxial = {
11961
11974
  id: 'primaryAxial',
11962
11975
  locked: true,
11963
- name: 'Axial Primary',
11976
+ name: i18next/* default */.A.t('Hps:Axial Primary'),
11964
11977
  icon: 'layout-advanced-axial-primary',
11965
11978
  isPreset: true,
11966
11979
  createdDate: '2023-03-15T10:29:44.894Z',
@@ -12052,10 +12065,11 @@ const primaryAxial = {
12052
12065
  }]
12053
12066
  };
12054
12067
  ;// ../../../extensions/cornerstone/src/hps/frameView.ts
12068
+
12055
12069
  const frameView = {
12056
12070
  id: '@ohif/frameView',
12057
- description: 'Frame view for the active series',
12058
- name: 'Frame View',
12071
+ description: i18next/* default */.A.t('Hps:Frame view for the active series'),
12072
+ name: i18next/* default */.A.t('Hps:Frame View'),
12059
12073
  icon: 'tool-stack-scroll',
12060
12074
  isPreset: true,
12061
12075
  toolGroupIds: ['default'],
@@ -14061,12 +14075,16 @@ var useViewportRendering = __webpack_require__(47488);
14061
14075
 
14062
14076
 
14063
14077
 
14078
+
14064
14079
  function Colormap({
14065
14080
  viewportId
14066
14081
  } = {}) {
14067
14082
  const {
14068
14083
  viewportDisplaySets
14069
14084
  } = (0,useViewportRendering/* useViewportRendering */.e)(viewportId);
14085
+ const {
14086
+ t
14087
+ } = (0,es/* useTranslation */.Bd)('WindowLevelActionMenu');
14070
14088
  const [activeDisplaySetUID, setActiveDisplaySetUID] = (0,react.useState)(viewportDisplaySets?.[0]?.displaySetInstanceUID);
14071
14089
 
14072
14090
  // Use the hook with the active display set
@@ -14118,7 +14136,7 @@ function Colormap({
14118
14136
  onClick: () => setShowPreview(!showPreview)
14119
14137
  }, /*#__PURE__*/react.createElement("span", {
14120
14138
  className: "flex-shrink-0"
14121
- }, "Preview in viewport"), /*#__PURE__*/react.createElement(ui_next_src/* Switch */.dOG, {
14139
+ }, t('Preview in viewport')), /*#__PURE__*/react.createElement(ui_next_src/* Switch */.dOG, {
14122
14140
  className: "ml-auto flex-shrink-0",
14123
14141
  checked: showPreview,
14124
14142
  onCheckedChange: checked => {
@@ -14161,6 +14179,7 @@ function Colormap({
14161
14179
 
14162
14180
 
14163
14181
 
14182
+
14164
14183
  function Colorbar({
14165
14184
  viewportId
14166
14185
  } = {}) {
@@ -14168,6 +14187,9 @@ function Colorbar({
14168
14187
  hasColorbar,
14169
14188
  toggleColorbar
14170
14189
  } = (0,useViewportRendering/* useViewportRendering */.e)(viewportId);
14190
+ const {
14191
+ t
14192
+ } = (0,es/* useTranslation */.Bd)('WindowLevelActionMenu');
14171
14193
  const handleToggle = (0,react.useCallback)(() => {
14172
14194
  toggleColorbar();
14173
14195
  }, [toggleColorbar]);
@@ -14178,7 +14200,7 @@ function Colorbar({
14178
14200
  }), /*#__PURE__*/react.createElement("span", {
14179
14201
  className: "flex-grow",
14180
14202
  onClick: handleToggle
14181
- }, "Display Color bar"), /*#__PURE__*/react.createElement(ui_next_src/* Switch */.dOG, {
14203
+ }, t('Display Color bar')), /*#__PURE__*/react.createElement(ui_next_src/* Switch */.dOG, {
14182
14204
  className: "ml-2 flex-shrink-0",
14183
14205
  checked: !!hasColorbar,
14184
14206
  onCheckedChange: handleToggle
@@ -14686,6 +14708,7 @@ function VolumeRenderingOptions({
14686
14708
 
14687
14709
 
14688
14710
 
14711
+
14689
14712
  function WindowLevelActionMenu({
14690
14713
  viewportId,
14691
14714
  element,
@@ -14721,12 +14744,13 @@ function WindowLevelActionMenuContent({
14721
14744
  ,
14722
14745
  isVisible: true,
14723
14746
  align: align,
14724
- side: side
14747
+ side: side,
14748
+ backLabel: i18next/* default */.A.t('WindowLevelActionMenu:Back to Display Options')
14725
14749
  }, /*#__PURE__*/react.createElement(ui_next_src/* AllInOneMenu */.se.ItemPanel, null, !is3DVolume && /*#__PURE__*/react.createElement(Colorbar, {
14726
14750
  viewportId: viewportId
14727
14751
  }), colorbarProperties?.colormaps && !is3DVolume && /*#__PURE__*/react.createElement(ui_next_src/* AllInOneMenu */.se.SubMenu, {
14728
14752
  key: "colorLUTPresets",
14729
- itemLabel: "Color LUT",
14753
+ itemLabel: t('Color LUT'),
14730
14754
  itemIcon: "icon-color-lut",
14731
14755
  className: "flex h-[calc(100%-32px)] flex-col"
14732
14756
  }, /*#__PURE__*/react.createElement(Colormap, {
@@ -14740,7 +14764,7 @@ function WindowLevelActionMenuContent({
14740
14764
  })), volumeRenderingPresets && is3DVolume && /*#__PURE__*/react.createElement(VolumeRenderingPresets, {
14741
14765
  viewportId: viewportId
14742
14766
  }), volumeRenderingQualityRange && is3DVolume && /*#__PURE__*/react.createElement(ui_next_src/* AllInOneMenu */.se.SubMenu, {
14743
- itemLabel: "Rendering Options"
14767
+ itemLabel: t('Rendering Options')
14744
14768
  }, /*#__PURE__*/react.createElement(VolumeRenderingOptions, {
14745
14769
  viewportId: viewportId
14746
14770
  }))));
@@ -1359,8 +1359,8 @@ function init({
1359
1359
  }
1360
1360
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
1361
1361
  var dist_esm = __webpack_require__(15327);
1362
- // EXTERNAL MODULE: ../../i18n/src/index.js + 197 modules
1363
- var i18n_src = __webpack_require__(89806);
1362
+ // EXTERNAL MODULE: ../../i18n/src/index.js + 210 modules
1363
+ var i18n_src = __webpack_require__(68523);
1364
1364
  ;// ../../../extensions/tmtv/src/utils/getThresholdValue.ts
1365
1365
 
1366
1366