@peculiar/certificates-viewer 3.6.0 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/dist/cjs/{certification_request-6cd86a69.js → certification_request-6eb7ef37.js} +6982 -6865
  2. package/dist/cjs/{crl-91c8642c.js → crl-75106e2e.js} +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{public_key-dccd1cdf.js → miscellaneous-0eade914.js} +387 -225
  5. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +87 -90
  6. package/dist/cjs/{peculiar-certificate-summary_3.cjs.entry.js → peculiar-button-split_4.cjs.entry.js} +35 -0
  7. package/dist/cjs/peculiar-button.cjs.entry.js +40 -0
  8. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +3 -3
  9. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +5 -5
  10. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +2 -2
  11. package/dist/cjs/peculiar-link.cjs.entry.js +29 -0
  12. package/dist/cjs/peculiar-text-hider.cjs.entry.js +33 -0
  13. package/dist/cjs/peculiar-typography.cjs.entry.js +38 -0
  14. package/dist/cjs/peculiar.cjs.js +1 -1
  15. package/dist/cjs/{x509_certificate-87a3fdb6.js → x509_certificate-9e7652cf.js} +18 -4
  16. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +1 -8
  17. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/basic_attribute.js +1 -1
  18. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/basic_extension.js +1 -2
  19. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js +27 -0
  20. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js +43 -0
  21. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js +28 -0
  22. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/extended_key_usage_extension.js +7 -3
  23. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/general_name_part.js +1 -1
  24. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js +24 -0
  25. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/logotype_extension.js +1 -1
  26. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/policy_mappings_extension.js +1 -1
  27. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js +54 -0
  28. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_directory_attributes_extension.js +8 -7
  29. package/dist/collection/components/{attribute-certificate-viewer → certificate-details-parts}/holder.js +3 -4
  30. package/dist/collection/components/certificate-details-parts/index.js +15 -0
  31. package/dist/collection/components/{attribute-certificate-viewer → certificate-details-parts}/issuer.js +2 -2
  32. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/public_key.js +14 -9
  33. package/dist/collection/components/{crl-viewer → certificate-details-parts}/revoked_certificates.js +3 -7
  34. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/row.js +3 -0
  35. package/dist/collection/components/certificate-details-parts/signature.js +31 -0
  36. package/dist/collection/components/certificate-viewer/certificate-viewer.css +4 -0
  37. package/dist/collection/components/certificate-viewer/certificate-viewer.js +1 -8
  38. package/dist/collection/components/crl-viewer/crl-viewer.js +1 -7
  39. package/dist/collection/components/csr-viewer/csr-viewer.js +1 -8
  40. package/dist/collection/constants/oids.js +21 -13
  41. package/dist/collection/crypto/x509_certificate.js +18 -3
  42. package/dist/collection/{components/certificate-viewer → utils}/get_string_by_oid.js +1 -1
  43. package/dist/collection/utils/index.js +1 -0
  44. package/dist/esm/{certification_request-5089bdb5.js → certification_request-4adeae0c.js} +6727 -6618
  45. package/dist/esm/{crl-cd78d029.js → crl-2857d300.js} +1 -1
  46. package/dist/esm/loader.js +1 -1
  47. package/dist/esm/{public_key-081d831c.js → miscellaneous-91256fd3.js} +387 -226
  48. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +54 -57
  49. package/dist/esm/{peculiar-certificate-summary_3.entry.js → peculiar-button-split_4.entry.js} +35 -1
  50. package/dist/esm/peculiar-button.entry.js +36 -0
  51. package/dist/esm/peculiar-certificate-decoder.entry.js +3 -3
  52. package/dist/esm/peculiar-certificate-viewer.entry.js +4 -4
  53. package/dist/esm/peculiar-certificates-viewer.entry.js +2 -2
  54. package/dist/esm/peculiar-link.entry.js +25 -0
  55. package/dist/esm/peculiar-text-hider.entry.js +29 -0
  56. package/dist/esm/peculiar-typography.entry.js +34 -0
  57. package/dist/esm/peculiar.js +1 -1
  58. package/dist/esm/{x509_certificate-69c7b972.js → x509_certificate-e7b4d8d1.js} +18 -4
  59. package/dist/peculiar/p-05f4713f.js +11 -0
  60. package/dist/peculiar/{p-39896604.entry.js → p-22d8ae9c.entry.js} +1 -1
  61. package/dist/peculiar/{p-72856c36.entry.js → p-40808c02.entry.js} +1 -1
  62. package/dist/peculiar/p-57b89412.entry.js +4 -0
  63. package/dist/peculiar/p-5fb5f008.entry.js +18 -0
  64. package/dist/peculiar/p-610b85e3.entry.js +4 -0
  65. package/dist/peculiar/p-6d37c8b5.entry.js +4 -0
  66. package/dist/peculiar/p-77121cf7.js +69 -0
  67. package/dist/peculiar/p-7de0bfb3.entry.js +4 -0
  68. package/dist/peculiar/p-893659f4.entry.js +4 -0
  69. package/dist/peculiar/p-918aeee4.entry.js +4 -0
  70. package/dist/peculiar/p-b44dc7c9.js +79 -0
  71. package/dist/peculiar/{p-85377ca1.js → p-e7518804.js} +3 -3
  72. package/dist/peculiar/peculiar.esm.js +1 -1
  73. package/dist/types/components/certificate-details-parts/index.d.ts +12 -0
  74. package/dist/types/components/{certificate-viewer → certificate-details-parts}/row.d.ts +1 -0
  75. package/dist/types/constants/oids.d.ts +7 -0
  76. package/dist/types/crypto/x509_certificate.d.ts +6 -1
  77. package/dist/types/utils/index.d.ts +1 -0
  78. package/package.json +21 -19
  79. package/dist/cjs/peculiar-button_5.cjs.entry.js +0 -148
  80. package/dist/collection/components/certificate-viewer/extensions/biometric_syntax_extension.js +0 -26
  81. package/dist/collection/components/certificate-viewer/extensions/certificate_policies_extension.js +0 -43
  82. package/dist/collection/components/certificate-viewer/extensions/certificate_transparency_extension.js +0 -27
  83. package/dist/collection/components/certificate-viewer/extensions/info_access_syntax_extension.js +0 -23
  84. package/dist/collection/components/certificate-viewer/extensions/qc_statements_extension.js +0 -23
  85. package/dist/collection/components/certificate-viewer/signature.js +0 -26
  86. package/dist/esm/peculiar-button_5.entry.js +0 -140
  87. package/dist/peculiar/p-28d6119e.entry.js +0 -26
  88. package/dist/peculiar/p-3bd51c63.js +0 -87
  89. package/dist/peculiar/p-870c3592.entry.js +0 -4
  90. package/dist/peculiar/p-a7322c0b.js +0 -11
  91. package/dist/peculiar/p-ade86ece.entry.js +0 -4
  92. package/dist/peculiar/p-dafae164.entry.js +0 -4
  93. package/dist/peculiar/p-f8d68bc3.js +0 -63
  94. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/activity_description_attribute.js +1 -1
  95. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/as_string_attribute.js +1 -1
  96. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/challenge_password_attribute.js +1 -1
  97. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/index.js +0 -0
  98. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/insurance_value_attribute.js +1 -1
  99. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/name_attribute.js +0 -0
  100. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/name_part.js +0 -0
  101. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/type_relationship_attribute.js +1 -1
  102. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/unstructured_name_attribute.js +1 -1
  103. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/valuation_ranking_attribute.js +1 -1
  104. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/web_gdpr_attribute.js +1 -1
  105. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/basic_information.js +0 -0
  106. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/archive_rev_info_extension.js +0 -0
  107. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/as_string_extension.js +0 -0
  108. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/attribute_value.js +0 -0
  109. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/authority_key_identifier_extension.js +0 -0
  110. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/basic_constraints_extension.js +0 -0
  111. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/ca_version_extension.js +0 -0
  112. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_template_extension.js +0 -0
  113. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_distribution_points_extension.js +0 -0
  114. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_number_extension.js +0 -0
  115. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_reason_extension.js +0 -0
  116. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/enroll_cert_type_extension.js +0 -0
  117. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/entrust_version_info_extension.js +0 -0
  118. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/index.js +0 -0
  119. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/issuing_distribution_point_extension.js +0 -0
  120. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/key_usage_extension.js +0 -0
  121. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/lei_extension.js +0 -0
  122. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/lei_role_extennsion.js +0 -0
  123. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/name_constraints_extension.js +0 -0
  124. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_cert_type_extension.js +0 -0
  125. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_comment_extension.js +0 -0
  126. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/policy_constraints_extension.js +0 -0
  127. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/private_key_usage_period_extension.js +0 -0
  128. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_alternative_name_extension.js +0 -0
  129. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_key_identifier_extension.js +0 -0
  130. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/timestamp_extension.js +0 -0
  131. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/tn_auth_list_extension.js +0 -0
  132. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/issuer_name.js +0 -0
  133. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/miscellaneous.js +0 -0
  134. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/subject_name.js +0 -0
  135. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/thumbprints.js +0 -0
  136. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/activity_description_attribute.d.ts +0 -0
  137. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/as_string_attribute.d.ts +0 -0
  138. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/basic_attribute.d.ts +0 -0
  139. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/challenge_password_attribute.d.ts +0 -0
  140. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/index.d.ts +0 -0
  141. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/insurance_value_attribute.d.ts +0 -0
  142. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/name_attribute.d.ts +0 -0
  143. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/name_part.d.ts +0 -0
  144. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/type_relationship_attribute.d.ts +0 -0
  145. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/unstructured_name_attribute.d.ts +0 -0
  146. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/valuation_ranking_attribute.d.ts +0 -0
  147. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/web_gdpr_attribute.d.ts +0 -0
  148. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/basic_information.d.ts +0 -0
  149. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/archive_rev_info_extension.d.ts +0 -0
  150. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/as_string_extension.d.ts +0 -0
  151. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/attribute_value.d.ts +0 -0
  152. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/authority_key_identifier_extension.d.ts +0 -0
  153. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/basic_constraints_extension.d.ts +0 -0
  154. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/basic_extension.d.ts +0 -0
  155. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/biometric_syntax_extension.d.ts +0 -0
  156. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/ca_version_extension.d.ts +0 -0
  157. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_policies_extension.d.ts +0 -0
  158. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_template_extension.d.ts +0 -0
  159. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_transparency_extension.d.ts +0 -0
  160. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_distribution_points_extension.d.ts +0 -0
  161. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_number_extension.d.ts +0 -0
  162. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_reason_extension.d.ts +0 -0
  163. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/enroll_cert_type_extension.d.ts +0 -0
  164. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/entrust_version_info_extension.d.ts +0 -0
  165. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/extended_key_usage_extension.d.ts +0 -0
  166. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/general_name_part.d.ts +0 -0
  167. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/index.d.ts +0 -0
  168. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/info_access_syntax_extension.d.ts +0 -0
  169. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/issuing_distribution_point_extension.d.ts +0 -0
  170. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/key_usage_extension.d.ts +0 -0
  171. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/lei_extension.d.ts +0 -0
  172. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/lei_role_extennsion.d.ts +0 -0
  173. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/logotype_extension.d.ts +0 -0
  174. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/name_constraints_extension.d.ts +0 -0
  175. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_cert_type_extension.d.ts +0 -0
  176. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_comment_extension.d.ts +0 -0
  177. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/policy_constraints_extension.d.ts +0 -0
  178. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/policy_mappings_extension.d.ts +0 -0
  179. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/private_key_usage_period_extension.d.ts +0 -0
  180. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/qc_statements_extension.d.ts +0 -0
  181. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_alternative_name_extension.d.ts +0 -0
  182. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_directory_attributes_extension.d.ts +0 -0
  183. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_key_identifier_extension.d.ts +0 -0
  184. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/timestamp_extension.d.ts +0 -0
  185. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/tn_auth_list_extension.d.ts +0 -0
  186. /package/dist/types/components/{attribute-certificate-viewer → certificate-details-parts}/holder.d.ts +0 -0
  187. /package/dist/types/components/{attribute-certificate-viewer → certificate-details-parts}/issuer.d.ts +0 -0
  188. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/issuer_name.d.ts +0 -0
  189. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/miscellaneous.d.ts +0 -0
  190. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/public_key.d.ts +0 -0
  191. /package/dist/types/components/{crl-viewer → certificate-details-parts}/revoked_certificates.d.ts +0 -0
  192. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/signature.d.ts +0 -0
  193. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/subject_name.d.ts +0 -0
  194. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/thumbprints.d.ts +0 -0
  195. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/types.d.ts +0 -0
  196. /package/dist/types/{components/certificate-viewer → utils}/get_string_by_oid.d.ts +0 -0
