@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,14 +1,14 @@
1
1
  /*!
2
2
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
3
  */
4
- import { h, r as registerInstance, H as Host } from './index-4079bbb5.js';
5
- import { a1 as OIDs, $ as l10n, a2 as Name, H as ActivityDescription, W as WebGDPR, I as InsuranceValue, T as TypeRelationship, V as ValuationRanking, U as UnstructuredName, z as ChallengePassword, a0 as dateShort, a3 as CRLReason, a4 as InvalidityDate, a5 as CertificateIssuer } from './certification_request-d5ea5973.js';
6
- import { C as Convert_1 } from './download-aacb6eff.js';
7
- import { X as X509AttributeCertificate, a as CRL, C as CSR } from './crl-d13d9ec5.js';
8
- import { g as getStringByOID, R as RowValue, G as GeneralNamePart, a as RowTitle, T as TableRowTable, B as BasicInformation, S as Signature, b as Thumbprints, c as getLEILink, d as getDNSNameLink, e as getIPAddressLink, E as Extensions, M as Miscellaneous, I as IssuerName, f as SubjectName, P as PublicKey } from './miscellaneous-cdfd8905.js';
9
- import { T as Typography } from './button-35146bdd.js';
10
- import './link-ad24c3be.js';
11
- import './download-0cc3077a.js';
4
+ import { h, r as registerInstance, H as Host } from './index-ae188432.js';
5
+ import { a4 as OIDs, a2 as l10n, a5 as Name, n as ActivityDescription, W as WebGDPR, I as InsuranceValue, T as TypeRelationship, V as ValuationRanking, U as UnstructuredName, s as ChallengePassword, C as Convert_1, a3 as dateShort, a6 as CRLReason, a7 as InvalidityDate, a8 as CertificateIssuer } from './certification_request-08b4deb8.js';
6
+ import { X as X509AttributeCertificate, a as X509Crl } from './x509_crl-ba76d3ed.js';
7
+ import { g as getStringByOID, R as RowValue, c as camelCaseToWords, T as TableRowTable, G as GeneralNamePart, a as RowTitle, B as BasicInformation, S as Signature, b as Thumbprints, d as getLEILink, e as getDNSNameLink, f as getIPAddressLink, E as Extensions, M as Miscellaneous, I as IssuerName, h as SubjectName, P as PublicKey } from './miscellaneous-d4bbc6f2.js';
8
+ import { T as Typography } from './button-a2fabf9a.js';
9
+ import { P as Pkcs10CertificateRequest } from './pkcs10_certificate_request-3763c2af.js';
10
+ import './link-7e4e9060.js';
11
+ import './download-14dc1047.js';
12
12
 
13
13
  /**
14
14
  * @license
@@ -18,14 +18,14 @@ import './download-0cc3077a.js';
18
18
  * LICENSE file in the root directory of this source tree.
19
19
  */
20
20
  const BasicAttribute = (props, children) => {
21
- const { attribute } = props;
22
- return ([
23
- h(RowValue, { name: "Name", value: getStringByOID(attribute.asn.type) }),
24
- children,
25
- h("tr", null,
26
- h("td", { colSpan: 2, class: "divider" },
27
- h("span", null))),
28
- ]);
21
+ const { attribute } = props;
22
+ return ([
23
+ h(RowValue, { name: "Name", value: getStringByOID(attribute.asn.type) }),
24
+ children,
25
+ h("tr", null,
26
+ h("td", { colSpan: 2, class: "divider" },
27
+ h("span", null))),
28
+ ]);
29
29
  };
30
30
 
31
31
  /**
@@ -36,11 +36,11 @@ const BasicAttribute = (props, children) => {
36
36
  * LICENSE file in the root directory of this source tree.
37
37
  */
38
38
  const NamePart = (props) => {
39
- const { name } = props;
40
- if (!name) {
41
- return null;
42
- }
43
- return name.map((relativeDistinguishedName) => (relativeDistinguishedName.map((attributeTypeAndValue) => (h(RowValue, { name: OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type, value: attributeTypeAndValue.value.toString() })))));
39
+ const { name } = props;
40
+ if (!name) {
41
+ return null;
42
+ }
43
+ return name.map((relativeDistinguishedName) => (relativeDistinguishedName.map((attributeTypeAndValue) => (h(RowValue, { name: OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type, value: attributeTypeAndValue.value.toString() })))));
44
44
  };
45
45
 
46
46
  /**
@@ -51,9 +51,9 @@ const NamePart = (props) => {
51
51
  * LICENSE file in the root directory of this source tree.
52
52
  */
53
53
  const NameAttribute = (props) => {
54
- const { attribute } = props;
55
- return (h(BasicAttribute, { attribute: attribute },
56
- h(NamePart, { name: attribute.value })));
54
+ const { attribute } = props;
55
+ return (h(BasicAttribute, { attribute: attribute },
56
+ h(NamePart, { name: attribute.value })));
57
57
  };
58
58
 
59
59
  /**
@@ -64,14 +64,16 @@ const NameAttribute = (props) => {
64
64
  * LICENSE file in the root directory of this source tree.
65
65
  */
66
66
  const ActivityDescriptionAttribute = (props) => {
67
- const { attribute } = props;
68
- return (h(BasicAttribute, { attribute: attribute },
69
- h(RowValue, { name: "Code Authority", value: "" }),
70
- h(GeneralNamePart, { generalName: attribute.value.codeAuthority, getDNSNameLink: () => '', getIPAddressLink: () => '' }),
71
- h(RowValue, { name: "Code Id", value: "" }),
72
- h(GeneralNamePart, { generalName: attribute.value.codeId, getDNSNameLink: () => '', getIPAddressLink: () => '' }),
73
- h(RowValue, { name: "Short Name", value: attribute.value.shortName }),
74
- h(RowValue, { name: "Short Description", value: attribute.value.shortDescription })));
67
+ const { attribute } = props;
68
+ return (h(BasicAttribute, { attribute: attribute },
69
+ h(RowValue, { name: camelCaseToWords('codeAuthority'), value: "" }),
70
+ h(TableRowTable, null,
71
+ h(GeneralNamePart, { generalName: attribute.value.codeAuthority, getDNSNameLink: () => '', getIPAddressLink: () => '' })),
72
+ h(RowValue, { name: camelCaseToWords('codeId'), value: "" }),
73
+ h(TableRowTable, null,
74
+ h(GeneralNamePart, { generalName: attribute.value.codeId, getDNSNameLink: () => '', getIPAddressLink: () => '' })),
75
+ h(RowValue, { name: camelCaseToWords('shortName'), value: attribute.value.shortName }),
76
+ h(RowValue, { name: camelCaseToWords('shortDescription'), value: attribute.value.shortDescription })));
75
77
  };
76
78
 
77
79
  /**
@@ -82,16 +84,19 @@ const ActivityDescriptionAttribute = (props) => {
82
84
  * LICENSE file in the root directory of this source tree.
83
85
  */
84
86
  const WebGdprAttribute = (props) => {
85
- const { attribute } = props;
86
- return (h(BasicAttribute, { attribute: attribute },
87
- h(RowValue, { name: "Assessment Authority", value: "" }),
88
- h(GeneralNamePart, { generalName: attribute.value.assessmentAuthority, getDNSNameLink: () => '', getIPAddressLink: () => '' }),
89
- h(RowValue, { name: "Assessment Location", value: "" }),
90
- h(GeneralNamePart, { generalName: attribute.value.assessmentLocation, getDNSNameLink: () => '', getIPAddressLink: () => '' }),
91
- h(RowValue, { name: "Assessment Ref", value: "" }),
92
- h(GeneralNamePart, { generalName: attribute.value.assessmentRef, getDNSNameLink: () => '', getIPAddressLink: () => '' }),
93
- h(RowValue, { name: "Data Storage Territory", value: attribute.value.dataStorageTerritory }),
94
- h(RowValue, { name: "Description", value: attribute.value.description })));
87
+ const { attribute } = props;
88
+ return (h(BasicAttribute, { attribute: attribute },
89
+ h(RowValue, { name: camelCaseToWords('assessmentAuthority'), value: "" }),
90
+ h(TableRowTable, null,
91
+ h(GeneralNamePart, { generalName: attribute.value.assessmentAuthority, getDNSNameLink: () => '', getIPAddressLink: () => '' })),
92
+ h(RowValue, { name: camelCaseToWords('assessmentLocation'), value: "" }),
93
+ h(TableRowTable, null,
94
+ h(GeneralNamePart, { generalName: attribute.value.assessmentLocation, getDNSNameLink: () => '', getIPAddressLink: () => '' })),
95
+ h(RowValue, { name: camelCaseToWords('assessmentRef'), value: "" }),
96
+ h(TableRowTable, null,
97
+ h(GeneralNamePart, { generalName: attribute.value.assessmentRef, getDNSNameLink: () => '', getIPAddressLink: () => '' })),
98
+ h(RowValue, { name: camelCaseToWords('dataStorageTerritory'), value: attribute.value.dataStorageTerritory }),
99
+ h(RowValue, { name: camelCaseToWords('description'), value: attribute.value.description })));
95
100
  };
96
101
 
97
102
  /**
@@ -102,10 +107,10 @@ const WebGdprAttribute = (props) => {
102
107
  * LICENSE file in the root directory of this source tree.
103
108
  */
104
109
  const InsuranceValueAttribute = (props) => {
105
- const { attribute } = props;
106
- const value = `${attribute.value.base} * 10^${attribute.value.degree} ${attribute.value.location}`;
107
- return (h(BasicAttribute, { attribute: attribute },
108
- h(RowValue, { name: "Value", value: value })));
110
+ const { attribute } = props;
111
+ const value = `${attribute.value.base} * 10^${attribute.value.degree} ${attribute.value.location}`;
112
+ return (h(BasicAttribute, { attribute: attribute },
113
+ h(RowValue, { name: "Value", value: value })));
109
114
  };
110
115
 
111
116
  /**
@@ -116,8 +121,8 @@ const InsuranceValueAttribute = (props) => {
116
121
  * LICENSE file in the root directory of this source tree.
117
122
  */
118
123
  const TypeRelationshipAttribute = (props) => {
119
- const { attribute } = props;
120
- 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') })))));
124
+ const { attribute } = props;
125
+ 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') })))));
121
126
  };
122
127
 
123
128
  /**
@@ -128,23 +133,23 @@ const TypeRelationshipAttribute = (props) => {
128
133
  * LICENSE file in the root directory of this source tree.
129
134
  */
130
135
  const getValueRank = (value) => {
131
- let ratio = 1;
132
- if (value / 100 > 1) {
133
- ratio = 100;
134
- }
135
- else if (value / 10 > 1) {
136
- ratio = 10;
137
- }
138
- return `${value}/${5 * ratio}`;
136
+ let ratio = 1;
137
+ if (value / 100 > 1) {
138
+ ratio = 100;
139
+ }
140
+ else if (value / 10 > 1) {
141
+ ratio = 10;
142
+ }
143
+ return `${value}/${5 * ratio}`;
139
144
  };
