@learncard/react 2.8.61 → 2.9.2

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 (448) hide show
  1. package/dist/base.css +1 -1
  2. package/dist/base.js +1 -1
  3. package/dist/cjs/AchievementCard-c43817f2.js +87 -0
  4. package/dist/cjs/{AchievementCard-dd332f3f.js.map → AchievementCard-c43817f2.js.map} +1 -1
  5. package/dist/cjs/BoostGenericCard-a239e89c.js +180 -0
  6. package/dist/cjs/BoostGenericCard-a239e89c.js.map +1 -0
  7. package/dist/cjs/BoostSmallCard-3e303698.js +165 -0
  8. package/dist/cjs/{BoostSmallCard-dd1cbd51.js.map → BoostSmallCard-3e303698.js.map} +1 -1
  9. package/dist/cjs/{Button-a7af702b.js → Button-9ebe120c.js} +10 -6
  10. package/dist/cjs/{Button-a7af702b.js.map → Button-9ebe120c.js.map} +1 -1
  11. package/dist/cjs/CertificateDisplayCard-b299f7fd.js +891 -0
  12. package/dist/cjs/CertificateDisplayCard-b299f7fd.js.map +1 -0
  13. package/dist/cjs/Checkmark-74444a78.js +79 -0
  14. package/dist/cjs/{Checkmark-f611aa4d.js.map → Checkmark-74444a78.js.map} +1 -1
  15. package/dist/cjs/{CircleCheckButton-82d47ee2.js → CircleCheckButton-f76e5b5d.js} +11 -9
  16. package/dist/cjs/{CircleCheckButton-82d47ee2.js.map → CircleCheckButton-f76e5b5d.js.map} +1 -1
  17. package/dist/cjs/{CircleIcon-617c38fa.js → CircleIcon-f0fa68c7.js} +14 -30
  18. package/dist/cjs/{CircleIcon-617c38fa.js.map → CircleIcon-f0fa68c7.js.map} +1 -1
  19. package/dist/cjs/{CircleSpinner-093cce04.js → CircleSpinner-f518569a.js} +2 -13
  20. package/dist/cjs/{CircleSpinner-093cce04.js.map → CircleSpinner-f518569a.js.map} +1 -1
  21. package/dist/cjs/Coins-1f33b7ad.js +20 -0
  22. package/dist/cjs/{Coins-acd63f46.js.map → Coins-1f33b7ad.js.map} +1 -1
  23. package/dist/cjs/CourseCard-bc699307.js +88 -0
  24. package/dist/cjs/{CourseCard-338a32ee.js.map → CourseCard-bc699307.js.map} +1 -1
  25. package/dist/cjs/CourseVerticalCard-554ff1b7.js +116 -0
  26. package/dist/cjs/{CourseVerticalCard-841960b1.js.map → CourseVerticalCard-554ff1b7.js.map} +1 -1
  27. package/dist/cjs/{FlippyCard-209549c5.js → FlippyCard-bf0fd493.js} +3 -16
  28. package/dist/cjs/{FlippyCard-209549c5.js.map → FlippyCard-bf0fd493.js.map} +1 -1
  29. package/dist/cjs/GenericArrow-5c392276.js +34 -0
  30. package/dist/cjs/{GenericArrow-8dfb261d.js.map → GenericArrow-5c392276.js.map} +1 -1
  31. package/dist/cjs/GenericCard-2b20ab4b.js +66 -0
  32. package/dist/cjs/{GenericCard-ad18c4c3.js.map → GenericCard-2b20ab4b.js.map} +1 -1
  33. package/dist/cjs/IDDisplayIcon-4b6ce62f.js +234 -0
  34. package/dist/cjs/{IDDisplayIcon-62993df0.js.map → IDDisplayIcon-4b6ce62f.js.map} +1 -1
  35. package/dist/cjs/JobHistoryCard-e9ac7a1a.js +35 -0
  36. package/dist/cjs/{JobHistoryCard-05a3f98b.js.map → JobHistoryCard-e9ac7a1a.js.map} +1 -1
  37. package/dist/cjs/JobListCard-c53660e8.js +124 -0
  38. package/dist/cjs/{JobListCard-f74f0302.js.map → JobListCard-c53660e8.js.map} +1 -1
  39. package/dist/cjs/LearnCardCreditCardBackFace-62330eea.js +83 -0
  40. package/dist/cjs/{LearnCardCreditCardBackFace-87cc8b9f.js.map → LearnCardCreditCardBackFace-62330eea.js.map} +1 -1
  41. package/dist/cjs/LearnCardCreditCardFrontFace-aca1b7bc.js +89 -0
  42. package/dist/cjs/{LearnCardCreditCardFrontFace-39eeb89a.js.map → LearnCardCreditCardFrontFace-aca1b7bc.js.map} +1 -1
  43. package/dist/cjs/{LearnPill-d80ba2e6.js → LearnPill-da2d2a8e.js} +10 -10
  44. package/dist/cjs/{LearnPill-d80ba2e6.js.map → LearnPill-da2d2a8e.js.map} +1 -1
  45. package/dist/cjs/{Lightbox-9aeb2f7b.js → Lightbox-d72e19ba.js} +70 -58
  46. package/dist/cjs/{Lightbox-9aeb2f7b.js.map → Lightbox-d72e19ba.js.map} +1 -1
  47. package/dist/cjs/Lightbulb-82cec354.js +42 -0
  48. package/dist/cjs/{Lightbulb-19c89d3c.js.map → Lightbulb-82cec354.js.map} +1 -1
  49. package/dist/cjs/MeritBadgeDisplayCard-531dbb15.js +947 -0
  50. package/dist/cjs/MeritBadgeDisplayCard-531dbb15.js.map +1 -0
  51. package/dist/cjs/MeritBadgeSkillsCount-4ffd9166.js +36 -0
  52. package/dist/cjs/{MeritBadgeSkillsCount-54879719.js.map → MeritBadgeSkillsCount-4ffd9166.js.map} +1 -1
  53. package/dist/cjs/MiniVCThumbnail-9c510f51.js +85 -0
  54. package/dist/cjs/{MiniVCThumbnail-a78e44f2.js.map → MiniVCThumbnail-9c510f51.js.map} +1 -1
  55. package/dist/cjs/Notification-24d4de25.js +123 -0
  56. package/dist/cjs/{Notification-d212fa7b.js.map → Notification-24d4de25.js.map} +1 -1
  57. package/dist/cjs/NotificationBoostCard-abb23722.js +142 -0
  58. package/dist/cjs/{NotificationBoostCard-cf2140c0.js.map → NotificationBoostCard-abb23722.js.map} +1 -1
  59. package/dist/cjs/NotificationUserAcceptedBoostCard-31d8a89e.js +98 -0
  60. package/dist/cjs/{NotificationUserAcceptedBoostCard-423b9320.js.map → NotificationUserAcceptedBoostCard-31d8a89e.js.map} +1 -1
  61. package/dist/cjs/NotificationUserCard-59431df3.js +121 -0
  62. package/dist/cjs/{NotificationUserCard-d4dab06c.js.map → NotificationUserCard-59431df3.js.map} +1 -1
  63. package/dist/cjs/PuzzlePiece-e64f4596.js +97 -0
  64. package/dist/cjs/PuzzlePiece-e64f4596.js.map +1 -0
  65. package/dist/cjs/QRCodeCard-f0079bd9.js +49 -0
  66. package/dist/cjs/{QRCodeCard-b56c11cc.js.map → QRCodeCard-f0079bd9.js.map} +1 -1
  67. package/dist/cjs/QRCodeIcon-3021a53b.js +137 -0
  68. package/dist/cjs/{QRCodeIcon-81c6e96b.js.map → QRCodeIcon-3021a53b.js.map} +1 -1
  69. package/dist/cjs/RoundedPill-b54f3ac1.js +134 -0
  70. package/dist/cjs/{RoundedPill-bda7c067.js.map → RoundedPill-b54f3ac1.js.map} +1 -1
  71. package/dist/cjs/{SchoolIDCard-39a099d2.js → SchoolIDCard-e22d0d80.js} +661 -380
  72. package/dist/cjs/SchoolIDCard-e22d0d80.js.map +1 -0
  73. package/dist/cjs/SkillTabCard-efade17a.js +44 -0
  74. package/dist/cjs/{SkillTabCard-66677f3c.js.map → SkillTabCard-efade17a.js.map} +1 -1
  75. package/dist/cjs/SkillVerticalCard-62e308b4.js +37 -0
  76. package/dist/cjs/{SkillVerticalCard-3eb3a8e9.js.map → SkillVerticalCard-62e308b4.js.map} +1 -1
  77. package/dist/cjs/SkillsCard-dae73a71.js +57 -0
  78. package/dist/cjs/{SkillsCard-4b6dbb4f.js.map → SkillsCard-dae73a71.js.map} +1 -1
  79. package/dist/cjs/SkillsStatsCard-aeef796c.js +57 -0
  80. package/dist/cjs/{SkillsStatsCard-97a35a88.js.map → SkillsStatsCard-aeef796c.js.map} +1 -1
  81. package/dist/cjs/SmallAchievementCard-d22a4d25.js +53 -0
  82. package/dist/cjs/{SmallAchievementCard-a1fa862b.js.map → SmallAchievementCard-d22a4d25.js.map} +1 -1
  83. package/dist/cjs/ThreeDotVertical-dda0e747.js +57 -0
  84. package/dist/cjs/{ThreeDotVertical-1d221fc8.js.map → ThreeDotVertical-dda0e747.js.map} +1 -1
  85. package/dist/cjs/Trophy-9758f0cf.js +35 -0
  86. package/dist/cjs/{Trophy-3d323be3.js.map → Trophy-9758f0cf.js.map} +1 -1
  87. package/dist/cjs/User-54049eba.js +130 -0
  88. package/dist/cjs/{User-301088ac.js.map → User-54049eba.js.map} +1 -1
  89. package/dist/cjs/{UserProfilePicture-16b97343.js → UserProfilePicture-d69fe4f0.js} +18 -12
  90. package/dist/cjs/{UserProfilePicture-16b97343.js.map → UserProfilePicture-d69fe4f0.js.map} +1 -1
  91. package/dist/cjs/{VCCard-32aeadb3.js → VCCard-2683c65c.js} +29 -22
  92. package/dist/cjs/{VCCard-32aeadb3.js.map → VCCard-2683c65c.js.map} +1 -1
  93. package/dist/cjs/VCDisplayBackFace-a7428833.js +70 -0
  94. package/dist/cjs/{VCDisplayBackFace-4543749f.js.map → VCDisplayBackFace-a7428833.js.map} +1 -1
  95. package/dist/cjs/VCDisplayCard-b8882c8e.js +191 -0
  96. package/dist/cjs/{VCDisplayCard-353cc9ed.js.map → VCDisplayCard-b8882c8e.js.map} +1 -1
  97. package/dist/cjs/{VCDisplayCard2-50acd7c8.js → VCDisplayCard2-28f7df8e.js} +725 -694
  98. package/dist/cjs/VCDisplayCard2-28f7df8e.js.map +1 -0
  99. package/dist/cjs/VCThumbnail-f84d0d01.js +148 -0
  100. package/dist/cjs/{VCThumbnail-6bf86bb2.js.map → VCThumbnail-f84d0d01.js.map} +1 -1
  101. package/dist/cjs/VCVerificationCheck-92198135.js +78 -0
  102. package/dist/cjs/{VCVerificationCheck-46fa75d3.js.map → VCVerificationCheck-92198135.js.map} +1 -1
  103. package/dist/cjs/{VCVerificationPill-88723dfa.js → VCVerificationPill-729ac239.js} +11 -26
  104. package/dist/cjs/{VCVerificationPill-88723dfa.js.map → VCVerificationPill-729ac239.js.map} +1 -1
  105. package/dist/cjs/{VerifierStateBadgeAndText-08aea854.js → VerifierStateBadgeAndText-e46d8393.js} +420 -338
  106. package/dist/cjs/{VerifierStateBadgeAndText-08aea854.js.map → VerifierStateBadgeAndText-e46d8393.js.map} +1 -1
  107. package/dist/cjs/{constants-cd049889.js → constants-2430d4bc.js} +22 -30
  108. package/dist/cjs/{constants-cd049889.js.map → constants-2430d4bc.js.map} +1 -1
  109. package/dist/cjs/{credential.helpers-90b66932.js → credential.helpers-4f806327.js} +197 -156
  110. package/dist/cjs/{credential.helpers-90b66932.js.map → credential.helpers-4f806327.js.map} +1 -1
  111. package/dist/cjs/{icons-0404f605.js → icons-857d4be1.js} +2 -1
  112. package/dist/cjs/{icons-0404f605.js.map → icons-857d4be1.js.map} +1 -1
  113. package/dist/cjs/{index-a9e3ddf5.js → index-0cac2c5b.js} +1 -1
  114. package/dist/cjs/{index-a9e3ddf5.js.map → index-0cac2c5b.js.map} +1 -1
  115. package/dist/cjs/{index-08002ab6.js → index-ba659c28.js} +9 -1
  116. package/dist/cjs/{index-08002ab6.js.map → index-ba659c28.js.map} +1 -1
  117. package/dist/cjs/index.js +119 -62
  118. package/dist/cjs/index.js.map +1 -1
  119. package/dist/cjs/index10.js +4 -4
  120. package/dist/cjs/index11.js +1 -1
  121. package/dist/cjs/index12.js +5 -5
  122. package/dist/cjs/index13.js +60 -61
  123. package/dist/cjs/index13.js.map +1 -1
  124. package/dist/cjs/index14.js +2 -2
  125. package/dist/cjs/index15.js +2 -2
  126. package/dist/cjs/index16.js +1 -1
  127. package/dist/cjs/index17.js +1 -1
  128. package/dist/cjs/index18.js +2 -2
  129. package/dist/cjs/index19.js +1 -1
  130. package/dist/cjs/index2.js +6 -6
  131. package/dist/cjs/index20.js +1 -1
  132. package/dist/cjs/index21.js +11 -11
  133. package/dist/cjs/index22.js +1 -1
  134. package/dist/cjs/index23.js +7 -7
  135. package/dist/cjs/index24.js +8 -8
  136. package/dist/cjs/index25.js +1 -1
  137. package/dist/cjs/index26.js +2 -2
  138. package/dist/cjs/index27.js +1 -1
  139. package/dist/cjs/index28.js +2 -2
  140. package/dist/cjs/index29.js +5 -5
  141. package/dist/cjs/index3.js +13 -14
  142. package/dist/cjs/index3.js.map +1 -1
  143. package/dist/cjs/index30.js +1 -1
  144. package/dist/cjs/index31.js +1 -1
  145. package/dist/cjs/index32.js +1 -1
  146. package/dist/cjs/index33.js +4 -4
  147. package/dist/cjs/index34.js +1 -1
  148. package/dist/cjs/index35.js +2 -2
  149. package/dist/cjs/index36.js +9 -9
  150. package/dist/cjs/index37.js +1 -1
  151. package/dist/cjs/index38.js +20 -21
  152. package/dist/cjs/index38.js.map +1 -1
  153. package/dist/cjs/index39.js +10 -10
  154. package/dist/cjs/index4.js +7 -7
  155. package/dist/cjs/index40.js +13 -13
  156. package/dist/cjs/index41.js +15 -16
  157. package/dist/cjs/index41.js.map +1 -1
  158. package/dist/cjs/index42.js +2 -2
  159. package/dist/cjs/index43.js +1 -1
  160. package/dist/cjs/index44.js +2 -2
  161. package/dist/cjs/index45.js +2 -2
  162. package/dist/cjs/index5.js +1 -1
  163. package/dist/cjs/index6.js +11 -12
  164. package/dist/cjs/index6.js.map +1 -1
  165. package/dist/cjs/index7.js +3 -3
  166. package/dist/cjs/index8.js +3 -3
  167. package/dist/cjs/index9.js +1 -1
  168. package/dist/cjs/{types-8eab1382.js → types-91d0677b.js} +24 -23
  169. package/dist/cjs/{types-8eab1382.js.map → types-91d0677b.js.map} +1 -1
  170. package/dist/cjs/types-e4d9a257.js.map +1 -1
  171. package/dist/cjs/types.esm-beffa54c.js +5386 -0
  172. package/dist/cjs/types.esm-beffa54c.js.map +1 -0
  173. package/dist/esm/AchievementCard-e80836dd.js +81 -0
  174. package/dist/esm/{AchievementCard-d179d041.js.map → AchievementCard-e80836dd.js.map} +1 -1
  175. package/dist/esm/BoostGenericCard-b5e522ea.js +174 -0
  176. package/dist/esm/BoostGenericCard-b5e522ea.js.map +1 -0
  177. package/dist/esm/BoostSmallCard-ddefe808.js +157 -0
  178. package/dist/esm/{BoostSmallCard-42980ebc.js.map → BoostSmallCard-ddefe808.js.map} +1 -1
  179. package/dist/esm/Button-70eedbf6.js +16 -0
  180. package/dist/esm/{Button-5f805204.js.map → Button-70eedbf6.js.map} +1 -1
  181. package/dist/esm/CertificateDisplayCard-0ceeb71a.js +879 -0
  182. package/dist/esm/CertificateDisplayCard-0ceeb71a.js.map +1 -0
  183. package/dist/esm/Checkmark-724d5d17.js +73 -0
  184. package/dist/esm/{Checkmark-d8b8f43d.js.map → Checkmark-724d5d17.js.map} +1 -1
  185. package/dist/esm/CircleCheckButton-23a9c7d4.js +26 -0
  186. package/dist/esm/{CircleCheckButton-5a97f071.js.map → CircleCheckButton-23a9c7d4.js.map} +1 -1
  187. package/dist/esm/{CircleIcon-4200733b.js → CircleIcon-abd5ff06.js} +14 -30
  188. package/dist/esm/{CircleIcon-4200733b.js.map → CircleIcon-abd5ff06.js.map} +1 -1
  189. package/dist/esm/{CircleSpinner-9b8b1a6b.js → CircleSpinner-03a329fc.js} +2 -13
  190. package/dist/esm/{CircleSpinner-9b8b1a6b.js.map → CircleSpinner-03a329fc.js.map} +1 -1
  191. package/dist/esm/Coins-e9f35519.js +14 -0
  192. package/dist/esm/{Coins-ed119ec6.js.map → Coins-e9f35519.js.map} +1 -1
  193. package/dist/esm/CourseCard-990fdc99.js +78 -0
  194. package/dist/esm/{CourseCard-663ff174.js.map → CourseCard-990fdc99.js.map} +1 -1
  195. package/dist/esm/CourseVerticalCard-aae0c030.js +106 -0
  196. package/dist/esm/{CourseVerticalCard-130b0d91.js.map → CourseVerticalCard-aae0c030.js.map} +1 -1
  197. package/dist/esm/FlippyCard-458dc9b1.js +15 -0
  198. package/dist/esm/{FlippyCard-a2de5cf1.js.map → FlippyCard-458dc9b1.js.map} +1 -1
  199. package/dist/esm/GenericArrow-b2822cf6.js +28 -0
  200. package/dist/esm/{GenericArrow-0dba1707.js.map → GenericArrow-b2822cf6.js.map} +1 -1
  201. package/dist/esm/GenericCard-24648e62.js +60 -0
  202. package/dist/esm/{GenericCard-4bb4220a.js.map → GenericCard-24648e62.js.map} +1 -1
  203. package/dist/esm/IDDisplayIcon-d87174fd.js +224 -0
  204. package/dist/esm/{IDDisplayIcon-82a851e7.js.map → IDDisplayIcon-d87174fd.js.map} +1 -1
  205. package/dist/esm/JobHistoryCard-e71ab2c7.js +29 -0
  206. package/dist/esm/{JobHistoryCard-80d4ef27.js.map → JobHistoryCard-e71ab2c7.js.map} +1 -1
  207. package/dist/esm/JobListCard-e8b4ab33.js +117 -0
  208. package/dist/esm/{JobListCard-0d1c4184.js.map → JobListCard-e8b4ab33.js.map} +1 -1
  209. package/dist/esm/LearnCardCreditCardBackFace-56642837.js +76 -0
  210. package/dist/esm/{LearnCardCreditCardBackFace-9baa9e6b.js.map → LearnCardCreditCardBackFace-56642837.js.map} +1 -1
  211. package/dist/esm/LearnCardCreditCardFrontFace-b7c917f5.js +81 -0
  212. package/dist/esm/{LearnCardCreditCardFrontFace-d50efb25.js.map → LearnCardCreditCardFrontFace-b7c917f5.js.map} +1 -1
  213. package/dist/esm/{LearnPill-74bcb08c.js → LearnPill-e0720485.js} +10 -10
  214. package/dist/esm/{LearnPill-74bcb08c.js.map → LearnPill-e0720485.js.map} +1 -1
  215. package/dist/esm/{Lightbox-2ae83d79.js → Lightbox-f0338a0c.js} +70 -58
  216. package/dist/esm/{Lightbox-2ae83d79.js.map → Lightbox-f0338a0c.js.map} +1 -1
  217. package/dist/esm/Lightbulb-7e24711e.js +35 -0
  218. package/dist/esm/{Lightbulb-b6eca510.js.map → Lightbulb-7e24711e.js.map} +1 -1
  219. package/dist/esm/MeritBadgeDisplayCard-4b8fe8e4.js +937 -0
  220. package/dist/esm/MeritBadgeDisplayCard-4b8fe8e4.js.map +1 -0
  221. package/dist/esm/MeritBadgeSkillsCount-cd2f3f6d.js +30 -0
  222. package/dist/esm/{MeritBadgeSkillsCount-d2408dfe.js.map → MeritBadgeSkillsCount-cd2f3f6d.js.map} +1 -1
  223. package/dist/esm/MiniVCThumbnail-cc05e1f8.js +78 -0
  224. package/dist/esm/{MiniVCThumbnail-6a07e810.js.map → MiniVCThumbnail-cc05e1f8.js.map} +1 -1
  225. package/dist/esm/Notification-279ba207.js +117 -0
  226. package/dist/esm/{Notification-95d159d2.js.map → Notification-279ba207.js.map} +1 -1
  227. package/dist/esm/NotificationBoostCard-cf11d747.js +134 -0
  228. package/dist/esm/{NotificationBoostCard-42596c2c.js.map → NotificationBoostCard-cf11d747.js.map} +1 -1
  229. package/dist/esm/NotificationUserAcceptedBoostCard-a1269382.js +90 -0
  230. package/dist/esm/{NotificationUserAcceptedBoostCard-8c13bd3f.js.map → NotificationUserAcceptedBoostCard-a1269382.js.map} +1 -1
  231. package/dist/esm/NotificationUserCard-c109c442.js +113 -0
  232. package/dist/esm/{NotificationUserCard-dbcc80f9.js.map → NotificationUserCard-c109c442.js.map} +1 -1
  233. package/dist/esm/PuzzlePiece-a3d9cc62.js +91 -0
  234. package/dist/esm/PuzzlePiece-a3d9cc62.js.map +1 -0
  235. package/dist/esm/QRCodeCard-8f29c3c7.js +43 -0
  236. package/dist/esm/{QRCodeCard-aa2b9967.js.map → QRCodeCard-8f29c3c7.js.map} +1 -1
  237. package/dist/esm/QRCodeIcon-8eef4f7c.js +129 -0
  238. package/dist/esm/{QRCodeIcon-e9569804.js.map → QRCodeIcon-8eef4f7c.js.map} +1 -1
  239. package/dist/esm/RoundedPill-50279e5d.js +127 -0
  240. package/dist/esm/{RoundedPill-6a6e8aaf.js.map → RoundedPill-50279e5d.js.map} +1 -1
  241. package/dist/esm/{SchoolIDCard-752092fb.js → SchoolIDCard-8b151cd3.js} +661 -380
  242. package/dist/esm/SchoolIDCard-8b151cd3.js.map +1 -0
  243. package/dist/esm/SkillTabCard-f2edb3fc.js +38 -0
  244. package/dist/esm/{SkillTabCard-cfe117a2.js.map → SkillTabCard-f2edb3fc.js.map} +1 -1
  245. package/dist/esm/SkillVerticalCard-045169f9.js +30 -0
  246. package/dist/esm/{SkillVerticalCard-108f49bb.js.map → SkillVerticalCard-045169f9.js.map} +1 -1
  247. package/dist/esm/SkillsCard-5279aac9.js +50 -0
  248. package/dist/esm/{SkillsCard-92a51db2.js.map → SkillsCard-5279aac9.js.map} +1 -1
  249. package/dist/esm/SkillsStatsCard-e0cd6137.js +50 -0
  250. package/dist/esm/{SkillsStatsCard-1628fe9c.js.map → SkillsStatsCard-e0cd6137.js.map} +1 -1
  251. package/dist/esm/SmallAchievementCard-24dfa453.js +47 -0
  252. package/dist/esm/{SmallAchievementCard-d0220751.js.map → SmallAchievementCard-24dfa453.js.map} +1 -1
  253. package/dist/esm/ThreeDotVertical-ccbbc8ef.js +51 -0
  254. package/dist/esm/{ThreeDotVertical-08294477.js.map → ThreeDotVertical-ccbbc8ef.js.map} +1 -1
  255. package/dist/esm/Trophy-fc7fdec4.js +29 -0
  256. package/dist/esm/{Trophy-ad67f46a.js.map → Trophy-fc7fdec4.js.map} +1 -1
  257. package/dist/esm/User-f5ea0f01.js +122 -0
  258. package/dist/esm/{User-161c7f37.js.map → User-f5ea0f01.js.map} +1 -1
  259. package/dist/esm/{UserProfilePicture-ecc82a6c.js → UserProfilePicture-7b950437.js} +18 -12
  260. package/dist/esm/{UserProfilePicture-ecc82a6c.js.map → UserProfilePicture-7b950437.js.map} +1 -1
  261. package/dist/esm/{VCCard-afbea3f5.js → VCCard-04ecb3db.js} +29 -22
  262. package/dist/esm/{VCCard-afbea3f5.js.map → VCCard-04ecb3db.js.map} +1 -1
  263. package/dist/esm/VCDisplayBackFace-1760601a.js +63 -0
  264. package/dist/esm/{VCDisplayBackFace-f08563e9.js.map → VCDisplayBackFace-1760601a.js.map} +1 -1
  265. package/dist/esm/VCDisplayCard-3d67e2bc.js +184 -0
  266. package/dist/esm/{VCDisplayCard-7fc1dd02.js.map → VCDisplayCard-3d67e2bc.js.map} +1 -1
  267. package/dist/esm/{VCDisplayCard2-415128f5.js → VCDisplayCard2-fb8abe89.js} +725 -694
  268. package/dist/esm/VCDisplayCard2-fb8abe89.js.map +1 -0
  269. package/dist/esm/VCThumbnail-835921dd.js +140 -0
  270. package/dist/esm/{VCThumbnail-3c254bda.js.map → VCThumbnail-835921dd.js.map} +1 -1
  271. package/dist/esm/VCVerificationCheck-8b8b7a76.js +69 -0
  272. package/dist/esm/{VCVerificationCheck-80249524.js.map → VCVerificationCheck-8b8b7a76.js.map} +1 -1
  273. package/dist/esm/VCVerificationPill-77596013.js +50 -0
  274. package/dist/esm/{VCVerificationPill-2ef031c2.js.map → VCVerificationPill-77596013.js.map} +1 -1
  275. package/dist/esm/{VerifierStateBadgeAndText-151db666.js → VerifierStateBadgeAndText-490c08dc.js} +420 -338
  276. package/dist/esm/{VerifierStateBadgeAndText-151db666.js.map → VerifierStateBadgeAndText-490c08dc.js.map} +1 -1
  277. package/dist/esm/{constants-20055f35.js → constants-f1ed610c.js} +22 -30
  278. package/dist/esm/{constants-20055f35.js.map → constants-f1ed610c.js.map} +1 -1
  279. package/dist/esm/{credential.helpers-5731a09d.js → credential.helpers-1b1ff55e.js} +197 -156
  280. package/dist/esm/{credential.helpers-5731a09d.js.map → credential.helpers-1b1ff55e.js.map} +1 -1
  281. package/dist/esm/{icons-03afd795.js → icons-fdd35170.js} +2 -1
  282. package/dist/esm/{icons-03afd795.js.map → icons-fdd35170.js.map} +1 -1
  283. package/dist/esm/{index-b102febc.js → index-cbe3a76a.js} +9 -1
  284. package/dist/esm/{index-b102febc.js.map → index-cbe3a76a.js.map} +1 -1
  285. package/dist/esm/{index-1fa04a2d.js → index-eae3ca64.js} +1 -1
  286. package/dist/esm/{index-1fa04a2d.js.map → index-eae3ca64.js.map} +1 -1
  287. package/dist/esm/index.js +116 -61
  288. package/dist/esm/index.js.map +1 -1
  289. package/dist/esm/index10.js +4 -4
  290. package/dist/esm/index11.js +1 -1
  291. package/dist/esm/index12.js +5 -5
  292. package/dist/esm/index13.js +59 -60
  293. package/dist/esm/index13.js.map +1 -1
  294. package/dist/esm/index14.js +2 -2
  295. package/dist/esm/index15.js +2 -2
  296. package/dist/esm/index16.js +1 -1
  297. package/dist/esm/index17.js +1 -1
  298. package/dist/esm/index18.js +2 -2
  299. package/dist/esm/index19.js +1 -1
  300. package/dist/esm/index2.js +6 -6
  301. package/dist/esm/index20.js +1 -1
  302. package/dist/esm/index21.js +11 -11
  303. package/dist/esm/index22.js +1 -1
  304. package/dist/esm/index23.js +7 -7
  305. package/dist/esm/index24.js +8 -8
  306. package/dist/esm/index25.js +1 -1
  307. package/dist/esm/index26.js +2 -2
  308. package/dist/esm/index27.js +1 -1
  309. package/dist/esm/index28.js +2 -2
  310. package/dist/esm/index29.js +5 -5
  311. package/dist/esm/index3.js +13 -14
  312. package/dist/esm/index3.js.map +1 -1
  313. package/dist/esm/index30.js +1 -1
  314. package/dist/esm/index31.js +1 -1
  315. package/dist/esm/index32.js +1 -1
  316. package/dist/esm/index33.js +4 -4
  317. package/dist/esm/index34.js +1 -1
  318. package/dist/esm/index35.js +2 -2
  319. package/dist/esm/index36.js +9 -9
  320. package/dist/esm/index37.js +1 -1
  321. package/dist/esm/index38.js +20 -21
  322. package/dist/esm/index38.js.map +1 -1
  323. package/dist/esm/index39.js +10 -10
  324. package/dist/esm/index4.js +7 -7
  325. package/dist/esm/index40.js +13 -13
  326. package/dist/esm/index41.js +15 -16
  327. package/dist/esm/index41.js.map +1 -1
  328. package/dist/esm/index42.js +2 -2
  329. package/dist/esm/index43.js +1 -1
  330. package/dist/esm/index44.js +2 -2
  331. package/dist/esm/index45.js +2 -2
  332. package/dist/esm/index5.js +1 -1
  333. package/dist/esm/index6.js +10 -11
  334. package/dist/esm/index6.js.map +1 -1
  335. package/dist/esm/index7.js +3 -3
  336. package/dist/esm/index8.js +3 -3
  337. package/dist/esm/index9.js +1 -1
  338. package/dist/esm/types-b32d28d5.js.map +1 -1
  339. package/dist/esm/{types-cfde3c2b.js → types-c765e2a4.js} +24 -23
  340. package/dist/esm/{types-cfde3c2b.js.map → types-c765e2a4.js.map} +1 -1
  341. package/dist/esm/types.esm-8798df50.js +5384 -0
  342. package/dist/esm/types.esm-8798df50.js.map +1 -0
  343. package/dist/index.d.ts +16 -2
  344. package/dist/main.css +1 -1
  345. package/dist/main.js +1 -1
  346. package/package.json +12 -5
  347. package/dist/cjs/AchievementCard-dd332f3f.js +0 -67
  348. package/dist/cjs/BoostGenericCard-dd01e934.js +0 -126
  349. package/dist/cjs/BoostGenericCard-dd01e934.js.map +0 -1
  350. package/dist/cjs/BoostSmallCard-dd1cbd51.js +0 -164
  351. package/dist/cjs/CertDisplayCardSkillsCount-8cc13d5b.js +0 -45
  352. package/dist/cjs/CertDisplayCardSkillsCount-8cc13d5b.js.map +0 -1
  353. package/dist/cjs/CertificateDisplayCard-e228ff3d.js +0 -830
  354. package/dist/cjs/CertificateDisplayCard-e228ff3d.js.map +0 -1
  355. package/dist/cjs/Checkmark-f611aa4d.js +0 -58
  356. package/dist/cjs/Coins-acd63f46.js +0 -22
  357. package/dist/cjs/CourseCard-338a32ee.js +0 -92
  358. package/dist/cjs/CourseVerticalCard-841960b1.js +0 -98
  359. package/dist/cjs/GenericArrow-8dfb261d.js +0 -27
  360. package/dist/cjs/GenericCard-ad18c4c3.js +0 -60
  361. package/dist/cjs/IDDisplayIcon-62993df0.js +0 -226
  362. package/dist/cjs/JobHistoryCard-05a3f98b.js +0 -43
  363. package/dist/cjs/JobListCard-f74f0302.js +0 -127
  364. package/dist/cjs/LearnCardCreditCardBackFace-87cc8b9f.js +0 -72
  365. package/dist/cjs/LearnCardCreditCardFrontFace-39eeb89a.js +0 -78
  366. package/dist/cjs/Lightbulb-19c89d3c.js +0 -37
  367. package/dist/cjs/MeritBadgeDisplayCard-5cbc63e8.js +0 -910
  368. package/dist/cjs/MeritBadgeDisplayCard-5cbc63e8.js.map +0 -1
  369. package/dist/cjs/MeritBadgeSkillsCount-54879719.js +0 -40
  370. package/dist/cjs/MiniVCThumbnail-a78e44f2.js +0 -69
  371. package/dist/cjs/Notification-d212fa7b.js +0 -94
  372. package/dist/cjs/NotificationBoostCard-cf2140c0.js +0 -120
  373. package/dist/cjs/NotificationUserAcceptedBoostCard-423b9320.js +0 -74
  374. package/dist/cjs/NotificationUserCard-d4dab06c.js +0 -94
  375. package/dist/cjs/PuzzlePiece-937c216a.js +0 -31
  376. package/dist/cjs/PuzzlePiece-937c216a.js.map +0 -1
  377. package/dist/cjs/QRCodeCard-b56c11cc.js +0 -42
  378. package/dist/cjs/QRCodeIcon-81c6e96b.js +0 -96
  379. package/dist/cjs/RoundedPill-bda7c067.js +0 -106
  380. package/dist/cjs/SchoolIDCard-39a099d2.js.map +0 -1
  381. package/dist/cjs/SkillTabCard-66677f3c.js +0 -42
  382. package/dist/cjs/SkillVerticalCard-3eb3a8e9.js +0 -35
  383. package/dist/cjs/SkillsCard-4b6dbb4f.js +0 -66
  384. package/dist/cjs/SkillsStatsCard-97a35a88.js +0 -77
  385. package/dist/cjs/SmallAchievementCard-a1fa862b.js +0 -43
  386. package/dist/cjs/ThreeDotVertical-1d221fc8.js +0 -42
  387. package/dist/cjs/Trophy-3d323be3.js +0 -28
  388. package/dist/cjs/User-301088ac.js +0 -93
  389. package/dist/cjs/VCDisplayBackFace-4543749f.js +0 -87
  390. package/dist/cjs/VCDisplayCard-353cc9ed.js +0 -180
  391. package/dist/cjs/VCDisplayCard2-50acd7c8.js.map +0 -1
  392. package/dist/cjs/VCThumbnail-6bf86bb2.js +0 -143
  393. package/dist/cjs/VCVerificationCheck-46fa75d3.js +0 -81
  394. package/dist/cjs/types.esm-6ce4cc67.js +0 -5675
  395. package/dist/cjs/types.esm-6ce4cc67.js.map +0 -1
  396. package/dist/esm/AchievementCard-d179d041.js +0 -61
  397. package/dist/esm/BoostGenericCard-5b70fa63.js +0 -120
  398. package/dist/esm/BoostGenericCard-5b70fa63.js.map +0 -1
  399. package/dist/esm/BoostSmallCard-42980ebc.js +0 -156
  400. package/dist/esm/Button-5f805204.js +0 -12
  401. package/dist/esm/CertDisplayCardSkillsCount-c5a21373.js +0 -39
  402. package/dist/esm/CertDisplayCardSkillsCount-c5a21373.js.map +0 -1
  403. package/dist/esm/CertificateDisplayCard-d2a0d0e3.js +0 -819
  404. package/dist/esm/CertificateDisplayCard-d2a0d0e3.js.map +0 -1
  405. package/dist/esm/Checkmark-d8b8f43d.js +0 -52
  406. package/dist/esm/CircleCheckButton-5a97f071.js +0 -24
  407. package/dist/esm/Coins-ed119ec6.js +0 -16
  408. package/dist/esm/CourseCard-663ff174.js +0 -82
  409. package/dist/esm/CourseVerticalCard-130b0d91.js +0 -88
  410. package/dist/esm/FlippyCard-a2de5cf1.js +0 -28
  411. package/dist/esm/GenericArrow-0dba1707.js +0 -21
  412. package/dist/esm/GenericCard-4bb4220a.js +0 -54
  413. package/dist/esm/IDDisplayIcon-82a851e7.js +0 -216
  414. package/dist/esm/JobHistoryCard-80d4ef27.js +0 -37
  415. package/dist/esm/JobListCard-0d1c4184.js +0 -120
  416. package/dist/esm/LearnCardCreditCardBackFace-9baa9e6b.js +0 -65
  417. package/dist/esm/LearnCardCreditCardFrontFace-d50efb25.js +0 -70
  418. package/dist/esm/Lightbulb-b6eca510.js +0 -30
  419. package/dist/esm/MeritBadgeDisplayCard-bc462990.js +0 -900
  420. package/dist/esm/MeritBadgeDisplayCard-bc462990.js.map +0 -1
  421. package/dist/esm/MeritBadgeSkillsCount-d2408dfe.js +0 -34
  422. package/dist/esm/MiniVCThumbnail-6a07e810.js +0 -62
  423. package/dist/esm/Notification-95d159d2.js +0 -88
  424. package/dist/esm/NotificationBoostCard-42596c2c.js +0 -112
  425. package/dist/esm/NotificationUserAcceptedBoostCard-8c13bd3f.js +0 -66
  426. package/dist/esm/NotificationUserCard-dbcc80f9.js +0 -86
  427. package/dist/esm/PuzzlePiece-1fb12c2e.js +0 -25
  428. package/dist/esm/PuzzlePiece-1fb12c2e.js.map +0 -1
  429. package/dist/esm/QRCodeCard-aa2b9967.js +0 -36
  430. package/dist/esm/QRCodeIcon-e9569804.js +0 -88
  431. package/dist/esm/RoundedPill-6a6e8aaf.js +0 -99
  432. package/dist/esm/SchoolIDCard-752092fb.js.map +0 -1
  433. package/dist/esm/SkillTabCard-cfe117a2.js +0 -36
  434. package/dist/esm/SkillVerticalCard-108f49bb.js +0 -28
  435. package/dist/esm/SkillsCard-92a51db2.js +0 -59
  436. package/dist/esm/SkillsStatsCard-1628fe9c.js +0 -70
  437. package/dist/esm/SmallAchievementCard-d0220751.js +0 -37
  438. package/dist/esm/ThreeDotVertical-08294477.js +0 -36
  439. package/dist/esm/Trophy-ad67f46a.js +0 -22
  440. package/dist/esm/User-161c7f37.js +0 -85
  441. package/dist/esm/VCDisplayBackFace-f08563e9.js +0 -80
  442. package/dist/esm/VCDisplayCard-7fc1dd02.js +0 -173
  443. package/dist/esm/VCDisplayCard2-415128f5.js.map +0 -1
  444. package/dist/esm/VCThumbnail-3c254bda.js +0 -135
  445. package/dist/esm/VCVerificationCheck-80249524.js +0 -72
  446. package/dist/esm/VCVerificationPill-2ef031c2.js +0 -65
  447. package/dist/esm/types.esm-00eeb9f6.js +0 -5673
  448. package/dist/esm/types.esm-00eeb9f6.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-5731a09d.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-151db666.js';