@@ -2,9 +2,9 @@
2
2
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
3
  */
4
4
  import { h } from './index-bbd484d9.js';
5
- import { b as build } from './download-67ac9120.js';
6
5
  import { l as l10n, a as dateShort } from './l10n-a68d5748.js';
7
- import { Q as OIDs, S as Name, _ as OtherName, p as AsnParser, $ as DisplayText, a0 as UserNotice, a1 as EDIPartyName, a2 as AsnIntegerArrayBufferConverter, a3 as KeyUsage, a4 as BasicConstraints, a5 as ExtendedKeyUsage, a6 as SubjectKeyIdentifier, a7 as AuthorityKeyIdentifier, a8 as CRLDistributionPoints, a9 as AuthorityInfoAccessSyntax, aa as SubjectInfoAccessSyntax, ab as SubjectAlternativeName, ac as CertificatePolicies, ad as CertificateTransparency, ae as NameConstraints, af as CertificateTemplate, ag as EnrollCertTypeChoice, ah as CaVersion, ai as QCStatements, aj as NetscapeComment, ak as NetscapeCertType, al as LeiRole, am as LeiChoice, an as Timestamp, ao as ArchiveRevInfo, X as CRLReason, ap as SubjectDirectoryAttributes, aq as PrivateKeyUsagePeriod, ar as EntrustVersionInfo, as as BiometricSyntax, at as LogotypeExtn, au as TNAuthorizationList, av as PolicyConstraints, aw as PolicyMappings, ax as CRLNumber, ay as IssuingDistributionPoint } from './certification_request-5089bdb5.js';
6
+ import { b as build } from './download-67ac9120.js';
7
+ import { _ as OIDs, $ as Name, a3 as OtherName, u as AsnParser, a4 as DisplayText, a5 as UserNotice, a6 as EDIPartyName, a7 as __decorate, a8 as AsnProp, a9 as AsnPropTypes, aa as AsnType, ab as AsnTypeTypes, ac as AsnArray, ad as id_qcs_pkixQCSyntax_v2, ae as SemanticsInformation, af as AsnIntegerArrayBufferConverter, ag as KeyUsage, ah as BasicConstraints, ai as ExtendedKeyUsage, aj as SubjectKeyIdentifier, ak as AuthorityKeyIdentifier, al as CRLDistributionPoints, am as AuthorityInfoAccessSyntax, an as SubjectInfoAccessSyntax, ao as SubjectAlternativeName, ap as CertificatePolicies, aq as CertificateTransparency, ar as NameConstraints, as as CertificateTemplate, at as EnrollCertTypeChoice, au as CaVersion, av as QCStatements, aw as NetscapeComment, ax as NetscapeCertType, ay as LeiRole, az as LeiChoice, aA as Timestamp, aB as ArchiveRevInfo, a0 as CRLReason, aC as SubjectDirectoryAttributes, aD as PrivateKeyUsagePeriod, aE as EntrustVersionInfo, aF as BiometricSyntax, aG as LogotypeExtn, aH as TNAuthorizationList, aI as PolicyConstraints, aJ as PolicyMappings, aK as CRLNumber, aL as IssuingDistributionPoint } from './certification_request-4adeae0c.js';
8
8
 