140
145
  const ValuationRankingAttribute = (props) => {
141
- const { attribute } = props;
142
- const values = Object.keys(attribute.value).map((keyName) => ([
143
- getValueRank(attribute.value[keyName]),
144
- h("br", null),
145
- ]));
146
- return (h(BasicAttribute, { attribute: attribute },
147
- h(RowValue, { name: "Value", value: values })));
146
+ const { attribute } = props;
147
+ const values = Object.keys(attribute.value).map((keyName) => ([
148
+ getValueRank(attribute.value[keyName]),
149
+ h("br", null),
150
+ ]));
151
+ return (h(BasicAttribute, { attribute: attribute },
152
+ h(RowValue, { name: "Value", value: values })));
148
153
  };
149
154
 
150
155
  /**
@@ -155,9 +160,9 @@ const ValuationRankingAttribute = (props) => {
155
160
  * LICENSE file in the root directory of this source tree.
156
161
  */
157
162
  const AsStringAttribute = (props) => {
158
- const { attribute } = props;
159
- return (h(BasicAttribute, { attribute: attribute },
160
- h(RowValue, { name: "Value", value: attribute.value, monospace: true })));
163
+ const { attribute } = props;
164
+ return (h(BasicAttribute, { attribute: attribute },
165
+ h(RowValue, { name: "Value", value: attribute.value, monospace: true })));
161
166
  };
162
167
 
163
168
  /**
@@ -168,9 +173,9 @@ const AsStringAttribute = (props) => {
168
173
  * LICENSE file in the root directory of this source tree.
169
174
  */
170
175
  const UnstructuredNameAttribute = (props) => {
171
- const { attribute } = props;
172
- return (h(BasicAttribute, { attribute: attribute },
173
- h(RowValue, { name: "Value", value: attribute.value.utf8String })));
176
+ const { attribute } = props;
177
+ return (h(BasicAttribute, { attribute: attribute },
178
+ h(RowValue, { name: "Value", value: attribute.value.utf8String })));
174
179
  };
175
180
 
176
181
  /**
@@ -181,9 +186,9 @@ const UnstructuredNameAttribute = (props) => {
181
186
  * LICENSE file in the root directory of this source tree.
182
187
  */
183
188
  const ChallengePasswordAttribute = (props) => {
184
- const { attribute } = props;
185
- return (h(BasicAttribute, { attribute: attribute },
186
- h(RowValue, { name: "Value", value: attribute.value.toString() })));
189
+ const { attribute } = props;
190
+ return (h(BasicAttribute, { attribute: attribute },
191
+ h(RowValue, { name: "Value", value: attribute.value.toString() })));
187
192
  };
188
193
 
189
194
  /**
@@ -194,49 +199,49 @@ const ChallengePasswordAttribute = (props) => {
194
199
  * LICENSE file in the root directory of this source tree.
195
200
  */
196
201
  const Attributes = (props) => {
197
- const { attributes } = props;
198
- if (!attributes || !attributes.length) {
199
- return null;
200
- }
201
- return ([
202
- h(RowTitle, { value: "Attributes" }),
203
- attributes.map((attribute) => {
204
- try {
205
- if (attribute.value instanceof Name) {
206
- return (h(NameAttribute, { attribute: attribute }));
207
- }
208
- if (attribute.value instanceof ActivityDescription) {
209
- return (h(ActivityDescriptionAttribute, { attribute: attribute }));
210
- }
211
- if (attribute.value instanceof WebGDPR) {
212
- return (h(WebGdprAttribute, { attribute: attribute }));
213
- }
214
- if (attribute.value instanceof InsuranceValue) {
215
- return (h(InsuranceValueAttribute, { attribute: attribute }));
216
- }
217
- if (attribute.value instanceof TypeRelationship) {
218
- return (h(TypeRelationshipAttribute, { attribute: attribute }));
219
- }
220
- if (attribute.value instanceof ValuationRanking) {
221
- return (h(ValuationRankingAttribute, { attribute: attribute }));
222
- }
223
- if (attribute.value instanceof UnstructuredName) {
224
- return (h(UnstructuredNameAttribute, { attribute: attribute }));
225
- }
226
- if (attribute.value instanceof ChallengePassword) {
227
- return (h(ChallengePasswordAttribute, { attribute: attribute }));
228
- }
229
- if (typeof attribute.value === 'string') {
230
- return (h(AsStringAttribute, { attribute: attribute }));
231
- }
232
- return (h(BasicAttribute, { attribute: attribute }));
233
- }
234
- catch (error) {
235
- console.error('Error render attribute:', attribute.asn.type);
202
+ const { attributes } = props;
203
+ if (!attributes || !attributes.length) {
236
204
  return null;
237
- }
238
- }),
239
- ]);
205
+ }
206
+ return ([
207
+ h(RowTitle, { value: "Attributes" }),
208
+ attributes.map((attribute) => {
209
+ try {
210
+ if (attribute.value instanceof Name) {
211
+ return (h(NameAttribute, { attribute: attribute }));
212
+ }
213
+ if (attribute.value instanceof ActivityDescription) {
214
+ return (h(ActivityDescriptionAttribute, { attribute: attribute }));
215
+ }
216
+ if (attribute.value instanceof WebGDPR) {
217
+ return (h(WebGdprAttribute, { attribute: attribute }));
218
+ }
219
+ if (attribute.value instanceof InsuranceValue) {
220
+ return (h(InsuranceValueAttribute, { attribute: attribute }));
221
+ }
222
+ if (attribute.value instanceof TypeRelationship) {
223
+ return (h(TypeRelationshipAttribute, { attribute: attribute }));
224
+ }
225
+ if (attribute.value instanceof ValuationRanking) {
226
+ return (h(ValuationRankingAttribute, { attribute: attribute }));
227
+ }
228
+ if (attribute.value instanceof UnstructuredName) {
229
+ return (h(UnstructuredNameAttribute, { attribute: attribute }));
230
+ }
231
+ if (attribute.value instanceof ChallengePassword) {
232
+ return (h(ChallengePasswordAttribute, { attribute: attribute }));
233
+ }
234
+ if (typeof attribute.value === 'string') {
235
+ return (h(AsStringAttribute, { attribute: attribute }));
236
+ }
237
+ return (h(BasicAttribute, { attribute: attribute }));
238
+ }
239
+ catch (error) {
240
+ console.error('Error render attribute:', attribute.asn.type);
241
+ return null;
242
+ }
243
+ }),
244
+ ]);
240
245
  };
241
246
 
242
247
  /**
@@ -247,39 +252,39 @@ const Attributes = (props) => {
247
252
  * LICENSE file in the root directory of this source tree.
248
253
  */
249
254
  const RevokedCertificates = (props) => {
250
- const { revokedCertificates, getDNSNameLink, getIPAddressLink, } = props;
251
- if (!revokedCertificates || !revokedCertificates.length) {
252
- return null;
253
- }
254
- return [
255
- h(RowTitle, { value: l10n.getString('revokedCertificates') }),
256
- revokedCertificates.map((certificate) => ([
257
- h(RowValue, { name: l10n.getString('serialNumber'), value: Convert_1.ToHex(certificate.userCertificate), monospace: true }),
258
- h(RowValue, { name: l10n.getString('revocationDate'), value: dateShort(certificate.revocationDate.getTime()) }),
259
- (certificate.crlEntryExtensions && certificate.crlEntryExtensions.length && ([
260
- h(RowValue, { name: `${l10n.getString('crlEntryExtensions')}:`, value: "" }),
261
- h(TableRowTable, null, certificate.crlEntryExtensions.map((extension) => {
262
- if (extension.value instanceof CRLReason) {
263
- return (h(RowValue, { name: getStringByOID(extension.asn.extnID), value: extension.value.toJSON() || extension.value.reason }));
264
- }
265
- if (extension.value instanceof InvalidityDate) {
266
- return (h(RowValue, { name: getStringByOID(extension.asn.extnID), value: extension.value.value.getTime() }));
267
- }
268
- if (extension.value instanceof CertificateIssuer && extension.value.length) {
269
- return ([
270
- h(RowValue, { name: `${getStringByOID(extension.asn.extnID)}:`, value: "" }),
271
- extension.value.map((gn) => (h(TableRowTable, null,
272
- h(GeneralNamePart, { generalName: gn, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink })))),
273
- ]);
274
- }
275
- return (h(RowValue, { name: getStringByOID(extension.asn.extnID), value: Convert_1.ToHex(extension.asn.extnValue), monospace: true }));
276
- })),
277
- ])),
278
- h("tr", null,
279
- h("td", { colSpan: 2, class: "divider" },
280
- h("span", null))),
281
- ])),
282
- ];
255
+ const { revokedCertificates, getDNSNameLink, getIPAddressLink, } = props;
256
+ if (!revokedCertificates || !revokedCertificates.length) {
257
+ return null;
258
+ }
259
+ return [
260
+ h(RowTitle, { value: l10n.getString('revokedCertificates') }),
261
+ revokedCertificates.map((certificate) => ([
262
+ h(RowValue, { name: l10n.getString('serialNumber'), value: Convert_1.ToHex(certificate.userCertificate), monospace: true }),
263
+ h(RowValue, { name: l10n.getString('revocationDate'), value: dateShort(certificate.revocationDate.getTime()) }),
264
+ (certificate.crlEntryExtensions && certificate.crlEntryExtensions.length && ([
265
+ h(RowValue, { name: `${l10n.getString('crlEntryExtensions')}:`, value: "" }),
266
+ h(TableRowTable, null, certificate.crlEntryExtensions.map((extension) => {
267
+ if (extension.value instanceof CRLReason) {
268
+ return (h(RowValue, { name: getStringByOID(extension.asn.extnID), value: extension.value.toJSON() || extension.value.reason }));
269
+ }
270
+ if (extension.value instanceof InvalidityDate) {
271
+ return (h(RowValue, { name: getStringByOID(extension.asn.extnID), value: extension.value.value.getTime() }));
272
+ }
273
+ if (extension.value instanceof CertificateIssuer && extension.value.length) {
274
+ return ([
275
+ h(RowValue, { name: `${getStringByOID(extension.asn.extnID)}:`, value: "" }),
276
+ extension.value.map((gn) => (h(TableRowTable, null,
277
+ h(GeneralNamePart, { generalName: gn, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink })))),
278
+ ]);
279
+ }
280
+ return (h(RowValue, { name: getStringByOID(extension.asn.extnID), value: Convert_1.ToHex(extension.asn.extnValue), monospace: true }));
281
+ })),
282
+ ])),
283
+ h("tr", null,
284
+ h("td", { colSpan: 2, class: "divider" },
285
+ h("span", null))),
286
+ ])),
287
+ ];
283
288
  };