6
- import './index-1fa04a2d.js';
7
- import { L as Lightbox, X } from './Lightbox-2ae83d79.js';
8
- import { V as VerificationStatusEnum } from './types.esm-00eeb9f6.js';
9
- import { A as AlignmentsBox, a as CertificateDisplayCard } from './CertificateDisplayCard-d2a0d0e3.js';
10
- import { I as IDIcon, Q as QRCodeIcon, A as AwardRibbon } from './QRCodeIcon-e9569804.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
+ import './index-eae3ca64.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-1fb12c2e.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-bc462990.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,7 +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, null);
691
+ return /* @__PURE__ */ React.createElement(X, { className: "w-[15px] h-[15px]" });
650
692
  }
651
693
  };
652
694
  let primaryText = verification.check ? `${verification.check}: ${verification.message}` : verification.message;
@@ -655,46 +697,50 @@ const VerificationRow = ({ verification }) => {
655
697
  }
656
698
  primaryText = capitalize(primaryText);
657
699
  const infoText = "";
658
- return /* @__PURE__ */ React.createElement("div", {
659
- 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"
660
- }, /* @__PURE__ */ React.createElement("span", {
661
- className: "font-[700] text-[11px] leading-[16px] uppercase flex items-center gap-[3px] select-none",
662
- style: { color: statusColor }
663
- }, getIcon(), verification.status, infoText ), showInfo && infoText && /* @__PURE__ */ React.createElement(InfoBox, {
664
- text: infoText,
665
- handleClose: () => setShowInfo(false),
666
- backgroundColor: statusColor
667
- }), /* @__PURE__ */ React.createElement("span", {
668
- className: "font-[400] text-[14px] leading-[21px] text-grayscale-900"
669
- }, 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));
670
717
  };
