@learncard/react 2.6.79 → 2.7.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.
Files changed (165) hide show
  1. package/dist/cjs/{CertificateDisplayCard-2283f3de.js → CertificateDisplayCard-74de3c56.js} +72 -52
  2. package/dist/cjs/CertificateDisplayCard-74de3c56.js.map +1 -0
  3. package/dist/{esm/numeral-804ed0c4.js → cjs/CircleIcon-5587a585.js} +97 -2
  4. package/dist/cjs/CircleIcon-5587a585.js.map +1 -0
  5. package/dist/cjs/{User-dde46685.js → Coins-acd63f46.js} +1 -85
  6. package/dist/cjs/Coins-acd63f46.js.map +1 -0
  7. package/dist/cjs/{Notification-0bc2680c.js → Notification-d212fa7b.js} +2 -2
  8. package/dist/cjs/{Notification-0bc2680c.js.map → Notification-d212fa7b.js.map} +1 -1
  9. package/dist/cjs/{NotificationBoostCard-194ae55a.js → NotificationBoostCard-70dfa17e.js} +2 -2
  10. package/dist/cjs/{NotificationBoostCard-194ae55a.js.map → NotificationBoostCard-70dfa17e.js.map} +1 -1
  11. package/dist/cjs/PuzzlePiece-937c216a.js +31 -0
  12. package/dist/cjs/PuzzlePiece-937c216a.js.map +1 -0
  13. package/dist/cjs/{react-barcode-1a2c5694.js → SchoolIDCard-c7b4153a.js} +61 -1185
  14. package/dist/cjs/SchoolIDCard-c7b4153a.js.map +1 -0
  15. package/dist/cjs/User-301088ac.js +93 -0
  16. package/dist/cjs/User-301088ac.js.map +1 -0
  17. package/dist/cjs/{VCCard-55f7738e.js → VCCard-98ab4879.js} +4 -31
  18. package/dist/{esm/VCCard-caeb4bbd.js.map → cjs/VCCard-98ab4879.js.map} +1 -1
  19. package/dist/cjs/{VCDisplayBackFace-42f41d3f.js → VCDisplayBackFace-a3cd6ad2.js} +3 -3
  20. package/dist/cjs/{VCDisplayBackFace-42f41d3f.js.map → VCDisplayBackFace-a3cd6ad2.js.map} +1 -1
  21. package/dist/cjs/{VCDisplayCard-3c50142e.js → VCDisplayCard-f0783ca4.js} +3 -3
  22. package/dist/cjs/{VCDisplayCard-3c50142e.js.map → VCDisplayCard-f0783ca4.js.map} +1 -1
  23. package/dist/cjs/{VCDisplayCard2-de2f603c.js → VCDisplayCard2-e09f4a0a.js} +272 -39
  24. package/dist/cjs/VCDisplayCard2-e09f4a0a.js.map +1 -0
  25. package/dist/cjs/VCVerificationPill-43201cac.js +75 -0
  26. package/dist/cjs/VCVerificationPill-43201cac.js.map +1 -0
  27. package/dist/cjs/{constants-93a826a5.js → constants-3359aea1.js} +52 -2
  28. package/dist/cjs/constants-3359aea1.js.map +1 -0
  29. package/dist/cjs/{credential.helpers-adf7af7c.js → credential.helpers-ccf9ea86.js} +8 -48
  30. package/dist/cjs/{credential.helpers-adf7af7c.js.map → credential.helpers-ccf9ea86.js.map} +1 -1
  31. package/dist/cjs/index-838fa72c.js +1186 -0
  32. package/dist/cjs/index-838fa72c.js.map +1 -0
  33. package/dist/cjs/index.js +35 -34
  34. package/dist/cjs/index.js.map +1 -1
  35. package/dist/cjs/index13.js +35 -34
  36. package/dist/cjs/index13.js.map +1 -1
  37. package/dist/cjs/index22.js +5 -3
  38. package/dist/cjs/index22.js.map +1 -1
  39. package/dist/cjs/index23.js +5 -3
  40. package/dist/cjs/index23.js.map +1 -1
  41. package/dist/cjs/index28.js +3 -5
  42. package/dist/cjs/index28.js.map +1 -1
  43. package/dist/cjs/index29.js +2 -2
  44. package/dist/cjs/index35.js +3 -2
  45. package/dist/cjs/index35.js.map +1 -1
  46. package/dist/cjs/index36.js +17 -79
  47. package/dist/cjs/index36.js.map +1 -1
  48. package/dist/cjs/index37.js +6 -85
  49. package/dist/cjs/index37.js.map +1 -1
  50. package/dist/cjs/index38.js +9 -86
  51. package/dist/cjs/index38.js.map +1 -1
  52. package/dist/cjs/index39.js +10 -79
  53. package/dist/cjs/index39.js.map +1 -1
  54. package/dist/cjs/index40.js +1 -87
  55. package/dist/cjs/index40.js.map +1 -1
  56. package/dist/cjs/index43.js +2 -1
  57. package/dist/cjs/index43.js.map +1 -1
  58. package/dist/cjs/index6.js +10 -82
  59. package/dist/cjs/index6.js.map +1 -1
  60. package/dist/cjs/index8.js +1 -2
  61. package/dist/cjs/index8.js.map +1 -1
  62. package/dist/cjs/{types-7f6324ea.js → types-8eab1382.js} +6 -26
  63. package/dist/cjs/types-8eab1382.js.map +1 -0
  64. package/dist/{esm/VCVerificationPill-2c48beee.js → cjs/types.esm-2ec4fa7e.js} +3 -63
  65. package/dist/cjs/types.esm-2ec4fa7e.js.map +1 -0
  66. package/dist/esm/{CertificateDisplayCard-711f2e93.js → CertificateDisplayCard-b3c93952.js} +66 -46
  67. package/dist/esm/CertificateDisplayCard-b3c93952.js.map +1 -0
  68. package/dist/{cjs/numeral-d057158c.js → esm/CircleIcon-b527bf95.js} +89 -3
  69. package/dist/esm/CircleIcon-b527bf95.js.map +1 -0
  70. package/dist/esm/{User-9f253521.js → Coins-ed119ec6.js} +2 -83
  71. package/dist/esm/Coins-ed119ec6.js.map +1 -0
  72. package/dist/esm/{Notification-78a215ff.js → Notification-95d159d2.js} +2 -2
  73. package/dist/esm/{Notification-78a215ff.js.map → Notification-95d159d2.js.map} +1 -1
  74. package/dist/esm/{NotificationBoostCard-9e7197eb.js → NotificationBoostCard-e614c341.js} +2 -2
  75. package/dist/esm/{NotificationBoostCard-9e7197eb.js.map → NotificationBoostCard-e614c341.js.map} +1 -1
  76. package/dist/esm/PuzzlePiece-1fb12c2e.js +25 -0
  77. package/dist/esm/PuzzlePiece-1fb12c2e.js.map +1 -0
  78. package/dist/esm/{react-barcode-150610c2.js → SchoolIDCard-01422d53.js} +60 -1184
  79. package/dist/esm/SchoolIDCard-01422d53.js.map +1 -0
  80. package/dist/esm/User-161c7f37.js +85 -0
  81. package/dist/esm/User-161c7f37.js.map +1 -0
  82. package/dist/esm/{VCCard-caeb4bbd.js → VCCard-b0347a85.js} +4 -31
  83. package/dist/{cjs/VCCard-55f7738e.js.map → esm/VCCard-b0347a85.js.map} +1 -1
  84. package/dist/esm/{VCDisplayBackFace-e13869e2.js → VCDisplayBackFace-1a581f1c.js} +3 -3
  85. package/dist/esm/{VCDisplayBackFace-e13869e2.js.map → VCDisplayBackFace-1a581f1c.js.map} +1 -1
  86. package/dist/esm/{VCDisplayCard-04dcc183.js → VCDisplayCard-ac914ce3.js} +3 -3
  87. package/dist/esm/{VCDisplayCard-04dcc183.js.map → VCDisplayCard-ac914ce3.js.map} +1 -1
  88. package/dist/esm/{VCDisplayCard2-e2e1d9f1.js → VCDisplayCard2-b0f44405.js} +251 -19
  89. package/dist/esm/VCDisplayCard2-b0f44405.js.map +1 -0
  90. package/dist/esm/VCVerificationPill-3e38a718.js +65 -0
  91. package/dist/esm/VCVerificationPill-3e38a718.js.map +1 -0
  92. package/dist/esm/constants-f2a32f0c.js +107 -0
  93. package/dist/esm/constants-f2a32f0c.js.map +1 -0
  94. package/dist/esm/{credential.helpers-20680b00.js → credential.helpers-c06a1aa8.js} +5 -45
  95. package/dist/esm/{credential.helpers-20680b00.js.map → credential.helpers-c06a1aa8.js.map} +1 -1
  96. package/dist/esm/index-4fa491c1.js +1184 -0
  97. package/dist/esm/index-4fa491c1.js.map +1 -0
  98. package/dist/esm/index.js +26 -26
  99. package/dist/esm/index13.js +26 -26
  100. package/dist/esm/index22.js +5 -3
  101. package/dist/esm/index22.js.map +1 -1
  102. package/dist/esm/index23.js +5 -3
  103. package/dist/esm/index23.js.map +1 -1
  104. package/dist/esm/index28.js +2 -4
  105. package/dist/esm/index28.js.map +1 -1
  106. package/dist/esm/index29.js +2 -2
  107. package/dist/esm/index35.js +2 -1
  108. package/dist/esm/index35.js.map +1 -1
  109. package/dist/esm/index36.js +17 -79
  110. package/dist/esm/index36.js.map +1 -1
  111. package/dist/esm/index37.js +6 -85
  112. package/dist/esm/index37.js.map +1 -1
  113. package/dist/esm/index38.js +9 -86
  114. package/dist/esm/index38.js.map +1 -1
  115. package/dist/esm/index39.js +9 -78
  116. package/dist/esm/index39.js.map +1 -1
  117. package/dist/esm/index40.js +1 -87
  118. package/dist/esm/index40.js.map +1 -1
  119. package/dist/esm/index43.js +2 -1
  120. package/dist/esm/index43.js.map +1 -1
  121. package/dist/esm/index6.js +9 -82
  122. package/dist/esm/index6.js.map +1 -1
  123. package/dist/esm/index8.js +1 -2
  124. package/dist/esm/index8.js.map +1 -1
  125. package/dist/esm/{types-c31e4bae.js → types-cfde3c2b.js} +5 -24
  126. package/dist/esm/types-cfde3c2b.js.map +1 -0
  127. package/dist/{cjs/VCVerificationPill-b4b96a9f.js → esm/types.esm-8f6a5623.js} +2 -75
  128. package/dist/esm/types.esm-8f6a5623.js.map +1 -0
  129. package/dist/index.d.ts +10 -1
  130. package/dist/main.css +1 -1
  131. package/dist/main.js +1 -1
  132. package/package.json +1 -1
  133. package/dist/cjs/CertificateDisplayCard-2283f3de.js.map +0 -1
  134. package/dist/cjs/CircleIcon-dace003c.js +0 -98
  135. package/dist/cjs/CircleIcon-dace003c.js.map +0 -1
  136. package/dist/cjs/RoundedSquare-fc16f13f.js +0 -58
  137. package/dist/cjs/RoundedSquare-fc16f13f.js.map +0 -1
  138. package/dist/cjs/SchoolIDCard-44ef96bd.js +0 -68
  139. package/dist/cjs/SchoolIDCard-44ef96bd.js.map +0 -1
  140. package/dist/cjs/User-dde46685.js.map +0 -1
  141. package/dist/cjs/VCDisplayCard2-de2f603c.js.map +0 -1
  142. package/dist/cjs/VCVerificationPill-b4b96a9f.js.map +0 -1
  143. package/dist/cjs/constants-93a826a5.js.map +0 -1
  144. package/dist/cjs/index.es-05e5f438.js +0 -194
  145. package/dist/cjs/index.es-05e5f438.js.map +0 -1
  146. package/dist/cjs/numeral-d057158c.js.map +0 -1
  147. package/dist/cjs/react-barcode-1a2c5694.js.map +0 -1
  148. package/dist/cjs/types-7f6324ea.js.map +0 -1
  149. package/dist/esm/CertificateDisplayCard-711f2e93.js.map +0 -1
  150. package/dist/esm/CircleIcon-b45511e1.js +0 -91
  151. package/dist/esm/CircleIcon-b45511e1.js.map +0 -1
  152. package/dist/esm/RoundedSquare-0d25f9ef.js +0 -52
  153. package/dist/esm/RoundedSquare-0d25f9ef.js.map +0 -1
  154. package/dist/esm/SchoolIDCard-91bade9a.js +0 -62
  155. package/dist/esm/SchoolIDCard-91bade9a.js.map +0 -1
  156. package/dist/esm/User-9f253521.js.map +0 -1
  157. package/dist/esm/VCDisplayCard2-e2e1d9f1.js.map +0 -1
  158. package/dist/esm/VCVerificationPill-2c48beee.js.map +0 -1
  159. package/dist/esm/constants-ee2b8bc3.js +0 -59
  160. package/dist/esm/constants-ee2b8bc3.js.map +0 -1
  161. package/dist/esm/index.es-0cc0c240.js +0 -187
  162. package/dist/esm/index.es-0cc0c240.js.map +0 -1
  163. package/dist/esm/numeral-804ed0c4.js.map +0 -1
  164. package/dist/esm/react-barcode-150610c2.js.map +0 -1
  165. package/dist/esm/types-c31e4bae.js.map +0 -1
