@peculiar/certificates-viewer 4.2.0 → 4.2.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 (707) hide show
  1. package/components/actions.js +3 -3
  2. package/components/actions.js.map +1 -1
  3. package/components/arrow_top.js +6 -6
  4. package/components/arrow_top.js.map +1 -1
  5. package/components/attribute-certificate-viewer.js +227 -222
  6. package/components/attribute-certificate-viewer.js.map +1 -1
  7. package/components/attribute.js +53 -0
  8. package/components/attribute.js.map +1 -0
  9. package/components/button-menu.js +36 -35
  10. package/components/button-menu.js.map +1 -1
  11. package/components/button.js +42 -42
  12. package/components/button.js.map +1 -1
  13. package/components/certificate-viewer.js +254 -251
  14. package/components/certificate-viewer.js.map +1 -1
  15. package/components/circular-progress.js +34 -33
  16. package/components/circular-progress.js.map +1 -1
  17. package/components/crl-viewer.js +219 -216
  18. package/components/crl-viewer.js.map +1 -1
  19. package/components/cross.js +9 -9
  20. package/components/cross.js.map +1 -1
  21. package/components/csr-viewer.js +117 -209
  22. package/components/csr-viewer.js.map +1 -1
  23. package/components/download.js +12578 -64
  24. package/components/download.js.map +1 -1
  25. package/components/highlight-words.js +45 -44
  26. package/components/highlight-words.js.map +1 -1
  27. package/components/index.js +2 -0
  28. package/components/index.js.map +1 -1
  29. package/components/index2.js +114 -169
  30. package/components/index2.js.map +1 -1
  31. package/components/issuer_name.js +8 -8
  32. package/components/issuer_name.js.map +1 -1
  33. package/components/miscellaneous.js +729 -13311
  34. package/components/miscellaneous.js.map +1 -1
  35. package/components/peculiar-attribute-certificate-viewer.d.ts +2 -2
  36. package/components/peculiar-button-menu.d.ts +2 -2
  37. package/components/peculiar-certificate-decoder.d.ts +2 -2
  38. package/components/peculiar-certificate-decoder.js +177 -207
  39. package/components/peculiar-certificate-decoder.js.map +1 -1
  40. package/components/peculiar-certificate-viewer.d.ts +2 -2
  41. package/components/peculiar-certificates-viewer.d.ts +2 -2
  42. package/components/peculiar-certificates-viewer.js +297 -297
  43. package/components/peculiar-certificates-viewer.js.map +1 -1
  44. package/components/peculiar-circular-progress.d.ts +2 -2
  45. package/components/peculiar-crl-viewer.d.ts +2 -2
  46. package/components/peculiar-crl-viewer.js +1 -1
  47. package/components/peculiar-csr-viewer.d.ts +2 -2
  48. package/components/peculiar-csr-viewer.js +1 -1
  49. package/components/peculiar-highlight-words.d.ts +2 -2
  50. package/components/peculiar-text-hider.d.ts +2 -2
  51. package/components/peculiar-text-hider.js +23 -22
  52. package/components/peculiar-text-hider.js.map +1 -1
  53. package/components/pkcs10_certificate_request.js +102 -0
  54. package/components/pkcs10_certificate_request.js.map +1 -0
  55. package/components/read_file.js +110 -0
  56. package/components/read_file.js.map +1 -0
  57. package/components/subject_name.js +36 -36
  58. package/components/subject_name.js.map +1 -1
  59. package/dist/cjs/actions-789906f5.js +23 -0
  60. package/dist/cjs/{actions-19013d4a.js.map → actions-789906f5.js.map} +1 -1
  61. package/dist/cjs/app-globals-c20ffa41.js +10 -0
  62. package/dist/cjs/app-globals-c20ffa41.js.map +1 -0
  63. package/dist/cjs/arrow_top-76e4261e.js +37 -0
  64. package/dist/cjs/{arrow_top-834fb7ec.js.map → arrow_top-76e4261e.js.map} +1 -1
  65. package/dist/cjs/button-87086210.js +77 -0
  66. package/dist/cjs/{button-14e2b73f.js.map → button-87086210.js.map} +1 -1
  67. package/dist/cjs/{certification_request-5672c667.js → certification_request-815ec558.js} +3284 -2888
  68. package/dist/cjs/certification_request-815ec558.js.map +1 -0
  69. package/dist/cjs/cross-bd099933.js +51 -0
  70. package/dist/cjs/{cross-9872c473.js.map → cross-bd099933.js.map} +1 -1
  71. package/dist/cjs/download-820d66ba.js +23 -0
  72. package/dist/cjs/{download-254ddc57.js.map → download-820d66ba.js.map} +1 -1
  73. package/dist/cjs/{index-efd561e9.js → index-e2ae280a.js} +398 -145
  74. package/dist/cjs/index-e2ae280a.js.map +1 -0
  75. package/dist/cjs/index.cjs.js +18 -11
  76. package/dist/cjs/index.cjs.js.map +1 -1
  77. package/dist/cjs/link-a3d3799d.js +25 -0
  78. package/dist/cjs/{link-6aea0be4.js.map → link-a3d3799d.js.map} +1 -1
  79. package/dist/cjs/loader.cjs.js +4 -2
  80. package/dist/cjs/loader.cjs.js.map +1 -1
  81. package/dist/cjs/miscellaneous-9a573276.js +1418 -0
  82. package/dist/cjs/miscellaneous-9a573276.js.map +1 -0
  83. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +481 -480
  84. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js.map +1 -1
  85. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +72 -69
  86. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js.map +1 -1
  87. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +142 -172
  88. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +1 -1
  89. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +106 -106
  90. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -1
  91. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +257 -257
  92. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -1
  93. package/dist/cjs/peculiar-text-hider.cjs.entry.js +12 -11
  94. package/dist/cjs/peculiar-text-hider.cjs.entry.js.map +1 -1
  95. package/dist/cjs/peculiar.cjs.js +5 -3
  96. package/dist/cjs/peculiar.cjs.js.map +1 -1
  97. package/dist/cjs/pkcs10_certificate_request-0ebc0023.js +149 -0
  98. package/dist/cjs/pkcs10_certificate_request-0ebc0023.js.map +1 -0
  99. package/dist/cjs/read_file-2e22a97e.js +115 -0
  100. package/dist/cjs/read_file-2e22a97e.js.map +1 -0
  101. package/dist/cjs/x509_certificate-9914b149.js +161 -0
  102. package/dist/cjs/x509_certificate-9914b149.js.map +1 -0
  103. package/dist/cjs/x509_crl-86b6e71d.js +179 -0
  104. package/dist/cjs/x509_crl-86b6e71d.js.map +1 -0
  105. package/dist/collection/collection-manifest.json +2 -2
  106. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +259 -259
  107. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js.map +1 -1
  108. package/dist/collection/components/button/button.js +9 -9
  109. package/dist/collection/components/button/button.js.map +1 -1
  110. package/dist/collection/components/button-menu/button-menu.js +60 -60
  111. package/dist/collection/components/button-menu/button-menu.js.map +1 -1
  112. package/dist/collection/components/certificate-decoder/certificate-decoder.js +212 -212
  113. package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -1
  114. package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js +4 -3
  115. package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js.map +1 -1
  116. package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js +2 -2
  117. package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js.map +1 -1
  118. package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js +6 -6
  119. package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js.map +1 -1
  120. package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js +2 -2
  121. package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js.map +1 -1
  122. package/dist/collection/components/certificate-details-parts/attributes/index.js +42 -42
  123. package/dist/collection/components/certificate-details-parts/attributes/index.js.map +1 -1
  124. package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js +3 -3
  125. package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js.map +1 -1
  126. package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js +2 -2
  127. package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js.map +1 -1
  128. package/dist/collection/components/certificate-details-parts/attributes/name_part.js +5 -5
  129. package/dist/collection/components/certificate-details-parts/attributes/name_part.js.map +1 -1
  130. package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js +2 -2
  131. package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js.map +1 -1
  132. package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js +2 -2
  133. package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js.map +1 -1
  134. package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js +14 -14
  135. package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js.map +1 -1
  136. package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js +4 -3
  137. package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js.map +1 -1
  138. package/dist/collection/components/certificate-details-parts/basic_information.js +12 -12
  139. package/dist/collection/components/certificate-details-parts/basic_information.js.map +1 -1
  140. package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js +2 -2
  141. package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js.map +1 -1
  142. package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js +2 -2
  143. package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js.map +1 -1
  144. package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js +1 -1
  145. package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js.map +1 -1
  146. package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js +8 -8
  147. package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js.map +1 -1
  148. package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js +2 -2
  149. package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js.map +1 -1
  150. package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js +7 -7
  151. package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js.map +1 -1
  152. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js +5 -5
  153. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js.map +1 -1
  154. package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js +3 -3
  155. package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js.map +1 -1
  156. package/dist/collection/components/certificate-details-parts/extensions/cabforganization_identifier_extension.js +2 -2
  157. package/dist/collection/components/certificate-details-parts/extensions/cabforganization_identifier_extension.js.map +1 -1
  158. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js +23 -23
  159. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js.map +1 -1
  160. package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js +2 -2
  161. package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js.map +1 -1
  162. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js +5 -5
  163. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js.map +1 -1
  164. package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js +8 -8
  165. package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js.map +1 -1
  166. package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js +2 -2
  167. package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js.map +1 -1
  168. package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js +2 -2
  169. package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js.map +1 -1
  170. package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js +2 -2
  171. package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js.map +1 -1
  172. package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js +2 -2
  173. package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js.map +1 -1
  174. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js +5 -5
  175. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js.map +1 -1
  176. package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js +52 -52
  177. package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js.map +1 -1
  178. package/dist/collection/components/certificate-details-parts/extensions/index.js +121 -121
  179. package/dist/collection/components/certificate-details-parts/extensions/index.js.map +1 -1
  180. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js +5 -5
  181. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js.map +1 -1
  182. package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js +4 -4
  183. package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js.map +1 -1
  184. package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js +58 -58
  185. package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js.map +1 -1
  186. package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js +2 -2
  187. package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js.map +1 -1
  188. package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js +2 -2
  189. package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js.map +1 -1
  190. package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js +2 -2
  191. package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js.map +1 -1
  192. package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js +42 -42
  193. package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js.map +1 -1
  194. package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js +5 -5
  195. package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js.map +1 -1
  196. package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js +2 -2
  197. package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js.map +1 -1
  198. package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js +2 -2
  199. package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js.map +1 -1
  200. package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js +2 -2
  201. package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js.map +1 -1
  202. package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js +6 -7
  203. package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js.map +1 -1
  204. package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js +2 -2
  205. package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js.map +1 -1
  206. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js +29 -29
  207. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js.map +1 -1
  208. package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js +2 -2
  209. package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js.map +1 -1
  210. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js +5 -5
  211. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js.map +1 -1
  212. package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js +8 -8
  213. package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js.map +1 -1
  214. package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js +2 -2
  215. package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js.map +1 -1
  216. package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js +6 -8
  217. package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js.map +1 -1
  218. package/dist/collection/components/certificate-details-parts/holder.js +19 -21
  219. package/dist/collection/components/certificate-details-parts/holder.js.map +1 -1
  220. package/dist/collection/components/certificate-details-parts/issuer.js +8 -8
  221. package/dist/collection/components/certificate-details-parts/issuer.js.map +1 -1
  222. package/dist/collection/components/certificate-details-parts/issuer_name.js +6 -6
  223. package/dist/collection/components/certificate-details-parts/issuer_name.js.map +1 -1
  224. package/dist/collection/components/certificate-details-parts/miscellaneous.js +6 -6
  225. package/dist/collection/components/certificate-details-parts/miscellaneous.js.map +1 -1
  226. package/dist/collection/components/certificate-details-parts/public_key.js +29 -29
  227. package/dist/collection/components/certificate-details-parts/public_key.js.map +1 -1
  228. package/dist/collection/components/certificate-details-parts/revoked_certificates.js +30 -30
  229. package/dist/collection/components/certificate-details-parts/revoked_certificates.js.map +1 -1
  230. package/dist/collection/components/certificate-details-parts/row.js +26 -26
  231. package/dist/collection/components/certificate-details-parts/row.js.map +1 -1
  232. package/dist/collection/components/certificate-details-parts/signature.js +13 -13
  233. package/dist/collection/components/certificate-details-parts/signature.js.map +1 -1
  234. package/dist/collection/components/certificate-details-parts/subject_name.js +5 -5
  235. package/dist/collection/components/certificate-details-parts/subject_name.js.map +1 -1
  236. package/dist/collection/components/certificate-details-parts/thumbprints.js +12 -12
  237. package/dist/collection/components/certificate-details-parts/thumbprints.js.map +1 -1
  238. package/dist/collection/components/certificate-summary/certificate-summary.js +3 -3
  239. package/dist/collection/components/certificate-summary/certificate-summary.js.map +1 -1
  240. package/dist/collection/components/certificate-viewer/certificate-viewer.js +278 -278
  241. package/dist/collection/components/certificate-viewer/certificate-viewer.js.map +1 -1
  242. package/dist/collection/components/certificates-viewer/certificates-viewer.js +374 -374
  243. package/dist/collection/components/certificates-viewer/certificates-viewer.js.map +1 -1
  244. package/dist/collection/components/circular-progress/circular-progress.js +67 -67
  245. package/dist/collection/components/circular-progress/circular-progress.js.map +1 -1
  246. package/dist/collection/components/crl-viewer/crl-viewer.js +230 -230
  247. package/dist/collection/components/crl-viewer/crl-viewer.js.map +1 -1
  248. package/dist/collection/components/csr-viewer/csr-viewer.js +212 -220
  249. package/dist/collection/components/csr-viewer/csr-viewer.js.map +1 -1
  250. package/dist/collection/components/highlight-words/highlight-words.js +60 -60
  251. package/dist/collection/components/highlight-words/highlight-words.js.map +1 -1
  252. package/dist/collection/components/icons/actions.js +2 -2
  253. package/dist/collection/components/icons/actions.js.map +1 -1
  254. package/dist/collection/components/icons/arrow_bottom.js +2 -2
  255. package/dist/collection/components/icons/arrow_bottom.js.map +1 -1
  256. package/dist/collection/components/icons/arrow_top.js +2 -2
  257. package/dist/collection/components/icons/arrow_top.js.map +1 -1
  258. package/dist/collection/components/icons/cross.js +2 -2
  259. package/dist/collection/components/icons/cross.js.map +1 -1
  260. package/dist/collection/components/icons/details.js +2 -2
  261. package/dist/collection/components/icons/details.js.map +1 -1
  262. package/dist/collection/components/icons/download.js +2 -2
  263. package/dist/collection/components/icons/download.js.map +1 -1
  264. package/dist/collection/components/icons/link.js +2 -2
  265. package/dist/collection/components/icons/link.js.map +1 -1
  266. package/dist/collection/components/link/link.js +4 -4
  267. package/dist/collection/components/link/link.js.map +1 -1
  268. package/dist/collection/components/text-hider/text-hider.js +23 -23
  269. package/dist/collection/components/text-hider/text-hider.js.map +1 -1
  270. package/dist/collection/components/typography/typography.js +32 -32
  271. package/dist/collection/components/typography/typography.js.map +1 -1
  272. package/dist/collection/constants/logs.js +77 -77
  273. package/dist/collection/constants/logs.js.map +1 -1
  274. package/dist/collection/constants/oids.js +2334 -2334
  275. package/dist/collection/constants/oids.js.map +1 -1
  276. package/dist/collection/crypto/asn_data.js +31 -31
  277. package/dist/collection/crypto/asn_data.js.map +1 -1
  278. package/dist/collection/crypto/attribute.js +35 -51
  279. package/dist/collection/crypto/attribute.js.map +1 -1
  280. package/dist/collection/crypto/extension.js +63 -138
  281. package/dist/collection/crypto/extension.js.map +1 -1
  282. package/dist/collection/crypto/extensions/cabforganization_identifier.js +20 -15
  283. package/dist/collection/crypto/extensions/cabforganization_identifier.js.map +1 -1
  284. package/dist/collection/crypto/index.js +2 -2
  285. package/dist/collection/crypto/index.js.map +1 -1
  286. package/dist/collection/crypto/name.js +31 -31
  287. package/dist/collection/crypto/name.js.map +1 -1
  288. package/dist/collection/crypto/pkcs10_certificate_request.js +108 -0
  289. package/dist/collection/crypto/pkcs10_certificate_request.js.map +1 -0
  290. package/dist/collection/crypto/provider.js +26 -26
  291. package/dist/collection/crypto/provider.js.map +1 -1
  292. package/dist/collection/crypto/utils.js +23 -23
  293. package/dist/collection/crypto/utils.js.map +1 -1
  294. package/dist/collection/crypto/x509_attribute_certificate.js +68 -66
  295. package/dist/collection/crypto/x509_attribute_certificate.js.map +1 -1
  296. package/dist/collection/crypto/x509_certificate.js +127 -125
  297. package/dist/collection/crypto/x509_certificate.js.map +1 -1
  298. package/dist/collection/crypto/x509_crl.js +94 -0
  299. package/dist/collection/crypto/x509_crl.js.map +1 -0
  300. package/dist/collection/index.js +2 -0
  301. package/dist/collection/index.js.map +1 -1
  302. package/dist/collection/utils/camel_case_to_words.js +2 -2
  303. package/dist/collection/utils/camel_case_to_words.js.map +1 -1
  304. package/dist/collection/utils/date_formatter.js +6 -6
  305. package/dist/collection/utils/date_formatter.js.map +1 -1
  306. package/dist/collection/utils/download.js +24 -24
  307. package/dist/collection/utils/download.js.map +1 -1
  308. package/dist/collection/utils/download_from_buffer.js +25 -25
  309. package/dist/collection/utils/download_from_buffer.js.map +1 -1
  310. package/dist/collection/utils/get_string_by_oid.js +5 -5
  311. package/dist/collection/utils/get_string_by_oid.js.map +1 -1
  312. package/dist/collection/utils/is_link.js +1 -1
  313. package/dist/collection/utils/is_link.js.map +1 -1
  314. package/dist/collection/utils/l10n.js +25 -25
  315. package/dist/collection/utils/l10n.js.map +1 -1
  316. package/dist/collection/utils/read_file.js +40 -40
  317. package/dist/collection/utils/read_file.js.map +1 -1
  318. package/dist/collection/utils/validator.js +13 -13
  319. package/dist/collection/utils/validator.js.map +1 -1
  320. package/dist/esm/actions-aebcbc9d.js +21 -0
  321. package/dist/esm/{actions-8d745b2a.js.map → actions-aebcbc9d.js.map} +1 -1
  322. package/dist/esm/app-globals-5e9b67e0.js +8 -0
  323. package/dist/esm/app-globals-5e9b67e0.js.map +1 -0
  324. package/dist/esm/arrow_top-aee1ee02.js +34 -0
  325. package/dist/esm/{arrow_top-fc298828.js.map → arrow_top-aee1ee02.js.map} +1 -1
  326. package/dist/esm/button-a2fabf9a.js +74 -0
  327. package/dist/esm/{button-35146bdd.js.map → button-a2fabf9a.js.map} +1 -1
  328. package/dist/esm/{certification_request-d5ea5973.js → certification_request-08b4deb8.js} +3227 -2835
  329. package/dist/esm/certification_request-08b4deb8.js.map +1 -0
  330. package/dist/esm/cross-1377606f.js +47 -0
  331. package/dist/esm/{cross-9ec9a759.js.map → cross-1377606f.js.map} +1 -1
  332. package/dist/esm/download-14dc1047.js +21 -0
  333. package/dist/esm/{download-0cc3077a.js.map → download-14dc1047.js.map} +1 -1
  334. package/dist/esm/{index-4079bbb5.js → index-ae188432.js} +398 -145
  335. package/dist/esm/index-ae188432.js.map +1 -0
  336. package/dist/esm/index.js +10 -8
  337. package/dist/esm/index.js.map +1 -1
  338. package/dist/esm/link-7e4e9060.js +23 -0
  339. package/dist/esm/{link-ad24c3be.js.map → link-7e4e9060.js.map} +1 -1
  340. package/dist/esm/loader.js +5 -3
  341. package/dist/esm/loader.js.map +1 -1
  342. package/dist/esm/miscellaneous-d4bbc6f2.js +1400 -0
  343. package/dist/esm/miscellaneous-d4bbc6f2.js.map +1 -0
  344. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +481 -480
  345. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
  346. package/dist/esm/peculiar-button-menu_3.entry.js +72 -69
  347. package/dist/esm/peculiar-button-menu_3.entry.js.map +1 -1
  348. package/dist/esm/peculiar-certificate-decoder.entry.js +142 -172
  349. package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -1
  350. package/dist/esm/peculiar-certificate-viewer.entry.js +106 -106
  351. package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -1
  352. package/dist/esm/peculiar-certificates-viewer.entry.js +257 -257
  353. package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -1
  354. package/dist/esm/peculiar-text-hider.entry.js +12 -11
  355. package/dist/esm/peculiar-text-hider.entry.js.map +1 -1
  356. package/dist/esm/peculiar.js +6 -4
  357. package/dist/esm/peculiar.js.map +1 -1
  358. package/dist/esm/pkcs10_certificate_request-3763c2af.js +146 -0
  359. package/dist/esm/pkcs10_certificate_request-3763c2af.js.map +1 -0
  360. package/dist/esm/read_file-bb0b1450.js +110 -0
  361. package/dist/esm/read_file-bb0b1450.js.map +1 -0
  362. package/dist/esm/x509_certificate-47b4c5ee.js +159 -0
  363. package/dist/esm/x509_certificate-47b4c5ee.js.map +1 -0
  364. package/dist/esm/x509_crl-ba76d3ed.js +176 -0
  365. package/dist/esm/x509_crl-ba76d3ed.js.map +1 -0
  366. package/dist/esm-es5/{actions-8d745b2a.js → actions-aebcbc9d.js} +2 -2
  367. package/dist/esm-es5/app-globals-5e9b67e0.js +5 -0
  368. package/dist/esm-es5/app-globals-5e9b67e0.js.map +1 -0
  369. package/dist/esm-es5/{arrow_top-fc298828.js → arrow_top-aee1ee02.js} +2 -2
  370. package/dist/esm-es5/button-a2fabf9a.js +19 -0
  371. package/dist/esm-es5/{certification_request-d5ea5973.js → certification_request-08b4deb8.js} +60 -22
  372. package/dist/esm-es5/certification_request-08b4deb8.js.map +1 -0
  373. package/dist/esm-es5/{cross-9ec9a759.js → cross-1377606f.js} +2 -2
  374. package/dist/esm-es5/{download-0cc3077a.js → download-14dc1047.js} +2 -2
  375. package/dist/esm-es5/index-ae188432.js +6 -0
  376. package/dist/esm-es5/index-ae188432.js.map +1 -0
  377. package/dist/esm-es5/index.js +1 -1
  378. package/dist/esm-es5/{link-ad24c3be.js → link-7e4e9060.js} +3 -3
  379. package/dist/esm-es5/loader.js +2 -2
  380. package/dist/esm-es5/loader.js.map +1 -1
  381. package/dist/esm-es5/{miscellaneous-cdfd8905.js → miscellaneous-d4bbc6f2.js} +51 -51
  382. package/dist/esm-es5/miscellaneous-d4bbc6f2.js.map +1 -0
  383. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js +17 -17
  384. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
  385. package/dist/esm-es5/peculiar-button-menu_3.entry.js +1 -1
  386. package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -1
  387. package/dist/esm-es5/peculiar-certificate-decoder.entry.js +2 -9
  388. package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -1
  389. package/dist/esm-es5/peculiar-certificate-viewer.entry.js +2 -2
  390. package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -1
  391. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +3 -3
  392. package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -1
  393. package/dist/esm-es5/peculiar-text-hider.entry.js +1 -1
  394. package/dist/esm-es5/peculiar-text-hider.entry.js.map +1 -1
  395. package/dist/esm-es5/peculiar.js +2 -2
  396. package/dist/esm-es5/peculiar.js.map +1 -1
  397. package/dist/esm-es5/pkcs10_certificate_request-3763c2af.js +19 -0
  398. package/dist/esm-es5/pkcs10_certificate_request-3763c2af.js.map +1 -0
  399. package/dist/esm-es5/read_file-bb0b1450.js +12 -0
  400. package/dist/esm-es5/read_file-bb0b1450.js.map +1 -0
  401. package/dist/esm-es5/x509_certificate-47b4c5ee.js +12 -0
  402. package/dist/esm-es5/x509_certificate-47b4c5ee.js.map +1 -0
  403. package/dist/esm-es5/x509_crl-ba76d3ed.js +19 -0
  404. package/dist/esm-es5/x509_crl-ba76d3ed.js.map +1 -0
  405. package/dist/peculiar/index.esm.js +1 -1
  406. package/dist/peculiar/{p-a67b8793.system.entry.js → p-0f3787cf.system.entry.js} +10 -10
  407. package/dist/peculiar/p-0f3787cf.system.entry.js.map +1 -0
  408. package/dist/peculiar/p-1818204e.system.js +13 -0
  409. package/dist/peculiar/p-1818204e.system.js.map +1 -0
  410. package/dist/peculiar/p-243244af.system.js +13 -0
  411. package/dist/peculiar/p-25a532a3.js +12 -0
  412. package/dist/peculiar/p-25a532a3.js.map +1 -0
  413. package/dist/peculiar/{p-0fc2e2b4.js → p-27ca6743.js} +2 -2
  414. package/dist/peculiar/p-28b4d316.system.js +5 -0
  415. package/dist/peculiar/p-30e18f2d.system.js +20 -0
  416. package/dist/peculiar/p-30e18f2d.system.js.map +1 -0
  417. package/dist/peculiar/p-31d5da39.js +12 -0
  418. package/dist/peculiar/p-31d5da39.js.map +1 -0
  419. package/dist/peculiar/p-364df80d.system.entry.js +111 -0
  420. package/dist/peculiar/p-364df80d.system.entry.js.map +1 -0
  421. package/dist/peculiar/p-3cb79cd9.js +6 -0
  422. package/dist/peculiar/p-3cb79cd9.js.map +1 -0
  423. package/dist/peculiar/p-4bc5ddbe.js +19 -0
  424. package/dist/peculiar/p-4ee5140c.system.js +19 -0
  425. package/dist/peculiar/p-4ee5140c.system.js.map +1 -0
  426. package/dist/peculiar/p-55303453.system.js +12 -0
  427. package/dist/peculiar/p-55303453.system.js.map +1 -0
  428. package/dist/peculiar/p-5a662d6f.system.js +13 -0
  429. package/dist/peculiar/p-6acca6ea.js +135 -0
  430. package/dist/peculiar/p-6acca6ea.js.map +1 -0
  431. package/dist/peculiar/p-713563fb.entry.js +5 -0
  432. package/dist/peculiar/p-713563fb.entry.js.map +1 -0
  433. package/dist/peculiar/p-78a6b479.js +19 -0
  434. package/dist/peculiar/p-78a6b479.js.map +1 -0
  435. package/dist/peculiar/p-82005297.system.entry.js +5 -0
  436. package/dist/peculiar/p-82005297.system.entry.js.map +1 -0
  437. package/dist/peculiar/p-821bdcdc.system.js +6 -0
  438. package/dist/peculiar/p-821bdcdc.system.js.map +1 -0
  439. package/dist/peculiar/p-82e4faf0.js +19 -0
  440. package/dist/peculiar/p-82e4faf0.js.map +1 -0
  441. package/dist/peculiar/p-8393399a.system.js +5 -0
  442. package/dist/peculiar/p-8393399a.system.js.map +1 -0
  443. package/dist/peculiar/p-84e3e94a.entry.js +110 -0
  444. package/dist/peculiar/p-84e3e94a.entry.js.map +1 -0
  445. package/dist/peculiar/p-8bbee8f4.system.js +13 -0
  446. package/dist/peculiar/p-8db3e1fd.system.entry.js +5 -0
  447. package/dist/peculiar/p-8db3e1fd.system.entry.js.map +1 -0
  448. package/dist/peculiar/p-9712b827.system.js +20 -0
  449. package/dist/peculiar/{p-2fcad8cb.system.js.map → p-9712b827.system.js.map} +1 -1
  450. package/dist/peculiar/{p-370cee20.js → p-99efefea.js} +2 -2
  451. package/dist/peculiar/p-9c8dc738.entry.js +5 -0
  452. package/dist/peculiar/p-9c8dc738.entry.js.map +1 -0
  453. package/dist/peculiar/{p-1ceb0fe3.js → p-a9487007.js} +2 -2
  454. package/dist/peculiar/{p-17e3c47b.js → p-ae91d778.js} +2 -2
  455. package/dist/peculiar/p-afbd1c8e.entry.js +5 -0
  456. package/dist/peculiar/p-afbd1c8e.entry.js.map +1 -0
  457. package/dist/peculiar/{p-67156853.js → p-b0c963b1.js} +26 -26
  458. package/dist/peculiar/p-b0c963b1.js.map +1 -0
  459. package/dist/peculiar/p-b5389885.system.entry.js +5 -0
  460. package/dist/peculiar/p-b5389885.system.entry.js.map +1 -0
  461. package/dist/peculiar/p-c10bfa6a.system.js +369 -0
  462. package/dist/peculiar/p-c10bfa6a.system.js.map +1 -0
  463. package/dist/peculiar/p-c241e4ba.system.js +20 -0
  464. package/dist/peculiar/{p-c99507d4.system.js.map → p-c241e4ba.system.js.map} +1 -1
  465. package/dist/peculiar/p-c2995a63.system.js +5 -0
  466. package/dist/peculiar/p-c2995a63.system.js.map +1 -0
  467. package/dist/peculiar/p-c3fce3f5.entry.js +5 -0
  468. package/dist/peculiar/p-c3fce3f5.entry.js.map +1 -0
  469. package/dist/peculiar/p-dac867e8.js +5 -0
  470. package/dist/peculiar/p-dac867e8.js.map +1 -0
  471. package/dist/peculiar/p-df2c8826.system.js +135 -0
  472. package/dist/peculiar/p-df2c8826.system.js.map +1 -0
  473. package/dist/peculiar/p-e4ad4f13.system.entry.js +5 -0
  474. package/dist/peculiar/p-e4ad4f13.system.entry.js.map +1 -0
  475. package/dist/peculiar/p-e6a6e602.js +12 -0
  476. package/dist/peculiar/p-eea904d7.system.js +27 -0
  477. package/dist/peculiar/{p-ddae2f8e.system.js.map → p-eea904d7.system.js.map} +1 -1
  478. package/dist/peculiar/{p-c35b180c.entry.js → p-f8efbe93.entry.js} +3 -3
  479. package/dist/peculiar/p-f8efbe93.entry.js.map +1 -0
  480. package/dist/peculiar/peculiar.esm.js +1 -1
  481. package/dist/peculiar/peculiar.esm.js.map +1 -1
  482. package/dist/peculiar/peculiar.js +15 -15
  483. package/dist/types/components/attribute-certificate-viewer/attribute-certificate-viewer.d.ts +68 -68
  484. package/dist/types/components/button/button.d.ts +4 -4
  485. package/dist/types/components/button-menu/button-menu.d.ts +7 -7
  486. package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +32 -32
  487. package/dist/types/components/certificate-details-parts/attributes/activity_description_attribute.d.ts +1 -1
  488. package/dist/types/components/certificate-details-parts/attributes/as_string_attribute.d.ts +1 -1
  489. package/dist/types/components/certificate-details-parts/attributes/basic_attribute.d.ts +1 -1
  490. package/dist/types/components/certificate-details-parts/attributes/challenge_password_attribute.d.ts +1 -1
  491. package/dist/types/components/certificate-details-parts/attributes/index.d.ts +1 -1
  492. package/dist/types/components/certificate-details-parts/attributes/insurance_value_attribute.d.ts +1 -1
  493. package/dist/types/components/certificate-details-parts/attributes/name_attribute.d.ts +1 -1
  494. package/dist/types/components/certificate-details-parts/attributes/name_part.d.ts +1 -1
  495. package/dist/types/components/certificate-details-parts/attributes/type_relationship_attribute.d.ts +1 -1
  496. package/dist/types/components/certificate-details-parts/attributes/unstructured_name_attribute.d.ts +1 -1
  497. package/dist/types/components/certificate-details-parts/attributes/valuation_ranking_attribute.d.ts +1 -1
  498. package/dist/types/components/certificate-details-parts/attributes/web_gdpr_attribute.d.ts +1 -1
  499. package/dist/types/components/certificate-details-parts/basic_information.d.ts +8 -8
  500. package/dist/types/components/certificate-details-parts/extensions/archive_rev_info_extension.d.ts +1 -1
  501. package/dist/types/components/certificate-details-parts/extensions/as_string_extension.d.ts +1 -1
  502. package/dist/types/components/certificate-details-parts/extensions/authority_key_identifier_extension.d.ts +1 -1
  503. package/dist/types/components/certificate-details-parts/extensions/basic_constraints_extension.d.ts +1 -1
  504. package/dist/types/components/certificate-details-parts/extensions/basic_extension.d.ts +1 -1
  505. package/dist/types/components/certificate-details-parts/extensions/biometric_syntax_extension.d.ts +1 -1
  506. package/dist/types/components/certificate-details-parts/extensions/ca_version_extension.d.ts +1 -1
  507. package/dist/types/components/certificate-details-parts/extensions/cabforganization_identifier_extension.d.ts +1 -1
  508. package/dist/types/components/certificate-details-parts/extensions/certificate_policies_extension.d.ts +1 -1
  509. package/dist/types/components/certificate-details-parts/extensions/certificate_template_extension.d.ts +1 -1
  510. package/dist/types/components/certificate-details-parts/extensions/certificate_transparency_extension.d.ts +1 -1
  511. package/dist/types/components/certificate-details-parts/extensions/crl_distribution_points_extension.d.ts +1 -1
  512. package/dist/types/components/certificate-details-parts/extensions/crl_number_extension.d.ts +1 -1
  513. package/dist/types/components/certificate-details-parts/extensions/crl_reason_extension.d.ts +1 -1
  514. package/dist/types/components/certificate-details-parts/extensions/enroll_cert_type_extension.d.ts +1 -1
  515. package/dist/types/components/certificate-details-parts/extensions/entrust_version_info_extension.d.ts +1 -1
  516. package/dist/types/components/certificate-details-parts/extensions/extended_key_usage_extension.d.ts +1 -1
  517. package/dist/types/components/certificate-details-parts/extensions/general_name_part.d.ts +1 -1
  518. package/dist/types/components/certificate-details-parts/extensions/index.d.ts +2 -2
  519. package/dist/types/components/certificate-details-parts/extensions/info_access_syntax_extension.d.ts +1 -1
  520. package/dist/types/components/certificate-details-parts/extensions/issuing_distribution_point_extension.d.ts +1 -1
  521. package/dist/types/components/certificate-details-parts/extensions/key_description_extension.d.ts +1 -1
  522. package/dist/types/components/certificate-details-parts/extensions/key_usage_extension.d.ts +1 -1
  523. package/dist/types/components/certificate-details-parts/extensions/lei_extension.d.ts +1 -1
  524. package/dist/types/components/certificate-details-parts/extensions/lei_role_extennsion.d.ts +1 -1
  525. package/dist/types/components/certificate-details-parts/extensions/logotype_extension.d.ts +1 -1
  526. package/dist/types/components/certificate-details-parts/extensions/name_constraints_extension.d.ts +1 -1
  527. package/dist/types/components/certificate-details-parts/extensions/netscape_cert_type_extension.d.ts +1 -1
  528. package/dist/types/components/certificate-details-parts/extensions/netscape_comment_extension.d.ts +1 -1
  529. package/dist/types/components/certificate-details-parts/extensions/policy_constraints_extension.d.ts +1 -1
  530. package/dist/types/components/certificate-details-parts/extensions/policy_mappings_extension.d.ts +1 -1
  531. package/dist/types/components/certificate-details-parts/extensions/private_key_usage_period_extension.d.ts +1 -1
  532. package/dist/types/components/certificate-details-parts/extensions/qc_statements_extension.d.ts +1 -1
  533. package/dist/types/components/certificate-details-parts/extensions/subject_alternative_name_extension.d.ts +1 -1
  534. package/dist/types/components/certificate-details-parts/extensions/subject_directory_attributes_extension.d.ts +1 -1
  535. package/dist/types/components/certificate-details-parts/extensions/subject_key_identifier_extension.d.ts +1 -1
  536. package/dist/types/components/certificate-details-parts/extensions/timestamp_extension.d.ts +1 -1
  537. package/dist/types/components/certificate-details-parts/extensions/tn_auth_list_extension.d.ts +1 -1
  538. package/dist/types/components/certificate-details-parts/holder.d.ts +1 -1
  539. package/dist/types/components/certificate-details-parts/issuer.d.ts +1 -1
  540. package/dist/types/components/certificate-details-parts/issuer_name.d.ts +2 -2
  541. package/dist/types/components/certificate-details-parts/miscellaneous.d.ts +3 -3
  542. package/dist/types/components/certificate-details-parts/public_key.d.ts +1 -1
  543. package/dist/types/components/certificate-details-parts/revoked_certificates.d.ts +1 -1
  544. package/dist/types/components/certificate-details-parts/row.d.ts +7 -7
  545. package/dist/types/components/certificate-details-parts/signature.d.ts +1 -1
  546. package/dist/types/components/certificate-details-parts/subject_name.d.ts +1 -1
  547. package/dist/types/components/certificate-details-parts/thumbprints.d.ts +1 -1
  548. package/dist/types/components/certificate-summary/certificate-summary.d.ts +2 -2
  549. package/dist/types/components/certificate-viewer/certificate-viewer.d.ts +74 -74
  550. package/dist/types/components/certificates-viewer/certificates-viewer.d.ts +75 -75
  551. package/dist/types/components/circular-progress/circular-progress.d.ts +10 -10
  552. package/dist/types/components/crl-viewer/crl-viewer.d.ts +58 -58
  553. package/dist/types/components/csr-viewer/csr-viewer.d.ts +54 -55
  554. package/dist/types/components/highlight-words/highlight-words.d.ts +8 -8
  555. package/dist/types/components/icons/actions.d.ts +1 -1
  556. package/dist/types/components/icons/arrow_bottom.d.ts +1 -1
  557. package/dist/types/components/icons/arrow_top.d.ts +1 -1
  558. package/dist/types/components/icons/cross.d.ts +1 -1
  559. package/dist/types/components/icons/details.d.ts +1 -1
  560. package/dist/types/components/icons/download.d.ts +1 -1
  561. package/dist/types/components/icons/link.d.ts +1 -1
  562. package/dist/types/components/link/link.d.ts +2 -2
  563. package/dist/types/components/text-hider/text-hider.d.ts +2 -2
  564. package/dist/types/components/typography/typography.d.ts +4 -4
  565. package/dist/types/components.d.ts +24 -0
  566. package/dist/types/constants/logs.d.ts +77 -77
  567. package/dist/types/constants/oids.d.ts +2326 -2326
  568. package/dist/types/crypto/asn_data.d.ts +6 -6
  569. package/dist/types/crypto/attribute.d.ts +21 -6
  570. package/dist/types/crypto/extension.d.ts +51 -5
  571. package/dist/types/crypto/extensions/cabforganization_identifier.d.ts +5 -5
  572. package/dist/types/crypto/index.d.ts +2 -2
  573. package/dist/types/crypto/name.d.ts +7 -7
  574. package/dist/types/crypto/pkcs10_certificate_request.d.ts +42 -0
  575. package/dist/types/crypto/provider.d.ts +15 -15
  576. package/dist/types/crypto/x509_attribute_certificate.d.ts +23 -24
  577. package/dist/types/crypto/x509_certificate.d.ts +32 -33
  578. package/dist/types/crypto/x509_crl.d.ts +33 -0
  579. package/dist/types/index.d.ts +2 -0
  580. package/dist/types/stencil-public-runtime.d.ts +29 -0
  581. package/dist/types/utils/download.d.ts +16 -16
  582. package/dist/types/utils/l10n.d.ts +56 -56
  583. package/dist/types/utils/read_file.d.ts +7 -7
  584. package/hydrate/index.d.ts +2 -2
  585. package/hydrate/index.js +11369 -9539
  586. package/package.json +21 -13
  587. package/dist/cjs/actions-19013d4a.js +0 -23
  588. package/dist/cjs/arrow_top-834fb7ec.js +0 -37
  589. package/dist/cjs/button-14e2b73f.js +0 -77
  590. package/dist/cjs/certification_request-5672c667.js.map +0 -1
  591. package/dist/cjs/crl-3f681d44.js +0 -322
  592. package/dist/cjs/crl-3f681d44.js.map +0 -1
  593. package/dist/cjs/cross-9872c473.js +0 -51
  594. package/dist/cjs/download-0fa5b33c.js +0 -476
  595. package/dist/cjs/download-0fa5b33c.js.map +0 -1
  596. package/dist/cjs/download-254ddc57.js +0 -23
  597. package/dist/cjs/index-efd561e9.js.map +0 -1
  598. package/dist/cjs/link-6aea0be4.js +0 -25
  599. package/dist/cjs/miscellaneous-905ec852.js +0 -1416
  600. package/dist/cjs/miscellaneous-905ec852.js.map +0 -1
  601. package/dist/cjs/x509_certificate-69764c52.js +0 -160
  602. package/dist/cjs/x509_certificate-69764c52.js.map +0 -1
  603. package/dist/collection/crypto/crl.js +0 -92
  604. package/dist/collection/crypto/crl.js.map +0 -1
  605. package/dist/collection/crypto/csr.js +0 -99
  606. package/dist/collection/crypto/csr.js.map +0 -1
  607. package/dist/esm/actions-8d745b2a.js +0 -21
  608. package/dist/esm/arrow_top-fc298828.js +0 -34
  609. package/dist/esm/button-35146bdd.js +0 -74
  610. package/dist/esm/certification_request-d5ea5973.js.map +0 -1
  611. package/dist/esm/crl-d13d9ec5.js +0 -318
  612. package/dist/esm/crl-d13d9ec5.js.map +0 -1
  613. package/dist/esm/cross-9ec9a759.js +0 -47
  614. package/dist/esm/download-0cc3077a.js +0 -21
  615. package/dist/esm/download-aacb6eff.js +0 -470
  616. package/dist/esm/download-aacb6eff.js.map +0 -1
  617. package/dist/esm/index-4079bbb5.js.map +0 -1
  618. package/dist/esm/link-ad24c3be.js +0 -23
  619. package/dist/esm/miscellaneous-cdfd8905.js +0 -1399
  620. package/dist/esm/miscellaneous-cdfd8905.js.map +0 -1
  621. package/dist/esm/x509_certificate-a9fcab55.js +0 -158
  622. package/dist/esm/x509_certificate-a9fcab55.js.map +0 -1
  623. package/dist/esm-es5/button-35146bdd.js +0 -19
  624. package/dist/esm-es5/certification_request-d5ea5973.js.map +0 -1
  625. package/dist/esm-es5/crl-d13d9ec5.js +0 -33
  626. package/dist/esm-es5/crl-d13d9ec5.js.map +0 -1
  627. package/dist/esm-es5/download-aacb6eff.js +0 -43
  628. package/dist/esm-es5/download-aacb6eff.js.map +0 -1
  629. package/dist/esm-es5/index-4079bbb5.js +0 -6
  630. package/dist/esm-es5/index-4079bbb5.js.map +0 -1
  631. package/dist/esm-es5/miscellaneous-cdfd8905.js.map +0 -1
  632. package/dist/esm-es5/x509_certificate-a9fcab55.js +0 -12
  633. package/dist/esm-es5/x509_certificate-a9fcab55.js.map +0 -1
  634. package/dist/peculiar/p-0b356bb5.js +0 -6
  635. package/dist/peculiar/p-0b356bb5.js.map +0 -1
  636. package/dist/peculiar/p-14f281b0.system.js +0 -43
  637. package/dist/peculiar/p-14f281b0.system.js.map +0 -1
  638. package/dist/peculiar/p-2fcad8cb.system.js +0 -20
  639. package/dist/peculiar/p-33196289.entry.js +0 -5
  640. package/dist/peculiar/p-33196289.entry.js.map +0 -1
  641. package/dist/peculiar/p-3b395604.system.entry.js +0 -5
  642. package/dist/peculiar/p-3b395604.system.entry.js.map +0 -1
  643. package/dist/peculiar/p-48474b8d.js +0 -12
  644. package/dist/peculiar/p-48474b8d.js.map +0 -1
  645. package/dist/peculiar/p-4a6ceeda.js +0 -97
  646. package/dist/peculiar/p-4a6ceeda.js.map +0 -1
  647. package/dist/peculiar/p-5151cb6f.system.entry.js +0 -5
  648. package/dist/peculiar/p-5151cb6f.system.entry.js.map +0 -1
  649. package/dist/peculiar/p-53784f15.system.entry.js +0 -5
  650. package/dist/peculiar/p-53784f15.system.entry.js.map +0 -1
  651. package/dist/peculiar/p-59e5ac12.js +0 -43
  652. package/dist/peculiar/p-59e5ac12.js.map +0 -1
  653. package/dist/peculiar/p-5aabeba7.system.js +0 -6
  654. package/dist/peculiar/p-5aabeba7.system.js.map +0 -1
  655. package/dist/peculiar/p-5ab007e9.entry.js +0 -5
  656. package/dist/peculiar/p-5ab007e9.entry.js.map +0 -1
  657. package/dist/peculiar/p-609ee9f0.entry.js +0 -5
  658. package/dist/peculiar/p-609ee9f0.entry.js.map +0 -1
  659. package/dist/peculiar/p-67156853.js.map +0 -1
  660. package/dist/peculiar/p-6cb88fd6.system.js +0 -13
  661. package/dist/peculiar/p-6daee4d7.system.js +0 -369
  662. package/dist/peculiar/p-6daee4d7.system.js.map +0 -1
  663. package/dist/peculiar/p-6e48afc4.system.js +0 -34
  664. package/dist/peculiar/p-6e48afc4.system.js.map +0 -1
  665. package/dist/peculiar/p-718982f4.system.entry.js +0 -111
  666. package/dist/peculiar/p-718982f4.system.entry.js.map +0 -1
  667. package/dist/peculiar/p-7f9beaa8.js +0 -19
  668. package/dist/peculiar/p-80832207.system.js +0 -5
  669. package/dist/peculiar/p-80832207.system.js.map +0 -1
  670. package/dist/peculiar/p-8fac1d56.js +0 -33
  671. package/dist/peculiar/p-8fac1d56.js.map +0 -1
  672. package/dist/peculiar/p-94a453d7.js +0 -12
  673. package/dist/peculiar/p-a3eeb94b.system.js +0 -5
  674. package/dist/peculiar/p-a67b8793.system.entry.js.map +0 -1
  675. package/dist/peculiar/p-a720c0a5.system.entry.js +0 -13
  676. package/dist/peculiar/p-a720c0a5.system.entry.js.map +0 -1
  677. package/dist/peculiar/p-a7386b78.entry.js +0 -12
  678. package/dist/peculiar/p-a7386b78.entry.js.map +0 -1
  679. package/dist/peculiar/p-ab7dc738.system.js +0 -13
  680. package/dist/peculiar/p-ab7dc738.system.js.map +0 -1
  681. package/dist/peculiar/p-b313be9e.system.js +0 -13
  682. package/dist/peculiar/p-c35b180c.entry.js.map +0 -1
  683. package/dist/peculiar/p-c99507d4.system.js +0 -20
  684. package/dist/peculiar/p-ddae2f8e.system.js +0 -27
  685. package/dist/peculiar/p-e0f4bda5.system.js +0 -97
  686. package/dist/peculiar/p-e0f4bda5.system.js.map +0 -1
  687. package/dist/peculiar/p-e6a3b4d4.system.js +0 -13
  688. package/dist/peculiar/p-f86279f6.entry.js +0 -110
  689. package/dist/peculiar/p-f86279f6.entry.js.map +0 -1
  690. package/dist/types/crypto/crl.d.ts +0 -34
  691. package/dist/types/crypto/csr.d.ts +0 -41
  692. /package/dist/esm-es5/{actions-8d745b2a.js.map → actions-aebcbc9d.js.map} +0 -0
  693. /package/dist/esm-es5/{arrow_top-fc298828.js.map → arrow_top-aee1ee02.js.map} +0 -0
  694. /package/dist/esm-es5/{button-35146bdd.js.map → button-a2fabf9a.js.map} +0 -0
  695. /package/dist/esm-es5/{cross-9ec9a759.js.map → cross-1377606f.js.map} +0 -0
  696. /package/dist/esm-es5/{download-0cc3077a.js.map → download-14dc1047.js.map} +0 -0
  697. /package/dist/esm-es5/{link-ad24c3be.js.map → link-7e4e9060.js.map} +0 -0
  698. /package/dist/peculiar/{p-6cb88fd6.system.js.map → p-243244af.system.js.map} +0 -0
  699. /package/dist/peculiar/{p-0fc2e2b4.js.map → p-27ca6743.js.map} +0 -0
  700. /package/dist/peculiar/{p-a3eeb94b.system.js.map → p-28b4d316.system.js.map} +0 -0
  701. /package/dist/peculiar/{p-7f9beaa8.js.map → p-4bc5ddbe.js.map} +0 -0
  702. /package/dist/peculiar/{p-b313be9e.system.js.map → p-5a662d6f.system.js.map} +0 -0
  703. /package/dist/peculiar/{p-e6a3b4d4.system.js.map → p-8bbee8f4.system.js.map} +0 -0
  704. /package/dist/peculiar/{p-370cee20.js.map → p-99efefea.js.map} +0 -0
  705. /package/dist/peculiar/{p-1ceb0fe3.js.map → p-a9487007.js.map} +0 -0
  706. /package/dist/peculiar/{p-17e3c47b.js.map → p-ae91d778.js.map} +0 -0
  707. /package/dist/peculiar/{p-94a453d7.js.map → p-e6a6e602.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"certificate-decoder.js","sourceRoot":"","sources":["../../../src/components/certificate-decoder/certificate-decoder.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,KAAK,EACL,IAAI,EACJ,KAAK,GAEN,M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,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CACzC,cAAQ,KAAK,EAAE,OAAO,CAAC,KAAK,IACzB,OAAO,CAAC,KAAK,CACP,CACV,CAAC,CACK,CACL,CACP;QACD,WAAK,KAAK,EAAC,aAAa;UACtB,EAAC,MAAM,IACL,OAAO,EAAE,IAAI,CAAC,iBAAiB,aAGxB;UACT,EAAC,MAAM,IACL,OAAO,EAAE,IAAI,CAAC,gBAAgB,YAGvB,CACL,CACF;MACL,IAAI,CAAC,kBAAkB,YAAY,eAAe,IAAI,CACrD,mCACE,WAAW,EAAE,IAAI,CAAC,kBAAkB,EACpC,KAAK,EAAC,QAAQ,EACd,QAAQ,SACR,CACH;MACA,IAAI,CAAC,kBAAkB,YAAY,wBAAwB,IAAI,CAC9D,6CACE,WAAW,EAAE,IAAI,CAAC,kBAAkB,EACpC,KAAK,EAAC,QAAQ,EACd,QAAQ,SACR,CACH;MACA,IAAI,CAAC,kBAAkB,YAAY,GAAG,IAAI,CACzC,2BACE,WAAW,EAAE,IAAI,CAAC,kBAAkB,EACpC,KAAK,EAAC,QAAQ,EACd,QAAQ,SACR,CACH;MACA,IAAI,CAAC,kBAAkB,YAAY,GAAG,IAAI,CACzC,2BACE,WAAW,EAAE,IAAI,CAAC,kBAAkB,EACpC,KAAK,EAAC,QAAQ,EACd,QAAQ,SACR,CACH,CACI,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Host,\n h,\n State,\n Prop,\n Event,\n EventEmitter,\n} from '@stencil/core';\n\nimport { validator, readAsBinaryString } from '../../utils';\nimport {\n X509Certificate,\n X509AttributeCertificate,\n CSR,\n CRL,\n} from '../../crypto';\nimport { Button } from '../button';\nimport { Typography } from '../typography';\n\n@Component({\n tag: 'peculiar-certificate-decoder',\n styleUrl: 'certificate-decoder.scss',\n shadow: true,\n})\nexport class CertificateDecoder {\n private inputPaste?: HTMLTextAreaElement;\n\n /**\n * The example certificate value for decode and show details. Use PEM or DER.\n */\n @Prop() certificateExamples?: {\n title: string;\n value: string;\n }[];\n\n /**\n * The default certificate value for decode and show details. Use PEM or DER.\n */\n @Prop() defaultCertificate?: string;\n\n @State() certificateDecoded: X509Certificate | X509AttributeCertificate | CSR | CRL;\n\n /**\n * Emitted when the certificate has been successfully parsed.\n */\n @Event() successParse!: EventEmitter<string>;\n\n /**\n * Emitted when the certificate has been removed.\n */\n @Event() clearCertificate!: EventEmitter<void>;\n\n componentDidLoad() {\n if (this.defaultCertificate) {\n /**\n * Prevent Stencil warning about re-render\n */\n setTimeout(() => this.decode(this.defaultCertificate), 100);\n }\n }\n\n private handleClickDecode = () => {\n const { value } = this.inputPaste;\n\n if (value) {\n this.decode(value);\n }\n };\n\n private handleClickClear = () => {\n this.clearValue();\n };\n\n private handleChangeInputFile = async (event: any) => {\n const element = event.target;\n\n if (element.files) {\n const file = await readAsBinaryString(element.files[0]);\n\n if (typeof file.value === 'string') {\n this.decode(file.value);\n }\n\n element.value = '';\n }\n };\n\n private handleChangeExample = (event: any) => {\n if (event.target.value) {\n this.decode(event.target.value);\n } else {\n this.clearValue();\n }\n };\n\n private handleDropFile = async (event: any) => {\n event.stopPropagation();\n event.preventDefault();\n\n const element = event.dataTransfer;\n\n if (element.files) {\n const file = await readAsBinaryString(element.files[0]);\n\n if (typeof file.value === 'string') {\n this.decode(file.value);\n }\n }\n };\n\n clearValue() {\n this.inputPaste.value = '';\n this.certificateDecoded = null;\n this.clearCertificate.emit();\n }\n\n setValue(value: X509Certificate | X509AttributeCertificate | CSR | CRL) {\n this.certificateDecoded = value;\n this.inputPaste.value = value.exportAsPemFormatted();\n this.successParse.emit(value.exportAsBase64());\n }\n\n decode(certificate: string) {\n const isPem = validator.isPem(certificate);\n const isX509Pem = validator.isX509Pem(certificate);\n const isPkcs10Pem = validator.isPkcs10Pem(certificate);\n const isX509AttributePem = validator.isX509AttributePem(certificate);\n const isX509CRLPem = validator.isX509CRLPem(certificate);\n let decoded: X509Certificate | X509AttributeCertificate | CSR | CRL;\n let decodeError: Error;\n\n if (isPem && !(isX509Pem || isX509AttributePem || isPkcs10Pem || isX509CRLPem)) {\n this.clearValue();\n\n alert('Unsupported file type. Please try to use Certificate/AttributeCertificate/CertificateRequest/CRL.');\n\n return;\n }\n\n try {\n if (isX509Pem) {\n decoded = new X509Certificate(certificate);\n }\n\n if (isX509AttributePem) {\n decoded = new X509AttributeCertificate(certificate);\n }\n\n if (isPkcs10Pem) {\n decoded = new CSR(certificate);\n }\n\n if (isX509CRLPem) {\n decoded = new CRL(certificate);\n }\n } catch (error) {\n decodeError = error;\n }\n\n if (!decoded) {\n try {\n decoded = new X509Certificate(certificate);\n } catch (error) {\n decodeError = error;\n }\n }\n\n if (!decoded) {\n try {\n decoded = new X509AttributeCertificate(certificate);\n } catch (error) {\n decodeError = error;\n }\n }\n\n if (!decoded) {\n try {\n decoded = new CSR(certificate);\n } catch (error) {\n decodeError = error;\n }\n }\n\n if (!decoded) {\n try {\n decoded = new CRL(certificate);\n } catch (error) {\n decodeError = error;\n }\n }\n\n if (!decoded) {\n this.clearValue();\n\n console.log(decodeError);\n alert('Error decoding file. Please try to use Certificate/AttributeCertificate/CertificateRequest/CRL.');\n } else {\n this.setValue(decoded);\n }\n }\n\n render() {\n return (\n <Host>\n <textarea\n placeholder=\"Certificate DER or PEM\"\n class=\"textarea t-b2 c-black\"\n ref={(el) => { this.inputPaste = el; }}\n onDrop={this.handleDropFile}\n />\n <div class=\"controls\">\n <div class=\"control_row\">\n <Typography\n variant=\"b3\"\n color=\"secondary-tint-2\"\n >\n Drag or load file:\n </Typography>\n <input\n type=\"file\"\n accept=\"application/pkix-cert,application/x-x509-ca-cert,application/x-x509-user-cert,application/pkcs10,application/pkix-crl,.csr,.req,.crl\"\n onChange={this.handleChangeInputFile}\n value=\"\"\n />\n </div>\n {this.certificateExamples?.length && (\n <div class=\"control_row\">\n <Typography\n variant=\"b3\"\n color=\"secondary-tint-2\"\n >\n Load examples:\n </Typography>\n <select onChange={this.handleChangeExample}>\n <option value=\"\">None</option>\n {this.certificateExamples.map((example) => (\n <option value={example.value}>\n {example.title}\n </option>\n ))}\n </select>\n </div>\n )}\n <div class=\"control_row\">\n <Button\n onClick={this.handleClickDecode}\n >\n Decode\n </Button>\n <Button\n onClick={this.handleClickClear}\n >\n Clear\n </Button>\n </div>\n </div>\n {this.certificateDecoded instanceof X509Certificate && (\n <peculiar-certificate-viewer\n certificate={this.certificateDecoded}\n class=\"viewer\"\n download\n />\n )}\n {this.certificateDecoded instanceof X509AttributeCertificate && (\n <peculiar-attribute-certificate-viewer\n certificate={this.certificateDecoded}\n class=\"viewer\"\n download\n />\n )}\n {this.certificateDecoded instanceof CSR && (\n <peculiar-csr-viewer\n certificate={this.certificateDecoded}\n class=\"viewer\"\n download\n />\n )}\n {this.certificateDecoded instanceof CRL && (\n <peculiar-crl-viewer\n certificate={this.certificateDecoded}\n class=\"viewer\"\n download\n />\n )}\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"certificate-decoder.js","sourceRoot":"","sources":["../../../src/components/certificate-decoder/certificate-decoder.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,KAAK,EACL,IAAI,EACJ,KAAK,GAEN,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,OAAO,GACR,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAA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iar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Host,\n h,\n State,\n Prop,\n Event,\n EventEmitter,\n} from '@stencil/core';\n\nimport { validator, readAsBinaryString } from '../../utils';\nimport {\n X509Certificate,\n X509AttributeCertificate,\n Pkcs10CertificateRequest,\n X509Crl,\n} from '../../crypto';\nimport { Button } from '../button';\nimport { Typography } from '../typography';\n\n@Component({\n tag: 'peculiar-certificate-decoder',\n styleUrl: 'certificate-decoder.scss',\n shadow: true,\n})\nexport class CertificateDecoder {\n private inputPaste?: HTMLTextAreaElement;\n\n /**\n * The example certificate value for decode and show details. Use PEM or DER.\n */\n @Prop() certificateExamples?: {\n title: string;\n value: string;\n }[];\n\n /**\n * The default certificate value for decode and show details. Use PEM or DER.\n */\n @Prop() defaultCertificate?: string;\n\n @State() certificateDecoded: X509Certificate\n | X509AttributeCertificate\n | Pkcs10CertificateRequest\n | X509Crl;\n\n /**\n * Emitted when the certificate has been successfully parsed.\n */\n @Event() successParse!: EventEmitter<string>;\n\n /**\n * Emitted when the certificate has been removed.\n */\n @Event() clearCertificate!: EventEmitter<void>;\n\n componentDidLoad() {\n if (this.defaultCertificate) {\n /**\n * Prevent Stencil warning about re-render\n */\n setTimeout(() => this.decode(this.defaultCertificate), 100);\n }\n }\n\n private handleClickDecode = () => {\n const { value } = this.inputPaste;\n\n if (value) {\n this.decode(value);\n }\n };\n\n private handleClickClear = () => {\n this.clearValue();\n };\n\n private handleChangeInputFile = async (event: any) => {\n const element = event.target;\n\n if (element.files) {\n const file = await readAsBinaryString(element.files[0]);\n\n if (typeof file.value === 'string') {\n this.decode(file.value);\n }\n\n element.value = '';\n }\n };\n\n private handleChangeExample = (event: any) => {\n if (event.target.value) {\n this.decode(event.target.value);\n } else {\n this.clearValue();\n }\n };\n\n private handleDropFile = async (event: any) => {\n event.stopPropagation();\n event.preventDefault();\n\n const element = event.dataTransfer;\n\n if (element.files) {\n const file = await readAsBinaryString(element.files[0]);\n\n if (typeof file.value === 'string') {\n this.decode(file.value);\n }\n }\n };\n\n clearValue() {\n this.inputPaste.value = '';\n this.certificateDecoded = null;\n this.clearCertificate.emit();\n }\n\n setValue(value: X509Certificate | X509AttributeCertificate | Pkcs10CertificateRequest | X509Crl) {\n this.certificateDecoded = value;\n this.inputPaste.value = value.toString('pem');\n this.successParse.emit(value.toString('base64'));\n }\n\n decode(certificate: string) {\n const isPem = validator.isPem(certificate);\n const isX509Pem = validator.isX509Pem(certificate);\n const isPkcs10Pem = validator.isPkcs10Pem(certificate);\n const isX509AttributePem = validator.isX509AttributePem(certificate);\n const isX509CRLPem = validator.isX509CRLPem(certificate);\n let decoded: X509Certificate | X509AttributeCertificate | Pkcs10CertificateRequest | X509Crl;\n let decodeError: Error;\n\n if (isPem && !(isX509Pem || isX509AttributePem || isPkcs10Pem || isX509CRLPem)) {\n this.clearValue();\n\n alert('Unsupported file type. Please try to use Certificate/AttributeCertificate/CertificateRequest/CRL.');\n\n return;\n }\n\n try {\n if (isX509Pem) {\n decoded = new X509Certificate(certificate);\n }\n\n if (isX509AttributePem) {\n decoded = new X509AttributeCertificate(certificate);\n }\n\n if (isPkcs10Pem) {\n decoded = new Pkcs10CertificateRequest(certificate);\n }\n\n if (isX509CRLPem) {\n decoded = new X509Crl(certificate);\n }\n } catch (error) {\n decodeError = error;\n }\n\n if (!decoded) {\n try {\n decoded = new X509Certificate(certificate);\n } catch (error) {\n decodeError = error;\n }\n }\n\n if (!decoded) {\n try {\n decoded = new X509AttributeCertificate(certificate);\n } catch (error) {\n decodeError = error;\n }\n }\n\n if (!decoded) {\n try {\n decoded = new Pkcs10CertificateRequest(certificate);\n } catch (error) {\n decodeError = error;\n }\n }\n\n if (!decoded) {\n try {\n decoded = new X509Crl(certificate);\n } catch (error) {\n decodeError = error;\n }\n }\n\n if (!decoded) {\n this.clearValue();\n\n console.log(decodeError);\n alert('Error decoding file. Please try to use Certificate/AttributeCertificate/CertificateRequest/CRL.');\n } else {\n this.setValue(decoded);\n }\n }\n\n render() {\n return (\n <Host>\n <textarea\n placeholder=\"Certificate DER or PEM\"\n class=\"textarea t-b2 c-black\"\n ref={(el) => { this.inputPaste = el; }}\n onDrop={this.handleDropFile}\n />\n <div class=\"controls\">\n <div class=\"control_row\">\n <Typography\n variant=\"b3\"\n color=\"secondary-tint-2\"\n >\n Drag or load file:\n </Typography>\n <input\n type=\"file\"\n accept=\"application/pkix-cert,application/x-x509-ca-cert,application/x-x509-user-cert,application/pkcs10,application/pkix-crl,.csr,.req,.crl\"\n onChange={this.handleChangeInputFile}\n value=\"\"\n />\n </div>\n {this.certificateExamples?.length && (\n <div class=\"control_row\">\n <Typography\n variant=\"b3\"\n color=\"secondary-tint-2\"\n >\n Load examples:\n </Typography>\n <select onChange={this.handleChangeExample}>\n <option value=\"\">None</option>\n {this.certificateExamples.map((example) => (\n <option value={example.value}>\n {example.title}\n </option>\n ))}\n </select>\n </div>\n )}\n <div class=\"control_row\">\n <Button\n onClick={this.handleClickDecode}\n >\n Decode\n </Button>\n <Button\n onClick={this.handleClickClear}\n >\n Clear\n </Button>\n </div>\n </div>\n {this.certificateDecoded instanceof X509Certificate && (\n <peculiar-certificate-viewer\n certificate={this.certificateDecoded}\n class=\"viewer\"\n download\n />\n )}\n {this.certificateDecoded instanceof X509AttributeCertificate && (\n <peculiar-attribute-certificate-viewer\n certificate={this.certificateDecoded}\n class=\"viewer\"\n download\n />\n )}\n {this.certificateDecoded instanceof Pkcs10CertificateRequest && (\n <peculiar-csr-viewer\n certificate={this.certificateDecoded}\n class=\"viewer\"\n download\n />\n )}\n {this.certificateDecoded instanceof X509Crl && (\n <peculiar-crl-viewer\n certificate={this.certificateDecoded}\n class=\"viewer\"\n download\n />\n )}\n </Host>\n );\n }\n}\n"]}
@@ -9,11 +9,12 @@
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  */
11
11
  import { h } from "@stencil/core";
12
+ import { camelCaseToWords } from "../../../utils";
12
13
  import { GeneralNamePart } from "../extensions/general_name_part";
13
- import { RowValue } from "../row";
14
+ import { RowValue, TableRowTable } from "../row";
14
15
  import { BasicAttribute } from "./basic_attribute";
15
16
  export const ActivityDescriptionAttribute = (props) => {
16
- const { attribute } = props;
17
- return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Code Authority", value: "" }), h(GeneralNamePart, { generalName: attribute.value.codeAuthority, getDNSNameLink: () => '', getIPAddressLink: () => '' }), h(RowValue, { name: "Code Id", value: "" }), h(GeneralNamePart, { generalName: attribute.value.codeId, getDNSNameLink: () => '', getIPAddressLink: () => '' }), h(RowValue, { name: "Short Name", value: attribute.value.shortName }), h(RowValue, { name: "Short Description", value: attribute.value.shortDescription })));
17
+ const { attribute } = props;
18
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: camelCaseToWords('codeAuthority'), value: "" }), h(TableRowTable, null, h(GeneralNamePart, { generalName: attribute.value.codeAuthority, getDNSNameLink: () => '', getIPAddressLink: () => '' })), h(RowValue, { name: camelCaseToWords('codeId'), value: "" }), h(TableRowTable, null, h(GeneralNamePart, { generalName: attribute.value.codeId, getDNSNameLink: () => '', getIPAddressLink: () => '' })), h(RowValue, { name: camelCaseToWords('shortName'), value: attribute.value.shortName }), h(RowValue, { name: camelCaseToWords('shortDescription'), value: attribute.value.shortDescription })));
18
19
  };