9
9
  /**
10
10
  * @license
@@ -21,6 +21,17 @@ function getStringByOID(value) {
21
21
  return value;
22
22
  }
23
23
 
24
+ /**
25
+ * @license
26
+ * Copyright (c) Peculiar Ventures, LLC.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */
31
+ const getLEILink = (lei) => `https://search.gleif.org/#/record/${lei}`;
32
+ const getDNSNameLink = (dnsName) => `https://search.censys.io/search?resource=hosts&q=dns.names%3A${dnsName}`;
33
+ const getIPAddressLink = (ipAddress) => `https://search.censys.io/search?resource=hosts&q=ip%3A${ipAddress}`;
34
+
24
35
  /**
25
36
  * @license
26
37
  * Copyright (c) Peculiar Ventures, LLC.
@@ -39,6 +50,9 @@ function isLink(value) {
39
50
  * This source code is licensed under the MIT license found in the
40
51
  * LICENSE file in the root directory of this source tree.
41
52
  */
53
+ const TableRowTable = (_, children) => (h("tr", null,
54
+ h("td", { colSpan: 2 },
55
+ h("table", null, children))));
42
56
  const RowTitle = (props) => {
43
57
  const { value } = props;
44
58
  if (!value) {
@@ -83,15 +97,67 @@ const RowValue = (props) => {
83
97
  * This source code is licensed under the MIT license found in the
84
98
  * LICENSE file in the root directory of this source tree.
85
99
  */
86
- const Signature = (props) => {
87
- const { signature } = props;
88
- if (!signature) {
100
+ const BasicInformation = (props) => {
101
+ const { serialNumber, version, validity, notBefore, notAfter, lastUpdate, nextUpdate, type, } = props;
102
+ return [
103
+ h(RowTitle, { value: l10n.getString('basicInformation') }),
104
+ h(RowValue, { name: l10n.getString('type'), value: type }),
105
+ h(RowValue, { name: l10n.getString('serialNumber'), value: serialNumber, monospace: true }),
106
+ h(RowValue, { name: l10n.getString('version'), value: version }),
107
+ h(RowValue, { name: l10n.getString('validity'), value: validity }),
108
+ h(RowValue, { name: l10n.getString('issued'), value: notBefore ? dateShort(notBefore) : undefined }),
109
+ h(RowValue, { name: l10n.getString('expired'), value: notAfter ? dateShort(notAfter) : undefined }),
110
+ h(RowValue, { name: l10n.getString('lastUpdate'), value: lastUpdate ? dateShort(lastUpdate) : undefined }),
111
+ h(RowValue, { name: l10n.getString('nextUpdate'), value: nextUpdate ? dateShort(nextUpdate) : undefined }),
112
+ ];
113
+ };
114
+
115
+ /**
116
+ * @license
117
+ * Copyright (c) Peculiar Ventures, LLC.
118
+ *
119
+ * This source code is licensed under the MIT license found in the
120
+ * LICENSE file in the root directory of this source tree.
121
+ */
122
+ function getPublicKeyModulus(publicKey) {
123
+ var _a;
124
+ if ((_a = publicKey.params) === null || _a === void 0 ? void 0 : _a['modulus']) {
125
+ let length = publicKey.params['modulus'].byteLength;
126
+ if (length % 2) {
127
+ length -= 1;
128
+ }
129
+ return length * 8;
130
+ }
131
+ return null;
132
+ }
133
+ function getPublicKeyExponent(publicKey) {
134
+ var _a;
135
+ if ((_a = publicKey.params) === null || _a === void 0 ? void 0 : _a['publicExponent']) {
136
+ return publicKey.params['publicExponent'].byteLength === 3
137
+ ? 65537
138
+ : 3;
139
+ }
140
+ return null;
141
+ }
142
+ const PublicKey = (props) => {
143
+ const { publicKey } = props;
144
+ if (!publicKey) {
89
145
  return null;
90
146
  }
147
+ function renderKeyDetails(key) {
148
+ var _a;
149
+ return [
150
+ h(RowValue, { name: l10n.getString('algorithm'), value: getStringByOID(key.algorithm) }),
151
+ h(RowValue, { name: l10n.getString('namedCurve'), value: getStringByOID((_a = key.params) === null || _a === void 0 ? void 0 : _a['namedCurve']) }),
152
+ h(RowValue, { name: l10n.getString('exponent'), value: getPublicKeyExponent(key) }),
153
+ h(RowValue, { name: l10n.getString('modulus'), value: getPublicKeyModulus(key) }),
154
+ h(RowValue, { name: l10n.getString('value'), value: build.Convert.ToHex(key.value), monospace: true, collapse: true }),
155
+ ];
156
+ }
91
157
  return [
92
- h(RowTitle, { value: l10n.getString('signature') }),
93
- h(RowValue, { name: l10n.getString('algorithm'), value: getStringByOID(signature.algorithm) }),
94
- h(RowValue, { name: l10n.getString('value'), value: build.Convert.ToHex(signature.value), monospace: true, collapse: true }),
158
+ h(RowTitle, { value: l10n.getString('publicKeyInfo') }),
159
+ renderKeyDetails(publicKey),
160
+ (Array.isArray(publicKey.params) && publicKey.params.length && publicKey.params.map((param) => (h(TableRowTable, null, renderKeyDetails(param))))),
95
161
  ];
96
162
  };
97
163
 
@@ -102,63 +168,53 @@ const Signature = (props) => {
102
168
  * This source code is licensed under the MIT license found in the
103
169
  * LICENSE file in the root directory of this source tree.
104
170
  */
105
- const names = {
106
- otherName: 'Other Name',
107
- rfc822Name: 'RFC 822 Name',
108
- dNSName: 'DNS Name',
109
- x400Address: 'X400 Address',
110
- directoryName: 'Directory Name',
111
- ediPartyName: 'Edi Party Name ',
112
- uniformResourceIdentifier: 'URI',
113
- iPAddress: 'IP Address',
114
- registeredID: 'Registered ID',
171
+ const SubjectName = (props) => {
172
+ const { name } = props;
173
+ return [
174
+ h(RowTitle, { value: l10n.getString('subjectName') }),
175
+ name.map((n) => (h(RowValue, { name: n.name || n.type, value: n.value }))),
176
+ ];
115
177
  };
116
- const GeneralNamePart = (props) => {
117
- const { generalName, getDNSNameLink, getIPAddressLink } = props;
118
- if (!generalName) {
178
+
179
+ /**
180
+ * @license
181
+ * Copyright (c) Peculiar Ventures, LLC.
182
+ *
183
+ * This source code is licensed under the MIT license found in the
184
+ * LICENSE file in the root directory of this source tree.
185
+ */
186
+ const IssuerName = (props) => {
187
+ const { name, issuerDnLink } = props;
188
+ const title = l10n.getString('issuerName');
189
+ return [
190
+ h(RowTitle, { value: issuerDnLink ? (h("peculiar-link", { href: issuerDnLink, type: "h6" }, title)) : title }),
191
+ name.map((n) => (h(RowValue, { name: n.name || n.type, value: n.value }))),
192
+ ];
193
+ };
194
+
195
+ /**
196
+ * @license
197
+ * Copyright (c) Peculiar Ventures, LLC.
198
+ *
199
+ * This source code is licensed under the MIT license found in the
200
+ * LICENSE file in the root directory of this source tree.
201
+ */
202
+ const Signature = (props) => {
203
+ const { signature } = props;
204
+ if (!signature) {
119
205
  return null;
120
206
  }
121
- return Object.keys(generalName).map((name) => {
122
- const value = generalName[name];
123
- if (value instanceof Name) {
124
- return [
125
- h(RowValue, { name: names[name] || name, value: "" }),
126
- value.map((relativeDistinguishedName) => (relativeDistinguishedName.map((attributeTypeAndValue) => (h(RowValue, { name: OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type, value: attributeTypeAndValue.value.toString() }))))),
127
- ];
128
- }
129
- if (value instanceof OtherName) {
130
- try {
131
- const text = AsnParser.parse(value.value, DisplayText);
132
- return (h(RowValue, { name: OIDs[value.typeId] || value.typeId, value: text.toString() }));
133
- }
134
- catch (error) {
135
- //
136
- }
137
- try {
138
- const text = AsnParser.parse(value.value, UserNotice);
139
- if (text.explicitText) {
140
- return (h(RowValue, { name: OIDs[value.typeId] || value.typeId, value: text.explicitText.toString() }));
141
- }
142
- }
143
- catch (error) {
144
- //
145
- }
146
- return (h(RowValue, { name: OIDs[value.typeId] || value.typeId, value: build.Convert.ToHex(value.value), monospace: true }));
147
- }
148
- if (build.BufferSourceConverter.isBufferSource(value)) {
149
- return (h(RowValue, { name: names[name] || name, value: build.Convert.ToString(value) }));
150
- }
151
- if (value instanceof EDIPartyName) {
152
- return (h(RowValue, { name: names[name] || name, value: build.Convert.ToString(value.partyName) }));
153
- }
154
- if (name === 'dNSName') {
155
- return (h(RowValue, { name: names[name] || name, value: value, href: getDNSNameLink(value) }));
156
- }
157
- if (name === 'iPAddress') {
158
- return (h(RowValue, { name: names[name] || name, value: value, href: getIPAddressLink(value) }));
159
- }
160
- return (h(RowValue, { name: names[name] || name, value: value }));
161
- });
207
+ function renderSignatureDetails(data) {
208
+ return [
209
+ h(RowValue, { name: l10n.getString('algorithm'), value: getStringByOID(data.algorithm) }),
210
+ h(RowValue, { name: l10n.getString('value'), value: build.Convert.ToHex(data.value), monospace: true, collapse: true }),
211
+ ];
212
+ }
213
+ return [
214
+ h(RowTitle, { value: l10n.getString('signature') }),
215
+ renderSignatureDetails(signature),
216
+ (signature.params && signature.params.length && signature.params.map((param) => (h(TableRowTable, null, renderSignatureDetails(param))))),
217
+ ];
162
218
  };
163
219
 
164
220
  /**
@@ -238,7 +294,11 @@ const BasicConstraintsExtension = (props) => {
238
294
  */
239
295
  const ExtendedKeyUsageExtension = (props) => {
240
296
  const { extension } = props;
241
- return (h(BasicExtension, { extension: extension }, extension.value.map((usage, arrayIndex) => (h(RowValue, { name: `Purpose #${arrayIndex + 1}`, value: getStringByOID(usage) })))));
297
+ return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
298
+ h(RowValue, { name: "Purposes:", value: "" }),
299
+ extension.value.map((usage) => (h(TableRowTable, null,
300
+ h(RowValue, { name: "Purpose", value: getStringByOID(usage) })))),
301
+ ])));
242
302
  };
243
303
 
244
304
  /**
@@ -291,6 +351,72 @@ const AuthorityKeyIdentifierExtension = (props) => {
291
351
  ] })));
292
352
  };
293
353
 
354
+ /**
355
+ * @license
356
+ * Copyright (c) Peculiar Ventures, LLC.
357
+ *
358
+ * This source code is licensed under the MIT license found in the
359
+ * LICENSE file in the root directory of this source tree.
360
+ */
361
+ const names = {
362
+ otherName: 'Other Name',
363
+ rfc822Name: 'RFC 822 Name',
364
+ dNSName: 'DNS Name',
365
+ x400Address: 'X400 Address',
366
+ directoryName: 'Directory Name',
367
+ ediPartyName: 'Edi Party Name ',
368
+ uniformResourceIdentifier: 'URI',
369
+ iPAddress: 'IP Address',
370
+ registeredID: 'Registered ID',
371
+ };
372
+ const GeneralNamePart = (props) => {
373
+ const { generalName, getDNSNameLink, getIPAddressLink } = props;
374
+ if (!generalName) {
375
+ return null;
376
+ }
377
+ return Object.keys(generalName).map((name) => {
378
+ const value = generalName[name];
379
+ if (value instanceof Name) {
380
+ return [
381
+ h(RowValue, { name: names[name] || name, value: "" }),
382
+ value.map((relativeDistinguishedName) => (relativeDistinguishedName.map((attributeTypeAndValue) => (h(RowValue, { name: OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type, value: attributeTypeAndValue.value.toString() }))))),
383
+ ];
384
+ }
385
+ if (value instanceof OtherName) {
386
+ try {
387
+ const text = AsnParser.parse(value.value, DisplayText);
388
+ return (h(RowValue, { name: OIDs[value.typeId] || value.typeId, value: text.toString() }));
389
+ }
390
+ catch (error) {
391
+ //
392
+ }
393
+ try {
394
+ const text = AsnParser.parse(value.value, UserNotice);
395
+ if (text.explicitText) {
396
+ return (h(RowValue, { name: OIDs[value.typeId] || value.typeId, value: text.explicitText.toString() }));
397
+ }
398
+ }
399
+ catch (error) {
400
+ //
401
+ }
402
+ return (h(RowValue, { name: OIDs[value.typeId] || value.typeId, value: build.Convert.ToHex(value.value), monospace: true }));
403
+ }
404
+ if (build.BufferSourceConverter.isBufferSource(value)) {
405
+ return (h(RowValue, { name: names[name] || name, value: build.Convert.ToString(value) }));
406
+ }
407
+ if (value instanceof EDIPartyName) {
408
+ return (h(RowValue, { name: names[name] || name, value: value.partyName.toString() }));
409
+ }
410
+ if (name === 'dNSName') {
411
+ return (h(RowValue, { name: names[name] || name, value: value, href: getDNSNameLink(value) }));
412
+ }
413
+ if (name === 'iPAddress') {
414
+ return (h(RowValue, { name: names[name] || name, value: value, href: getIPAddressLink(value) }));
415
+ }
416
+ return (h(RowValue, { name: names[name] || name, value: value }));
417
+ });
418
+ };
419
+
294
420
  /**
295
421
  * @license
296
422
  * Copyright (c) Peculiar Ventures, LLC.
@@ -318,11 +444,12 @@ const CRLDistributionPointsExtension = (props) => {
318
444
  */
319
445
  const InfoAccessSyntaxExtension = (props) => {
320
446
  const { extension } = props;
321
- return (h(BasicExtension, { extension: extension }, extension.value.map((description, arrayIndex) => ([
322
- h(RowValue, { name: `Description #${arrayIndex + 1}`, value: "" }),
323
- h(RowValue, { name: "Method", value: getStringByOID(description.accessMethod) }),
324
- h(GeneralNamePart, Object.assign({ generalName: description.accessLocation }, props)),
325
- ]))));
447
+ return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
448
+ h(RowValue, { name: "Descriptions:", value: "" }),
449
+ extension.value.map((description) => (h(TableRowTable, null,
450
+ h(RowValue, { name: "Method", value: getStringByOID(description.accessMethod) }),
451
+ h(GeneralNamePart, Object.assign({ generalName: description.accessLocation }, props))))),
452
+ ])));
326
453
  };
327
454
 
328
455
  /**
@@ -346,30 +473,30 @@ const SubjectAlternativeNameExtension = (props) => {
346
473
  */
347
474
  const CertificatePoliciesExtension = (props) => {
348
475
  const { extension } = props;
349
- return (h(BasicExtension, { extension: extension }, extension.value.map((policy, arrayIndex) => {
350
- var _a;
351
- return ([
352
- h(RowValue, { name: `Policy #${arrayIndex + 1}`, value: "" }),
353
- h(RowValue, { name: "ID", value: getStringByOID(policy.policyIdentifier) }),
354
- (_a = policy.policyQualifiers) === null || _a === void 0 ? void 0 : _a.map((qualifierInfo, indexInfo) => {
355
- const data = [
356
- h(RowValue, { name: `Qualifier #${arrayIndex + 1}.${indexInfo + 1}`, value: "" }),
357
- h(RowValue, { name: "ID", value: getStringByOID(qualifierInfo.policyQualifierId) }),
358
- ];
359
- if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.1') {
360
- const value = AsnParser.parse(qualifierInfo.qualifier, DisplayText);
361
- data.push(h(RowValue, { name: "Value", value: value.toString() }));
362
- }
363
- if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.2') {
364
- const value = AsnParser.parse(qualifierInfo.qualifier, UserNotice);
365
- if (value.explicitText) {
366
- data.push(h(RowValue, { name: "Value", value: value.explicitText.toString() }));
476
+ return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
477
+ h(RowValue, { name: "Policies:", value: "" }),
478
+ extension.value.map((policy) => (h(TableRowTable, null,
479
+ h(RowValue, { name: "Policy ID", value: getStringByOID(policy.policyIdentifier) }),
480
+ policy.policyQualifiers && Boolean(policy.policyQualifiers.length) && ([
481
+ h(RowValue, { name: "Qualifiers:", value: "" }),
482
+ policy.policyQualifiers.map((qualifierInfo) => {
483
+ const data = [
484
+ h(RowValue, { name: "Qualifier ID", value: getStringByOID(qualifierInfo.policyQualifierId) }),
485
+ ];
486
+ if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.1') {
487
+ const value = AsnParser.parse(qualifierInfo.qualifier, DisplayText);
488
+ data.push(h(RowValue, { name: "Value", value: value.toString() }));
367
489
  }
368
- }
369
- return data;
370
- }),
371
- ]);
372
- })));
490
+ if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.2') {
491
+ const value = AsnParser.parse(qualifierInfo.qualifier, UserNotice);
492
+ if (value.explicitText) {
493
+ data.push(h(RowValue, { name: "Value", value: value.explicitText.toString() }));
494
+ }
495
+ }
496
+ return (h(TableRowTable, null, data));
497
+ }),
498
+ ])))),
499
+ ])));
373
500
  };
