@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 +35 -245
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/StasticCard/stasticCard.d.ts +2 -0
- package/dist/esm/index.js +35 -245
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/StasticCard/stasticCard.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -6672,7 +6672,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6672
6672
|
String(value).trim() === undefined ||
|
6673
6673
|
value === null ||
|
6674
6674
|
value === undefined) {
|
6675
|
-
throw new Error("".concat(t("addCompany:nationalSopValue"), " ").concat(t("isRequired")));
|
6675
|
+
throw new Error("".concat(t("addCompany:nationalSopValue"), " s").concat(t("isRequired")));
|
6676
6676
|
}
|
6677
6677
|
return [2 /*return*/];
|
6678
6678
|
});
|
@@ -7847,15 +7847,6 @@ var ProgrammeManagementComponent = function (props) {
|
|
7847
7847
|
setMinistryLevelFilter(false);
|
7848
7848
|
}
|
7849
7849
|
}
|
7850
|
-
else if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.CERTIFIER) {
|
7851
|
-
setDataFilter(v.target.checked
|
7852
|
-
? {
|
7853
|
-
key: "certifierId",
|
7854
|
-
operation: "ANY",
|
7855
|
-
value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyId,
|
7856
|
-
}
|
7857
|
-
: undefined);
|
7858
|
-
}
|
7859
7850
|
else {
|
7860
7851
|
setDataFilter(v.target.checked
|
7861
7852
|
? {
|
@@ -23776,7 +23767,7 @@ var CreditTransferComponent = function (props) {
|
|
23776
23767
|
else {
|
23777
23768
|
setMinistryLevelFilter(false);
|
23778
23769
|
}
|
23779
|
-
} }, t("
|
23770
|
+
} }, t("ndcAction:ministryLevel")))),
|
23780
23771
|
React.createElement("div", { className: "search-bar" },
|
23781
23772
|
React.createElement(Search, { onPressEnter: onSearch, placeholder: "Search", allowClear: true, onChange: function (e) {
|
23782
23773
|
return e.target.value === ""
|
@@ -25543,215 +25534,19 @@ var optionDonutPieB = {
|
|
25543
25534
|
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";
|
25544
25535
|
styleInject(css_248z$8);
|
25545
25536
|
|
25546
|
-
var toolTipTextGen = function (companyRole, cardType, mine) {
|
25547
|
-
var text = '';
|
25548
|
-
if (companyRole === CompanyRole.GOVERNMENT) {
|
25549
|
-
if (cardType === StatsCardsTypes.PROGRAMMES_PENDING) {
|
25550
|
-
text = 'Pending state projects awaiting authorisation';
|
25551
|
-
}
|
25552
|
-
else if (cardType === StatsCardsTypes.TRANSFER_REQUEST_SENT) {
|
25553
|
-
text =
|
25554
|
-
'Pending credit transfer requests sent to project owners initiated by your organisation';
|
25555
|
-
}
|
25556
|
-
else if (cardType === StatsCardsTypes.CREDIT_BALANCE) {
|
25557
|
-
text = 'Total credit balance owned by your organisation';
|
25558
|
-
}
|
25559
|
-
else if (cardType === StatsCardsTypes.PROGRAMMES) {
|
25560
|
-
text =
|
25561
|
-
'Number of projects created during the specified period and their project state in the carbon registry at present';
|
25562
|
-
}
|
25563
|
-
else if (cardType === StatsCardsTypes.CREDITS) {
|
25564
|
-
text =
|
25565
|
-
'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
|
25566
|
-
}
|
25567
|
-
else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
|
25568
|
-
text =
|
25569
|
-
'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
|
25570
|
-
}
|
25571
|
-
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
|
25572
|
-
text =
|
25573
|
-
'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
|
25574
|
-
}
|
25575
|
-
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
25576
|
-
text =
|
25577
|
-
'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
|
25578
|
-
}
|
25579
|
-
else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
|
25580
|
-
text =
|
25581
|
-
'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
|
25582
|
-
}
|
25583
|
-
else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
25584
|
-
text =
|
25585
|
-
'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
|
25586
|
-
}
|
25587
|
-
else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
25588
|
-
text =
|
25589
|
-
'Locations of the projects created during the specified period and their project states in the carbon registry at present';
|
25590
|
-
}
|
25591
|
-
else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
25592
|
-
text =
|
25593
|
-
'Locations of credits of international transfer requests recognised during the specified period';
|
25594
|
-
}
|
25595
|
-
}
|
25596
|
-
else if (companyRole === CompanyRole.PROGRAMME_DEVELOPER) {
|
25597
|
-
if (cardType === StatsCardsTypes.TRANSFER_REQUEST_RECEIVED) {
|
25598
|
-
text = 'Pending credit transfer requests received by your organisation';
|
25599
|
-
}
|
25600
|
-
else if (cardType === StatsCardsTypes.TRANSFER_REQUEST_SENT) {
|
25601
|
-
text = 'Pending local credit transfer requests initiated by your organisation';
|
25602
|
-
}
|
25603
|
-
else if (cardType === StatsCardsTypes.CREDIT_BALANCE) {
|
25604
|
-
text = 'Total credit balance owned by your organisation';
|
25605
|
-
}
|
25606
|
-
else if (cardType === StatsCardsTypes.PROGRAMMES) {
|
25607
|
-
text =
|
25608
|
-
'Number of projects created during the specified period and their project state in the carbon registry at present, owned by your organisation';
|
25609
|
-
}
|
25610
|
-
else if (cardType === StatsCardsTypes.CREDITS) {
|
25611
|
-
text =
|
25612
|
-
'Number of credits of projects created during the specified period and their credit state in the carbon registry at present, owned by your organisation';
|
25613
|
-
}
|
25614
|
-
else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
|
25615
|
-
text =
|
25616
|
-
'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present, owned by your organisation';
|
25617
|
-
}
|
25618
|
-
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
|
25619
|
-
text =
|
25620
|
-
'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';
|
25621
|
-
}
|
25622
|
-
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
25623
|
-
text =
|
25624
|
-
'Graphical representation of the number of projects owned by your organisation, in each project sector created during the specified time in the carbon registry';
|
25625
|
-
}
|
25626
|
-
else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
|
25627
|
-
text =
|
25628
|
-
'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';
|
25629
|
-
}
|
25630
|
-
else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
25631
|
-
text =
|
25632
|
-
'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';
|
25633
|
-
}
|
25634
|
-
else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
25635
|
-
text =
|
25636
|
-
'Locations of the projects created during the specified period, owned by your organisation, and their project states in the carbon registry at present';
|
25637
|
-
}
|
25638
|
-
else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
25639
|
-
text =
|
25640
|
-
'Locations of credits international transfer requests of projects owned by your organisation recognised during the specified period';
|
25641
|
-
}
|
25642
|
-
}
|
25643
|
-
else if (companyRole === CompanyRole.CERTIFIER && mine === true) {
|
25644
|
-
if (cardType === StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
|
25645
|
-
text =
|
25646
|
-
'Number of projects not yet certified including certificates revoked by your organisation';
|
25647
|
-
}
|
25648
|
-
else if (cardType === StatsCardsTypes.PROGRAMMES_CERTIFIED) {
|
25649
|
-
text = 'Number of projects certified by your organisation';
|
25650
|
-
}
|
25651
|
-
else if (cardType === StatsCardsTypes.CREDIT_CERTIFIED) {
|
25652
|
-
text = 'Number of credits certified by your organisation';
|
25653
|
-
}
|
25654
|
-
else if (cardType === StatsCardsTypes.PROGRAMMES) {
|
25655
|
-
text =
|
25656
|
-
'Number of projects created during the specified period, certified by your organisation, and their project state in the carbon registry at present';
|
25657
|
-
}
|
25658
|
-
else if (cardType === StatsCardsTypes.CREDITS) {
|
25659
|
-
text =
|
25660
|
-
'Number of credits of projects created during the specified period, certified by your organisation and their credit state in the carbon registry at present';
|
25661
|
-
}
|
25662
|
-
else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
|
25663
|
-
text =
|
25664
|
-
'Number of credits of projects created during the specified period, certified by your organisation, uncertified, certified and revoked in the carbon registry at present';
|
25665
|
-
}
|
25666
|
-
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
|
25667
|
-
text =
|
25668
|
-
'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
|
25669
|
-
}
|
25670
|
-
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
25671
|
-
text =
|
25672
|
-
'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
|
25673
|
-
}
|
25674
|
-
else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
|
25675
|
-
text =
|
25676
|
-
'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
|
25677
|
-
}
|
25678
|
-
else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
25679
|
-
text =
|
25680
|
-
'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';
|
25681
|
-
}
|
25682
|
-
else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
25683
|
-
text =
|
25684
|
-
'Locations of the projects created during the specified period, certified by your organisation, and their project states in the carbon registry at present';
|
25685
|
-
}
|
25686
|
-
else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
25687
|
-
text =
|
25688
|
-
'Locations of credits of international transfer requests of projects certified by your organisation recognised during the specified period';
|
25689
|
-
}
|
25690
|
-
}
|
25691
|
-
else if (companyRole === CompanyRole.CERTIFIER && !mine) {
|
25692
|
-
if (cardType === StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
|
25693
|
-
text =
|
25694
|
-
'Number of projects not yet certified including certificates revoked by your organisation';
|
25695
|
-
}
|
25696
|
-
else if (cardType === StatsCardsTypes.PROGRAMMES_CERTIFIED) {
|
25697
|
-
text = 'Number of projects certified by your organisation';
|
25698
|
-
}
|
25699
|
-
else if (cardType === StatsCardsTypes.CREDIT_CERTIFIED) {
|
25700
|
-
text = 'Number of credits certified by your organisation';
|
25701
|
-
}
|
25702
|
-
else if (cardType === StatsCardsTypes.PROGRAMMES) {
|
25703
|
-
text =
|
25704
|
-
'Number of projects created during the specified period and their project state in the carbon registry at present';
|
25705
|
-
}
|
25706
|
-
else if (cardType === StatsCardsTypes.CREDITS) {
|
25707
|
-
text =
|
25708
|
-
'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
|
25709
|
-
}
|
25710
|
-
else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
|
25711
|
-
text =
|
25712
|
-
'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
|
25713
|
-
}
|
25714
|
-
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
|
25715
|
-
text =
|
25716
|
-
'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
|
25717
|
-
}
|
25718
|
-
else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
25719
|
-
text =
|
25720
|
-
'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
|
25721
|
-
}
|
25722
|
-
else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
|
25723
|
-
text =
|
25724
|
-
'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
|
25725
|
-
}
|
25726
|
-
else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
25727
|
-
text =
|
25728
|
-
'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
|
25729
|
-
}
|
25730
|
-
else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
25731
|
-
text =
|
25732
|
-
'Locations of the projects created during the specified period and their project states in the carbon registry at present';
|
25733
|
-
}
|
25734
|
-
else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
25735
|
-
text =
|
25736
|
-
'Locations of credits of international transfer requests recognised during the specified period';
|
25737
|
-
}
|
25738
|
-
}
|
25739
|
-
return text;
|
25740
|
-
};
|
25741
|
-
|
25742
25537
|
var StasticCard = function (props) {
|
25743
|
-
var value = props.value, title = props.title, updatedDate = props.updatedDate, icon = props.icon, loading = props.loading
|
25538
|
+
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;
|
25744
25539
|
return (React.createElement("div", { className: "stastic-card-main-container" }, loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
|
25745
25540
|
React.createElement("div", { className: "title-section" },
|
25746
|
-
React.createElement("div", { className: "title" }, title),
|
25541
|
+
React.createElement("div", { className: "title" }, t(title)),
|
25747
25542
|
React.createElement("div", { className: "info-container" },
|
25748
|
-
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title:
|
25543
|
+
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title: tooltip },
|
25749
25544
|
React.createElement(InfoCircle, { color: "#000000", size: 17 })))),
|
25750
25545
|
React.createElement("div", { className: "values-section" },
|
25751
25546
|
React.createElement("div", { className: "values-and-unit" },
|
25752
|
-
title.includes(
|
25753
|
-
React.createElement("div", { className: "value" }, title.includes(
|
25754
|
-
? value === 0 || String(value) ===
|
25547
|
+
title.includes("credit") && React.createElement("div", { className: "unit" }, "ITMOs"),
|
25548
|
+
React.createElement("div", { className: "value" }, title.includes("credit")
|
25549
|
+
? value === 0 || String(value) === "NaN"
|
25755
25550
|
? 0
|
25756
25551
|
: addCommSep(value)
|
25757
25552
|
: value)),
|
@@ -27357,54 +27152,69 @@ var RegistryDashboardComponent = function (props) {
|
|
27357
27152
|
: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27358
27153
|
CompanyRole.PROGRAMME_DEVELOPER
|
27359
27154
|
? transferRequestReceived
|
27360
|
-
: programmesUnCertifed, title:
|
27155
|
+
: programmesUnCertifed, title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
|
27361
27156
|
? "programmesPending"
|
27362
27157
|
: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27363
27158
|
CompanyRole.PROGRAMME_DEVELOPER
|
27364
27159
|
? "trasnferReqReceived"
|
27365
|
-
: "programmesUnCertified"
|
27160
|
+
: "programmesUnCertified", updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
|
27366
27161
|
? lastUpdateProgrammesStats
|
27367
27162
|
: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27368
27163
|
CompanyRole.PROGRAMME_DEVELOPER
|
27369
27164
|
? lastUpdatePendingTransferReceived
|
27370
27165
|
: lastUpdateProgrammesCertifiable, icon: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT ? (React.createElement(ClockHistory, { color: "#16B1FF", size: 80 })) : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27371
|
-
CompanyRole.PROGRAMME_DEVELOPER ? (React.createElement(BoxArrowInRight, { color: "#16B1FF", size: 80 })) : (React.createElement(ShieldX, { color: "#16B1FF", size: 80 })), loading: loadingWithoutTimeRange, companyRole: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole
|
27166
|
+
CompanyRole.PROGRAMME_DEVELOPER ? (React.createElement(BoxArrowInRight, { color: "#16B1FF", size: 80 })) : (React.createElement(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) === CompanyRole.GOVERNMENT
|
27167
|
+
? "tTprogrammespendingGoverment"
|
27168
|
+
: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27169
|
+
CompanyRole.PROGRAMME_DEVELOPER
|
27170
|
+
? "tTTransferReqRecProgrammeDev"
|
27171
|
+
: "tTProgrammesUnCertiCertifier"), t: t })),
|
27372
27172
|
React.createElement(Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col" },
|
27373
27173
|
React.createElement(StasticCard, { value: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
|
27374
27174
|
? transferRequestSent
|
27375
27175
|
: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27376
27176
|
CompanyRole.PROGRAMME_DEVELOPER
|
27377
27177
|
? transferRequestSent
|
27378
|
-
: programmesCertifed, title:
|
27178
|
+
: programmesCertifed, title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
|
27379
27179
|
? "trasnferReqInit"
|
27380
27180
|
: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27381
27181
|
CompanyRole.PROGRAMME_DEVELOPER
|
27382
27182
|
? "trasnferReqInit"
|
27383
|
-
: "programmesCertified"
|
27183
|
+
: "programmesCertified", updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
|
27384
27184
|
? lastUpdatePendingTransferSent
|
27385
27185
|
: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27386
27186
|
CompanyRole.PROGRAMME_DEVELOPER
|
27387
27187
|
? lastUpdatePendingTransferSent
|
27388
27188
|
: lastUpdateProgrammesCertified, icon: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT ? (React.createElement(BoxArrowRight, { color: "#16B1FF", size: 80 })) : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27389
|
-
CompanyRole.PROGRAMME_DEVELOPER ? (React.createElement(BoxArrowRight, { color: "#16B1FF", size: 80 })) : (React.createElement(ShieldCheck, { color: "#16B1FF", size: 80 })), loading: loadingWithoutTimeRange, companyRole: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole
|
27189
|
+
CompanyRole.PROGRAMME_DEVELOPER ? (React.createElement(BoxArrowRight, { color: "#16B1FF", size: 80 })) : (React.createElement(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) === CompanyRole.GOVERNMENT
|
27190
|
+
? "tTTransferReqSentGovernment"
|
27191
|
+
: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27192
|
+
CompanyRole.PROGRAMME_DEVELOPER
|
27193
|
+
? "tTTransferReqInitProgrammeDev"
|
27194
|
+
: "tTProgrammesCertiCertifier"), t: t })),
|
27390
27195
|
React.createElement(Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col" },
|
27391
27196
|
React.createElement(StasticCard, { value: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
|
27392
27197
|
? creditBalanceWithoutTimeRange
|
27393
27198
|
: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27394
27199
|
CompanyRole.PROGRAMME_DEVELOPER
|
27395
27200
|
? creditBalanceWithoutTimeRange
|
27396
|
-
: creditCertiedBalanceWithoutTimeRange, title:
|
27201
|
+
: creditCertiedBalanceWithoutTimeRange, title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
|
27397
27202
|
? "creditBal"
|
27398
27203
|
: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27399
27204
|
CompanyRole.PROGRAMME_DEVELOPER
|
27400
27205
|
? "creditBal"
|
27401
|
-
: "creditCertified"
|
27206
|
+
: "creditCertified", updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
|
27402
27207
|
? lastUpdateCreditBalance
|
27403
27208
|
: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27404
27209
|
CompanyRole.PROGRAMME_DEVELOPER
|
27405
27210
|
? lastUpdateCreditBalance
|
27406
27211
|
: lastUpdateProgrammesCertified, icon: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT ? (React.createElement(Gem, { color: "#16B1FF", size: 80 })) : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27407
|
-
CompanyRole.PROGRAMME_DEVELOPER ? (React.createElement(Gem, { color: "#16B1FF", size: 80 })) : (React.createElement(ShieldExclamation, { color: "#16B1FF", size: 80 })), loading: loadingWithoutTimeRange, companyRole: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole
|
27212
|
+
CompanyRole.PROGRAMME_DEVELOPER ? (React.createElement(Gem, { color: "#16B1FF", size: 80 })) : (React.createElement(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) === CompanyRole.GOVERNMENT
|
27213
|
+
? "tTCreditBalanceGovernment"
|
27214
|
+
: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
|
27215
|
+
CompanyRole.PROGRAMME_DEVELOPER
|
27216
|
+
? "tTCreditBalanceProgrammeDev"
|
27217
|
+
: "tTCreditCertifiedCertifier"), t: t })))),
|
27408
27218
|
((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT ||
|
27409
27219
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.CERTIFIER ||
|
27410
27220
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.MINISTRY) &&
|
@@ -28503,9 +28313,7 @@ var InvestmentBody = function (props) {
|
|
28503
28313
|
React.createElement("div", { className: "invester" },
|
28504
28314
|
React.createElement("div", { className: "name-and-progress" },
|
28505
28315
|
React.createElement("div", { className: "name" }, investmentData === null || investmentData === void 0 ? void 0 : investmentData.invester),
|
28506
|
-
React.createElement("div", { className: "progress" },
|
28507
|
-
(investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === InvestmentStatus.APPROVED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
28508
|
-
(investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === InvestmentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
|
28316
|
+
React.createElement("div", { className: "progress" }, (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === InvestmentStatus.APPROVED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })))),
|
28509
28317
|
React.createElement("div", { className: "time" }, moment(parseInt(investmentData === null || investmentData === void 0 ? void 0 : investmentData.createdAt)).format("DD MMMM YYYY @ HH:mm"))),
|
28510
28318
|
React.createElement("div", { className: "amount" },
|
28511
28319
|
"$",
|
@@ -28975,26 +28783,8 @@ var ProgrammeRetireForm = function (props) {
|
|
28975
28783
|
var ProgrammeRevokeForm = function (props) {
|
28976
28784
|
var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, showCertifiers = props.showCertifiers, translator = props.translator;
|
28977
28785
|
var t = translator.t;
|
28978
|
-
var form = Form.useForm()[0];
|
28979
28786
|
var _a = useState(undefined), popupError = _a[0], setPopupError = _a[1];
|
28980
28787
|
var _b = useState(false), loading = _b[0], setLoading = _b[1];
|
28981
|
-
var _c = useState(false), remarks = _c[0], setRemarks = _c[1];
|
28982
|
-
var onRemarkValues = function () { return __awaiter(void 0, void 0, void 0, function () {
|
28983
|
-
var comment;
|
28984
|
-
return __generator(this, function (_a) {
|
28985
|
-
comment = form.getFieldValue("comment");
|
28986
|
-
if (comment === undefined || comment === "") {
|
28987
|
-
setRemarks(false);
|
28988
|
-
}
|
28989
|
-
else {
|
28990
|
-
setRemarks(true);
|
28991
|
-
}
|
28992
|
-
return [2 /*return*/];
|
28993
|
-
});
|
28994
|
-
}); };
|
28995
|
-
useEffect(function () {
|
28996
|
-
onRemarkValues();
|
28997
|
-
});
|
28998
28788
|
return (React.createElement("div", { className: "transfer-form" },
|
28999
28789
|
React.createElement(Row, null,
|
29000
28790
|
React.createElement(Col, { span: 24, className: "sub-text" }, subText)),
|
@@ -29002,7 +28792,7 @@ var ProgrammeRevokeForm = function (props) {
|
|
29002
28792
|
certifierId: programme.certifierId && programme.certifierId.length === 1
|
29003
28793
|
? Number(programme.certifierId[0])
|
29004
28794
|
: undefined,
|
29005
|
-
}, onChange: function () { return setPopupError(undefined); },
|
28795
|
+
}, onChange: function () { return setPopupError(undefined); }, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
|
29006
28796
|
var res;
|
29007
28797
|
return __generator(this, function (_a) {
|
29008
28798
|
switch (_a.label) {
|
@@ -29041,7 +28831,7 @@ var ProgrammeRevokeForm = function (props) {
|
|
29041
28831
|
popupError ? (React.createElement(Alert, { className: "error", message: popupError, type: "error", showIcon: true })) : (""),
|
29042
28832
|
React.createElement(Form.Item, { className: "footer" },
|
29043
28833
|
React.createElement(Button, { htmlType: "button", onClick: onCancel }, t("view:cancel")),
|
29044
|
-
React.createElement(Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading
|
28834
|
+
React.createElement(Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading }, actionBtnText)))));
|
29045
28835
|
};
|
29046
28836
|
|
29047
28837
|
var ProgrammeTransferForm = function (props) {
|