19
20
  //# sourceMappingURL=activity_description_attribute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"activity_description_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/activity_description_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,4BAA4B,GACiB,CAAC,KAAK,EAAE,EAAE;EAClE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;IAEpB,EAAC,QAAQ,IACP,IAAI,EAAC,gBAAgB,EACrB,KAAK,EAAC,EAAE,GACR;IACF,EAAC,eAAe,IACd,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC,aAAa,EAC1C,cAAc,EAAE,GAAG,EAAE,CAAC,EAAE,EACxB,gBAAgB,EAAE,GAAG,EAAE,CAAC,EAAE,GAC1B;IAEF,EAAC,QAAQ,IACP,IAAI,EAAC,SAAS,EACd,KAAK,EAAC,EAAE,GACR;IACF,EAAC,eAAe,IACd,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC,MAAM,EACnC,cAAc,EAAE,GAAG,EAAE,CAAC,EAAE,EACxB,gBAAgB,EAAE,GAAG,EAAE,CAAC,EAAE,GAC1B;IAEF,EAAC,QAAQ,IACP,IAAI,EAAC,YAAY,EACjB,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,SAAS,GAChC;IACF,EAAC,QAAQ,IACP,IAAI,EAAC,mBAAmB,EACxB,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,gBAAgB,GACvC,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ActivityDescription } from '@peculiar/asn1-ntqwac';\n\nimport { Attribute } from '../../../crypto/attribute';\nimport { GeneralNamePart } from '../extensions/general_name_part';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IActivityDescriptionAttributeProps {\n attribute: Attribute<ActivityDescription>;\n}\n\nexport const ActivityDescriptionAttribute:\nFunctionalComponent<IActivityDescriptionAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Code Authority\"\n value=\"\"\n />\n <GeneralNamePart\n generalName={attribute.value.codeAuthority}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n\n <RowValue\n name=\"Code Id\"\n value=\"\"\n />\n <GeneralNamePart\n generalName={attribute.value.codeId}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n\n <RowValue\n name=\"Short Name\"\n value={attribute.value.shortName}\n />\n <RowValue\n name=\"Short Description\"\n value={attribute.value.shortDescription}\n />\n </BasicAttribute>\n );\n};\n"]}