284
289
 
285
290
  /**
@@ -290,30 +295,31 @@ const RevokedCertificates = (props) => {
290
295
  * LICENSE file in the root directory of this source tree.
291
296
  */
292
297
  const Holder = (props) => {
293
- const { holder } = props;
294
- if (!holder) {
295
- return null;
296
- }
297
- const { baseCertificateID, objectDigestInfo } = holder;
298
- return [
299
- h(RowTitle, { value: l10n.getString('holder') }),
300
- baseCertificateID && ([
301
- baseCertificateID.issuer.map((item) => (h(GeneralNamePart, { generalName: item, getDNSNameLink: () => '', getIPAddressLink: () => '' }))),
302
- h("tr", null,
303
- h("td", null),
304
- h("td", null)),
305
- h(RowValue, { name: l10n.getString('serialNumber'), value: Convert_1.ToHex(baseCertificateID.serial), monospace: true }),
306
- h("tr", null,
307
- h("td", null),
308
- h("td", null)),
309
- ]),
310
- objectDigestInfo && ([
311
- h(RowValue, { name: l10n.getString('digestInfo'), value: "" }),
312
- h(RowValue, { name: l10n.getString('algorithm'), value: getStringByOID(objectDigestInfo.digestAlgorithm.algorithm) }),
313
- h(RowValue, { name: l10n.getString('value'), value: Convert_1.ToHex(objectDigestInfo.objectDigest), monospace: true }),
314
- h(RowValue, { name: l10n.getString('type'), value: objectDigestInfo.digestedObjectType }),
315
- ]),
316
- ];
298
+ const { holder } = props;
299
+ if (!holder) {
300
+ return null;
301
+ }
302
+ const { baseCertificateID, objectDigestInfo } = holder;
303
+ return [
304
+ h(RowTitle, { value: l10n.getString('holder') }),
305
+ baseCertificateID && ([
306
+ baseCertificateID.issuer.map((item) => (h(GeneralNamePart, { generalName: item, getDNSNameLink: () => '', getIPAddressLink: () => '' }))),
307
+ h("tr", null,
308
+ h("td", null),
309
+ h("td", null)),
310
+ h(RowValue, { name: l10n.getString('serialNumber'), value: Convert_1.ToHex(baseCertificateID.serial), monospace: true }),
311
+ h("tr", null,
312
+ h("td", null),
313
+ h("td", null)),
314
+ ]),
315
+ objectDigestInfo && ([
316
+ h(RowValue, { name: l10n.getString('digestInfo'), value: "" }),
317
+ h(TableRowTable, null,
318
+ h(RowValue, { name: l10n.getString('algorithm'), value: getStringByOID(objectDigestInfo.digestAlgorithm.algorithm) }),
319
+ h(RowValue, { name: l10n.getString('value'), value: Convert_1.ToHex(objectDigestInfo.objectDigest), monospace: true }),
320
+ h(RowValue, { name: l10n.getString('type'), value: objectDigestInfo.digestedObjectType })),
321
+ ]),
322
+ ];
317
323
  };
318
324
 
319
325
  /**
@@ -324,333 +330,328 @@ const Holder = (props) => {
324
330
  * LICENSE file in the root directory of this source tree.
325
331
  */
326
332
  const Issuer = (props) => {
327
- const { issuer } = props;
328
- if (!issuer) {
329
- return null;
330
- }
331
- return [
332
- h(RowTitle, { value: l10n.getString('issuer') }),
333
- issuer.map((item) => (h(GeneralNamePart, { generalName: item, getDNSNameLink: () => '', getIPAddressLink: () => '' }))),
334
- ];
333
+ const { issuer } = props;
334
+ if (!issuer) {
335
+ return null;
336
+ }
337
+ return [
338
+ h(RowTitle, { value: l10n.getString('issuer') }),
339
+ issuer.map((item) => (h(GeneralNamePart, { generalName: item, getDNSNameLink: () => '', getIPAddressLink: () => '' }))),
340
+ ];
335
341
  };
336
342
 
337
343
  const certificateViewerCss$2 = "*{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;-webkit-text-size-adjust:none;-webkit-tap-highlight-color:transparent;font-family:var(--pv-font-family, inherit)}.t-h1{font-weight:var(--pv-text-h1-weight);font-size:var(--pv-text-h1-size);line-height:var(--pv-text-h1-height);letter-spacing:var(--pv-text-h1-spacing)}.t-h2{font-weight:var(--pv-text-h2-weight);font-size:var(--pv-text-h2-size);line-height:var(--pv-text-h2-height);letter-spacing:var(--pv-text-h2-spacing)}.t-h3{font-weight:var(--pv-text-h3-weight);font-size:var(--pv-text-h3-size);line-height:var(--pv-text-h3-height);letter-spacing:var(--pv-text-h3-spacing)}.t-h4{font-weight:var(--pv-text-h4-weight);font-size:var(--pv-text-h4-size);line-height:var(--pv-text-h4-height);letter-spacing:var(--pv-text-h4-spacing)}.t-h5{font-weight:var(--pv-text-h5-weight);font-size:var(--pv-text-h5-size);line-height:var(--pv-text-h5-height);letter-spacing:var(--pv-text-h5-spacing)}.t-s1{font-weight:var(--pv-text-s1-weight);font-size:var(--pv-text-s1-size);line-height:var(--pv-text-s1-height);letter-spacing:var(--pv-text-s1-spacing)}.t-s2{font-weight:var(--pv-text-s2-weight);font-size:var(--pv-text-s2-size);line-height:var(--pv-text-s2-height);letter-spacing:var(--pv-text-s2-spacing)}.t-b1{font-weight:var(--pv-text-b1-weight);font-size:var(--pv-text-b1-size);line-height:var(--pv-text-b1-height);letter-spacing:var(--pv-text-b1-spacing)}.t-b2{font-weight:var(--pv-text-b2-weight);font-size:var(--pv-text-b2-size);line-height:var(--pv-text-b2-height);letter-spacing:var(--pv-text-b2-spacing)}.t-b3{font-weight:var(--pv-text-b3-weight);font-size:var(--pv-text-b3-size);line-height:var(--pv-text-b3-height);letter-spacing:var(--pv-text-b3-spacing)}.t-btn1{font-weight:var(--pv-text-btn1-weight);font-size:var(--pv-text-btn1-size);line-height:var(--pv-text-btn1-height);letter-spacing:var(--pv-text-btn1-spacing)}.t-btn2{font-weight:var(--pv-text-btn2-weight);font-size:var(--pv-text-btn2-size);line-height:var(--pv-text-btn2-height);letter-spacing:var(--pv-text-btn2-spacing)}.t-c1{font-weight:var(--pv-text-c1-weight);font-size:var(--pv-text-c1-size);line-height:var(--pv-text-c1-height);letter-spacing:var(--pv-text-c1-spacing)}.t-c2{font-weight:var(--pv-text-c2-weight);font-size:var(--pv-text-c2-size);line-height:var(--pv-text-c2-height);letter-spacing:var(--pv-text-c2-spacing)}.c-primary-tint-5{--pv-color-base:var(--pv-color-primary-tint-5)}.c-primary-tint-4{--pv-color-base:var(--pv-color-primary-tint-4)}.c-primary-tint-3{--pv-color-base:var(--pv-color-primary-tint-3)}.c-primary-tint-2{--pv-color-base:var(--pv-color-primary-tint-2)}.c-primary-tint-1{--pv-color-base:var(--pv-color-primary-tint-1)}.c-primary{--pv-color-base:var(--pv-color-primary)}.c-primary-shade-1{--pv-color-base:var(--pv-color-primary-shade-1)}.c-primary-shade-2{--pv-color-base:var(--pv-color-primary-shade-2)}.c-primary-shade-3{--pv-color-base:var(--pv-color-primary-shade-3)}.c-primary-shade-4{--pv-color-base:var(--pv-color-primary-shade-4)}.c-primary-shade-5{--pv-color-base:var(--pv-color-primary-shade-5)}.c-primary-contrast{--pv-color-base:var(--pv-color-primary-contrast)}.c-secondary-tint-5{--pv-color-base:var(--pv-color-secondary-tint-5)}.c-secondary-tint-4{--pv-color-base:var(--pv-color-secondary-tint-4)}.c-secondary-tint-3{--pv-color-base:var(--pv-color-secondary-tint-3)}.c-secondary-tint-2{--pv-color-base:var(--pv-color-secondary-tint-2)}.c-secondary-tint-1{--pv-color-base:var(--pv-color-secondary-tint-1)}.c-secondary{--pv-color-base:var(--pv-color-secondary)}.c-secondary-shade-1{--pv-color-base:var(--pv-color-secondary-shade-1)}.c-secondary-shade-2{--pv-color-base:var(--pv-color-secondary-shade-2)}.c-secondary-shade-3{--pv-color-base:var(--pv-color-secondary-shade-3)}.c-secondary-shade-4{--pv-color-base:var(--pv-color-secondary-shade-4)}.c-secondary-shade-5{--pv-color-base:var(--pv-color-secondary-shade-5)}.c-secondary-contrast{--pv-color-base:var(--pv-color-secondary-contrast)}.c-wrong-tint-5{--pv-color-base:var(--pv-color-wrong-tint-5)}.c-wrong-tint-4{--pv-color-base:var(--pv-color-wrong-tint-4)}.c-wrong-tint-3{--pv-color-base:var(--pv-color-wrong-tint-3)}.c-wrong-tint-2{--pv-color-base:var(--pv-color-wrong-tint-2)}.c-wrong-tint-1{--pv-color-base:var(--pv-color-wrong-tint-1)}.c-wrong{--pv-color-base:var(--pv-color-wrong)}.c-wrong-shade-1{--pv-color-base:var(--pv-color-wrong-shade-1)}.c-wrong-shade-2{--pv-color-base:var(--pv-color-wrong-shade-2)}.c-wrong-shade-3{--pv-color-base:var(--pv-color-wrong-shade-3)}.c-wrong-shade-4{--pv-color-base:var(--pv-color-wrong-shade-4)}.c-wrong-shade-5{--pv-color-base:var(--pv-color-wrong-shade-5)}.c-wrong-contrast{--pv-color-base:var(--pv-color-wrong-contrast)}.c-attention-tint-5{--pv-color-base:var(--pv-color-attention-tint-5)}.c-attention-tint-4{--pv-color-base:var(--pv-color-attention-tint-4)}.c-attention-tint-3{--pv-color-base:var(--pv-color-attention-tint-3)}.c-attention-tint-2{--pv-color-base:var(--pv-color-attention-tint-2)}.c-attention-tint-1{--pv-color-base:var(--pv-color-attention-tint-1)}.c-attention{--pv-color-base:var(--pv-color-attention)}.c-attention-shade-1{--pv-color-base:var(--pv-color-attention-shade-1)}.c-attention-shade-2{--pv-color-base:var(--pv-color-attention-shade-2)}.c-attention-shade-3{--pv-color-base:var(--pv-color-attention-shade-3)}.c-attention-shade-4{--pv-color-base:var(--pv-color-attention-shade-4)}.c-attention-shade-5{--pv-color-base:var(--pv-color-attention-shade-5)}.c-success-tint-5{--pv-color-base:var(--pv-color-success-tint-5)}.c-success-tint-4{--pv-color-base:var(--pv-color-success-tint-4)}.c-success-tint-3{--pv-color-base:var(--pv-color-success-tint-3)}.c-success-tint-2{--pv-color-base:var(--pv-color-success-tint-2)}.c-success-tint-1{--pv-color-base:var(--pv-color-success-tint-1)}.c-success{--pv-color-base:var(--pv-color-success)}.c-success-shade-1{--pv-color-base:var(--pv-color-success-shade-1)}.c-success-shade-2{--pv-color-base:var(--pv-color-success-shade-2)}.c-success-shade-3{--pv-color-base:var(--pv-color-success-shade-3)}.c-success-shade-4{--pv-color-base:var(--pv-color-success-shade-4)}.c-success-shade-5{--pv-color-base:var(--pv-color-success-shade-5)}.c-black{--pv-color-base:var(--pv-color-black)}.c-gray-10{--pv-color-base:var(--pv-color-gray-10)}.c-gray-9{--pv-color-base:var(--pv-color-gray-9)}.c-gray-8{--pv-color-base:var(--pv-color-gray-8)}.c-gray-7{--pv-color-base:var(--pv-color-gray-7)}.c-gray-6{--pv-color-base:var(--pv-color-gray-6)}.c-gray-5{--pv-color-base:var(--pv-color-gray-5)}.c-gray-4{--pv-color-base:var(--pv-color-gray-4)}.c-gray-3{--pv-color-base:var(--pv-color-gray-3)}.c-gray-2{--pv-color-base:var(--pv-color-gray-2)}.c-gray-1{--pv-color-base:var(--pv-color-gray-1)}.c-white{--pv-color-base:var(--pv-color-white)}.c-extra-1{--pv-color-base:var(--pv-color-extra-1)}.c-extra-2{--pv-color-base:var(--pv-color-extra-2)}.typography{color:var(--pv-color-base)}.button{display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;background:transparent;border:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;text-decoration:none;outline:none;font-family:inherit;border-radius:4px;height:var(--pv-size-base-6);min-width:var(--pv-size-base-6);padding:0 var(--pv-size-base-2);-webkit-transition:background-color 200ms ease 0s;transition:background-color 200ms ease 0s;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:var(--pv-size-base-2);font-size:0}.button.m_no_padding{padding:0}.button:hover{background-color:var(--pv-color-gray-3)}.button:focus{background-color:var(--pv-color-gray-4)}.button:active{background-color:var(--pv-color-gray-5)}:host{display:block;width:100%;position:relative;min-width:280px;min-height:300px;word-wrap:break-word;word-break:break-word}th,td{border:none}table{width:100%;border-spacing:0;border-collapse:collapse}table td{padding:var(--pv-size-base-2) var(--pv-size-base-4);vertical-align:top}table td:first-child{width:220px}table td:last-child{width:calc(100% - 220px)}table td.monospace{max-width:0}table td.divider{padding:var(--pv-size-base-2) 0}table td.divider span{height:1px;display:block;background-color:var(--pv-color-gray-4)}table .title td{padding-top:var(--pv-size-base-6);padding-bottom:var(--pv-size-base-2)}table table{border-left:1px solid var(--pv-color-gray-5)}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host([data-mobile-screen-view=true]) table,:host([data-mobile-screen-view=true]) tr,:host([data-mobile-screen-view=true]) td{display:block}:host([data-mobile-screen-view=true]) table tr{padding:var(--pv-size-base-2) 0}:host([data-mobile-screen-view=true]) table tr.title{padding-top:var(--pv-size-base-6)}:host([data-mobile-screen-view=true]) table tr.title td{padding:0 var(--pv-size-base-4)}:host([data-mobile-screen-view=true]) table td{padding:0 var(--pv-size-base-4);width:100% !important;max-width:100% !important}:host([data-mobile-screen-view=true]) table td.divider{padding:0}";
