@peculiar/certificates-viewer 4.2.0 → 4.2.1

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 (657) 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 +222 -220
  6. package/components/attribute-certificate-viewer.js.map +1 -1
  7. package/components/button-menu.js +36 -35
  8. package/components/button-menu.js.map +1 -1
  9. package/components/button.js +42 -42
  10. package/components/button.js.map +1 -1
  11. package/components/certificate-viewer.js +250 -249
  12. package/components/certificate-viewer.js.map +1 -1
  13. package/components/circular-progress.js +34 -33
  14. package/components/circular-progress.js.map +1 -1
  15. package/components/crl-viewer.js +214 -213
  16. package/components/crl-viewer.js.map +1 -1
  17. package/components/cross.js +9 -9
  18. package/components/cross.js.map +1 -1
  19. package/components/csr-viewer.js +200 -202
  20. package/components/csr-viewer.js.map +1 -1
  21. package/components/download.js +56 -56
  22. package/components/download.js.map +1 -1
  23. package/components/highlight-words.js +45 -44
  24. package/components/highlight-words.js.map +1 -1
  25. package/components/index2.js +146 -156
  26. package/components/index2.js.map +1 -1
  27. package/components/issuer_name.js +6 -6
  28. package/components/issuer_name.js.map +1 -1
  29. package/components/miscellaneous.js +3335 -3403
  30. package/components/miscellaneous.js.map +1 -1
  31. package/components/peculiar-attribute-certificate-viewer.d.ts +2 -2
  32. package/components/peculiar-button-menu.d.ts +2 -2
  33. package/components/peculiar-certificate-decoder.d.ts +2 -2
  34. package/components/peculiar-certificate-decoder.js +183 -182
  35. package/components/peculiar-certificate-decoder.js.map +1 -1
  36. package/components/peculiar-certificate-viewer.d.ts +2 -2
  37. package/components/peculiar-certificates-viewer.d.ts +2 -2
  38. package/components/peculiar-certificates-viewer.js +297 -296
  39. package/components/peculiar-certificates-viewer.js.map +1 -1
  40. package/components/peculiar-circular-progress.d.ts +2 -2
  41. package/components/peculiar-crl-viewer.d.ts +2 -2
  42. package/components/peculiar-csr-viewer.d.ts +2 -2
  43. package/components/peculiar-highlight-words.d.ts +2 -2
  44. package/components/peculiar-text-hider.d.ts +2 -2
  45. package/components/peculiar-text-hider.js +23 -22
  46. package/components/peculiar-text-hider.js.map +1 -1
  47. package/components/subject_name.js +35 -35
  48. package/components/subject_name.js.map +1 -1
  49. package/dist/cjs/actions-789906f5.js +23 -0
  50. package/dist/cjs/{actions-19013d4a.js.map → actions-789906f5.js.map} +1 -1
  51. package/dist/cjs/app-globals-c20ffa41.js +10 -0
  52. package/dist/cjs/app-globals-c20ffa41.js.map +1 -0
  53. package/dist/cjs/arrow_top-76e4261e.js +37 -0
  54. package/dist/cjs/{arrow_top-834fb7ec.js.map → arrow_top-76e4261e.js.map} +1 -1
  55. package/dist/cjs/button-87086210.js +77 -0
  56. package/dist/cjs/{button-14e2b73f.js.map → button-87086210.js.map} +1 -1
  57. package/dist/cjs/{certification_request-5672c667.js → certification_request-b0d72620.js} +2636 -2706
  58. package/dist/cjs/certification_request-b0d72620.js.map +1 -0
  59. package/dist/cjs/crl-812dd7a1.js +312 -0
  60. package/dist/cjs/crl-812dd7a1.js.map +1 -0
  61. package/dist/cjs/cross-bd099933.js +51 -0
  62. package/dist/cjs/{cross-9872c473.js.map → cross-bd099933.js.map} +1 -1
  63. package/dist/cjs/{download-0fa5b33c.js → download-6f550549.js} +50 -50
  64. package/dist/cjs/download-6f550549.js.map +1 -0
  65. package/dist/cjs/download-820d66ba.js +23 -0
  66. package/dist/cjs/{download-254ddc57.js.map → download-820d66ba.js.map} +1 -1
  67. package/dist/cjs/{index-efd561e9.js → index-e2ae280a.js} +398 -145
  68. package/dist/cjs/index-e2ae280a.js.map +1 -0
  69. package/dist/cjs/index.cjs.js +8 -8
  70. package/dist/cjs/link-a3d3799d.js +25 -0
  71. package/dist/cjs/{link-6aea0be4.js.map → link-a3d3799d.js.map} +1 -1
  72. package/dist/cjs/loader.cjs.js +4 -2
  73. package/dist/cjs/loader.cjs.js.map +1 -1
  74. package/dist/cjs/miscellaneous-dcb93a5b.js +1419 -0
  75. package/dist/cjs/miscellaneous-dcb93a5b.js.map +1 -0
  76. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +481 -480
  77. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js.map +1 -1
  78. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +72 -69
  79. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js.map +1 -1
  80. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +151 -150
  81. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +1 -1
  82. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +107 -106
  83. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -1
  84. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +258 -257
  85. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -1
  86. package/dist/cjs/peculiar-text-hider.cjs.entry.js +12 -11
  87. package/dist/cjs/peculiar-text-hider.cjs.entry.js.map +1 -1
  88. package/dist/cjs/peculiar.cjs.js +5 -3
  89. package/dist/cjs/peculiar.cjs.js.map +1 -1
  90. package/dist/cjs/x509_certificate-ebf4cbd4.js +160 -0
  91. package/dist/cjs/x509_certificate-ebf4cbd4.js.map +1 -0
  92. package/dist/collection/collection-manifest.json +2 -2
  93. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +259 -259
  94. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js.map +1 -1
  95. package/dist/collection/components/button/button.js +9 -9
  96. package/dist/collection/components/button/button.js.map +1 -1
  97. package/dist/collection/components/button-menu/button-menu.js +60 -60
  98. package/dist/collection/components/button-menu/button-menu.js.map +1 -1
  99. package/dist/collection/components/certificate-decoder/certificate-decoder.js +211 -211
  100. package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -1
  101. package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js +4 -3
  102. package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js.map +1 -1
  103. package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js +2 -2
  104. package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js.map +1 -1
  105. package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js +6 -6
  106. package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js.map +1 -1
  107. package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js +2 -2
  108. package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js.map +1 -1
  109. package/dist/collection/components/certificate-details-parts/attributes/index.js +42 -42
  110. package/dist/collection/components/certificate-details-parts/attributes/index.js.map +1 -1
  111. package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js +3 -3
  112. package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js.map +1 -1
  113. package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js +2 -2
  114. package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js.map +1 -1
  115. package/dist/collection/components/certificate-details-parts/attributes/name_part.js +5 -5
  116. package/dist/collection/components/certificate-details-parts/attributes/name_part.js.map +1 -1
  117. package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js +2 -2
  118. package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js.map +1 -1
  119. package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js +2 -2
  120. package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js.map +1 -1
  121. package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js +14 -14
  122. package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js.map +1 -1
  123. package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js +4 -3
  124. package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js.map +1 -1
  125. package/dist/collection/components/certificate-details-parts/basic_information.js +12 -12
  126. package/dist/collection/components/certificate-details-parts/basic_information.js.map +1 -1
  127. package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js +2 -2
  128. package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js.map +1 -1
  129. package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js +2 -2
  130. package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js.map +1 -1
  131. package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js +1 -1
  132. package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js.map +1 -1
  133. package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js +8 -8
  134. package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js.map +1 -1
  135. package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js +2 -2
  136. package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js.map +1 -1
  137. package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js +7 -7
  138. package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js.map +1 -1
  139. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js +5 -5
  140. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js.map +1 -1
  141. package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js +3 -3
  142. package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js.map +1 -1
  143. package/dist/collection/components/certificate-details-parts/extensions/cabforganization_identifier_extension.js +2 -2
  144. package/dist/collection/components/certificate-details-parts/extensions/cabforganization_identifier_extension.js.map +1 -1
  145. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js +23 -23
  146. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js.map +1 -1
  147. package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js +2 -2
  148. package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js.map +1 -1
  149. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js +5 -5
  150. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js.map +1 -1
  151. package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js +8 -8
  152. package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js.map +1 -1
  153. package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js +2 -2
  154. package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js.map +1 -1
  155. package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js +2 -2
  156. package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js.map +1 -1
  157. package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js +2 -2
  158. package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js.map +1 -1
  159. package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js +2 -2
  160. package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js.map +1 -1
  161. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js +5 -5
  162. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js.map +1 -1
  163. package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js +52 -52
  164. package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js.map +1 -1
  165. package/dist/collection/components/certificate-details-parts/extensions/index.js +121 -121
  166. package/dist/collection/components/certificate-details-parts/extensions/index.js.map +1 -1
  167. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js +5 -5
  168. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js.map +1 -1
  169. package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js +4 -4
  170. package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js.map +1 -1
  171. package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js +58 -58
  172. package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js.map +1 -1
  173. package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js +2 -2
  174. package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js.map +1 -1
  175. package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js +2 -2
  176. package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js.map +1 -1
  177. package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js +2 -2
  178. package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js.map +1 -1
  179. package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js +42 -42
  180. package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js.map +1 -1
  181. package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js +5 -5
  182. package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js.map +1 -1
  183. package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js +2 -2
  184. package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js.map +1 -1
  185. package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js +2 -2
  186. package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js.map +1 -1
  187. package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js +2 -2
  188. package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js.map +1 -1
  189. package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js +6 -7
  190. package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js.map +1 -1
  191. package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js +2 -2
  192. package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js.map +1 -1
  193. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js +29 -29
  194. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js.map +1 -1
  195. package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js +2 -2
  196. package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js.map +1 -1
  197. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js +5 -5
  198. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js.map +1 -1
  199. package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js +8 -8
  200. package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js.map +1 -1
  201. package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js +2 -2
  202. package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js.map +1 -1
  203. package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js +6 -8
  204. package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js.map +1 -1
  205. package/dist/collection/components/certificate-details-parts/holder.js +19 -21
  206. package/dist/collection/components/certificate-details-parts/holder.js.map +1 -1
  207. package/dist/collection/components/certificate-details-parts/issuer.js +8 -8
  208. package/dist/collection/components/certificate-details-parts/issuer.js.map +1 -1
  209. package/dist/collection/components/certificate-details-parts/issuer_name.js +6 -6
  210. package/dist/collection/components/certificate-details-parts/issuer_name.js.map +1 -1
  211. package/dist/collection/components/certificate-details-parts/miscellaneous.js +6 -6
  212. package/dist/collection/components/certificate-details-parts/miscellaneous.js.map +1 -1
  213. package/dist/collection/components/certificate-details-parts/public_key.js +29 -29
  214. package/dist/collection/components/certificate-details-parts/public_key.js.map +1 -1
  215. package/dist/collection/components/certificate-details-parts/revoked_certificates.js +30 -30
  216. package/dist/collection/components/certificate-details-parts/revoked_certificates.js.map +1 -1
  217. package/dist/collection/components/certificate-details-parts/row.js +26 -26
  218. package/dist/collection/components/certificate-details-parts/row.js.map +1 -1
  219. package/dist/collection/components/certificate-details-parts/signature.js +13 -13
  220. package/dist/collection/components/certificate-details-parts/signature.js.map +1 -1
  221. package/dist/collection/components/certificate-details-parts/subject_name.js +5 -5
  222. package/dist/collection/components/certificate-details-parts/subject_name.js.map +1 -1
  223. package/dist/collection/components/certificate-details-parts/thumbprints.js +12 -12
  224. package/dist/collection/components/certificate-details-parts/thumbprints.js.map +1 -1
  225. package/dist/collection/components/certificate-summary/certificate-summary.js +3 -3
  226. package/dist/collection/components/certificate-summary/certificate-summary.js.map +1 -1
  227. package/dist/collection/components/certificate-viewer/certificate-viewer.js +278 -278
  228. package/dist/collection/components/certificate-viewer/certificate-viewer.js.map +1 -1
  229. package/dist/collection/components/certificates-viewer/certificates-viewer.js +374 -374
  230. package/dist/collection/components/certificates-viewer/certificates-viewer.js.map +1 -1
  231. package/dist/collection/components/circular-progress/circular-progress.js +67 -67
  232. package/dist/collection/components/circular-progress/circular-progress.js.map +1 -1
  233. package/dist/collection/components/crl-viewer/crl-viewer.js +229 -229
  234. package/dist/collection/components/crl-viewer/crl-viewer.js.map +1 -1
  235. package/dist/collection/components/csr-viewer/csr-viewer.js +211 -219
  236. package/dist/collection/components/csr-viewer/csr-viewer.js.map +1 -1
  237. package/dist/collection/components/highlight-words/highlight-words.js +60 -60
  238. package/dist/collection/components/highlight-words/highlight-words.js.map +1 -1
  239. package/dist/collection/components/icons/actions.js +2 -2
  240. package/dist/collection/components/icons/actions.js.map +1 -1
  241. package/dist/collection/components/icons/arrow_bottom.js +2 -2
  242. package/dist/collection/components/icons/arrow_bottom.js.map +1 -1
  243. package/dist/collection/components/icons/arrow_top.js +2 -2
  244. package/dist/collection/components/icons/arrow_top.js.map +1 -1
  245. package/dist/collection/components/icons/cross.js +2 -2
  246. package/dist/collection/components/icons/cross.js.map +1 -1
  247. package/dist/collection/components/icons/details.js +2 -2
  248. package/dist/collection/components/icons/details.js.map +1 -1
  249. package/dist/collection/components/icons/download.js +2 -2
  250. package/dist/collection/components/icons/download.js.map +1 -1
  251. package/dist/collection/components/icons/link.js +2 -2
  252. package/dist/collection/components/icons/link.js.map +1 -1
  253. package/dist/collection/components/link/link.js +4 -4
  254. package/dist/collection/components/link/link.js.map +1 -1
  255. package/dist/collection/components/text-hider/text-hider.js +23 -23
  256. package/dist/collection/components/text-hider/text-hider.js.map +1 -1
  257. package/dist/collection/components/typography/typography.js +32 -32
  258. package/dist/collection/components/typography/typography.js.map +1 -1
  259. package/dist/collection/constants/logs.js +77 -77
  260. package/dist/collection/constants/logs.js.map +1 -1
  261. package/dist/collection/constants/oids.js +2334 -2334
  262. package/dist/collection/constants/oids.js.map +1 -1
  263. package/dist/collection/crypto/asn_data.js +31 -31
  264. package/dist/collection/crypto/asn_data.js.map +1 -1
  265. package/dist/collection/crypto/attribute.js +35 -51
  266. package/dist/collection/crypto/attribute.js.map +1 -1
  267. package/dist/collection/crypto/crl.js +66 -66
  268. package/dist/collection/crypto/crl.js.map +1 -1
  269. package/dist/collection/crypto/csr.js +76 -69
  270. package/dist/collection/crypto/csr.js.map +1 -1
  271. package/dist/collection/crypto/extension.js +63 -138
  272. package/dist/collection/crypto/extension.js.map +1 -1
  273. package/dist/collection/crypto/extensions/cabforganization_identifier.js +20 -15
  274. package/dist/collection/crypto/extensions/cabforganization_identifier.js.map +1 -1
  275. package/dist/collection/crypto/name.js +31 -31
  276. package/dist/collection/crypto/name.js.map +1 -1
  277. package/dist/collection/crypto/provider.js +26 -26
  278. package/dist/collection/crypto/provider.js.map +1 -1
  279. package/dist/collection/crypto/utils.js +23 -23
  280. package/dist/collection/crypto/utils.js.map +1 -1
  281. package/dist/collection/crypto/x509_attribute_certificate.js +66 -66
  282. package/dist/collection/crypto/x509_attribute_certificate.js.map +1 -1
  283. package/dist/collection/crypto/x509_certificate.js +139 -139
  284. package/dist/collection/crypto/x509_certificate.js.map +1 -1
  285. package/dist/collection/utils/camel_case_to_words.js +2 -2
  286. package/dist/collection/utils/camel_case_to_words.js.map +1 -1
  287. package/dist/collection/utils/date_formatter.js +6 -6
  288. package/dist/collection/utils/date_formatter.js.map +1 -1
  289. package/dist/collection/utils/download.js +24 -24
  290. package/dist/collection/utils/download.js.map +1 -1
  291. package/dist/collection/utils/download_from_buffer.js +25 -25
  292. package/dist/collection/utils/download_from_buffer.js.map +1 -1
  293. package/dist/collection/utils/get_string_by_oid.js +5 -5
  294. package/dist/collection/utils/get_string_by_oid.js.map +1 -1
  295. package/dist/collection/utils/is_link.js +1 -1
  296. package/dist/collection/utils/is_link.js.map +1 -1
  297. package/dist/collection/utils/l10n.js +25 -25
  298. package/dist/collection/utils/l10n.js.map +1 -1
  299. package/dist/collection/utils/read_file.js +40 -40
  300. package/dist/collection/utils/read_file.js.map +1 -1
  301. package/dist/collection/utils/validator.js +13 -13
  302. package/dist/collection/utils/validator.js.map +1 -1
  303. package/dist/esm/actions-aebcbc9d.js +21 -0
  304. package/dist/esm/{actions-8d745b2a.js.map → actions-aebcbc9d.js.map} +1 -1
  305. package/dist/esm/app-globals-5e9b67e0.js +8 -0
  306. package/dist/esm/app-globals-5e9b67e0.js.map +1 -0
  307. package/dist/esm/arrow_top-aee1ee02.js +34 -0
  308. package/dist/esm/{arrow_top-fc298828.js.map → arrow_top-aee1ee02.js.map} +1 -1
  309. package/dist/esm/button-a2fabf9a.js +74 -0
  310. package/dist/esm/{button-35146bdd.js.map → button-a2fabf9a.js.map} +1 -1
  311. package/dist/esm/{certification_request-d5ea5973.js → certification_request-2c054ece.js} +2637 -2707
  312. package/dist/esm/certification_request-2c054ece.js.map +1 -0
  313. package/dist/esm/crl-a7318483.js +308 -0
  314. package/dist/esm/crl-a7318483.js.map +1 -0
  315. package/dist/esm/cross-1377606f.js +47 -0
  316. package/dist/esm/{cross-9ec9a759.js.map → cross-1377606f.js.map} +1 -1
  317. package/dist/esm/download-14dc1047.js +21 -0
  318. package/dist/esm/{download-0cc3077a.js.map → download-14dc1047.js.map} +1 -1
  319. package/dist/esm/{download-aacb6eff.js → download-8c128e2e.js} +50 -50
  320. package/dist/esm/download-8c128e2e.js.map +1 -0
  321. package/dist/esm/{index-4079bbb5.js → index-ae188432.js} +398 -145
  322. package/dist/esm/index-ae188432.js.map +1 -0
  323. package/dist/esm/index.js +8 -8
  324. package/dist/esm/link-7e4e9060.js +23 -0
  325. package/dist/esm/{link-ad24c3be.js.map → link-7e4e9060.js.map} +1 -1
  326. package/dist/esm/loader.js +5 -3
  327. package/dist/esm/loader.js.map +1 -1
  328. package/dist/esm/miscellaneous-0e98b5bc.js +1401 -0
  329. package/dist/esm/miscellaneous-0e98b5bc.js.map +1 -0
  330. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +481 -480
  331. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
  332. package/dist/esm/peculiar-button-menu_3.entry.js +72 -69
  333. package/dist/esm/peculiar-button-menu_3.entry.js.map +1 -1
  334. package/dist/esm/peculiar-certificate-decoder.entry.js +151 -150
  335. package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -1
  336. package/dist/esm/peculiar-certificate-viewer.entry.js +107 -106
  337. package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -1
  338. package/dist/esm/peculiar-certificates-viewer.entry.js +258 -257
  339. package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -1
  340. package/dist/esm/peculiar-text-hider.entry.js +12 -11
  341. package/dist/esm/peculiar-text-hider.entry.js.map +1 -1
  342. package/dist/esm/peculiar.js +6 -4
  343. package/dist/esm/peculiar.js.map +1 -1
  344. package/dist/esm/x509_certificate-ad568d3a.js +158 -0
  345. package/dist/esm/x509_certificate-ad568d3a.js.map +1 -0
  346. package/dist/esm-es5/{actions-8d745b2a.js → actions-aebcbc9d.js} +2 -2
  347. package/dist/esm-es5/app-globals-5e9b67e0.js +5 -0
  348. package/dist/esm-es5/app-globals-5e9b67e0.js.map +1 -0
  349. package/dist/esm-es5/{arrow_top-fc298828.js → arrow_top-aee1ee02.js} +2 -2
  350. package/dist/esm-es5/button-a2fabf9a.js +19 -0
  351. package/dist/esm-es5/{certification_request-d5ea5973.js → certification_request-2c054ece.js} +12 -12
  352. package/dist/esm-es5/certification_request-2c054ece.js.map +1 -0
  353. package/dist/esm-es5/crl-a7318483.js +33 -0
  354. package/dist/esm-es5/crl-a7318483.js.map +1 -0
  355. package/dist/esm-es5/{cross-9ec9a759.js → cross-1377606f.js} +2 -2
  356. package/dist/esm-es5/{download-0cc3077a.js → download-14dc1047.js} +2 -2
  357. package/dist/esm-es5/{download-aacb6eff.js → download-8c128e2e.js} +3 -3
  358. package/dist/esm-es5/{download-aacb6eff.js.map → download-8c128e2e.js.map} +1 -1
  359. package/dist/esm-es5/index-ae188432.js +6 -0
  360. package/dist/esm-es5/index-ae188432.js.map +1 -0
  361. package/dist/esm-es5/index.js +1 -1
  362. package/dist/esm-es5/{link-ad24c3be.js → link-7e4e9060.js} +3 -3
  363. package/dist/esm-es5/loader.js +2 -2
  364. package/dist/esm-es5/loader.js.map +1 -1
  365. package/dist/esm-es5/{miscellaneous-cdfd8905.js → miscellaneous-0e98b5bc.js} +51 -51
  366. package/dist/esm-es5/miscellaneous-0e98b5bc.js.map +1 -0
  367. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js +17 -17
  368. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
  369. package/dist/esm-es5/peculiar-button-menu_3.entry.js +1 -1
  370. package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -1
  371. package/dist/esm-es5/peculiar-certificate-decoder.entry.js +3 -3
  372. package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -1
  373. package/dist/esm-es5/peculiar-certificate-viewer.entry.js +2 -2
  374. package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -1
  375. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +3 -3
  376. package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -1
  377. package/dist/esm-es5/peculiar-text-hider.entry.js +1 -1
  378. package/dist/esm-es5/peculiar-text-hider.entry.js.map +1 -1
  379. package/dist/esm-es5/peculiar.js +2 -2
  380. package/dist/esm-es5/peculiar.js.map +1 -1
  381. package/dist/esm-es5/x509_certificate-ad568d3a.js +12 -0
  382. package/dist/esm-es5/{x509_certificate-a9fcab55.js.map → x509_certificate-ad568d3a.js.map} +1 -1
  383. package/dist/peculiar/index.esm.js +1 -1
  384. package/dist/peculiar/{p-3b395604.system.entry.js → p-00302a20.system.entry.js} +3 -3
  385. package/dist/peculiar/p-00302a20.system.entry.js.map +1 -0
  386. package/dist/peculiar/p-0dbc8238.system.js +13 -0
  387. package/dist/peculiar/{p-ab7dc738.system.js.map → p-0dbc8238.system.js.map} +1 -1
  388. package/dist/peculiar/{p-4a6ceeda.js → p-1302bd67.js} +11 -11
  389. package/dist/peculiar/p-1302bd67.js.map +1 -0
  390. package/dist/peculiar/{p-59e5ac12.js → p-1f766dd5.js} +1 -1
  391. package/dist/peculiar/p-243244af.system.js +13 -0
  392. package/dist/peculiar/{p-0fc2e2b4.js → p-27ca6743.js} +2 -2
  393. package/dist/peculiar/p-3cb79cd9.js +6 -0
  394. package/dist/peculiar/p-3cb79cd9.js.map +1 -0
  395. package/dist/peculiar/{p-48474b8d.js → p-3d44cbd2.js} +3 -3
  396. package/dist/peculiar/p-3f9af5f5.system.js +97 -0
  397. package/dist/peculiar/p-3f9af5f5.system.js.map +1 -0
  398. package/dist/peculiar/{p-a67b8793.system.entry.js → p-496449cf.system.entry.js} +10 -10
  399. package/dist/peculiar/p-496449cf.system.entry.js.map +1 -0
  400. package/dist/peculiar/p-4bc5ddbe.js +19 -0
  401. package/dist/peculiar/{p-609ee9f0.entry.js → p-54b37ef9.entry.js} +2 -2
  402. package/dist/peculiar/p-54b37ef9.entry.js.map +1 -0
  403. package/dist/peculiar/p-5a662d6f.system.js +13 -0
  404. package/dist/peculiar/{p-a7386b78.entry.js → p-5c6f9a14.entry.js} +3 -3
  405. package/dist/peculiar/p-5c6f9a14.entry.js.map +1 -0
  406. package/dist/peculiar/p-5cf4562f.system.entry.js +111 -0
  407. package/dist/peculiar/p-5cf4562f.system.entry.js.map +1 -0
  408. package/dist/peculiar/{p-c35b180c.entry.js → p-5f3b0fc7.entry.js} +3 -3
  409. package/dist/peculiar/p-5f3b0fc7.entry.js.map +1 -0
  410. package/dist/peculiar/{p-a720c0a5.system.entry.js → p-6680f277.system.entry.js} +10 -10
  411. package/dist/peculiar/p-6680f277.system.entry.js.map +1 -0
  412. package/dist/peculiar/p-713563fb.entry.js +5 -0
  413. package/dist/peculiar/p-713563fb.entry.js.map +1 -0
  414. package/dist/peculiar/{p-67156853.js → p-75166532.js} +5 -5
  415. package/dist/peculiar/p-75166532.js.map +1 -0
  416. package/dist/peculiar/p-821bdcdc.system.js +6 -0
  417. package/dist/peculiar/p-821bdcdc.system.js.map +1 -0
  418. package/dist/peculiar/p-8393399a.system.js +5 -0
  419. package/dist/peculiar/p-8393399a.system.js.map +1 -0
  420. package/dist/peculiar/p-8bbee8f4.system.js +13 -0
  421. package/dist/peculiar/p-924790f5.js +33 -0
  422. package/dist/peculiar/p-924790f5.js.map +1 -0
  423. package/dist/peculiar/p-9712b827.system.js +20 -0
  424. package/dist/peculiar/{p-2fcad8cb.system.js.map → p-9712b827.system.js.map} +1 -1
  425. package/dist/peculiar/{p-370cee20.js → p-99efefea.js} +2 -2
  426. package/dist/peculiar/{p-1ceb0fe3.js → p-a9487007.js} +2 -2
  427. package/dist/peculiar/{p-17e3c47b.js → p-ae91d778.js} +2 -2
  428. package/dist/peculiar/p-afbd1c8e.entry.js +5 -0
  429. package/dist/peculiar/p-afbd1c8e.entry.js.map +1 -0
  430. package/dist/peculiar/p-b2890eb8.system.js +5 -0
  431. package/dist/peculiar/p-b5389885.system.entry.js +5 -0
  432. package/dist/peculiar/p-b5389885.system.entry.js.map +1 -0
  433. package/dist/peculiar/p-c156b495.system.js +33 -0
  434. package/dist/peculiar/p-c156b495.system.js.map +1 -0
  435. package/dist/peculiar/p-c23fd001.entry.js +110 -0
  436. package/dist/peculiar/p-c23fd001.entry.js.map +1 -0
  437. package/dist/peculiar/p-c241e4ba.system.js +20 -0
  438. package/dist/peculiar/{p-c99507d4.system.js.map → p-c241e4ba.system.js.map} +1 -1
  439. package/dist/peculiar/p-c2995a63.system.js +5 -0
  440. package/dist/peculiar/p-c2995a63.system.js.map +1 -0
  441. package/dist/peculiar/p-dac867e8.js +5 -0
  442. package/dist/peculiar/p-dac867e8.js.map +1 -0
  443. package/dist/peculiar/p-dde511c8.system.js +43 -0
  444. package/dist/{cjs/download-0fa5b33c.js.map → peculiar/p-dde511c8.system.js.map} +1 -1
  445. package/dist/peculiar/p-e4ad4f13.system.entry.js +5 -0
  446. package/dist/peculiar/p-e4ad4f13.system.entry.js.map +1 -0
  447. package/dist/peculiar/p-e6a6e602.js +12 -0
  448. package/dist/peculiar/p-eea904d7.system.js +27 -0
  449. package/dist/peculiar/{p-ddae2f8e.system.js.map → p-eea904d7.system.js.map} +1 -1
  450. package/dist/peculiar/p-ff3ced3c.system.js +369 -0
  451. package/dist/peculiar/p-ff3ced3c.system.js.map +1 -0
  452. package/dist/peculiar/peculiar.esm.js +1 -1
  453. package/dist/peculiar/peculiar.esm.js.map +1 -1
  454. package/dist/peculiar/peculiar.js +15 -15
  455. package/dist/types/components/attribute-certificate-viewer/attribute-certificate-viewer.d.ts +68 -68
  456. package/dist/types/components/button/button.d.ts +4 -4
  457. package/dist/types/components/button-menu/button-menu.d.ts +7 -7
  458. package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +31 -31
  459. package/dist/types/components/certificate-details-parts/attributes/activity_description_attribute.d.ts +1 -1
  460. package/dist/types/components/certificate-details-parts/attributes/as_string_attribute.d.ts +1 -1
  461. package/dist/types/components/certificate-details-parts/attributes/basic_attribute.d.ts +1 -1
  462. package/dist/types/components/certificate-details-parts/attributes/challenge_password_attribute.d.ts +1 -1
  463. package/dist/types/components/certificate-details-parts/attributes/index.d.ts +1 -1
  464. package/dist/types/components/certificate-details-parts/attributes/insurance_value_attribute.d.ts +1 -1
  465. package/dist/types/components/certificate-details-parts/attributes/name_attribute.d.ts +1 -1
  466. package/dist/types/components/certificate-details-parts/attributes/name_part.d.ts +1 -1
  467. package/dist/types/components/certificate-details-parts/attributes/type_relationship_attribute.d.ts +1 -1
  468. package/dist/types/components/certificate-details-parts/attributes/unstructured_name_attribute.d.ts +1 -1
  469. package/dist/types/components/certificate-details-parts/attributes/valuation_ranking_attribute.d.ts +1 -1
  470. package/dist/types/components/certificate-details-parts/attributes/web_gdpr_attribute.d.ts +1 -1
  471. package/dist/types/components/certificate-details-parts/basic_information.d.ts +8 -8
  472. package/dist/types/components/certificate-details-parts/extensions/archive_rev_info_extension.d.ts +1 -1
  473. package/dist/types/components/certificate-details-parts/extensions/as_string_extension.d.ts +1 -1
  474. package/dist/types/components/certificate-details-parts/extensions/authority_key_identifier_extension.d.ts +1 -1
  475. package/dist/types/components/certificate-details-parts/extensions/basic_constraints_extension.d.ts +1 -1
  476. package/dist/types/components/certificate-details-parts/extensions/basic_extension.d.ts +1 -1
  477. package/dist/types/components/certificate-details-parts/extensions/biometric_syntax_extension.d.ts +1 -1
  478. package/dist/types/components/certificate-details-parts/extensions/ca_version_extension.d.ts +1 -1
  479. package/dist/types/components/certificate-details-parts/extensions/cabforganization_identifier_extension.d.ts +1 -1
  480. package/dist/types/components/certificate-details-parts/extensions/certificate_policies_extension.d.ts +1 -1
  481. package/dist/types/components/certificate-details-parts/extensions/certificate_template_extension.d.ts +1 -1
  482. package/dist/types/components/certificate-details-parts/extensions/certificate_transparency_extension.d.ts +1 -1
  483. package/dist/types/components/certificate-details-parts/extensions/crl_distribution_points_extension.d.ts +1 -1
  484. package/dist/types/components/certificate-details-parts/extensions/crl_number_extension.d.ts +1 -1
  485. package/dist/types/components/certificate-details-parts/extensions/crl_reason_extension.d.ts +1 -1
  486. package/dist/types/components/certificate-details-parts/extensions/enroll_cert_type_extension.d.ts +1 -1
  487. package/dist/types/components/certificate-details-parts/extensions/entrust_version_info_extension.d.ts +1 -1
  488. package/dist/types/components/certificate-details-parts/extensions/extended_key_usage_extension.d.ts +1 -1
  489. package/dist/types/components/certificate-details-parts/extensions/general_name_part.d.ts +1 -1
  490. package/dist/types/components/certificate-details-parts/extensions/index.d.ts +2 -2
  491. package/dist/types/components/certificate-details-parts/extensions/info_access_syntax_extension.d.ts +1 -1
  492. package/dist/types/components/certificate-details-parts/extensions/issuing_distribution_point_extension.d.ts +1 -1
  493. package/dist/types/components/certificate-details-parts/extensions/key_description_extension.d.ts +1 -1
  494. package/dist/types/components/certificate-details-parts/extensions/key_usage_extension.d.ts +1 -1
  495. package/dist/types/components/certificate-details-parts/extensions/lei_extension.d.ts +1 -1
  496. package/dist/types/components/certificate-details-parts/extensions/lei_role_extennsion.d.ts +1 -1
  497. package/dist/types/components/certificate-details-parts/extensions/logotype_extension.d.ts +1 -1
  498. package/dist/types/components/certificate-details-parts/extensions/name_constraints_extension.d.ts +1 -1
  499. package/dist/types/components/certificate-details-parts/extensions/netscape_cert_type_extension.d.ts +1 -1
  500. package/dist/types/components/certificate-details-parts/extensions/netscape_comment_extension.d.ts +1 -1
  501. package/dist/types/components/certificate-details-parts/extensions/policy_constraints_extension.d.ts +1 -1
  502. package/dist/types/components/certificate-details-parts/extensions/policy_mappings_extension.d.ts +1 -1
  503. package/dist/types/components/certificate-details-parts/extensions/private_key_usage_period_extension.d.ts +1 -1
  504. package/dist/types/components/certificate-details-parts/extensions/qc_statements_extension.d.ts +1 -1
  505. package/dist/types/components/certificate-details-parts/extensions/subject_alternative_name_extension.d.ts +1 -1
  506. package/dist/types/components/certificate-details-parts/extensions/subject_directory_attributes_extension.d.ts +1 -1
  507. package/dist/types/components/certificate-details-parts/extensions/subject_key_identifier_extension.d.ts +1 -1
  508. package/dist/types/components/certificate-details-parts/extensions/timestamp_extension.d.ts +1 -1
  509. package/dist/types/components/certificate-details-parts/extensions/tn_auth_list_extension.d.ts +1 -1
  510. package/dist/types/components/certificate-details-parts/holder.d.ts +1 -1
  511. package/dist/types/components/certificate-details-parts/issuer.d.ts +1 -1
  512. package/dist/types/components/certificate-details-parts/issuer_name.d.ts +2 -2
  513. package/dist/types/components/certificate-details-parts/miscellaneous.d.ts +1 -1
  514. package/dist/types/components/certificate-details-parts/public_key.d.ts +1 -1
  515. package/dist/types/components/certificate-details-parts/revoked_certificates.d.ts +1 -1
  516. package/dist/types/components/certificate-details-parts/row.d.ts +7 -7
  517. package/dist/types/components/certificate-details-parts/signature.d.ts +1 -1
  518. package/dist/types/components/certificate-details-parts/subject_name.d.ts +1 -1
  519. package/dist/types/components/certificate-details-parts/thumbprints.d.ts +1 -1
  520. package/dist/types/components/certificate-summary/certificate-summary.d.ts +2 -2
  521. package/dist/types/components/certificate-viewer/certificate-viewer.d.ts +74 -74
  522. package/dist/types/components/certificates-viewer/certificates-viewer.d.ts +75 -75
  523. package/dist/types/components/circular-progress/circular-progress.d.ts +10 -10
  524. package/dist/types/components/crl-viewer/crl-viewer.d.ts +56 -56
  525. package/dist/types/components/csr-viewer/csr-viewer.d.ts +52 -53
  526. package/dist/types/components/highlight-words/highlight-words.d.ts +8 -8
  527. package/dist/types/components/icons/actions.d.ts +1 -1
  528. package/dist/types/components/icons/arrow_bottom.d.ts +1 -1
  529. package/dist/types/components/icons/arrow_top.d.ts +1 -1
  530. package/dist/types/components/icons/cross.d.ts +1 -1
  531. package/dist/types/components/icons/details.d.ts +1 -1
  532. package/dist/types/components/icons/download.d.ts +1 -1
  533. package/dist/types/components/icons/link.d.ts +1 -1
  534. package/dist/types/components/link/link.d.ts +2 -2
  535. package/dist/types/components/text-hider/text-hider.d.ts +2 -2
  536. package/dist/types/components/typography/typography.d.ts +4 -4
  537. package/dist/types/components.d.ts +24 -0
  538. package/dist/types/constants/logs.d.ts +77 -77
  539. package/dist/types/constants/oids.d.ts +2326 -2326
  540. package/dist/types/crypto/asn_data.d.ts +6 -6
  541. package/dist/types/crypto/attribute.d.ts +21 -6
  542. package/dist/types/crypto/crl.d.ts +23 -23
  543. package/dist/types/crypto/csr.d.ts +23 -21
  544. package/dist/types/crypto/extension.d.ts +51 -5
  545. package/dist/types/crypto/extensions/cabforganization_identifier.d.ts +5 -5
  546. package/dist/types/crypto/name.d.ts +7 -7
  547. package/dist/types/crypto/provider.d.ts +15 -15
  548. package/dist/types/crypto/x509_attribute_certificate.d.ts +24 -24
  549. package/dist/types/crypto/x509_certificate.d.ts +33 -33
  550. package/dist/types/stencil-public-runtime.d.ts +29 -0
  551. package/dist/types/utils/download.d.ts +16 -16
  552. package/dist/types/utils/l10n.d.ts +56 -56
  553. package/dist/types/utils/read_file.d.ts +7 -7
  554. package/hydrate/index.d.ts +2 -2
  555. package/hydrate/index.js +11363 -9541
  556. package/package.json +21 -13
  557. package/dist/cjs/actions-19013d4a.js +0 -23
  558. package/dist/cjs/arrow_top-834fb7ec.js +0 -37
  559. package/dist/cjs/button-14e2b73f.js +0 -77
  560. package/dist/cjs/certification_request-5672c667.js.map +0 -1
  561. package/dist/cjs/crl-3f681d44.js +0 -322
  562. package/dist/cjs/crl-3f681d44.js.map +0 -1
  563. package/dist/cjs/cross-9872c473.js +0 -51
  564. package/dist/cjs/download-254ddc57.js +0 -23
  565. package/dist/cjs/index-efd561e9.js.map +0 -1
  566. package/dist/cjs/link-6aea0be4.js +0 -25
  567. package/dist/cjs/miscellaneous-905ec852.js +0 -1416
  568. package/dist/cjs/miscellaneous-905ec852.js.map +0 -1
  569. package/dist/cjs/x509_certificate-69764c52.js +0 -160
  570. package/dist/cjs/x509_certificate-69764c52.js.map +0 -1
  571. package/dist/esm/actions-8d745b2a.js +0 -21
  572. package/dist/esm/arrow_top-fc298828.js +0 -34
  573. package/dist/esm/button-35146bdd.js +0 -74
  574. package/dist/esm/certification_request-d5ea5973.js.map +0 -1
  575. package/dist/esm/crl-d13d9ec5.js +0 -318
  576. package/dist/esm/crl-d13d9ec5.js.map +0 -1
  577. package/dist/esm/cross-9ec9a759.js +0 -47
  578. package/dist/esm/download-0cc3077a.js +0 -21
  579. package/dist/esm/download-aacb6eff.js.map +0 -1
  580. package/dist/esm/index-4079bbb5.js.map +0 -1
  581. package/dist/esm/link-ad24c3be.js +0 -23
  582. package/dist/esm/miscellaneous-cdfd8905.js +0 -1399
  583. package/dist/esm/miscellaneous-cdfd8905.js.map +0 -1
  584. package/dist/esm/x509_certificate-a9fcab55.js +0 -158
  585. package/dist/esm/x509_certificate-a9fcab55.js.map +0 -1
  586. package/dist/esm-es5/button-35146bdd.js +0 -19
  587. package/dist/esm-es5/certification_request-d5ea5973.js.map +0 -1
  588. package/dist/esm-es5/crl-d13d9ec5.js +0 -33
  589. package/dist/esm-es5/crl-d13d9ec5.js.map +0 -1
  590. package/dist/esm-es5/index-4079bbb5.js +0 -6
  591. package/dist/esm-es5/index-4079bbb5.js.map +0 -1
  592. package/dist/esm-es5/miscellaneous-cdfd8905.js.map +0 -1
  593. package/dist/esm-es5/x509_certificate-a9fcab55.js +0 -12
  594. package/dist/peculiar/p-0b356bb5.js +0 -6
  595. package/dist/peculiar/p-0b356bb5.js.map +0 -1
  596. package/dist/peculiar/p-14f281b0.system.js +0 -43
  597. package/dist/peculiar/p-14f281b0.system.js.map +0 -1
  598. package/dist/peculiar/p-2fcad8cb.system.js +0 -20
  599. package/dist/peculiar/p-33196289.entry.js +0 -5
  600. package/dist/peculiar/p-33196289.entry.js.map +0 -1
  601. package/dist/peculiar/p-3b395604.system.entry.js.map +0 -1
  602. package/dist/peculiar/p-4a6ceeda.js.map +0 -1
  603. package/dist/peculiar/p-5151cb6f.system.entry.js +0 -5
  604. package/dist/peculiar/p-5151cb6f.system.entry.js.map +0 -1
  605. package/dist/peculiar/p-53784f15.system.entry.js +0 -5
  606. package/dist/peculiar/p-53784f15.system.entry.js.map +0 -1
  607. package/dist/peculiar/p-5aabeba7.system.js +0 -6
  608. package/dist/peculiar/p-5aabeba7.system.js.map +0 -1
  609. package/dist/peculiar/p-5ab007e9.entry.js +0 -5
  610. package/dist/peculiar/p-5ab007e9.entry.js.map +0 -1
  611. package/dist/peculiar/p-609ee9f0.entry.js.map +0 -1
  612. package/dist/peculiar/p-67156853.js.map +0 -1
  613. package/dist/peculiar/p-6cb88fd6.system.js +0 -13
  614. package/dist/peculiar/p-6daee4d7.system.js +0 -369
  615. package/dist/peculiar/p-6daee4d7.system.js.map +0 -1
  616. package/dist/peculiar/p-6e48afc4.system.js +0 -34
  617. package/dist/peculiar/p-6e48afc4.system.js.map +0 -1
  618. package/dist/peculiar/p-718982f4.system.entry.js +0 -111
  619. package/dist/peculiar/p-718982f4.system.entry.js.map +0 -1
  620. package/dist/peculiar/p-7f9beaa8.js +0 -19
  621. package/dist/peculiar/p-80832207.system.js +0 -5
  622. package/dist/peculiar/p-80832207.system.js.map +0 -1
  623. package/dist/peculiar/p-8fac1d56.js +0 -33
  624. package/dist/peculiar/p-8fac1d56.js.map +0 -1
  625. package/dist/peculiar/p-94a453d7.js +0 -12
  626. package/dist/peculiar/p-a3eeb94b.system.js +0 -5
  627. package/dist/peculiar/p-a67b8793.system.entry.js.map +0 -1
  628. package/dist/peculiar/p-a720c0a5.system.entry.js.map +0 -1
  629. package/dist/peculiar/p-a7386b78.entry.js.map +0 -1
  630. package/dist/peculiar/p-ab7dc738.system.js +0 -13
  631. package/dist/peculiar/p-b313be9e.system.js +0 -13
  632. package/dist/peculiar/p-c35b180c.entry.js.map +0 -1
  633. package/dist/peculiar/p-c99507d4.system.js +0 -20
  634. package/dist/peculiar/p-ddae2f8e.system.js +0 -27
  635. package/dist/peculiar/p-e0f4bda5.system.js +0 -97
  636. package/dist/peculiar/p-e0f4bda5.system.js.map +0 -1
  637. package/dist/peculiar/p-e6a3b4d4.system.js +0 -13
  638. package/dist/peculiar/p-f86279f6.entry.js +0 -110
  639. package/dist/peculiar/p-f86279f6.entry.js.map +0 -1
  640. /package/dist/esm-es5/{actions-8d745b2a.js.map → actions-aebcbc9d.js.map} +0 -0
  641. /package/dist/esm-es5/{arrow_top-fc298828.js.map → arrow_top-aee1ee02.js.map} +0 -0
  642. /package/dist/esm-es5/{button-35146bdd.js.map → button-a2fabf9a.js.map} +0 -0
  643. /package/dist/esm-es5/{cross-9ec9a759.js.map → cross-1377606f.js.map} +0 -0
  644. /package/dist/esm-es5/{download-0cc3077a.js.map → download-14dc1047.js.map} +0 -0
  645. /package/dist/esm-es5/{link-ad24c3be.js.map → link-7e4e9060.js.map} +0 -0
  646. /package/dist/peculiar/{p-59e5ac12.js.map → p-1f766dd5.js.map} +0 -0
  647. /package/dist/peculiar/{p-6cb88fd6.system.js.map → p-243244af.system.js.map} +0 -0
  648. /package/dist/peculiar/{p-0fc2e2b4.js.map → p-27ca6743.js.map} +0 -0
  649. /package/dist/peculiar/{p-48474b8d.js.map → p-3d44cbd2.js.map} +0 -0
  650. /package/dist/peculiar/{p-7f9beaa8.js.map → p-4bc5ddbe.js.map} +0 -0
  651. /package/dist/peculiar/{p-b313be9e.system.js.map → p-5a662d6f.system.js.map} +0 -0
  652. /package/dist/peculiar/{p-e6a3b4d4.system.js.map → p-8bbee8f4.system.js.map} +0 -0
  653. /package/dist/peculiar/{p-370cee20.js.map → p-99efefea.js.map} +0 -0
  654. /package/dist/peculiar/{p-1ceb0fe3.js.map → p-a9487007.js.map} +0 -0
  655. /package/dist/peculiar/{p-17e3c47b.js.map → p-ae91d778.js.map} +0 -0
  656. /package/dist/peculiar/{p-a3eeb94b.system.js.map → p-b2890eb8.system.js.map} +0 -0
  657. /package/dist/peculiar/{p-94a453d7.js.map → p-e6a6e602.js.map} +0 -0