671
718
 
672
719
  const VerificationsBox = ({ verificationItems }) => {
673
720
  const [showInfo, setShowInfo] = useState(false);
674
- return /* @__PURE__ */ React.createElement("div", {
675
- className: "verifications-box bg-white flex flex-col items-start gap-[10px] rounded-[20px] shadow-bottom px-[15px] py-[20px] w-full relative"
676
- }, /* @__PURE__ */ React.createElement("h3", {
677
- className: "text-[20px] leading-[20px] text-grayscale-900"
678
- }, "Credential Verifications"), /* @__PURE__ */ React.createElement("button", {
679
- className: "absolute top-[17px] right-[17px]",
680
- onClick: (e) => {
681
- e.stopPropagation();
682
- 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)
683
736
  }
684
- }, /* @__PURE__ */ React.createElement(InfoIcon, {
685
- color: showInfo ? "#6366F1" : void 0
686
- })), showInfo && /* @__PURE__ */ React.createElement(InfoBox, {
687
- text: "Credential verifications check the cryptographic proof of digital credentials to ensure their authenticity and accuracy.",
688
- handleClose: () => setShowInfo(false)
689
- }), verificationItems.map((verification, index) => /* @__PURE__ */ React.createElement(VerificationRow, {
690
- key: index,
691
- verification
692
- })));
737
+ ), verificationItems.map((verification, index) => /* @__PURE__ */ React.createElement(VerificationRow, { key: index, verification })));
693
738
  };