344
+ const PeculiarAttributeCertificateViewerStyle0 = certificateViewerCss$2;
338
345
 
339
346
  const AttributeCertificateViewer = class {
340
- constructor(hostRef) {
341
- registerInstance(this, hostRef);
342
- this.getAuthKeyIdParentLink = (value) => {
343
- var _a;
344
- return (_a = this.authKeyIdParentLink) === null || _a === void 0 ? void 0 : _a.replace('{{authKeyId}}', value);
345
- };
346
- this.getAuthKeyIdSiblingsLink = (value) => {
347
- var _a;
348
- return (_a = this.authKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{authKeyId}}', value);
349
- };
350
- this.getSubjectKeyIdChildrenLink = (value) => {
351
- var _a;
352
- return (_a = this.subjectKeyIdChildrenLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
353
- };
354
- this.getSubjectKeyIdSiblingsLink = (value) => {
355
- var _a;
356
- return (_a = this.subjectKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
357
- };
358
- this.certificate = undefined;
359
- this.download = undefined;
360
- this.authKeyIdParentLink = undefined;
361
- this.authKeyIdSiblingsLink = undefined;
362
- this.subjectKeyIdChildrenLink = undefined;
363
- this.subjectKeyIdSiblingsLink = undefined;
364
- this.mobileMediaQueryString = '(max-width: 900px)';
365
- this.mobileScreenView = false;
366
- this.isDecodeInProcess = true;
367
- }
368
- handleMediaQueryChange(event) {
369
- this.mobileScreenView = event.matches;
370
- }
371
- componentWillLoad() {
372
- this.decodeCertificate(this.certificate);
373
- {
374
- this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);
375
- this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));
376
- this.mobileScreenView = this.mobileMediaQuery.matches;
377
- }
378
- }
379
- disconnectedCallback() {
380
- this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));
381
- }
382
- async decodeCertificate(certificate) {
383
- this.isDecodeInProcess = true;
384
- try {
385
- if (certificate instanceof X509AttributeCertificate) {
386
- this.certificateDecoded = certificate;
387
- }
388
- else if (typeof certificate === 'string') {
389
- this.certificateDecoded = new X509AttributeCertificate(certificate);
390
- }
391
- else {
392
- return;
393
- }
394
- this.certificateDecoded.parseExtensions();
395
- this.certificateDecoded.parseAttributes();
396
- await this.certificateDecoded.getThumbprint('SHA-1');
397
- await this.certificateDecoded.getThumbprint('SHA-256');
398
- }
399
- catch (error) {
400
- this.certificateDecodeError = error;
401
- console.error('Error certificate parse:', error);
402
- }
403
- this.isDecodeInProcess = false;
404
- }
405
- /**
406
- * Rerun decodeCertificate if previuos value not equal current value
407
- */
408
- watchCertificateAndDecode(newValue, oldValue) {
409
- if (typeof newValue === 'string' && typeof oldValue === 'string') {
410
- if (newValue !== oldValue) {
411
- this.decodeCertificate(newValue);
412
- }
413
- return;
414
- }
415
- if (newValue instanceof X509AttributeCertificate
416
- && oldValue instanceof X509AttributeCertificate) {
417
- if (newValue.serialNumber !== oldValue.serialNumber) {
418
- this.decodeCertificate(newValue);
419
- }
420
- }
421
- }
422
- // eslint-disable-next-line class-methods-use-this
423
- renderErrorState() {
424
- return (h("div", { class: "status_wrapper" }, h(Typography, null, "There was an error decoding this attribute certificate.")));
425
- }
426
- // eslint-disable-next-line class-methods-use-this
427
- renderEmptyState() {
428
- return (h("div", { class: "status_wrapper" }, h(Typography, null, "There is no attribute certificate available.")));
429
- }
430
- render() {
431
- if (this.certificateDecodeError) {
432
- return this.renderErrorState();
433
- }
434
- if (!this.certificateDecoded) {
435
- return this.renderEmptyState();
436
- }
437
- return (h(Host, { "data-mobile-screen-view": String(this.mobileScreenView) }, h("table", null, h(BasicInformation, Object.assign({}, this.certificateDecoded)), h(Issuer, { issuer: this.certificateDecoded.issuer }), h(Holder, { holder: this.certificateDecoded.holder }), h(Signature, { signature: this.certificateDecoded.signature }), h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }), h(Attributes, { attributes: this.certificateDecoded.attributes, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }), h(Extensions, { extensions: this.certificateDecoded.extensions, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }), this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
438
- }
439
- static get watchers() { return {
440
- "certificate": ["watchCertificateAndDecode"]
441
- }; }
347
+ constructor(hostRef) {
348
+ registerInstance(this, hostRef);
349
+ this.getAuthKeyIdParentLink = (value) => {
350
+ var _a;
351
+ return (_a = this.authKeyIdParentLink) === null || _a === void 0 ? void 0 : _a.replace('{{authKeyId}}', value);
352
+ };
353
+ this.getAuthKeyIdSiblingsLink = (value) => {
354
+ var _a;
355
+ return (_a = this.authKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{authKeyId}}', value);
356
+ };
357
+ this.getSubjectKeyIdChildrenLink = (value) => {
358
+ var _a;
359
+ return (_a = this.subjectKeyIdChildrenLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
360
+ };
361
+ this.getSubjectKeyIdSiblingsLink = (value) => {
362
+ var _a;
363
+ return (_a = this.subjectKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
364
+ };
365
+ this.certificate = undefined;
366
+ this.download = undefined;
367
+ this.authKeyIdParentLink = undefined;
368
+ this.authKeyIdSiblingsLink = undefined;
369
+ this.subjectKeyIdChildrenLink = undefined;
370
+ this.subjectKeyIdSiblingsLink = undefined;
371
+ this.mobileMediaQueryString = '(max-width: 900px)';
372
+ this.mobileScreenView = false;
373
+ this.isDecodeInProcess = true;
374
+ }
375
+ handleMediaQueryChange(event) {
376
+ this.mobileScreenView = event.matches;
377
+ }
378
+ componentWillLoad() {
379
+ this.decodeCertificate(this.certificate);
380
+ {
381
+ this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);
382
+ this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));
383
+ this.mobileScreenView = this.mobileMediaQuery.matches;
384
+ }
385
+ }
386
+ disconnectedCallback() {
387
+ this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));
388
+ }
389
+ async decodeCertificate(certificate) {
390
+ this.isDecodeInProcess = true;
391
+ try {
392
+ if (certificate instanceof X509AttributeCertificate) {
393
+ this.certificateDecoded = certificate;
394
+ }
395
+ else if (typeof certificate === 'string') {
396
+ this.certificateDecoded = new X509AttributeCertificate(certificate);
397
+ }
398
+ else {
399
+ return;
400
+ }
401
+ this.certificateDecoded.parseExtensions();
402
+ this.certificateDecoded.parseAttributes();
403
+ await this.certificateDecoded.getThumbprint('SHA-1');
404
+ await this.certificateDecoded.getThumbprint('SHA-256');
405
+ }
406
+ catch (error) {
407
+ this.certificateDecodeError = error;
408
+ console.error('Error certificate parse:', error);
409
+ }
410
+ this.isDecodeInProcess = false;
411
+ }
412
+ /**
413
+ * Rerun decodeCertificate if previuos value not equal current value
414
+ */
415
+ watchCertificateAndDecode(newValue, oldValue) {
416
+ if (typeof newValue === 'string' && typeof oldValue === 'string') {
417
+ if (newValue !== oldValue) {
418
+ this.decodeCertificate(newValue);
419
+ }
420
+ return;
421
+ }
422
+ if (newValue instanceof X509AttributeCertificate
423
+ && oldValue instanceof X509AttributeCertificate) {
424
+ if (newValue.serialNumber !== oldValue.serialNumber) {
425
+ this.decodeCertificate(newValue);
426
+ }
427
+ }
428
+ }
429
+ // eslint-disable-next-line class-methods-use-this
430
+ renderErrorState() {
431
+ return (h("div", { class: "status_wrapper" }, h(Typography, null, "There was an error decoding this attribute certificate.")));
432
+ }
433
+ // eslint-disable-next-line class-methods-use-this
434
+ renderEmptyState() {
435
+ return (h("div", { class: "status_wrapper" }, h(Typography, null, "There is no attribute certificate available.")));
436
+ }
437
+ render() {
438
+ if (this.certificateDecodeError) {
439
+ return this.renderErrorState();
440
+ }
441
+ if (!this.certificateDecoded) {
442
+ return this.renderEmptyState();
443
+ }
444
+ return (h(Host, { "data-mobile-screen-view": String(this.mobileScreenView) }, h("table", null, h(BasicInformation, Object.assign({}, this.certificateDecoded)), h(Issuer, { issuer: this.certificateDecoded.issuer }), h(Holder, { holder: this.certificateDecoded.holder }), h(Signature, { signature: this.certificateDecoded.signature }), h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }), h(Attributes, { attributes: this.certificateDecoded.attributes, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }), h(Extensions, { extensions: this.certificateDecoded.extensions, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }), this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
445
+ }
446
+ static get watchers() { return {
447
+ "certificate": ["watchCertificateAndDecode"]
448
+ }; }
442
449
  };