@@ -11,9 +11,9 @@ import { h } from '@stencil/core/internal/client';
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
13
  const DetailsIcon = (props) => {
14
- const { color = 'secondary' } = props;
15
- return (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "31", fill: "none" },
16
- h("path", { fill: `var(--pv-color-${color})`, d: "M6.71 19.79a1 1 0 0 0-.33-.21 1 1 0 0 0-.76 0 1 1 0 0 0-.33.21 1 1 0 0 0-.21.33 1 1 0 0 0 .21 1.09c.097.088.209.16.33.21a.94.94 0 0 0 .76 0 1.15 1.15 0 0 0 .33-.21 1 1 0 0 0 .21-1.09 1 1 0 0 0-.21-.33ZM10 11.5h14a1 1 0 0 0 0-2H10a1 1 0 0 0 0 2Zm-3.29 3.29a1 1 0 0 0-1.09-.21 1.15 1.15 0 0 0-.33.21 1 1 0 0 0-.21.33.94.94 0 0 0 0 .76c.05.121.122.233.21.33.097.088.209.16.33.21a.94.94 0 0 0 .76 0 1.15 1.15 0 0 0 .33-.21 1.15 1.15 0 0 0 .21-.33.94.94 0 0 0 0-.76 1 1 0 0 0-.21-.33ZM24 14.5H10a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2ZM6.71 9.79a1 1 0 0 0-.33-.21 1 1 0 0 0-1.09.21 1.15 1.15 0 0 0-.21.33.94.94 0 0 0 0 .76c.05.121.122.233.21.33.097.088.209.16.33.21a1 1 0 0 0 1.09-.21 1.15 1.15 0 0 0 .21-.33.94.94 0 0 0 0-.76 1.15 1.15 0 0 0-.21-.33ZM24 19.5H10a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2Z" })));
14
+ const { color = 'secondary' } = props;
15
+ return (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "31", fill: "none" },
16
+ h("path", { fill: `var(--pv-color-${color})`, d: "M6.71 19.79a1 1 0 0 0-.33-.21 1 1 0 0 0-.76 0 1 1 0 0 0-.33.21 1 1 0 0 0-.21.33 1 1 0 0 0 .21 1.09c.097.088.209.16.33.21a.94.94 0 0 0 .76 0 1.15 1.15 0 0 0 .33-.21 1 1 0 0 0 .21-1.09 1 1 0 0 0-.21-.33ZM10 11.5h14a1 1 0 0 0 0-2H10a1 1 0 0 0 0 2Zm-3.29 3.29a1 1 0 0 0-1.09-.21 1.15 1.15 0 0 0-.33.21 1 1 0 0 0-.21.33.94.94 0 0 0 0 .76c.05.121.122.233.21.33.097.088.209.16.33.21a.94.94 0 0 0 .76 0 1.15 1.15 0 0 0 .33-.21 1.15 1.15 0 0 0 .21-.33.94.94 0 0 0 0-.76 1 1 0 0 0-.21-.33ZM24 14.5H10a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2ZM6.71 9.79a1 1 0 0 0-.33-.21 1 1 0 0 0-1.09.21 1.15 1.15 0 0 0-.21.33.94.94 0 0 0 0 .76c.05.121.122.233.21.33.097.088.209.16.33.21a1 1 0 0 0 1.09-.21 1.15 1.15 0 0 0 .21-.33.94.94 0 0 0 0-.76 1.15 1.15 0 0 0-.21-.33ZM24 19.5H10a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2Z" })));
17
17
  };
