@ohif/app 3.12.0-beta.100 → 3.12.0-beta.104

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 (35) hide show
  1. package/dist/{1403.bundle.d239b27c143d2d1804a6.js → 1403.bundle.ea5eb28d7e1c937ccbbf.js} +2 -2
  2. package/dist/{147.bundle.205350dc3d21478277b1.js → 147.bundle.ee7de13189cf1963aea9.js} +6 -15
  3. package/dist/{1608.bundle.f855c4bdb7f00eb66fca.js → 1608.bundle.a25c80a3971ed6361b51.js} +2 -2
  4. package/dist/{1730.bundle.22a99760b94c163f0fb7.js → 1730.bundle.d1acf1f07ca5b3892f15.js} +3 -3
  5. package/dist/{1903.bundle.9ff3c3f706656667162b.js → 1903.bundle.27b8f13121796caad7a2.js} +110 -50
  6. package/dist/{1933.bundle.569480948b6079c2fa32.js → 1933.bundle.d9f39020c89b72d593cc.js} +7 -3
  7. package/dist/{2018.bundle.b7ae7a5f144dbb971f24.js → 2018.bundle.3790d08e5f93c334eb29.js} +47 -47
  8. package/dist/{213.bundle.cf9098fbe63d5a755829.js → 213.bundle.4cdd711da5e5f19a6c76.js} +2 -2
  9. package/dist/{2424.bundle.5bd224c13a61030eb18b.js → 2424.bundle.9bb3300eaecd20077a37.js} +2 -2
  10. package/dist/{2701.bundle.aca0d4f24a6f2094c3c3.js → 2701.bundle.e01a06411f68459ac955.js} +2 -2
  11. package/dist/{3461.bundle.89466434f00d3743c516.js → 3461.bundle.93c1d3ecf976a746f785.js} +3 -3
  12. package/dist/{4202.bundle.790706560c6edb303476.js → 4202.bundle.fa6f6adfd3d08a1cdcd7.js} +1 -1
  13. package/dist/{4775.bundle.4eb5ce7ba3586c94d2a1.js → 4775.bundle.f463033dbb9c8da57d52.js} +22 -16
  14. package/dist/{4819.bundle.eb31c1e4d81de071f3a4.js → 4819.bundle.58e054b5b00d756e2d14.js} +6 -4
  15. package/dist/{5028.bundle.35ec943cbe3fa9393fe8.js → 5028.bundle.862ac206a79ac2818f64.js} +2 -2
  16. package/dist/{5485.bundle.12b3e3738745943ba166.js → 5485.bundle.07103c4b490382c0ee77.js} +2 -2
  17. package/dist/{5802.bundle.28ab859d9b48a5b2c31c.js → 5802.bundle.aef18b250a1927d84108.js} +6 -12
  18. package/dist/{7639.bundle.c0b2beea06d6a185f7d0.js → 7639.bundle.6444531fac0b110595e5.js} +15 -15
  19. package/dist/{8305.bundle.8d594e60bd2732be72dc.js → 8305.bundle.b1fb25aa020e0d0faec8.js} +43 -25
  20. package/dist/{8558.bundle.0fa5a7eb7f0d181f655e.js → 8558.bundle.6b45234a8d6365bff3b9.js} +2 -2
  21. package/dist/{8583.bundle.e63824d304b3f4cdda34.js → 8583.bundle.246b35769cd393843c6e.js} +24 -19
  22. package/dist/{9195.bundle.e6597407d8dbd3e3f8fe.js → 9195.bundle.5f9be23bc1e8857cc478.js} +125 -66
  23. package/dist/{9845.bundle.31aec3fe7a5cdc247f4e.js → 9845.bundle.155759f5e8d8070ee16f.js} +14 -6
  24. package/dist/{9862.bundle.3ca0ad5f54db87ccf91e.js → 9862.bundle.bb6b5cab9e8eda1cc675.js} +1 -1
  25. package/dist/{9927.bundle.d1a5055b026d298658c3.js → 9927.bundle.ca2f72f62468744559e4.js} +16 -16
  26. package/dist/{app.bundle.cd4cdfa595de54b44206.js → app.bundle.41cd81f26da8a340185f.js} +888 -141
  27. package/dist/app.bundle.css +1 -1
  28. package/dist/index.html +1 -1
  29. package/dist/sw.js +1 -1
  30. package/package.json +20 -20
  31. /package/dist/{1459.bundle.24d4976c6a0b6d35458d.js → 1459.bundle.5dc3647b918b624cead1.js} +0 -0
  32. /package/dist/{5457.bundle.a8f19fcecb2f824151ba.js → 5457.bundle.105e15da7973e5b61959.js} +0 -0
  33. /package/dist/{6027.bundle.96b99802305416998206.js → 6027.bundle.83186e7c3d210cd30320.js} +0 -0
  34. /package/dist/{6163.bundle.2ed1359dc59e0d92b179.js → 6163.bundle.f327d1e8aea322893404.js} +0 -0
  35. /package/dist/{85.bundle.2b8f73c3514e787d6cc6.js → 85.bundle.3cb557e3015e5c652610.js} +0 -0