374
501
 
375
502
  /**
@@ -467,15 +594,16 @@ const logs = {
467
594
  */
468
595
  const CertificateTransparencyExtension = (props) => {
469
596
  const { extension } = props;
470
- return (h(BasicExtension, { extension: extension }, extension.value.toJSON().map((signedCertificateTimestamp, arrayIndex) => ([
471
- h(RowValue, { name: `SCT #${arrayIndex + 1}`, value: "" }),
472
- h(RowValue, { name: "Version", value: signedCertificateTimestamp.version + 1 }),
473
- h(RowValue, { name: "Log Operator", value: logs[signedCertificateTimestamp.logId] || signedCertificateTimestamp.logId }),
474
- h(RowValue, { name: "Log Key ID", value: signedCertificateTimestamp.logId, monospace: true }),
475
- h(RowValue, { name: "Timestamp", value: dateShort(signedCertificateTimestamp.timestamp) }),
476
- h(RowValue, { name: "Signature Algorithm", value: `${signedCertificateTimestamp.hashAlgorithm} ${signedCertificateTimestamp.signatureAlgorithm}`.toUpperCase() }),
477
- h(RowValue, { name: "Signature", value: signedCertificateTimestamp.signature, monospace: true }),
478
- ]))));
597
+ return (h(BasicExtension, { extension: extension }, Boolean(extension.value.items.length) && ([
598
+ h(RowValue, { name: "Signed Certificate Timestamps:", value: "" }),
599
+ extension.value.toJSON().map((signedCertificateTimestamp) => (h(TableRowTable, null,
600
+ h(RowValue, { name: "Version", value: signedCertificateTimestamp.version + 1 }),
601
+ h(RowValue, { name: "Log Operator", value: logs[signedCertificateTimestamp.logId] || signedCertificateTimestamp.logId }),
602
+ h(RowValue, { name: "Log Key ID", value: signedCertificateTimestamp.logId, monospace: true }),
603
+ h(RowValue, { name: "Timestamp", value: dateShort(signedCertificateTimestamp.timestamp) }),
604
+ h(RowValue, { name: "Signature Algorithm", value: `${signedCertificateTimestamp.hashAlgorithm} ${signedCertificateTimestamp.signatureAlgorithm}`.toUpperCase() }),
605
+ h(RowValue, { name: "Signature", value: signedCertificateTimestamp.signature, monospace: true })))),
606
+ ])));
479
607
  };