694
739
 
695
740
  const VC2BackFace = ({
696
741
  credential,
697
742
  verificationItems,
743
+ // convertTagsToSkills = defaultTagsToSkills,
698
744
  getFileMetadata,
699
745
  getVideoMetadata,
700
746
  onMediaAttachmentClick,
@@ -710,58 +756,66 @@ const VC2BackFace = ({
710
756
  }) => {
711
757
  var _a, _b, _c, _d;
712
758
  const expiration = credential.expirationDate ? format$1(new Date(credential.expirationDate), "MMM dd, yyyy") : void 0;
713
- 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());
714
760
  const achievement = "achievement" in credential.credentialSubject ? credential.credentialSubject.achievement : void 0;
715
761
  const criteria = (_a = achievement == null ? void 0 : achievement.criteria) == null ? void 0 : _a.narrative;
716
762
  const description = achievement == null ? void 0 : achievement.description;
717
763
  const alignment = achievement == null ? void 0 : achievement.alignment;
718
- return /* @__PURE__ */ React.createElement(v, {
719
- inverseFlipId: "card"
720
- }, /* @__PURE__ */ React.createElement("section", {
721
- className: "vc-back-face flex flex-col gap-[20px] w-full px-[15px] pb-[25px]"
722
- }, showBackButton && /* @__PURE__ */ React.createElement("div", {
723
- className: "w-full"
724
- }, /* @__PURE__ */ React.createElement("button", {
725
- 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",
726
- onClick: showFrontFace
727
- }, /* @__PURE__ */ React.createElement(LeftArrow, {
728
- className: "text-white",
729
- size: "25"
730
- }), "Details")), customDescription && /* @__PURE__ */ React.createElement(TruncateTextBox, {
731
- headerText: "About",
732
- text: description,
733
- className: "description-box"
734
- }, customDescription), !customDescription && (description || expiration) && /* @__PURE__ */ React.createElement(TruncateTextBox, {
735
- headerText: "About",
736
- text: description,
737
- className: "description-box"
738
- }, expiration && /* @__PURE__ */ React.createElement("p", {
739
- className: "text-grayscale-800 font-poppins font-[600] text-[12px] leading-[18px] mb-0"
740
- }, "Expire", isExpired ? "d" : "s", " on ", expiration)), customCriteria && /* @__PURE__ */ React.createElement(TruncateTextBox, {
741
- headerText: "Criteria",
742
- text: description,
743
- className: "description-box"
744
- }, customCriteria), !customCriteria && criteria && /* @__PURE__ */ React.createElement(TruncateTextBox, {
745
- headerText: "Criteria",
746
- text: criteria,
747
- className: "criteria-box"
748
- }), customLinkedCredentialsComponent && customLinkedCredentialsComponent, ((_c = (_b = credential.skills) == null ? void 0 : _b.length) != null ? _c : 0) > 0 && (customSkillsComponent ? customSkillsComponent : /* @__PURE__ */ React.createElement(SkillsBox, {
749
- skills: (_d = credential.skills) != null ? _d : []
750
- })), issueHistory && (issueHistory == null ? void 0 : issueHistory.length) > 0 && /* @__PURE__ */ React.createElement(IssueHistoryBox, {
751
- issueHistory,
752
- customIssueHistoryComponent
753
- }), credential.attachments && credential.attachments.length > 0 && /* @__PURE__ */ React.createElement(MediaAttachmentsBox, {
754
- attachments: credential.attachments,
755
- getFileMetadata,
756
- getVideoMetadata,
757
- onMediaAttachmentClick,
758
- enableLightbox
759
- }), alignment && /* @__PURE__ */ React.createElement(AlignmentsBox, {
760
- alignment,
761
- style: "boost"
762
- }), verificationItems && verificationItems.length > 0 && /* @__PURE__ */ React.createElement(VerificationsBox, {
763
- verificationItems
764
- })));
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 })));
765
819
  };