@@ -1,7 +1,10 @@
1
1
  import React, { useState, useEffect } from 'react';
2
- import { g as getColorForVerificationStatus, a as getInfoFromCredential, b as getCategoryDarkColor, c as getCategoryLightColor, d as getCategoryIcon, e as getTotalCountOfSkills, f as categorizeSkills, h as getNameFromProfile, i as getImageFromProfile } from './credential.helpers-20680b00.js';
3
- import './default-face.jpeg';
4
- import 'react-dom';
2
+ import { g as getTotalCountOfSkills, c as categorizeSkills, a as getColorForVerificationStatus, b as getInfoFromCredential, d as getCategoryDarkColor, e as getCategoryLightColor, f as getCategoryIcon, h as getNameFromProfile, i as getImageFromProfile } from './credential.helpers-c06a1aa8.js';
3
+ import { P as PuzzlePiece } from './PuzzlePiece-1fb12c2e.js';
4
+ import { a as LCCategoryEnum } from './index-43f63ea7.js';
5
+ import { V as VerificationStatusEnum } from './types.esm-8f6a5623.js';
6
+ import CaretRightFilled from './CaretRightFilled.svg';
7
+ import { L as Lightbox } from './Lightbox-a1aab9ea.js';
5
8
  import Athletics from './athletics.svg';