1
+ {"version":3,"file":"activity_description_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/activity_description_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,4BAA4B,GACiB,CAAC,KAAK,EAAE,EAAE;IAClE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;QAEpB,EAAC,QAAQ,IACP,IAAI,EAAE,gBAAgB,CAAC,eAAe,CAAC,EACvC,KAAK,EAAC,EAAE,GACR;QACF,EAAC,aAAa;YACZ,EAAC,eAAe,IACd,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC,aAAa,EAC1C,cAAc,EAAE,GAAG,EAAE,CAAC,EAAE,EACxB,gBAAgB,EAAE,GAAG,EAAE,CAAC,EAAE,GAC1B,CACY;QAEhB,EAAC,QAAQ,IACP,IAAI,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAChC,KAAK,EAAC,EAAE,GACR;QACF,EAAC,aAAa;YACZ,EAAC,eAAe,IACd,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC,MAAM,EACnC,cAAc,EAAE,GAAG,EAAE,CAAC,EAAE,EACxB,gBAAgB,EAAE,GAAG,EAAE,CAAC,EAAE,GAC1B,CACY;QAEhB,EAAC,QAAQ,IACP,IAAI,EAAE,gBAAgB,CAAC,WAAW,CAAC,EACnC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,SAAS,GAChC;QACF,EAAC,QAAQ,IACP,IAAI,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,EAC1C,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,gBAAgB,GACvC,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ActivityDescription } from '@peculiar/asn1-ntqwac';\n\nimport { Attribute } from '../../../crypto/attribute';\nimport { camelCaseToWords } from '../../../utils';\nimport { GeneralNamePart } from '../extensions/general_name_part';\nimport { RowValue, TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IActivityDescriptionAttributeProps {\n attribute: Attribute<ActivityDescription>;\n}\n\nexport const ActivityDescriptionAttribute:\nFunctionalComponent<IActivityDescriptionAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name={camelCaseToWords('codeAuthority')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.codeAuthority}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('codeId')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.codeId}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('shortName')}\n value={attribute.value.shortName}\n />\n <RowValue\n name={camelCaseToWords('shortDescription')}\n value={attribute.value.shortDescription}\n />\n </BasicAttribute>\n );\n};\n"]}
@@ -12,7 +12,7 @@ import { h } from "@stencil/core";
12
12
  import { RowValue } from "../row";