18
18
 
19
19
  /**
@@ -24,9 +24,9 @@ const DetailsIcon = (props) => {
24
24
  * LICENSE file in the root directory of this source tree.
25
25
  */
26
26
  const LinkIcon = (props) => {
27
- const { color = 'secondary' } = props;
28
- return (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "31", fill: "none" },
29
- h("path", { fill: `var(--pv-color-${color})`, d: "M21 14.32a1 1 0 0 0-1 1v7.18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1h7.18a1 1 0 0 0 0-2H8a3 3 0 0 0-3 3v11a3 3 0 0 0 3 3h11a3 3 0 0 0 3-3v-7.18a1 1 0 0 0-1-1Zm3.92-8.2a1 1 0 0 0-.54-.54A1 1 0 0 0 24 5.5h-6a1 1 0 1 0 0 2h3.59l-10.3 10.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219L23 8.91v3.59a1 1 0 0 0 2 0v-6a1.001 1.001 0 0 0-.08-.38Z" })));
27
+ const { color = 'secondary' } = props;
28
+ return (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "31", fill: "none" },
29
+ h("path", { fill: `var(--pv-color-${color})`, d: "M21 14.32a1 1 0 0 0-1 1v7.18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1h7.18a1 1 0 0 0 0-2H8a3 3 0 0 0-3 3v11a3 3 0 0 0 3 3h11a3 3 0 0 0 3-3v-7.18a1 1 0 0 0-1-1Zm3.92-8.2a1 1 0 0 0-.54-.54A1 1 0 0 0 24 5.5h-6a1 1 0 1 0 0 2h3.59l-10.3 10.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219L23 8.91v3.59a1 1 0 0 0 2 0v-6a1.001 1.001 0 0 0-.08-.38Z" })));
30
30
  };