6
9
  import Business from './business.svg';
7
10
  import Creative from './creative.svg';
@@ -11,15 +14,7 @@ import Medical from './medical.svg';
11
14
  import Social from './social.svg';
12
15
  import Stem from './stem.svg';
13
16
  import Trade from './trade.svg';
14
- import { a as VerificationStatusEnum } from './VCVerificationPill-2c48beee.js';
15
- import CaretRightFilled from './CaretRightFilled.svg';
16
- import './index.es-0cc0c240.js';
17
- import './vc.check.svg';
18
- import { a as LCCategoryEnum } from './index-43f63ea7.js';
19
- import { P as PuzzlePiece } from './types-c31e4bae.js';
20
- import './id-sleeve.png';
21
17
  import ThreeDots from './DotsThreeOutline.svg';
22
- import { L as Lightbox } from './Lightbox-a1aab9ea.js';
23
18
 
24
19
  const AcuteCheckmark = ({ className = "" }) => {
25
20
  return /* @__PURE__ */ React.createElement("svg", {
@@ -393,7 +388,10 @@ const InfoBox = ({ text, handleClose, backgroundColor = "#6366F1" }) => {
393
388
  className: "info-box p-[10px] rounded-[10px] w-full font-poppins text-[12px] leading[18px]",
394
389
  style: { backgroundColor: bgColorWithOpacity }
395
390
  }, text, " ", /* @__PURE__ */ React.createElement("button", {
396
- onClick: handleClose,
391
+ onClick: (e) => {
392
+ e.stopPropagation();
393
+ handleClose();
394
+ },
397
395
  className: "text-indigo-500 font-[700] select-none"
398
396
  }, "Close"));
399
397
  };
@@ -431,6 +429,28 @@ const AlignmentsBox = ({ alignment, style }) => {
431
429
  }), alignments);