480
608
 
481
609
  /**
@@ -536,6 +664,116 @@ const CaVersionExtension = (props) => {
536
664
  h(RowValue, { name: "Key Index", value: version.keyIndex })));
537
665
  };
538
666
 
667
+ var PdsLocations_1, QcEuPDS_1, QcType_1, QcCClegislation_1;
668
+ let Iso4217CurrencyCode = class Iso4217CurrencyCode {
669
+ constructor(value) {
670
+ if (typeof value === "string") {
671
+ this.alphabetic = value;
672
+ }
673
+ else if (typeof value === "number") {
674
+ this.numeric = value;
675
+ }
676
+ }
677
+ };
678
+ __decorate([
679
+ AsnProp({ type: AsnPropTypes.PrintableString })
680
+ ], Iso4217CurrencyCode.prototype, "alphabetic", void 0);
681
+ __decorate([
682
+ AsnProp({ type: AsnPropTypes.PrintableString })
683
+ ], Iso4217CurrencyCode.prototype, "numeric", void 0);
684
+ Iso4217CurrencyCode = __decorate([
685
+ AsnType({ type: AsnTypeTypes.Choice })
686
+ ], Iso4217CurrencyCode);
687
+ class MonetaryValue {
688
+ constructor(params = {}) {
689
+ this.currency = new Iso4217CurrencyCode();
690
+ this.amount = 0;
691
+ this.exponent = 0;
692
+ Object.assign(this, params);
693
+ }
694
+ }
695
+ __decorate([
696
+ AsnProp({ type: Iso4217CurrencyCode })
697
+ ], MonetaryValue.prototype, "currency", void 0);
698
+ __decorate([
699
+ AsnProp({ type: AsnPropTypes.Integer })
700
+ ], MonetaryValue.prototype, "amount", void 0);
701
+ __decorate([
702
+ AsnProp({ type: AsnPropTypes.Integer })
703
+ ], MonetaryValue.prototype, "exponent", void 0);
704
+ let QcEuLimitValue = class QcEuLimitValue extends MonetaryValue {
705
+ };
706
+ QcEuLimitValue = __decorate([
707
+ AsnType({ type: AsnTypeTypes.Sequence })
708
+ ], QcEuLimitValue);
709
+ let QcEuRetentionPeriod = class QcEuRetentionPeriod {
710
+ constructor(value = 0) {
711
+ this.value = value;
712
+ }
713
+ };
714
+ __decorate([
715
+ AsnProp({ type: AsnPropTypes.Integer })
716
+ ], QcEuRetentionPeriod.prototype, "value", void 0);
717
+ QcEuRetentionPeriod = __decorate([
718
+ AsnType({ type: AsnTypeTypes.Choice })
719
+ ], QcEuRetentionPeriod);
720
+ let PdsLocation = class PdsLocation {
721
+ constructor(params = {}) {
722
+ this.url = "";
723
+ this.language = "";
724
+ Object.assign(this, params);
725
+ }
726
+ };
727
+ __decorate([
728
+ AsnProp({ type: AsnPropTypes.IA5String })
729
+ ], PdsLocation.prototype, "url", void 0);
730
+ __decorate([
731
+ AsnProp({ type: AsnPropTypes.PrintableString })
732
+ ], PdsLocation.prototype, "language", void 0);
733
+ PdsLocation = __decorate([
734
+ AsnType({ type: AsnTypeTypes.Sequence })
735
+ ], PdsLocation);
736
+ let PdsLocations = PdsLocations_1 = class PdsLocations extends AsnArray {
737
+ constructor(items) {
738
+ super(items);
739
+ Object.setPrototypeOf(this, PdsLocations_1.prototype);
740
+ }
741
+ };
742
+ PdsLocations = PdsLocations_1 = __decorate([
743
+ AsnType({ type: AsnTypeTypes.Sequence, itemType: PdsLocation })
744
+ ], PdsLocations);
745
+ let QcEuPDS = QcEuPDS_1 = class QcEuPDS extends PdsLocations {
746
+ constructor(items) {
747
+ super(items);
748
+ Object.setPrototypeOf(this, QcEuPDS_1.prototype);
749
+ }
750
+ };
751
+ QcEuPDS = QcEuPDS_1 = __decorate([
752
+ AsnType({ type: AsnTypeTypes.Sequence, itemType: PdsLocation })
753
+ ], QcEuPDS);
754
+ let QcType = QcType_1 = class QcType extends AsnArray {
755
+ constructor(items) {
756
+ super(items);
757
+ Object.setPrototypeOf(this, QcType_1.prototype);
758
+ }
759
+ };
760
+ QcType = QcType_1 = __decorate([
761
+ AsnType({ type: AsnTypeTypes.Sequence, itemType: AsnPropTypes.ObjectIdentifier })
762
+ ], QcType);
763
+ let QcCClegislation = QcCClegislation_1 = class QcCClegislation extends AsnArray {
764
+ constructor(items) {
765
+ super(items);
766
+ Object.setPrototypeOf(this, QcCClegislation_1.prototype);
767
+ }
768
+ };
769
+ QcCClegislation = QcCClegislation_1 = __decorate([
770
+ AsnType({ type: AsnTypeTypes.Sequence, itemType: AsnPropTypes.PrintableString })
771
+ ], QcCClegislation);
772
+ const id_etsi_qcs = "0.4.0.1862.1";
773
+ const id_etsi_qcs_qcRetentionPeriod = `${id_etsi_qcs}.3`;
774
+ const id_etsi_qcs_qcPDS = `${id_etsi_qcs}.5`;
775
+ const id_etsi_qcs_qcType = `${id_etsi_qcs}.6`;
776
+
539
777
  /**
540
778
  * @license
541
779
  * Copyright (c) Peculiar Ventures, LLC.
@@ -545,11 +783,39 @@ const CaVersionExtension = (props) => {
545
783
  */