13
13
  import { BasicAttribute } from "./basic_attribute";
14
14
  export const AsStringAttribute = (props) => {
15
- const { attribute } = props;
16
- return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: attribute.value, monospace: true })));
15
+ const { attribute } = props;
16
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: attribute.value, monospace: true })));
17
17
  };
18
18
  //# sourceMappingURL=as_string_attribute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"as_string_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/as_string_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,iBAAiB,GACiB,CAAC,KAAK,EAAE,EAAE;EACvD,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;IAEpB,EAAC,QAAQ,IACP,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,SAAS,SACT,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IAsStringAttributeProps {\n attribute: Attribute<string>;\n}\n\nexport const AsStringAttribute:\nFunctionalComponent<IAsStringAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value}\n monospace\n />\n </BasicAttribute>\n );\n};\n"]}
1
+ {"version":3,"file":"as_string_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/as_string_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,iBAAiB,GACiB,CAAC,KAAK,EAAE,EAAE;IACvD,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;QAEpB,EAAC,QAAQ,IACP,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,SAAS,SACT,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IAsStringAttributeProps {\n attribute: Attribute<string>;\n}\n\nexport const AsStringAttribute:\nFunctionalComponent<IAsStringAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value}\n monospace\n />\n </BasicAttribute>\n );\n};\n"]}
@@ -12,11 +12,11 @@ import { h } from "@stencil/core";
12
12
  import { getStringByOID } from "../../../utils";
