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

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
@@ -25555,19 +25555,215 @@ var optionDonutPieB = {
25555
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";
25556
25556
  styleInject(css_248z$8);
25557
25557
 
25558
+ var toolTipTextGen = function (companyRole, cardType, mine) {
25559
+ var text = '';
25560
+ if (companyRole === exports.CompanyRole.GOVERNMENT) {
25561
+ if (cardType === exports.StatsCardsTypes.PROGRAMMES_PENDING) {
25562
+ text = 'Pending state projects awaiting authorisation';
25563
+ }
25564
+ else if (cardType === exports.StatsCardsTypes.TRANSFER_REQUEST_SENT) {
25565
+ text =
25566
+ 'Pending credit transfer requests sent to project owners initiated by your organisation';
25567
+ }
25568
+ else if (cardType === exports.StatsCardsTypes.CREDIT_BALANCE) {
25569
+ text = 'Total credit balance owned by your organisation';
25570
+ }
25571
+ else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
25572
+ text =
25573
+ 'Number of projects created during the specified period and their project state in the carbon registry at present';
25574
+ }
25575
+ else if (cardType === exports.StatsCardsTypes.CREDITS) {
25576
+ text =
25577
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
25578
+ }
25579
+ else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
25580
+ text =
25581
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
25582
+ }
25583
+ else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
25584
+ text =
25585
+ 'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
25586
+ }
25587
+ else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
25588
+ text =
25589
+ 'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
25590
+ }
25591
+ else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
25592
+ text =
25593
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
25594
+ }
25595
+ else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
25596
+ text =
25597
+ 'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
25598
+ }
25599
+ else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
25600
+ text =
25601
+ 'Locations of the projects created during the specified period and their project states in the carbon registry at present';
25602
+ }
25603
+ else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
25604
+ text =
25605
+ 'Locations of credits of international transfer requests recognised during the specified period';
25606
+ }
25607
+ }
25608
+ else if (companyRole === exports.CompanyRole.PROGRAMME_DEVELOPER) {
25609
+ if (cardType === exports.StatsCardsTypes.TRANSFER_REQUEST_RECEIVED) {
25610
+ text = 'Pending credit transfer requests received by your organisation';
25611
+ }
25612
+ else if (cardType === exports.StatsCardsTypes.TRANSFER_REQUEST_SENT) {
25613
+ text = 'Pending local credit transfer requests initiated by your organisation';
25614
+ }
25615
+ else if (cardType === exports.StatsCardsTypes.CREDIT_BALANCE) {
25616
+ text = 'Total credit balance owned by your organisation';
25617
+ }
25618
+ else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
25619
+ text =
25620
+ 'Number of projects created during the specified period and their project state in the carbon registry at present, owned by your organisation';
25621
+ }
25622
+ else if (cardType === exports.StatsCardsTypes.CREDITS) {
25623
+ text =
25624
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present, owned by your organisation';
25625
+ }
25626
+ else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
25627
+ text =
25628
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present, owned by your organisation';
25629
+ }
25630
+ else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
25631
+ text =
25632
+ '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';
25633
+ }
25634
+ else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
25635
+ text =
25636
+ 'Graphical representation of the number of projects owned by your organisation, in each project sector created during the specified time in the carbon registry';
25637
+ }
25638
+ else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
25639
+ text =
25640
+ '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';
25641
+ }
25642
+ else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
25643
+ text =
25644
+ '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';
25645
+ }
25646
+ else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
25647
+ text =
25648
+ 'Locations of the projects created during the specified period, owned by your organisation, and their project states in the carbon registry at present';
25649
+ }
25650
+ else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
25651
+ text =
25652
+ 'Locations of credits international transfer requests of projects owned by your organisation recognised during the specified period';
25653
+ }
25654
+ }
25655
+ else if (companyRole === exports.CompanyRole.CERTIFIER && mine === true) {
25656
+ if (cardType === exports.StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
25657
+ text =
25658
+ 'Number of projects not yet certified including certificates revoked by your organisation';
25659
+ }
25660
+ else if (cardType === exports.StatsCardsTypes.PROGRAMMES_CERTIFIED) {
25661
+ text = 'Number of projects certified by your organisation';
25662
+ }
25663
+ else if (cardType === exports.StatsCardsTypes.CREDIT_CERTIFIED) {
25664
+ text = 'Number of credits certified by your organisation';
25665
+ }
25666
+ else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
25667
+ text =
25668
+ 'Number of projects created during the specified period, certified by your organisation, and their project state in the carbon registry at present';
25669
+ }
25670
+ else if (cardType === exports.StatsCardsTypes.CREDITS) {
25671
+ text =
25672
+ 'Number of credits of projects created during the specified period, certified by your organisation and their credit state in the carbon registry at present';
25673
+ }
25674
+ else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
25675
+ text =
25676
+ 'Number of credits of projects created during the specified period, certified by your organisation, uncertified, certified and revoked in the carbon registry at present';
25677
+ }
25678
+ else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
25679
+ text =
25680
+ 'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
25681
+ }
25682
+ else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
25683
+ text =
25684
+ 'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
25685
+ }
25686
+ else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
25687
+ text =
25688
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
25689
+ }
25690
+ else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
25691
+ text =
25692
+ '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';
25693
+ }
25694
+ else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
25695
+ text =
25696
+ 'Locations of the projects created during the specified period, certified by your organisation, and their project states in the carbon registry at present';
25697
+ }
25698
+ else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
25699
+ text =
25700
+ 'Locations of credits of international transfer requests of projects certified by your organisation recognised during the specified period';
25701
+ }
25702
+ }
25703
+ else if (companyRole === exports.CompanyRole.CERTIFIER && !mine) {
25704
+ if (cardType === exports.StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
25705
+ text =
25706
+ 'Number of projects not yet certified including certificates revoked by your organisation';
25707
+ }
25708
+ else if (cardType === exports.StatsCardsTypes.PROGRAMMES_CERTIFIED) {
25709
+ text = 'Number of projects certified by your organisation';
25710
+ }
25711
+ else if (cardType === exports.StatsCardsTypes.CREDIT_CERTIFIED) {
25712
+ text = 'Number of credits certified by your organisation';
25713
+ }
25714
+ else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
25715
+ text =
25716
+ 'Number of projects created during the specified period and their project state in the carbon registry at present';
25717
+ }
25718
+ else if (cardType === exports.StatsCardsTypes.CREDITS) {
25719
+ text =
25720
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
25721
+ }
25722
+ else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
25723
+ text =
25724
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
25725
+ }
25726
+ else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
25727
+ text =
25728
+ 'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
25729
+ }
25730
+ else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
25731
+ text =
25732
+ 'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
25733
+ }
25734
+ else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
25735
+ text =
25736
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
25737
+ }
25738
+ else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
25739
+ text =
25740
+ 'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
25741
+ }
25742
+ else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
25743
+ text =
25744
+ 'Locations of the projects created during the specified period and their project states in the carbon registry at present';
25745
+ }
25746
+ else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
25747
+ text =
25748
+ 'Locations of credits of international transfer requests recognised during the specified period';
25749
+ }
25750
+ }
25751
+ return text;
25752
+ };
25753
+
25558
25754
  var StasticCard = function (props) {
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;
25755
+ var value = props.value, title = props.title, updatedDate = props.updatedDate, icon = props.icon, loading = props.loading, companyRole = props.companyRole;
25560
25756
  return (React.createElement("div", { className: "stastic-card-main-container" }, loading ? (React.createElement(antd.Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
25561
25757
  React.createElement("div", { className: "title-section" },
25562
- React.createElement("div", { className: "title" }, t(title)),
25758
+ React.createElement("div", { className: "title" }, title),
25563
25759
  React.createElement("div", { className: "info-container" },
25564
- React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title: tooltip },
25760
+ React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title: toolTipTextGen(companyRole, title) },
25565
25761
  React.createElement(Icon.InfoCircle, { color: "#000000", size: 17 })))),
25566
25762
  React.createElement("div", { className: "values-section" },
25567
25763
  React.createElement("div", { className: "values-and-unit" },
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"
25764
+ title.includes('Credit') && React.createElement("div", { className: "unit" }, "ITMOs"),
25765
+ React.createElement("div", { className: "value" }, title.includes('Credit')
25766
+ ? value === 0 || String(value) === 'NaN'
25571
25767
  ? 0
25572
25768
  : addCommSep(value)
25573
25769
  : value)),
@@ -27173,69 +27369,54 @@ var RegistryDashboardComponent = function (props) {
27173
27369
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27174
27370
  exports.CompanyRole.PROGRAMME_DEVELOPER
27175
27371
  ? transferRequestReceived
27176
- : programmesUnCertifed, title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27372
+ : programmesUnCertifed, title: t((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27177
27373
  ? "programmesPending"
27178
27374
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27179
27375
  exports.CompanyRole.PROGRAMME_DEVELOPER
27180
27376
  ? "trasnferReqReceived"
27181
- : "programmesUnCertified", updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27377
+ : "programmesUnCertified"), updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27182
27378
  ? lastUpdateProgrammesStats
27183
27379
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27184
27380
  exports.CompanyRole.PROGRAMME_DEVELOPER
27185
27381
  ? lastUpdatePendingTransferReceived
27186
27382
  : 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) ===
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 })),
27383
+ 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 })),
27193
27384
  React.createElement(antd.Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col" },
27194
27385
  React.createElement(StasticCard, { value: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27195
27386
  ? transferRequestSent
27196
27387
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27197
27388
  exports.CompanyRole.PROGRAMME_DEVELOPER
27198
27389
  ? transferRequestSent
27199
- : programmesCertifed, title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27390
+ : programmesCertifed, title: t((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27200
27391
  ? "trasnferReqInit"
27201
27392
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27202
27393
  exports.CompanyRole.PROGRAMME_DEVELOPER
27203
27394
  ? "trasnferReqInit"
27204
- : "programmesCertified", updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27395
+ : "programmesCertified"), updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27205
27396
  ? lastUpdatePendingTransferSent
27206
27397
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27207
27398
  exports.CompanyRole.PROGRAMME_DEVELOPER
27208
27399
  ? lastUpdatePendingTransferSent
27209
27400
  : 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) ===
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 })),
27401
+ 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 })),
27216
27402
  React.createElement(antd.Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col" },
27217
27403
  React.createElement(StasticCard, { value: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27218
27404
  ? creditBalanceWithoutTimeRange
27219
27405
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27220
27406
  exports.CompanyRole.PROGRAMME_DEVELOPER
27221
27407
  ? creditBalanceWithoutTimeRange
27222
- : creditCertiedBalanceWithoutTimeRange, title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27408
+ : creditCertiedBalanceWithoutTimeRange, title: t((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27223
27409
  ? "creditBal"
27224
27410
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27225
27411
  exports.CompanyRole.PROGRAMME_DEVELOPER
27226
27412
  ? "creditBal"
27227
- : "creditCertified", updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27413
+ : "creditCertified"), updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
27228
27414
  ? lastUpdateCreditBalance
27229
27415
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
27230
27416
  exports.CompanyRole.PROGRAMME_DEVELOPER
27231
27417
  ? lastUpdateCreditBalance
27232
27418
  : 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) ===
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 })))),
27419
+ 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 })))),
27239
27420
  ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT ||
27240
27421
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.CERTIFIER ||
27241
27422
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.MINISTRY) &&