@learncard/react 2.8.62 → 2.9.3

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 (411) hide show
  1. package/dist/cjs/AchievementCard-c43817f2.js +87 -0
  2. package/dist/cjs/{AchievementCard-dd332f3f.js.map → AchievementCard-c43817f2.js.map} +1 -1
  3. package/dist/cjs/BoostGenericCard-a239e89c.js +180 -0
  4. package/dist/cjs/{BoostGenericCard-55f710ad.js.map → BoostGenericCard-a239e89c.js.map} +1 -1
  5. package/dist/cjs/BoostSmallCard-3e303698.js +165 -0
  6. package/dist/cjs/{BoostSmallCard-dd1cbd51.js.map → BoostSmallCard-3e303698.js.map} +1 -1
  7. package/dist/cjs/{Button-a7af702b.js → Button-9ebe120c.js} +10 -6
  8. package/dist/cjs/{Button-a7af702b.js.map → Button-9ebe120c.js.map} +1 -1
  9. package/dist/cjs/CertificateDisplayCard-b299f7fd.js +891 -0
  10. package/dist/cjs/{CertificateDisplayCard-9f619468.js.map → CertificateDisplayCard-b299f7fd.js.map} +1 -1
  11. package/dist/cjs/Checkmark-74444a78.js +79 -0
  12. package/dist/cjs/{Checkmark-f611aa4d.js.map → Checkmark-74444a78.js.map} +1 -1
  13. package/dist/cjs/{CircleCheckButton-82d47ee2.js → CircleCheckButton-f76e5b5d.js} +11 -9
  14. package/dist/cjs/{CircleCheckButton-82d47ee2.js.map → CircleCheckButton-f76e5b5d.js.map} +1 -1
  15. package/dist/cjs/{CircleIcon-617c38fa.js → CircleIcon-f0fa68c7.js} +14 -30
  16. package/dist/cjs/{CircleIcon-617c38fa.js.map → CircleIcon-f0fa68c7.js.map} +1 -1
  17. package/dist/cjs/{CircleSpinner-093cce04.js → CircleSpinner-f518569a.js} +2 -13
  18. package/dist/cjs/{CircleSpinner-093cce04.js.map → CircleSpinner-f518569a.js.map} +1 -1
  19. package/dist/cjs/Coins-1f33b7ad.js +20 -0
  20. package/dist/cjs/{Coins-acd63f46.js.map → Coins-1f33b7ad.js.map} +1 -1
  21. package/dist/cjs/CourseCard-bc699307.js +88 -0
  22. package/dist/cjs/{CourseCard-338a32ee.js.map → CourseCard-bc699307.js.map} +1 -1
  23. package/dist/cjs/CourseVerticalCard-554ff1b7.js +116 -0
  24. package/dist/cjs/{CourseVerticalCard-841960b1.js.map → CourseVerticalCard-554ff1b7.js.map} +1 -1
  25. package/dist/cjs/{FlippyCard-209549c5.js → FlippyCard-bf0fd493.js} +3 -16
  26. package/dist/cjs/{FlippyCard-209549c5.js.map → FlippyCard-bf0fd493.js.map} +1 -1
  27. package/dist/cjs/GenericArrow-5c392276.js +34 -0
  28. package/dist/cjs/{GenericArrow-8dfb261d.js.map → GenericArrow-5c392276.js.map} +1 -1
  29. package/dist/cjs/GenericCard-2b20ab4b.js +66 -0
  30. package/dist/cjs/{GenericCard-ad18c4c3.js.map → GenericCard-2b20ab4b.js.map} +1 -1
  31. package/dist/cjs/IDDisplayIcon-4b6ce62f.js +234 -0
  32. package/dist/cjs/{IDDisplayIcon-62993df0.js.map → IDDisplayIcon-4b6ce62f.js.map} +1 -1
  33. package/dist/cjs/JobHistoryCard-e9ac7a1a.js +35 -0
  34. package/dist/cjs/{JobHistoryCard-05a3f98b.js.map → JobHistoryCard-e9ac7a1a.js.map} +1 -1
  35. package/dist/cjs/JobListCard-c53660e8.js +124 -0
  36. package/dist/cjs/{JobListCard-f74f0302.js.map → JobListCard-c53660e8.js.map} +1 -1
  37. package/dist/cjs/LearnCardCreditCardBackFace-62330eea.js +83 -0
  38. package/dist/cjs/{LearnCardCreditCardBackFace-87cc8b9f.js.map → LearnCardCreditCardBackFace-62330eea.js.map} +1 -1
  39. package/dist/cjs/LearnCardCreditCardFrontFace-aca1b7bc.js +89 -0
  40. package/dist/cjs/{LearnCardCreditCardFrontFace-39eeb89a.js.map → LearnCardCreditCardFrontFace-aca1b7bc.js.map} +1 -1
  41. package/dist/cjs/{LearnPill-d80ba2e6.js → LearnPill-da2d2a8e.js} +10 -10
  42. package/dist/cjs/{LearnPill-d80ba2e6.js.map → LearnPill-da2d2a8e.js.map} +1 -1
  43. package/dist/cjs/{Lightbox-9aeb2f7b.js → Lightbox-d72e19ba.js} +70 -58
  44. package/dist/cjs/{Lightbox-9aeb2f7b.js.map → Lightbox-d72e19ba.js.map} +1 -1
  45. package/dist/cjs/Lightbulb-82cec354.js +42 -0
  46. package/dist/cjs/{Lightbulb-19c89d3c.js.map → Lightbulb-82cec354.js.map} +1 -1
  47. package/dist/cjs/MeritBadgeDisplayCard-531dbb15.js +947 -0
  48. package/dist/cjs/{MeritBadgeDisplayCard-81bd14b8.js.map → MeritBadgeDisplayCard-531dbb15.js.map} +1 -1
  49. package/dist/cjs/MeritBadgeSkillsCount-4ffd9166.js +36 -0
  50. package/dist/cjs/{MeritBadgeSkillsCount-85cf4a91.js.map → MeritBadgeSkillsCount-4ffd9166.js.map} +1 -1
  51. package/dist/cjs/MiniVCThumbnail-9c510f51.js +85 -0
  52. package/dist/cjs/{MiniVCThumbnail-a78e44f2.js.map → MiniVCThumbnail-9c510f51.js.map} +1 -1
  53. package/dist/cjs/Notification-24d4de25.js +123 -0
  54. package/dist/cjs/{Notification-3fe4a359.js.map → Notification-24d4de25.js.map} +1 -1
  55. package/dist/cjs/NotificationBoostCard-abb23722.js +142 -0
  56. package/dist/cjs/{NotificationBoostCard-be514ddb.js.map → NotificationBoostCard-abb23722.js.map} +1 -1
  57. package/dist/cjs/NotificationUserAcceptedBoostCard-31d8a89e.js +98 -0
  58. package/dist/cjs/{NotificationUserAcceptedBoostCard-423b9320.js.map → NotificationUserAcceptedBoostCard-31d8a89e.js.map} +1 -1
  59. package/dist/cjs/NotificationUserCard-59431df3.js +121 -0
  60. package/dist/cjs/{NotificationUserCard-d4dab06c.js.map → NotificationUserCard-59431df3.js.map} +1 -1
  61. package/dist/cjs/PuzzlePiece-e64f4596.js +97 -0
  62. package/dist/cjs/{PuzzlePiece-088d2b00.js.map → PuzzlePiece-e64f4596.js.map} +1 -1
  63. package/dist/cjs/QRCodeCard-f0079bd9.js +49 -0
  64. package/dist/cjs/{QRCodeCard-b56c11cc.js.map → QRCodeCard-f0079bd9.js.map} +1 -1
  65. package/dist/cjs/QRCodeIcon-3021a53b.js +137 -0
  66. package/dist/cjs/{QRCodeIcon-81c6e96b.js.map → QRCodeIcon-3021a53b.js.map} +1 -1
  67. package/dist/cjs/RoundedPill-b54f3ac1.js +134 -0
  68. package/dist/cjs/{RoundedPill-bda7c067.js.map → RoundedPill-b54f3ac1.js.map} +1 -1
  69. package/dist/cjs/{SchoolIDCard-42d7c96f.js → SchoolIDCard-e22d0d80.js} +34 -34
  70. package/dist/cjs/{SchoolIDCard-42d7c96f.js.map → SchoolIDCard-e22d0d80.js.map} +1 -1
  71. package/dist/cjs/SkillTabCard-efade17a.js +44 -0
  72. package/dist/cjs/{SkillTabCard-66677f3c.js.map → SkillTabCard-efade17a.js.map} +1 -1
  73. package/dist/cjs/SkillVerticalCard-62e308b4.js +37 -0
  74. package/dist/cjs/{SkillVerticalCard-3eb3a8e9.js.map → SkillVerticalCard-62e308b4.js.map} +1 -1
  75. package/dist/cjs/SkillsCard-dae73a71.js +57 -0
  76. package/dist/cjs/{SkillsCard-4b6dbb4f.js.map → SkillsCard-dae73a71.js.map} +1 -1
  77. package/dist/cjs/SkillsStatsCard-aeef796c.js +57 -0
  78. package/dist/cjs/{SkillsStatsCard-97a35a88.js.map → SkillsStatsCard-aeef796c.js.map} +1 -1
  79. package/dist/cjs/SmallAchievementCard-d22a4d25.js +53 -0
  80. package/dist/cjs/{SmallAchievementCard-a1fa862b.js.map → SmallAchievementCard-d22a4d25.js.map} +1 -1
  81. package/dist/cjs/ThreeDotVertical-dda0e747.js +57 -0
  82. package/dist/cjs/{ThreeDotVertical-1d221fc8.js.map → ThreeDotVertical-dda0e747.js.map} +1 -1
  83. package/dist/cjs/Trophy-9758f0cf.js +35 -0
  84. package/dist/cjs/{Trophy-3d323be3.js.map → Trophy-9758f0cf.js.map} +1 -1
  85. package/dist/cjs/User-54049eba.js +130 -0
  86. package/dist/cjs/{User-301088ac.js.map → User-54049eba.js.map} +1 -1
  87. package/dist/cjs/{UserProfilePicture-16b97343.js → UserProfilePicture-d69fe4f0.js} +18 -12
  88. package/dist/cjs/{UserProfilePicture-16b97343.js.map → UserProfilePicture-d69fe4f0.js.map} +1 -1
  89. package/dist/cjs/{VCCard-f5bc1db8.js → VCCard-2683c65c.js} +29 -22
  90. package/dist/cjs/{VCCard-f5bc1db8.js.map → VCCard-2683c65c.js.map} +1 -1
  91. package/dist/cjs/VCDisplayBackFace-a7428833.js +70 -0
  92. package/dist/cjs/{VCDisplayBackFace-6000a58b.js.map → VCDisplayBackFace-a7428833.js.map} +1 -1
  93. package/dist/cjs/VCDisplayCard-b8882c8e.js +191 -0
  94. package/dist/cjs/{VCDisplayCard-9512d8f2.js.map → VCDisplayCard-b8882c8e.js.map} +1 -1
  95. package/dist/cjs/{VCDisplayCard2-2a1d5f57.js → VCDisplayCard2-28f7df8e.js} +724 -695
  96. package/dist/cjs/{VCDisplayCard2-2a1d5f57.js.map → VCDisplayCard2-28f7df8e.js.map} +1 -1
  97. package/dist/cjs/VCThumbnail-f84d0d01.js +148 -0
  98. package/dist/cjs/{VCThumbnail-6bf86bb2.js.map → VCThumbnail-f84d0d01.js.map} +1 -1
  99. package/dist/cjs/VCVerificationCheck-92198135.js +78 -0
  100. package/dist/cjs/{VCVerificationCheck-46fa75d3.js.map → VCVerificationCheck-92198135.js.map} +1 -1
  101. package/dist/cjs/{VCVerificationPill-d6303ad0.js → VCVerificationPill-729ac239.js} +11 -26
  102. package/dist/cjs/{VCVerificationPill-d6303ad0.js.map → VCVerificationPill-729ac239.js.map} +1 -1
  103. package/dist/cjs/{VerifierStateBadgeAndText-67eddbaf.js → VerifierStateBadgeAndText-e46d8393.js} +420 -338
  104. package/dist/cjs/{VerifierStateBadgeAndText-67eddbaf.js.map → VerifierStateBadgeAndText-e46d8393.js.map} +1 -1
  105. package/dist/cjs/{constants-cd049889.js → constants-2430d4bc.js} +22 -30
  106. package/dist/cjs/{constants-cd049889.js.map → constants-2430d4bc.js.map} +1 -1
  107. package/dist/cjs/{credential.helpers-60b421b9.js → credential.helpers-4f806327.js} +196 -155
  108. package/dist/cjs/{credential.helpers-60b421b9.js.map → credential.helpers-4f806327.js.map} +1 -1
  109. package/dist/cjs/{icons-0404f605.js → icons-857d4be1.js} +2 -1
  110. package/dist/cjs/{icons-0404f605.js.map → icons-857d4be1.js.map} +1 -1
  111. package/dist/cjs/{index-08002ab6.js → index-ba659c28.js} +9 -1
  112. package/dist/cjs/{index-08002ab6.js.map → index-ba659c28.js.map} +1 -1
  113. package/dist/cjs/index.js +58 -58
  114. package/dist/cjs/index10.js +4 -4
  115. package/dist/cjs/index11.js +1 -1
  116. package/dist/cjs/index12.js +5 -5
  117. package/dist/cjs/index13.js +58 -58
  118. package/dist/cjs/index14.js +2 -2
  119. package/dist/cjs/index15.js +2 -2
  120. package/dist/cjs/index16.js +1 -1
  121. package/dist/cjs/index17.js +1 -1
  122. package/dist/cjs/index18.js +2 -2
  123. package/dist/cjs/index19.js +1 -1
  124. package/dist/cjs/index2.js +6 -6
  125. package/dist/cjs/index20.js +1 -1
  126. package/dist/cjs/index21.js +10 -10
  127. package/dist/cjs/index22.js +1 -1
  128. package/dist/cjs/index23.js +7 -7
  129. package/dist/cjs/index24.js +8 -8
  130. package/dist/cjs/index25.js +1 -1
  131. package/dist/cjs/index26.js +2 -2
  132. package/dist/cjs/index27.js +1 -1
  133. package/dist/cjs/index28.js +2 -2
  134. package/dist/cjs/index29.js +5 -5
  135. package/dist/cjs/index3.js +12 -12
  136. package/dist/cjs/index30.js +1 -1
  137. package/dist/cjs/index31.js +1 -1
  138. package/dist/cjs/index32.js +1 -1
  139. package/dist/cjs/index33.js +4 -4
  140. package/dist/cjs/index34.js +1 -1
  141. package/dist/cjs/index35.js +2 -2
  142. package/dist/cjs/index36.js +9 -9
  143. package/dist/cjs/index37.js +1 -1
  144. package/dist/cjs/index38.js +19 -19
  145. package/dist/cjs/index39.js +9 -9
  146. package/dist/cjs/index4.js +7 -7
  147. package/dist/cjs/index40.js +12 -12
  148. package/dist/cjs/index41.js +14 -14
  149. package/dist/cjs/index42.js +1 -1
  150. package/dist/cjs/index43.js +1 -1
  151. package/dist/cjs/index44.js +2 -2
  152. package/dist/cjs/index45.js +2 -2
  153. package/dist/cjs/index5.js +1 -1
  154. package/dist/cjs/index6.js +9 -9
  155. package/dist/cjs/index7.js +3 -3
  156. package/dist/cjs/index8.js +3 -3
  157. package/dist/cjs/index9.js +1 -1
  158. package/dist/cjs/{types-f01c65d1.js → types-91d0677b.js} +24 -23
  159. package/dist/cjs/{types-f01c65d1.js.map → types-91d0677b.js.map} +1 -1
  160. package/dist/cjs/types-e4d9a257.js.map +1 -1
  161. package/dist/cjs/types.esm-beffa54c.js +5386 -0
  162. package/dist/cjs/types.esm-beffa54c.js.map +1 -0
  163. package/dist/esm/AchievementCard-e80836dd.js +81 -0
  164. package/dist/esm/{AchievementCard-d179d041.js.map → AchievementCard-e80836dd.js.map} +1 -1
  165. package/dist/esm/BoostGenericCard-b5e522ea.js +174 -0
  166. package/dist/esm/{BoostGenericCard-4cfa6556.js.map → BoostGenericCard-b5e522ea.js.map} +1 -1
  167. package/dist/esm/BoostSmallCard-ddefe808.js +157 -0
  168. package/dist/esm/{BoostSmallCard-42980ebc.js.map → BoostSmallCard-ddefe808.js.map} +1 -1
  169. package/dist/esm/Button-70eedbf6.js +16 -0
  170. package/dist/esm/{Button-5f805204.js.map → Button-70eedbf6.js.map} +1 -1
  171. package/dist/esm/CertificateDisplayCard-0ceeb71a.js +879 -0
  172. package/dist/esm/{CertificateDisplayCard-58c52cdb.js.map → CertificateDisplayCard-0ceeb71a.js.map} +1 -1
  173. package/dist/esm/Checkmark-724d5d17.js +73 -0
  174. package/dist/esm/{Checkmark-d8b8f43d.js.map → Checkmark-724d5d17.js.map} +1 -1
  175. package/dist/esm/CircleCheckButton-23a9c7d4.js +26 -0
  176. package/dist/esm/{CircleCheckButton-5a97f071.js.map → CircleCheckButton-23a9c7d4.js.map} +1 -1
  177. package/dist/esm/{CircleIcon-4200733b.js → CircleIcon-abd5ff06.js} +14 -30
  178. package/dist/esm/{CircleIcon-4200733b.js.map → CircleIcon-abd5ff06.js.map} +1 -1
  179. package/dist/esm/{CircleSpinner-9b8b1a6b.js → CircleSpinner-03a329fc.js} +2 -13
  180. package/dist/esm/{CircleSpinner-9b8b1a6b.js.map → CircleSpinner-03a329fc.js.map} +1 -1
  181. package/dist/esm/Coins-e9f35519.js +14 -0
  182. package/dist/esm/{Coins-ed119ec6.js.map → Coins-e9f35519.js.map} +1 -1
  183. package/dist/esm/CourseCard-990fdc99.js +78 -0
  184. package/dist/esm/{CourseCard-663ff174.js.map → CourseCard-990fdc99.js.map} +1 -1
  185. package/dist/esm/CourseVerticalCard-aae0c030.js +106 -0
  186. package/dist/esm/{CourseVerticalCard-130b0d91.js.map → CourseVerticalCard-aae0c030.js.map} +1 -1
  187. package/dist/esm/FlippyCard-458dc9b1.js +15 -0
  188. package/dist/esm/{FlippyCard-a2de5cf1.js.map → FlippyCard-458dc9b1.js.map} +1 -1
  189. package/dist/esm/GenericArrow-b2822cf6.js +28 -0
  190. package/dist/esm/{GenericArrow-0dba1707.js.map → GenericArrow-b2822cf6.js.map} +1 -1
  191. package/dist/esm/GenericCard-24648e62.js +60 -0
  192. package/dist/esm/{GenericCard-4bb4220a.js.map → GenericCard-24648e62.js.map} +1 -1
  193. package/dist/esm/IDDisplayIcon-d87174fd.js +224 -0
  194. package/dist/esm/{IDDisplayIcon-82a851e7.js.map → IDDisplayIcon-d87174fd.js.map} +1 -1
  195. package/dist/esm/JobHistoryCard-e71ab2c7.js +29 -0
  196. package/dist/esm/{JobHistoryCard-80d4ef27.js.map → JobHistoryCard-e71ab2c7.js.map} +1 -1
  197. package/dist/esm/JobListCard-e8b4ab33.js +117 -0
  198. package/dist/esm/{JobListCard-0d1c4184.js.map → JobListCard-e8b4ab33.js.map} +1 -1
  199. package/dist/esm/LearnCardCreditCardBackFace-56642837.js +76 -0
  200. package/dist/esm/{LearnCardCreditCardBackFace-9baa9e6b.js.map → LearnCardCreditCardBackFace-56642837.js.map} +1 -1
  201. package/dist/esm/LearnCardCreditCardFrontFace-b7c917f5.js +81 -0
  202. package/dist/esm/{LearnCardCreditCardFrontFace-d50efb25.js.map → LearnCardCreditCardFrontFace-b7c917f5.js.map} +1 -1
  203. package/dist/esm/{LearnPill-74bcb08c.js → LearnPill-e0720485.js} +10 -10
  204. package/dist/esm/{LearnPill-74bcb08c.js.map → LearnPill-e0720485.js.map} +1 -1
  205. package/dist/esm/{Lightbox-2ae83d79.js → Lightbox-f0338a0c.js} +70 -58
  206. package/dist/esm/{Lightbox-2ae83d79.js.map → Lightbox-f0338a0c.js.map} +1 -1
  207. package/dist/esm/Lightbulb-7e24711e.js +35 -0
  208. package/dist/esm/{Lightbulb-b6eca510.js.map → Lightbulb-7e24711e.js.map} +1 -1
  209. package/dist/esm/MeritBadgeDisplayCard-4b8fe8e4.js +937 -0
  210. package/dist/esm/{MeritBadgeDisplayCard-c87b0271.js.map → MeritBadgeDisplayCard-4b8fe8e4.js.map} +1 -1
  211. package/dist/esm/MeritBadgeSkillsCount-cd2f3f6d.js +30 -0
  212. package/dist/esm/{MeritBadgeSkillsCount-77ceb64c.js.map → MeritBadgeSkillsCount-cd2f3f6d.js.map} +1 -1
  213. package/dist/esm/MiniVCThumbnail-cc05e1f8.js +78 -0
  214. package/dist/esm/{MiniVCThumbnail-6a07e810.js.map → MiniVCThumbnail-cc05e1f8.js.map} +1 -1
  215. package/dist/esm/Notification-279ba207.js +117 -0
  216. package/dist/esm/{Notification-76adb92c.js.map → Notification-279ba207.js.map} +1 -1
  217. package/dist/esm/NotificationBoostCard-cf11d747.js +134 -0
  218. package/dist/esm/{NotificationBoostCard-e6f1ab86.js.map → NotificationBoostCard-cf11d747.js.map} +1 -1
  219. package/dist/esm/NotificationUserAcceptedBoostCard-a1269382.js +90 -0
  220. package/dist/esm/{NotificationUserAcceptedBoostCard-8c13bd3f.js.map → NotificationUserAcceptedBoostCard-a1269382.js.map} +1 -1
  221. package/dist/esm/NotificationUserCard-c109c442.js +113 -0
  222. package/dist/esm/{NotificationUserCard-dbcc80f9.js.map → NotificationUserCard-c109c442.js.map} +1 -1
  223. package/dist/esm/PuzzlePiece-a3d9cc62.js +91 -0
  224. package/dist/esm/{PuzzlePiece-4541648e.js.map → PuzzlePiece-a3d9cc62.js.map} +1 -1
  225. package/dist/esm/QRCodeCard-8f29c3c7.js +43 -0
  226. package/dist/esm/{QRCodeCard-aa2b9967.js.map → QRCodeCard-8f29c3c7.js.map} +1 -1
  227. package/dist/esm/QRCodeIcon-8eef4f7c.js +129 -0
  228. package/dist/esm/{QRCodeIcon-e9569804.js.map → QRCodeIcon-8eef4f7c.js.map} +1 -1
  229. package/dist/esm/RoundedPill-50279e5d.js +127 -0
  230. package/dist/esm/{RoundedPill-6a6e8aaf.js.map → RoundedPill-50279e5d.js.map} +1 -1
  231. package/dist/esm/{SchoolIDCard-7c3ba74c.js → SchoolIDCard-8b151cd3.js} +34 -34
  232. package/dist/esm/{SchoolIDCard-7c3ba74c.js.map → SchoolIDCard-8b151cd3.js.map} +1 -1
  233. package/dist/esm/SkillTabCard-f2edb3fc.js +38 -0
  234. package/dist/esm/{SkillTabCard-cfe117a2.js.map → SkillTabCard-f2edb3fc.js.map} +1 -1
  235. package/dist/esm/SkillVerticalCard-045169f9.js +30 -0
  236. package/dist/esm/{SkillVerticalCard-108f49bb.js.map → SkillVerticalCard-045169f9.js.map} +1 -1
  237. package/dist/esm/SkillsCard-5279aac9.js +50 -0
  238. package/dist/esm/{SkillsCard-92a51db2.js.map → SkillsCard-5279aac9.js.map} +1 -1
  239. package/dist/esm/SkillsStatsCard-e0cd6137.js +50 -0
  240. package/dist/esm/{SkillsStatsCard-1628fe9c.js.map → SkillsStatsCard-e0cd6137.js.map} +1 -1
  241. package/dist/esm/SmallAchievementCard-24dfa453.js +47 -0
  242. package/dist/esm/{SmallAchievementCard-d0220751.js.map → SmallAchievementCard-24dfa453.js.map} +1 -1
  243. package/dist/esm/ThreeDotVertical-ccbbc8ef.js +51 -0
  244. package/dist/esm/{ThreeDotVertical-08294477.js.map → ThreeDotVertical-ccbbc8ef.js.map} +1 -1
  245. package/dist/esm/Trophy-fc7fdec4.js +29 -0
  246. package/dist/esm/{Trophy-ad67f46a.js.map → Trophy-fc7fdec4.js.map} +1 -1
  247. package/dist/esm/User-f5ea0f01.js +122 -0
  248. package/dist/esm/{User-161c7f37.js.map → User-f5ea0f01.js.map} +1 -1
  249. package/dist/esm/{UserProfilePicture-ecc82a6c.js → UserProfilePicture-7b950437.js} +18 -12
  250. package/dist/esm/{UserProfilePicture-ecc82a6c.js.map → UserProfilePicture-7b950437.js.map} +1 -1
  251. package/dist/esm/{VCCard-a5dda1f4.js → VCCard-04ecb3db.js} +29 -22
  252. package/dist/esm/{VCCard-a5dda1f4.js.map → VCCard-04ecb3db.js.map} +1 -1
  253. package/dist/esm/VCDisplayBackFace-1760601a.js +63 -0
  254. package/dist/esm/{VCDisplayBackFace-af01c8b3.js.map → VCDisplayBackFace-1760601a.js.map} +1 -1
  255. package/dist/esm/VCDisplayCard-3d67e2bc.js +184 -0
  256. package/dist/esm/{VCDisplayCard-36f34504.js.map → VCDisplayCard-3d67e2bc.js.map} +1 -1
  257. package/dist/esm/{VCDisplayCard2-04e304db.js → VCDisplayCard2-fb8abe89.js} +724 -695
  258. package/dist/esm/{VCDisplayCard2-04e304db.js.map → VCDisplayCard2-fb8abe89.js.map} +1 -1
  259. package/dist/esm/VCThumbnail-835921dd.js +140 -0
  260. package/dist/esm/{VCThumbnail-3c254bda.js.map → VCThumbnail-835921dd.js.map} +1 -1
  261. package/dist/esm/VCVerificationCheck-8b8b7a76.js +69 -0
  262. package/dist/esm/{VCVerificationCheck-80249524.js.map → VCVerificationCheck-8b8b7a76.js.map} +1 -1
  263. package/dist/esm/VCVerificationPill-77596013.js +50 -0
  264. package/dist/esm/{VCVerificationPill-0e2c1172.js.map → VCVerificationPill-77596013.js.map} +1 -1
  265. package/dist/esm/{VerifierStateBadgeAndText-2e5414f4.js → VerifierStateBadgeAndText-490c08dc.js} +420 -338
  266. package/dist/esm/{VerifierStateBadgeAndText-2e5414f4.js.map → VerifierStateBadgeAndText-490c08dc.js.map} +1 -1
  267. package/dist/esm/{constants-20055f35.js → constants-f1ed610c.js} +22 -30
  268. package/dist/esm/{constants-20055f35.js.map → constants-f1ed610c.js.map} +1 -1
  269. package/dist/esm/{credential.helpers-97c7e3d4.js → credential.helpers-1b1ff55e.js} +196 -155
  270. package/dist/esm/{credential.helpers-97c7e3d4.js.map → credential.helpers-1b1ff55e.js.map} +1 -1
  271. package/dist/esm/{icons-03afd795.js → icons-fdd35170.js} +2 -1
  272. package/dist/esm/{icons-03afd795.js.map → icons-fdd35170.js.map} +1 -1
  273. package/dist/esm/{index-b102febc.js → index-cbe3a76a.js} +9 -1
  274. package/dist/esm/{index-b102febc.js.map → index-cbe3a76a.js.map} +1 -1
  275. package/dist/esm/index.js +58 -58
  276. package/dist/esm/index10.js +4 -4
  277. package/dist/esm/index11.js +1 -1
  278. package/dist/esm/index12.js +5 -5
  279. package/dist/esm/index13.js +58 -58
  280. package/dist/esm/index14.js +2 -2
  281. package/dist/esm/index15.js +2 -2
  282. package/dist/esm/index16.js +1 -1
  283. package/dist/esm/index17.js +1 -1
  284. package/dist/esm/index18.js +2 -2
  285. package/dist/esm/index19.js +1 -1
  286. package/dist/esm/index2.js +6 -6
  287. package/dist/esm/index20.js +1 -1
  288. package/dist/esm/index21.js +10 -10
  289. package/dist/esm/index22.js +1 -1
  290. package/dist/esm/index23.js +7 -7
  291. package/dist/esm/index24.js +8 -8
  292. package/dist/esm/index25.js +1 -1
  293. package/dist/esm/index26.js +2 -2
  294. package/dist/esm/index27.js +1 -1
  295. package/dist/esm/index28.js +2 -2
  296. package/dist/esm/index29.js +5 -5
  297. package/dist/esm/index3.js +12 -12
  298. package/dist/esm/index30.js +1 -1
  299. package/dist/esm/index31.js +1 -1
  300. package/dist/esm/index32.js +1 -1
  301. package/dist/esm/index33.js +4 -4
  302. package/dist/esm/index34.js +1 -1
  303. package/dist/esm/index35.js +2 -2
  304. package/dist/esm/index36.js +9 -9
  305. package/dist/esm/index37.js +1 -1
  306. package/dist/esm/index38.js +19 -19
  307. package/dist/esm/index39.js +9 -9
  308. package/dist/esm/index4.js +7 -7
  309. package/dist/esm/index40.js +12 -12
  310. package/dist/esm/index41.js +14 -14
  311. package/dist/esm/index42.js +1 -1
  312. package/dist/esm/index43.js +1 -1
  313. package/dist/esm/index44.js +2 -2
  314. package/dist/esm/index45.js +2 -2
  315. package/dist/esm/index5.js +1 -1
  316. package/dist/esm/index6.js +9 -9
  317. package/dist/esm/index7.js +3 -3
  318. package/dist/esm/index8.js +3 -3
  319. package/dist/esm/index9.js +1 -1
  320. package/dist/esm/types-b32d28d5.js.map +1 -1
  321. package/dist/esm/{types-05bc737d.js → types-c765e2a4.js} +24 -23
  322. package/dist/esm/{types-05bc737d.js.map → types-c765e2a4.js.map} +1 -1
  323. package/dist/esm/types.esm-8798df50.js +5384 -0
  324. package/dist/esm/types.esm-8798df50.js.map +1 -0
  325. package/package.json +4 -4
  326. package/dist/cjs/AchievementCard-dd332f3f.js +0 -67
  327. package/dist/cjs/BoostGenericCard-55f710ad.js +0 -162
  328. package/dist/cjs/BoostSmallCard-dd1cbd51.js +0 -164
  329. package/dist/cjs/CertificateDisplayCard-9f619468.js +0 -866
  330. package/dist/cjs/Checkmark-f611aa4d.js +0 -58
  331. package/dist/cjs/Coins-acd63f46.js +0 -22
  332. package/dist/cjs/CourseCard-338a32ee.js +0 -92
  333. package/dist/cjs/CourseVerticalCard-841960b1.js +0 -98
  334. package/dist/cjs/GenericArrow-8dfb261d.js +0 -27
  335. package/dist/cjs/GenericCard-ad18c4c3.js +0 -60
  336. package/dist/cjs/IDDisplayIcon-62993df0.js +0 -226
  337. package/dist/cjs/JobHistoryCard-05a3f98b.js +0 -43
  338. package/dist/cjs/JobListCard-f74f0302.js +0 -127
  339. package/dist/cjs/LearnCardCreditCardBackFace-87cc8b9f.js +0 -72
  340. package/dist/cjs/LearnCardCreditCardFrontFace-39eeb89a.js +0 -78
  341. package/dist/cjs/Lightbulb-19c89d3c.js +0 -37
  342. package/dist/cjs/MeritBadgeDisplayCard-81bd14b8.js +0 -912
  343. package/dist/cjs/MeritBadgeSkillsCount-85cf4a91.js +0 -40
  344. package/dist/cjs/MiniVCThumbnail-a78e44f2.js +0 -69
  345. package/dist/cjs/Notification-3fe4a359.js +0 -94
  346. package/dist/cjs/NotificationBoostCard-be514ddb.js +0 -120
  347. package/dist/cjs/NotificationUserAcceptedBoostCard-423b9320.js +0 -74
  348. package/dist/cjs/NotificationUserCard-d4dab06c.js +0 -94
  349. package/dist/cjs/PuzzlePiece-088d2b00.js +0 -77
  350. package/dist/cjs/QRCodeCard-b56c11cc.js +0 -42
  351. package/dist/cjs/QRCodeIcon-81c6e96b.js +0 -96
  352. package/dist/cjs/RoundedPill-bda7c067.js +0 -106
  353. package/dist/cjs/SkillTabCard-66677f3c.js +0 -42
  354. package/dist/cjs/SkillVerticalCard-3eb3a8e9.js +0 -35
  355. package/dist/cjs/SkillsCard-4b6dbb4f.js +0 -66
  356. package/dist/cjs/SkillsStatsCard-97a35a88.js +0 -77
  357. package/dist/cjs/SmallAchievementCard-a1fa862b.js +0 -43
  358. package/dist/cjs/ThreeDotVertical-1d221fc8.js +0 -42
  359. package/dist/cjs/Trophy-3d323be3.js +0 -28
  360. package/dist/cjs/User-301088ac.js +0 -93
  361. package/dist/cjs/VCDisplayBackFace-6000a58b.js +0 -87
  362. package/dist/cjs/VCDisplayCard-9512d8f2.js +0 -180
  363. package/dist/cjs/VCThumbnail-6bf86bb2.js +0 -143
  364. package/dist/cjs/VCVerificationCheck-46fa75d3.js +0 -81
  365. package/dist/cjs/types.esm-ae4cdf49.js +0 -5729
  366. package/dist/cjs/types.esm-ae4cdf49.js.map +0 -1
  367. package/dist/esm/AchievementCard-d179d041.js +0 -61
  368. package/dist/esm/BoostGenericCard-4cfa6556.js +0 -156
  369. package/dist/esm/BoostSmallCard-42980ebc.js +0 -156
  370. package/dist/esm/Button-5f805204.js +0 -12
  371. package/dist/esm/CertificateDisplayCard-58c52cdb.js +0 -854
  372. package/dist/esm/Checkmark-d8b8f43d.js +0 -52
  373. package/dist/esm/CircleCheckButton-5a97f071.js +0 -24
  374. package/dist/esm/Coins-ed119ec6.js +0 -16
  375. package/dist/esm/CourseCard-663ff174.js +0 -82
  376. package/dist/esm/CourseVerticalCard-130b0d91.js +0 -88
  377. package/dist/esm/FlippyCard-a2de5cf1.js +0 -28
  378. package/dist/esm/GenericArrow-0dba1707.js +0 -21
  379. package/dist/esm/GenericCard-4bb4220a.js +0 -54
  380. package/dist/esm/IDDisplayIcon-82a851e7.js +0 -216
  381. package/dist/esm/JobHistoryCard-80d4ef27.js +0 -37
  382. package/dist/esm/JobListCard-0d1c4184.js +0 -120
  383. package/dist/esm/LearnCardCreditCardBackFace-9baa9e6b.js +0 -65
  384. package/dist/esm/LearnCardCreditCardFrontFace-d50efb25.js +0 -70
  385. package/dist/esm/Lightbulb-b6eca510.js +0 -30
  386. package/dist/esm/MeritBadgeDisplayCard-c87b0271.js +0 -902
  387. package/dist/esm/MeritBadgeSkillsCount-77ceb64c.js +0 -34
  388. package/dist/esm/MiniVCThumbnail-6a07e810.js +0 -62
  389. package/dist/esm/Notification-76adb92c.js +0 -88
  390. package/dist/esm/NotificationBoostCard-e6f1ab86.js +0 -112
  391. package/dist/esm/NotificationUserAcceptedBoostCard-8c13bd3f.js +0 -66
  392. package/dist/esm/NotificationUserCard-dbcc80f9.js +0 -86
  393. package/dist/esm/PuzzlePiece-4541648e.js +0 -71
  394. package/dist/esm/QRCodeCard-aa2b9967.js +0 -36
  395. package/dist/esm/QRCodeIcon-e9569804.js +0 -88
  396. package/dist/esm/RoundedPill-6a6e8aaf.js +0 -99
  397. package/dist/esm/SkillTabCard-cfe117a2.js +0 -36
  398. package/dist/esm/SkillVerticalCard-108f49bb.js +0 -28
  399. package/dist/esm/SkillsCard-92a51db2.js +0 -59
  400. package/dist/esm/SkillsStatsCard-1628fe9c.js +0 -70
  401. package/dist/esm/SmallAchievementCard-d0220751.js +0 -37
  402. package/dist/esm/ThreeDotVertical-08294477.js +0 -36
  403. package/dist/esm/Trophy-ad67f46a.js +0 -22
  404. package/dist/esm/User-161c7f37.js +0 -85
  405. package/dist/esm/VCDisplayBackFace-af01c8b3.js +0 -80
  406. package/dist/esm/VCDisplayCard-36f34504.js +0 -173
  407. package/dist/esm/VCThumbnail-3c254bda.js +0 -135
  408. package/dist/esm/VCVerificationCheck-80249524.js +0 -72
  409. package/dist/esm/VCVerificationPill-0e2c1172.js +0 -65
  410. package/dist/esm/types.esm-c7016566.js +0 -5727
  411. package/dist/esm/types.esm-c7016566.js.map +0 -1
