@undp/carbon-library 1.0.292-CARBON-368.1 → 1.0.292-CARBON-366.0

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.
package/dist/cjs/index.js CHANGED
@@ -6693,7 +6693,7 @@ var AddNewCompanyComponent = function (props) {
6693
6693
  String(value).trim() === undefined ||
6694
6694
  value === null ||
6695
6695
  value === undefined) {
6696
- throw new Error("".concat(t("addCompany:nationalSopValue"), " ").concat(t("isRequired")));
6696
+ throw new Error("".concat(t("addCompany:nationalSopValue"), " s").concat(t("isRequired")));
6697
6697
  }
6698
6698
  return [2 /*return*/];
6699
6699
  });
@@ -7868,15 +7868,6 @@ var ProgrammeManagementComponent = function (props) {
7868
7868
  setMinistryLevelFilter(false);
7869
7869
  }
7870
7870
  }
7871
- else if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.CERTIFIER) {
7872
- setDataFilter(v.target.checked
7873
- ? {
7874
- key: "certifierId",
7875
- operation: "ANY",
7876
- value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyId,
7877
- }
7878
- : undefined);
7879
- }
7880
7871
  else {
7881
7872
  setDataFilter(v.target.checked
7882
7873
  ? {
@@ -23797,7 +23788,7 @@ var CreditTransferComponent = function (props) {
23797
23788
  else {
23798
23789
  setMinistryLevelFilter(false);
23799
23790
  }
23800
- } }, t("view:ministryLevel")))),
23791
+ } }, t("ndcAction:ministryLevel")))),
23801
23792
  React.createElement("div", { className: "search-bar" },
23802
23793
  React.createElement(Search, { onPressEnter: onSearch, placeholder: "Search", allowClear: true, onChange: function (e) {
23803
23794
  return e.target.value === ""
@@ -25564,215 +25555,19 @@ var optionDonutPieB = {
25564
25555
  var css_248z$8 = ".stastic-card-main-container {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 11.2rem;\n background-color: white;\n border-radius: 0.625rem;\n padding: 1rem 1.875rem 0 1.875rem; }\n .stastic-card-main-container .title-section {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n height: 3.3rem; }\n .stastic-card-main-container .title-section .title {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: flex-start;\n font-family: 'Inter';\n font-size: 1.15rem;\n font-weight: 600;\n width: 95%;\n color: rgba(58, 53, 65, 0.8); }\n .stastic-card-main-container .title-section .info-container {\n display: flex;\n flex-direction: row;\n width: 5%;\n align-items: center;\n justify-content: flex-end; }\n .stastic-card-main-container .values-section {\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: flex-start;\n justify-content: space-between;\n height: 5rem; }\n .stastic-card-main-container .values-section .values-and-unit {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n width: 60%; }\n .stastic-card-main-container .values-section .values-and-unit .value {\n font-family: 'Inter';\n font-size: 2rem;\n font-weight: 600;\n width: 100%;\n color: #16b1ff;\n padding: 0; }\n .stastic-card-main-container .values-section .values-and-unit .unit {\n margin-bottom: -0.6rem;\n margin-left: 0.2rem;\n margin-top: -0.66rem;\n font-family: 'Inter';\n font-size: 0.875rem;\n font-weight: 500;\n width: 100%;\n color: rgba(58, 53, 65, 0.5); }\n .stastic-card-main-container .values-section .icon-section {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n width: 40%;\n justify-content: flex-start; }\n .stastic-card-main-container .values-section .icon-section img {\n height: 80px; }\n .stastic-card-main-container .values-section .updated-on-null {\n display: flex;\n flex-direction: row;\n font-size: 0.813rem;\n border-radius: 3.125rem;\n padding: 0 0.5rem 0 0.5rem;\n margin-top: 1rem;\n color: transparent;\n background-color: transparent; }\n .stastic-card-main-container .updated-on {\n display: flex;\n flex-direction: row;\n font-size: 0.75rem;\n border-radius: 3.125rem;\n padding: 0.05rem 0.8rem 0.05rem 0.8rem;\n width: max-content;\n color: #16b1ff;\n background-color: rgba(185, 226, 244, 0.4); }\n\n.stastic-card-main-container:hover {\n box-shadow: rgba(0, 5, 18, 0.2) 0px 8px 24px; }\n";
25565
25556
  styleInject(css_248z$8);
25566
25557
 
25567
- var toolTipTextGen = function (companyRole, cardType, mine) {
25568
- var text = '';
25569
- if (companyRole === exports.CompanyRole.GOVERNMENT) {
25570
- if (cardType === exports.StatsCardsTypes.PROGRAMMES_PENDING) {
25571
- text = 'Pending state projects awaiting authorisation';
25572
- }
25573
- else if (cardType === exports.StatsCardsTypes.TRANSFER_REQUEST_SENT) {
25574
- text =
25575
- 'Pending credit transfer requests sent to project owners initiated by your organisation';
25576
- }
25577
- else if (cardType === exports.StatsCardsTypes.CREDIT_BALANCE) {
25578
- text = 'Total credit balance owned by your organisation';
25579
- }
25580
- else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
25581
- text =
25582
- 'Number of projects created during the specified period and their project state in the carbon registry at present';
25583
- }
25584
- else if (cardType === exports.StatsCardsTypes.CREDITS) {
25585
- text =
25586
- 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
25587
- }
25588
- else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
25589
- text =
25590
- 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
25591
- }
25592
- else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
25593
- text =
25594
- 'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
25595
- }
25596
- else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
25597
- text =
25598
- 'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
25599
- }
25600
- else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
25601
- text =
25602
- 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
25603
- }
25604
- else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
25605
- text =
25606
- 'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
25607
- }
25608
- else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
25609
- text =
25610
- 'Locations of the projects created during the specified period and their project states in the carbon registry at present';
25611
- }
25612
- else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
25613
- text =
25614
- 'Locations of credits of international transfer requests recognised during the specified period';
25615
- }
25616
- }
25617
- else if (companyRole === exports.CompanyRole.PROGRAMME_DEVELOPER) {
25618
- if (cardType === exports.StatsCardsTypes.TRANSFER_REQUEST_RECEIVED) {
25619
- text = 'Pending credit transfer requests received by your organisation';
25620
- }
25621
- else if (cardType === exports.StatsCardsTypes.TRANSFER_REQUEST_SENT) {
25622
- text = 'Pending local credit transfer requests initiated by your organisation';
25623
- }
25624
- else if (cardType === exports.StatsCardsTypes.CREDIT_BALANCE) {
25625
- text = 'Total credit balance owned by your organisation';
25626
- }
25627
- else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
25628
- text =
25629
- 'Number of projects created during the specified period and their project state in the carbon registry at present, owned by your organisation';
25630
- }
25631
- else if (cardType === exports.StatsCardsTypes.CREDITS) {
25632
- text =
25633
- 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present, owned by your organisation';
25634
- }
25635
- else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
25636
- text =
25637
- 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present, owned by your organisation';
25638
- }
25639
- else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
25640
- text =
25641
- 'Graphical representation of the number of projects created during the specified period, owned by your organisation, in each project state in the carbon registry at present';
25642
- }
25643
- else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
25644
- text =
25645
- 'Graphical representation of the number of projects owned by your organisation, in each project sector created during the specified time in the carbon registry';
25646
- }
25647
- else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
25648
- text =
25649
- 'Graphical representation of the number of credits of projects created during the specified period, owned by your organisation, in each credit state in the carbon registry at present';
25650
- }
25651
- else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
25652
- text =
25653
- 'Graphical representation of the number of credits of projects created during the specified period, owned by your organisation, certified, uncertified and revoked in the carbon registry at present';
25654
- }
25655
- else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
25656
- text =
25657
- 'Locations of the projects created during the specified period, owned by your organisation, and their project states in the carbon registry at present';
25658
- }
25659
- else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
25660
- text =
25661
- 'Locations of credits international transfer requests of projects owned by your organisation recognised during the specified period';
25662
- }
25663
- }
25664
- else if (companyRole === exports.CompanyRole.CERTIFIER && mine === true) {
25665
- if (cardType === exports.StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
25666
- text =
25667
- 'Number of projects not yet certified including certificates revoked by your organisation';
25668
- }
25669
- else if (cardType === exports.StatsCardsTypes.PROGRAMMES_CERTIFIED) {
25670
- text = 'Number of projects certified by your organisation';
25671
- }
25672
- else if (cardType === exports.StatsCardsTypes.CREDIT_CERTIFIED) {
25673
- text = 'Number of credits certified by your organisation';
25674
- }
25675
- else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
25676
- text =
25677
- 'Number of projects created during the specified period, certified by your organisation, and their project state in the carbon registry at present';
25678
- }
25679
- else if (cardType === exports.StatsCardsTypes.CREDITS) {
25680
- text =
25681
- 'Number of credits of projects created during the specified period, certified by your organisation and their credit state in the carbon registry at present';
25682
- }
25683
- else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
25684
- text =
25685
- 'Number of credits of projects created during the specified period, certified by your organisation, uncertified, certified and revoked in the carbon registry at present';
25686
- }
25687
- else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
25688
- text =
25689
- 'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
25690
- }
25691
- else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
25692
- text =
25693
- 'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
25694
- }
25695
- else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
25696
- text =
25697
- 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
25698
- }
25699
- else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
25700
- text =
25701
- 'Graphical representation of the number of credits of projects certified, uncertified and revoked (refer above for states), by your organisation, spread over the specified time';
25702
- }
25703
- else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
25704
- text =
25705
- 'Locations of the projects created during the specified period, certified by your organisation, and their project states in the carbon registry at present';
25706
- }
25707
- else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
25708
- text =
25709
- 'Locations of credits of international transfer requests of projects certified by your organisation recognised during the specified period';
25710
- }
25711
- }
25712
- else if (companyRole === exports.CompanyRole.CERTIFIER && !mine) {
25713
- if (cardType === exports.StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
25714
- text =
25715
- 'Number of projects not yet certified including certificates revoked by your organisation';
25716
- }
25717
- else if (cardType === exports.StatsCardsTypes.PROGRAMMES_CERTIFIED) {
25718
- text = 'Number of projects certified by your organisation';
25719
- }
25720
- else if (cardType === exports.StatsCardsTypes.CREDIT_CERTIFIED) {
25721
- text = 'Number of credits certified by your organisation';
25722
- }
25723
- else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
25724
- text =
25725
- 'Number of projects created during the specified period and their project state in the carbon registry at present';
25726
- }
25727
- else if (cardType === exports.StatsCardsTypes.CREDITS) {
25728
- text =
25729
- 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
25730
- }
25731
- else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
25732
- text =
25733
- 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
25734
- }
25735
- else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
25736
- text =
25737
- 'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
25738
- }
25739
- else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
25740
- text =
25741
- 'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
25742
- }
25743
- else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
25744
- text =
25745
- 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
25746
- }
25747
- else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
25748
- text =
25749
- 'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
25750
- }
25751
- else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
25752
- text =
25753
- 'Locations of the projects created during the specified period and their project states in the carbon registry at present';
25754
- }
25755
- else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
25756
- text =
25757
- 'Locations of credits of international transfer requests recognised during the specified period';
25758
- }
25759
- }
25760
- return text;
25761
- };
25762
-
25763
25558
  var StasticCard = function (props) {
25764
- var value = props.value, title = props.title, updatedDate = props.updatedDate, icon = props.icon, loading = props.loading, companyRole = props.companyRole;
25559
+ var value = props.value, title = props.title, updatedDate = props.updatedDate, icon = props.icon, loading = props.loading; props.companyRole; var tooltip = props.tooltip, t = props.t;
25765
25560
  return (React.createElement("div", { className: "stastic-card-main-container" }, loading ? (React.createElement(antd.Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
25766
25561
  React.createElement("div", { className: "title-section" },
25767
- React.createElement("div", { className: "title" }, title),
25562
+ React.createElement("div", { className: "title" }, t(title)),
25768
25563
  React.createElement("div", { className: "info-container" },
25769
- React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title: toolTipTextGen(companyRole, title) },
25564
+ React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title: tooltip },
25770
25565
  React.createElement(Icon.InfoCircle, { color: "#000000", size: 17 })))),
25771
25566
  React.createElement("div", { className: "values-section" },
25772
25567
  React.createElement("div", { className: "values-and-unit" },
25773
- title.includes('Credit') && React.createElement("div", { className: "unit" }, "ITMOs"),
25774
- React.createElement("div", { className: "value" }, title.includes('Credit')
25775
- ? value === 0 || String(value) === 'NaN'
25568
+ title.includes("credit") && React.createElement("div", { className: "unit" }, "ITMOs"),
25569
+ React.createElement("div", { className: "value" }, title.includes("credit")
25570
+ ? value === 0 || String(value) === "NaN"
25776
25571
  ? 0
25777
25572
  : addCommSep(value)
25778
25573
  : value)),
@@ -27378,54 +27173,69 @@ var RegistryDashboardComponent = function (props) {
27378
27173
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27379
27174
  exports.CompanyRole.PROGRAMME_DEVELOPER
27380
27175
  ? transferRequestReceived
27381
- : programmesUnCertifed, title: t((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27176
+ : programmesUnCertifed, title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27382
27177
  ? "programmesPending"
27383
27178
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27384
27179
  exports.CompanyRole.PROGRAMME_DEVELOPER
27385
27180
  ? "trasnferReqReceived"
27386
- : "programmesUnCertified"), updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27181
+ : "programmesUnCertified", updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27387
27182
  ? lastUpdateProgrammesStats
27388
27183
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27389
27184
  exports.CompanyRole.PROGRAMME_DEVELOPER
27390
27185
  ? lastUpdatePendingTransferReceived
27391
27186
  : lastUpdateProgrammesCertifiable, icon: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT ? (React.createElement(Icon.ClockHistory, { color: "#16B1FF", size: 80 })) : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27392
- exports.CompanyRole.PROGRAMME_DEVELOPER ? (React.createElement(Icon.BoxArrowInRight, { color: "#16B1FF", size: 80 })) : (React.createElement(Icon.ShieldX, { color: "#16B1FF", size: 80 })), loading: loadingWithoutTimeRange, companyRole: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole })),
27187
+ exports.CompanyRole.PROGRAMME_DEVELOPER ? (React.createElement(Icon.BoxArrowInRight, { color: "#16B1FF", size: 80 })) : (React.createElement(Icon.ShieldX, { color: "#16B1FF", size: 80 })), loading: loadingWithoutTimeRange, companyRole: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole, tooltip: t((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27188
+ ? "tTprogrammespendingGoverment"
27189
+ : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27190
+ exports.CompanyRole.PROGRAMME_DEVELOPER
27191
+ ? "tTTransferReqRecProgrammeDev"
27192
+ : "tTProgrammesUnCertiCertifier"), t: t })),
27393
27193
  React.createElement(antd.Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col" },
27394
27194
  React.createElement(StasticCard, { value: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27395
27195
  ? transferRequestSent
27396
27196
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27397
27197
  exports.CompanyRole.PROGRAMME_DEVELOPER
27398
27198
  ? transferRequestSent
27399
- : programmesCertifed, title: t((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27199
+ : programmesCertifed, title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27400
27200
  ? "trasnferReqInit"
27401
27201
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27402
27202
  exports.CompanyRole.PROGRAMME_DEVELOPER
27403
27203
  ? "trasnferReqInit"
27404
- : "programmesCertified"), updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27204
+ : "programmesCertified", updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27405
27205
  ? lastUpdatePendingTransferSent
27406
27206
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27407
27207
  exports.CompanyRole.PROGRAMME_DEVELOPER
27408
27208
  ? lastUpdatePendingTransferSent
27409
27209
  : lastUpdateProgrammesCertified, icon: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT ? (React.createElement(Icon.BoxArrowRight, { color: "#16B1FF", size: 80 })) : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27410
- exports.CompanyRole.PROGRAMME_DEVELOPER ? (React.createElement(Icon.BoxArrowRight, { color: "#16B1FF", size: 80 })) : (React.createElement(Icon.ShieldCheck, { color: "#16B1FF", size: 80 })), loading: loadingWithoutTimeRange, companyRole: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole })),
27210
+ exports.CompanyRole.PROGRAMME_DEVELOPER ? (React.createElement(Icon.BoxArrowRight, { color: "#16B1FF", size: 80 })) : (React.createElement(Icon.ShieldCheck, { color: "#16B1FF", size: 80 })), loading: loadingWithoutTimeRange, companyRole: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole, tooltip: t((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27211
+ ? "tTTransferReqSentGovernment"
27212
+ : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27213
+ exports.CompanyRole.PROGRAMME_DEVELOPER
27214
+ ? "tTTransferReqInitProgrammeDev"
27215
+ : "tTProgrammesCertiCertifier"), t: t })),
27411
27216
  React.createElement(antd.Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col" },
27412
27217
  React.createElement(StasticCard, { value: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27413
27218
  ? creditBalanceWithoutTimeRange
27414
27219
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27415
27220
  exports.CompanyRole.PROGRAMME_DEVELOPER
27416
27221
  ? creditBalanceWithoutTimeRange
27417
- : creditCertiedBalanceWithoutTimeRange, title: t((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27222
+ : creditCertiedBalanceWithoutTimeRange, title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27418
27223
  ? "creditBal"
27419
27224
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27420
27225
  exports.CompanyRole.PROGRAMME_DEVELOPER
27421
27226
  ? "creditBal"
27422
- : "creditCertified"), updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27227
+ : "creditCertified", updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27423
27228
  ? lastUpdateCreditBalance
27424
27229
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27425
27230
  exports.CompanyRole.PROGRAMME_DEVELOPER
27426
27231
  ? lastUpdateCreditBalance
27427
27232
  : lastUpdateProgrammesCertified, icon: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT ? (React.createElement(Icon.Gem, { color: "#16B1FF", size: 80 })) : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27428
- exports.CompanyRole.PROGRAMME_DEVELOPER ? (React.createElement(Icon.Gem, { color: "#16B1FF", size: 80 })) : (React.createElement(Icon.ShieldExclamation, { color: "#16B1FF", size: 80 })), loading: loadingWithoutTimeRange, companyRole: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole })))),
27233
+ exports.CompanyRole.PROGRAMME_DEVELOPER ? (React.createElement(Icon.Gem, { color: "#16B1FF", size: 80 })) : (React.createElement(Icon.ShieldExclamation, { color: "#16B1FF", size: 80 })), loading: loadingWithoutTimeRange, companyRole: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole, tooltip: t((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27234
+ ? "tTCreditBalanceGovernment"
27235
+ : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27236
+ exports.CompanyRole.PROGRAMME_DEVELOPER
27237
+ ? "tTCreditBalanceProgrammeDev"
27238
+ : "tTCreditCertifiedCertifier"), t: t })))),
27429
27239
  ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT ||