432
430
  };
433
431
 
432
+ const CertDisplayCardSkillsCount = ({ skills, onClick }) => {
433
+ const skillsCount = getTotalCountOfSkills(skills);
434
+ if (skillsCount === 0)
435
+ return /* @__PURE__ */ React.createElement(React.Fragment, null);
436
+ const skillsMap = categorizeSkills(skills);
437
+ const totalSkills = Object.values(skillsMap).reduce((total2, category) => total2 + (category == null ? void 0 : category.length), 0);
438
+ const totalSubskills = Object.values(skillsMap).reduce((total2, category) => total2 + ((category == null ? void 0 : category.totalSubskillsCount) || 0), 0);
439
+ const total = totalSkills + totalSubskills;
440
+ const text = skillsCount === 1 ? "Skill" : "Skills";
441
+ return /* @__PURE__ */ React.createElement("div", {
442
+ className: "flex items-center justify-center mt-8 cursor-pointer px-4 py-2 bg-white rounded-[20px] shadow-bottom",
443
+ onClick
444
+ }, /* @__PURE__ */ React.createElement("div", {
445
+ className: "text-violet-500 text-xl flex items-center justify-center tracking-[0.75px] font-poppins font-semibold"
446
+ }, "+", total, " ", text, " ", /* @__PURE__ */ React.createElement("div", {
447
+ className: "bg-violet-500 rounded-full flex items-center justify-center ml-2 h-[30px] w-[30px] p-1"
448
+ }, /* @__PURE__ */ React.createElement(PuzzlePiece, {
449
+ className: "text-white",
450
+ fill: "#fff"
451
+ }))));
452
+ };
453
+
434
454
  const truncateWithEllipsis = (str, maxLength) => {
435
455
  return str.length > maxLength ? `${str.substring(0, maxLength)}...` : str;
436
456
  };