31
31
 
32
32
  /**
@@ -37,9 +37,9 @@ const LinkIcon = (props) => {
37
37
  * LICENSE file in the root directory of this source tree.
38
38
  */
39
39
  const CrossIcon = (props) => {
40
- const { color = 'gray-9' } = props;
41
- return (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", fill: "none" },
42
- h("path", { fill: `var(--pv-color-${color})`, "fill-rule": "evenodd", d: "m16.37 15 5.442 5.44c.25.252.25.663 0 .914l-.459.457a.646.646 0 0 1-.913 0L15 16.371l-5.44 5.44a.648.648 0 0 1-.915 0l-.457-.457a.649.649 0 0 1 0-.913L13.63 15 8.188 9.56a.649.649 0 0 1 0-.914l.457-.457a.648.648 0 0 1 .915 0l5.44 5.44 5.44-5.44a.646.646 0 0 1 .913 0l.46.457c.25.25.25.662 0 .913L16.37 15Z", "clip-rule": "evenodd" })));
40
+ const { color = 'gray-9' } = props;
41
+ return (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", fill: "none" },
42
+ h("path", { fill: `var(--pv-color-${color})`, "fill-rule": "evenodd", d: "m16.37 15 5.442 5.44c.25.252.25.663 0 .914l-.459.457a.646.646 0 0 1-.913 0L15 16.371l-5.44 5.44a.648.648 0 0 1-.915 0l-.457-.457a.649.649 0 0 1 0-.913L13.63 15 8.188 9.56a.649.649 0 0 1 0-.914l.457-.457a.648.648 0 0 1 .915 0l5.44 5.44 5.44-5.44a.646.646 0 0 1 .913 0l.46.457c.25.25.25.662 0 .913L16.37 15Z", "clip-rule": "evenodd" })));
43
43
  };
44
44
 
45
45
  export { CrossIcon as C, DetailsIcon as D, LinkIcon as L };