@@ -571,16 +571,16 @@ const toolbarButtons = [{
571
571
  }
572
572
  }
573
573
  }, {
574
- name: 'Shape',
574
+ name: i18next/* default */.A.t('Buttons:Shape'),
575
575
  type: 'radio',
576
576
  id: 'brush-mode',
577
577
  value: 'CircularBrush',
578
578
  values: [{
579
579
  value: 'CircularBrush',
580
- label: 'Circle'
580
+ label: i18next/* default */.A.t('Buttons:Circle')
581
581
  }, {
582
582
  value: 'SphereBrush',
583
- label: 'Sphere'
583
+ label: i18next/* default */.A.t('Buttons:Sphere')
584
584
  }],
585
585
  commands: 'setToolActiveToolbar'
586
586
  }]
@@ -596,7 +596,7 @@ const toolbarButtons = [{
596
596
  toolNames: ['CircularEraser', 'SphereEraser']
597
597
  },
598
598
  options: [{
599
- name: 'Radius (mm)',
599
+ name: i18next/* default */.A.t('Buttons:Radius (mm)'),
600
600
  id: 'eraser-radius',
601
601
  type: 'range',
602
602
  min: 0.5,
@@ -610,16 +610,16 @@ const toolbarButtons = [{
610
610
  }
611
611
  }
612
612
  }, {
613
- name: 'Shape',
613
+ name: i18next/* default */.A.t('Buttons:Shape'),
614
614
  type: 'radio',
615
615
  id: 'eraser-mode',
616
616
  value: 'CircularEraser',
617
617
  values: [{
618
618
  value: 'CircularEraser',
619
- label: 'Circle'
619
+ label: i18next/* default */.A.t('Buttons:Circle')
620
620
  }, {
621
621
  value: 'SphereEraser',
622
- label: 'Sphere'
622
+ label: i18next/* default */.A.t('Buttons:Sphere')
623
623
  }],
624
624
  commands: 'setToolActiveToolbar'
625
625
  }]
@@ -635,7 +635,7 @@ const toolbarButtons = [{
635
635
  toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush']
636
636
  },
637
637
  options: [{
638
- name: 'Radius (mm)',
638
+ name: i18next/* default */.A.t('Buttons:Radius (mm)'),
639
639
  id: 'threshold-radius',
640
640
  type: 'range',
641
641
  min: 0.5,
@@ -649,16 +649,16 @@ const toolbarButtons = [{
649
649
  }
650
650
  }
651
651
  }, {
652
- name: 'Shape',
652
+ name: i18next/* default */.A.t('Buttons:Shape'),
653
653
  type: 'radio',
654
654
  id: 'eraser-mode',
655
655
  value: 'ThresholdCircularBrush',
656
656
  values: [{
657
657
  value: 'ThresholdCircularBrush',
658
- label: 'Circle'
658
+ label: i18next/* default */.A.t('Buttons:Circle')
659
659
  }, {
660
660
  value: 'ThresholdSphereBrush',
661
- label: 'Sphere'
661
+ label: i18next/* default */.A.t('Buttons:Sphere')
662
662
  }],
663
663
  commands: 'setToolActiveToolbar'
664
664
  }, {
@@ -688,19 +688,19 @@ const toolbarButtons = [{
688
688
  },
689
689
  icon: 'icon-tool-shape',
690
690
  options: [{
691
- name: 'Shape',
691
+ name: i18next/* default */.A.t('Buttons:Shape'),
692
692
  type: 'radio',
693
693
  value: 'CircleScissor',
694
694
  id: 'shape-mode',
695
695
  values: [{
696
696
  value: 'CircleScissor',
697
- label: 'Circle'
697
+ label: i18next/* default */.A.t('Buttons:Circle')
698
698
  }, {
699
699
  value: 'SphereScissor',
700
- label: 'Sphere'
700
+ label: i18next/* default */.A.t('Buttons:Sphere')
701
701
  }, {
702
702
  value: 'RectangleScissor',
703
- label: 'Rectangle'
703
+ label: i18next/* default */.A.t('Buttons:Rectangle')
704
704
  }],
705
705
  commands: 'setToolActiveToolbar'
706
706
  }]
@@ -24,8 +24,8 @@ const SOPClassHandlerId = `${id}.sopClassHandlerModule.${SOPClassHandlerName}`;
24
24
  var react = __webpack_require__(86326);
25
25
  // EXTERNAL MODULE: ../../core/src/index.ts + 69 modules
26
26
  var src = __webpack_require__(42356);
27
- // EXTERNAL MODULE: ../../i18n/src/index.js + 210 modules
28
- var i18n_src = __webpack_require__(68523);
27
+ // EXTERNAL MODULE: ../../i18n/src/index.js + 286 modules
28
+ var i18n_src = __webpack_require__(89010);
29
29
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
30
30
  var esm = __webpack_require__(15327);
31
31
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js
@@ -702,10 +702,12 @@ const commandsModule = ({
702
702
  /* harmony default export */ const src_commandsModule = (commandsModule);
703
703
  // EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx + 192 modules
704
704
  var cornerstone_src = __webpack_require__(71903);
705
- // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3073 modules
706
- var ui_next_src = __webpack_require__(1246);
705
+ // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3075 modules
706
+ var ui_next_src = __webpack_require__(12517);
707
707
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/index.js
708
708
  var utilities = __webpack_require__(53860);
709
+ // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
710
+ var es = __webpack_require__(99993);
709
711
  ;// ../../../extensions/cornerstone-dicom-seg/src/components/LogicalContourOperationsOptions.tsx
710
712
 
711
713
 
@@ -713,6 +715,7 @@ var utilities = __webpack_require__(53860);
713
715
 
714
716
 
715
717
 
718
+
716
719
  const {
717
720
  LogicalOperation
718
721
  } = utilities.contourSegmentation;
@@ -744,6 +747,9 @@ function SegmentSelector({
744
747
  segments,
745
748
  placeholder = 'Select a segment'
746
749
  }) {
750
+ const {
751
+ t
752
+ } = (0,es/* useTranslation */.Bd)('SegmentationPanel');
747
753
  return /*#__PURE__*/react.createElement("div", {
748
754
  className: "flex justify-between gap-6"
749
755
  }, /*#__PURE__*/react.createElement("div", null, label), /*#__PURE__*/react.createElement(ui_next_src/* Select */.l6P, {
@@ -753,7 +759,7 @@ function SegmentSelector({
753
759
  }, /*#__PURE__*/react.createElement(ui_next_src/* SelectTrigger */.bqE, {
754
760
  className: "overflow-hidden"
755
761
  }, /*#__PURE__*/react.createElement(ui_next_src/* SelectValue */.yvm, {
756
- placeholder: placeholder
762
+ placeholder: t(placeholder)
757
763
  })), /*#__PURE__*/react.createElement(ui_next_src/* SelectContent */.gCo, null, segments.map(segment => /*#__PURE__*/react.createElement(ui_next_src/* SelectItem */.ebT, {
758
764
  key: segment.segmentIndex,
759
765
  value: segment.segmentIndex.toString()
@@ -766,6 +772,9 @@ function LogicalContourOperationOptions() {
766
772
  const {
767
773
  segmentationService
768
774
  } = servicesManager.services;
775
+ const {
776
+ t
777
+ } = (0,es/* useTranslation */.Bd)('SegmentationPanel');
769
778
  const {
770
779
  segmentationsWithRepresentations
771
780
  } = (0,cornerstone_src.useActiveViewportSegmentationRepresentations)();
@@ -840,7 +849,7 @@ function LogicalContourOperationOptions() {
840
849
  }, /*#__PURE__*/react.createElement(ui_next_src/* Icons */.FI1.ByName, {
841
850
  name: icon
842
851
  }));
843
- }))), /*#__PURE__*/react.createElement("div", null, operation.label)), /*#__PURE__*/react.createElement("div", {
852
+ }))), /*#__PURE__*/react.createElement("div", null, t(operation.label))), /*#__PURE__*/react.createElement("div", {
844
853
  className: "bg-primary-dark flex h-[62px] w-[88px] items-center justify-center rounded-lg"
845
854
  }, /*#__PURE__*/react.createElement(ui_next_src/* Icons */.FI1.ByName, {
846
855
  name: operation.helperIcon
@@ -862,7 +871,7 @@ function LogicalContourOperationOptions() {
862
871
  onClick: () => {
863
872
  applyLogicalContourOperation();
864
873
  }
865
- }, operation.label)), /*#__PURE__*/react.createElement(ui_next_src/* Separator */.wvv, {
874
+ }, t(operation.label))), /*#__PURE__*/react.createElement(ui_next_src/* Separator */.wvv, {
866
875
  className: "bg-input mt-2 h-[1px]"
867
876
  }), /*#__PURE__*/react.createElement("div", {
868
877
  className: "flex flex-col gap-2"
@@ -873,14 +882,14 @@ function LogicalContourOperationOptions() {
873
882
  onCheckedChange: setCreateNewSegment
874
883
  }), /*#__PURE__*/react.createElement(ui_next_src/* Label */.JU7, {
875
884
  htmlFor: "logical-contour-operations-create-new-segment-switch"
876
- }, "Create a new segment")), /*#__PURE__*/react.createElement("div", {
885
+ }, t('Create a new segment'))), /*#__PURE__*/react.createElement("div", {
877
886
  className: "pl-9"
878
887
  }, /*#__PURE__*/react.createElement(ui_next_src/* Input */.pde, {
879
888
  className: (0,ui_next_src.cn)(createNewSegment ? 'visible' : 'hidden'),
880
889
  disabled: !createNewSegment,
881
890
  id: "logical-contour-operations-create-new-segment-input",
882
891
  type: "text",
883
- placeholder: "New segment name",
892
+ placeholder: t('New segment name'),
884
893
  value: newSegmentName,
885
894
  onChange: e => setNewSegmentName(e.target.value)
886
895
  }))));
@@ -890,29 +899,33 @@ function LogicalContourOperationOptions() {
890
899
 
891
900
 
892
901
 
902
+
893
903
  function SimplifyContourOptions() {
894
904
  const [areaThreshold, setAreaThreshold] = (0,react.useState)(10);
895
905
  const runCommand = (0,src/* useRunCommand */.qN)();
906
+ const {
907
+ t
908
+ } = (0,es/* useTranslation */.Bd)('SegmentationPanel');
896
909
  return /*#__PURE__*/react.createElement("div", {
897
910
  className: "flex w-auto w-[252px] flex-col gap-[8px] text-base font-normal leading-none"
898
911
  }, /*#__PURE__*/react.createElement("div", {
899
912
  className: "flex w-auto flex-col gap-[10px] text-base font-normal leading-none"
900
- }, /*#__PURE__*/react.createElement("div", null, "Fill contour holes"), /*#__PURE__*/react.createElement(ui_next_src/* Button */.$nd, {
913
+ }, /*#__PURE__*/react.createElement("div", null, t('Fill contour holes')), /*#__PURE__*/react.createElement(ui_next_src/* Button */.$nd, {
901
914
  className: "border-primary/60 border",
902
915
  variant: "ghost",
903
916
  onClick: () => {
904
917
  runCommand('removeContourHoles');
905
918
  }
906
- }, "Fill Holes"), /*#__PURE__*/react.createElement(ui_next_src/* Separator */.wvv, {
919
+ }, t('Fill Holes')), /*#__PURE__*/react.createElement(ui_next_src/* Separator */.wvv, {
907
920
  className: "bg-input mt-[20px] h-[1px]"
908
921
  })), /*#__PURE__*/react.createElement("div", {
909
922
  className: "flex w-auto flex-col gap-[10px] text-base font-normal leading-none"
910
- }, /*#__PURE__*/react.createElement("div", null, "Remove Small Contours"), /*#__PURE__*/react.createElement("div", {
923
+ }, /*#__PURE__*/react.createElement("div", null, t('Remove Small Contours')), /*#__PURE__*/react.createElement("div", {
911
924
  className: "flex items-center gap-2 self-end"
912
925
  }, /*#__PURE__*/react.createElement(ui_next_src/* Label */.JU7, {
913
926
  htmlFor: "simplify-contour-options",
914
927
  className: "text-muted-foreground"
915
- }, "Area Threshold"), /*#__PURE__*/react.createElement(ui_next_src/* Input */.pde, {
928
+ }, t('Area Threshold')), /*#__PURE__*/react.createElement(ui_next_src/* Input */.pde, {
916
929
  id: "simplify-contour-options",
917
930
  className: "w-20",
918
931
  type: "number",
@@ -926,46 +939,50 @@ function SimplifyContourOptions() {
926
939
  areaThreshold
927
940
  });
928
941
  }
929
- }, "Remove Small Contours"), /*#__PURE__*/react.createElement(ui_next_src/* Separator */.wvv, {
942
+ }, t('Remove Small Contours')), /*#__PURE__*/react.createElement(ui_next_src/* Separator */.wvv, {
930
943
  className: "bg-input mt-[20px] h-[1px]"
931
944
  })), /*#__PURE__*/react.createElement("div", {
932
945
  className: "flex w-auto flex-col gap-[10px] text-base font-normal leading-none"
933
- }, /*#__PURE__*/react.createElement("div", null, "Create New Segment from Holes"), /*#__PURE__*/react.createElement(ui_next_src/* Button */.$nd, {
946
+ }, /*#__PURE__*/react.createElement("div", null, t('Create New Segment from Holes')), /*#__PURE__*/react.createElement(ui_next_src/* Button */.$nd, {
934
947
  className: "border-primary/60 border",
935
948
  variant: "ghost",
936
949
  onClick: () => {
937
950
  runCommand('convertContourHoles');
938
951
  }
939
- }, "Create New Segment")));
952
+ }, t('Create New Segment'))));
940
953
  }
941
954
  /* harmony default export */ const components_SimplifyContourOptions = (SimplifyContourOptions);
942
955
  ;// ../../../extensions/cornerstone-dicom-seg/src/components/SmoothContoursOptions.tsx
943
956
 
944
957
 
945
958
 
959
+
946
960
  function SmoothContoursOptions() {
947
961
  const runCommand = (0,src/* useRunCommand */.qN)();
962
+ const {
963
+ t
964
+ } = (0,es/* useTranslation */.Bd)('SegmentationPanel');
948
965
  return /*#__PURE__*/react.createElement("div", {
949
966
  className: "flex w-auto w-[245px] flex-col gap-[8px] text-base font-normal leading-none"
950
967
  }, /*#__PURE__*/react.createElement("div", {
951
968
  className: "flex w-auto flex-col gap-[10px] text-base font-normal leading-none"
952
- }, /*#__PURE__*/react.createElement("div", null, "Smooth all edges"), /*#__PURE__*/react.createElement(ui_next_src/* Button */.$nd, {
969
+ }, /*#__PURE__*/react.createElement("div", null, t('Smooth all edges')), /*#__PURE__*/react.createElement(ui_next_src/* Button */.$nd, {
953
970
  className: "border-primary/60 border",
954
971
  variant: "ghost",
955
972
  onClick: () => {
956
973
  runCommand('smoothContours');
957
974
  }
958
- }, "Smooth Edges"), /*#__PURE__*/react.createElement(ui_next_src/* Separator */.wvv, {
975
+ }, t('Smooth Edges')), /*#__PURE__*/react.createElement(ui_next_src/* Separator */.wvv, {
959
976
  className: "bg-input mt-[20px] h-[1px]"
960
977
  })), /*#__PURE__*/react.createElement("div", {
961
978
  className: "flex w-auto flex-col gap-[10px] text-base font-normal leading-none"
962
- }, /*#__PURE__*/react.createElement("div", null, "Remove extra points"), /*#__PURE__*/react.createElement(ui_next_src/* Button */.$nd, {
979
+ }, /*#__PURE__*/react.createElement("div", null, t('Remove extra points')), /*#__PURE__*/react.createElement(ui_next_src/* Button */.$nd, {
963
980
  className: "border-primary/60 border",
964
981
  variant: "ghost",
965
982
  onClick: () => {
966
983
  runCommand('decimateContours');
967
984
  }
968
- }, "Remove Points")));
985
+ }, t('Remove Points'))));
969
986
  }
970
987
  /* harmony default export */ const components_SmoothContoursOptions = (SmoothContoursOptions);
971
988
  ;// ../../../extensions/cornerstone-dicom-seg/src/getToolbarModule.ts
@@ -974,6 +991,7 @@ function SmoothContoursOptions() {
974
991
 
975
992
 
976
993
 
994
+
977
995
  function getToolbarModule({
978
996
  servicesManager
979
997
  }) {
@@ -1023,7 +1041,7 @@ function getToolbarModule({
1023
1041
  if (!segmentations?.length) {
1024
1042
  return {
1025
1043
  disabled: true,
1026
- disabledText: 'No segmentations available'
1044
+ disabledText: i18n_src/* default */.A.t('SegmentationPanel:No segmentations available')
1027
1045
  };
1028
1046
  }
1029
1047
  if (!segmentations.some(segmentation => Boolean(segmentation.type === segmentationRepresentationType))) {
@@ -1049,21 +1067,21 @@ function getToolbarModule({
1049
1067
  if (!segmentations?.length) {
1050
1068
  return {
1051
1069
  disabled: true,
1052
- disabledText: disabledText ?? 'No segmentations available'
1070
+ disabledText: disabledText ?? i18n_src/* default */.A.t('SegmentationPanel:No segmentations available')
1053
1071
  };
1054
1072
  }
1055
1073
  const activeSegmentation = segmentationService.getActiveSegmentation(viewportId);
1056
1074
  if (!Object.keys(activeSegmentation.segments).length) {
1057
1075
  return {
1058
1076
  disabled: true,
1059
- disabledText: 'Add segment to enable this tool'
1077
+ disabledText: i18n_src/* default */.A.t('SegmentationPanel:Add segment to enable this tool')
1060
1078
  };
1061
1079
  }
1062
1080
  const toolGroup = toolGroupService.getToolGroupForViewport(viewportId);
1063
1081
  if (!toolGroup) {
1064
1082
  return {
1065
1083
  disabled: true,
1066
- disabledText: disabledText ?? 'Not available on the current viewport'
1084
+ disabledText: disabledText ?? i18n_src/* default */.A.t('SegmentationPanel:Not available on the current viewport')
1067
1085
  };
1068
1086
  }
1069
1087
  if (!toolNames) {
@@ -1076,7 +1094,7 @@ function getToolbarModule({
1076
1094
  if (!toolGroup.hasTool(toolName) && !toolNames) {
1077
1095
  return {
1078
1096
  disabled: true,
1079
- disabledText: disabledText ?? 'Not available on the current viewport'
1097
+ disabledText: disabledText ?? i18n_src/* default */.A.t('SegmentationPanel:Not available on the current viewport')
1080
1098
  };
1081
1099
  }
1082
1100
  const isPrimaryActive = toolNames ? toolNames.includes(toolGroup.getActivePrimaryMouseButtonTool()) : toolGroup.getActivePrimaryMouseButtonTool() === toolName;
@@ -315,8 +315,8 @@ const SOPClassHandlerId = `${id}.sopClassHandlerModule.${SOPClassHandlerName}`;
315
315
  var react = __webpack_require__(86326);
316
316
  // EXTERNAL MODULE: ../../core/src/index.ts + 69 modules
317
317
  var src = __webpack_require__(42356);
318
- // EXTERNAL MODULE: ../../i18n/src/index.js + 210 modules
319
- var i18n_src = __webpack_require__(68523);
318
+ // EXTERNAL MODULE: ../../i18n/src/index.js + 286 modules
319
+ var i18n_src = __webpack_require__(89010);
320
320
  // EXTERNAL MODULE: ../../../node_modules/dcmjs/build/dcmjs.es.js
321
321
  var dcmjs_es = __webpack_require__(5842);
322
322
  ;// ../../../extensions/cornerstone-dicom-rt/src/loadRTStruct.js
@@ -726,8 +726,8 @@ var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
726
726
  var src = __webpack_require__(42356);
727
727
  // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
728
728
  var es = __webpack_require__(99993);
729
- // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3073 modules
730
- var ui_next_src = __webpack_require__(1246);
729
+ // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3075 modules
730
+ var ui_next_src = __webpack_require__(12517);
731
731
  ;// ../../../extensions/tmtv/src/Panels/PanelPetSUV.tsx
732
732
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
733
733
 
@@ -959,9 +959,9 @@ function PanelPetSUV() {
959
959
  })), /*#__PURE__*/react.createElement(ui_next_src/* Button */.$nd, {
960
960
  variant: "default",
961
961
  size: "sm",
962
- className: "w-28 self-end",
962
+ className: "self-end px-4",
963
963
  onClick: updateMetadata
964
- }, "Reload Data")))))));
964
+ }, t('Reload Data'))))))));
965
965
  }