@@ -482,7 +502,10 @@ const VerificationsBox = ({ verificationItems }) => {
482
502
  className: "text-[17px] text-grayscale-900 font-poppins"
483
503
  }, "Verifications"), /* @__PURE__ */ React.createElement("button", {
484
504
  className: "ml-auto",
485
- onClick: () => setShowInfo(!showInfo)
505
+ onClick: (e) => {
506
+ e.stopPropagation();
507
+ setShowInfo(!showInfo);
508
+ }
486
509
  }, /* @__PURE__ */ React.createElement(InfoIcon, {
487
510
  color: showInfo ? "#6366F1" : void 0
488
511
  }))), showInfo && /* @__PURE__ */ React.createElement(InfoBox, {
@@ -514,10 +537,16 @@ const TruncateTextBox = ({
514
537
  className: "text-[12px] text-grayscale-700 font-poppins mb-0 flex flex-col items-start"
515
538
  }, displayText, truncated && /* @__PURE__ */ React.createElement(React.Fragment, null, "...", /* @__PURE__ */ React.createElement("button", {
516
539
  className: "text-indigo-500 text-[12px]",
517
- onClick: () => setShowFullText(true)
540
+ onClick: (e) => {
541
+ e.stopPropagation();
542
+ setShowFullText(true);
543
+ }
518
544
  }, "Show more")), needsTruncate && showFullText && /* @__PURE__ */ React.createElement("button", {
519
545
  className: "text-indigo-500 text-[12px]",
520
- onClick: () => setShowFullText(false)
546
+ onClick: (e) => {
547
+ e.stopPropagation();
548
+ setShowFullText(false);
549
+ }
521
550
  }, "Show less")), children);
522
551
  };
523
552
 
@@ -814,7 +843,10 @@ const MediaAttachmentsBox = ({
814
843
  className: "flex bg-grayscale-100 items-center rounded-[15px] w-full"
815
844
  }, /* @__PURE__ */ React.createElement("button", {
816
845
  className: "h-[80px] w-[80px] rounded-[15px]",
817
- onClick: () => handleMediaAttachmentClick(media.url, media.type)
846
+ onClick: (e) => {
847
+ e.stopPropagation();
848
+ handleMediaAttachmentClick(media.url, media.type);
849
+ }
818
850
  }, innerContent), title && /* @__PURE__ */ React.createElement("div", {
819
851
  className: "text-[12px] text-grayscale-900 font-poppins px-[10px] line-clamp-3"
820
852
  }, title));