766
820
 
767
821
  const VC2FrontFaceInfo = ({
@@ -786,13 +840,15 @@ const VC2FrontFaceInfo = ({
786
840
  uppercaseDate: false
787
841
  });
788
842
  const getImageElement = (imageUrl2, alt, overrideComponent, bigText) => {
789
- if (overrideComponent)
790
- return overrideComponent;
791
- return /* @__PURE__ */ React.createElement(UserProfilePicture, {
792
- user: { image: imageUrl2, name: issueeName },
793
- alt,
794
- customContainerClass: `h-full w-full ${bigText ? "!text-4xl" : ""}`
795
- });
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
+ );
796
852
  };
797
853
  const issueeImageEl = getImageElement(
798
854
  issueeImage,
@@ -820,53 +876,31 @@ const VC2FrontFaceInfo = ({
820
876
  verifierState = VERIFIER_STATES$1.unknownVerifier;
821
877
  }
822
878
  }
823
- return /* @__PURE__ */ React.createElement(v, {
824
- inverseFlipId: "card"
825
- }, /* @__PURE__ */ React.createElement("section", {
826
- className: "vc-front-face w-full px-[15px] flex flex-col items-center gap-[15px]"
827
- }, imageUrl && !customThumbComponent && /* @__PURE__ */ React.createElement("img", {
828
- className: "vc-front-image h-[130px] w-[130px] rounded-[10px]",
829
- src: imageUrl
830
- }), customThumbComponent && customThumbComponent, /* @__PURE__ */ React.createElement("div", {
831
- className: "vc-issue-info-box bg-white flex flex-col items-center gap-[5px] rounded-[20px] shadow-bottom px-[15px] py-[20px] w-full"
832
- }, customBodyCardComponent && customBodyCardComponent, !customBodyCardComponent && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("h3", {
833
- className: "text-[27px] flex flex-col text-center leading-[130%] text-grayscale-900 capitalize"
834
- }, issueeName, subjectDID && /* @__PURE__ */ React.createElement("span", {
835
- className: "text-[12px] text-grayscale-700 leading-[18px] font-poppins font-[400] m-0 p-0 normal-case"
836
- }, subjectDID)), /* @__PURE__ */ React.createElement("div", {
837
- className: "relative"
838
- }, /* @__PURE__ */ React.createElement("div", {
839
- className: "vc-issuee-image h-[60px] w-[60px] rounded-full overflow-hidden"
840
- }, issueeImageEl), /* @__PURE__ */ React.createElement("div", {
841
- className: "vc-issuer-image h-[30px] w-[30px] rounded-full overflow-hidden absolute bottom-[-12px] right-[-12px]"
842
- }, issuerImageEl)), /* @__PURE__ */ React.createElement("div", {
843
- className: "flex flex-col gap-[13px]"
844
- }, /* @__PURE__ */ React.createElement("div", {
845
- className: "vc-issue-details mt-[10px] flex flex-col items-center font-montserrat text-[14px] leading-[20px]"
846
- }, /* @__PURE__ */ React.createElement("span", {
847
- className: "created-at text-grayscale-700"
848
- }, createdAt), /* @__PURE__ */ React.createElement("span", {
849
- className: "issued-by text-grayscale-900 font-[500]"
850
- }, "by ", /* @__PURE__ */ React.createElement("strong", {
851
- className: "font-[700]"
852
- }, issuerName))), /* @__PURE__ */ React.createElement(VerifierStateBadgeAndText, {
853
- verifierState
854
- }))), 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)));
855
886
  };