443
- AttributeCertificateViewer.style = certificateViewerCss$2;
450
+ AttributeCertificateViewer.style = PeculiarAttributeCertificateViewerStyle0;
444
451
 
445
452
  const certificateViewerCss$1 = "*{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;-webkit-text-size-adjust:none;-webkit-tap-highlight-color:transparent;font-family:var(--pv-font-family, inherit)}.t-h1{font-weight:var(--pv-text-h1-weight);font-size:var(--pv-text-h1-size);line-height:var(--pv-text-h1-height);letter-spacing:var(--pv-text-h1-spacing)}.t-h2{font-weight:var(--pv-text-h2-weight);font-size:var(--pv-text-h2-size);line-height:var(--pv-text-h2-height);letter-spacing:var(--pv-text-h2-spacing)}.t-h3{font-weight:var(--pv-text-h3-weight);font-size:var(--pv-text-h3-size);line-height:var(--pv-text-h3-height);letter-spacing:var(--pv-text-h3-spacing)}.t-h4{font-weight:var(--pv-text-h4-weight);font-size:var(--pv-text-h4-size);line-height:var(--pv-text-h4-height);letter-spacing:var(--pv-text-h4-spacing)}.t-h5{font-weight:var(--pv-text-h5-weight);font-size:var(--pv-text-h5-size);line-height:var(--pv-text-h5-height);letter-spacing:var(--pv-text-h5-spacing)}.t-s1{font-weight:var(--pv-text-s1-weight);font-size:var(--pv-text-s1-size);line-height:var(--pv-text-s1-height);letter-spacing:var(--pv-text-s1-spacing)}.t-s2{font-weight:var(--pv-text-s2-weight);font-size:var(--pv-text-s2-size);line-height:var(--pv-text-s2-height);letter-spacing:var(--pv-text-s2-spacing)}.t-b1{font-weight:var(--pv-text-b1-weight);font-size:var(--pv-text-b1-size);line-height:var(--pv-text-b1-height);letter-spacing:var(--pv-text-b1-spacing)}.t-b2{font-weight:var(--pv-text-b2-weight);font-size:var(--pv-text-b2-size);line-height:var(--pv-text-b2-height);letter-spacing:var(--pv-text-b2-spacing)}.t-b3{font-weight:var(--pv-text-b3-weight);font-size:var(--pv-text-b3-size);line-height:var(--pv-text-b3-height);letter-spacing:var(--pv-text-b3-spacing)}.t-btn1{font-weight:var(--pv-text-btn1-weight);font-size:var(--pv-text-btn1-size);line-height:var(--pv-text-btn1-height);letter-spacing:var(--pv-text-btn1-spacing)}.t-btn2{font-weight:var(--pv-text-btn2-weight);font-size:var(--pv-text-btn2-size);line-height:var(--pv-text-btn2-height);letter-spacing:var(--pv-text-btn2-spacing)}.t-c1{font-weight:var(--pv-text-c1-weight);font-size:var(--pv-text-c1-size);line-height:var(--pv-text-c1-height);letter-spacing:var(--pv-text-c1-spacing)}.t-c2{font-weight:var(--pv-text-c2-weight);font-size:var(--pv-text-c2-size);line-height:var(--pv-text-c2-height);letter-spacing:var(--pv-text-c2-spacing)}.c-primary-tint-5{--pv-color-base:var(--pv-color-primary-tint-5)}.c-primary-tint-4{--pv-color-base:var(--pv-color-primary-tint-4)}.c-primary-tint-3{--pv-color-base:var(--pv-color-primary-tint-3)}.c-primary-tint-2{--pv-color-base:var(--pv-color-primary-tint-2)}.c-primary-tint-1{--pv-color-base:var(--pv-color-primary-tint-1)}.c-primary{--pv-color-base:var(--pv-color-primary)}.c-primary-shade-1{--pv-color-base:var(--pv-color-primary-shade-1)}.c-primary-shade-2{--pv-color-base:var(--pv-color-primary-shade-2)}.c-primary-shade-3{--pv-color-base:var(--pv-color-primary-shade-3)}.c-primary-shade-4{--pv-color-base:var(--pv-color-primary-shade-4)}.c-primary-shade-5{--pv-color-base:var(--pv-color-primary-shade-5)}.c-primary-contrast{--pv-color-base:var(--pv-color-primary-contrast)}.c-secondary-tint-5{--pv-color-base:var(--pv-color-secondary-tint-5)}.c-secondary-tint-4{--pv-color-base:var(--pv-color-secondary-tint-4)}.c-secondary-tint-3{--pv-color-base:var(--pv-color-secondary-tint-3)}.c-secondary-tint-2{--pv-color-base:var(--pv-color-secondary-tint-2)}.c-secondary-tint-1{--pv-color-base:var(--pv-color-secondary-tint-1)}.c-secondary{--pv-color-base:var(--pv-color-secondary)}.c-secondary-shade-1{--pv-color-base:var(--pv-color-secondary-shade-1)}.c-secondary-shade-2{--pv-color-base:var(--pv-color-secondary-shade-2)}.c-secondary-shade-3{--pv-color-base:var(--pv-color-secondary-shade-3)}.c-secondary-shade-4{--pv-color-base:var(--pv-color-secondary-shade-4)}.c-secondary-shade-5{--pv-color-base:var(--pv-color-secondary-shade-5)}.c-secondary-contrast{--pv-color-base:var(--pv-color-secondary-contrast)}.c-wrong-tint-5{--pv-color-base:var(--pv-color-wrong-tint-5)}.c-wrong-tint-4{--pv-color-base:var(--pv-color-wrong-tint-4)}.c-wrong-tint-3{--pv-color-base:var(--pv-color-wrong-tint-3)}.c-wrong-tint-2{--pv-color-base:var(--pv-color-wrong-tint-2)}.c-wrong-tint-1{--pv-color-base:var(--pv-color-wrong-tint-1)}.c-wrong{--pv-color-base:var(--pv-color-wrong)}.c-wrong-shade-1{--pv-color-base:var(--pv-color-wrong-shade-1)}.c-wrong-shade-2{--pv-color-base:var(--pv-color-wrong-shade-2)}.c-wrong-shade-3{--pv-color-base:var(--pv-color-wrong-shade-3)}.c-wrong-shade-4{--pv-color-base:var(--pv-color-wrong-shade-4)}.c-wrong-shade-5{--pv-color-base:var(--pv-color-wrong-shade-5)}.c-wrong-contrast{--pv-color-base:var(--pv-color-wrong-contrast)}.c-attention-tint-5{--pv-color-base:var(--pv-color-attention-tint-5)}.c-attention-tint-4{--pv-color-base:var(--pv-color-attention-tint-4)}.c-attention-tint-3{--pv-color-base:var(--pv-color-attention-tint-3)}.c-attention-tint-2{--pv-color-base:var(--pv-color-attention-tint-2)}.c-attention-tint-1{--pv-color-base:var(--pv-color-attention-tint-1)}.c-attention{--pv-color-base:var(--pv-color-attention)}.c-attention-shade-1{--pv-color-base:var(--pv-color-attention-shade-1)}.c-attention-shade-2{--pv-color-base:var(--pv-color-attention-shade-2)}.c-attention-shade-3{--pv-color-base:var(--pv-color-attention-shade-3)}.c-attention-shade-4{--pv-color-base:var(--pv-color-attention-shade-4)}.c-attention-shade-5{--pv-color-base:var(--pv-color-attention-shade-5)}.c-success-tint-5{--pv-color-base:var(--pv-color-success-tint-5)}.c-success-tint-4{--pv-color-base:var(--pv-color-success-tint-4)}.c-success-tint-3{--pv-color-base:var(--pv-color-success-tint-3)}.c-success-tint-2{--pv-color-base:var(--pv-color-success-tint-2)}.c-success-tint-1{--pv-color-base:var(--pv-color-success-tint-1)}.c-success{--pv-color-base:var(--pv-color-success)}.c-success-shade-1{--pv-color-base:var(--pv-color-success-shade-1)}.c-success-shade-2{--pv-color-base:var(--pv-color-success-shade-2)}.c-success-shade-3{--pv-color-base:var(--pv-color-success-shade-3)}.c-success-shade-4{--pv-color-base:var(--pv-color-success-shade-4)}.c-success-shade-5{--pv-color-base:var(--pv-color-success-shade-5)}.c-black{--pv-color-base:var(--pv-color-black)}.c-gray-10{--pv-color-base:var(--pv-color-gray-10)}.c-gray-9{--pv-color-base:var(--pv-color-gray-9)}.c-gray-8{--pv-color-base:var(--pv-color-gray-8)}.c-gray-7{--pv-color-base:var(--pv-color-gray-7)}.c-gray-6{--pv-color-base:var(--pv-color-gray-6)}.c-gray-5{--pv-color-base:var(--pv-color-gray-5)}.c-gray-4{--pv-color-base:var(--pv-color-gray-4)}.c-gray-3{--pv-color-base:var(--pv-color-gray-3)}.c-gray-2{--pv-color-base:var(--pv-color-gray-2)}.c-gray-1{--pv-color-base:var(--pv-color-gray-1)}.c-white{--pv-color-base:var(--pv-color-white)}.c-extra-1{--pv-color-base:var(--pv-color-extra-1)}.c-extra-2{--pv-color-base:var(--pv-color-extra-2)}.typography{color:var(--pv-color-base)}.button{display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;background:transparent;border:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;text-decoration:none;outline:none;font-family:inherit;border-radius:4px;height:var(--pv-size-base-6);min-width:var(--pv-size-base-6);padding:0 var(--pv-size-base-2);-webkit-transition:background-color 200ms ease 0s;transition:background-color 200ms ease 0s;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:var(--pv-size-base-2);font-size:0}.button.m_no_padding{padding:0}.button:hover{background-color:var(--pv-color-gray-3)}.button:focus{background-color:var(--pv-color-gray-4)}.button:active{background-color:var(--pv-color-gray-5)}:host{display:block;width:100%;position:relative;min-width:280px;min-height:300px;word-wrap:break-word;word-break:break-word}th,td{border:none}table{width:100%;border-spacing:0;border-collapse:collapse}table td{padding:var(--pv-size-base-2) var(--pv-size-base-4);vertical-align:top}table td:first-child{width:220px}table td:last-child{width:calc(100% - 220px)}table td.monospace{max-width:0}table td.divider{padding:var(--pv-size-base-2) 0}table td.divider span{height:1px;display:block;background-color:var(--pv-color-gray-4)}table .title td{padding-top:var(--pv-size-base-6);padding-bottom:var(--pv-size-base-2)}table table{border-left:1px solid var(--pv-color-gray-5)}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host([data-mobile-screen-view=true]) table,:host([data-mobile-screen-view=true]) tr,:host([data-mobile-screen-view=true]) td{display:block}:host([data-mobile-screen-view=true]) table tr{padding:var(--pv-size-base-2) 0}:host([data-mobile-screen-view=true]) table tr.title{padding-top:var(--pv-size-base-6)}:host([data-mobile-screen-view=true]) table tr.title td{padding:0 var(--pv-size-base-4)}:host([data-mobile-screen-view=true]) table td{padding:0 var(--pv-size-base-4);width:100% !important;max-width:100% !important}:host([data-mobile-screen-view=true]) table td.divider{padding:0}";