@@ -849,21 +881,26 @@ const MediaAttachmentsBox = ({
849
881
  href: docOrLink.url,
850
882
  target: "_blank",
851
883
  rel: "noreferrer",
852
- className: "text-grayscale-700 font-[500] text-[12px] font-poppins hover:underline"
884
+ className: "text-grayscale-700 font-[500] text-[12px] font-poppins hover:underline",
885
+ onClick: (e) => e.stopPropagation()
853
886
  }, fileExtension && /* @__PURE__ */ React.createElement("span", {
854
887
  className: "uppercase"
855
888
  }, fileExtension), fileExtension && (numberOfPages || sizeInBytes) && " \u2022 ", numberOfPages && /* @__PURE__ */ React.createElement("span", null, numberOfPages, " page", numberOfPages === 1 ? "" : "s"), numberOfPages && sizeInBytes && " \u2022 ", sizeInBytes && /* @__PURE__ */ React.createElement("span", null, prettyBytes(sizeInBytes))), docOrLink.type === "link" && /* @__PURE__ */ React.createElement("a", {
856
889
  href: docOrLink.url,
857
890
  target: "_blank",
858
891
  rel: "noreferrer",
859
- className: "text-indigo-500 font-[500] text-[12px] font-poppins hover:underline"
892
+ className: "text-indigo-500 font-[500] text-[12px] font-poppins hover:underline",
893
+ onClick: (e) => e.stopPropagation()
860
894
  }, baseUrl))));
861
895
  const className = `row-attachment ${docOrLink.type} bg-grayscale-100 rounded-[15px] p-[10px] w-full font-poppins text-[12px] leading-[18px] tracking-[-0.33px] text-left`;
862
896
  if (onMediaAttachmentClick) {
863
897
  return /* @__PURE__ */ React.createElement("button", {
864
898
  key: index,
865
899
  className,
866
- onClick: () => handleMediaAttachmentClick(docOrLink.url, docOrLink.type)
900
+ onClick: (e) => {
901
+ e.stopPropagation();
902
+ handleMediaAttachmentClick(docOrLink.url, docOrLink.type);
903
+ }
867
904
  }, innerContent);
868
905
  }
