@undp/carbon-library 1.0.289-CARBON-366.1 → 1.0.289-CARBON-220.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,5 @@ export interface StasticCardItemProps {
7
7
  icon: any;
8
8
  loading: boolean;
9
9
  companyRole: any;
10
- tooltip: any;
11
- t: any;
12
10
  }
13
11
  export declare const StasticCard: FC<StasticCardItemProps>;
package/dist/esm/index.js CHANGED
@@ -25222,19 +25222,215 @@ var optionDonutPieB = {
25222
25222
  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";
25223
25223
  styleInject(css_248z$8);
25224
25224
 
25225
+ var toolTipTextGen = function (companyRole, cardType, mine) {
25226
+ var text = '';
25227
+ if (companyRole === CompanyRole.GOVERNMENT) {
25228
+ if (cardType === StatsCardsTypes.PROGRAMMES_PENDING) {
25229
+ text = 'Pending state projects awaiting authorisation';
25230
+ }
25231
+ else if (cardType === StatsCardsTypes.TRANSFER_REQUEST_SENT) {
25232
+ text =
25233
+ 'Pending credit transfer requests sent to project owners initiated by your organisation';
25234
+ }
25235
+ else if (cardType === StatsCardsTypes.CREDIT_BALANCE) {
25236
+ text = 'Total credit balance owned by your organisation';
25237
+ }
25238
+ else if (cardType === StatsCardsTypes.PROGRAMMES) {
25239
+ text =
25240
+ 'Number of projects created during the specified period and their project state in the carbon registry at present';
25241
+ }
25242
+ else if (cardType === StatsCardsTypes.CREDITS) {
25243
+ text =
25244
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
25245
+ }
25246
+ else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
25247
+ text =
25248
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
25249
+ }
25250
+ else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
25251
+ text =
25252
+ 'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
25253
+ }
25254
+ else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
25255
+ text =
25256
+ 'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
25257
+ }
25258
+ else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
25259
+ text =
25260
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
25261
+ }
25262
+ else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
25263
+ text =
25264
+ 'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
25265
+ }
25266
+ else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
25267
+ text =
25268
+ 'Locations of the projects created during the specified period and their project states in the carbon registry at present';
25269
+ }
25270
+ else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
25271
+ text =
25272
+ 'Locations of credits of international transfer requests recognised during the specified period';
25273
+ }
25274
+ }
25275
+ else if (companyRole === CompanyRole.PROGRAMME_DEVELOPER) {
25276
+ if (cardType === StatsCardsTypes.TRANSFER_REQUEST_RECEIVED) {
25277
+ text = 'Pending credit transfer requests received by your organisation';
25278
+ }
25279
+ else if (cardType === StatsCardsTypes.TRANSFER_REQUEST_SENT) {
25280
+ text = 'Pending local credit transfer requests initiated by your organisation';
25281
+ }
25282
+ else if (cardType === StatsCardsTypes.CREDIT_BALANCE) {
25283
+ text = 'Total credit balance owned by your organisation';
25284
+ }
25285
+ else if (cardType === StatsCardsTypes.PROGRAMMES) {
25286
+ text =
25287
+ 'Number of projects created during the specified period and their project state in the carbon registry at present, owned by your organisation';
25288
+ }
25289
+ else if (cardType === StatsCardsTypes.CREDITS) {
25290
+ text =
25291
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present, owned by your organisation';
25292
+ }
25293
+ else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
25294
+ text =
25295
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present, owned by your organisation';
25296
+ }
25297
+ else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
25298
+ text =
25299
+ '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';
25300
+ }
25301
+ else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
25302
+ text =
25303
+ 'Graphical representation of the number of projects owned by your organisation, in each project sector created during the specified time in the carbon registry';
25304
+ }
25305
+ else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
25306
+ text =
25307
+ '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';
25308
+ }
25309
+ else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
25310
+ text =
25311
+ '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';
25312
+ }
25313
+ else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
25314
+ text =
25315
+ 'Locations of the projects created during the specified period, owned by your organisation, and their project states in the carbon registry at present';
25316
+ }
25317
+ else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
25318
+ text =
25319
+ 'Locations of credits international transfer requests of projects owned by your organisation recognised during the specified period';
25320
+ }
25321
+ }
25322
+ else if (companyRole === CompanyRole.CERTIFIER && mine === true) {
25323
+ if (cardType === StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
25324
+ text =
25325
+ 'Number of projects not yet certified including certificates revoked by your organisation';
25326
+ }
25327
+ else if (cardType === StatsCardsTypes.PROGRAMMES_CERTIFIED) {
25328
+ text = 'Number of projects certified by your organisation';
25329
+ }
25330
+ else if (cardType === StatsCardsTypes.CREDIT_CERTIFIED) {
25331
+ text = 'Number of credits certified by your organisation';
25332
+ }
25333
+ else if (cardType === StatsCardsTypes.PROGRAMMES) {
25334
+ text =
25335
+ 'Number of projects created during the specified period, certified by your organisation, and their project state in the carbon registry at present';
25336
+ }
25337
+ else if (cardType === StatsCardsTypes.CREDITS) {
25338
+ text =
25339
+ 'Number of credits of projects created during the specified period, certified by your organisation and their credit state in the carbon registry at present';
25340
+ }
25341
+ else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
25342
+ text =
25343
+ 'Number of credits of projects created during the specified period, certified by your organisation, uncertified, certified and revoked in the carbon registry at present';
25344
+ }
25345
+ else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
25346
+ text =
25347
+ 'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
25348
+ }
25349
+ else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
25350
+ text =
25351
+ 'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
25352
+ }
25353
+ else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
25354
+ text =
25355
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
25356
+ }
25357
+ else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
25358
+ text =
25359
+ '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';
25360
+ }
25361
+ else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
25362
+ text =
25363
+ 'Locations of the projects created during the specified period, certified by your organisation, and their project states in the carbon registry at present';
25364
+ }
25365
+ else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
25366
+ text =
25367
+ 'Locations of credits of international transfer requests of projects certified by your organisation recognised during the specified period';
25368
+ }
25369
+ }
25370
+ else if (companyRole === CompanyRole.CERTIFIER && !mine) {
25371
+ if (cardType === StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
25372
+ text =
25373
+ 'Number of projects not yet certified including certificates revoked by your organisation';
25374
+ }
25375
+ else if (cardType === StatsCardsTypes.PROGRAMMES_CERTIFIED) {
25376
+ text = 'Number of projects certified by your organisation';
25377
+ }
25378
+ else if (cardType === StatsCardsTypes.CREDIT_CERTIFIED) {
25379
+ text = 'Number of credits certified by your organisation';
25380
+ }
25381
+ else if (cardType === StatsCardsTypes.PROGRAMMES) {
25382
+ text =
25383
+ 'Number of projects created during the specified period and their project state in the carbon registry at present';
25384
+ }
25385
+ else if (cardType === StatsCardsTypes.CREDITS) {
25386
+ text =
25387
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
25388
+ }
25389
+ else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
25390
+ text =
25391
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
25392
+ }
25393
+ else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
25394
+ text =
25395
+ 'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
25396
+ }
25397
+ else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
25398
+ text =
25399
+ 'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
25400
+ }
25401
+ else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
25402
+ text =
25403
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
25404
+ }
25405
+ else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
25406
+ text =
25407
+ 'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
25408
+ }
25409
+ else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
25410
+ text =
25411
+ 'Locations of the projects created during the specified period and their project states in the carbon registry at present';
25412
+ }
25413
+ else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
25414
+ text =
25415
+ 'Locations of credits of international transfer requests recognised during the specified period';
25416
+ }
25417
+ }
25418
+ return text;
25419
+ };
25420
+
25225
25421
  var StasticCard = function (props) {
25226
- 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;
25422
+ var value = props.value, title = props.title, updatedDate = props.updatedDate, icon = props.icon, loading = props.loading, companyRole = props.companyRole;
25227
25423
  return (React.createElement("div", { className: "stastic-card-main-container" }, loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
25228
25424
  React.createElement("div", { className: "title-section" },
25229
- React.createElement("div", { className: "title" }, t(title)),
25425
+ React.createElement("div", { className: "title" }, title),
25230
25426
  React.createElement("div", { className: "info-container" },
25231
- React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title: tooltip },
25427
+ React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title: toolTipTextGen(companyRole, title) },
25232
25428
  React.createElement(InfoCircle, { color: "#000000", size: 17 })))),