856
887
 
857
888
  const VCDisplayCardCategoryType = ({
858
889
  categoryType = LCCategoryEnum.achievement
859
890
  }) => {
860
891
  const categoryColor = getCategoryColor(categoryType);
861
- return /* @__PURE__ */ React.createElement("span", {
862
- className: `uppercase font-poppins text-[12px] font-[600] leading-[12px] select-none text-${categoryColor}`
863
- }, 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
+ );
864
899
  };
865
900
 
866
901
  const VCDisplayCardSkillsCount = ({ skills, onClick }) => {
867
902
  const skillsCount = getTotalCountOfSkills(skills);
868
- if (skillsCount === 0)
869
- return /* @__PURE__ */ React.createElement(React.Fragment, null);
903
+ if (skillsCount === 0) return /* @__PURE__ */ React.createElement(React.Fragment, null);
870
904
  const skillsMap = categorizeSkills(skills);
871
905
  const totalSkills = Object.values(skillsMap).reduce(
872
906
  (total2, category) => total2 + (category == null ? void 0 : category.length),
@@ -878,17 +912,14 @@ const VCDisplayCardSkillsCount = ({ skills, onClick }) => {
878
912
  );
879
913
  const total = totalSkills + totalSubskills;
880
914
  const text = skillsCount === 1 ? "Skill" : "Skills";
881
- return /* @__PURE__ */ React.createElement("div", {
882
- className: "flex items-center justify-center mt-8 cursor-pointer px-4 py-2 bg-white rounded-[20px] shadow-bottom",
883
- onClick
884
- }, /* @__PURE__ */ React.createElement("div", {
885
- className: "text-violet-500 text-xl flex items-center justify-center tracking-[0.75px] font-poppins font-semibold"
886
- }, "+", total, " ", text, " ", /* @__PURE__ */ React.createElement("div", {
887
- className: "bg-violet-500 rounded-full flex items-center justify-center ml-2 h-[30px] w-[30px] p-1"
888
- }, /* @__PURE__ */ React.createElement(PuzzlePiece, {
889
- className: "text-white",
890
- fill: "#fff"
891
- }))));
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
+ );
892
923
  };
893
924
 