13
13
  import { RowValue } from "../row";
14
14
  export const BasicAttribute = (props, children) => {
15
- const { attribute } = props;
16
- return ([
17
- h(RowValue, { name: "Name", value: getStringByOID(attribute.asn.type) }),
18
- children,
19
- h("tr", null, h("td", { colSpan: 2, class: "divider" }, h("span", null))),
20
- ]);
15
+ const { attribute } = props;
16
+ return ([
17
+ h(RowValue, { name: "Name", value: getStringByOID(attribute.asn.type) }),
18
+ children,
19
+ h("tr", null, h("td", { colSpan: 2, class: "divider" }, h("span", null))),
20
+ ]);
21
21
  };
22
22
  //# sourceMappingURL=basic_attribute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"basic_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/basic_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAMlC,MAAM,CAAC,MAAM,cAAc,GAA8C,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;EAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAE5B,OAAO,CAAC;IACN,EAAC,QAAQ,IACP,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,GACzC;IACF,QAAQ;IACR;MACE,UAAI,OAAO,EAAE,CAAC,EAAE,KAAK,EAAC,SAAS;QAC7B,eAAQ,CACL,CACF;GACN,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\n\nimport type { Attribute, TAttributeValue } from '../../../crypto/attribute';\nimport { getStringByOID } from '../../../utils';\nimport { RowValue } from '../row';\n\ninterface IBasicAttributeProps {\n attribute: Attribute<TAttributeValue>;\n}\n\nexport const BasicAttribute: FunctionalComponent<IBasicAttributeProps> = (props, children) => {\n const { attribute } = props;\n\n return ([\n <RowValue\n name=\"Name\"\n value={getStringByOID(attribute.asn.type)}\n />,\n children,\n <tr>\n <td colSpan={2} class=\"divider\">\n <span />\n </td>\n </tr>,\n ]);\n};\n"]}