25233
25429
  React.createElement("div", { className: "values-section" },
25234
25430
  React.createElement("div", { className: "values-and-unit" },
25235
- title.includes("credit") && React.createElement("div", { className: "unit" }, "ITMOs"),
25236
- React.createElement("div", { className: "value" }, title.includes("credit")
25237
- ? value === 0 || String(value) === "NaN"
25431
+ title.includes('Credit') && React.createElement("div", { className: "unit" }, "ITMOs"),
25432
+ React.createElement("div", { className: "value" }, title.includes('Credit')
25433
+ ? value === 0 || String(value) === 'NaN'
25238
25434
  ? 0
25239
25435
  : addCommSep(value)
25240
25436
  : value)),
@@ -26840,69 +27036,54 @@ var RegistryDashboardComponent = function (props) {
26840
27036
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
26841
27037
  CompanyRole.PROGRAMME_DEVELOPER
26842
27038
  ? transferRequestReceived
26843
- : programmesUnCertifed, title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
27039
+ : programmesUnCertifed, title: t((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
26844
27040
  ? "programmesPending"
26845
27041
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
26846
27042
  CompanyRole.PROGRAMME_DEVELOPER
26847
27043
  ? "trasnferReqReceived"
26848
- : "programmesUnCertified", updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
27044
+ : "programmesUnCertified"), updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
26849
27045
  ? lastUpdateProgrammesStats
26850
27046
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
26851
27047
  CompanyRole.PROGRAMME_DEVELOPER
26852
27048
  ? lastUpdatePendingTransferReceived
26853
27049
  : 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) ===
26854
- 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
26855
- ? "tTprogrammespendingGoverment"
26856
- : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
26857
- CompanyRole.PROGRAMME_DEVELOPER
26858
- ? "tTTransferReqRecProgrammeDev"
26859
- : "tTProgrammesUnCertiCertifier"), t: t })),
27050
+ 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 })),
26860
27051
  React.createElement(Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col" },
26861
27052
  React.createElement(StasticCard, { value: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
26862
27053
  ? transferRequestSent
26863
27054
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
26864
27055
  CompanyRole.PROGRAMME_DEVELOPER
26865
27056
  ? transferRequestSent
26866
- : programmesCertifed, title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
27057
+ : programmesCertifed, title: t((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
26867
27058
  ? "trasnferReqInit"
26868
27059
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
26869
27060
  CompanyRole.PROGRAMME_DEVELOPER
26870
27061
  ? "trasnferReqInit"
26871
- : "programmesCertified", updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
27062
+ : "programmesCertified"), updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
26872
27063
  ? lastUpdatePendingTransferSent
26873
27064
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
26874
27065
  CompanyRole.PROGRAMME_DEVELOPER
26875
27066
  ? lastUpdatePendingTransferSent
26876
27067
  : 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) ===
26877
- 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
26878
- ? "tTTransferReqSentGovernment"
26879
- : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
26880
- CompanyRole.PROGRAMME_DEVELOPER
26881
- ? "tTTransferReqInitProgrammeDev"
26882
- : "tTProgrammesCertiCertifier"), t: t })),
27068
+ 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 })),
26883
27069
  React.createElement(Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col" },
26884
27070
  React.createElement(StasticCard, { value: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
26885
27071
  ? creditBalanceWithoutTimeRange
26886
27072
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
26887
27073
  CompanyRole.PROGRAMME_DEVELOPER
26888
27074
  ? creditBalanceWithoutTimeRange
26889
- : creditCertiedBalanceWithoutTimeRange, title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
27075
+ : creditCertiedBalanceWithoutTimeRange, title: t((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
26890
27076
  ? "creditBal"
26891
27077
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
26892
27078
  CompanyRole.PROGRAMME_DEVELOPER
26893
27079
  ? "creditBal"
26894
- : "creditCertified", updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
27080
+ : "creditCertified"), updatedDate: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
26895
27081
  ? lastUpdateCreditBalance
26896
27082
  : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
26897
27083
  CompanyRole.PROGRAMME_DEVELOPER
26898
27084
  ? lastUpdateCreditBalance
26899
27085
  : 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) ===
26900
- 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
26901
- ? "tTCreditBalanceGovernment"
26902
- : (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
26903
- CompanyRole.PROGRAMME_DEVELOPER
26904
- ? "tTCreditBalanceProgrammeDev"
26905
- : "tTCreditCertifiedCertifier"), t: t })))),
27086
+ 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 })))),
26906
27087
  ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT ||
26907
27088
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.CERTIFIER ||
26908
27089
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.MINISTRY) &&