894
925
  const VERIFIER_STATES = {
@@ -930,74 +961,34 @@ const VCIDDisplayFrontFace = ({
930
961
  const isSelfVerified = verifierState === VERIFIER_STATES.selfVerified;
931
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;
932
963
  const description = achievement == null ? void 0 : achievement.description;
933
- return /* @__PURE__ */ React.createElement(h, {
934
- className: "w-full",
935
- flipKey: isFront
936
- }, /* @__PURE__ */ React.createElement(v, {
937
- flipId: "face"
938
- }, /* @__PURE__ */ React.createElement("section", {
939
- className: "vc-front-face w-full flex flex-col items-center gap-[15px]"
940
- }, /* @__PURE__ */ React.createElement(v, {
941
- inverseFlipId: "face"
942
- }, customThumbComponent && customThumbComponent), /* @__PURE__ */ React.createElement(v, {
943
- inverseFlipId: "face"
944
- }, /* @__PURE__ */ React.createElement("div", {
945
- className: "text-white w-full flex items-center justify-center font-poppins"
946
- }, /* @__PURE__ */ React.createElement(IDIcon, {
947
- className: "text-white mr-1"
948
- }), " ID")), /* @__PURE__ */ React.createElement(v, {
949
- inverseFlipId: "face"
950
- }, /* @__PURE__ */ React.createElement("div", {
951
- className: "w-full relative"
952
- }, !hideQRCode && /* @__PURE__ */ React.createElement("button", {
953
- onClick: (e) => {
954
- e.stopPropagation();
955
- 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)
956
989
  },
957
- className: "text-grayscale-900 bg-white rounded-full p-[10px] absolute top-[-10px] right-[45%]"
958
- }, /* @__PURE__ */ React.createElement(QRCodeIcon, {
959
- className: "text-grayscale-900 "
960
- })), /* @__PURE__ */ React.createElement("img", {
961
- src: IDSleeve,
962
- alt: "id-sleeve",
963
- className: "w-full object-cover"
964
- }))), /* @__PURE__ */ React.createElement(v, {
965
- inverseFlipId: "face"
966
- }, /* @__PURE__ */ React.createElement("div", {
967
- className: "w-full bg-white relative mt-[-70px] px-6 pb-4 pt-4"
968
- }, description && !customIDDescription && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(TruncateTextBox, {
969
- text: description,
970
- className: "description-box",
971
- containerClassName: "!p-0 !shadow-none !text-center !w-full",
972
- textClassName: "!font-poppins !text-base !text-grayscale-700 !text-center !w-full",
973
- truncateThreshold: 204
974
- })), customIDDescription && customIDDescription, isFront && showDetailsBtn && /* @__PURE__ */ React.createElement("button", {
975
- type: "button",
976
- 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",
977
- onClick: () => setIsFront(!isFront)
978
- }, "Details"), /* @__PURE__ */ React.createElement("div", {
979
- className: "w-full flex items-center justify-center mt-4"
980
- }, /* @__PURE__ */ React.createElement("div", {
981
- className: "h-[2px] w-full bg-gray-200"
982
- })), /* @__PURE__ */ React.createElement("div", {
983
- className: "w-full flex items-center justify-center mt-2"
984
- }, isSelfVerified && /* @__PURE__ */ React.createElement("span", {
985
- className: "uppercase font-poppins text-base font-[500] text-green-dark flex gap-[3px] items-center"
986
- }, /* @__PURE__ */ React.createElement(PersonBadge, {
987
- className: "w-[20px] h-[20px]"
988
- }), "Self Issued"), verifierState === VERIFIER_STATES.trustedVerifier && /* @__PURE__ */ React.createElement("span", {
989
- className: "uppercase font-poppins text-base font-[500] text-blue-light flex gap-[3px] items-center"
990
- }, /* @__PURE__ */ React.createElement(VerifiedBadge, {
991
- className: "w-[20px] h-[20px]"
992
- }), "Trusted Issuer"), verifierState === VERIFIER_STATES.unknownVerifier && /* @__PURE__ */ React.createElement("span", {
993
- className: "uppercase font-poppins text-base font-[500] text-orange-500 flex gap-[3px] items-center"
994
- }, /* @__PURE__ */ React.createElement(UnknownVerifierBadge, {
995
- className: "w-[20px] h-[20px]"
996
- }), "Unknown Issuer"), verifierState === VERIFIER_STATES.untrustedVerifier && /* @__PURE__ */ React.createElement("span", {
997
- className: "uppercase font-poppins text-base font-[500] text-red-mastercard flex gap-[3px] items-center"
998
- }, /* @__PURE__ */ React.createElement(RedFlag, {
999
- className: "w-[20px] h-[20px]"
1000
- }), "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")))))));
1001
992
  };
1002
993
 
1003
994
  const VCIDDisplayCard = ({
@@ -1035,46 +1026,53 @@ const VCIDDisplayCard = ({
1035
1026
  backgroundPosition: "center",
1036
1027
  backgroundAttachment: "fixed"
1037
1028
  };
1038
- return /* @__PURE__ */ React.createElement(h, {
1039
- className: "w-full",
1040
- flipKey: isFront
1041
- }, /* @__PURE__ */ React.createElement(v, {
1042
- flipId: "card"
1043
- }, /* @__PURE__ */ React.createElement("section", {
1044
- 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]"}`
1045
- }, /* @__PURE__ */ React.createElement("div", {
1046
- 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",
1047
- style: backgroundStyle,
1048
- role: "button",
1049
- onClick: () => setIsFront(!isFront)
1050
- }, /* @__PURE__ */ React.createElement("div", {
1051
- 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]"
1052
- }, isFront && /* @__PURE__ */ React.createElement(VCIDDisplayFrontFace, {
1053
- isFront: _isFront,
1054
- setIsFront,
1055
- showDetailsBtn,
1056
- customThumbComponent,
1057
- credential,
1058
- knownDIDRegistry,
1059
- qrCodeOnClick,
1060
- hideQRCode,
1061
- customIDDescription
1062
- }), !isFront && /* @__PURE__ */ React.createElement(VC2BackFace, {
1063
- credential,
1064
- verificationItems,
1065
- issueHistory,
1066
- getFileMetadata,
1067
- getVideoMetadata,
1068
- onMediaAttachmentClick,
1069
- showBackButton: showBackButton && !hideNavButtons || showDetailsBtn,
1070
- showFrontFace: () => setIsFront(true),
1071
- customDescription,
1072
- customCriteria,
1073
- customIssueHistoryComponent,
1074
- enableLightbox,
1075
- customSkillsComponent,
1076
- customLinkedCredentialsComponent
1077
- }))))));
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
+ )));
1078
1076
  };
1079
1077
 
1080
1078
  const VCDisplayCard2 = ({
@@ -1087,6 +1085,7 @@ const VCDisplayCard2 = ({
1087
1085
  subjectImageComponent,
1088
1086
  issuerImageComponent,
1089
1087
  verificationInProgress = false,
1088
+ // convertTagsToSkills,
1090
1089
  handleXClick,
1091
1090
  getFileMetadata,
1092
1091
  getVideoMetadata,
@@ -1167,225 +1166,257 @@ const VCDisplayCard2 = ({
1167
1166
  };
1168
1167
  const _title = titleOverride || title;
1169
1168
  if (categoryType === LCCategoryEnum.meritBadge || ((_d = credential == null ? void 0 : credential.display) == null ? void 0 : _d.displayType) === "award") {
1170
- return /* @__PURE__ */ React.createElement(MeritBadgeDisplayCard, {
1171
- credential,
1172
- categoryType,
1173
- issueeOverride: issuee,
1174
- issuerOverride: issuer,
1175
- verificationItems,
1176
- getFileMetadata,
1177
- getVideoMetadata,
1178
- onMediaAttachmentClick,
1179
- enableLightbox,
1180
- knownDIDRegistry,
1181
- handleXClick,
1182
- subjectImageComponent,
1183
- issuerImageComponent,
1184
- customBodyCardComponent,
1185
- hideIssueDate,
1186
- onDotsClick,
1187
- isFrontOverride,
1188
- setIsFrontOverride,
1189
- hideNavButtons,
1190
- showBackButton,
1191
- showDetailsBtn,
1192
- formattedDisplayType,
1193
- customLinkedCredentialsComponent,
1194
- customBodyContentSlot
1195
- });
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
+ );
1196
1198
  }
1197
1199
  if (((_e = credential == null ? void 0 : credential.display) == null ? void 0 : _e.displayType) === "certificate") {
1198
- return /* @__PURE__ */ React.createElement(CertificateDisplayCard, {
1199
- credential,
1200
- categoryType,
1201
- issueeOverride: issuee,
1202
- issuerOverride: issuer,
1203
- verificationItems,
1204
- getFileMetadata,
1205
- getVideoMetadata,
1206
- onMediaAttachmentClick,
1207
- enableLightbox,
1208
- knownDIDRegistry,
1209
- handleXClick,
1210
- subjectImageComponent,
1211
- issuerImageComponent,
1212
- customBodyCardComponent,
1213
- hideIssueDate,
1214
- onDotsClick,
1215
- isFrontOverride,
1216
- setIsFrontOverride,
1217
- hideNavButtons,
1218
- showBackButton,
1219
- showDetailsBtn,
1220
- formattedDisplayType,
1221
- customLinkedCredentialsComponent,
1222
- customBodyContentSlot
1223
- });
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
+ );
1224
1229
  } else if (((_f = credential == null ? void 0 : credential.display) == null ? void 0 : _f.displayType) === "id" || categoryType === "ID") {
1225
- return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(VCIDDisplayCard, {
1226
- credential,
1227
- verificationItems,
1228
- getFileMetadata,
1229
- getVideoMetadata,
1230
- onMediaAttachmentClick,
1231
- customThumbComponent,
1232
- customCriteria,
1233
- customDescription,
1234
- customIssueHistoryComponent,
1235
- issueHistory,
1236
- enableLightbox,
1237
- knownDIDRegistry,
1238
- customSkillsComponent,
1239
- isFrontOverride,
1240
- setIsFrontOverride,
1241
- hideNavButtons,
1242
- hideQRCode,
1243
- qrCodeOnClick,
1244
- showBackButton,
1245
- showDetailsBtn,
1246
- customIDDescription,
1247
- hideGradientBackground,
1248
- customLinkedCredentialsComponent
1249
- }));
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
+ ));
1250
1258
  }