453
+ const PeculiarCrlViewerStyle0 = certificateViewerCss$1;
446
454
 
447
455
  const CrlViewer = class {
448
- constructor(hostRef) {
449
- registerInstance(this, hostRef);
450
- this.getAuthKeyIdParentLink = (value) => {
451
- var _a;
452
- return (_a = this.authKeyIdParentLink) === null || _a === void 0 ? void 0 : _a.replace('{{authKeyId}}', value);
453
- };
454
- this.getAuthKeyIdSiblingsLink = (value) => {
455
- var _a;
456
- return (_a = this.authKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{authKeyId}}', value);
457
- };
458
- this.certificate = undefined;
459
- this.download = undefined;
460
- this.authKeyIdParentLink = undefined;
461
- this.authKeyIdSiblingsLink = undefined;
462
- this.issuerDnLink = undefined;
463
- this.mobileMediaQueryString = '(max-width: 900px)';
464
- this.mobileScreenView = false;
465
- this.isDecodeInProcess = true;
466
- }
467
- handleMediaQueryChange(event) {
468
- this.mobileScreenView = event.matches;
469
- }
470
- componentWillLoad() {
471
- this.decodeCertificate(this.certificate);
472
- {
473
- this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);
474
- this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));
475
- this.mobileScreenView = this.mobileMediaQuery.matches;
476
- }
477
- }
478
- disconnectedCallback() {
479
- this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));
480
- }
481
- async decodeCertificate(certificate) {
482
- this.isDecodeInProcess = true;
483
- try {
484
- if (certificate instanceof CRL) {
485
- this.certificateDecoded = certificate;
486
- }
487
- else if (typeof certificate === 'string') {
488
- this.certificateDecoded = new CRL(certificate);
489
- }
490
- else {
491
- return;
492
- }
493
- this.certificateDecoded.parseExtensions();
494
- await this.certificateDecoded.getThumbprint('SHA-1');
495
- await this.certificateDecoded.getThumbprint('SHA-256');
496
- }
497
- catch (error) {
498
- this.certificateDecodeError = error;
499
- console.error('Error certificate parse:', error);
500
- }
501
- this.isDecodeInProcess = false;
502
- }
503
- getIssuerDnLink() {
504
- return this.issuerDnLink;
505
- }
506
- /**
507
- * Rerun decodeCertificate if previuos value not equal current value
508
- */
509
- watchCertificateAndDecode(newValue, oldValue) {
510
- if (typeof newValue === 'string' && typeof oldValue === 'string') {
511
- if (newValue !== oldValue) {
512
- this.decodeCertificate(newValue);
513
- }
514
- return;
515
- }
516
- if (newValue instanceof CRL
517
- && oldValue instanceof CRL) {
518
- if (newValue.commonName !== oldValue.commonName) {
519
- this.decodeCertificate(newValue);
520
- }
521
- }
522
- }
523
- // eslint-disable-next-line class-methods-use-this
524
- renderErrorState() {
525
- return (h("div", { class: "status_wrapper" }, h(Typography, null, "There was an error decoding this certificate revocation list.")));
526
- }
527
- // eslint-disable-next-line class-methods-use-this
528
- renderEmptyState() {
529
- return (h("div", { class: "status_wrapper" }, h(Typography, null, "There is no certificate revocation list available.")));
530
- }
531
- render() {
532
- if (this.certificateDecodeError) {
533
- return this.renderErrorState();
534
- }
535
- if (!this.certificateDecoded) {
536
- return this.renderEmptyState();
537
- }
538
- return (h(Host, { "data-mobile-screen-view": String(this.mobileScreenView) }, h("table", null, h(BasicInformation, Object.assign({}, this.certificateDecoded)), h(IssuerName, { name: this.certificateDecoded.issuer, issuerDnLink: this.getIssuerDnLink() }), h(Signature, { signature: this.certificateDecoded.signature }), h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }), h(Extensions, { extensions: this.certificateDecoded.extensions, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink }), h(RevokedCertificates, { revokedCertificates: this.certificateDecoded.revokedCertificates, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink }), this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
539
- }
540
- static get watchers() { return {
541
- "certificate": ["watchCertificateAndDecode"]
542
- }; }
456
+ constructor(hostRef) {
457
+ registerInstance(this, hostRef);
458
+ this.getAuthKeyIdParentLink = (value) => {
459
+ var _a;
460
+ return (_a = this.authKeyIdParentLink) === null || _a === void 0 ? void 0 : _a.replace('{{authKeyId}}', value);
461
+ };
462
+ this.getAuthKeyIdSiblingsLink = (value) => {
463
+ var _a;
464
+ return (_a = this.authKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{authKeyId}}', value);
465
+ };
466
+ this.certificate = undefined;
467
+ this.download = undefined;
468
+ this.authKeyIdParentLink = undefined;
469
+ this.authKeyIdSiblingsLink = undefined;
470
+ this.issuerDnLink = undefined;
471
+ this.mobileMediaQueryString = '(max-width: 900px)';
472
+ this.mobileScreenView = false;
473
+ this.isDecodeInProcess = true;
474
+ }
475
+ handleMediaQueryChange(event) {
476
+ this.mobileScreenView = event.matches;
477
+ }
478
+ componentWillLoad() {
479
+ this.decodeCertificate(this.certificate);
480
+ {
481
+ this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);
482
+ this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));
483
+ this.mobileScreenView = this.mobileMediaQuery.matches;
484
+ }
485
+ }
486
+ disconnectedCallback() {
487
+ this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));
488
+ }
489
+ async decodeCertificate(certificate) {
490
+ this.isDecodeInProcess = true;
491
+ try {
492
+ if (certificate instanceof X509Crl) {
493
+ this.certificateDecoded = certificate;
494
+ }
495
+ else if (typeof certificate === 'string') {
496
+ this.certificateDecoded = new X509Crl(certificate);
497
+ }
498
+ else {
499
+ return;
500
+ }
501
+ this.certificateDecoded.parseExtensions();
502
+ await this.certificateDecoded.getThumbprint('SHA-1');
503
+ await this.certificateDecoded.getThumbprint('SHA-256');
504
+ }
505
+ catch (error) {
506
+ this.certificateDecodeError = error;
507
+ console.error('Error certificate parse:', error);
508
+ }
509
+ this.isDecodeInProcess = false;
510
+ }
511
+ getIssuerDnLink() {
512
+ return this.issuerDnLink;
513
+ }
514
+ /**
515
+ * Rerun decodeCertificate if previuos value not equal current value
516
+ */
517
+ watchCertificateAndDecode(newValue, oldValue) {
518
+ if (typeof newValue === 'string' && typeof oldValue === 'string') {
519
+ if (newValue !== oldValue) {
520
+ this.decodeCertificate(newValue);
521
+ }
522
+ return;
523
+ }
524
+ if (newValue instanceof X509Crl
525
+ && oldValue instanceof X509Crl) {
526
+ if (newValue.commonName !== oldValue.commonName) {
527
+ this.decodeCertificate(newValue);
528
+ }
529
+ }
530
+ }
531
+ // eslint-disable-next-line class-methods-use-this
532
+ renderErrorState() {
533
+ return (h("div", { class: "status_wrapper" }, h(Typography, null, "There was an error decoding this certificate revocation list.")));
534
+ }
535
+ // eslint-disable-next-line class-methods-use-this
536
+ renderEmptyState() {
537
+ return (h("div", { class: "status_wrapper" }, h(Typography, null, "There is no certificate revocation list available.")));
538
+ }
539
+ render() {
540
+ if (this.certificateDecodeError) {
541
+ return this.renderErrorState();
542
+ }
543
+ if (!this.certificateDecoded) {
544
+ return this.renderEmptyState();
545
+ }
546
+ return (h(Host, { "data-mobile-screen-view": String(this.mobileScreenView) }, h("table", null, h(BasicInformation, Object.assign({}, this.certificateDecoded)), h(IssuerName, { name: this.certificateDecoded.issuer, issuerDnLink: this.getIssuerDnLink() }), h(Signature, { signature: this.certificateDecoded.signature }), h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }), h(Extensions, { extensions: this.certificateDecoded.extensions, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink }), h(RevokedCertificates, { revokedCertificates: this.certificateDecoded.revokedCertificates, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink }), this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
547
+ }
548
+ static get watchers() { return {
549
+ "certificate": ["watchCertificateAndDecode"]
550
+ }; }
543
551
  };