@@ -1,39 +1,50 @@
1
1
  import React, { useRef, useEffect, useState, createContext, Component, Children, cloneElement, useLayoutEffect } from 'react';
2
- import { a as VCVerificationCheckWithSpinner } from './VCVerificationCheck-80249524.js';
3
- import { U as UserProfilePicture } from './UserProfilePicture-ecc82a6c.js';
4
- import { a as getColorForVerificationStatus, j as format$1, h as getNameFromProfile, i as getImageFromProfile, b as getInfoFromCredential, k as getCategoryColor, g as getTotalCountOfSkills, c as categorizeSkills } from './credential.helpers-97c7e3d4.js';
5
- import { g as getBaseUrl, b as VideoIcon, C as Camera, G as GenericDocumentIcon, L as LinkIcon, p as prettyBytes, c as capitalize, E as ExclamationPoint, A as AcuteCheckmark, I as InfoIcon, d as LeftArrow, e as SkillsBox, t as truncateWithEllipsis, V as VERIFIER_STATES$1, a as VerifierStateBadgeAndText, P as PersonBadge, i as VerifiedBadge, U as UnknownVerifierBadge, j as RedFlag } from './VerifierStateBadgeAndText-2e5414f4.js';
2
+ import { a as VCVerificationCheckWithSpinner } from './VCVerificationCheck-8b8b7a76.js';
3
+ import { U as UserProfilePicture } from './UserProfilePicture-7b950437.js';
4
+ import { a as getColorForVerificationStatus, j as format$1, h as getNameFromProfile, i as getImageFromProfile, b as getInfoFromCredential, k as getCategoryColor, g as getTotalCountOfSkills, c as categorizeSkills } from './credential.helpers-1b1ff55e.js';
5
+ import { g as getBaseUrl, b as VideoIcon, C as Camera, G as GenericDocumentIcon, L as LinkIcon, p as prettyBytes, c as capitalize, E as ExclamationPoint, A as AcuteCheckmark, I as InfoIcon, d as LeftArrow, e as SkillsBox, t as truncateWithEllipsis, V as VERIFIER_STATES$1, a as VerifierStateBadgeAndText, P as PersonBadge, i as VerifiedBadge, U as UnknownVerifierBadge, j as RedFlag } from './VerifierStateBadgeAndText-490c08dc.js';
6
6
  import './index-eae3ca64.js';