546
784
  const QCStatementsExtension = (props) => {
547
785
  const { extension } = props;
548
- return (h(BasicExtension, { extension: extension }, extension.value.map((statement, arrayIndex) => ([
549
- h(RowValue, { name: `Statement #${arrayIndex + 1}`, value: "" }),
550
- h(RowValue, { name: "ID", value: getStringByOID(statement.statementId) }),
551
- h(RowValue, { name: "Info", value: statement.statementInfo.byteLength ? build.Convert.ToHex(statement.statementInfo) : null, monospace: true }),
552
- ]))));
786
+ function renderStatementInfo(statementId, statementInfo) {
787
+ if (!statementInfo.byteLength) {
788
+ return null;
789
+ }
790
+ if (statementId === id_qcs_pkixQCSyntax_v2) {
791
+ const semanticsInformation = AsnParser.parse(statementInfo, SemanticsInformation);
792
+ return (h(RowValue, { name: "Semantics Identifier", value: getStringByOID(semanticsInformation.semanticsIdentifier) }));
793
+ }
794
+ if (statementId === id_etsi_qcs_qcType) {
795
+ const qcTypes = AsnParser.parse(statementInfo, QcType);
796
+ return (h(RowValue, { name: "QC Types", value: qcTypes.map((type) => getStringByOID(type)).join(', ') }));
797
+ }
798
+ if (statementId === id_etsi_qcs_qcRetentionPeriod) {
799
+ const retentionPeriod = AsnParser.parse(statementInfo, QcEuRetentionPeriod);
800
+ return (h(RowValue, { name: "Retention Period", value: `${retentionPeriod.value} years` }));
801
+ }
802
+ if (statementId === id_etsi_qcs_qcPDS) {
803
+ const pdsLocations = AsnParser.parse(statementInfo, PdsLocations);
804
+ return ([
805
+ h(RowValue, { name: "PDS Locations:", value: "" }),
806
+ pdsLocations.map((location) => (h(TableRowTable, null,
807
+ h(RowValue, { name: "URL", value: location.url }),
808
+ h(RowValue, { name: "Language", value: location.language })))),
809
+ ]);
810
+ }
811
+ return (h(RowValue, { name: "Info", value: build.Convert.ToHex(statementInfo), monospace: true }));
812
+ }
813
+ return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
814
+ h(RowValue, { name: "Statements:", value: "" }),
815
+ extension.value.map((statement) => (h(TableRowTable, null,
816
+ h(RowValue, { name: "Statement ID", value: getStringByOID(statement.statementId) }),
817
+ renderStatementInfo(statement.statementId, statement.statementInfo)))),
818
+ ])));
553
819
  };