544
- CrlViewer.style = certificateViewerCss$1;
552
+ CrlViewer.style = PeculiarCrlViewerStyle0;
545
553
 
546
554
  const certificateViewerCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;-webkit-text-size-adjust:none;-webkit-tap-highlight-color:transparent;font-family:var(--pv-font-family, inherit)}.t-h1{font-weight:var(--pv-text-h1-weight);font-size:var(--pv-text-h1-size);line-height:var(--pv-text-h1-height);letter-spacing:var(--pv-text-h1-spacing)}.t-h2{font-weight:var(--pv-text-h2-weight);font-size:var(--pv-text-h2-size);line-height:var(--pv-text-h2-height);letter-spacing:var(--pv-text-h2-spacing)}.t-h3{font-weight:var(--pv-text-h3-weight);font-size:var(--pv-text-h3-size);line-height:var(--pv-text-h3-height);letter-spacing:var(--pv-text-h3-spacing)}.t-h4{font-weight:var(--pv-text-h4-weight);font-size:var(--pv-text-h4-size);line-height:var(--pv-text-h4-height);letter-spacing:var(--pv-text-h4-spacing)}.t-h5{font-weight:var(--pv-text-h5-weight);font-size:var(--pv-text-h5-size);line-height:var(--pv-text-h5-height);letter-spacing:var(--pv-text-h5-spacing)}.t-s1{font-weight:var(--pv-text-s1-weight);font-size:var(--pv-text-s1-size);line-height:var(--pv-text-s1-height);letter-spacing:var(--pv-text-s1-spacing)}.t-s2{font-weight:var(--pv-text-s2-weight);font-size:var(--pv-text-s2-size);line-height:var(--pv-text-s2-height);letter-spacing:var(--pv-text-s2-spacing)}.t-b1{font-weight:var(--pv-text-b1-weight);font-size:var(--pv-text-b1-size);line-height:var(--pv-text-b1-height);letter-spacing:var(--pv-text-b1-spacing)}.t-b2{font-weight:var(--pv-text-b2-weight);font-size:var(--pv-text-b2-size);line-height:var(--pv-text-b2-height);letter-spacing:var(--pv-text-b2-spacing)}.t-b3{font-weight:var(--pv-text-b3-weight);font-size:var(--pv-text-b3-size);line-height:var(--pv-text-b3-height);letter-spacing:var(--pv-text-b3-spacing)}.t-btn1{font-weight:var(--pv-text-btn1-weight);font-size:var(--pv-text-btn1-size);line-height:var(--pv-text-btn1-height);letter-spacing:var(--pv-text-btn1-spacing)}.t-btn2{font-weight:var(--pv-text-btn2-weight);font-size:var(--pv-text-btn2-size);line-height:var(--pv-text-btn2-height);letter-spacing:var(--pv-text-btn2-spacing)}.t-c1{font-weight:var(--pv-text-c1-weight);font-size:var(--pv-text-c1-size);line-height:var(--pv-text-c1-height);letter-spacing:var(--pv-text-c1-spacing)}.t-c2{font-weight:var(--pv-text-c2-weight);font-size:var(--pv-text-c2-size);line-height:var(--pv-text-c2-height);letter-spacing:var(--pv-text-c2-spacing)}.c-primary-tint-5{--pv-color-base:var(--pv-color-primary-tint-5)}.c-primary-tint-4{--pv-color-base:var(--pv-color-primary-tint-4)}.c-primary-tint-3{--pv-color-base:var(--pv-color-primary-tint-3)}.c-primary-tint-2{--pv-color-base:var(--pv-color-primary-tint-2)}.c-primary-tint-1{--pv-color-base:var(--pv-color-primary-tint-1)}.c-primary{--pv-color-base:var(--pv-color-primary)}.c-primary-shade-1{--pv-color-base:var(--pv-color-primary-shade-1)}.c-primary-shade-2{--pv-color-base:var(--pv-color-primary-shade-2)}.c-primary-shade-3{--pv-color-base:var(--pv-color-primary-shade-3)}.c-primary-shade-4{--pv-color-base:var(--pv-color-primary-shade-4)}.c-primary-shade-5{--pv-color-base:var(--pv-color-primary-shade-5)}.c-primary-contrast{--pv-color-base:var(--pv-color-primary-contrast)}.c-secondary-tint-5{--pv-color-base:var(--pv-color-secondary-tint-5)}.c-secondary-tint-4{--pv-color-base:var(--pv-color-secondary-tint-4)}.c-secondary-tint-3{--pv-color-base:var(--pv-color-secondary-tint-3)}.c-secondary-tint-2{--pv-color-base:var(--pv-color-secondary-tint-2)}.c-secondary-tint-1{--pv-color-base:var(--pv-color-secondary-tint-1)}.c-secondary{--pv-color-base:var(--pv-color-secondary)}.c-secondary-shade-1{--pv-color-base:var(--pv-color-secondary-shade-1)}.c-secondary-shade-2{--pv-color-base:var(--pv-color-secondary-shade-2)}.c-secondary-shade-3{--pv-color-base:var(--pv-color-secondary-shade-3)}.c-secondary-shade-4{--pv-color-base:var(--pv-color-secondary-shade-4)}.c-secondary-shade-5{--pv-color-base:var(--pv-color-secondary-shade-5)}.c-secondary-contrast{--pv-color-base:var(--pv-color-secondary-contrast)}.c-wrong-tint-5{--pv-color-base:var(--pv-color-wrong-tint-5)}.c-wrong-tint-4{--pv-color-base:var(--pv-color-wrong-tint-4)}.c-wrong-tint-3{--pv-color-base:var(--pv-color-wrong-tint-3)}.c-wrong-tint-2{--pv-color-base:var(--pv-color-wrong-tint-2)}.c-wrong-tint-1{--pv-color-base:var(--pv-color-wrong-tint-1)}.c-wrong{--pv-color-base:var(--pv-color-wrong)}.c-wrong-shade-1{--pv-color-base:var(--pv-color-wrong-shade-1)}.c-wrong-shade-2{--pv-color-base:var(--pv-color-wrong-shade-2)}.c-wrong-shade-3{--pv-color-base:var(--pv-color-wrong-shade-3)}.c-wrong-shade-4{--pv-color-base:var(--pv-color-wrong-shade-4)}.c-wrong-shade-5{--pv-color-base:var(--pv-color-wrong-shade-5)}.c-wrong-contrast{--pv-color-base:var(--pv-color-wrong-contrast)}.c-attention-tint-5{--pv-color-base:var(--pv-color-attention-tint-5)}.c-attention-tint-4{--pv-color-base:var(--pv-color-attention-tint-4)}.c-attention-tint-3{--pv-color-base:var(--pv-color-attention-tint-3)}.c-attention-tint-2{--pv-color-base:var(--pv-color-attention-tint-2)}.c-attention-tint-1{--pv-color-base:var(--pv-color-attention-tint-1)}.c-attention{--pv-color-base:var(--pv-color-attention)}.c-attention-shade-1{--pv-color-base:var(--pv-color-attention-shade-1)}.c-attention-shade-2{--pv-color-base:var(--pv-color-attention-shade-2)}.c-attention-shade-3{--pv-color-base:var(--pv-color-attention-shade-3)}.c-attention-shade-4{--pv-color-base:var(--pv-color-attention-shade-4)}.c-attention-shade-5{--pv-color-base:var(--pv-color-attention-shade-5)}.c-success-tint-5{--pv-color-base:var(--pv-color-success-tint-5)}.c-success-tint-4{--pv-color-base:var(--pv-color-success-tint-4)}.c-success-tint-3{--pv-color-base:var(--pv-color-success-tint-3)}.c-success-tint-2{--pv-color-base:var(--pv-color-success-tint-2)}.c-success-tint-1{--pv-color-base:var(--pv-color-success-tint-1)}.c-success{--pv-color-base:var(--pv-color-success)}.c-success-shade-1{--pv-color-base:var(--pv-color-success-shade-1)}.c-success-shade-2{--pv-color-base:var(--pv-color-success-shade-2)}.c-success-shade-3{--pv-color-base:var(--pv-color-success-shade-3)}.c-success-shade-4{--pv-color-base:var(--pv-color-success-shade-4)}.c-success-shade-5{--pv-color-base:var(--pv-color-success-shade-5)}.c-black{--pv-color-base:var(--pv-color-black)}.c-gray-10{--pv-color-base:var(--pv-color-gray-10)}.c-gray-9{--pv-color-base:var(--pv-color-gray-9)}.c-gray-8{--pv-color-base:var(--pv-color-gray-8)}.c-gray-7{--pv-color-base:var(--pv-color-gray-7)}.c-gray-6{--pv-color-base:var(--pv-color-gray-6)}.c-gray-5{--pv-color-base:var(--pv-color-gray-5)}.c-gray-4{--pv-color-base:var(--pv-color-gray-4)}.c-gray-3{--pv-color-base:var(--pv-color-gray-3)}.c-gray-2{--pv-color-base:var(--pv-color-gray-2)}.c-gray-1{--pv-color-base:var(--pv-color-gray-1)}.c-white{--pv-color-base:var(--pv-color-white)}.c-extra-1{--pv-color-base:var(--pv-color-extra-1)}.c-extra-2{--pv-color-base:var(--pv-color-extra-2)}.typography{color:var(--pv-color-base)}.button{display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;background:transparent;border:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;text-decoration:none;outline:none;font-family:inherit;border-radius:4px;height:var(--pv-size-base-6);min-width:var(--pv-size-base-6);padding:0 var(--pv-size-base-2);-webkit-transition:background-color 200ms ease 0s;transition:background-color 200ms ease 0s;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:var(--pv-size-base-2);font-size:0}.button.m_no_padding{padding:0}.button:hover{background-color:var(--pv-color-gray-3)}.button:focus{background-color:var(--pv-color-gray-4)}.button:active{background-color:var(--pv-color-gray-5)}:host{display:block;width:100%;position:relative;min-width:280px;min-height:300px;word-wrap:break-word;word-break:break-word}th,td{border:none}table{width:100%;border-spacing:0;border-collapse:collapse}table td{padding:var(--pv-size-base-2) var(--pv-size-base-4);vertical-align:top}table td:first-child{width:220px}table td:last-child{width:calc(100% - 220px)}table td.monospace{max-width:0}table td.divider{padding:var(--pv-size-base-2) 0}table td.divider span{height:1px;display:block;background-color:var(--pv-color-gray-4)}table .title td{padding-top:var(--pv-size-base-6);padding-bottom:var(--pv-size-base-2)}table table{border-left:1px solid var(--pv-color-gray-5)}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host([data-mobile-screen-view=true]) table,:host([data-mobile-screen-view=true]) tr,:host([data-mobile-screen-view=true]) td{display:block}:host([data-mobile-screen-view=true]) table tr{padding:var(--pv-size-base-2) 0}:host([data-mobile-screen-view=true]) table tr.title{padding-top:var(--pv-size-base-6)}:host([data-mobile-screen-view=true]) table tr.title td{padding:0 var(--pv-size-base-4)}:host([data-mobile-screen-view=true]) table td{padding:0 var(--pv-size-base-4);width:100% !important;max-width:100% !important}:host([data-mobile-screen-view=true]) table td.divider{padding:0}";