1
+ {"version":3,"file":"basic_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/basic_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAMlC,MAAM,CAAC,MAAM,cAAc,GAA8C,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE5B,OAAO,CAAC;QACN,EAAC,QAAQ,IACP,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,GACzC;QACF,QAAQ;QACR;YACE,UAAI,OAAO,EAAE,CAAC,EAAE,KAAK,EAAC,SAAS;gBAC7B,eAAQ,CACL,CACF;KACN,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\n\nimport type { Attribute, TAttributeValue } from '../../../crypto/attribute';\nimport { getStringByOID } from '../../../utils';\nimport { RowValue } from '../row';\n\ninterface IBasicAttributeProps {\n attribute: Attribute<TAttributeValue>;\n}\n\nexport const BasicAttribute: FunctionalComponent<IBasicAttributeProps> = (props, children) => {\n const { attribute } = props;\n\n return ([\n <RowValue\n name=\"Name\"\n value={getStringByOID(attribute.asn.type)}\n />,\n children,\n <tr>\n <td colSpan={2} class=\"divider\">\n <span />\n </td>\n </tr>,\n ]);\n};\n"]}
@@ -12,7 +12,7 @@ import { h } from "@stencil/core";
12
12
  import { RowValue } from "../row";
13
13
  import { BasicAttribute } from "./basic_attribute";
14
14
  export const ChallengePasswordAttribute = (props) => {
15
- const { attribute } = props;
16
- return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: attribute.value.toString() })));
15
+ const { attribute } = props;
16
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: attribute.value.toString() })));
17
17
  };
18
18
  //# sourceMappingURL=challenge_password_attribute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"challenge_password_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/challenge_password_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,0BAA0B,GACiB,CAAC,KAAK,EAAE,EAAE;EAChE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;IAEpB,EAAC,QAAQ,IACP,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,QAAQ,EAAE,GACjC,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ChallengePassword } from '@peculiar/asn1-pkcs9';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IChallengePasswordAttributeProps {\n attribute: Attribute<ChallengePassword>;\n}\n\nexport const ChallengePasswordAttribute:\nFunctionalComponent<IChallengePasswordAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value.toString()}\n />\n </BasicAttribute>\n );\n};\n"]}
1
+ {"version":3,"file":"challenge_password_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/challenge_password_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,0BAA0B,GACiB,CAAC,KAAK,EAAE,EAAE;IAChE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;QAEpB,EAAC,QAAQ,IACP,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,QAAQ,EAAE,GACjC,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ChallengePassword } from '@peculiar/asn1-pkcs9';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IChallengePasswordAttributeProps {\n attribute: Attribute<ChallengePassword>;\n}\n\nexport const ChallengePasswordAttribute:\nFunctionalComponent<IChallengePasswordAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value.toString()}\n />\n </BasicAttribute>\n );\n};\n"]}
@@ -24,48 +24,48 @@ import { AsStringAttribute } from "./as_string_attribute";
24
24
  import { UnstructuredNameAttribute } from "./unstructured_name_attribute";
25
25
  import { ChallengePasswordAttribute } from "./challenge_password_attribute";
26
26
  export const Attributes = (props) => {
27
- const { attributes } = props;
28
- if (!attributes || !attributes.length) {
29
- return null;
30
- }
31
- return ([
32
- h(RowTitle, { value: "Attributes" }),
33
- attributes.map((attribute) => {
34
- try {
35
- if (attribute.value instanceof Name) {
36
- return (h(NameAttribute, { attribute: attribute }));
37
- }
38
- if (attribute.value instanceof ActivityDescription) {
39
- return (h(ActivityDescriptionAttribute, { attribute: attribute }));
40
- }
41
- if (attribute.value instanceof WebGDPR) {
42
- return (h(WebGdprAttribute, { attribute: attribute }));
43
- }
44
- if (attribute.value instanceof InsuranceValue) {
45
- return (h(InsuranceValueAttribute, { attribute: attribute }));
46
- }
47
- if (attribute.value instanceof TypeRelationship) {
48
- return (h(TypeRelationshipAttribute, { attribute: attribute }));
49
- }
50
- if (attribute.value instanceof ValuationRanking) {
51
- return (h(ValuationRankingAttribute, { attribute: attribute }));
52
- }
53
- if (attribute.value instanceof UnstructuredName) {
54
- return (h(UnstructuredNameAttribute, { attribute: attribute }));
55
- }
56
- if (attribute.value instanceof ChallengePassword) {
57
- return (h(ChallengePasswordAttribute, { attribute: attribute }));
58
- }
59
- if (typeof attribute.value === 'string') {
60
- return (h(AsStringAttribute, { attribute: attribute }));
61
- }
62
- return (h(BasicAttribute, { attribute: attribute }));
63
- }
64
- catch (error) {
65
- console.error('Error render attribute:', attribute.asn.type);
27
+ const { attributes } = props;
28
+ if (!attributes || !attributes.length) {
66
29
  return null;
67
- }
68
- }),
69
- ]);
30
+ }
31
+ return ([
32
+ h(RowTitle, { value: "Attributes" }),
33
+ attributes.map((attribute) => {
34
+ try {
35
+ if (attribute.value instanceof Name) {
36
+ return (h(NameAttribute, { attribute: attribute }));
37
+ }
38
+ if (attribute.value instanceof ActivityDescription) {
39
+ return (h(ActivityDescriptionAttribute, { attribute: attribute }));
40
+ }
41
+ if (attribute.value instanceof WebGDPR) {
42
+ return (h(WebGdprAttribute, { attribute: attribute }));
43
+ }
44
+ if (attribute.value instanceof InsuranceValue) {
45
+ return (h(InsuranceValueAttribute, { attribute: attribute }));
46
+ }
47
+ if (attribute.value instanceof TypeRelationship) {
48
+ return (h(TypeRelationshipAttribute, { attribute: attribute }));
49
+ }
50
+ if (attribute.value instanceof ValuationRanking) {
51
+ return (h(ValuationRankingAttribute, { attribute: attribute }));
52
+ }
53
+ if (attribute.value instanceof UnstructuredName) {
54
+ return (h(UnstructuredNameAttribute, { attribute: attribute }));
55
+ }
56
+ if (attribute.value instanceof ChallengePassword) {
57
+ return (h(ChallengePasswordAttribute, { attribute: attribute }));
58
+ }
59
+ if (typeof attribute.value === 'string') {
60
+ return (h(AsStringAttribute, { attribute: attribute }));
61
+ }
62
+ return (h(BasicAttribute, { attribute: attribute }));
63
+ }
64
+ catch (error) {
65
+ console.error('Error render attribute:', attribute.asn.type);
66
+ return null;
67
+ }
68
+ }),
69
+ ]);
70
70
  };
71
71
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/index.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,OAAO,EACP,cAAc,EACd,gB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peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { Name } from '@peculiar/asn1-x509';\nimport {\n TypeRelationship,\n ActivityDescription,\n WebGDPR,\n InsuranceValue,\n ValuationRanking,\n} from '@peculiar/asn1-ntqwac';\nimport {\n UnstructuredName,\n ChallengePassword,\n} from '@peculiar/asn1-pkcs9';\n\nimport type { Attribute, TAttributeValue } from '../../../crypto/attribute';\nimport { RowTitle } from '../row';\nimport { NameAttribute } from './name_attribute';\nimport { ActivityDescriptionAttribute } from './activity_description_attribute';\nimport { WebGdprAttribute } from './web_gdpr_attribute';\nimport { InsuranceValueAttribute } from './insurance_value_attribute';\nimport { TypeRelationshipAttribute } from './type_relationship_attribute';\nimport { ValuationRankingAttribute } from './valuation_ranking_attribute';\nimport { BasicAttribute } from './basic_attribute';\nimport { AsStringAttribute } from './as_string_attribute';\nimport { UnstructuredNameAttribute } from './unstructured_name_attribute';\nimport { ChallengePasswordAttribute } from './challenge_password_attribute';\n\ninterface IAttributesPtops extends\n IGeneralNameOptions,\n ILeiOptions,\n IAuthorityKeyIdentifierOptions,\n ISubjectKeyIdentifierOptions {\n attributes: Attribute<TAttributeValue>[];\n}\n\nexport const Attributes: FunctionalComponent<IAttributesPtops> = (props) => {\n const { attributes } = props;\n\n if (!attributes || !attributes.length) {\n return null;\n }\n\n return ([\n <RowTitle\n value=\"Attributes\"\n />,\n attributes.map((attribute) => {\n try {\n if (attribute.value instanceof Name) {\n return (\n <NameAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof ActivityDescription) {\n return (\n <ActivityDescriptionAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof WebGDPR) {\n return (\n <WebGdprAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof InsuranceValue) {\n return (\n <InsuranceValueAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof TypeRelationship) {\n return (\n <TypeRelationshipAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof ValuationRanking) {\n return (\n <ValuationRankingAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof UnstructuredName) {\n return (\n <UnstructuredNameAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof ChallengePassword) {\n return (\n <ChallengePasswordAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (typeof attribute.value === 'string') {\n return (\n <AsStringAttribute\n attribute={attribute as any}\n />\n );\n }\n\n return (\n <BasicAttribute\n attribute={attribute}\n />\n );\n } catch (error) {\n console.error('Error render attribute:', attribute.asn.type);\n\n return null;\n }\n }),\n ]);\n};\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/index.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,OAAO,EACP,cAAc,EACd,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO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AAgB,GAC3B,CACH,CAAC;gBACJ,CAAC;gBAED,IAAI,SAAS,CAAC,KAAK,YAAY,gBAAgB,EAAE,CAAC;oBAChD,OAAO,CACL,EAAC,yBAAyB,IACxB,SAAS,EAAE,SAAgB,GAC3B,CACH,CAAC;gBACJ,CAAC;gBAED,IAAI,SAAS,CAAC,KAAK,YAAY,gBAAgB,EAAE,CAAC;oBAChD,OAAO,CACL,EAAC,yBAAyB,IACxB,SAAS,EAAE,SAAgB,GAC3B,CACH,CAAC;gBACJ,CAAC;gBAED,IAAI,SAAS,CAAC,KAAK,YAAY,iBAAiB,EAAE,CAAC;oBACjD,OAAO,CACL,EAAC,0BAA0B,IACzB,SAAS,EAAE,SAAgB,GAC3B,CACH,CAAC;gBACJ,CAAC;gBAED,IAAI,OAAO,SAAS,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;oBACxC,OAAO,CACL,EAAC,iBAAiB,IAChB,SAAS,EAAE,SAAgB,GAC3B,CACH,CAAC;gBACJ,CAAC;gBAED,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS,GACpB,CACH,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAE7D,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { Name } from '@peculiar/asn1-x509';\nimport {\n TypeRelationship,\n ActivityDescription,\n WebGDPR,\n InsuranceValue,\n ValuationRanking,\n} from '@peculiar/asn1-ntqwac';\nimport {\n UnstructuredName,\n ChallengePassword,\n} from '@peculiar/asn1-pkcs9';\n\nimport type { Attribute, TAttributeValue } from '../../../crypto/attribute';\nimport { RowTitle } from '../row';\nimport { NameAttribute } from './name_attribute';\nimport { ActivityDescriptionAttribute } from './activity_description_attribute';\nimport { WebGdprAttribute } from './web_gdpr_attribute';\nimport { InsuranceValueAttribute } from './insurance_value_attribute';\nimport { TypeRelationshipAttribute } from './type_relationship_attribute';\nimport { ValuationRankingAttribute } from './valuation_ranking_attribute';\nimport { BasicAttribute } from './basic_attribute';\nimport { AsStringAttribute } from './as_string_attribute';\nimport { UnstructuredNameAttribute } from './unstructured_name_attribute';\nimport { ChallengePasswordAttribute } from './challenge_password_attribute';\n\ninterface IAttributesPtops extends\n IGeneralNameOptions,\n ILeiOptions,\n IAuthorityKeyIdentifierOptions,\n ISubjectKeyIdentifierOptions {\n attributes: Attribute<TAttributeValue>[];\n}\n\nexport const Attributes: FunctionalComponent<IAttributesPtops> = (props) => {\n const { attributes } = props;\n\n if (!attributes || !attributes.length) {\n return null;\n }\n\n return ([\n <RowTitle\n value=\"Attributes\"\n />,\n attributes.map((attribute) => {\n try {\n if (attribute.value instanceof Name) {\n return (\n <NameAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof ActivityDescription) {\n return (\n <ActivityDescriptionAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof WebGDPR) {\n return (\n <WebGdprAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof InsuranceValue) {\n return (\n <InsuranceValueAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof TypeRelationship) {\n return (\n <TypeRelationshipAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof ValuationRanking) {\n return (\n <ValuationRankingAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof UnstructuredName) {\n return (\n <UnstructuredNameAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof ChallengePassword) {\n return (\n <ChallengePasswordAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (typeof attribute.value === 'string') {\n return (\n <AsStringAttribute\n attribute={attribute as any}\n />\n );\n }\n\n return (\n <BasicAttribute\n attribute={attribute}\n />\n );\n } catch (error) {\n console.error('Error render attribute:', attribute.asn.type);\n\n return null;\n }\n }),\n ]);\n};\n"]}
@@ -12,8 +12,8 @@ import { h } from "@stencil/core";
12
12
  import { RowValue } from "../row";
13
13
  import { BasicAttribute } from "./basic_attribute";
14
14
  export const InsuranceValueAttribute = (props) => {
15
- const { attribute } = props;
16
- const value = `${attribute.value.base} * 10^${attribute.value.degree} ${attribute.value.location}`;
17
- return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: value })));
15
+ const { attribute } = props;
16
+ const value = `${attribute.value.base} * 10^${attribute.value.degree} ${attribute.value.location}`;
17
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: value })));
18
18
  };