554
820
 
555
821
  /**
@@ -665,11 +931,12 @@ function getAttributeValue(attribute) {
665
931
  */
666
932
  const SubjectDirectoryAttributesExtension = (props) => {
667
933
  const { extension } = props;
668
- return (h(BasicExtension, { extension: extension }, extension.value.map((attribute, arrayIndex) => ([
669
- h(RowValue, { name: `Attribute #${arrayIndex + 1}`, value: "" }),
670
- h(RowValue, { name: "Type", value: getStringByOID(attribute.type) }),
671
- h(RowValue, { name: "Value", value: getAttributeValue(attribute) }),
672
- ]))));
934
+ return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
935
+ h(RowValue, { name: "Attributes:", value: "" }),
936
+ extension.value.map((attribute) => (h(TableRowTable, null,
937
+ h(RowValue, { name: "Type", value: getStringByOID(attribute.type) }),
938
+ h(RowValue, { name: "Value", value: getAttributeValue(attribute) })))),
939
+ ])));
673
940
  };
674
941
 
675
942
  /**
@@ -722,14 +989,15 @@ const EntrustVersionInfoExtension = (props) => {
722
989
  */
723
990
  const BiometricSyntaxExtension = (props) => {
724
991
  const { extension } = props;
725
- return (h(BasicExtension, { extension: extension }, extension.value.map((data, arrayIndex) => ([
726
- h(RowValue, { name: `Biometric #${arrayIndex + 1}`, value: "" }),
727
- h(RowValue, { name: "OID", value: getStringByOID(data.typeOfBiometricData.biometricDataOid) }),
728
- h(RowValue, { name: "Type", value: data.typeOfBiometricData.predefinedBiometricType }),
729
- h(RowValue, { name: "Algorithm", value: getStringByOID(data.hashAlgorithm.algorithm) }),
730
- h(RowValue, { name: "Hash", value: build.Convert.ToHex(data.biometricDataHash.buffer), monospace: true }),
731
- h(RowValue, { name: "Source Uri", value: data.sourceDataUri }),
732
- ]))));
992
+ return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
993
+ h(RowValue, { name: "Biometrics:", value: "" }),
994
+ extension.value.map((data) => (h(TableRowTable, null,
995
+ h(RowValue, { name: "OID", value: getStringByOID(data.typeOfBiometricData.biometricDataOid) }),
996
+ h(RowValue, { name: "Type", value: data.typeOfBiometricData.predefinedBiometricType }),
997
+ h(RowValue, { name: "Algorithm", value: getStringByOID(data.hashAlgorithm.algorithm) }),
998
+ h(RowValue, { name: "Hash", value: build.Convert.ToHex(data.biometricDataHash.buffer), monospace: true }),
999
+ h(RowValue, { name: "Source Uri", value: data.sourceDataUri })))),
1000
+ ])));
733
1001
  };