7
- import { L as Lightbox, X } from './Lightbox-2ae83d79.js';
8
- import { V as VerificationStatusEnum } from './types.esm-c7016566.js';
9
- import { A as AlignmentsBox, b as CertificateDisplayCard } from './CertificateDisplayCard-58c52cdb.js';
10
- import { I as IDIcon, Q as QRCodeIcon, A as AwardRibbon } from './QRCodeIcon-e9569804.js';
7
+ import { L as Lightbox, X } from './Lightbox-f0338a0c.js';
8
+ import { V as VerificationStatusEnum } from './types.esm-8798df50.js';
9
+ import { A as AlignmentsBox, b as CertificateDisplayCard } from './CertificateDisplayCard-0ceeb71a.js';
10
+ import { I as IDIcon, Q as QRCodeIcon, A as AwardRibbon } from './QRCodeIcon-8eef4f7c.js';
11
11
  import { a as LCCategoryEnum } from './index-28917993.js';
12
- import { P as PuzzlePiece } from './PuzzlePiece-4541648e.js';
12
+ import { P as PuzzlePiece } from './PuzzlePiece-a3d9cc62.js';
13
13
  import IDSleeve from './id-sleeve.png';
14
- import { a as MeritBadgeDisplayCard } from './MeritBadgeDisplayCard-c87b0271.js';
14
+ import { a as MeritBadgeDisplayCard } from './MeritBadgeDisplayCard-4b8fe8e4.js';
15
15
 
16
16
  const RoundedX = ({ className = "" }) => {
17
- return /* @__PURE__ */ React.createElement("svg", {
18
- width: "24",
19
- height: "24",
20
- viewBox: "0 0 24 24",
21
- fill: "none",
22
- xmlns: "http://www.w3.org/2000/svg",
23
- className
24
- }, /* @__PURE__ */ React.createElement("path", {
25
- d: "M18.75 5.25L5.25 18.75",
26
- stroke: "#18224E",
27
- strokeWidth: "4",
28
- strokeLinecap: "round",
29
- strokeLinejoin: "round"
30
- }), /* @__PURE__ */ React.createElement("path", {
31
- d: "M18.75 18.75L5.25 5.25",
32
- stroke: "#18224E",
33
- strokeWidth: "4",
34
- strokeLinecap: "round",
35
- strokeLinejoin: "round"
36
- }));
17
+ return /* @__PURE__ */ React.createElement(
18
+ "svg",
19
+ {
20
+ width: "24",
21
+ height: "24",
22
+ viewBox: "0 0 24 24",
23
+ fill: "none",
24
+ xmlns: "http://www.w3.org/2000/svg",
25
+ className
26
+ },
27
+ /* @__PURE__ */ React.createElement(
28
+ "path",
29
+ {
30
+ d: "M18.75 5.25L5.25 18.75",
31
+ stroke: "#18224E",
32
+ strokeWidth: "4",
33
+ strokeLinecap: "round",
34
+ strokeLinejoin: "round"
35
+ }
36
+ ),
37
+ /* @__PURE__ */ React.createElement(
38
+ "path",
39
+ {
40
+ d: "M18.75 18.75L5.25 5.25",
41
+ stroke: "#18224E",
42
+ strokeWidth: "4",
43
+ strokeLinecap: "round",
44
+ strokeLinejoin: "round"
45
+ }
46
+ )
47
+ );
37
48
  };
38
49
 
39
50
  const FitText = ({
@@ -85,27 +96,38 @@ const FitText = ({
85
96
  }
86
97
  };
87
98
  }, [text]);
88
- return /* @__PURE__ */ React.createElement("div", {
89
- style: { width },
90
- className: `text-center ${className}`
91
- }, /* @__PURE__ */ React.createElement("span", {
92
- className: `text-[${minFontSize}px] transition-[font-size] whitespace-nowrap`,
93
- ref: textRef
94
- }, text));
99
+ return /* @__PURE__ */ React.createElement("div", { style: { width }, className: `text-center ${className}` }, /* @__PURE__ */ React.createElement(
100
+ "span",
101
+ {
102
+ className: `text-[${minFontSize}px] transition-[font-size] whitespace-nowrap`,
103
+ ref: textRef
104
+ },
105
+ text
106
+ ));
95
107
  };
96
108
 