19
19
  //# sourceMappingURL=insurance_value_attribute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"insurance_value_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/insurance_value_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,uBAAuB,GACiB,CAAC,KAAK,EAAE,EAAE;EAC7D,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAC5B,MAAM,KAAK,GAAG,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,SAAS,SAAS,CAAC,KAAK,CAAC,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;EAEnG,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;IAEpB,EAAC,QAAQ,IACP,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,KAAK,GACZ,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { InsuranceValue } from '@peculiar/asn1-ntqwac';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IInsuranceValueAttributeProps {\n attribute: Attribute<InsuranceValue>;\n}\n\nexport const InsuranceValueAttribute:\nFunctionalComponent<IInsuranceValueAttributeProps> = (props) => {\n const { attribute } = props;\n const value = `${attribute.value.base} * 10^${attribute.value.degree} ${attribute.value.location}`;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={value}\n />\n </BasicAttribute>\n );\n};\n"]}
1
+ {"version":3,"file":"insurance_value_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/insurance_value_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,uBAAuB,GACiB,CAAC,KAAK,EAAE,EAAE;IAC7D,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAC5B,MAAM,KAAK,GAAG,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,SAAS,SAAS,CAAC,KAAK,CAAC,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IAEnG,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;QAEpB,EAAC,QAAQ,IACP,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,KAAK,GACZ,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { InsuranceValue } from '@peculiar/asn1-ntqwac';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IInsuranceValueAttributeProps {\n attribute: Attribute<InsuranceValue>;\n}\n\nexport const InsuranceValueAttribute:\nFunctionalComponent<IInsuranceValueAttributeProps> = (props) => {\n const { attribute } = props;\n const value = `${attribute.value.base} * 10^${attribute.value.degree} ${attribute.value.location}`;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={value}\n />\n </BasicAttribute>\n );\n};\n"]}
@@ -12,7 +12,7 @@ import { h } from "@stencil/core";
12
12
  import { BasicAttribute } from "./basic_attribute";
13
13
  import { NamePart } from "./name_part";
14
14
  export const NameAttribute = (props) => {
15
- const { attribute } = props;
16
- return (h(BasicAttribute, { attribute: attribute }, h(NamePart, { name: attribute.value })));
15
+ const { attribute } = props;
16
+ return (h(BasicAttribute, { attribute: attribute }, h(NamePart, { name: attribute.value })));
17
17
  };
18
18
  //# sourceMappingURL=name_attribute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"name_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/name_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAMvC,MAAM,CAAC,MAAM,aAAa,GACiB,CAAC,KAAK,EAAE,EAAE;EACnD,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;IAEpB,EAAC,QAAQ,IACP,IAAI,EAAE,SAAS,CAAC,KAAK,GACrB,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { Name } from '@peculiar/asn1-x509';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { BasicAttribute } from './basic_attribute';\nimport { NamePart } from './name_part';\n\ninterface INameAttributeProps {\n attribute: Attribute<Name>;\n}\n\nexport const NameAttribute:\nFunctionalComponent<INameAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <NamePart\n name={attribute.value}\n />\n </BasicAttribute>\n );\n};\n"]}
1
+ {"version":3,"file":"name_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/name_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAMvC,MAAM,CAAC,MAAM,aAAa,GACiB,CAAC,KAAK,EAAE,EAAE;IACnD,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;QAEpB,EAAC,QAAQ,IACP,IAAI,EAAE,SAAS,CAAC,KAAK,GACrB,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { Name } from '@peculiar/asn1-x509';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { BasicAttribute } from './basic_attribute';\nimport { NamePart } from './name_part';\n\ninterface INameAttributeProps {\n attribute: Attribute<Name>;\n}\n\nexport const NameAttribute:\nFunctionalComponent<INameAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <NamePart\n name={attribute.value}\n />\n </BasicAttribute>\n );\n};\n"]}
@@ -12,10 +12,10 @@ import { h } from "@stencil/core";
12
12
  import { OIDs } from "../../../constants/oids";
13
13
  import { RowValue } from "../row";
14
14
  export const NamePart = (props) => {
15
- const { name } = props;
16
- if (!name) {
17
- return null;
18
- }
19
- return name.map((relativeDistinguishedName) => (relativeDistinguishedName.map((attributeTypeAndValue) => (h(RowValue, { name: OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type, value: attributeTypeAndValue.value.toString() })))));
15
+ const { name } = props;
16
+ if (!name) {
17
+ return null;
18
+ }
19
+ return name.map((relativeDistinguishedName) => (relativeDistinguishedName.map((attributeTypeAndValue) => (h(RowValue, { name: OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type, value: attributeTypeAndValue.value.toString() })))));
20
20
  };
21
21
  //# sourceMappingURL=name_part.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"name_part.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/name_part.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAMlC,MAAM,CAAC,MAAM,QAAQ,GAAwC,CAAC,KAAK,EAAS,EAAE;EAC5E,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;EAEvB,IAAI,CAAC,IAAI,EAAE;IACT,OAAO,IAAI,CAAC;GACb;EAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,yBAAyB,EAAE,EAAE,CAAC,CAC7C,yBAAyB,CAAC,GAAG,CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,CACvD,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,IAAI,EACpE,KAAK,EAAE,qBAAqB,CAAC,KAAK,CAAC,QAAQ,EAAE,GAC7C,CACH,CAAC,CACH,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { Name } from '@peculiar/asn1-x509';\n\nimport { OIDs } from '../../../constants/oids';\nimport { RowValue } from '../row';\n\ninterface INamePartProps {\n name: Name;\n}\n\nexport const NamePart: FunctionalComponent<INamePartProps> = (props): any[] => {\n const { name } = props;\n\n if (!name) {\n return null;\n }\n\n return name.map((relativeDistinguishedName) => (\n relativeDistinguishedName.map((attributeTypeAndValue) => (\n <RowValue\n name={OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type}\n value={attributeTypeAndValue.value.toString()}\n />\n ))\n ));\n};\n"]}
1
+ {"version":3,"file":"name_part.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/name_part.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAMlC,MAAM,CAAC,MAAM,QAAQ,GAAwC,CAAC,KAAK,EAAS,EAAE;IAC5E,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAEvB,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,yBAAyB,EAAE,EAAE,CAAC,CAC7C,yBAAyB,CAAC,GAAG,CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,CACvD,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,IAAI,EACpE,KAAK,EAAE,qBAAqB,CAAC,KAAK,CAAC,QAAQ,EAAE,GAC7C,CACH,CAAC,CACH,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { Name } from '@peculiar/asn1-x509';\n\nimport { OIDs } from '../../../constants/oids';\nimport { RowValue } from '../row';\n\ninterface INamePartProps {\n name: Name;\n}\n\nexport const NamePart: FunctionalComponent<INamePartProps> = (props): any[] => {\n const { name } = props;\n\n if (!name) {\n return null;\n }\n\n return name.map((relativeDistinguishedName) => (\n relativeDistinguishedName.map((attributeTypeAndValue) => (\n <RowValue\n name={OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type}\n value={attributeTypeAndValue.value.toString()}\n />\n ))\n ));\n};\n"]}
@@ -13,7 +13,7 @@ import { l10n } from "../../../utils";
13
13
  import { RowValue } from "../row";
14
14
  import { BasicAttribute } from "./basic_attribute";
15
15
  export const TypeRelationshipAttribute = (props) => {
16
- const { attribute } = props;
17
- return (h(BasicAttribute, { attribute: attribute }, Object.keys(attribute.value).map((keyName) => (h(RowValue, { name: keyName, value: attribute.value[keyName].toNumber() ? l10n.getString('yes') : l10n.getString('no') })))));
16
+ const { attribute } = props;
17
+ return (h(BasicAttribute, { attribute: attribute }, Object.keys(attribute.value).map((keyName) => (h(RowValue, { name: keyName, value: attribute.value[keyName].toNumber() ? l10n.getString('yes') : l10n.getString('no') })))));
18
18
  };
19
19
  //# sourceMappingURL=type_relationship_attribute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"type_relationship_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/type_relationship_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,yBAAyB,GACiB,CAAC,KAAK,EAAE,EAAE;EAC/D,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS,IAEnB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAC7C,EAAC,QAAQ,IACP,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GACzF,CACH,CAAC,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { TypeRelationship } from '@peculiar/asn1-ntqwac';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { l10n } from '../../../utils';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface ITypeRelationshipAttributeProps {\n attribute: Attribute<TypeRelationship>;\n}\n\nexport const TypeRelationshipAttribute:\nFunctionalComponent<ITypeRelationshipAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n {Object.keys(attribute.value).map((keyName) => (\n <RowValue\n name={keyName}\n value={attribute.value[keyName].toNumber() ? l10n.getString('yes') : l10n.getString('no')}\n />\n ))}\n </BasicAttribute>\n );\n};\n"]}
1
+ {"version":3,"file":"type_relationship_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/type_relationship_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,yBAAyB,GACiB,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS,IAEnB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAC7C,EAAC,QAAQ,IACP,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GACzF,CACH,CAAC,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { TypeRelationship } from '@peculiar/asn1-ntqwac';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { l10n } from '../../../utils';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface ITypeRelationshipAttributeProps {\n attribute: Attribute<TypeRelationship>;\n}\n\nexport const TypeRelationshipAttribute:\nFunctionalComponent<ITypeRelationshipAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n {Object.keys(attribute.value).map((keyName) => (\n <RowValue\n name={keyName}\n value={attribute.value[keyName].toNumber() ? l10n.getString('yes') : l10n.getString('no')}\n />\n ))}\n </BasicAttribute>\n );\n};\n"]}
@@ -12,7 +12,7 @@ import { h } from "@stencil/core";
12
12
  import { RowValue } from "../row";
13
13
  import { BasicAttribute } from "./basic_attribute";
14
14
  export const UnstructuredNameAttribute = (props) => {
15
- const { attribute } = props;
16
- return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: attribute.value.utf8String })));
15
+ const { attribute } = props;
16
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: attribute.value.utf8String })));
17
17
  };
18
18
  //# sourceMappingURL=unstructured_name_attribute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"unstructured_name_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/unstructured_name_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,yBAAyB,GACiB,CAAC,KAAK,EAAE,EAAE;EAC/D,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;IAEpB,EAAC,QAAQ,IACP,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU,GACjC,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { UnstructuredName } from '@peculiar/asn1-pkcs9';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IUnstructuredNameAttributeProps {\n attribute: Attribute<UnstructuredName>;\n}\n\nexport const UnstructuredNameAttribute:\nFunctionalComponent<IUnstructuredNameAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value.utf8String}\n />\n </BasicAttribute>\n );\n};\n"]}
1
+ {"version":3,"file":"unstructured_name_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/unstructured_name_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,yBAAyB,GACiB,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;QAEpB,EAAC,QAAQ,IACP,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU,GACjC,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { UnstructuredName } from '@peculiar/asn1-pkcs9';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IUnstructuredNameAttributeProps {\n attribute: Attribute<UnstructuredName>;\n}\n\nexport const UnstructuredNameAttribute:\nFunctionalComponent<IUnstructuredNameAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value.utf8String}\n />\n </BasicAttribute>\n );\n};\n"]}
@@ -12,21 +12,21 @@ import { h } from "@stencil/core";
12
12
  import { RowValue } from "../row";
13
13
  import { BasicAttribute } from "./basic_attribute";
14
14
  const getValueRank = (value) => {
15
- let ratio = 1;
16
- if (value / 100 > 1) {
17
- ratio = 100;
18
- }
19
- else if (value / 10 > 1) {
20
- ratio = 10;
21
- }
22
- return `${value}/${5 * ratio}`;
15
+ let ratio = 1;
16
+ if (value / 100 > 1) {
17
+ ratio = 100;
18
+ }
19
+ else if (value / 10 > 1) {
20
+ ratio = 10;
21
+ }
22
+ return `${value}/${5 * ratio}`;
23
23
  };
24
24
  export const ValuationRankingAttribute = (props) => {
25
- const { attribute } = props;
26
- const values = Object.keys(attribute.value).map((keyName) => ([
27
- getValueRank(attribute.value[keyName]),
28
- h("br", null),
29
- ]));
30
- return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: values })));
25
+ const { attribute } = props;
26
+ const values = Object.keys(attribute.value).map((keyName) => ([
27
+ getValueRank(attribute.value[keyName]),
28
+ h("br", null),
29
+ ]));
30
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: values })));
31
31
  };