869
906
  return /* @__PURE__ */ React.createElement("div", {
@@ -2640,7 +2677,8 @@ const TopLevelSkill = ({ skillSelected, skill, handleExpandSubSkills }) => {
2640
2677
  }, title))), (subSkills == null ? void 0 : subSkills.length) > 0 && /* @__PURE__ */ React.createElement("div", {
2641
2678
  className: "flex items-center justify-center rounded-full bg-white mr-4 h-[40px] w-[40px]"
2642
2679
  }, /* @__PURE__ */ React.createElement("button", {
2643
- onClick: () => {
2680
+ onClick: (e) => {
2681
+ e.stopPropagation();
2644
2682
  handleExpandSubSkills == null ? void 0 : handleExpandSubSkills();
2645
2683
  },
2646
2684
  className: "text-black font-bold flex items-center justify-center text-center font-poppins"
@@ -2748,7 +2786,9 @@ const CertificateBackFace = ({
2748
2786
  bgColor = "bg-lime-700";
2749
2787
  }
2750
2788
  return /* @__PURE__ */ React.createElement("div", {
2751
- className: `flex flex-col gap-[15px] items-center border-[5px] border-solid border-grayscale-200 py-[30px] px-[20px] rounded-[25px] max-w-[440px] ${bgColor}`
2789
+ role: "button",
2790
+ onClick: () => handleViewFrontFace == null ? void 0 : handleViewFrontFace(),
2791
+ className: `flex flex-col gap-[15px] items-center border-[5px] border-solid border-grayscale-200 py-[30px] px-[20px] rounded-[25px] max-w-[400px] ${bgColor}`
2752
2792
  }, showBackButton ? /* @__PURE__ */ React.createElement("div", {
2753
2793
  className: "w-full"
2754
2794
  }, /* @__PURE__ */ React.createElement("button", {
@@ -2882,28 +2922,6 @@ const CertificateProfileImageDisplay = ({
2882
2922
  }));
2883
2923
  };
2884
2924
 
2885
- const VCDisplayCardSkillsCount = ({ skills, onClick }) => {
2886
- const skillsCount = getTotalCountOfSkills(skills);
2887
- if (skillsCount === 0)
2888
- return /* @__PURE__ */ React.createElement(React.Fragment, null);
2889
- const skillsMap = categorizeSkills(skills);
2890
- const totalSkills = Object.values(skillsMap).reduce((total2, category) => total2 + (category == null ? void 0 : category.length), 0);
2891
- const totalSubskills = Object.values(skillsMap).reduce((total2, category) => total2 + ((category == null ? void 0 : category.totalSubskillsCount) || 0), 0);
2892
- const total = totalSkills + totalSubskills;
2893
- const text = skillsCount === 1 ? "Skill" : "Skills";
2894
- return /* @__PURE__ */ React.createElement("div", {
2895
- className: "flex items-center justify-center mt-8 cursor-pointer px-4 py-2 bg-white rounded-[20px] shadow-bottom",
2896
- onClick
2897
- }, /* @__PURE__ */ React.createElement("p", {
2898
- className: "text-violet-500 text-xl flex items-center justify-center tracking-[0.75px] font-poppins font-semibold"
2899
- }, "+", total, " ", text, " ", /* @__PURE__ */ React.createElement("div", {
2900
- className: "bg-violet-500 rounded-full flex items-center justify-center ml-2 h-[30px] w-[30px] p-1"
2901
- }, /* @__PURE__ */ React.createElement(PuzzlePiece, {
2902
- className: "text-white",
2903
- fill: "#fff"
2904
- }))));
2905
- };
2906
-
2907
2925
  const VERIFIER_STATES = {
2908
2926
  selfVerified: "Self Verified",
2909
2927
  trustedVerifier: "Trusted Verifier",
@@ -2977,6 +2995,8 @@ const CertificateFrontFace = ({
2977
2995
  const isSelfVerified = verifierState === VERIFIER_STATES.selfVerified;
2978
2996
  const issueeImageExists = issueeImage || subjectImageComponent;
2979
2997
  return /* @__PURE__ */ React.createElement("section", {
2998
+ role: "button",
2999
+ onClick: () => handleViewBackFace == null ? void 0 : handleViewBackFace(),
2980
3000
  className: "relative p-[13px] mt-[55px] bg-white border-[5px] rounded-[30px] border-soid border-grayscale-200 max-w-[300px]"
2981
3001
  }, /* @__PURE__ */ React.createElement("div", {
2982
3002
  className: "w-[calc(100%-26px)] absolute top-[-52px]"
@@ -3011,7 +3031,7 @@ const CertificateFrontFace = ({
3011
3031
  className: "flex flex-col gap-[10px] items-center"
3012
3032
  }, description && /* @__PURE__ */ React.createElement("div", {
3013
3033
  className: "text-center text-grayscale-700 text-[12px] font-jacques line-clamp-4"
3014
- }, description), /* @__PURE__ */ React.createElement(VCDisplayCardSkillsCount, {
3034
+ }, description), /* @__PURE__ */ React.createElement(CertDisplayCardSkillsCount, {
3015
3035
  skills: (_b = credential == null ? void 0 : credential.skills) != null ? _b : [],
3016
3036
  onClick: handleViewBackFace
3017
3037
  }), isFront && showDetailsBtn && /* @__PURE__ */ React.createElement("button", {
@@ -3133,5 +3153,5 @@ const CertificateDisplayCard = ({
3133
3153
  }))));
3134
3154
  };
3135
3155
 
3136
- export { AcuteCheckmark as A, CertificateBackFace as C, ExclamationPoint as E, GenericDocumentIcon as G, InfoIcon as I, LinkIcon as L, PersonBadge as P, RedFlag as R, SelectedSkills as S, UnknownVerifierBadge as U, VCDisplayCardSkillsCount as V, X, CertificateDisplayCard as a, CertificateFrontFace as b, VideoIcon as c, Camera as d, capitalize as e, LeftArrow as f, getBaseUrl as g, SkillsBox as h, AlignmentsBox as i, VerifiedBadge as j, prettyBytes as p, truncateWithEllipsis as t };
3137
- //# sourceMappingURL=CertificateDisplayCard-711f2e93.js.map
3156
+ export { AcuteCheckmark as A, CertDisplayCardSkillsCount as C, ExclamationPoint as E, GenericDocumentIcon as G, InfoIcon as I, LinkIcon as L, PersonBadge as P, RedFlag as R, SelectedSkills as S, UnknownVerifierBadge as U, VideoIcon as V, X, CertificateBackFace as a, CertificateDisplayCard as b, CertificateFrontFace as c, Camera as d, capitalize as e, LeftArrow as f, getBaseUrl as g, SkillsBox as h, AlignmentsBox as i, VerifiedBadge as j, prettyBytes as p, truncateWithEllipsis as t };
3157
+ //# sourceMappingURL=CertificateDisplayCard-b3c93952.js.map