1251
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";
1252
1260
  const headerFitTextClassName = "vc-card-header-main-title text-[#18224E] pt-[3px] leading-[80%] text-[32px]";
1253
- return /* @__PURE__ */ React.createElement(h, {
1254
- className: "w-full",
1255
- flipKey: isFront
1256
- }, /* @__PURE__ */ React.createElement(v, {
1257
- flipId: "card"
1258
- }, /* @__PURE__ */ React.createElement("section", {
1259
- 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",
1260
- role: "button",
1261
- onClick: () => setIsFront(!isFront)
1262
- }, /* @__PURE__ */ React.createElement(v, {
1263
- inverseFlipId: "card"
1264
- }, /* @__PURE__ */ React.createElement(RibbonEnd, {
1265
- side: "left",
1266
- className: "absolute left-[-30px] top-[50px] z-0",
1267
- height: "75"
1268
- })), /* @__PURE__ */ React.createElement(v, {
1269
- inverseFlipId: "card"
1270
- }, /* @__PURE__ */ React.createElement(RibbonEnd, {
1271
- side: "right",
1272
- className: "absolute right-[-30px] top-[50px] z-0",
1273
- height: "75"
1274
- })), /* @__PURE__ */ React.createElement(v, {
1275
- inverseFlipId: "card"
1276
- }, /* @__PURE__ */ React.createElement("h1", {
1277
- ref: headerRef,
1278
- className: `${headerClassName} absolute`,
1279
- style: { wordBreak: "break-word" }
1280
- }, customRibbonCategoryComponent && customRibbonCategoryComponent, !customRibbonCategoryComponent && /* @__PURE__ */ React.createElement(VCDisplayCardCategoryType, {
1281
- categoryType
1282
- }), /* @__PURE__ */ React.createElement(FitText, {
1283
- text: _title != null ? _title : "",
1284
- maxFontSize: 32,
1285
- minFontSize: 20,
1286
- width: ((headerWidth != null ? headerWidth : 290) - 40).toString(),
1287
- className: headerFitTextClassName
1288
- }))), isFront && handleXClick && /* @__PURE__ */ React.createElement(v, {
1289
- inverseFlipId: "card"
1290
- }, /* @__PURE__ */ React.createElement("button", {
1291
- className: "vc-card-x-button absolute top-[-25px] bg-white rounded-full h-[50px] w-[50px] flex items-center justify-center z-50",
1292
- onClick: handleXClick
1293
- }, /* @__PURE__ */ React.createElement(RoundedX, null))), /* @__PURE__ */ React.createElement("div", {
1294
- 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]"
1295
- }, /* @__PURE__ */ React.createElement(v, {
1296
- inverseFlipId: "card",
1297
- scale: true
1298
- }, /* @__PURE__ */ React.createElement("div", {
1299
- className: "absolute top-0 left-0 w-full h-full rounded-b-[200px] rounded-t-[30px]",
1300
- style: backgroundStyle
1301
- })), /* @__PURE__ */ React.createElement("div", {
1302
- 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"
1303
- }, /* @__PURE__ */ React.createElement("h1", {
1304
- className: `${headerClassName} invisible`,
1305
- style: { wordBreak: "break-word" }
1306
- }, customRibbonCategoryComponent && customRibbonCategoryComponent, !customRibbonCategoryComponent && /* @__PURE__ */ React.createElement(VCDisplayCardCategoryType, {
1307
- categoryType
1308
- }), /* @__PURE__ */ React.createElement(FitText, {
1309
- text: _title != null ? _title : "",
1310
- maxFontSize: 32,
1311
- minFontSize: 20,
1312
- width: ((headerWidth != null ? headerWidth : 290) - 40).toString(),
1313
- className: headerFitTextClassName
1314
- })), isFront && /* @__PURE__ */ React.createElement(VC2FrontFaceInfo, {
1315
- credential,
1316
- issuee,
1317
- subjectDID,
1318
- issuer,
1319
- title,
1320
- subjectImageComponent,
1321
- issuerImageComponent,
1322
- customBodyCardComponent,
1323
- customThumbComponent,
1324
- createdAt: createdAt != null ? createdAt : "",
1325
- imageUrl,
1326
- knownDIDRegistry,
1327
- customBodyContentSlot
1328
- }), !isFront && /* @__PURE__ */ React.createElement(VC2BackFace, {
1329
- credential,
1330
- verificationItems,
1331
- issueHistory,
1332
- getFileMetadata,
1333
- getVideoMetadata,
1334
- onMediaAttachmentClick,
1335
- showBackButton: showBackButton && !hideNavButtons || showDetailsBtn,
1336
- showFrontFace: () => setIsFront(true),
1337
- customDescription,
1338
- customCriteria,
1339
- customIssueHistoryComponent,
1340
- enableLightbox,
1341
- customSkillsComponent,
1342
- customLinkedCredentialsComponent
1343
- }), /* @__PURE__ */ React.createElement(v, {
1344
- inverseFlipId: "card"
1345
- }, isFront && /* @__PURE__ */ React.createElement(VCDisplayCardSkillsCount, {
1346
- skills: credential == null ? void 0 : credential.skills,
1347
- onClick: () => setIsFront(!isFront)
1348
- })), (!hideNavButtons || showDetailsBtn) && /* @__PURE__ */ React.createElement(React.Fragment, null, isFront && customFrontButton, (isFront && !customFrontButton || isFront && showDetailsBtn) && /* @__PURE__ */ React.createElement(v, {
1349
- inverseFlipId: "card"
1350
- }, /* @__PURE__ */ React.createElement("button", {
1351
- type: "button",
1352
- 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",
1353
- onClick: () => setIsFront(!isFront)
1354
- }, "Details")), !isFront && /* @__PURE__ */ React.createElement(v, {
1355
- inverseFlipId: "card"
1356
- }, /* @__PURE__ */ React.createElement("button", {
1357
- type: "button",
1358
- 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",
1359
- onClick: () => setIsFront(!isFront)
1360
- }, /* @__PURE__ */ React.createElement("span", {
1361
- className: "flex gap-[10px] items-center"
1362
- }, /* @__PURE__ */ React.createElement(LeftArrow, null), "Back")))))), /* @__PURE__ */ React.createElement("footer", {
1363
- className: "vc-card-footer w-full flex justify-between p-[5px] mt-[5px]"
1364
- }, /* @__PURE__ */ React.createElement(v, {
1365
- inverseFlipId: "card"
1366
- }, customFooterComponent && customFooterComponent), /* @__PURE__ */ React.createElement(v, {
1367
- inverseFlipId: "card"
1368
- }, !customFooterComponent && /* @__PURE__ */ React.createElement(React.Fragment, null, worstVerificationStatus === VerificationStatusEnum.Failed ? /* @__PURE__ */ React.createElement("div", {
1369
- className: "w-[40px]",
1370
- role: "presentation"
1371
- }) : /* @__PURE__ */ React.createElement(VCVerificationCheckWithSpinner, {
1372
- spinnerSize: "40px",
1373
- size: "32px",
1374
- loading: verificationInProgress
1375
- }), /* @__PURE__ */ React.createElement("div", {
1376
- className: "vc-footer-text font-montserrat flex flex-col items-center justify-center text-[12px] font-[700] leading-[15px] select-none"
1377
- }, /* @__PURE__ */ React.createElement("span", {
1378
- className: "text-[#4F4F4F]"
1379
- }, "Verified Credential"), /* @__PURE__ */ React.createElement("span", {
1380
- className: "vc-footer-status uppercase",
1381
- style: { color: statusColor }
1382
- }, worstVerificationStatus)), /* @__PURE__ */ React.createElement("div", {
1383
- className: "vc-footer-icon rounded-[20px] h-[40px] w-[40px] flex items-center justify-center overflow-hidden",
1384
- style: {
1385
- backgroundColor: (_g = bottomRightIcon == null ? void 0 : bottomRightIcon.color) != null ? _g : "#6366F1"
1386
- }
1387
- }, (_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
+ )));
1388
1419
  };
1389
1420
 
1390
1421
  export { VCDisplayCard2 as V, VCDisplayCardSkillsCount as a, VCIDDisplayCard as b };
1391
- //# sourceMappingURL=VCDisplayCard2-415128f5.js.map
1422
+ //# sourceMappingURL=VCDisplayCard2-fb8abe89.js.map