32
32
  //# sourceMappingURL=valuation_ranking_attribute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"valuation_ranking_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/valuation_ranking_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,YAAY,GAAG,CAAC,KAAa,EAAU,EAAE;EAC7C,IAAI,KAAK,GAAG,CAAC,CAAC;EAEd,IAAI,KAAK,GAAG,GAAG,GAAG,CAAC,EAAE;IACnB,KAAK,GAAG,GAAG,CAAC;GACb;OAAM,IAAI,KAAK,GAAG,EAAE,GAAG,CAAC,EAAE;IACzB,KAAK,GAAG,EAAE,CAAC;GACZ;EAED,OAAO,GAAG,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC;AACjC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GACiB,CAAC,KAAK,EAAE,EAAE;EAC/D,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAC5B,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC5D,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACtC,aAAM;GACP,CAAC,CAAC,CAAC;EAEJ,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;IAEpB,EAAC,QAAQ,IACP,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,MAAa,GACpB,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ValuationRanking } from '@peculiar/asn1-ntqwac';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IValuationRankingAttributeProps {\n attribute: Attribute<ValuationRanking>;\n}\n\nconst getValueRank = (value: number): string => {\n let ratio = 1;\n\n if (value / 100 > 1) {\n ratio = 100;\n } else if (value / 10 > 1) {\n ratio = 10;\n }\n\n return `${value}/${5 * ratio}`;\n};\n\nexport const ValuationRankingAttribute:\nFunctionalComponent<IValuationRankingAttributeProps> = (props) => {\n const { attribute } = props;\n const values = Object.keys(attribute.value).map((keyName) => ([\n getValueRank(attribute.value[keyName]),\n <br />,\n ]));\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={values as any}\n />\n </BasicAttribute>\n );\n};\n"]}
1
+ {"version":3,"file":"valuation_ranking_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/valuation_ranking_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,YAAY,GAAG,CAAC,KAAa,EAAU,EAAE;IAC7C,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,IAAI,KAAK,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC;QACpB,KAAK,GAAG,GAAG,CAAC;IACd,CAAC;SAAM,IAAI,KAAK,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;QAC1B,KAAK,GAAG,EAAE,CAAC;IACb,CAAC;IAED,OAAO,GAAG,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC;AACjC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GACiB,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAC5B,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAC5D,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,aAAM;KACP,CAAC,CAAC,CAAC;IAEJ,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;QAEpB,EAAC,QAAQ,IACP,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,MAAa,GACpB,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ValuationRanking } from '@peculiar/asn1-ntqwac';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IValuationRankingAttributeProps {\n attribute: Attribute<ValuationRanking>;\n}\n\nconst getValueRank = (value: number): string => {\n let ratio = 1;\n\n if (value / 100 > 1) {\n ratio = 100;\n } else if (value / 10 > 1) {\n ratio = 10;\n }\n\n return `${value}/${5 * ratio}`;\n};\n\nexport const ValuationRankingAttribute:\nFunctionalComponent<IValuationRankingAttributeProps> = (props) => {\n const { attribute } = props;\n const values = Object.keys(attribute.value).map((keyName) => ([\n getValueRank(attribute.value[keyName]),\n <br />,\n ]));\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={values as any}\n />\n </BasicAttribute>\n );\n};\n"]}
@@ -9,11 +9,12 @@
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  */
11
11
  import { h } from "@stencil/core";
12
+ import { camelCaseToWords } from "../../../utils";
12
13
  import { GeneralNamePart } from "../extensions/general_name_part";
13
- import { RowValue } from "../row";
14
+ import { RowValue, TableRowTable } from "../row";
14
15
  import { BasicAttribute } from "./basic_attribute";
15
16
  export const WebGdprAttribute = (props) => {
16
- const { attribute } = props;
17
- return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Assessment Authority", value: "" }), h(GeneralNamePart, { generalName: attribute.value.assessmentAuthority, getDNSNameLink: () => '', getIPAddressLink: () => '' }), h(RowValue, { name: "Assessment Location", value: "" }), h(GeneralNamePart, { generalName: attribute.value.assessmentLocation, getDNSNameLink: () => '', getIPAddressLink: () => '' }), h(RowValue, { name: "Assessment Ref", value: "" }), h(GeneralNamePart, { generalName: attribute.value.assessmentRef, getDNSNameLink: () => '', getIPAddressLink: () => '' }), h(RowValue, { name: "Data Storage Territory", value: attribute.value.dataStorageTerritory }), h(RowValue, { name: "Description", value: attribute.value.description })));
17
+ const { attribute } = props;
18
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: camelCaseToWords('assessmentAuthority'), value: "" }), h(TableRowTable, null, h(GeneralNamePart, { generalName: attribute.value.assessmentAuthority, getDNSNameLink: () => '', getIPAddressLink: () => '' })), h(RowValue, { name: camelCaseToWords('assessmentLocation'), value: "" }), h(TableRowTable, null, h(GeneralNamePart, { generalName: attribute.value.assessmentLocation, getDNSNameLink: () => '', getIPAddressLink: () => '' })), h(RowValue, { name: camelCaseToWords('assessmentRef'), value: "" }), h(TableRowTable, null, h(GeneralNamePart, { generalName: attribute.value.assessmentRef, getDNSNameLink: () => '', getIPAddressLink: () => '' })), h(RowValue, { name: camelCaseToWords('dataStorageTerritory'), value: attribute.value.dataStorageTerritory }), h(RowValue, { name: camelCaseToWords('description'), value: attribute.value.description })));
18
19
  };
19
20
  //# sourceMappingURL=web_gdpr_attribute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"web_gdpr_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes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AAC,QAAQ,IACP,IAAI,EAAC,aAAa,EAClB,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,WAAW,GAClC,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { WebGDPR } from '@peculiar/asn1-ntqwac';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { GeneralNamePart } from '../extensions/general_name_part';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IWebGdprAttributeProps {\n attribute: Attribute<WebGDPR>;\n}\n\nexport const WebGdprAttribute:\nFunctionalComponent<IWebGdprAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Assessment Authority\"\n value=\"\"\n />\n <GeneralNamePart\n generalName={attribute.value.assessmentAuthority}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n\n <RowValue\n name=\"Assessment Location\"\n value=\"\"\n />\n <GeneralNamePart\n generalName={attribute.value.assessmentLocation}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n\n <RowValue\n name=\"Assessment Ref\"\n value=\"\"\n />\n <GeneralNamePart\n generalName={attribute.value.assessmentRef}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n\n <RowValue\n name=\"Data Storage Territory\"\n value={attribute.value.dataStorageTerritory}\n />\n <RowValue\n name=\"Description\"\n value={attribute.value.description}\n />\n </BasicAttribute>\n );\n};\n"]}
1
+ {"version":3,"file":"web_gdpr_attribute.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/attributes/web_gdpr_attribute.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EA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EAAE,gBAAgB,CAAC,sBAAsB,CAAC,EAC9C,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,oBAAoB,GAC3C;QACF,EAAC,QAAQ,IACP,IAAI,EAAE,gBAAgB,CAAC,aAAa,CAAC,EACrC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,WAAW,GAClC,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { WebGDPR } from '@peculiar/asn1-ntqwac';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { camelCaseToWords } from '../../../utils';\nimport { GeneralNamePart } from '../extensions/general_name_part';\nimport { RowValue, TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IWebGdprAttributeProps {\n attribute: Attribute<WebGDPR>;\n}\n\nexport const WebGdprAttribute:\nFunctionalComponent<IWebGdprAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name={camelCaseToWords('assessmentAuthority')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentAuthority}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('assessmentLocation')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentLocation}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('assessmentRef')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentRef}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('dataStorageTerritory')}\n value={attribute.value.dataStorageTerritory}\n />\n <RowValue\n name={camelCaseToWords('description')}\n value={attribute.value.description}\n />\n </BasicAttribute>\n );\n};\n"]}
@@ -12,17 +12,17 @@ import { h } from "@stencil/core";
12
12
  import { dateShort, l10n } from "../../utils";
13
13
  import { RowTitle, RowValue } from "./row";
14
14
  export const BasicInformation = (props) => {
15
- const { serialNumber, version, validity, notBefore, notAfter, lastUpdate, nextUpdate, type, } = props;
16
- return [
17
- h(RowTitle, { value: l10n.getString('basicInformation') }),
18
- h(RowValue, { name: l10n.getString('type'), value: type }),
19
- h(RowValue, { name: l10n.getString('serialNumber'), value: serialNumber, monospace: true }),
20
- h(RowValue, { name: l10n.getString('version'), value: version }),
21
- h(RowValue, { name: l10n.getString('validity'), value: validity }),
22
- h(RowValue, { name: l10n.getString('issued'), value: notBefore ? dateShort(notBefore) : undefined }),
23
- h(RowValue, { name: l10n.getString('expired'), value: notAfter ? dateShort(notAfter) : undefined }),
24
- h(RowValue, { name: l10n.getString('lastUpdate'), value: lastUpdate ? dateShort(lastUpdate) : undefined }),
25
- h(RowValue, { name: l10n.getString('nextUpdate'), value: nextUpdate ? dateShort(nextUpdate) : undefined }),
26
- ];
15
+ const { serialNumber, version, validity, notBefore, notAfter, lastUpdate, nextUpdate, type, } = props;
16
+ return [
17
+ h(RowTitle, { value: l10n.getString('basicInformation') }),
18
+ h(RowValue, { name: l10n.getString('type'), value: type }),
19
+ h(RowValue, { name: l10n.getString('serialNumber'), value: serialNumber, monospace: true }),
20
+ h(RowValue, { name: l10n.getString('version'), value: version }),
21
+ h(RowValue, { name: l10n.getString('validity'), value: validity }),
22
+ h(RowValue, { name: l10n.getString('issued'), value: notBefore ? dateShort(notBefore) : undefined }),
23
+ h(RowValue, { name: l10n.getString('expired'), value: notAfter ? dateShort(notAfter) : undefined }),
24
+ h(RowValue, { name: l10n.getString('lastUpdate'), value: lastUpdate ? dateShort(lastUpdate) : undefined }),
25
+ h(RowValue, { name: l10n.getString('nextUpdate'), value: nextUpdate ? dateShort(nextUpdate) : undefined }),
26
+ ];
27
27
  };
28
28
  //# sourceMappingURL=basic_information.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"basic_information.js","sourceRoot":"","sources":["../../../src/components/certificate-details-parts/basic_information.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAa3C,MAAM,CAAC,MAAM,gBAAgB,GAAgD,CAAC,KAAK,EAAE,EAAE;EACrF,MAAM,EACJ,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,IAAI,GACL,GAAG,KAAK,CAAC;EAEV,OAAO;IACL,EAAC,QAAQ,IACP,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,GACzC;IACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAC5B,KAAK,EAAE,IAAI,GACX;IACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EACpC,KAAK,EAAE,YAAY,EACnB,SAAS,SACT;IACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAC/B,KAAK,EAAE,OAAO,GACd;IACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAChC,KAAK,EAAE,QAAQ,GACf;IACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAC9B,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,GACnD;IACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAC/B,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,GACjD;IACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAClC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,GACrD;IACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAClC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,GACrD;GACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\n\nimport { dateShort, l10n } from '../../utils';\n\nimport { RowTitle, RowValue } from './row';\n\ninterface IBasicInformationProps {\n serialNumber?: string;\n version?: number;\n validity?: string;\n notBefore?: Date;\n notAfter?: Date;\n lastUpdate?: Date;\n nextUpdate?: Date;\n type: string;\n}\n\nexport const BasicInformation: FunctionalComponent<IBasicInformationProps> = (props) => {\n const {\n serialNumber,\n version,\n validity,\n notBefore,\n notAfter,\n lastUpdate,\n nextUpdate,\n type,\n } = props;\n\n return [\n <RowTitle\n value={l10n.getString('basicInformation')}\n />,\n <RowValue\n name={l10n.getString('type')}\n value={type}\n />,\n <RowValue\n name={l10n.getString('serialNumber')}\n value={serialNumber}\n monospace\n />,\n <RowValue\n name={l10n.getString('version')}\n value={version}\n />,\n <RowValue\n name={l10n.getString('validity')}\n value={validity}\n />,\n <RowValue\n name={l10n.getString('issued')}\n value={notBefore ? dateShort(notBefore) : undefined}\n />,\n <RowValue\n name={l10n.getString('expired')}\n value={notAfter ? dateShort(notAfter) : undefined}\n />,\n <RowValue\n name={l10n.getString('lastUpdate')}\n value={lastUpdate ? dateShort(lastUpdate) : undefined}\n />,\n <RowValue\n name={l10n.getString('nextUpdate')}\n value={nextUpdate ? dateShort(nextUpdate) : undefined}\n />,\n ];\n};\n"]}
1
+ {"version":3,"file":"basic_information.js","sourceRoot":"","sources":["../../../src/components/certificate-details-parts/basic_information.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAa3C,MAAM,CAAC,MAAM,gBAAgB,GAAgD,CAAC,KAAK,EAAE,EAAE;IACrF,MAAM,EACJ,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,IAAI,GACL,GAAG,KAAK,CAAC;IAEV,OAAO;QACL,EAAC,QAAQ,IACP,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,GACzC;QACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAC5B,KAAK,EAAE,IAAI,GACX;QACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EACpC,KAAK,EAAE,YAAY,EACnB,SAAS,SACT;QACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAC/B,KAAK,EAAE,OAAO,GACd;QACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAChC,KAAK,EAAE,QAAQ,GACf;QACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAC9B,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,GACnD;QACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAC/B,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,GACjD;QACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAClC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,GACrD;QACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAClC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,GACrD;KACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\n\nimport { dateShort, l10n } from '../../utils';\n\nimport { RowTitle, RowValue } from './row';\n\ninterface IBasicInformationProps {\n serialNumber?: string;\n version?: number;\n validity?: string;\n notBefore?: Date;\n notAfter?: Date;\n lastUpdate?: Date;\n nextUpdate?: Date;\n type: string;\n}\n\nexport const BasicInformation: FunctionalComponent<IBasicInformationProps> = (props) => {\n const {\n serialNumber,\n version,\n validity,\n notBefore,\n notAfter,\n lastUpdate,\n nextUpdate,\n type,\n } = props;\n\n return [\n <RowTitle\n value={l10n.getString('basicInformation')}\n />,\n <RowValue\n name={l10n.getString('type')}\n value={type}\n />,\n <RowValue\n name={l10n.getString('serialNumber')}\n value={serialNumber}\n monospace\n />,\n <RowValue\n name={l10n.getString('version')}\n value={version}\n />,\n <RowValue\n name={l10n.getString('validity')}\n value={validity}\n />,\n <RowValue\n name={l10n.getString('issued')}\n value={notBefore ? dateShort(notBefore) : undefined}\n />,\n <RowValue\n name={l10n.getString('expired')}\n value={notAfter ? dateShort(notAfter) : undefined}\n />,\n <RowValue\n name={l10n.getString('lastUpdate')}\n value={lastUpdate ? dateShort(lastUpdate) : undefined}\n />,\n <RowValue\n name={l10n.getString('nextUpdate')}\n value={nextUpdate ? dateShort(nextUpdate) : undefined}\n />,\n ];\n};\n"]}