966
966
  PanelPetSUV.propTypes = {
967
967
  servicesManager: prop_types_default().shape({
@@ -1109,11 +1109,14 @@ function PanelTMTV({
1109
1109
  configuration: configuration
1110
1110
  }, /*#__PURE__*/react.createElement(PanelRoiThresholdSegmentation, null)));
1111
1111
  }
1112
+ // EXTERNAL MODULE: ../../i18n/src/index.js + 286 modules
1113
+ var i18n_src = __webpack_require__(89010);
1112
1114
  ;// ../../../extensions/tmtv/src/getPanelModule.tsx
1113
1115
 
1114
1116
 
1115
1117
 
1116
1118
 
1119
+
1117
1120
  function getPanelModule({
1118
1121
  commandsManager,
1119
1122
  extensionManager,
@@ -1128,7 +1131,7 @@ function getPanelModule({
1128
1131
  const wrappedROIThresholdToolbox = () => {
1129
1132
  return /*#__PURE__*/react.createElement(default_src.Toolbox, {
1130
1133
  buttonSectionId: toolbarService.sections.roiThresholdToolbox,
1131
- title: "Threshold Tools"
1134
+ title: i18n_src/* default */.A.t('ROIThresholdConfiguration:Threshold Tools')
1132
1135
  });
1133
1136
  };
1134
1137
  const wrappedROIThresholdExport = () => {
@@ -1137,7 +1140,7 @@ function getPanelModule({
1137
1140
  const wrappedPanelTMTV = () => {
1138
1141
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(default_src.Toolbox, {
1139
1142
  buttonSectionId: toolbarService.sections.roiThresholdToolbox,
1140
- title: "Threshold Tools"
1143
+ title: i18n_src/* default */.A.t('ROIThresholdConfiguration:Threshold Tools')
1141
1144
  }), /*#__PURE__*/react.createElement(PanelTMTV, {
1142
1145
  commandsManager: commandsManager,
1143
1146
  servicesManager: servicesManager
@@ -1359,8 +1362,6 @@ function init({
1359
1362
  }
1360
1363
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
1361
1364
  var dist_esm = __webpack_require__(15327);
1362
- // EXTERNAL MODULE: ../../i18n/src/index.js + 210 modules
1363
- var i18n_src = __webpack_require__(68523);
1364
1365
  ;// ../../../extensions/tmtv/src/utils/getThresholdValue.ts
1365
1366
 
1366
1367
 
@@ -1963,15 +1964,6 @@ const commandsModule = ({
1963
1964
 
1964
1965
  const ROI_STAT = 'roi_stat';
1965
1966
  const RANGE = 'range';
1966
- const options = [{
1967
- value: ROI_STAT,
1968
- label: 'Max',
1969
- placeHolder: 'Max'
1970
- }, {
1971
- value: RANGE,
1972
- label: 'Range',
1973
- placeHolder: 'Range'
1974
- }];
1975
1967
  function ROIThresholdConfiguration({
1976
1968
  config,
1977
1969
  dispatch,
@@ -1980,6 +1972,15 @@ function ROIThresholdConfiguration({
1980
1972
  const {
1981
1973
  t
1982
1974
  } = (0,es/* useTranslation */.Bd)('ROIThresholdConfiguration');
1975
+ const options = [{
1976
+ value: ROI_STAT,
1977
+ label: t('Max'),
1978
+ placeHolder: t('Max')
1979
+ }, {
1980
+ value: RANGE,
1981
+ label: t('Range'),
1982
+ placeHolder: t('Range')
1983
+ }];
1983
1984
  const handlePercentageOfMaxSUVChange = e => {
1984
1985
  let value = e.target.value;
1985
1986
  if (value === '.') {
@@ -2044,7 +2045,7 @@ function ROIThresholdConfiguration({
2044
2045
  className: "mr-2 text-sm"
2045
2046
  }, /*#__PURE__*/react.createElement("div", {
2046
2047
  className: "flex flex-col space-y-2"
2047
- }, /*#__PURE__*/react.createElement(ui_next_src/* Label */.JU7, null, "Lower & Upper Ranges"), /*#__PURE__*/react.createElement("div", {
2048
+ }, /*#__PURE__*/react.createElement(ui_next_src/* Label */.JU7, null, t('Lower & Upper Ranges')), /*#__PURE__*/react.createElement("div", {
2048
2049
  className: "flex items-center"
2049
2050
  }, /*#__PURE__*/react.createElement("div", {
2050
2051
  className: "w-10 text-left"
@@ -2122,6 +2123,7 @@ function ROIThresholdConfiguration({
2122
2123
 
2123
2124
 
2124
2125
 
2126
+
2125
2127
  const LOWER_CT_THRESHOLD_DEFAULT = -1024;
2126
2128
  const UPPER_CT_THRESHOLD_DEFAULT = 1024;
2127
2129
  const LOWER_PT_THRESHOLD_DEFAULT = 2.5;
@@ -2169,6 +2171,9 @@ function RectangleROIOptions() {
2169
2171
  } = (0,src/* useSystem */.Jg)();
2170
2172
  const segmentations = (0,cornerstone_src.useSegmentations)();
2171
2173
  const activeSegmentation = segmentations[0];
2174
+ const {
2175
+ t
2176
+ } = (0,es/* useTranslation */.Bd)('ROIThresholdConfiguration');
2172
2177
  const runCommand = (0,react.useCallback)((commandName, commandOptions = {}) => {
2173
2178
  return commandsManager.runCommand(commandName, commandOptions);
2174
2179
  }, [commandsManager]);
@@ -2202,7 +2207,7 @@ function RectangleROIOptions() {
2202
2207
  variant: "default",
2203
2208
  className: "my-3 mr-auto w-20",
2204
2209
  onClick: handleROIThresholding
2205
- }, "Run"));
2210
+ }, t('Run')));
2206
2211
  }
2207
2212
  /* harmony default export */ const Panels_RectangleROIOptions = (RectangleROIOptions);
2208
2213
  ;// ../../../extensions/tmtv/src/getToolbarModule.tsx