555
+ const PeculiarCsrViewerStyle0 = certificateViewerCss;
547
556
 
548
557
  const CsrViewer = class {
549
- constructor(hostRef) {
550
- registerInstance(this, hostRef);
558
+ constructor(hostRef) {
559
+ registerInstance(this, hostRef);
560
+ // eslint-disable-next-line class-methods-use-this
561
+ this.getAuthKeyIdParentLink = (value) => value;
562
+ // eslint-disable-next-line class-methods-use-this
563
+ this.getAuthKeyIdSiblingsLink = (value) => value;
564
+ this.getSubjectKeyIdChildrenLink = (value) => {
565
+ var _a;
566
+ return (_a = this.subjectKeyIdChildrenLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
567
+ };
568
+ this.getSubjectKeyIdSiblingsLink = (value) => {
569
+ var _a;
570
+ return (_a = this.subjectKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
571
+ };
572
+ this.certificate = undefined;
573
+ this.download = undefined;
574
+ this.subjectKeyIdChildrenLink = undefined;
575
+ this.subjectKeyIdSiblingsLink = undefined;
576
+ this.mobileMediaQueryString = '(max-width: 900px)';
577
+ this.mobileScreenView = false;
578
+ this.isDecodeInProcess = true;
579
+ }
580
+ handleMediaQueryChange(event) {
581
+ this.mobileScreenView = event.matches;
582
+ }
583
+ componentWillLoad() {
584
+ this.decodeCertificate(this.certificate);
585
+ {
586
+ this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);
587
+ this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));
588
+ this.mobileScreenView = this.mobileMediaQuery.matches;
589
+ }
590
+ }
591
+ disconnectedCallback() {
592
+ this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));
593
+ }
594
+ async decodeCertificate(certificate) {
595
+ this.isDecodeInProcess = true;
596
+ try {
597
+ if (certificate instanceof Pkcs10CertificateRequest) {
598
+ this.certificateDecoded = certificate;
599
+ }
600
+ else if (typeof certificate === 'string') {
601
+ this.certificateDecoded = new Pkcs10CertificateRequest(certificate);
602
+ }
603
+ else {
604
+ return;
605
+ }
606
+ this.certificateDecoded.parseAttributes();
607
+ await this.certificateDecoded.getThumbprint('SHA-1');
608
+ await this.certificateDecoded.getThumbprint('SHA-256');
609
+ }
610
+ catch (error) {
611
+ this.certificateDecodeError = error;
612
+ console.error('Error certificate parse:', error);
613
+ }
614
+ this.isDecodeInProcess = false;
615
+ }
616
+ /**
617
+ * Rerun decodeCertificate if previuos value not equal current value
618
+ */
619
+ watchCertificateAndDecode(newValue, oldValue) {
620
+ if (typeof newValue === 'string' && typeof oldValue === 'string') {
621
+ if (newValue !== oldValue) {
622
+ this.decodeCertificate(newValue);
623
+ }
624
+ return;
625
+ }
626
+ if (newValue instanceof Pkcs10CertificateRequest
627
+ && oldValue instanceof Pkcs10CertificateRequest) {
628
+ if (newValue.commonName !== oldValue.commonName) {
629
+ this.decodeCertificate(newValue);
630
+ }
631
+ }
632
+ }
551
633
  // eslint-disable-next-line class-methods-use-this
552
- this.getAuthKeyIdParentLink = (value) => value;
634
+ renderErrorState() {
635
+ return (h("div", { class: "status_wrapper" }, h(Typography, null, "There was an error decoding this certificate request.")));
636
+ }
553
637
  // eslint-disable-next-line class-methods-use-this
554
- this.getAuthKeyIdSiblingsLink = (value) => value;
555
- this.getSubjectKeyIdChildrenLink = (value) => {
556
- var _a;
557
- return (_a = this.subjectKeyIdChildrenLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
558
- };
559
- this.getSubjectKeyIdSiblingsLink = (value) => {
560
- var _a;
561
- return (_a = this.subjectKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
562
- };
563
- this.certificate = undefined;
564
- this.download = undefined;
565
- this.subjectKeyIdChildrenLink = undefined;
566
- this.subjectKeyIdSiblingsLink = undefined;
567
- this.mobileMediaQueryString = '(max-width: 900px)';
568
- this.mobileScreenView = false;
569
- this.isDecodeInProcess = true;
570
- }
571
- handleMediaQueryChange(event) {
572
- this.mobileScreenView = event.matches;
573
- }
574
- componentWillLoad() {
575
- this.decodeCertificate(this.certificate);
576
- {
577
- this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);
578
- this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));
579
- this.mobileScreenView = this.mobileMediaQuery.matches;
580
- }
581
- }
582
- disconnectedCallback() {
583
- this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));
584
- }
585
- async decodeCertificate(certificate) {
586
- this.isDecodeInProcess = true;
587
- try {
588
- if (certificate instanceof CSR) {
589
- this.certificateDecoded = certificate;
590
- }
591
- else if (typeof certificate === 'string') {
592
- this.certificateDecoded = new CSR(certificate);
593
- }
594
- else {
595
- return;
596
- }
597
- this.certificateDecoded.parseAttributes();
598
- await this.certificateDecoded.getThumbprint('SHA-1');
599
- await this.certificateDecoded.getThumbprint('SHA-256');
600
- }
601
- catch (error) {
602
- this.certificateDecodeError = error;
603
- console.error('Error certificate parse:', error);
604
- }
605
- this.isDecodeInProcess = false;
606
- }
607
- /**
608
- * Rerun decodeCertificate if previuos value not equal current value
609
- */
610
- watchCertificateAndDecode(newValue, oldValue) {
611
- if (typeof newValue === 'string' && typeof oldValue === 'string') {
612
- if (newValue !== oldValue) {
613
- this.decodeCertificate(newValue);
614
- }
615
- return;
616
- }
617
- if (newValue instanceof CSR
618
- && oldValue instanceof CSR) {
619
- if (newValue.commonName !== oldValue.commonName) {
620
- this.decodeCertificate(newValue);
621
- }
622
- }
623
- }
624
- // eslint-disable-next-line class-methods-use-this
625
- renderErrorState() {
626
- return (h("div", { class: "status_wrapper" }, h(Typography, null, "There was an error decoding this certificate request.")));
627
- }
628
- // eslint-disable-next-line class-methods-use-this
629
- renderEmptyState() {
630
- return (h("div", { class: "status_wrapper" }, h(Typography, null, "There is no certificate request available.")));
631
- }
632
- getExtensionRequestAttribute() {
633
- if (!this.certificateDecoded) {
634
- return undefined;
635
- }
636
- return this.certificateDecoded.attributes
637
- .find((attribute) => attribute.asn.type === '1.2.840.113549.1.9.14');
638
- }
639
- render() {
640
- if (this.certificateDecodeError) {
641
- return this.renderErrorState();
642
- }
643
- if (!this.certificateDecoded) {
644
- return this.renderEmptyState();
645
- }
646
- const extensionRequestAttribute = this.getExtensionRequestAttribute();
647
- return (h(Host, { "data-mobile-screen-view": String(this.mobileScreenView) }, h("table", null, h(BasicInformation, Object.assign({}, this.certificateDecoded)), h(SubjectName, { name: this.certificateDecoded.subject }), h(PublicKey, { publicKey: this.certificateDecoded.publicKey }), h(Signature, { signature: this.certificateDecoded.signature }), h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }), h(Attributes, { attributes: this.certificateDecoded.attributes, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }), h(Extensions, { extensions: extensionRequestAttribute === null || extensionRequestAttribute === void 0 ? void 0 : extensionRequestAttribute.value, title: "Extension Request", getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }), this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
648
- }
649
- static get watchers() { return {
650
- "certificate": ["watchCertificateAndDecode"]
651
- }; }
638
+ renderEmptyState() {
639
+ return (h("div", { class: "status_wrapper" }, h(Typography, null, "There is no certificate request available.")));
640
+ }
641
+ render() {
642
+ if (this.certificateDecodeError) {
643
+ return this.renderErrorState();
644
+ }
645
+ if (!this.certificateDecoded) {
646
+ return this.renderEmptyState();
647
+ }
648
+ return (h(Host, { "data-mobile-screen-view": String(this.mobileScreenView) }, h("table", null, h(BasicInformation, Object.assign({}, this.certificateDecoded)), h(SubjectName, { name: this.certificateDecoded.subject }), h(PublicKey, { publicKey: this.certificateDecoded.publicKey }), h(Signature, { signature: this.certificateDecoded.signature }), h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }), h(Attributes, { attributes: this.certificateDecoded.attributes, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }), h(Extensions, { extensions: this.certificateDecoded.extensions, title: "Extension Request", getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }), this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
649
+ }
650
+ static get watchers() { return {
651
+ "certificate": ["watchCertificateAndDecode"]
652
+ }; }
652
653
  };
653
- CsrViewer.style = certificateViewerCss;
654
+ CsrViewer.style = PeculiarCsrViewerStyle0;
654
655
 
655
656
  export { AttributeCertificateViewer as peculiar_attribute_certificate_viewer, CrlViewer as peculiar_crl_viewer, CsrViewer as peculiar_csr_viewer };
656
657