@@ -1 +1 @@
1
- {"file":"cross.js","mappings":";;;;;AAAA;;;;;;;MAWa,WAAW,GAA+C,CAAC,KAAK;EAC3E,MAAM,EAAE,KAAK,GAAG,WAAW,EAAE,GAAG,KAAK,CAAC;EAEtC,QACE,WACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,MAAM;IAEX,YACE,IAAI,EAAE,kBAAkB,KAAK,GAAG,EAChC,CAAC,EAAC,+wBAA+wB,GACjxB,CACE,EACN;AACJ;;AC3BA;;;;;;;MAWa,QAAQ,GAA+C,CAAC,KAAK;EACxE,MAAM,EAAE,KAAK,GAAG,WAAW,EAAE,GAAG,KAAK,CAAC;EAEtC,QACE,WACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,MAAM;IAEX,YACE,IAAI,EAAE,kBAAkB,KAAK,GAAG,EAChC,CAAC,EAAC,iWAAiW,GACnW,CACE,EACN;AACJ;;AC3BA;;;;;;;MAWa,SAAS,GAA+C,CAAC,KAAK;EACzE,MAAM,EAAE,KAAK,GAAG,QAAQ,EAAE,GAAG,KAAK,CAAC;EAEnC,QACE,WACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,MAAM;IAEX,YACE,IAAI,EAAE,kBAAkB,KAAK,GAAG,eACtB,SAAS,EACnB,CAAC,EAAC,mTAAmT,eAC3S,SAAS,GACnB,CACE,EACN;AACJ;;;;","names":[],"sources":["src/components/icons/details.tsx","src/components/icons/link.tsx","src/components/icons/cross.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h } from '@stencil/core';\nimport type { ColorType } from '../../interface';\n\nexport const DetailsIcon: FunctionalComponent<{ color?: ColorType }> = (props) => {\n const { color = 'secondary' } = props;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"31\"\n fill=\"none\"\n >\n <path\n fill={`var(--pv-color-${color})`}\n d=\"M6.71 19.79a1 1 0 0 0-.33-.21 1 1 0 0 0-.76 0 1 1 0 0 0-.33.21 1 1 0 0 0-.21.33 1 1 0 0 0 .21 1.09c.097.088.209.16.33.21a.94.94 0 0 0 .76 0 1.15 1.15 0 0 0 .33-.21 1 1 0 0 0 .21-1.09 1 1 0 0 0-.21-.33ZM10 11.5h14a1 1 0 0 0 0-2H10a1 1 0 0 0 0 2Zm-3.29 3.29a1 1 0 0 0-1.09-.21 1.15 1.15 0 0 0-.33.21 1 1 0 0 0-.21.33.94.94 0 0 0 0 .76c.05.121.122.233.21.33.097.088.209.16.33.21a.94.94 0 0 0 .76 0 1.15 1.15 0 0 0 .33-.21 1.15 1.15 0 0 0 .21-.33.94.94 0 0 0 0-.76 1 1 0 0 0-.21-.33ZM24 14.5H10a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2ZM6.71 9.79a1 1 0 0 0-.33-.21 1 1 0 0 0-1.09.21 1.15 1.15 0 0 0-.21.33.94.94 0 0 0 0 .76c.05.121.122.233.21.33.097.088.209.16.33.21a1 1 0 0 0 1.09-.21 1.15 1.15 0 0 0 .21-.33.94.94 0 0 0 0-.76 1.15 1.15 0 0 0-.21-.33ZM24 19.5H10a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2Z\"\n />\n </svg>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h } from '@stencil/core';\nimport type { ColorType } from '../../interface';\n\nexport const LinkIcon: FunctionalComponent<{ color?: ColorType }> = (props) => {\n const { color = 'secondary' } = props;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"31\"\n fill=\"none\"\n >\n <path\n fill={`var(--pv-color-${color})`}\n d=\"M21 14.32a1 1 0 0 0-1 1v7.18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1h7.18a1 1 0 0 0 0-2H8a3 3 0 0 0-3 3v11a3 3 0 0 0 3 3h11a3 3 0 0 0 3-3v-7.18a1 1 0 0 0-1-1Zm3.92-8.2a1 1 0 0 0-.54-.54A1 1 0 0 0 24 5.5h-6a1 1 0 1 0 0 2h3.59l-10.3 10.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219L23 8.91v3.59a1 1 0 0 0 2 0v-6a1.001 1.001 0 0 0-.08-.38Z\"\n />\n </svg>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h } from '@stencil/core';\nimport type { ColorType } from '../../interface';\n\nexport const CrossIcon: FunctionalComponent<{ color?: ColorType }> = (props) => {\n const { color = 'gray-9' } = props;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"30\"\n fill=\"none\"\n >\n <path\n fill={`var(--pv-color-${color})`}\n fill-rule=\"evenodd\"\n d=\"m16.37 15 5.442 5.44c.25.252.25.663 0 .914l-.459.457a.646.646 0 0 1-.913 0L15 16.371l-5.44 5.44a.648.648 0 0 1-.915 0l-.457-.457a.649.649 0 0 1 0-.913L13.63 15 8.188 9.56a.649.649 0 0 1 0-.914l.457-.457a.648.648 0 0 1 .915 0l5.44 5.44 5.44-5.44a.646.646 0 0 1 .913 0l.46.457c.25.25.25.662 0 .913L16.37 15Z\"\n clip-rule=\"evenodd\"\n />\n </svg>\n );\n};\n"],"version":3}
1
+ {"file":"cross.js","mappings":";;;;;AAAA;;;;;;;MAWa,WAAW,GAA+C,CAAC,KAAK;IAC3E,MAAM,EAAE,KAAK,GAAG,WAAW,EAAE,GAAG,KAAK,CAAC;IAEtC,QACE,WACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,MAAM;QAEX,YACE,IAAI,EAAE,kBAAkB,KAAK,GAAG,EAChC,CAAC,EAAC,+wBAA+wB,GACjxB,CACE,EACN;AACJ;;AC3BA;;;;;;;MAWa,QAAQ,GAA+C,CAAC,KAAK;IACxE,MAAM,EAAE,KAAK,GAAG,WAAW,EAAE,GAAG,KAAK,CAAC;IAEtC,QACE,WACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,MAAM;QAEX,YACE,IAAI,EAAE,kBAAkB,KAAK,GAAG,EAChC,CAAC,EAAC,iWAAiW,GACnW,CACE,EACN;AACJ;;AC3BA;;;;;;;MAWa,SAAS,GAA+C,CAAC,KAAK;IACzE,MAAM,EAAE,KAAK,GAAG,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEnC,QACE,WACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,MAAM;QAEX,YACE,IAAI,EAAE,kBAAkB,KAAK,GAAG,eACtB,SAAS,EACnB,CAAC,EAAC,mTAAmT,eAC3S,SAAS,GACnB,CACE,EACN;AACJ;;;;","names":[],"sources":["src/components/icons/details.tsx","src/components/icons/link.tsx","src/components/icons/cross.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h } from '@stencil/core';\nimport type { ColorType } from '../../interface';\n\nexport const DetailsIcon: FunctionalComponent<{ color?: ColorType }> = (props) => {\n const { color = 'secondary' } = props;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"31\"\n fill=\"none\"\n >\n <path\n fill={`var(--pv-color-${color})`}\n d=\"M6.71 19.79a1 1 0 0 0-.33-.21 1 1 0 0 0-.76 0 1 1 0 0 0-.33.21 1 1 0 0 0-.21.33 1 1 0 0 0 .21 1.09c.097.088.209.16.33.21a.94.94 0 0 0 .76 0 1.15 1.15 0 0 0 .33-.21 1 1 0 0 0 .21-1.09 1 1 0 0 0-.21-.33ZM10 11.5h14a1 1 0 0 0 0-2H10a1 1 0 0 0 0 2Zm-3.29 3.29a1 1 0 0 0-1.09-.21 1.15 1.15 0 0 0-.33.21 1 1 0 0 0-.21.33.94.94 0 0 0 0 .76c.05.121.122.233.21.33.097.088.209.16.33.21a.94.94 0 0 0 .76 0 1.15 1.15 0 0 0 .33-.21 1.15 1.15 0 0 0 .21-.33.94.94 0 0 0 0-.76 1 1 0 0 0-.21-.33ZM24 14.5H10a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2ZM6.71 9.79a1 1 0 0 0-.33-.21 1 1 0 0 0-1.09.21 1.15 1.15 0 0 0-.21.33.94.94 0 0 0 0 .76c.05.121.122.233.21.33.097.088.209.16.33.21a1 1 0 0 0 1.09-.21 1.15 1.15 0 0 0 .21-.33.94.94 0 0 0 0-.76 1.15 1.15 0 0 0-.21-.33ZM24 19.5H10a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2Z\"\n />\n </svg>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h } from '@stencil/core';\nimport type { ColorType } from '../../interface';\n\nexport const LinkIcon: FunctionalComponent<{ color?: ColorType }> = (props) => {\n const { color = 'secondary' } = props;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"31\"\n fill=\"none\"\n >\n <path\n fill={`var(--pv-color-${color})`}\n d=\"M21 14.32a1 1 0 0 0-1 1v7.18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1h7.18a1 1 0 0 0 0-2H8a3 3 0 0 0-3 3v11a3 3 0 0 0 3 3h11a3 3 0 0 0 3-3v-7.18a1 1 0 0 0-1-1Zm3.92-8.2a1 1 0 0 0-.54-.54A1 1 0 0 0 24 5.5h-6a1 1 0 1 0 0 2h3.59l-10.3 10.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219L23 8.91v3.59a1 1 0 0 0 2 0v-6a1.001 1.001 0 0 0-.08-.38Z\"\n />\n </svg>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h } from '@stencil/core';\nimport type { ColorType } from '../../interface';\n\nexport const CrossIcon: FunctionalComponent<{ color?: ColorType }> = (props) => {\n const { color = 'gray-9' } = props;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"30\"\n fill=\"none\"\n >\n <path\n fill={`var(--pv-color-${color})`}\n fill-rule=\"evenodd\"\n d=\"m16.37 15 5.442 5.44c.25.252.25.663 0 .914l-.459.457a.646.646 0 0 1-.913 0L15 16.371l-5.44 5.44a.648.648 0 0 1-.915 0l-.457-.457a.649.649 0 0 1 0-.913L13.63 15 8.188 9.56a.649.649 0 0 1 0-.914l.457-.457a.648.648 0 0 1 .915 0l5.44 5.44 5.44-5.44a.646.646 0 0 1 .913 0l.46.457c.25.25.25.662 0 .913L16.37 15Z\"\n clip-rule=\"evenodd\"\n />\n </svg>\n );\n};\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
3
  */
4
4
  import { proxyCustomElement, HTMLElement, Build, h, Host } from '@stencil/core/internal/client';
5
- import { A as AsnData, c as certificateRawToBuffer, ac as CertificationRequest, a2 as Name, a3 as id_ecPublicKey, b as AsnConvert, a4 as ECParameters, a5 as id_rsaEncryption, a6 as RSAPublicKey, g as getCertificateThumbprint, h as hexFormat, e as base64Format, B as BasicInformation, S as Signature, T as Thumbprints, j as getLEILink, k as getDNSNameLink, m as getIPAddressLink, n as Extensions, M as Miscellaneous } from './miscellaneous.js';
5
+ import { A as AsnData, c as certificateRawToBuffer, ae as CertificationRequest, a4 as Name, a5 as id_ecPublicKey, b as AsnConvert, a6 as ECParameters, a7 as id_rsaEncryption, a8 as RSAPublicKey, g as getCertificateThumbprint, P as id_pkcs9_at_extensionRequest, E as Extension, h as hexFormat, e as base64Format, B as BasicInformation, S as Signature, j as Thumbprints, k as getLEILink, m as getDNSNameLink, n as getIPAddressLink, o as Extensions, M as Miscellaneous } from './miscellaneous.js';
6
6
  import { C as Convert_1, D as Download } from './download.js';
7
7
  import { A as Attribute, a as Attributes } from './index2.js';
8
8
  import { S as SubjectName, P as PublicKey } from './subject_name.js';
@@ -16,216 +16,214 @@ import { T as Typography } from './button.js';
16
16
  * LICENSE file in the root directory of this source tree.
17
17
  */
18
18
  class CSR extends AsnData {
19
- constructor(raw) {
20
- super(certificateRawToBuffer(raw), CertificationRequest);
21
- this.thumbprints = {};
22
- this.type = 'PKCS#10 Certificate Request';
23
- const { certificationRequestInfo } = this.asn;
24
- this.subject = new Name(certificationRequestInfo.subject).toJSON();
25
- this.version = certificationRequestInfo.version;
26
- }
27
- get publicKey() {
28
- const { subjectPublicKey, algorithm } = this.asn.certificationRequestInfo.subjectPKInfo;
29
- let params;
30
- if (algorithm.algorithm === id_ecPublicKey && algorithm.parameters) {
31
- params = AsnConvert.parse(algorithm.parameters, ECParameters);
32
- }
33
- if (algorithm.algorithm === id_rsaEncryption) {
34
- params = AsnConvert.parse(subjectPublicKey, RSAPublicKey);
35
- }
36
- const spki = AsnConvert.serialize(this.asn.certificationRequestInfo.subjectPKInfo);
37
- return {
38
- params,
39
- value: spki,
40
- algorithm: algorithm.algorithm,
41
- };
42
- }
43
- get signature() {
44
- const { signature, signatureAlgorithm } = this.asn;
45
- return {
46
- value: signature,
47
- algorithm: signatureAlgorithm.algorithm,
48
- };
49
- }
50
- get commonName() {
51
- if (!this.subject) {
52
- return '';
53
- }
54
- for (let i = 0; i < this.subject.length; i += 1) {
55
- const name = this.subject[i];
56
- if (name.shortName === 'CN' || name.shortName === 'E' || name.shortName === 'O') {
57
- return name.value;
58
- }
59
- }
60
- return '';
61
- }
62
- async getThumbprint(algorithm = 'SHA-1') {
63
- try {
64
- const thumbprint = await getCertificateThumbprint(algorithm, this.raw);
65
- if (thumbprint) {
66
- this.thumbprints[algorithm] = Convert_1.ToHex(thumbprint);
67
- }
68
- }
69
- catch (error) {
70
- console.error('Error thumbprint get:', error);
71
- }
72
- }
73
- parseAttributes() {
74
- const { certificationRequestInfo } = this.asn;
75
- if (certificationRequestInfo.attributes) {
76
- this.attributes = certificationRequestInfo.attributes
77
- .map((e) => new Attribute(AsnConvert.serialize(e)));
78
- }
79
- }
80
- exportAsBase64() {
81
- return Convert_1.ToBase64(this.raw);
82
- }
83
- exportAsHexFormatted() {
84
- return hexFormat(Convert_1.ToHex(this.raw));
85
- }
86
- exportAsPemFormatted() {
87
- return `-----BEGIN CERTIFICATE REQUEST-----\n${base64Format(this.exportAsBase64())}\n-----END CERTIFICATE REQUEST-----`;
88
- }
89
- downloadAsPEM(name) {
90
- Download.csr.asPEM(this.exportAsPemFormatted(), name || this.commonName);
91
- }
92
- downloadAsDER(name) {
93
- Download.csr.asDER(this.exportAsHexFormatted(), name || this.commonName);
94
- }
19
+ constructor(raw) {
20
+ super(certificateRawToBuffer(raw), CertificationRequest);
21
+ this.thumbprints = {};
22
+ this.type = 'PKCS#10 Certificate Request';
23
+ const { certificationRequestInfo } = this.asn;
24
+ this.subject = new Name(certificationRequestInfo.subject).toJSON();
25
+ this.version = certificationRequestInfo.version;
26
+ }
27
+ get publicKey() {
28
+ const { subjectPublicKey, algorithm } = this.asn.certificationRequestInfo.subjectPKInfo;
29
+ let params;
30
+ if (algorithm.algorithm === id_ecPublicKey && algorithm.parameters) {
31
+ params = AsnConvert.parse(algorithm.parameters, ECParameters);
32
+ }
33
+ if (algorithm.algorithm === id_rsaEncryption) {
34
+ params = AsnConvert.parse(subjectPublicKey, RSAPublicKey);
35
+ }
36
+ const spki = AsnConvert.serialize(this.asn.certificationRequestInfo.subjectPKInfo);
37
+ return {
38
+ params,
39
+ value: spki,
40
+ algorithm: algorithm.algorithm,
41
+ };
42
+ }
43
+ get signature() {
44
+ const { signature, signatureAlgorithm } = this.asn;
45
+ return {
46
+ value: signature,
47
+ algorithm: signatureAlgorithm.algorithm,
48
+ };
49
+ }
50
+ get commonName() {
51
+ if (!this.subject) {
52
+ return '';
53
+ }
54
+ for (let i = 0; i < this.subject.length; i += 1) {
55
+ const name = this.subject[i];
56
+ if (name.shortName === 'CN' || name.shortName === 'E' || name.shortName === 'O') {
57
+ return name.value;
58
+ }
59
+ }
60
+ return '';
61
+ }
62
+ async getThumbprint(algorithm = 'SHA-1') {
63
+ try {
64
+ const thumbprint = await getCertificateThumbprint(algorithm, this.raw);
65
+ if (thumbprint) {
66
+ this.thumbprints[algorithm] = Convert_1.ToHex(thumbprint);
67
+ }
68
+ }
69
+ catch (error) {
70
+ console.error('Error thumbprint get:', error);
71
+ }
72
+ }
73
+ parseAttributes() {
74
+ const { certificationRequestInfo } = this.asn;
75
+ if (certificationRequestInfo.attributes) {
76
+ this.attributes = certificationRequestInfo.attributes
77
+ .map((e) => new Attribute(AsnConvert.serialize(e)));
78
+ const extensionRequestAttribute = this.attributes.find((attribute) => attribute.asn.type === id_pkcs9_at_extensionRequest);
79
+ if (extensionRequestAttribute) {
80
+ this.extensions = extensionRequestAttribute.value
81
+ .map((e) => new Extension(AsnConvert.serialize(e)));
82
+ }
83
+ }
84
+ }
85
+ exportAsBase64() {
86
+ return Convert_1.ToBase64(this.raw);
87
+ }
88
+ exportAsHexFormatted() {
89
+ return hexFormat(Convert_1.ToHex(this.raw));
90
+ }
91
+ exportAsPemFormatted() {
92
+ return `-----BEGIN CERTIFICATE REQUEST-----\n${base64Format(this.exportAsBase64())}\n-----END CERTIFICATE REQUEST-----`;
93
+ }
94
+ downloadAsPEM(name) {
95
+ Download.csr.asPEM(this.exportAsPemFormatted(), name || this.commonName);
96
+ }
97
+ downloadAsDER(name) {
98
+ Download.csr.asDER(this.exportAsHexFormatted(), name || this.commonName);
99
+ }
95
100
  }
96
101
 
97
102
  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}";
103
+ const PeculiarCsrViewerStyle0 = certificateViewerCss;
98
104
 
99
105
  const CsrViewer = /*@__PURE__*/ proxyCustomElement(class CsrViewer extends HTMLElement {
100
- constructor() {
101
- super();
102
- this.__registerHost();
103
- this.__attachShadow();
106
+ constructor() {
107
+ super();
108
+ this.__registerHost();
109
+ this.__attachShadow();
110
+ // eslint-disable-next-line class-methods-use-this
111
+ this.getAuthKeyIdParentLink = (value) => value;
112
+ // eslint-disable-next-line class-methods-use-this
113
+ this.getAuthKeyIdSiblingsLink = (value) => value;
114
+ this.getSubjectKeyIdChildrenLink = (value) => {
115
+ var _a;
116
+ return (_a = this.subjectKeyIdChildrenLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
117
+ };
118
+ this.getSubjectKeyIdSiblingsLink = (value) => {
119
+ var _a;
120
+ return (_a = this.subjectKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
121
+ };
122
+ this.certificate = undefined;
123
+ this.download = undefined;
124
+ this.subjectKeyIdChildrenLink = undefined;
125
+ this.subjectKeyIdSiblingsLink = undefined;
126
+ this.mobileMediaQueryString = '(max-width: 900px)';
127
+ this.mobileScreenView = false;
128
+ this.isDecodeInProcess = true;
129
+ }
130
+ handleMediaQueryChange(event) {
131
+ this.mobileScreenView = event.matches;
132
+ }
133
+ componentWillLoad() {
134
+ this.decodeCertificate(this.certificate);
135
+ if (Build.isBrowser) {
136
+ this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);
137
+ this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));
138
+ this.mobileScreenView = this.mobileMediaQuery.matches;
139
+ }
140
+ }
141
+ disconnectedCallback() {
142
+ this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));
143
+ }
144
+ async decodeCertificate(certificate) {
145
+ this.isDecodeInProcess = true;
146
+ try {
147
+ if (certificate instanceof CSR) {
148
+ this.certificateDecoded = certificate;
149
+ }
150
+ else if (typeof certificate === 'string') {
151
+ this.certificateDecoded = new CSR(certificate);
152
+ }
153
+ else {
154
+ return;
155
+ }
156
+ this.certificateDecoded.parseAttributes();
157
+ await this.certificateDecoded.getThumbprint('SHA-1');
158
+ await this.certificateDecoded.getThumbprint('SHA-256');
159
+ }
160
+ catch (error) {
161
+ this.certificateDecodeError = error;
162
+ console.error('Error certificate parse:', error);
163
+ }
164
+ this.isDecodeInProcess = false;
165
+ }
166
+ /**
167
+ * Rerun decodeCertificate if previuos value not equal current value
168
+ */
169
+ watchCertificateAndDecode(newValue, oldValue) {
170
+ if (typeof newValue === 'string' && typeof oldValue === 'string') {
171
+ if (newValue !== oldValue) {
172
+ this.decodeCertificate(newValue);
173
+ }
174
+ return;
175
+ }
176
+ if (newValue instanceof CSR
177
+ && oldValue instanceof CSR) {
178
+ if (newValue.commonName !== oldValue.commonName) {
179
+ this.decodeCertificate(newValue);
180
+ }
181
+ }
182
+ }
104
183
  // eslint-disable-next-line class-methods-use-this
105
- this.getAuthKeyIdParentLink = (value) => value;
184
+ renderErrorState() {
185
+ return (h("div", { class: "status_wrapper" }, h(Typography, null, "There was an error decoding this certificate request.")));
186
+ }
106
187
  // eslint-disable-next-line class-methods-use-this
107
- this.getAuthKeyIdSiblingsLink = (value) => value;
108
- this.getSubjectKeyIdChildrenLink = (value) => {
109
- var _a;
110
- return (_a = this.subjectKeyIdChildrenLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
111
- };
112
- this.getSubjectKeyIdSiblingsLink = (value) => {
113
- var _a;
114
- return (_a = this.subjectKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
115
- };
116
- this.certificate = undefined;
117
- this.download = undefined;
118
- this.subjectKeyIdChildrenLink = undefined;
119
- this.subjectKeyIdSiblingsLink = undefined;
120
- this.mobileMediaQueryString = '(max-width: 900px)';
121
- this.mobileScreenView = false;
122
- this.isDecodeInProcess = true;
123
- }
124
- handleMediaQueryChange(event) {
125
- this.mobileScreenView = event.matches;
126
- }
127
- componentWillLoad() {
128
- this.decodeCertificate(this.certificate);
129
- if (Build.isBrowser) {
130
- this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);
131
- this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));
132
- this.mobileScreenView = this.mobileMediaQuery.matches;
133
- }
134
- }
135
- disconnectedCallback() {
136
- this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));
137
- }
138
- async decodeCertificate(certificate) {
139
- this.isDecodeInProcess = true;
140
- try {
141
- if (certificate instanceof CSR) {
142
- this.certificateDecoded = certificate;
143
- }
144
- else if (typeof certificate === 'string') {
145
- this.certificateDecoded = new CSR(certificate);
146
- }
147
- else {
148
- return;
149
- }
150
- this.certificateDecoded.parseAttributes();
151
- await this.certificateDecoded.getThumbprint('SHA-1');
152
- await this.certificateDecoded.getThumbprint('SHA-256');
153
- }
154
- catch (error) {
155
- this.certificateDecodeError = error;
156
- console.error('Error certificate parse:', error);
157
- }
158
- this.isDecodeInProcess = false;
159
- }
160
- /**
161
- * Rerun decodeCertificate if previuos value not equal current value
162
- */
163
- watchCertificateAndDecode(newValue, oldValue) {
164
- if (typeof newValue === 'string' && typeof oldValue === 'string') {
165
- if (newValue !== oldValue) {
166
- this.decodeCertificate(newValue);
167
- }
168
- return;
169
- }
170
- if (newValue instanceof CSR
171
- && oldValue instanceof CSR) {
172
- if (newValue.commonName !== oldValue.commonName) {
173
- this.decodeCertificate(newValue);
174
- }
175
- }
176
- }
177
- // eslint-disable-next-line class-methods-use-this
178
- renderErrorState() {
179
- return (h("div", { class: "status_wrapper" }, h(Typography, null, "There was an error decoding this certificate request.")));
180
- }
181
- // eslint-disable-next-line class-methods-use-this
182
- renderEmptyState() {
183
- return (h("div", { class: "status_wrapper" }, h(Typography, null, "There is no certificate request available.")));
184
- }
185
- getExtensionRequestAttribute() {
186
- if (!this.certificateDecoded) {
187
- return undefined;
188
- }
189
- return this.certificateDecoded.attributes
190
- .find((attribute) => attribute.asn.type === '1.2.840.113549.1.9.14');
191
- }
192
- render() {
193
- if (this.certificateDecodeError) {
194
- return this.renderErrorState();
195
- }
196
- if (!this.certificateDecoded) {
197
- return this.renderEmptyState();
198
- }
199
- const extensionRequestAttribute = this.getExtensionRequestAttribute();
200
- 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 })))));
201
- }
202
- static get watchers() { return {
203
- "certificate": ["watchCertificateAndDecode"]
204
- }; }
205
- static get style() { return certificateViewerCss; }
188
+ renderEmptyState() {
189
+ return (h("div", { class: "status_wrapper" }, h(Typography, null, "There is no certificate request available.")));
190
+ }
191
+ render() {
192
+ if (this.certificateDecodeError) {
193
+ return this.renderErrorState();
194
+ }
195
+ if (!this.certificateDecoded) {
196
+ return this.renderEmptyState();
197
+ }
198
+ 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 })))));
199
+ }
200
+ static get watchers() { return {
201
+ "certificate": ["watchCertificateAndDecode"]
202
+ }; }
203
+ static get style() { return PeculiarCsrViewerStyle0; }
206
204
  }, [1, "peculiar-csr-viewer", {
207
- "certificate": [513],
208
- "download": [4],
209
- "subjectKeyIdChildrenLink": [513, "subject-key-id-children-link"],
210
- "subjectKeyIdSiblingsLink": [513, "subject-key-id-siblings-link"],
211
- "mobileMediaQueryString": [1, "mobile-media-query-string"],
212
- "mobileScreenView": [32],
213
- "isDecodeInProcess": [32]
214
- }, undefined, {
215
- "certificate": ["watchCertificateAndDecode"]
216
- }]);
205
+ "certificate": [513],
206
+ "download": [4],
207
+ "subjectKeyIdChildrenLink": [513, "subject-key-id-children-link"],
208
+ "subjectKeyIdSiblingsLink": [513, "subject-key-id-siblings-link"],
209
+ "mobileMediaQueryString": [1, "mobile-media-query-string"],
210
+ "mobileScreenView": [32],
211
+ "isDecodeInProcess": [32]
212
+ }, undefined, {
213
+ "certificate": ["watchCertificateAndDecode"]
214
+ }]);
217
215
  function defineCustomElement() {
218
- if (typeof customElements === "undefined") {
219
- return;
220
- }
221
- const components = ["peculiar-csr-viewer"];
222
- components.forEach(tagName => { switch (tagName) {
223
- case "peculiar-csr-viewer":
224
- if (!customElements.get(tagName)) {
225
- customElements.define(tagName, CsrViewer);
226
- }
227
- break;
228
- } });
216
+ if (typeof customElements === "undefined") {
217
+ return;
218
+ }
219
+ const components = ["peculiar-csr-viewer"];
220
+ components.forEach(tagName => { switch (tagName) {
221
+ case "peculiar-csr-viewer":
222
+ if (!customElements.get(tagName)) {
223
+ customElements.define(tagName, CsrViewer);
224
+ }
225
+ break;
226
+ } });
229
227
  }