27430
27240
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.CERTIFIER ||
27431
27241
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.MINISTRY) &&
@@ -28524,9 +28334,7 @@ var InvestmentBody = function (props) {
28524
28334
  React.createElement("div", { className: "invester" },
28525
28335
  React.createElement("div", { className: "name-and-progress" },
28526
28336
  React.createElement("div", { className: "name" }, investmentData === null || investmentData === void 0 ? void 0 : investmentData.invester),
28527
- React.createElement("div", { className: "progress" },
28528
- (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === exports.InvestmentStatus.APPROVED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
28529
- (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === exports.InvestmentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
28337
+ React.createElement("div", { className: "progress" }, (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === exports.InvestmentStatus.APPROVED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })))),
28530
28338
  React.createElement("div", { className: "time" }, moment(parseInt(investmentData === null || investmentData === void 0 ? void 0 : investmentData.createdAt)).format("DD MMMM YYYY @ HH:mm"))),
28531
28339
  React.createElement("div", { className: "amount" },
28532
28340
  "$",
@@ -28996,26 +28804,8 @@ var ProgrammeRetireForm = function (props) {
28996
28804
  var ProgrammeRevokeForm = function (props) {
28997
28805
  var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, showCertifiers = props.showCertifiers, translator = props.translator;
28998
28806
  var t = translator.t;
28999
- var form = antd.Form.useForm()[0];
29000
28807
  var _a = React.useState(undefined), popupError = _a[0], setPopupError = _a[1];
29001
28808
  var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
29002
- var _c = React.useState(false), remarks = _c[0], setRemarks = _c[1];
29003
- var onRemarkValues = function () { return __awaiter(void 0, void 0, void 0, function () {
29004
- var comment;
29005
- return __generator(this, function (_a) {
29006
- comment = form.getFieldValue("comment");
29007
- if (comment === undefined || comment === "") {
29008
- setRemarks(false);
29009
- }
29010
- else {
29011
- setRemarks(true);
29012
- }
29013
- return [2 /*return*/];
29014
- });
29015
- }); };
29016
- React.useEffect(function () {
29017
- onRemarkValues();
29018
- });
29019
28809
  return (React.createElement("div", { className: "transfer-form" },
29020
28810
  React.createElement(antd.Row, null,
29021
28811
  React.createElement(antd.Col, { span: 24, className: "sub-text" }, subText)),
@@ -29023,7 +28813,7 @@ var ProgrammeRevokeForm = function (props) {
29023
28813
  certifierId: programme.certifierId && programme.certifierId.length === 1
29024
28814
  ? Number(programme.certifierId[0])
29025
28815
  : undefined,
29026
- }, onChange: function () { return setPopupError(undefined); }, onValuesChange: onRemarkValues, form: form, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
28816
+ }, onChange: function () { return setPopupError(undefined); }, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
29027
28817
  var res;
29028
28818
  return __generator(this, function (_a) {
29029
28819
  switch (_a.label) {
@@ -29062,7 +28852,7 @@ var ProgrammeRevokeForm = function (props) {
29062
28852
  popupError ? (React.createElement(antd.Alert, { className: "error", message: popupError, type: "error", showIcon: true })) : (""),
29063
28853
  React.createElement(antd.Form.Item, { className: "footer" },
29064
28854
  React.createElement(antd.Button, { htmlType: "button", onClick: onCancel }, t("view:cancel")),
29065
- React.createElement(antd.Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading, disabled: !remarks }, actionBtnText)))));
28855
+ React.createElement(antd.Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading }, actionBtnText)))));
29066
28856
  };
29067
28857
 
29068
28858
  var ProgrammeTransferForm = function (props) {