734
1002
 
735
1003
  /**
@@ -994,28 +1262,6 @@ const Extensions = (props) => {
994
1262
  ]);
995
1263
  };
996
1264
 
997
- /**
998
- * @license
999
- * Copyright (c) Peculiar Ventures, LLC.
1000
- *
1001
- * This source code is licensed under the MIT license found in the
1002
- * LICENSE file in the root directory of this source tree.
1003
- */
1004
- const BasicInformation = (props) => {
1005
- const { serialNumber, version, validity, notBefore, notAfter, lastUpdate, nextUpdate, type, } = props;
1006
- return [
1007
- h(RowTitle, { value: l10n.getString('basicInformation') }),
1008
- h(RowValue, { name: l10n.getString('type'), value: type }),
1009
- h(RowValue, { name: l10n.getString('serialNumber'), value: serialNumber, monospace: true }),
1010
- h(RowValue, { name: l10n.getString('version'), value: version }),
1011
- h(RowValue, { name: l10n.getString('validity'), value: validity }),
1012
- h(RowValue, { name: l10n.getString('issued'), value: notBefore ? dateShort(notBefore) : undefined }),
1013
- h(RowValue, { name: l10n.getString('expired'), value: notAfter ? dateShort(notAfter) : undefined }),
1014
- h(RowValue, { name: l10n.getString('lastUpdate'), value: lastUpdate ? dateShort(lastUpdate) : undefined }),
1015
- h(RowValue, { name: l10n.getString('nextUpdate'), value: nextUpdate ? dateShort(nextUpdate) : undefined }),
1016
- ];
1017
- };
1018
-
1019
1265
  /**
1020
1266
  * @license
1021
1267
  * Copyright (c) Peculiar Ventures, LLC.
@@ -1040,89 +1286,4 @@ const Miscellaneous = (props) => {
1040
1286
  ];
1041
1287
  };
1042
1288
 
1043
- /**
1044
- * @license
1045
- * Copyright (c) Peculiar Ventures, LLC.
1046
- *
1047
- * This source code is licensed under the MIT license found in the
1048
- * LICENSE file in the root directory of this source tree.
1049
- */
1050
- const getLEILink = (lei) => `https://search.gleif.org/#/record/${lei}`;
1051
- const getDNSNameLink = (dnsName) => `https://search.censys.io/search?resource=hosts&q=dns.names%3A${dnsName}`;
1052
- const getIPAddressLink = (ipAddress) => `https://search.censys.io/search?resource=hosts&q=ip%3A${ipAddress}`;
1053
-
1054
- /**
1055
- * @license
1056
- * Copyright (c) Peculiar Ventures, LLC.
1057
- *
1058
- * This source code is licensed under the MIT license found in the
1059
- * LICENSE file in the root directory of this source tree.
1060
- */
1061
- const IssuerName = (props) => {
1062
- const { name, issuerDnLink } = props;
1063
- const title = l10n.getString('issuerName');
1064
- return [
1065
- h(RowTitle, { value: issuerDnLink ? (h("peculiar-link", { href: issuerDnLink, type: "h6" }, title)) : title }),
1066
- name.map((n) => (h(RowValue, { name: n.name || n.type, value: n.value }))),
1067
- ];
1068
- };
1069
-
1070
- /**
1071
- * @license
1072
- * Copyright (c) Peculiar Ventures, LLC.
1073
- *
1074
- * This source code is licensed under the MIT license found in the
1075
- * LICENSE file in the root directory of this source tree.
1076
- */
1077
- const SubjectName = (props) => {
1078
- const { name } = props;
1079
- return [
1080
- h(RowTitle, { value: l10n.getString('subjectName') }),
1081
- name.map((n) => (h(RowValue, { name: n.name || n.type, value: n.value }))),
1082
- ];
1083
- };
1084
-
1085
- /**
1086
- * @license
1087
- * Copyright (c) Peculiar Ventures, LLC.
1088
- *
1089
- * This source code is licensed under the MIT license found in the
1090
- * LICENSE file in the root directory of this source tree.
1091
- */
1092
- function getPublicKeyModulus(publicKey) {
1093
- var _a;
1094
- if ((_a = publicKey.params) === null || _a === void 0 ? void 0 : _a['modulus']) {
1095
- let length = publicKey.params['modulus'].byteLength;
1096
- if (length % 2) {
1097
- length -= 1;
1098
- }
1099
- return length * 8;
1100
- }
1101
- return null;
1102
- }
1103
- function getPublicKeyExponent(publicKey) {
1104
- var _a;
1105
- if ((_a = publicKey.params) === null || _a === void 0 ? void 0 : _a['publicExponent']) {
1106
- return publicKey.params['publicExponent'].byteLength === 3
1107
- ? 65537
1108
- : 3;
1109
- }
1110
- return null;
1111
- }
1112
- const PublicKey = (props) => {
1113
- var _a;
1114
- const { publicKey } = props;
1115
- if (!publicKey) {
1116
- return null;
1117
- }
1118
- return [
1119
- h(RowTitle, { value: l10n.getString('publicKeyInfo') }),
1120
- h(RowValue, { name: l10n.getString('algorithm'), value: getStringByOID(publicKey.algorithm) }),
1121
- h(RowValue, { name: l10n.getString('namedCurve'), value: getStringByOID((_a = publicKey.params) === null || _a === void 0 ? void 0 : _a['namedCurve']) }),
1122
- h(RowValue, { name: l10n.getString('exponent'), value: getPublicKeyExponent(publicKey) }),
1123
- h(RowValue, { name: l10n.getString('modulus'), value: getPublicKeyModulus(publicKey) }),
1124
- h(RowValue, { name: l10n.getString('value'), value: build.Convert.ToHex(publicKey.value), monospace: true, collapse: true }),
1125
- ];
1126
- };
1127
-
1128
- export { BasicInformation as B, Extensions as E, GeneralNamePart as G, IssuerName as I, Miscellaneous as M, PublicKey as P, RowValue as R, Signature as S, Thumbprints as T, RowTitle as a, getLEILink as b, getDNSNameLink as c, getIPAddressLink as d, SubjectName as e, getStringByOID as g };
1289
+ export { BasicInformation as B, Extensions as E, GeneralNamePart as G, IssuerName as I, Miscellaneous as M, PublicKey as P, RowValue as R, Signature as S, TableRowTable as T, RowTitle as a, Thumbprints as b, getLEILink as c, getDNSNameLink as d, getIPAddressLink as e, SubjectName as f, getStringByOID as g };