230
228
 
231
229
  export { CSR as C, CsrViewer as a, defineCustomElement as d };
@@ -1 +1 @@
1
- {"file":"csr-viewer.js","mappings":";;;;;;;;;;AAAA;;;;;;;MAqCa,GAAI,SAAQ,OAA6B;EAWpD,YAAY,GAAW;IACrB,KAAK,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,oBAAoB,CAAC,CAAC;IALpD,gBAAW,GAA2B,EAAE,CAAC;IAEzC,SAAI,GAAW,6BAA6B,CAAC;IAKlD,MAAM,EAAE,wBAAwB,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC;IAE9C,IAAI,CAAC,OAAO,GAAG,IAAI,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IACnE,IAAI,CAAC,OAAO,GAAG,wBAAwB,CAAC,OAAO,CAAC;GACjD;EAED,IAAW,SAAS;IAClB,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,wBAAwB,CAAC,aAAa,CAAC;IACxF,IAAI,MAAM,CAAC;IAEX,IAAI,SAAS,CAAC,SAAS,KAAK,cAAc,IAAI,SAAS,CAAC,UAAU,EAAE;MAClE,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;KAC/D;IAED,IAAI,SAAS,CAAC,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IAAI,CAAC,2BAA2B,EAC7D,2BAA2B,EAAE,IAAI,CAAC,2BAA2B,GAC7D,EAED,IAAI,CAAC,QAAQ,KACZ,EAAC,aAAa,IACZ,WAAW,EAAE,IAAI,CAAC,kBAAkB,GACpC,CACH,CACK,CACH,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["Convert"],"sources":["src/crypto/csr.ts","src/components/certificate-viewer/certificate-viewer.scss?tag=peculiar-csr-viewer&encapsulation=shadow","src/components/csr-viewer/csr-viewer.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { AsnConvert } from '@peculiar/asn1-schema';\nimport { ECParameters, id_ecPublicKey } from '@peculiar/asn1-ecc';\nimport { id_rsaEncryption, RSAPublicKey } from '@peculiar/asn1-rsa';\nimport { CertificationRequest } from '@peculiar/asn1-csr';\nimport { Convert } from 'pvtsutils';\n\nimport { Download } from '../utils';\n\nimport { AsnData } from './asn_data';\nimport { Name, INameJSON } from './name';\nimport { Attribute, TAttributeValue } from './attribute';\nimport {\n certificateRawToBuffer,\n hexFormat,\n base64Format,\n getCertificateThumbprint,\n} from './utils';\n\ninterface ISignature {\n algorithm: string;\n value: BufferSource;\n}\n\ninterface IPublicKey {\n algorithm: string;\n value: BufferSource;\n params?: ECParameters | RSAPublicKey;\n}\n\nexport class CSR extends AsnData<CertificationRequest> {\n public readonly subject: INameJSON[];\n\n public readonly version: number;\n\n public attributes: Attribute<TAttributeValue>[];\n\n public thumbprints: Record<string, string> = {};\n\n public type: string = 'PKCS#10 Certificate Request';\n\n constructor(raw: string) {\n super(certificateRawToBuffer(raw), CertificationRequest);\n\n const { certificationRequestInfo } = this.asn;\n\n this.subject = new Name(certificationRequestInfo.subject).toJSON();\n this.version = certificationRequestInfo.version;\n }\n\n public get publicKey(): IPublicKey {\n const { subjectPublicKey, algorithm } = this.asn.certificationRequestInfo.subjectPKInfo;\n let params;\n\n if (algorithm.algorithm === id_ecPublicKey && algorithm.parameters) {\n params = AsnConvert.parse(algorithm.parameters, ECParameters);\n }\n\n if (algorithm.algorithm === id_rsaEncryption) {\n params = AsnConvert.parse(subjectPublicKey, RSAPublicKey);\n }\n\n const spki = AsnConvert.serialize(this.asn.certificationRequestInfo.subjectPKInfo);\n\n return {\n params,\n value: spki,\n algorithm: algorithm.algorithm,\n };\n }\n\n public get signature(): ISignature {\n const { signature, signatureAlgorithm } = this.asn;\n\n return {\n value: signature,\n algorithm: signatureAlgorithm.algorithm,\n };\n }\n\n public get commonName(): string {\n if (!this.subject) {\n return '';\n }\n\n for (let i = 0; i < this.subject.length; i += 1) {\n const name = this.subject[i];\n\n if (name.shortName === 'CN' || name.shortName === 'E' || name.shortName === 'O') {\n return name.value;\n }\n }\n\n return '';\n }\n\n public async getThumbprint(\n algorithm: string = 'SHA-1',\n ): Promise<void> {\n try {\n const thumbprint = await getCertificateThumbprint(algorithm, this.raw);\n\n if (thumbprint) {\n this.thumbprints[algorithm] = Convert.ToHex(thumbprint);\n }\n } catch (error) {\n console.error('Error thumbprint get:', error);\n }\n }\n\n public parseAttributes() {\n const { certificationRequestInfo } = this.asn;\n\n if (certificationRequestInfo.attributes) {\n this.attributes = certificationRequestInfo.attributes\n .map((e) => new Attribute(AsnConvert.serialize(e)));\n }\n }\n\n public exportAsBase64() {\n return Convert.ToBase64(this.raw);\n }\n\n public exportAsHexFormatted() {\n return hexFormat(Convert.ToHex(this.raw));\n }\n\n public exportAsPemFormatted() {\n return `-----BEGIN CERTIFICATE REQUEST-----\\n${base64Format(this.exportAsBase64())}\\n-----END CERTIFICATE REQUEST-----`;\n }\n\n public downloadAsPEM(name?: string) {\n Download.csr.asPEM(\n this.exportAsPemFormatted(),\n name || this.commonName,\n );\n }\n\n public downloadAsDER(name?: string) {\n Download.csr.asDER(\n this.exportAsHexFormatted(),\n name || this.commonName,\n );\n }\n}\n","@import '../../css/base.scss';\n\n:host {\n display: block;\n width: 100%;\n position: relative;\n min-width: 280px;\n min-height: 300px;\n word-wrap: break-word;\n word-break: break-word;\n}\n\nth, td {\n border: none;\n}\n\ntable {\n width: 100%;\n border-spacing: 0;\n border-collapse: collapse;\n\n td {\n padding: var(--pv-size-base-2) var(--pv-size-base-4);\n vertical-align: top;\n\n &:first-child {\n width: 220px;\n }\n\n &:last-child {\n width: calc(100% - 220px)\n }\n\n &.monospace {\n max-width: 0;\n }\n\n &.divider {\n padding: var(--pv-size-base-2) 0;\n\n span {\n height: 1px;\n display: block;\n background-color: var(--pv-color-gray-4);\n }\n }\n }\n\n .title td {\n padding-top: var(--pv-size-base-6);\n padding-bottom: var(--pv-size-base-2);\n }\n\n table {\n border-left: 1px solid var(--pv-color-gray-5);\n }\n}\n\n.status_wrapper {\n min-height: inherit;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n:host([data-mobile-screen-view=\"true\"]) {\n table, tr, td {\n display: block;\n }\n\n table {\n tr {\n padding: var(--pv-size-base-2) 0;\n\n &.title {\n padding-top: var(--pv-size-base-6);\n\n td {\n padding: 0 var(--pv-size-base-4);\n }\n }\n }\n\n td {\n padding: 0 var(--pv-size-base-4);\n width: 100% !important;\n max-width: 100% !important;\n\n &.divider {\n padding: 0;\n }\n }\n }\n}\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Host,\n h,\n Prop,\n State,\n Watch,\n Build,\n} from '@stencil/core';\n\nimport { CSR } from '../../crypto';\nimport { getDNSNameLink, getIPAddressLink, getLEILink } from '../../utils/third_party_links';\nimport {\n BasicInformation,\n SubjectName,\n Signature,\n Thumbprints,\n Extensions,\n Miscellaneous,\n PublicKey,\n Attributes,\n} from '../certificate-details-parts';\nimport { Typography } from '../typography';\n\nexport type CsrProp = string | CSR;\n\n@Component({\n tag: 'peculiar-csr-viewer',\n styleUrl: '../certificate-viewer/certificate-viewer.scss',\n shadow: true,\n})\nexport class CsrViewer {\n private certificateDecoded: CSR;\n\n private certificateDecodeError: Error;\n\n private mobileMediaQuery: MediaQueryList;\n\n /**\n * The certificate value for decode and show details. Use PEM or DER.\n */\n @Prop({ reflect: true }) certificate: CsrProp;\n\n /**\n * If `true` - component will show split-button to download certificate as PEM or DER.\n */\n @Prop() download?: boolean;\n\n /**\n * Subject Key Identifier extension children link.\n * <br />\n * **NOTE**: `{{subjectKeyId}}` will be replaced to value from the extension.\n * @example\n * https://censys.io/certificates?q=parsed.extensions.authority_key_id:%20{{subjectKeyId}}\n */\n @Prop({ reflect: true }) subjectKeyIdChildrenLink?: string;\n\n /**\n * Subject Key Identifier extension siblings link.\n * <br />\n * **NOTE**: `{{subjectKeyId}}` will be replaced to value from the extension.\n * @example\n * https://some.com/{{subjectKeyId}}\n */\n @Prop({ reflect: true }) subjectKeyIdSiblingsLink?: string;\n\n /**\n * Mobile media query string to control screen view change.\n * <br />\n * **NOTE**: Based on https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia.\n * @example\n * (max-width: 900px)\n */\n @Prop({ reflect: false }) mobileMediaQueryString?: string = '(max-width: 900px)';\n\n @State() mobileScreenView: boolean = false;\n\n @State() isDecodeInProcess: boolean = true;\n\n private handleMediaQueryChange(event: MediaQueryListEvent) {\n this.mobileScreenView = event.matches;\n }\n\n componentWillLoad() {\n this.decodeCertificate(this.certificate);\n\n if (Build.isBrowser) {\n this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);\n this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));\n this.mobileScreenView = this.mobileMediaQuery.matches;\n }\n }\n\n disconnectedCallback() {\n this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));\n }\n\n private async decodeCertificate(certificate: CsrProp) {\n this.isDecodeInProcess = true;\n\n try {\n if (certificate instanceof CSR) {\n this.certificateDecoded = certificate;\n } else if (typeof certificate === 'string') {\n this.certificateDecoded = new CSR(certificate);\n } else {\n return;\n }\n\n this.certificateDecoded.parseAttributes();\n await this.certificateDecoded.getThumbprint('SHA-1');\n await this.certificateDecoded.getThumbprint('SHA-256');\n } catch (error) {\n this.certificateDecodeError = error;\n\n console.error('Error certificate parse:', error);\n }\n\n this.isDecodeInProcess = false;\n }\n\n /**\n * Rerun decodeCertificate if previuos value not equal current value\n */\n @Watch('certificate')\n watchCertificateAndDecode(\n newValue: CsrProp,\n oldValue: CsrProp,\n ) {\n if (typeof newValue === 'string' && typeof oldValue === 'string') {\n if (newValue !== oldValue) {\n this.decodeCertificate(newValue);\n }\n\n return;\n }\n\n if (\n newValue instanceof CSR\n && oldValue instanceof CSR\n ) {\n if (newValue.commonName !== oldValue.commonName) {\n this.decodeCertificate(newValue);\n }\n }\n }\n\n // eslint-disable-next-line class-methods-use-this\n private getAuthKeyIdParentLink = (value: string) => value;\n\n // eslint-disable-next-line class-methods-use-this\n private getAuthKeyIdSiblingsLink = (value: string) => value;\n\n private getSubjectKeyIdChildrenLink = (value: string) => this.subjectKeyIdChildrenLink\n ?.replace('{{subjectKeyId}}', value);\n\n private getSubjectKeyIdSiblingsLink = (value: string) => this.subjectKeyIdSiblingsLink\n ?.replace('{{subjectKeyId}}', value);\n\n // eslint-disable-next-line class-methods-use-this\n private renderErrorState() {\n return (\n <div class=\"status_wrapper\">\n <Typography>\n There was an error decoding this certificate request.\n </Typography>\n </div>\n );\n }\n\n // eslint-disable-next-line class-methods-use-this\n private renderEmptyState() {\n return (\n <div class=\"status_wrapper\">\n <Typography>\n There is no certificate request available.\n </Typography>\n </div>\n );\n }\n\n private getExtensionRequestAttribute() {\n if (!this.certificateDecoded) {\n return undefined;\n }\n\n return this.certificateDecoded.attributes\n .find((attribute) => attribute.asn.type === '1.2.840.113549.1.9.14');\n }\n\n render() {\n if (this.certificateDecodeError) {\n return this.renderErrorState();\n }\n\n if (!this.certificateDecoded) {\n return this.renderEmptyState();\n }\n\n const extensionRequestAttribute = this.getExtensionRequestAttribute();\n\n return (\n <Host\n data-mobile-screen-view={String(this.mobileScreenView)}\n >\n <table>\n <BasicInformation\n {...this.certificateDecoded}\n />\n\n <SubjectName\n name={this.certificateDecoded.subject}\n />\n\n <PublicKey\n publicKey={this.certificateDecoded.publicKey}\n />\n\n <Signature\n signature={this.certificateDecoded.signature}\n />\n\n <Thumbprints\n thumbprints={this.certificateDecoded.thumbprints}\n />\n\n <Attributes\n attributes={this.certificateDecoded.attributes}\n getLEILink={getLEILink}\n getDNSNameLink={getDNSNameLink}\n getIPAddressLink={getIPAddressLink}\n getAuthKeyIdParentLink={this.getAuthKeyIdParentLink}\n getAuthKeyIdSiblingsLink={this.getAuthKeyIdSiblingsLink}\n getSubjectKeyIdChildrenLink={this.getSubjectKeyIdChildrenLink}\n getSubjectKeyIdSiblingsLink={this.getSubjectKeyIdSiblingsLink}\n />\n\n <Extensions\n extensions={extensionRequestAttribute?.value as any}\n title=\"Extension Request\"\n getLEILink={getLEILink}\n getDNSNameLink={getDNSNameLink}\n getIPAddressLink={getIPAddressLink}\n getAuthKeyIdParentLink={this.getAuthKeyIdParentLink}\n getAuthKeyIdSiblingsLink={this.getAuthKeyIdSiblingsLink}\n getSubjectKeyIdChildrenLink={this.getSubjectKeyIdChildrenLink}\n getSubjectKeyIdSiblingsLink={this.getSubjectKeyIdSiblingsLink}\n />\n\n {this.download && (\n <Miscellaneous\n certificate={this.certificateDecoded}\n />\n )}\n </table>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"csr-viewer.js","mappings":";;;;;;;;;;AAAA;;;;;;;MA0Ca,GAAI,SAAQ,OAA6B;IAapD,YAAY,GAAW;QACrB,KAAK,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,oBAAoB,CAAC,CAAC;QALpD,gBAAW,GAA2B,EAAE,CAAC;QAEzC,SAAI,GAAW,6BAA6B,CAAC;QAKlD,MAAM,EAAE,wBAAwB,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC;QAE9C,IAAI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kB,CAAC,UAAU,EAC9C,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,EAClC,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,EACnD,wBAAwB,EAAE,IAAI,CAAC,wBAAwB,EACvD,2BAA2B,EAAE,IAAI,CAAC,2BAA2B,EAC7D,2BAA2B,EAAE,IAAI,CAAC,2BAA2B,GAC7D,EAEF,EAAC,UAAU,IACT,UAAU,EAAE,IAAI,CAAC,kBAAkB,CAAC,UAAU,EAC9C,KAAK,EAAC,mBAAmB,EACzB,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,EAClC,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,EACnD,wBAAwB,EAAE,IAAI,CAAC,wBAAwB,EACvD,2BAA2B,EAAE,IAAI,CAAC,2BAA2B,EAC7D,2BAA2B,EAAE,IAAI,CAAC,2BAA2B,GAC7D,EAED,IAAI,CAAC,QAAQ,KACZ,EAAC,aAAa,IACZ,WAAW,EAAE,IAAI,CAAC,kBAAkB,GACpC,CACH,CACK,CACH,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["Convert"],"sources":["src/crypto/csr.ts","src/components/certificate-viewer/certificate-viewer.scss?tag=peculiar-csr-viewer&encapsulation=shadow","src/components/csr-viewer/csr-viewer.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { AsnConvert } from '@peculiar/asn1-schema';\nimport { ECParameters, id_ecPublicKey } from '@peculiar/asn1-ecc';\nimport { id_rsaEncryption, RSAPublicKey } from '@peculiar/asn1-rsa';\nimport { CertificationRequest } from '@peculiar/asn1-csr';\nimport {\n id_pkcs9_at_extensionRequest,\n ExtensionRequest,\n} from '@peculiar/asn1-pkcs9';\nimport { Convert } from 'pvtsutils';\n\nimport { Download } from '../utils';\n\nimport { AsnData } from './asn_data';\nimport { Name, INameJSON } from './name';\nimport { Attribute, TAttributeValue } from './attribute';\nimport { Extension, TExtensionValue } from './extension';\nimport {\n certificateRawToBuffer,\n hexFormat,\n base64Format,\n getCertificateThumbprint,\n} from './utils';\n\ninterface ISignature {\n algorithm: string;\n value: BufferSource;\n}\n\ninterface IPublicKey {\n algorithm: string;\n value: BufferSource;\n params?: ECParameters | RSAPublicKey;\n}\n\nexport class CSR extends AsnData<CertificationRequest> {\n public readonly subject: INameJSON[];\n\n public readonly version: number;\n\n public attributes: Attribute<TAttributeValue>[];\n\n public extensions: Extension<TExtensionValue>[];\n\n public thumbprints: Record<string, string> = {};\n\n public type: string = 'PKCS#10 Certificate Request';\n\n constructor(raw: string) {\n super(certificateRawToBuffer(raw), CertificationRequest);\n\n const { certificationRequestInfo } = this.asn;\n\n this.subject = new Name(certificationRequestInfo.subject).toJSON();\n this.version = certificationRequestInfo.version;\n }\n\n public get publicKey(): IPublicKey {\n const { subjectPublicKey, algorithm } = this.asn.certificationRequestInfo.subjectPKInfo;\n let params;\n\n if (algorithm.algorithm === id_ecPublicKey && algorithm.parameters) {\n params = AsnConvert.parse(algorithm.parameters, ECParameters);\n }\n\n if (algorithm.algorithm === id_rsaEncryption) {\n params = AsnConvert.parse(subjectPublicKey, RSAPublicKey);\n }\n\n const spki = AsnConvert.serialize(this.asn.certificationRequestInfo.subjectPKInfo);\n\n return {\n params,\n value: spki,\n algorithm: algorithm.algorithm,\n };\n }\n\n public get signature(): ISignature {\n const { signature, signatureAlgorithm } = this.asn;\n\n return {\n value: signature,\n algorithm: signatureAlgorithm.algorithm,\n };\n }\n\n public get commonName(): string {\n if (!this.subject) {\n return '';\n }\n\n for (let i = 0; i < this.subject.length; i += 1) {\n const name = this.subject[i];\n\n if (name.shortName === 'CN' || name.shortName === 'E' || name.shortName === 'O') {\n return name.value;\n }\n }\n\n return '';\n }\n\n public async getThumbprint(\n algorithm: string = 'SHA-1',\n ): Promise<void> {\n try {\n const thumbprint = await getCertificateThumbprint(algorithm, this.raw);\n\n if (thumbprint) {\n this.thumbprints[algorithm] = Convert.ToHex(thumbprint);\n }\n } catch (error) {\n console.error('Error thumbprint get:', error);\n }\n }\n\n public parseAttributes() {\n const { certificationRequestInfo } = this.asn;\n\n if (certificationRequestInfo.attributes) {\n this.attributes = certificationRequestInfo.attributes\n .map((e) => new Attribute(AsnConvert.serialize(e)));\n\n const extensionRequestAttribute = this.attributes.find(\n (attribute) => attribute.asn.type === id_pkcs9_at_extensionRequest,\n ) as Attribute<ExtensionRequest>;\n\n if (extensionRequestAttribute) {\n this.extensions = extensionRequestAttribute.value\n .map((e) => new Extension(AsnConvert.serialize(e)));\n }\n }\n }\n\n public exportAsBase64() {\n return Convert.ToBase64(this.raw);\n }\n\n public exportAsHexFormatted() {\n return hexFormat(Convert.ToHex(this.raw));\n }\n\n public exportAsPemFormatted() {\n return `-----BEGIN CERTIFICATE REQUEST-----\\n${base64Format(this.exportAsBase64())}\\n-----END CERTIFICATE REQUEST-----`;\n }\n\n public downloadAsPEM(name?: string) {\n Download.csr.asPEM(\n this.exportAsPemFormatted(),\n name || this.commonName,\n );\n }\n\n public downloadAsDER(name?: string) {\n Download.csr.asDER(\n this.exportAsHexFormatted(),\n name || this.commonName,\n );\n }\n}\n","@import '../../css/base.scss';\n\n:host {\n display: block;\n width: 100%;\n position: relative;\n min-width: 280px;\n min-height: 300px;\n word-wrap: break-word;\n word-break: break-word;\n}\n\nth, td {\n border: none;\n}\n\ntable {\n width: 100%;\n border-spacing: 0;\n border-collapse: collapse;\n\n td {\n padding: var(--pv-size-base-2) var(--pv-size-base-4);\n vertical-align: top;\n\n &:first-child {\n width: 220px;\n }\n\n &:last-child {\n width: calc(100% - 220px)\n }\n\n &.monospace {\n max-width: 0;\n }\n\n &.divider {\n padding: var(--pv-size-base-2) 0;\n\n span {\n height: 1px;\n display: block;\n background-color: var(--pv-color-gray-4);\n }\n }\n }\n\n .title td {\n padding-top: var(--pv-size-base-6);\n padding-bottom: var(--pv-size-base-2);\n }\n\n table {\n border-left: 1px solid var(--pv-color-gray-5);\n }\n}\n\n.status_wrapper {\n min-height: inherit;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n:host([data-mobile-screen-view=\"true\"]) {\n table, tr, td {\n display: block;\n }\n\n table {\n tr {\n padding: var(--pv-size-base-2) 0;\n\n &.title {\n padding-top: var(--pv-size-base-6);\n\n td {\n padding: 0 var(--pv-size-base-4);\n }\n }\n }\n\n td {\n padding: 0 var(--pv-size-base-4);\n width: 100% !important;\n max-width: 100% !important;\n\n &.divider {\n padding: 0;\n }\n }\n }\n}\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Host,\n h,\n Prop,\n State,\n Watch,\n Build,\n} from '@stencil/core';\n\nimport { CSR } from '../../crypto';\nimport { getDNSNameLink, getIPAddressLink, getLEILink } from '../../utils/third_party_links';\nimport {\n BasicInformation,\n SubjectName,\n Signature,\n Thumbprints,\n Extensions,\n Miscellaneous,\n PublicKey,\n Attributes,\n} from '../certificate-details-parts';\nimport { Typography } from '../typography';\n\nexport type CsrProp = string | CSR;\n\n@Component({\n tag: 'peculiar-csr-viewer',\n styleUrl: '../certificate-viewer/certificate-viewer.scss',\n shadow: true,\n})\nexport class CsrViewer {\n private certificateDecoded: CSR;\n\n private certificateDecodeError: Error;\n\n private mobileMediaQuery: MediaQueryList;\n\n /**\n * The certificate value for decode and show details. Use PEM or DER.\n */\n @Prop({ reflect: true }) certificate: CsrProp;\n\n /**\n * If `true` - component will show split-button to download certificate as PEM or DER.\n */\n @Prop() download?: boolean;\n\n /**\n * Subject Key Identifier extension children link.\n * <br />\n * **NOTE**: `{{subjectKeyId}}` will be replaced to value from the extension.\n * @example\n * https://censys.io/certificates?q=parsed.extensions.authority_key_id:%20{{subjectKeyId}}\n */\n @Prop({ reflect: true }) subjectKeyIdChildrenLink?: string;\n\n /**\n * Subject Key Identifier extension siblings link.\n * <br />\n * **NOTE**: `{{subjectKeyId}}` will be replaced to value from the extension.\n * @example\n * https://some.com/{{subjectKeyId}}\n */\n @Prop({ reflect: true }) subjectKeyIdSiblingsLink?: string;\n\n /**\n * Mobile media query string to control screen view change.\n * <br />\n * **NOTE**: Based on https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia.\n * @example\n * (max-width: 900px)\n */\n @Prop({ reflect: false }) mobileMediaQueryString?: string = '(max-width: 900px)';\n\n @State() mobileScreenView: boolean = false;\n\n @State() isDecodeInProcess: boolean = true;\n\n private handleMediaQueryChange(event: MediaQueryListEvent) {\n this.mobileScreenView = event.matches;\n }\n\n componentWillLoad() {\n this.decodeCertificate(this.certificate);\n\n if (Build.isBrowser) {\n this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);\n this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));\n this.mobileScreenView = this.mobileMediaQuery.matches;\n }\n }\n\n disconnectedCallback() {\n this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));\n }\n\n private async decodeCertificate(certificate: CsrProp) {\n this.isDecodeInProcess = true;\n\n try {\n if (certificate instanceof CSR) {\n this.certificateDecoded = certificate;\n } else if (typeof certificate === 'string') {\n this.certificateDecoded = new CSR(certificate);\n } else {\n return;\n }\n\n this.certificateDecoded.parseAttributes();\n await this.certificateDecoded.getThumbprint('SHA-1');\n await this.certificateDecoded.getThumbprint('SHA-256');\n } catch (error) {\n this.certificateDecodeError = error;\n\n console.error('Error certificate parse:', error);\n }\n\n this.isDecodeInProcess = false;\n }\n\n /**\n * Rerun decodeCertificate if previuos value not equal current value\n */\n @Watch('certificate')\n watchCertificateAndDecode(\n newValue: CsrProp,\n oldValue: CsrProp,\n ) {\n if (typeof newValue === 'string' && typeof oldValue === 'string') {\n if (newValue !== oldValue) {\n this.decodeCertificate(newValue);\n }\n\n return;\n }\n\n if (\n newValue instanceof CSR\n && oldValue instanceof CSR\n ) {\n if (newValue.commonName !== oldValue.commonName) {\n this.decodeCertificate(newValue);\n }\n }\n }\n\n // eslint-disable-next-line class-methods-use-this\n private getAuthKeyIdParentLink = (value: string) => value;\n\n // eslint-disable-next-line class-methods-use-this\n private getAuthKeyIdSiblingsLink = (value: string) => value;\n\n private getSubjectKeyIdChildrenLink = (value: string) => this.subjectKeyIdChildrenLink\n ?.replace('{{subjectKeyId}}', value);\n\n private getSubjectKeyIdSiblingsLink = (value: string) => this.subjectKeyIdSiblingsLink\n ?.replace('{{subjectKeyId}}', value);\n\n // eslint-disable-next-line class-methods-use-this\n private renderErrorState() {\n return (\n <div class=\"status_wrapper\">\n <Typography>\n There was an error decoding this certificate request.\n </Typography>\n </div>\n );\n }\n\n // eslint-disable-next-line class-methods-use-this\n private renderEmptyState() {\n return (\n <div class=\"status_wrapper\">\n <Typography>\n There is no certificate request available.\n </Typography>\n </div>\n );\n }\n\n render() {\n if (this.certificateDecodeError) {\n return this.renderErrorState();\n }\n\n if (!this.certificateDecoded) {\n return this.renderEmptyState();\n }\n\n return (\n <Host\n data-mobile-screen-view={String(this.mobileScreenView)}\n >\n <table>\n <BasicInformation\n {...this.certificateDecoded}\n />\n\n <SubjectName\n name={this.certificateDecoded.subject}\n />\n\n <PublicKey\n publicKey={this.certificateDecoded.publicKey}\n />\n\n <Signature\n signature={this.certificateDecoded.signature}\n />\n\n <Thumbprints\n thumbprints={this.certificateDecoded.thumbprints}\n />\n\n <Attributes\n attributes={this.certificateDecoded.attributes}\n getLEILink={getLEILink}\n getDNSNameLink={getDNSNameLink}\n getIPAddressLink={getIPAddressLink}\n getAuthKeyIdParentLink={this.getAuthKeyIdParentLink}\n getAuthKeyIdSiblingsLink={this.getAuthKeyIdSiblingsLink}\n getSubjectKeyIdChildrenLink={this.getSubjectKeyIdChildrenLink}\n getSubjectKeyIdSiblingsLink={this.getSubjectKeyIdSiblingsLink}\n />\n\n <Extensions\n extensions={this.certificateDecoded.extensions}\n title=\"Extension Request\"\n getLEILink={getLEILink}\n getDNSNameLink={getDNSNameLink}\n getIPAddressLink={getIPAddressLink}\n getAuthKeyIdParentLink={this.getAuthKeyIdParentLink}\n getAuthKeyIdSiblingsLink={this.getAuthKeyIdSiblingsLink}\n getSubjectKeyIdChildrenLink={this.getSubjectKeyIdChildrenLink}\n getSubjectKeyIdSiblingsLink={this.getSubjectKeyIdSiblingsLink}\n />\n\n {this.download && (\n <Miscellaneous\n certificate={this.certificateDecoded}\n />\n )}\n </table>\n </Host>\n );\n }\n}\n"],"version":3}