97
109
  const InfoBox = ({ text, handleClose, backgroundColor = "#6366F1" }) => {
98
110
  const bgColorWithOpacity = `${backgroundColor}1F`;
99
- return /* @__PURE__ */ React.createElement("div", {
100
- className: "info-box p-[10px] rounded-[10px] w-full font-poppins text-[12px] leading[18px]",
101
- style: { backgroundColor: bgColorWithOpacity }
102
- }, text, " ", /* @__PURE__ */ React.createElement("button", {
103
- onClick: (e) => {
104
- e.stopPropagation();
105
- handleClose();
111
+ return /* @__PURE__ */ React.createElement(
112
+ "div",
113
+ {
114
+ className: "info-box p-[10px] rounded-[10px] w-full font-poppins text-[12px] leading[18px]",
115
+ style: { backgroundColor: bgColorWithOpacity }
106
116
  },
107
- className: "text-indigo-500 font-[700] select-none"
108
- }, "Close"));
117
+ text,
118
+ " ",
119
+ /* @__PURE__ */ React.createElement(
120
+ "button",
121
+ {
122
+ onClick: (e) => {
123
+ e.stopPropagation();
124
+ handleClose();
125
+ },
126
+ className: "text-indigo-500 font-[700] select-none"
127
+ },
128
+ "Close"
129
+ )
130
+ );
109
131
  };
110
132
 
111
133
  const IssueHistoryBox = ({
@@ -113,28 +135,24 @@ const IssueHistoryBox = ({
113
135
  customIssueHistoryComponent
114
136
  }) => {
115
137
  let renderIssueHistory = issueHistory == null ? void 0 : issueHistory.map((issueItem) => {
116
- return /* @__PURE__ */ React.createElement("div", {
117
- className: "flex items-center issue-log-item border-b-[1px] last:border-b-0 py-[5px] border-grayscale-200 border-solid w-full",
118
- key: issueItem == null ? void 0 : issueItem.id
119
- }, /* @__PURE__ */ React.createElement("div", {
120
- className: "profile-thumb-img vc-issuee-image h-[35px] w-[35px] rounded-full overflow-hidden"
121
- }, /* @__PURE__ */ React.createElement(UserProfilePicture, {
122
- customContainerClass: `h-full w-full object-cover select-none text-xl ${!(issueItem == null ? void 0 : issueItem.thumb) ? "pt-[2px]" : ""}`,
123
- user: { image: issueItem == null ? void 0 : issueItem.thumb, name: issueItem == null ? void 0 : issueItem.name },
124
- alt: "profile"
125
- })), /* @__PURE__ */ React.createElement("div", {
126
- className: "ml-[9px] flex flex-col justify-center"
127
- }, /* @__PURE__ */ React.createElement("p", {
128
- className: "issue-item-name font-montserrat font-semibold text-grayscale-900 text-[14px] "
129
- }, issueItem == null ? void 0 : issueItem.name), /* @__PURE__ */ React.createElement("p", {
130
- className: "issue-item-date font-montserrat text-[12px] text-grayscale-600 "
131
- }, issueItem == null ? void 0 : issueItem.date)));
138
+ return /* @__PURE__ */ React.createElement(
139
+ "div",
140
+ {
141
+ className: "flex items-center issue-log-item border-b-[1px] last:border-b-0 py-[5px] border-grayscale-200 border-solid w-full",
142
+ key: issueItem == null ? void 0 : issueItem.id
143
+ },
144
+ /* @__PURE__ */ React.createElement("div", { className: "profile-thumb-img vc-issuee-image h-[35px] w-[35px] rounded-full overflow-hidden" }, /* @__PURE__ */ React.createElement(
145
+ UserProfilePicture,
146
+ {
147
+ customContainerClass: `h-full w-full object-cover select-none text-xl ${!(issueItem == null ? void 0 : issueItem.thumb) ? "pt-[2px]" : ""}`,
148
+ user: { image: issueItem == null ? void 0 : issueItem.thumb, name: issueItem == null ? void 0 : issueItem.name },
149
+ alt: "profile"
150
+ }
151
+ )),
152
+ /* @__PURE__ */ React.createElement("div", { className: "ml-[9px] flex flex-col justify-center" }, /* @__PURE__ */ React.createElement("p", { className: "issue-item-name font-montserrat font-semibold text-grayscale-900 text-[14px] " }, issueItem == null ? void 0 : issueItem.name), /* @__PURE__ */ React.createElement("p", { className: "issue-item-date font-montserrat text-[12px] text-grayscale-600 " }, issueItem == null ? void 0 : issueItem.date))
153
+ );
132
154
  });
133
- return /* @__PURE__ */ React.createElement("div", {
134
- className: "bg-white flex flex-col items-start gap-[10px] rounded-[20px] shadow-bottom px-[15px] py-[20px] w-full relative"
135
- }, /* @__PURE__ */ React.createElement("h3", {
136
- className: "text-[20px] leading-[20px] text-grayscale-900"
137
- }, "Issue Log"), !customIssueHistoryComponent ? renderIssueHistory : customIssueHistoryComponent);
155
+ return /* @__PURE__ */ React.createElement("div", { className: "bg-white flex flex-col items-start gap-[10px] rounded-[20px] shadow-bottom px-[15px] py-[20px] w-full relative" }, /* @__PURE__ */ React.createElement("h3", { className: "text-[20px] leading-[20px] text-grayscale-900" }, "Issue Log"), !customIssueHistoryComponent ? renderIssueHistory : customIssueHistoryComponent);
138
156
  };
139
157
 
140
158
  var __async = (__this, __arguments, generator) => {
@@ -157,19 +175,16 @@ var __async = (__this, __arguments, generator) => {
157
175
  step((generator = generator.apply(__this, __arguments)).next());
158
176
  });
159
177
  };
160
- const defaultGetFileMetadata = (url) => __async(void 0, null, function* () {
178
+ const defaultGetFileMetadata = (url) => __async(null, null, function* () {
161
179
  var _a;
162
180
  const isFilestack = url.includes("filestack");
163
- if (!isFilestack)
164
- return;
181
+ if (!isFilestack) return;
165
182
  const urlParams = (_a = url.split(".com/")[1]) == null ? void 0 : _a.split("/");
166
- if (!urlParams)
167
- return;
183
+ if (!urlParams) return;
168
184
  const handle = urlParams[urlParams.length - 1];
169
185
  let fetchFailed = false;
170
186
  const data = yield fetch(`https://cdn.filestackcontent.com/${handle}/metadata`).then((res) => res.json()).catch(() => fetchFailed = true);
171
- if (fetchFailed)
172
- return;
187
+ if (fetchFailed) return;
173
188
  const fileExtension = data.filename.split(".")[1];
174
189
  return {
175
190
  fileExtension,
@@ -177,19 +192,18 @@ const defaultGetFileMetadata = (url) => __async(void 0, null, function* () {
177
192
  numberOfPages: void 0
178
193
  };
179
194
  });
180
- const defaultGetVideoMetadata = (url) => __async(void 0, null, function* () {
195
+ const defaultGetVideoMetadata = (url) => __async(null, null, function* () {
181
196
  const isYoutube = url.includes("youtube");
182
- if (!isYoutube)
183
- return;
197
+ if (!isYoutube) return;
184
198
  const metadataUrl = `http://youtube.com/oembed?url=${url}&format=json`;
185
199
  let fetchFailed = false;
186
200
  const metadata = yield fetch(metadataUrl).then((res) => res.json()).catch(() => fetchFailed = true);
187
- if (fetchFailed)
188
- return;
201
+ if (fetchFailed) return;
189
202
  return {
190
203
  title: metadata.title,
191
204
  imageUrl: metadata.thumbnail_url,
192
205
  videoLength: ""
206
+ // TODO figure out how to get this
193
207
  };
194
208
  });
195
209
  const MediaAttachmentsBox = ({
@@ -216,11 +230,11 @@ const MediaAttachmentsBox = ({
216
230
  }
217
231
  });
218
232
  useEffect(() => {
219
- const getMetadata = (attachments2) => __async(void 0, null, function* () {
233
+ const getMetadata = (attachments2) => __async(null, null, function* () {
220
234
  const docMetadata = {};
221
235
  const videoMetadata2 = {};
222
236
  yield Promise.all(
223
- attachments2.map((attachment) => __async(void 0, null, function* () {
237
+ attachments2.map((attachment) => __async(null, null, function* () {
224
238
  if (attachment.type === "document") {
225
239
  docMetadata[attachment.url] = yield getFileMetadata(attachment.url);
226
240
  } else if (attachment.type === "video") {
@@ -244,17 +258,14 @@ const MediaAttachmentsBox = ({
244
258
  }
245
259
  onMediaAttachmentClick == null ? void 0 : onMediaAttachmentClick(url, type);
246
260
  };
247
- return /* @__PURE__ */ React.createElement("div", {
248
- className: "media-attachments-box bg-white flex flex-col items-start gap-[10px] rounded-[20px] shadow-bottom px-[15px] py-[20px] w-full"
249
- }, /* @__PURE__ */ React.createElement("h3", {
250
- className: "text-[20px] leading-[20px] text-grayscale-900"
251
- }, "Media Attachments"), mediaAttachments.length > 0 && /* @__PURE__ */ React.createElement("div", {
252
- className: "flex gap-[5px] justify-between flex-wrap w-full"
253
- }, enableLightbox && /* @__PURE__ */ React.createElement(Lightbox, {
254
- items: lightboxItems,
255
- currentUrl: currentLightboxUrl,
256
- setCurrentUrl: setCurrentLightboxUrl
257
- }), mediaAttachments.map((media, index) => {
261
+ return /* @__PURE__ */ React.createElement("div", { className: "media-attachments-box bg-white flex flex-col items-start gap-[10px] rounded-[20px] shadow-bottom px-[15px] py-[20px] w-full" }, /* @__PURE__ */ React.createElement("h3", { className: "text-[20px] leading-[20px] text-grayscale-900" }, "Media Attachments"), mediaAttachments.length > 0 && /* @__PURE__ */ React.createElement("div", { className: "flex gap-[5px] justify-between flex-wrap w-full" }, enableLightbox && /* @__PURE__ */ React.createElement(
262
+ Lightbox,
263
+ {
264
+ items: lightboxItems,
265
+ currentUrl: currentLightboxUrl,
266
+ setCurrentUrl: setCurrentLightboxUrl
267
+ }
268
+ ), mediaAttachments.map((media, index) => {
258
269
  var _a, _b;
259
270
  let innerContent;
260
271
  let title = media.title;
@@ -263,51 +274,46 @@ const MediaAttachmentsBox = ({
263
274
  title = (_a = title || (metadata == null ? void 0 : metadata.title)) != null ? _a : "";
264
275
  const baseUrl = getBaseUrl(media.url);
265
276
  const iconTop = title || baseUrl;
266
- innerContent = /* @__PURE__ */ React.createElement("div", {
267
- className: "absolute top-0 left-0 right-0 bottom-0 bg-cover bg-no-repeat font-poppins text-white text-[12px] font-[400] leading-[17px] flex flex-col justify-end items-start p-[10px] text-left bg-rose-600 rounded-[15px]",
268
- style: {
269
- backgroundImage: (metadata == null ? void 0 : metadata.imageUrl) ? `linear-gradient(180deg, rgba(0, 0, 0, 0) 44.20%, rgba(0, 0, 0, 0.6) 69%), url(${(_b = metadata == null ? void 0 : metadata.imageUrl) != null ? _b : ""})` : void 0
270
- }
271
- }, !(metadata == null ? void 0 : metadata.imageUrl) && /* @__PURE__ */ React.createElement(VideoIcon, {
272
- size: "60",
273
- className: "m-auto"
274
- }), /* @__PURE__ */ React.createElement("div", {
275
- className: `absolute ${iconTop ? "top-[10px]" : "bottom-[10px]"} left-[10px] z-10 flex items-center gap-[5px]`
276
- }, (metadata == null ? void 0 : metadata.imageUrl) && /* @__PURE__ */ React.createElement(VideoIcon, null), (metadata == null ? void 0 : metadata.videoLength) && /* @__PURE__ */ React.createElement("span", {
277
- className: "leading-[23px]"
278
- }, metadata.videoLength)), baseUrl && /* @__PURE__ */ React.createElement("span", {
279
- className: "font-[600]"
280
- }, baseUrl), title && /* @__PURE__ */ React.createElement("span", {
281
- className: "line-clamp-2"
282
- }, title));
277
+ innerContent = /* @__PURE__ */ React.createElement(
278
+ "div",
279
+ {
280
+ className: "absolute top-0 left-0 right-0 bottom-0 bg-cover bg-no-repeat font-poppins text-white text-[12px] font-[400] leading-[17px] flex flex-col justify-end items-start p-[10px] text-left bg-rose-600 rounded-[15px]",
281
+ style: {
282
+ backgroundImage: (metadata == null ? void 0 : metadata.imageUrl) ? `linear-gradient(180deg, rgba(0, 0, 0, 0) 44.20%, rgba(0, 0, 0, 0.6) 69%), url(${(_b = metadata == null ? void 0 : metadata.imageUrl) != null ? _b : ""})` : void 0
283
+ }
284
+ },
285
+ !(metadata == null ? void 0 : metadata.imageUrl) && /* @__PURE__ */ React.createElement(VideoIcon, { size: "60", className: "m-auto" }),
286
+ /* @__PURE__ */ React.createElement(
287
+ "div",
288
+ {
289
+ className: `absolute ${iconTop ? "top-[10px]" : "bottom-[10px]"} left-[10px] z-10 flex items-center gap-[5px]`
290
+ },
291
+ (metadata == null ? void 0 : metadata.imageUrl) && /* @__PURE__ */ React.createElement(VideoIcon, null),
292
+ (metadata == null ? void 0 : metadata.videoLength) && /* @__PURE__ */ React.createElement("span", { className: "leading-[23px]" }, metadata.videoLength)
293
+ ),
294
+ baseUrl && /* @__PURE__ */ React.createElement("span", { className: "font-[600]" }, baseUrl),
295
+ title && /* @__PURE__ */ React.createElement("span", { className: "line-clamp-2" }, title)
296
+ );
283
297
  } else {
284
- innerContent = /* @__PURE__ */ React.createElement("div", {
285
- className: "absolute top-0 left-0 right-0 bottom-0 h-full w-full flex items-center justify-center"
286
- }, /* @__PURE__ */ React.createElement("img", {
287
- className: "rounded-[15px] object-cover h-full w-full",
288
- src: media.url
289
- }), /* @__PURE__ */ React.createElement(Camera, {
290
- className: "absolute bottom-[10px] left-[10px] z-10"
291
- }));
298
+ innerContent = /* @__PURE__ */ React.createElement("div", { className: "absolute top-0 left-0 right-0 bottom-0 h-full w-full flex items-center justify-center" }, /* @__PURE__ */ React.createElement("img", { className: "rounded-[15px] object-cover h-full w-full", src: media.url }), /* @__PURE__ */ React.createElement(Camera, { className: "absolute bottom-[10px] left-[10px] z-10" }));
292
299
  }
293
300
  const className = `media-attachment ${media.type} w-[49%] pt-[49%] overflow-hidden relative`;
294
301
  if (onMediaAttachmentClick || enableLightbox) {
295
- return /* @__PURE__ */ React.createElement("button", {
296
- key: index,
297
- className,
298
- onClick: (e) => {
299
- e.stopPropagation();
300
- handleMediaAttachmentClick(media.url, media.type);
301
- }
302
- }, innerContent);
302
+ return /* @__PURE__ */ React.createElement(
303
+ "button",
304
+ {
305
+ key: index,
306
+ className,
307
+ onClick: (e) => {
308
+ e.stopPropagation();
309
+ handleMediaAttachmentClick(media.url, media.type);
310
+ }
311
+ },
312
+ innerContent
313
+ );
303
314
  }
304
- return /* @__PURE__ */ React.createElement("div", {
305
- key: index,
306
- className
307
- }, innerContent);
308
- })), documentsAndLinks.length > 0 && /* @__PURE__ */ React.createElement("div", {
309
- className: "w-full flex flex-col gap-[5px]"
310
- }, documentsAndLinks.map((docOrLink, index) => {
315
+ return /* @__PURE__ */ React.createElement("div", { key: index, className }, innerContent);
316
+ })), documentsAndLinks.length > 0 && /* @__PURE__ */ React.createElement("div", { className: "w-full flex flex-col gap-[5px]" }, documentsAndLinks.map((docOrLink, index) => {
311
317
  var _a;
312
318
  const metadata = docOrLink.type === "document" ? documentMetadata[docOrLink.url] : void 0;
313
319
  const { fileExtension, sizeInBytes, numberOfPages } = metadata != null ? metadata : {};
@@ -315,46 +321,47 @@ const MediaAttachmentsBox = ({
315
321
  if (docOrLink.type === "link") {
316
322
  baseUrl = getBaseUrl(docOrLink.url);
317
323
  }
318
- const innerContent = /* @__PURE__ */ React.createElement("div", {
319
- className: "flex flex-col gap-[5px]"
320
- }, /* @__PURE__ */ React.createElement("div", {
321
- className: "flex gap-[5px] items-center"
322
- }, docOrLink.type === "document" && /* @__PURE__ */ React.createElement(GenericDocumentIcon, {
323
- className: "shrink-0"
324
- }), docOrLink.type === "link" && /* @__PURE__ */ React.createElement(LinkIcon, {
325
- className: "shrink-0"
326
- }), /* @__PURE__ */ React.createElement("span", {
327
- className: "text-grayscale-900 font-[400]"
328
- }, (_a = docOrLink.title) != null ? _a : "No title")), docOrLink.type === "document" && metadata && /* @__PURE__ */ React.createElement("a", {
329
- href: docOrLink.url,
330
- target: "_blank",
331
- rel: "noreferrer",
332
- className: "text-grayscale-600 font-[600] px-[5px] hover:underline",
333
- onClick: (e) => e.stopPropagation()
334
- }, fileExtension && /* @__PURE__ */ React.createElement("span", {
335
- className: "uppercase"
336
- }, 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", {
337
- href: docOrLink.url,
338
- target: "_blank",
339
- rel: "noreferrer",
340
- className: "text-indigo-500 font-[600] px-[5px] hover:underline",
341
- onClick: (e) => e.stopPropagation()
342
- }, baseUrl));
324
+ const innerContent = /* @__PURE__ */ React.createElement("div", { className: "flex flex-col gap-[5px]" }, /* @__PURE__ */ React.createElement("div", { className: "flex gap-[5px] items-center" }, docOrLink.type === "document" && /* @__PURE__ */ React.createElement(GenericDocumentIcon, { className: "shrink-0" }), docOrLink.type === "link" && /* @__PURE__ */ React.createElement(LinkIcon, { className: "shrink-0" }), /* @__PURE__ */ React.createElement("span", { className: "text-grayscale-900 font-[400]" }, (_a = docOrLink.title) != null ? _a : "No title")), docOrLink.type === "document" && metadata && /* @__PURE__ */ React.createElement(
325
+ "a",
326
+ {
327
+ href: docOrLink.url,
328
+ target: "_blank",
329
+ rel: "noreferrer",
330
+ className: "text-grayscale-600 font-[600] px-[5px] hover:underline",
331
+ onClick: (e) => e.stopPropagation()
332
+ },
333
+ fileExtension && /* @__PURE__ */ React.createElement("span", { className: "uppercase" }, fileExtension),
334
+ fileExtension && (numberOfPages || sizeInBytes) && " \u2022 ",
335
+ numberOfPages && /* @__PURE__ */ React.createElement("span", null, numberOfPages, " page", numberOfPages === 1 ? "" : "s"),
336
+ numberOfPages && sizeInBytes && " \u2022 ",
337
+ sizeInBytes && /* @__PURE__ */ React.createElement("span", null, prettyBytes(sizeInBytes))
338
+ ), docOrLink.type === "link" && /* @__PURE__ */ React.createElement(
339
+ "a",
340
+ {
341
+ href: docOrLink.url,
342
+ target: "_blank",
343
+ rel: "noreferrer",
344
+ className: "text-indigo-500 font-[600] px-[5px] hover:underline",
345
+ onClick: (e) => e.stopPropagation()
346
+ },
347
+ baseUrl
348
+ ));
343
349
  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`;
344
350
  if (onMediaAttachmentClick) {
345
- return /* @__PURE__ */ React.createElement("button", {
346
- key: index,
347
- className,
348
- onClick: (e) => {
349
- e.stopPropagation();
350
- handleMediaAttachmentClick(docOrLink.url, docOrLink.type);
351
- }
352
- }, innerContent);
351
+ return /* @__PURE__ */ React.createElement(
352
+ "button",
353
+ {
354
+ key: index,
355
+ className,
356
+ onClick: (e) => {
357
+ e.stopPropagation();
358
+ handleMediaAttachmentClick(docOrLink.url, docOrLink.type);
359
+ }
360
+ },
361
+ innerContent
362
+ );
353
363
  }
354
- return /* @__PURE__ */ React.createElement("div", {
355
- key: index,
356
- className
357
- }, innerContent);
364
+ return /* @__PURE__ */ React.createElement("div", { key: index, className }, innerContent);
358
365
  })));
359
366
  };
360
367
 
@@ -364,57 +371,74 @@ const RibbonEnd = ({
364
371
  height = "64"
365
372
  }) => {
366
373
  const halfHeight = parseInt(height) / 2;
367
- return /* @__PURE__ */ React.createElement("svg", {
368
- className,
369
- width: "30",
370
- height,
371
- viewBox: `0 0 30 ${height}`,
372
- fill: "none",
373
- xmlns: "http://www.w3.org/2000/svg",
374
- style: { transform: `scaleX(${side === "left" ? "1" : "-1"})` }
375
- }, /* @__PURE__ */ React.createElement("g", {
376
- filter: "url(#filter0_d_4620_22659)"
377
- }, /* @__PURE__ */ React.createElement("path", {
378
- d: `M0 0H30V${height}H0L6.36364 ${halfHeight}L0 0Z`,
379
- fill: "white"
380
- }), /* @__PURE__ */ React.createElement("path", {
381
- d: `M3.08593 2.5H27.5V${height}H3.08593L8.80922 ${halfHeight}L8.91926 30L8.80922 29.4812L3.08593 2.5Z`,
382
- stroke: "#EEF2FF",
383
- strokeWidth: "5"
384
- })), /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("filter", {
385
- id: "filter0_d_4620_22659",
386
- x: "0",
387
- y: "0",
388
- width: "30",
389
- height,
390
- filterUnits: "userSpaceOnUse",
391
- colorInterpolationFilters: "sRGB"
392
- }, /* @__PURE__ */ React.createElement("feFlood", {
393
- floodOpacity: "0",
394
- result: "BackgroundImageFix"
395
- }), /* @__PURE__ */ React.createElement("feColorMatrix", {
396
- in: "SourceAlpha",
397
- type: "matrix",
398
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
399
- result: "hardAlpha"
400
- }), /* @__PURE__ */ React.createElement("feOffset", {
401
- dy: "4"
402
- }), /* @__PURE__ */ React.createElement("feComposite", {
403
- in2: "hardAlpha",
404
- operator: "out"
405
- }), /* @__PURE__ */ React.createElement("feColorMatrix", {
406
- type: "matrix",
407
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"
408
- }), /* @__PURE__ */ React.createElement("feBlend", {
409
- mode: "normal",
410
- in2: "BackgroundImageFix",
411
- result: "effect1_dropShadow_4620_22659"
412
- }), /* @__PURE__ */ React.createElement("feBlend", {
413
- mode: "normal",
414
- in: "SourceGraphic",
415
- in2: "effect1_dropShadow_4620_22659",
416
- result: "shape"
417
- }))));
374
+ return /* @__PURE__ */ React.createElement(
375
+ "svg",
376
+ {
377
+ className,
378
+ width: "30",
379
+ height,
380
+ viewBox: `0 0 30 ${height}`,
381
+ fill: "none",
382
+ xmlns: "http://www.w3.org/2000/svg",
383
+ style: { transform: `scaleX(${side === "left" ? "1" : "-1"})` }
384
+ },
385
+ /* @__PURE__ */ React.createElement("g", { filter: "url(#filter0_d_4620_22659)" }, /* @__PURE__ */ React.createElement("path", { d: `M0 0H30V${height}H0L6.36364 ${halfHeight}L0 0Z`, fill: "white" }), /* @__PURE__ */ React.createElement(
386
+ "path",
387
+ {
388
+ d: `M3.08593 2.5H27.5V${height}H3.08593L8.80922 ${halfHeight}L8.91926 30L8.80922 29.4812L3.08593 2.5Z`,
389
+ stroke: "#EEF2FF",
390
+ strokeWidth: "5"
391
+ }
392
+ )),
393
+ /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement(
394
+ "filter",
395
+ {
396
+ id: "filter0_d_4620_22659",
397
+ x: "0",
398
+ y: "0",
399
+ width: "30",
400
+ height,
401
+ filterUnits: "userSpaceOnUse",
402
+ colorInterpolationFilters: "sRGB"
403
+ },
404
+ /* @__PURE__ */ React.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
405
+ /* @__PURE__ */ React.createElement(
406
+ "feColorMatrix",
407
+ {
408
+ in: "SourceAlpha",
409
+ type: "matrix",
410
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
411
+ result: "hardAlpha"
412
+ }
413
+ ),
414
+ /* @__PURE__ */ React.createElement("feOffset", { dy: "4" }),
415
+ /* @__PURE__ */ React.createElement("feComposite", { in2: "hardAlpha", operator: "out" }),
416
+ /* @__PURE__ */ React.createElement(
417
+ "feColorMatrix",
418
+ {
419
+ type: "matrix",
420
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"
421
+ }
422
+ ),
423
+ /* @__PURE__ */ React.createElement(
424
+ "feBlend",
425
+ {
426
+ mode: "normal",
427
+ in2: "BackgroundImageFix",
428
+ result: "effect1_dropShadow_4620_22659"
429
+ }
430
+ ),
431
+ /* @__PURE__ */ React.createElement(
432
+ "feBlend",
433
+ {
434
+ mode: "normal",
435
+ in: "SourceGraphic",
436
+ in2: "effect1_dropShadow_4620_22659",
437
+ result: "shape"
438
+ }
439
+ )
440
+ ))
441
+ );
418
442
  };
419
443
 
420
444
  const TruncateTextBox = ({
@@ -432,25 +456,43 @@ const TruncateTextBox = ({
432
456
  const truncated = needsTruncate && !showFullText;
433
457
  const displayText = truncated ? text.substring(0, truncateThreshold) : text;
434
458
  const defaultStyles = "shadow-bottom px-[15px] py-[20px]";
435
- return /* @__PURE__ */ React.createElement("div", {
436
- className: `${className} ${defaultStyles} bg-white flex flex-col items-start gap-[10px] rounded-[20px] w-full ${containerClassName}`
437
- }, headerText && /* @__PURE__ */ React.createElement("h3", {
438
- className: `${headerClassName} text-[20px] leading-[20px] text-grayscale-900`
439
- }, headerText), /* @__PURE__ */ React.createElement("p", {
440
- className: `text-[12px] text-grayscale-700 leading-[18px] font-poppins font-[400] mb-0 ${textClassName}`
441
- }, displayText, truncated && /* @__PURE__ */ React.createElement(React.Fragment, null, "...", " ", /* @__PURE__ */ React.createElement("button", {
442
- className: "text-indigo-500 font-[700]",
443
- onClick: (e) => {
444
- e.stopPropagation();
445
- setShowFullText(true);
446
- }
447
- }, "More")), needsTruncate && showFullText && /* @__PURE__ */ React.createElement(React.Fragment, null, " ", /* @__PURE__ */ React.createElement("button", {
448
- className: "text-indigo-500 font-[700]",
449
- onClick: (e) => {
450
- e.stopPropagation();
451
- setShowFullText(false);
452
- }
453
- }, "Close"))), children);
459
+ return /* @__PURE__ */ React.createElement(
460
+ "div",
461
+ {
462
+ className: `${className} ${defaultStyles} bg-white flex flex-col items-start gap-[10px] rounded-[20px] w-full ${containerClassName}`
463
+ },
464
+ headerText && /* @__PURE__ */ React.createElement("h3", { className: `${headerClassName} text-[20px] leading-[20px] text-grayscale-900` }, headerText),
465
+ /* @__PURE__ */ React.createElement(
466
+ "p",
467
+ {
468
+ className: `text-[12px] text-grayscale-700 leading-[18px] font-poppins font-[400] mb-0 ${textClassName}`
469
+ },
470
+ displayText,
471
+ truncated && /* @__PURE__ */ React.createElement(React.Fragment, null, "...", " ", /* @__PURE__ */ React.createElement(
472
+ "button",
473
+ {
474
+ className: "text-indigo-500 font-[700]",
475
+ onClick: (e) => {
476
+ e.stopPropagation();
477
+ setShowFullText(true);
478
+ }
479
+ },
480
+ "More"
481
+ )),
482
+ needsTruncate && showFullText && /* @__PURE__ */ React.createElement(React.Fragment, null, " ", /* @__PURE__ */ React.createElement(
483
+ "button",
484
+ {
485
+ className: "text-indigo-500 font-[700]",
486
+ onClick: (e) => {
487
+ e.stopPropagation();
488
+ setShowFullText(false);
489
+ }
490
+ },
491
+ "Close"
492
+ ))
493
+ ),
494
+ children
495
+ );
454
496
  };
455
497
 
456
498
  /*! @license Rematrix v0.2.2
@@ -646,9 +688,7 @@ const VerificationRow = ({ verification }) => {
646
688
  case VerificationStatusEnum.Error:
647
689
  return /* @__PURE__ */ React.createElement(ExclamationPoint, null);
648
690
  case VerificationStatusEnum.Failed:
649
- return /* @__PURE__ */ React.createElement(X, {
650
- className: "w-[15px] h-[15px]"
651
- });
691
+ return /* @__PURE__ */ React.createElement(X, { className: "w-[15px] h-[15px]" });
652
692
  }
653
693
  };
654
694
  let primaryText = verification.check ? `${verification.check}: ${verification.message}` : verification.message;
@@ -657,46 +697,50 @@ const VerificationRow = ({ verification }) => {
657
697
  }
658
698
  primaryText = capitalize(primaryText);
659
699
  const infoText = "";
660
- return /* @__PURE__ */ React.createElement("div", {
661
- className: "verification-row flex flex-col gap-[5px] font-poppins border-b-[1px] border-grayscale-200 border-solid w-full py-[10px] last:border-0 last:pb-0"
662
- }, /* @__PURE__ */ React.createElement("span", {
663
- className: "font-[700] text-[11px] leading-[16px] uppercase flex items-center gap-[3px] select-none",
664
- style: { color: statusColor }
665
- }, getIcon(), verification.status, infoText ), showInfo && infoText && /* @__PURE__ */ React.createElement(InfoBox, {
666
- text: infoText,
667
- handleClose: () => setShowInfo(false),
668
- backgroundColor: statusColor
669
- }), /* @__PURE__ */ React.createElement("span", {
670
- className: "font-[400] text-[14px] leading-[21px] text-grayscale-900"
671
- }, primaryText));
700
+ return /* @__PURE__ */ React.createElement("div", { className: "verification-row flex flex-col gap-[5px] font-poppins border-b-[1px] border-grayscale-200 border-solid w-full py-[10px] last:border-0 last:pb-0" }, /* @__PURE__ */ React.createElement(
701
+ "span",
702
+ {
703
+ className: "font-[700] text-[11px] leading-[16px] uppercase flex items-center gap-[3px] select-none",
704
+ style: { color: statusColor }
705
+ },
706
+ getIcon(),
707
+ verification.status,
708
+ infoText
709
+ ), showInfo && infoText && /* @__PURE__ */ React.createElement(
710
+ InfoBox,
711
+ {
712
+ text: infoText,
713
+ handleClose: () => setShowInfo(false),
714
+ backgroundColor: statusColor
715
+ }
716
+ ), /* @__PURE__ */ React.createElement("span", { className: "font-[400] text-[14px] leading-[21px] text-grayscale-900" }, primaryText));
672
717
  };
673
718
 
674
719
  const VerificationsBox = ({ verificationItems }) => {
675
720
  const [showInfo, setShowInfo] = useState(false);
676
- return /* @__PURE__ */ React.createElement("div", {
677
- className: "verifications-box bg-white flex flex-col items-start gap-[10px] rounded-[20px] shadow-bottom px-[15px] py-[20px] w-full relative"
678
- }, /* @__PURE__ */ React.createElement("h3", {
679
- className: "text-[20px] leading-[20px] text-grayscale-900"
680
- }, "Credential Verifications"), /* @__PURE__ */ React.createElement("button", {
681
- className: "absolute top-[17px] right-[17px]",
682
- onClick: (e) => {
683
- e.stopPropagation();
684
- setShowInfo(!showInfo);
721
+ return /* @__PURE__ */ React.createElement("div", { className: "verifications-box bg-white flex flex-col items-start gap-[10px] rounded-[20px] shadow-bottom px-[15px] py-[20px] w-full relative" }, /* @__PURE__ */ React.createElement("h3", { className: "text-[20px] leading-[20px] text-grayscale-900" }, "Credential Verifications"), /* @__PURE__ */ React.createElement(
722
+ "button",
723
+ {
724
+ className: "absolute top-[17px] right-[17px]",
725
+ onClick: (e) => {
726
+ e.stopPropagation();
727
+ setShowInfo(!showInfo);
728
+ }
729
+ },
730
+ /* @__PURE__ */ React.createElement(InfoIcon, { color: showInfo ? "#6366F1" : void 0 })
731
+ ), showInfo && /* @__PURE__ */ React.createElement(
732
+ InfoBox,
733
+ {
734
+ text: "Credential verifications check the cryptographic proof of digital credentials to ensure their authenticity and accuracy.",
735
+ handleClose: () => setShowInfo(false)
685
736
  }
686
- }, /* @__PURE__ */ React.createElement(InfoIcon, {
687
- color: showInfo ? "#6366F1" : void 0
688
- })), showInfo && /* @__PURE__ */ React.createElement(InfoBox, {
689
- text: "Credential verifications check the cryptographic proof of digital credentials to ensure their authenticity and accuracy.",
690
- handleClose: () => setShowInfo(false)
691
- }), verificationItems.map((verification, index) => /* @__PURE__ */ React.createElement(VerificationRow, {
692
- key: index,
693
- verification
694
- })));
737
+ ), verificationItems.map((verification, index) => /* @__PURE__ */ React.createElement(VerificationRow, { key: index, verification })));
695
738
  };
696
739
 
697
740
  const VC2BackFace = ({
698
741
  credential,
699
742
  verificationItems,
743
+ // convertTagsToSkills = defaultTagsToSkills,
700
744
  getFileMetadata,
701
745
  getVideoMetadata,
702
746
  onMediaAttachmentClick,
@@ -712,58 +756,66 @@ const VC2BackFace = ({
712
756
  }) => {
713
757
  var _a, _b, _c, _d;
714
758
  const expiration = credential.expirationDate ? format$1(new Date(credential.expirationDate), "MMM dd, yyyy") : void 0;
715
- const isExpired = credential.expirationDate && Number(new Date(credential.expirationDate)) < Number(new Date());
759
+ const isExpired = credential.expirationDate && Number(new Date(credential.expirationDate)) < Number(/* @__PURE__ */ new Date());
716
760
  const achievement = "achievement" in credential.credentialSubject ? credential.credentialSubject.achievement : void 0;
717
761
  const criteria = (_a = achievement == null ? void 0 : achievement.criteria) == null ? void 0 : _a.narrative;
718
762
  const description = achievement == null ? void 0 : achievement.description;
719
763
  const alignment = achievement == null ? void 0 : achievement.alignment;
720
- return /* @__PURE__ */ React.createElement(v, {
721
- inverseFlipId: "card"
722
- }, /* @__PURE__ */ React.createElement("section", {
723
- className: "vc-back-face flex flex-col gap-[20px] w-full px-[15px] pb-[25px]"
724
- }, showBackButton && /* @__PURE__ */ React.createElement("div", {
725
- className: "w-full"
726
- }, /* @__PURE__ */ React.createElement("button", {
727
- className: "vc-card-back-button rounded-full h-[50px] px-[15px] flex items-center justify-center gap-[5px] z-50 text-[30px] text-white select-none",
728
- onClick: showFrontFace
729
- }, /* @__PURE__ */ React.createElement(LeftArrow, {
730
- className: "text-white",
731
- size: "25"
732
- }), "Details")), customDescription && /* @__PURE__ */ React.createElement(TruncateTextBox, {
733
- headerText: "About",
734
- text: description,
735
- className: "description-box"
736
- }, customDescription), !customDescription && (description || expiration) && /* @__PURE__ */ React.createElement(TruncateTextBox, {
737
- headerText: "About",
738
- text: description,
739
- className: "description-box"
740
- }, expiration && /* @__PURE__ */ React.createElement("p", {
741
- className: "text-grayscale-800 font-poppins font-[600] text-[12px] leading-[18px] mb-0"
742
- }, "Expire", isExpired ? "d" : "s", " on ", expiration)), customCriteria && /* @__PURE__ */ React.createElement(TruncateTextBox, {
743
- headerText: "Criteria",
744
- text: description,
745
- className: "description-box"
746
- }, customCriteria), !customCriteria && criteria && /* @__PURE__ */ React.createElement(TruncateTextBox, {
747
- headerText: "Criteria",
748
- text: criteria,
749
- className: "criteria-box"
750
- }), customLinkedCredentialsComponent && customLinkedCredentialsComponent, ((_c = (_b = credential.skills) == null ? void 0 : _b.length) != null ? _c : 0) > 0 && (customSkillsComponent ? customSkillsComponent : /* @__PURE__ */ React.createElement(SkillsBox, {
751
- skills: (_d = credential.skills) != null ? _d : []
752
- })), issueHistory && (issueHistory == null ? void 0 : issueHistory.length) > 0 && /* @__PURE__ */ React.createElement(IssueHistoryBox, {
753
- issueHistory,
754
- customIssueHistoryComponent
755
- }), credential.attachments && credential.attachments.length > 0 && /* @__PURE__ */ React.createElement(MediaAttachmentsBox, {
756
- attachments: credential.attachments,
757
- getFileMetadata,
758
- getVideoMetadata,
759
- onMediaAttachmentClick,
760
- enableLightbox
761
- }), alignment && /* @__PURE__ */ React.createElement(AlignmentsBox, {
762
- alignment,
763
- style: "boost"
764
- }), verificationItems && verificationItems.length > 0 && /* @__PURE__ */ React.createElement(VerificationsBox, {
765
- verificationItems
766
- })));
764
+ return /* @__PURE__ */ React.createElement(v, { inverseFlipId: "card" }, /* @__PURE__ */ React.createElement("section", { className: "vc-back-face flex flex-col gap-[20px] w-full px-[15px] pb-[25px]" }, showBackButton && /* @__PURE__ */ React.createElement("div", { className: "w-full" }, /* @__PURE__ */ React.createElement(
765
+ "button",
766
+ {
767
+ className: "vc-card-back-button rounded-full h-[50px] px-[15px] flex items-center justify-center gap-[5px] z-50 text-[30px] text-white select-none",
768
+ onClick: showFrontFace
769
+ },
770
+ /* @__PURE__ */ React.createElement(LeftArrow, { className: "text-white", size: "25" }),
771
+ "Details"
772
+ )), customDescription && /* @__PURE__ */ React.createElement(
773
+ TruncateTextBox,
774
+ {
775
+ headerText: "About",
776
+ text: description,
777
+ className: "description-box"
778
+ },
779
+ customDescription
780
+ ), !customDescription && (description || expiration) && /* @__PURE__ */ React.createElement(
781
+ TruncateTextBox,
782
+ {
783
+ headerText: "About",
784
+ text: description,
785
+ className: "description-box"
786
+ },
787
+ expiration && /* @__PURE__ */ React.createElement("p", { className: "text-grayscale-800 font-poppins font-[600] text-[12px] leading-[18px] mb-0" }, "Expire", isExpired ? "d" : "s", " on ", expiration)
788
+ ), customCriteria && /* @__PURE__ */ React.createElement(
789
+ TruncateTextBox,
790
+ {
791
+ headerText: "Criteria",
792
+ text: description,
793
+ className: "description-box"
794
+ },
795
+ customCriteria
796
+ ), !customCriteria && criteria && /* @__PURE__ */ React.createElement(
797
+ TruncateTextBox,
798
+ {
799
+ headerText: "Criteria",
800
+ text: criteria,
801
+ className: "criteria-box"
802
+ }
803
+ ), customLinkedCredentialsComponent && customLinkedCredentialsComponent, ((_c = (_b = credential.skills) == null ? void 0 : _b.length) != null ? _c : 0) > 0 && (customSkillsComponent ? customSkillsComponent : /* @__PURE__ */ React.createElement(SkillsBox, { skills: (_d = credential.skills) != null ? _d : [] })), issueHistory && (issueHistory == null ? void 0 : issueHistory.length) > 0 && /* @__PURE__ */ React.createElement(
804
+ IssueHistoryBox,
805
+ {
806
+ issueHistory,
807
+ customIssueHistoryComponent
808
+ }
809
+ ), credential.attachments && credential.attachments.length > 0 && /* @__PURE__ */ React.createElement(
810
+ MediaAttachmentsBox,
811
+ {
812
+ attachments: credential.attachments,
813
+ getFileMetadata,
814
+ getVideoMetadata,
815
+ onMediaAttachmentClick,
816
+ enableLightbox
817
+ }
818
+ ), alignment && /* @__PURE__ */ React.createElement(AlignmentsBox, { alignment, style: "boost" }), verificationItems && verificationItems.length > 0 && /* @__PURE__ */ React.createElement(VerificationsBox, { verificationItems })));
767
819
  };
768
820
 
769
821
  const VC2FrontFaceInfo = ({
@@ -788,13 +840,15 @@ const VC2FrontFaceInfo = ({
788
840
  uppercaseDate: false
789
841
  });
790
842
  const getImageElement = (imageUrl2, alt, overrideComponent, bigText) => {
791
- if (overrideComponent)
792
- return overrideComponent;
793
- return /* @__PURE__ */ React.createElement(UserProfilePicture, {
794
- user: { image: imageUrl2, name: issueeName },
795
- alt,
796
- customContainerClass: `h-full w-full ${bigText ? "!text-4xl" : ""}`
797
- });
843
+ if (overrideComponent) return overrideComponent;
844
+ return /* @__PURE__ */ React.createElement(
845
+ UserProfilePicture,
846
+ {
847
+ user: { image: imageUrl2, name: issueeName },
848
+ alt,
849
+ customContainerClass: `h-full w-full ${bigText ? "!text-4xl" : ""}`
850
+ }
851
+ );
798
852
  };
799
853
  const issueeImageEl = getImageElement(
800
854
  issueeImage,
@@ -822,53 +876,31 @@ const VC2FrontFaceInfo = ({
822
876
  verifierState = VERIFIER_STATES$1.unknownVerifier;
823
877
  }
824
878
  }
825
- return /* @__PURE__ */ React.createElement(v, {
826
- inverseFlipId: "card"
827
- }, /* @__PURE__ */ React.createElement("section", {
828
- className: "vc-front-face w-full px-[15px] flex flex-col items-center gap-[15px]"
829
- }, imageUrl && !customThumbComponent && /* @__PURE__ */ React.createElement("img", {
830
- className: "vc-front-image h-[130px] w-[130px] rounded-[10px]",
831
- src: imageUrl
832
- }), customThumbComponent && customThumbComponent, /* @__PURE__ */ React.createElement("div", {
833
- className: "vc-issue-info-box bg-white flex flex-col items-center gap-[5px] rounded-[20px] shadow-bottom px-[15px] py-[20px] w-full"
834
- }, customBodyCardComponent && customBodyCardComponent, !customBodyCardComponent && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("h3", {
835
- className: "text-[27px] flex flex-col text-center leading-[130%] text-grayscale-900 capitalize"
836
- }, issueeName, subjectDID && /* @__PURE__ */ React.createElement("span", {
837
- className: "text-[12px] text-grayscale-700 leading-[18px] font-poppins font-[400] m-0 p-0 normal-case"
838
- }, subjectDID)), /* @__PURE__ */ React.createElement("div", {
839
- className: "relative"
840
- }, /* @__PURE__ */ React.createElement("div", {
841
- className: "vc-issuee-image h-[60px] w-[60px] rounded-full overflow-hidden"
842
- }, issueeImageEl), /* @__PURE__ */ React.createElement("div", {
843
- className: "vc-issuer-image h-[30px] w-[30px] rounded-full overflow-hidden absolute bottom-[-12px] right-[-12px]"
844
- }, issuerImageEl)), /* @__PURE__ */ React.createElement("div", {
845
- className: "flex flex-col gap-[13px]"
846
- }, /* @__PURE__ */ React.createElement("div", {
847
- className: "vc-issue-details mt-[10px] flex flex-col items-center font-montserrat text-[14px] leading-[20px]"
848
- }, /* @__PURE__ */ React.createElement("span", {
849
- className: "created-at text-grayscale-700"
850
- }, createdAt), /* @__PURE__ */ React.createElement("span", {
851
- className: "issued-by text-grayscale-900 font-[500]"
852
- }, "by ", /* @__PURE__ */ React.createElement("strong", {
853
- className: "font-[700]"
854
- }, issuerName))), /* @__PURE__ */ React.createElement(VerifierStateBadgeAndText, {
855
- verifierState
856
- }))), customBodyContentSlot && customBodyContentSlot)));
879
+ return /* @__PURE__ */ React.createElement(v, { inverseFlipId: "card" }, /* @__PURE__ */ React.createElement("section", { className: "vc-front-face w-full px-[15px] flex flex-col items-center gap-[15px]" }, imageUrl && !customThumbComponent && /* @__PURE__ */ React.createElement(
880
+ "img",
881
+ {
882
+ className: "vc-front-image h-[130px] w-[130px] rounded-[10px]",
883
+ src: imageUrl
884
+ }
885
+ ), customThumbComponent && customThumbComponent, /* @__PURE__ */ React.createElement("div", { className: "vc-issue-info-box bg-white flex flex-col items-center gap-[5px] rounded-[20px] shadow-bottom px-[15px] py-[20px] w-full" }, customBodyCardComponent && customBodyCardComponent, !customBodyCardComponent && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("h3", { className: "text-[27px] flex flex-col text-center leading-[130%] text-grayscale-900 capitalize" }, issueeName, subjectDID && /* @__PURE__ */ React.createElement("span", { className: "text-[12px] text-grayscale-700 leading-[18px] font-poppins font-[400] m-0 p-0 normal-case" }, subjectDID)), /* @__PURE__ */ React.createElement("div", { className: "relative" }, /* @__PURE__ */ React.createElement("div", { className: "vc-issuee-image h-[60px] w-[60px] rounded-full overflow-hidden" }, issueeImageEl), /* @__PURE__ */ React.createElement("div", { className: "vc-issuer-image h-[30px] w-[30px] rounded-full overflow-hidden absolute bottom-[-12px] right-[-12px]" }, issuerImageEl)), /* @__PURE__ */ React.createElement("div", { className: "flex flex-col gap-[13px]" }, /* @__PURE__ */ React.createElement("div", { className: "vc-issue-details mt-[10px] flex flex-col items-center font-montserrat text-[14px] leading-[20px]" }, /* @__PURE__ */ React.createElement("span", { className: "created-at text-grayscale-700" }, createdAt), /* @__PURE__ */ React.createElement("span", { className: "issued-by text-grayscale-900 font-[500]" }, "by ", /* @__PURE__ */ React.createElement("strong", { className: "font-[700]" }, issuerName))), /* @__PURE__ */ React.createElement(VerifierStateBadgeAndText, { verifierState }))), customBodyContentSlot && customBodyContentSlot)));
857
886
  };
858
887
 
859
888
  const VCDisplayCardCategoryType = ({
860
889
  categoryType = LCCategoryEnum.achievement
861
890
  }) => {
862
891
  const categoryColor = getCategoryColor(categoryType);
863
- return /* @__PURE__ */ React.createElement("span", {
864
- className: `uppercase font-poppins text-[12px] font-[600] leading-[12px] select-none text-${categoryColor}`
865
- }, categoryType);
892
+ return /* @__PURE__ */ React.createElement(
893
+ "span",
894
+ {
895
+ className: `uppercase font-poppins text-[12px] font-[600] leading-[12px] select-none text-${categoryColor}`
896
+ },
897
+ categoryType
898
+ );
866
899
  };
867
900
 
868
901
  const VCDisplayCardSkillsCount = ({ skills, onClick }) => {
869
902
  const skillsCount = getTotalCountOfSkills(skills);
870
- if (skillsCount === 0)
871
- return /* @__PURE__ */ React.createElement(React.Fragment, null);
903
+ if (skillsCount === 0) return /* @__PURE__ */ React.createElement(React.Fragment, null);
872
904
  const skillsMap = categorizeSkills(skills);
873
905
  const totalSkills = Object.values(skillsMap).reduce(
874
906
  (total2, category) => total2 + (category == null ? void 0 : category.length),
@@ -880,17 +912,14 @@ const VCDisplayCardSkillsCount = ({ skills, onClick }) => {
880
912
  );
881
913
  const total = totalSkills + totalSubskills;
882
914
  const text = skillsCount === 1 ? "Skill" : "Skills";
883
- return /* @__PURE__ */ React.createElement("div", {
884
- className: "flex items-center justify-center mt-8 cursor-pointer px-4 py-2 bg-white rounded-[20px] shadow-bottom",
885
- onClick
886
- }, /* @__PURE__ */ React.createElement("div", {
887
- className: "text-violet-500 text-xl flex items-center justify-center tracking-[0.75px] font-poppins font-semibold"
888
- }, "+", total, " ", text, " ", /* @__PURE__ */ React.createElement("div", {
889
- className: "bg-violet-500 rounded-full flex items-center justify-center ml-2 h-[30px] w-[30px] p-1"
890
- }, /* @__PURE__ */ React.createElement(PuzzlePiece, {
891
- className: "text-white",
892
- fill: "#fff"
893
- }))));
915
+ return /* @__PURE__ */ React.createElement(
916
+ "div",
917
+ {
918
+ className: "flex items-center justify-center mt-8 cursor-pointer px-4 py-2 bg-white rounded-[20px] shadow-bottom",
919
+ onClick
920
+ },
921
+ /* @__PURE__ */ React.createElement("div", { className: "text-violet-500 text-xl flex items-center justify-center tracking-[0.75px] font-poppins font-semibold" }, "+", total, " ", text, " ", /* @__PURE__ */ React.createElement("div", { className: "bg-violet-500 rounded-full flex items-center justify-center ml-2 h-[30px] w-[30px] p-1" }, /* @__PURE__ */ React.createElement(PuzzlePiece, { className: "text-white", fill: "#fff" })))
922
+ );
894
923
  };
895
924
 
896
925
  const VERIFIER_STATES = {
@@ -932,74 +961,34 @@ const VCIDDisplayFrontFace = ({
932
961
  const isSelfVerified = verifierState === VERIFIER_STATES.selfVerified;
933
962
  const achievement = "achievement" in (credential == null ? void 0 : credential.credentialSubject) ? (_a = credential == null ? void 0 : credential.credentialSubject) == null ? void 0 : _a.achievement : void 0;
934
963
  const description = achievement == null ? void 0 : achievement.description;
935
- return /* @__PURE__ */ React.createElement(h, {
936
- className: "w-full",
937
- flipKey: isFront
938
- }, /* @__PURE__ */ React.createElement(v, {
939
- flipId: "face"
940
- }, /* @__PURE__ */ React.createElement("section", {
941
- className: "vc-front-face w-full flex flex-col items-center gap-[15px]"
942
- }, /* @__PURE__ */ React.createElement(v, {
943
- inverseFlipId: "face"
944
- }, customThumbComponent && customThumbComponent), /* @__PURE__ */ React.createElement(v, {
945
- inverseFlipId: "face"
946
- }, /* @__PURE__ */ React.createElement("div", {
947
- className: "text-white w-full flex items-center justify-center font-poppins"
948
- }, /* @__PURE__ */ React.createElement(IDIcon, {
949
- className: "text-white mr-1"
950
- }), " ID")), /* @__PURE__ */ React.createElement(v, {
951
- inverseFlipId: "face"
952
- }, /* @__PURE__ */ React.createElement("div", {
953
- className: "w-full relative"
954
- }, !hideQRCode && /* @__PURE__ */ React.createElement("button", {
955
- onClick: (e) => {
956
- e.stopPropagation();
957
- qrCodeOnClick == null ? void 0 : qrCodeOnClick();
964
+ return /* @__PURE__ */ React.createElement(h, { className: "w-full", flipKey: isFront }, /* @__PURE__ */ React.createElement(v, { flipId: "face" }, /* @__PURE__ */ React.createElement("section", { className: "vc-front-face w-full flex flex-col items-center gap-[15px]" }, /* @__PURE__ */ React.createElement(v, { inverseFlipId: "face" }, customThumbComponent && customThumbComponent), /* @__PURE__ */ React.createElement(v, { inverseFlipId: "face" }, /* @__PURE__ */ React.createElement("div", { className: "text-white w-full flex items-center justify-center font-poppins" }, /* @__PURE__ */ React.createElement(IDIcon, { className: "text-white mr-1" }), " ID")), /* @__PURE__ */ React.createElement(v, { inverseFlipId: "face" }, /* @__PURE__ */ React.createElement("div", { className: "w-full relative" }, !hideQRCode && /* @__PURE__ */ React.createElement(
965
+ "button",
966
+ {
967
+ onClick: (e) => {
968
+ e.stopPropagation();
969
+ qrCodeOnClick == null ? void 0 : qrCodeOnClick();
970
+ },
971
+ className: "text-grayscale-900 bg-white rounded-full p-[10px] absolute top-[-10px] right-[45%]"
972
+ },
973
+ /* @__PURE__ */ React.createElement(QRCodeIcon, { className: "text-grayscale-900 " })
974
+ ), /* @__PURE__ */ React.createElement("img", { src: IDSleeve, alt: "id-sleeve", className: "w-full object-cover" }))), /* @__PURE__ */ React.createElement(v, { inverseFlipId: "face" }, /* @__PURE__ */ React.createElement("div", { className: "w-full bg-white relative mt-[-70px] px-6 pb-4 pt-4" }, description && !customIDDescription && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
975
+ TruncateTextBox,
976
+ {
977
+ text: description,
978
+ className: "description-box",
979
+ containerClassName: "!p-0 !shadow-none !text-center !w-full",
980
+ textClassName: "!font-poppins !text-base !text-grayscale-700 !text-center !w-full",
981
+ truncateThreshold: 204
982
+ }
983
+ )), customIDDescription && customIDDescription, isFront && showDetailsBtn && /* @__PURE__ */ React.createElement(
984
+ "button",
985
+ {
986
+ type: "button",
987
+ className: "vc-toggle-side-button text-white shadow-bottom bg-[#00000099] px-[30px] py-[8px] rounded-[40px] text-[28px] tracking-[0.75px] uppercase leading-[28px] mt-[25px] w-fit select-none",
988
+ onClick: () => setIsFront(!isFront)
958
989
  },
959
- className: "text-grayscale-900 bg-white rounded-full p-[10px] absolute top-[-10px] right-[45%]"
960
- }, /* @__PURE__ */ React.createElement(QRCodeIcon, {
961
- className: "text-grayscale-900 "
962
- })), /* @__PURE__ */ React.createElement("img", {
963
- src: IDSleeve,
964
- alt: "id-sleeve",
965
- className: "w-full object-cover"
966
- }))), /* @__PURE__ */ React.createElement(v, {
967
- inverseFlipId: "face"
968
- }, /* @__PURE__ */ React.createElement("div", {
969
- className: "w-full bg-white relative mt-[-70px] px-6 pb-4 pt-4"
970
- }, description && !customIDDescription && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(TruncateTextBox, {
971
- text: description,
972
- className: "description-box",
973
- containerClassName: "!p-0 !shadow-none !text-center !w-full",
974
- textClassName: "!font-poppins !text-base !text-grayscale-700 !text-center !w-full",
975
- truncateThreshold: 204
976
- })), customIDDescription && customIDDescription, isFront && showDetailsBtn && /* @__PURE__ */ React.createElement("button", {
977
- type: "button",
978
- className: "vc-toggle-side-button text-white shadow-bottom bg-[#00000099] px-[30px] py-[8px] rounded-[40px] text-[28px] tracking-[0.75px] uppercase leading-[28px] mt-[25px] w-fit select-none",
979
- onClick: () => setIsFront(!isFront)
980
- }, "Details"), /* @__PURE__ */ React.createElement("div", {
981
- className: "w-full flex items-center justify-center mt-4"
982
- }, /* @__PURE__ */ React.createElement("div", {
983
- className: "h-[2px] w-full bg-gray-200"
984
- })), /* @__PURE__ */ React.createElement("div", {
985
- className: "w-full flex items-center justify-center mt-2"
986
- }, isSelfVerified && /* @__PURE__ */ React.createElement("span", {
987
- className: "uppercase font-poppins text-base font-[500] text-green-dark flex gap-[3px] items-center"
988
- }, /* @__PURE__ */ React.createElement(PersonBadge, {
989
- className: "w-[20px] h-[20px]"
990
- }), "Self Issued"), verifierState === VERIFIER_STATES.trustedVerifier && /* @__PURE__ */ React.createElement("span", {
991
- className: "uppercase font-poppins text-base font-[500] text-blue-light flex gap-[3px] items-center"
992
- }, /* @__PURE__ */ React.createElement(VerifiedBadge, {
993
- className: "w-[20px] h-[20px]"
994
- }), "Trusted Issuer"), verifierState === VERIFIER_STATES.unknownVerifier && /* @__PURE__ */ React.createElement("span", {
995
- className: "uppercase font-poppins text-base font-[500] text-orange-500 flex gap-[3px] items-center"
996
- }, /* @__PURE__ */ React.createElement(UnknownVerifierBadge, {
997
- className: "w-[20px] h-[20px]"
998
- }), "Unknown Issuer"), verifierState === VERIFIER_STATES.untrustedVerifier && /* @__PURE__ */ React.createElement("span", {
999
- className: "uppercase font-poppins text-base font-[500] text-red-mastercard flex gap-[3px] items-center"
1000
- }, /* @__PURE__ */ React.createElement(RedFlag, {
1001
- className: "w-[20px] h-[20px]"
1002
- }), "Untrusted Issuer")))))));
990
+ "Details"
991
+ ), /* @__PURE__ */ React.createElement("div", { className: "w-full flex items-center justify-center mt-4" }, /* @__PURE__ */ React.createElement("div", { className: "h-[2px] w-full bg-gray-200" })), /* @__PURE__ */ React.createElement("div", { className: "w-full flex items-center justify-center mt-2" }, isSelfVerified && /* @__PURE__ */ React.createElement("span", { className: "uppercase font-poppins text-base font-[500] text-green-dark flex gap-[3px] items-center" }, /* @__PURE__ */ React.createElement(PersonBadge, { className: "w-[20px] h-[20px]" }), "Self Issued"), verifierState === VERIFIER_STATES.trustedVerifier && /* @__PURE__ */ React.createElement("span", { className: "uppercase font-poppins text-base font-[500] text-blue-light flex gap-[3px] items-center" }, /* @__PURE__ */ React.createElement(VerifiedBadge, { className: "w-[20px] h-[20px]" }), "Trusted Issuer"), verifierState === VERIFIER_STATES.unknownVerifier && /* @__PURE__ */ React.createElement("span", { className: "uppercase font-poppins text-base font-[500] text-orange-500 flex gap-[3px] items-center" }, /* @__PURE__ */ React.createElement(UnknownVerifierBadge, { className: "w-[20px] h-[20px]" }), "Unknown Issuer"), verifierState === VERIFIER_STATES.untrustedVerifier && /* @__PURE__ */ React.createElement("span", { className: "uppercase font-poppins text-base font-[500] text-red-mastercard flex gap-[3px] items-center" }, /* @__PURE__ */ React.createElement(RedFlag, { className: "w-[20px] h-[20px]" }), "Untrusted Issuer")))))));
1003
992
  };
1004
993
 
1005
994
  const VCIDDisplayCard = ({
@@ -1037,46 +1026,53 @@ const VCIDDisplayCard = ({
1037
1026
  backgroundPosition: "center",
1038
1027
  backgroundAttachment: "fixed"
1039
1028
  };
1040
- return /* @__PURE__ */ React.createElement(h, {
1041
- className: "w-full",
1042
- flipKey: isFront
1043
- }, /* @__PURE__ */ React.createElement(v, {
1044
- flipId: "card"
1045
- }, /* @__PURE__ */ React.createElement("section", {
1046
- className: `vc-display-card font-mouse flex flex-col items-center border-solid border-white rounded-[30px] z-10 max-w-[400px] relative bg-white shadow-3xl ${isFront ? "" : "min-h-[800px]"}`
1047
- }, /* @__PURE__ */ React.createElement("div", {
1048
- className: "relative vc-card-content-container flex flex-col items-center grow min-h-0 w-full rounded-t-[30px] rounded-b-[30px] overflow-hidden",
1049
- style: backgroundStyle,
1050
- role: "button",
1051
- onClick: () => setIsFront(!isFront)
1052
- }, /* @__PURE__ */ React.createElement("div", {
1053
- className: "vc-card-content-scroll-container w-full min-h-full flex flex-col justify-start items-center rounded-t-[30px] rounded-b-[30px] scrollbar-hide pt-[20px]"
1054
- }, isFront && /* @__PURE__ */ React.createElement(VCIDDisplayFrontFace, {
1055
- isFront: _isFront,
1056
- setIsFront,
1057
- showDetailsBtn,
1058
- customThumbComponent,
1059
- credential,
1060
- knownDIDRegistry,
1061
- qrCodeOnClick,
1062
- hideQRCode,
1063
- customIDDescription
1064
- }), !isFront && /* @__PURE__ */ React.createElement(VC2BackFace, {
1065
- credential,
1066
- verificationItems,
1067
- issueHistory,
1068
- getFileMetadata,
1069
- getVideoMetadata,
1070
- onMediaAttachmentClick,
1071
- showBackButton: showBackButton && !hideNavButtons || showDetailsBtn,
1072
- showFrontFace: () => setIsFront(true),
1073
- customDescription,
1074
- customCriteria,
1075
- customIssueHistoryComponent,
1076
- enableLightbox,
1077
- customSkillsComponent,
1078
- customLinkedCredentialsComponent
1079
- }))))));
1029
+ return /* @__PURE__ */ React.createElement(h, { className: "w-full", flipKey: isFront }, /* @__PURE__ */ React.createElement(v, { flipId: "card" }, /* @__PURE__ */ React.createElement(
1030
+ "section",
1031
+ {
1032
+ className: `vc-display-card font-mouse flex flex-col items-center border-solid border-white rounded-[30px] z-10 max-w-[400px] relative bg-white shadow-3xl ${isFront ? "" : "min-h-[800px]"}`
1033
+ },
1034
+ /* @__PURE__ */ React.createElement(
1035
+ "div",
1036
+ {
1037
+ className: "relative vc-card-content-container flex flex-col items-center grow min-h-0 w-full rounded-t-[30px] rounded-b-[30px] overflow-hidden",
1038
+ style: backgroundStyle,
1039
+ role: "button",
1040
+ onClick: () => setIsFront(!isFront)
1041
+ },
1042
+ /* @__PURE__ */ React.createElement("div", { className: "vc-card-content-scroll-container w-full min-h-full flex flex-col justify-start items-center rounded-t-[30px] rounded-b-[30px] scrollbar-hide pt-[20px]" }, isFront && /* @__PURE__ */ React.createElement(
1043
+ VCIDDisplayFrontFace,
1044
+ {
1045
+ isFront: _isFront,
1046
+ setIsFront,
1047
+ showDetailsBtn,
1048
+ customThumbComponent,
1049
+ credential,
1050
+ knownDIDRegistry,
1051
+ qrCodeOnClick,
1052
+ hideQRCode,
1053
+ customIDDescription
1054
+ }
1055
+ ), !isFront && /* @__PURE__ */ React.createElement(
1056
+ VC2BackFace,
1057
+ {
1058
+ credential,
1059
+ verificationItems,
1060
+ issueHistory,
1061
+ getFileMetadata,
1062
+ getVideoMetadata,
1063
+ onMediaAttachmentClick,
1064
+ showBackButton: showBackButton && !hideNavButtons || showDetailsBtn,
1065
+ showFrontFace: () => setIsFront(true),
1066
+ customDescription,
1067
+ customCriteria,
1068
+ customIssueHistoryComponent,
1069
+ enableLightbox,
1070
+ customSkillsComponent,
1071
+ customLinkedCredentialsComponent
1072
+ }
1073
+ ))
1074
+ )
1075
+ )));
1080
1076
  };
1081
1077
 
1082
1078
  const VCDisplayCard2 = ({
@@ -1089,6 +1085,7 @@ const VCDisplayCard2 = ({
1089
1085
  subjectImageComponent,
1090
1086
  issuerImageComponent,
1091
1087
  verificationInProgress = false,
1088
+ // convertTagsToSkills,
1092
1089
  handleXClick,
1093
1090
  getFileMetadata,
1094
1091
  getVideoMetadata,
@@ -1169,225 +1166,257 @@ const VCDisplayCard2 = ({
1169
1166
  };
1170
1167
  const _title = titleOverride || title;
1171
1168
  if (categoryType === LCCategoryEnum.meritBadge || ((_d = credential == null ? void 0 : credential.display) == null ? void 0 : _d.displayType) === "award") {
1172
- return /* @__PURE__ */ React.createElement(MeritBadgeDisplayCard, {
1173
- credential,
1174
- categoryType,
1175
- issueeOverride: issuee,
1176
- issuerOverride: issuer,
1177
- verificationItems,
1178
- getFileMetadata,
1179
- getVideoMetadata,
1180
- onMediaAttachmentClick,
1181
- enableLightbox,
1182
- knownDIDRegistry,
1183
- handleXClick,
1184
- subjectImageComponent,
1185
- issuerImageComponent,
1186
- customBodyCardComponent,
1187
- hideIssueDate,
1188
- onDotsClick,
1189
- isFrontOverride,
1190
- setIsFrontOverride,
1191
- hideNavButtons,
1192
- showBackButton,
1193
- showDetailsBtn,
1194
- formattedDisplayType,
1195
- customLinkedCredentialsComponent,
1196
- customBodyContentSlot
1197
- });
1169
+ return /* @__PURE__ */ React.createElement(
1170
+ MeritBadgeDisplayCard,
1171
+ {
1172
+ credential,
1173
+ categoryType,
1174
+ issueeOverride: issuee,
1175
+ issuerOverride: issuer,
1176
+ verificationItems,
1177
+ getFileMetadata,
1178
+ getVideoMetadata,
1179
+ onMediaAttachmentClick,
1180
+ enableLightbox,
1181
+ knownDIDRegistry,
1182
+ handleXClick,
1183
+ subjectImageComponent,
1184
+ issuerImageComponent,
1185
+ customBodyCardComponent,
1186
+ hideIssueDate,
1187
+ onDotsClick,
1188
+ isFrontOverride,
1189
+ setIsFrontOverride,
1190
+ hideNavButtons,
1191
+ showBackButton,
1192
+ showDetailsBtn,
1193
+ formattedDisplayType,
1194
+ customLinkedCredentialsComponent,
1195
+ customBodyContentSlot
1196
+ }
1197
+ );
1198
1198
  }
1199
1199
  if (((_e = credential == null ? void 0 : credential.display) == null ? void 0 : _e.displayType) === "certificate") {
1200
- return /* @__PURE__ */ React.createElement(CertificateDisplayCard, {
1201
- credential,
1202
- categoryType,
1203
- issueeOverride: issuee,
1204
- issuerOverride: issuer,
1205
- verificationItems,
1206
- getFileMetadata,
1207
- getVideoMetadata,
1208
- onMediaAttachmentClick,
1209
- enableLightbox,
1210
- knownDIDRegistry,
1211
- handleXClick,
1212
- subjectImageComponent,
1213
- issuerImageComponent,
1214
- customBodyCardComponent,
1215
- hideIssueDate,
1216
- onDotsClick,
1217
- isFrontOverride,
1218
- setIsFrontOverride,
1219
- hideNavButtons,
1220
- showBackButton,
1221
- showDetailsBtn,
1222
- formattedDisplayType,
1223
- customLinkedCredentialsComponent,
1224
- customBodyContentSlot
1225
- });
1200
+ return /* @__PURE__ */ React.createElement(
1201
+ CertificateDisplayCard,
1202
+ {
1203
+ credential,
1204
+ categoryType,
1205
+ issueeOverride: issuee,
1206
+ issuerOverride: issuer,
1207
+ verificationItems,
1208
+ getFileMetadata,
1209
+ getVideoMetadata,
1210
+ onMediaAttachmentClick,
1211
+ enableLightbox,
1212
+ knownDIDRegistry,
1213
+ handleXClick,
1214
+ subjectImageComponent,
1215
+ issuerImageComponent,
1216
+ customBodyCardComponent,
1217
+ hideIssueDate,
1218
+ onDotsClick,
1219
+ isFrontOverride,
1220
+ setIsFrontOverride,
1221
+ hideNavButtons,
1222
+ showBackButton,
1223
+ showDetailsBtn,
1224
+ formattedDisplayType,
1225
+ customLinkedCredentialsComponent,
1226
+ customBodyContentSlot
1227
+ }
1228
+ );
1226
1229
  } else if (((_f = credential == null ? void 0 : credential.display) == null ? void 0 : _f.displayType) === "id" || categoryType === "ID") {
1227
- return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(VCIDDisplayCard, {
1228
- credential,
1229
- verificationItems,
1230
- getFileMetadata,
1231
- getVideoMetadata,
1232
- onMediaAttachmentClick,
1233
- customThumbComponent,
1234
- customCriteria,
1235
- customDescription,
1236
- customIssueHistoryComponent,
1237
- issueHistory,
1238
- enableLightbox,
1239
- knownDIDRegistry,
1240
- customSkillsComponent,
1241
- isFrontOverride,
1242
- setIsFrontOverride,
1243
- hideNavButtons,
1244
- hideQRCode,
1245
- qrCodeOnClick,
1246
- showBackButton,
1247
- showDetailsBtn,
1248
- customIDDescription,
1249
- hideGradientBackground,
1250
- customLinkedCredentialsComponent
1251
- }));
1230
+ return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
1231
+ VCIDDisplayCard,
1232
+ {
1233
+ credential,
1234
+ verificationItems,
1235
+ getFileMetadata,
1236
+ getVideoMetadata,
1237
+ onMediaAttachmentClick,
1238
+ customThumbComponent,
1239
+ customCriteria,
1240
+ customDescription,
1241
+ customIssueHistoryComponent,
1242
+ issueHistory,
1243
+ enableLightbox,
1244
+ knownDIDRegistry,
1245
+ customSkillsComponent,
1246
+ isFrontOverride,
1247
+ setIsFrontOverride,
1248
+ hideNavButtons,
1249
+ hideQRCode,
1250
+ qrCodeOnClick,
1251
+ showBackButton,
1252
+ showDetailsBtn,
1253
+ customIDDescription,
1254
+ hideGradientBackground,
1255
+ customLinkedCredentialsComponent
1256
+ }
1257
+ ));
1252
1258
  }
1253
1259
  const headerClassName = "vc-card-header px-[20px] pb-[10px] pt-[3px] overflow-visible mt-[40px] text-center bg-white border-y-[5px] border-[#EEF2FF] w-[calc(100%_+_16px)] rounded-t-[8px] z-50";
1254
1260
  const headerFitTextClassName = "vc-card-header-main-title text-[#18224E] pt-[3px] leading-[80%] text-[32px]";
1255
- return /* @__PURE__ */ React.createElement(h, {
1256
- className: "w-full",
1257
- flipKey: isFront
1258
- }, /* @__PURE__ */ React.createElement(v, {
1259
- flipId: "card"
1260
- }, /* @__PURE__ */ React.createElement("section", {
1261
- className: "vc-display-card font-mouse flex flex-col items-center border-solid border-[5px] border-white rounded-[30px] z-10 min-h-[800px] max-w-[400px] relative bg-white shadow-3xl",
1262
- role: "button",
1263
- onClick: () => setIsFront(!isFront)
1264
- }, /* @__PURE__ */ React.createElement(v, {
1265
- inverseFlipId: "card"
1266
- }, /* @__PURE__ */ React.createElement(RibbonEnd, {
1267
- side: "left",
1268
- className: "absolute left-[-30px] top-[50px] z-0",
1269
- height: "75"
1270
- })), /* @__PURE__ */ React.createElement(v, {
1271
- inverseFlipId: "card"
1272
- }, /* @__PURE__ */ React.createElement(RibbonEnd, {
1273
- side: "right",
1274
- className: "absolute right-[-30px] top-[50px] z-0",
1275
- height: "75"
1276
- })), /* @__PURE__ */ React.createElement(v, {
1277
- inverseFlipId: "card"
1278
- }, /* @__PURE__ */ React.createElement("h1", {
1279
- ref: headerRef,
1280
- className: `${headerClassName} absolute`,
1281
- style: { wordBreak: "break-word" }
1282
- }, customRibbonCategoryComponent && customRibbonCategoryComponent, !customRibbonCategoryComponent && /* @__PURE__ */ React.createElement(VCDisplayCardCategoryType, {
1283
- categoryType
1284
- }), /* @__PURE__ */ React.createElement(FitText, {
1285
- text: _title != null ? _title : "",
1286
- maxFontSize: 32,
1287
- minFontSize: 20,
1288
- width: ((headerWidth != null ? headerWidth : 290) - 40).toString(),
1289
- className: headerFitTextClassName
1290
- }))), isFront && handleXClick && /* @__PURE__ */ React.createElement(v, {
1291
- inverseFlipId: "card"
1292
- }, /* @__PURE__ */ React.createElement("button", {
1293
- className: "vc-card-x-button absolute top-[-25px] bg-white rounded-full h-[50px] w-[50px] flex items-center justify-center z-50",
1294
- onClick: handleXClick
1295
- }, /* @__PURE__ */ React.createElement(RoundedX, null))), /* @__PURE__ */ React.createElement("div", {
1296
- className: "relative vc-card-content-container flex flex-col items-center grow min-h-0 w-full rounded-t-[30px] bg-[#353E64] rounded-b-[200px]"
1297
- }, /* @__PURE__ */ React.createElement(v, {
1298
- inverseFlipId: "card",
1299
- scale: true
1300
- }, /* @__PURE__ */ React.createElement("div", {
1301
- className: "absolute top-0 left-0 w-full h-full rounded-b-[200px] rounded-t-[30px]",
1302
- style: backgroundStyle
1303
- })), /* @__PURE__ */ React.createElement("div", {
1304
- className: "vc-card-content-scroll-container w-full pt-[20px] min-h-full flex flex-col justify-start items-center rounded-t-[30px] rounded-b-[200px] scrollbar-hide pb-[50px] z-50"
1305
- }, /* @__PURE__ */ React.createElement("h1", {
1306
- className: `${headerClassName} invisible`,
1307
- style: { wordBreak: "break-word" }
1308
- }, customRibbonCategoryComponent && customRibbonCategoryComponent, !customRibbonCategoryComponent && /* @__PURE__ */ React.createElement(VCDisplayCardCategoryType, {
1309
- categoryType
1310
- }), /* @__PURE__ */ React.createElement(FitText, {
1311
- text: _title != null ? _title : "",
1312
- maxFontSize: 32,
1313
- minFontSize: 20,
1314
- width: ((headerWidth != null ? headerWidth : 290) - 40).toString(),
1315
- className: headerFitTextClassName
1316
- })), isFront && /* @__PURE__ */ React.createElement(VC2FrontFaceInfo, {
1317
- credential,
1318
- issuee,
1319
- subjectDID,
1320
- issuer,
1321
- title,
1322
- subjectImageComponent,
1323
- issuerImageComponent,
1324
- customBodyCardComponent,
1325
- customThumbComponent,
1326
- createdAt: createdAt != null ? createdAt : "",
1327
- imageUrl,
1328
- knownDIDRegistry,
1329
- customBodyContentSlot
1330
- }), !isFront && /* @__PURE__ */ React.createElement(VC2BackFace, {
1331
- credential,
1332
- verificationItems,
1333
- issueHistory,
1334
- getFileMetadata,
1335
- getVideoMetadata,
1336
- onMediaAttachmentClick,
1337
- showBackButton: showBackButton && !hideNavButtons || showDetailsBtn,
1338
- showFrontFace: () => setIsFront(true),
1339
- customDescription,
1340
- customCriteria,
1341
- customIssueHistoryComponent,
1342
- enableLightbox,
1343
- customSkillsComponent,
1344
- customLinkedCredentialsComponent
1345
- }), /* @__PURE__ */ React.createElement(v, {
1346
- inverseFlipId: "card"
1347
- }, isFront && /* @__PURE__ */ React.createElement(VCDisplayCardSkillsCount, {
1348
- skills: credential == null ? void 0 : credential.skills,
1349
- onClick: () => setIsFront(!isFront)
1350
- })), (!hideNavButtons || showDetailsBtn) && /* @__PURE__ */ React.createElement(React.Fragment, null, isFront && customFrontButton, (isFront && !customFrontButton || isFront && showDetailsBtn) && /* @__PURE__ */ React.createElement(v, {
1351
- inverseFlipId: "card"
1352
- }, /* @__PURE__ */ React.createElement("button", {
1353
- type: "button",
1354
- className: "vc-toggle-side-button text-white shadow-bottom bg-[#00000099] px-[30px] py-[8px] rounded-[40px] text-[28px] tracking-[0.75px] uppercase leading-[28px] mt-[40px] w-fit select-none",
1355
- onClick: () => setIsFront(!isFront)
1356
- }, "Details")), !isFront && /* @__PURE__ */ React.createElement(v, {
1357
- inverseFlipId: "card"
1358
- }, /* @__PURE__ */ React.createElement("button", {
1359
- type: "button",
1360
- className: "vc-toggle-side-button text-white shadow-bottom bg-[#00000099] px-[30px] py-[8px] rounded-[40px] text-[28px] tracking-[0.75px] uppercase leading-[28px] mt-[40px] w-fit select-none",
1361
- onClick: () => setIsFront(!isFront)
1362
- }, /* @__PURE__ */ React.createElement("span", {
1363
- className: "flex gap-[10px] items-center"
1364
- }, /* @__PURE__ */ React.createElement(LeftArrow, null), "Back")))))), /* @__PURE__ */ React.createElement("footer", {
1365
- className: "vc-card-footer w-full flex justify-between p-[5px] mt-[5px]"
1366
- }, /* @__PURE__ */ React.createElement(v, {
1367
- inverseFlipId: "card"
1368
- }, customFooterComponent && customFooterComponent), /* @__PURE__ */ React.createElement(v, {
1369
- inverseFlipId: "card"
1370
- }, !customFooterComponent && /* @__PURE__ */ React.createElement(React.Fragment, null, worstVerificationStatus === VerificationStatusEnum.Failed ? /* @__PURE__ */ React.createElement("div", {
1371
- className: "w-[40px]",
1372
- role: "presentation"
1373
- }) : /* @__PURE__ */ React.createElement(VCVerificationCheckWithSpinner, {
1374
- spinnerSize: "40px",
1375
- size: "32px",
1376
- loading: verificationInProgress
1377
- }), /* @__PURE__ */ React.createElement("div", {
1378
- className: "vc-footer-text font-montserrat flex flex-col items-center justify-center text-[12px] font-[700] leading-[15px] select-none"
1379
- }, /* @__PURE__ */ React.createElement("span", {
1380
- className: "text-[#4F4F4F]"
1381
- }, "Verified Credential"), /* @__PURE__ */ React.createElement("span", {
1382
- className: "vc-footer-status uppercase",
1383
- style: { color: statusColor }
1384
- }, worstVerificationStatus)), /* @__PURE__ */ React.createElement("div", {
1385
- className: "vc-footer-icon rounded-[20px] h-[40px] w-[40px] flex items-center justify-center overflow-hidden",
1386
- style: {
1387
- backgroundColor: (_g = bottomRightIcon == null ? void 0 : bottomRightIcon.color) != null ? _g : "#6366F1"
1388
- }
1389
- }, (_h = bottomRightIcon == null ? void 0 : bottomRightIcon.image) != null ? _h : /* @__PURE__ */ React.createElement(AwardRibbon, null))))))));
1261
+ return /* @__PURE__ */ React.createElement(h, { className: "w-full", flipKey: isFront }, /* @__PURE__ */ React.createElement(v, { flipId: "card" }, /* @__PURE__ */ React.createElement(
1262
+ "section",
1263
+ {
1264
+ className: "vc-display-card font-mouse flex flex-col items-center border-solid border-[5px] border-white rounded-[30px] z-10 min-h-[800px] max-w-[400px] relative bg-white shadow-3xl",
1265
+ role: "button",
1266
+ onClick: () => setIsFront(!isFront)
1267
+ },
1268
+ /* @__PURE__ */ React.createElement(v, { inverseFlipId: "card" }, /* @__PURE__ */ React.createElement(
1269
+ RibbonEnd,
1270
+ {
1271
+ side: "left",
1272
+ className: "absolute left-[-30px] top-[50px] z-0",
1273
+ height: "75"
1274
+ }
1275
+ )),
1276
+ /* @__PURE__ */ React.createElement(v, { inverseFlipId: "card" }, /* @__PURE__ */ React.createElement(
1277
+ RibbonEnd,
1278
+ {
1279
+ side: "right",
1280
+ className: "absolute right-[-30px] top-[50px] z-0",
1281
+ height: "75"
1282
+ }
1283
+ )),
1284
+ /* @__PURE__ */ React.createElement(v, { inverseFlipId: "card" }, /* @__PURE__ */ React.createElement(
1285
+ "h1",
1286
+ {
1287
+ ref: headerRef,
1288
+ className: `${headerClassName} absolute`,
1289
+ style: { wordBreak: "break-word" }
1290
+ },
1291
+ customRibbonCategoryComponent && customRibbonCategoryComponent,
1292
+ !customRibbonCategoryComponent && /* @__PURE__ */ React.createElement(VCDisplayCardCategoryType, { categoryType }),
1293
+ /* @__PURE__ */ React.createElement(
1294
+ FitText,
1295
+ {
1296
+ text: _title != null ? _title : "",
1297
+ maxFontSize: 32,
1298
+ minFontSize: 20,
1299
+ width: ((headerWidth != null ? headerWidth : 290) - 40).toString(),
1300
+ className: headerFitTextClassName
1301
+ }
1302
+ )
1303
+ )),
1304
+ isFront && handleXClick && /* @__PURE__ */ React.createElement(v, { inverseFlipId: "card" }, /* @__PURE__ */ React.createElement(
1305
+ "button",
1306
+ {
1307
+ className: "vc-card-x-button absolute top-[-25px] bg-white rounded-full h-[50px] w-[50px] flex items-center justify-center z-50",
1308
+ onClick: handleXClick
1309
+ },
1310
+ /* @__PURE__ */ React.createElement(RoundedX, null)
1311
+ )),
1312
+ /* @__PURE__ */ React.createElement("div", { className: "relative vc-card-content-container flex flex-col items-center grow min-h-0 w-full rounded-t-[30px] bg-[#353E64] rounded-b-[200px]" }, /* @__PURE__ */ React.createElement(v, { inverseFlipId: "card", scale: true }, /* @__PURE__ */ React.createElement(
1313
+ "div",
1314
+ {
1315
+ className: "absolute top-0 left-0 w-full h-full rounded-b-[200px] rounded-t-[30px]",
1316
+ style: backgroundStyle
1317
+ }
1318
+ )), /* @__PURE__ */ React.createElement("div", { className: "vc-card-content-scroll-container w-full pt-[20px] min-h-full flex flex-col justify-start items-center rounded-t-[30px] rounded-b-[200px] scrollbar-hide pb-[50px] z-50" }, /* @__PURE__ */ React.createElement(
1319
+ "h1",
1320
+ {
1321
+ className: `${headerClassName} invisible`,
1322
+ style: { wordBreak: "break-word" }
1323
+ },
1324
+ customRibbonCategoryComponent && customRibbonCategoryComponent,
1325
+ !customRibbonCategoryComponent && /* @__PURE__ */ React.createElement(VCDisplayCardCategoryType, { categoryType }),
1326
+ /* @__PURE__ */ React.createElement(
1327
+ FitText,
1328
+ {
1329
+ text: _title != null ? _title : "",
1330
+ maxFontSize: 32,
1331
+ minFontSize: 20,
1332
+ width: ((headerWidth != null ? headerWidth : 290) - 40).toString(),
1333
+ className: headerFitTextClassName
1334
+ }
1335
+ )
1336
+ ), isFront && /* @__PURE__ */ React.createElement(
1337
+ VC2FrontFaceInfo,
1338
+ {
1339
+ credential,
1340
+ issuee,
1341
+ subjectDID,
1342
+ issuer,
1343
+ title,
1344
+ subjectImageComponent,
1345
+ issuerImageComponent,
1346
+ customBodyCardComponent,
1347
+ customThumbComponent,
1348
+ createdAt: createdAt != null ? createdAt : "",
1349
+ imageUrl,
1350
+ knownDIDRegistry,
1351
+ customBodyContentSlot
1352
+ }
1353
+ ), !isFront && /* @__PURE__ */ React.createElement(
1354
+ VC2BackFace,
1355
+ {
1356
+ credential,
1357
+ verificationItems,
1358
+ issueHistory,
1359
+ getFileMetadata,
1360
+ getVideoMetadata,
1361
+ onMediaAttachmentClick,
1362
+ showBackButton: showBackButton && !hideNavButtons || showDetailsBtn,
1363
+ showFrontFace: () => setIsFront(true),
1364
+ customDescription,
1365
+ customCriteria,
1366
+ customIssueHistoryComponent,
1367
+ enableLightbox,
1368
+ customSkillsComponent,
1369
+ customLinkedCredentialsComponent
1370
+ }
1371
+ ), /* @__PURE__ */ React.createElement(v, { inverseFlipId: "card" }, isFront && /* @__PURE__ */ React.createElement(
1372
+ VCDisplayCardSkillsCount,
1373
+ {
1374
+ skills: credential == null ? void 0 : credential.skills,
1375
+ onClick: () => setIsFront(!isFront)
1376
+ }
1377
+ )), (!hideNavButtons || showDetailsBtn) && /* @__PURE__ */ React.createElement(React.Fragment, null, isFront && customFrontButton, (isFront && !customFrontButton || isFront && showDetailsBtn) && /* @__PURE__ */ React.createElement(v, { inverseFlipId: "card" }, /* @__PURE__ */ React.createElement(
1378
+ "button",
1379
+ {
1380
+ type: "button",
1381
+ className: "vc-toggle-side-button text-white shadow-bottom bg-[#00000099] px-[30px] py-[8px] rounded-[40px] text-[28px] tracking-[0.75px] uppercase leading-[28px] mt-[40px] w-fit select-none",
1382
+ onClick: () => setIsFront(!isFront)
1383
+ },
1384
+ "Details"
1385
+ )), !isFront && /* @__PURE__ */ React.createElement(v, { inverseFlipId: "card" }, /* @__PURE__ */ React.createElement(
1386
+ "button",
1387
+ {
1388
+ type: "button",
1389
+ className: "vc-toggle-side-button text-white shadow-bottom bg-[#00000099] px-[30px] py-[8px] rounded-[40px] text-[28px] tracking-[0.75px] uppercase leading-[28px] mt-[40px] w-fit select-none",
1390
+ onClick: () => setIsFront(!isFront)
1391
+ },
1392
+ /* @__PURE__ */ React.createElement("span", { className: "flex gap-[10px] items-center" }, /* @__PURE__ */ React.createElement(LeftArrow, null), "Back")
1393
+ ))))),
1394
+ /* @__PURE__ */ React.createElement("footer", { className: "vc-card-footer w-full flex justify-between p-[5px] mt-[5px]" }, /* @__PURE__ */ React.createElement(v, { inverseFlipId: "card" }, customFooterComponent && customFooterComponent), /* @__PURE__ */ React.createElement(v, { inverseFlipId: "card" }, !customFooterComponent && /* @__PURE__ */ React.createElement(React.Fragment, null, worstVerificationStatus === VerificationStatusEnum.Failed ? /* @__PURE__ */ React.createElement("div", { className: "w-[40px]", role: "presentation" }) : /* @__PURE__ */ React.createElement(
1395
+ VCVerificationCheckWithSpinner,
1396
+ {
1397
+ spinnerSize: "40px",
1398
+ size: "32px",
1399
+ loading: verificationInProgress
1400
+ }
1401
+ ), /* @__PURE__ */ React.createElement("div", { className: "vc-footer-text font-montserrat flex flex-col items-center justify-center text-[12px] font-[700] leading-[15px] select-none" }, /* @__PURE__ */ React.createElement("span", { className: "text-[#4F4F4F]" }, "Verified Credential"), /* @__PURE__ */ React.createElement(
1402
+ "span",
1403
+ {
1404
+ className: "vc-footer-status uppercase",
1405
+ style: { color: statusColor }
1406
+ },
1407
+ worstVerificationStatus
1408
+ )), /* @__PURE__ */ React.createElement(
1409
+ "div",
1410
+ {
1411
+ className: "vc-footer-icon rounded-[20px] h-[40px] w-[40px] flex items-center justify-center overflow-hidden",
1412
+ style: {
1413
+ backgroundColor: (_g = bottomRightIcon == null ? void 0 : bottomRightIcon.color) != null ? _g : "#6366F1"
1414
+ }
1415
+ },
1416
+ (_h = bottomRightIcon == null ? void 0 : bottomRightIcon.image) != null ? _h : /* @__PURE__ */ React.createElement(AwardRibbon, null)
1417
+ ))))
1418
+ )));
1390
1419
  };
1391
1420
 
1392
1421
  export { VCDisplayCard2 as V, VCDisplayCardSkillsCount as a, VCIDDisplayCard as b };
1393
- //# sourceMappingURL=VCDisplayCard2-04e304db.js.map
1422
+ //# sourceMappingURL=VCDisplayCard2-fb8abe89.js.map