@peculiar/certificates-viewer 3.10.1 → 4.0.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 (554) hide show
  1. package/README.md +40 -64
  2. package/components/arrow_top.js +34 -0
  3. package/components/arrow_top.js.map +1 -0
  4. package/components/attribute-certificate-viewer.js +281 -0
  5. package/components/attribute-certificate-viewer.js.map +1 -0
  6. package/components/button-menu.js +64 -0
  7. package/components/button-menu.js.map +1 -0
  8. package/components/button.js +74 -0
  9. package/components/button.js.map +1 -0
  10. package/components/certificate-viewer.js +300 -0
  11. package/components/certificate-viewer.js.map +1 -0
  12. package/components/circular-progress.js +48 -0
  13. package/components/circular-progress.js.map +1 -0
  14. package/components/crl-viewer.js +263 -0
  15. package/components/crl-viewer.js.map +1 -0
  16. package/components/csr-viewer.js +233 -0
  17. package/components/csr-viewer.js.map +1 -0
  18. package/components/custom-elements.d.ts +2 -0
  19. package/{dist/esm/download-91511aeb.js → components/download.js} +2 -0
  20. package/components/download.js.map +1 -0
  21. package/components/highlight-words.js +60 -0
  22. package/components/highlight-words.js.map +1 -0
  23. package/components/index.d.ts +33 -0
  24. package/components/index.js +7 -0
  25. package/components/index.js.map +1 -0
  26. package/components/index2.js +299 -0
  27. package/components/index2.js.map +1 -0
  28. package/components/issuer_name.js +26 -0
  29. package/components/issuer_name.js.map +1 -0
  30. package/components/miscellaneous.js +13420 -0
  31. package/components/miscellaneous.js.map +1 -0
  32. package/components/package.json +9 -0
  33. package/components/peculiar-attribute-certificate-viewer.d.ts +11 -0
  34. package/components/peculiar-attribute-certificate-viewer.js +11 -0
  35. package/components/peculiar-attribute-certificate-viewer.js.map +1 -0
  36. package/components/peculiar-button-menu.d.ts +11 -0
  37. package/components/peculiar-button-menu.js +11 -0
  38. package/components/peculiar-button-menu.js.map +1 -0
  39. package/components/peculiar-certificate-decoder.d.ts +11 -0
  40. package/components/peculiar-certificate-decoder.js +234 -0
  41. package/components/peculiar-certificate-decoder.js.map +1 -0
  42. package/components/peculiar-certificate-viewer.d.ts +11 -0
  43. package/components/peculiar-certificate-viewer.js +11 -0
  44. package/components/peculiar-certificate-viewer.js.map +1 -0
  45. package/components/peculiar-certificates-viewer.d.ts +11 -0
  46. package/components/peculiar-certificates-viewer.js +382 -0
  47. package/components/peculiar-certificates-viewer.js.map +1 -0
  48. package/components/peculiar-circular-progress.d.ts +11 -0
  49. package/components/peculiar-circular-progress.js +11 -0
  50. package/components/peculiar-circular-progress.js.map +1 -0
  51. package/components/peculiar-crl-viewer.d.ts +11 -0
  52. package/components/peculiar-crl-viewer.js +11 -0
  53. package/components/peculiar-crl-viewer.js.map +1 -0
  54. package/components/peculiar-csr-viewer.d.ts +11 -0
  55. package/components/peculiar-csr-viewer.js +11 -0
  56. package/components/peculiar-csr-viewer.js.map +1 -0
  57. package/components/peculiar-highlight-words.d.ts +11 -0
  58. package/components/peculiar-highlight-words.js +11 -0
  59. package/components/peculiar-highlight-words.js.map +1 -0
  60. package/components/peculiar-text-hider.d.ts +11 -0
  61. package/components/peculiar-text-hider.js +42 -0
  62. package/components/peculiar-text-hider.js.map +1 -0
  63. package/components/subject_name.js +71 -0
  64. package/components/subject_name.js.map +1 -0
  65. package/dist/cjs/arrow_top-834fb7ec.js +37 -0
  66. package/dist/cjs/arrow_top-834fb7ec.js.map +1 -0
  67. package/dist/cjs/button-14e2b73f.js +77 -0
  68. package/dist/cjs/button-14e2b73f.js.map +1 -0
  69. package/dist/cjs/{certification_request-d5c6e32d.js → certification_request-c0cafa72.js} +236 -71
  70. package/dist/cjs/certification_request-c0cafa72.js.map +1 -0
  71. package/dist/cjs/{crl-5bce64c4.js → crl-b4322166.js} +8 -7
  72. package/dist/cjs/crl-b4322166.js.map +1 -0
  73. package/dist/cjs/download-254ddc57.js +23 -0
  74. package/dist/cjs/download-254ddc57.js.map +1 -0
  75. package/dist/cjs/{download-93f7b773.js → download-972dda8a.js} +2 -0
  76. package/dist/cjs/download-972dda8a.js.map +1 -0
  77. package/dist/cjs/index-efd561e9.js +2477 -0
  78. package/dist/cjs/index-efd561e9.js.map +1 -0
  79. package/dist/cjs/index.cjs.js +3 -1
  80. package/dist/cjs/index.cjs.js.map +1 -0
  81. package/dist/cjs/loader.cjs.js +6 -12
  82. package/dist/cjs/loader.cjs.js.map +1 -0
  83. package/dist/cjs/{miscellaneous-cac1cd8b.js → miscellaneous-806a04a5.js} +86 -70
  84. package/dist/cjs/miscellaneous-806a04a5.js.map +1 -0
  85. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +92 -35
  86. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js.map +1 -0
  87. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +110 -0
  88. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js.map +1 -0
  89. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +30 -19
  90. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +1 -0
  91. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +34 -11
  92. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -0
  93. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +183 -85
  94. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -0
  95. package/dist/cjs/peculiar-text-hider.cjs.entry.js +7 -13
  96. package/dist/cjs/peculiar-text-hider.cjs.entry.js.map +1 -0
  97. package/dist/cjs/peculiar.cjs.js +10 -57
  98. package/dist/cjs/peculiar.cjs.js.map +1 -0
  99. package/dist/cjs/{x509_certificate-3760e0a8.js → x509_certificate-989b1435.js} +5 -4
  100. package/dist/cjs/x509_certificate-989b1435.js.map +1 -0
  101. package/dist/collection/collection-manifest.json +12 -16
  102. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +189 -145
  103. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js.map +1 -0
  104. package/dist/collection/components/button/button.js +14 -126
  105. package/dist/collection/components/button/button.js.map +1 -0
  106. package/dist/collection/components/button/index.js +5 -0
  107. package/dist/collection/components/button/index.js.map +1 -0
  108. package/dist/collection/components/button-menu/button-menu.css +46 -0
  109. package/dist/collection/components/button-menu/button-menu.js +78 -0
  110. package/dist/collection/components/button-menu/button-menu.js.map +1 -0
  111. package/dist/collection/components/certificate-decoder/certificate-decoder.css +456 -44
  112. package/dist/collection/components/certificate-decoder/certificate-decoder.js +109 -101
  113. package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -0
  114. package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js +6 -11
  115. package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js.map +1 -0
  116. package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js +5 -5
  117. package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js.map +1 -0
  118. package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js +5 -6
  119. package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js.map +1 -0
  120. package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js +5 -5
  121. package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js.map +1 -0
  122. package/dist/collection/components/certificate-details-parts/attributes/index.js +16 -15
  123. package/dist/collection/components/certificate-details-parts/attributes/index.js.map +1 -0
  124. package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js +5 -5
  125. package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js.map +1 -0
  126. package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js +5 -5
  127. package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js.map +1 -0
  128. package/dist/collection/components/certificate-details-parts/attributes/name_part.js +4 -3
  129. package/dist/collection/components/certificate-details-parts/attributes/name_part.js.map +1 -0
  130. package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js +5 -4
  131. package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js.map +1 -0
  132. package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js +5 -5
  133. package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js.map +1 -0
  134. package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js +5 -5
  135. package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js.map +1 -0
  136. package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js +6 -13
  137. package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js.map +1 -0
  138. package/dist/collection/components/certificate-details-parts/basic_information.js +4 -3
  139. package/dist/collection/components/certificate-details-parts/basic_information.js.map +1 -0
  140. package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js +5 -5
  141. package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js.map +1 -0
  142. package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js +5 -5
  143. package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js.map +1 -0
  144. package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js +2 -1
  145. package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js.map +1 -0
  146. package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js +10 -15
  147. package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js.map +1 -0
  148. package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js +6 -7
  149. package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js.map +1 -0
  150. package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js +5 -6
  151. package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js.map +1 -0
  152. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js +8 -12
  153. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js.map +1 -0
  154. package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js +5 -6
  155. package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js.map +1 -0
  156. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js +26 -27
  157. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js.map +1 -0
  158. package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js +5 -7
  159. package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js.map +1 -0
  160. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js +8 -13
  161. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js.map +1 -0
  162. package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js +4 -3
  163. package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js.map +1 -0
  164. package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js +6 -6
  165. package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js.map +1 -0
  166. package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js +5 -5
  167. package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js.map +1 -0
  168. package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js +5 -5
  169. package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js.map +1 -0
  170. package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js +5 -6
  171. package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js.map +1 -0
  172. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js +7 -7
  173. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js.map +1 -0
  174. package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js +7 -6
  175. package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js.map +1 -0
  176. package/dist/collection/components/certificate-details-parts/extensions/index.js +46 -45
  177. package/dist/collection/components/certificate-details-parts/extensions/index.js.map +1 -0
  178. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js +8 -9
  179. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js.map +1 -0
  180. package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js +7 -11
  181. package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js.map +1 -0
  182. package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js +5 -5
  183. package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js.map +1 -0
  184. package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js +5 -5
  185. package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js.map +1 -0
  186. package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js +5 -5
  187. package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js.map +1 -0
  188. package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js +8 -11
  189. package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js.map +1 -0
  190. package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js +4 -3
  191. package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js.map +1 -0
  192. package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js +5 -5
  193. package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js.map +1 -0
  194. package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js +5 -5
  195. package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js.map +1 -0
  196. package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js +6 -7
  197. package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js.map +1 -0
  198. package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js +5 -4
  199. package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js.map +1 -0
  200. package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js +6 -7
  201. package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js.map +1 -0
  202. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js +13 -16
  203. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js.map +1 -0
  204. package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js +4 -3
  205. package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js.map +1 -0
  206. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js +8 -9
  207. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js.map +1 -0
  208. package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js +10 -15
  209. package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js.map +1 -0
  210. package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js +7 -9
  211. package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js.map +1 -0
  212. package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js +4 -3
  213. package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js.map +1 -0
  214. package/dist/collection/components/certificate-details-parts/holder.js +8 -11
  215. package/dist/collection/components/certificate-details-parts/holder.js.map +1 -0
  216. package/dist/collection/components/certificate-details-parts/index.js +1 -0
  217. package/dist/collection/components/certificate-details-parts/index.js.map +1 -0
  218. package/dist/collection/components/certificate-details-parts/issuer.js +5 -4
  219. package/dist/collection/components/certificate-details-parts/issuer.js.map +1 -0
  220. package/dist/collection/components/certificate-details-parts/issuer_name.js +6 -4
  221. package/dist/collection/components/certificate-details-parts/issuer_name.js.map +1 -0
  222. package/dist/collection/components/certificate-details-parts/miscellaneous.js +8 -13
  223. package/dist/collection/components/certificate-details-parts/miscellaneous.js.map +1 -0
  224. package/dist/collection/components/certificate-details-parts/public_key.js +8 -7
  225. package/dist/collection/components/certificate-details-parts/public_key.js.map +1 -0
  226. package/dist/collection/components/certificate-details-parts/revoked_certificates.js +9 -11
  227. package/dist/collection/components/certificate-details-parts/revoked_certificates.js.map +1 -0
  228. package/dist/collection/components/certificate-details-parts/row.js +13 -18
  229. package/dist/collection/components/certificate-details-parts/row.js.map +1 -0
  230. package/dist/collection/components/certificate-details-parts/signature.js +5 -4
  231. package/dist/collection/components/certificate-details-parts/signature.js.map +1 -0
  232. package/dist/collection/components/certificate-details-parts/subject_name.js +4 -3
  233. package/dist/collection/components/certificate-details-parts/subject_name.js.map +1 -0
  234. package/dist/collection/components/certificate-details-parts/thumbprints.js +4 -3
  235. package/dist/collection/components/certificate-details-parts/thumbprints.js.map +1 -0
  236. package/dist/collection/components/certificate-summary/certificate-summary.js +9 -77
  237. package/dist/collection/components/certificate-summary/certificate-summary.js.map +1 -0
  238. package/dist/collection/components/certificate-summary/index.js +5 -0
  239. package/dist/collection/components/certificate-summary/index.js.map +1 -0
  240. package/dist/collection/components/certificate-viewer/certificate-viewer.css +471 -104
  241. package/dist/collection/components/certificate-viewer/certificate-viewer.js +206 -178
  242. package/dist/collection/components/certificate-viewer/certificate-viewer.js.map +1 -0
  243. package/dist/collection/components/certificates-viewer/certificates-viewer.css +540 -267
  244. package/dist/collection/components/certificates-viewer/certificates-viewer.js +261 -266
  245. package/dist/collection/components/certificates-viewer/certificates-viewer.js.map +1 -0
  246. package/dist/collection/components/circular-progress/circular-progress.css +2 -11
  247. package/dist/collection/components/circular-progress/circular-progress.js +60 -63
  248. package/dist/collection/components/circular-progress/circular-progress.js.map +1 -0
  249. package/dist/collection/components/crl-viewer/crl-viewer.js +166 -139
  250. package/dist/collection/components/crl-viewer/crl-viewer.js.map +1 -0
  251. package/dist/collection/components/csr-viewer/csr-viewer.js +149 -124
  252. package/dist/collection/components/csr-viewer/csr-viewer.js.map +1 -0
  253. package/dist/collection/components/highlight-words/highlight-words.css +1 -9
  254. package/dist/collection/components/highlight-words/highlight-words.js +35 -28
  255. package/dist/collection/components/highlight-words/highlight-words.js.map +1 -0
  256. package/dist/collection/components/icons/actions.js +16 -0
  257. package/dist/collection/components/icons/actions.js.map +1 -0
  258. package/dist/collection/components/icons/arrow_bottom.js +16 -0
  259. package/dist/collection/components/icons/arrow_bottom.js.map +1 -0
  260. package/dist/collection/components/icons/arrow_top.js +16 -0
  261. package/dist/collection/components/icons/arrow_top.js.map +1 -0
  262. package/dist/collection/components/icons/cross.js +16 -0
  263. package/dist/collection/components/icons/cross.js.map +1 -0
  264. package/dist/collection/components/icons/details.js +16 -0
  265. package/dist/collection/components/icons/details.js.map +1 -0
  266. package/dist/collection/components/icons/download.js +16 -0
  267. package/dist/collection/components/icons/download.js.map +1 -0
  268. package/dist/collection/components/icons/index.js +11 -0
  269. package/dist/collection/components/icons/index.js.map +1 -0
  270. package/dist/collection/components/icons/link.js +16 -0
  271. package/dist/collection/components/icons/link.js.map +1 -0
  272. package/dist/collection/components/link/index.js +5 -0
  273. package/dist/collection/components/link/index.js.map +1 -0
  274. package/dist/collection/components/link/link.js +9 -61
  275. package/dist/collection/components/link/link.js.map +1 -0
  276. package/dist/collection/components/text-hider/text-hider.css +9 -36
  277. package/dist/collection/components/text-hider/text-hider.js +21 -68
  278. package/dist/collection/components/text-hider/text-hider.js.map +1 -0
  279. package/dist/collection/components/typography/index.js +5 -0
  280. package/dist/collection/components/typography/index.js.map +1 -0
  281. package/dist/collection/components/typography/typography.js +39 -126
  282. package/dist/collection/components/typography/typography.js.map +1 -0
  283. package/dist/collection/constants/logs.js +1 -0
  284. package/dist/collection/constants/logs.js.map +1 -0
  285. package/dist/collection/constants/oids.js +1 -0
  286. package/dist/collection/constants/oids.js.map +1 -0
  287. package/dist/collection/crypto/asn_data.js +13 -7
  288. package/dist/collection/crypto/asn_data.js.map +1 -0
  289. package/dist/collection/crypto/attribute.js +11 -10
  290. package/dist/collection/crypto/attribute.js.map +1 -0
  291. package/dist/collection/crypto/crl.js +9 -8
  292. package/dist/collection/crypto/crl.js.map +1 -0
  293. package/dist/collection/crypto/csr.js +11 -10
  294. package/dist/collection/crypto/csr.js.map +1 -0
  295. package/dist/collection/crypto/extension.js +16 -15
  296. package/dist/collection/crypto/extension.js.map +1 -0
  297. package/dist/collection/crypto/index.js +1 -0
  298. package/dist/collection/crypto/index.js.map +1 -0
  299. package/dist/collection/crypto/name.js +15 -9
  300. package/dist/collection/crypto/name.js.map +1 -0
  301. package/dist/collection/crypto/provider.js +4 -3
  302. package/dist/collection/crypto/provider.js.map +1 -0
  303. package/dist/collection/crypto/utils.js +4 -3
  304. package/dist/collection/crypto/utils.js.map +1 -0
  305. package/dist/collection/crypto/x509_attribute_certificate.js +9 -8
  306. package/dist/collection/crypto/x509_attribute_certificate.js.map +1 -0
  307. package/dist/collection/crypto/x509_certificate.js +12 -11
  308. package/dist/collection/crypto/x509_certificate.js.map +1 -0
  309. package/dist/collection/index.js +1 -0
  310. package/dist/collection/index.js.map +1 -0
  311. package/dist/collection/locales/en.json +4 -3
  312. package/dist/collection/utils/date_formatter.js +3 -2
  313. package/dist/collection/utils/date_formatter.js.map +1 -0
  314. package/dist/collection/utils/download.js +3 -2
  315. package/dist/collection/utils/download.js.map +1 -0
  316. package/dist/collection/utils/download_from_buffer.js +1 -0
  317. package/dist/collection/utils/download_from_buffer.js.map +1 -0
  318. package/dist/collection/utils/get_string_by_oid.js +2 -1
  319. package/dist/collection/utils/get_string_by_oid.js.map +1 -0
  320. package/dist/collection/utils/index.js +2 -1
  321. package/dist/collection/utils/index.js.map +1 -0
  322. package/dist/collection/utils/is_link.js +1 -0
  323. package/dist/collection/utils/is_link.js.map +1 -0
  324. package/dist/collection/utils/l10n.js +2 -1
  325. package/dist/collection/utils/l10n.js.map +1 -0
  326. package/dist/collection/utils/read_file.js +1 -0
  327. package/dist/collection/utils/read_file.js.map +1 -0
  328. package/dist/collection/utils/third_party_links.js +1 -0
  329. package/dist/collection/utils/third_party_links.js.map +1 -0
  330. package/dist/collection/utils/validator.js +1 -0
  331. package/dist/collection/utils/validator.js.map +1 -0
  332. package/dist/collection/www-copy/index.js +138 -32
  333. package/dist/esm/arrow_top-efd3a56d.js +34 -0
  334. package/dist/esm/arrow_top-efd3a56d.js.map +1 -0
  335. package/dist/esm/button-35146bdd.js +74 -0
  336. package/dist/esm/button-35146bdd.js.map +1 -0
  337. package/dist/esm/{certification_request-23cd5124.js → certification_request-5cadde9f.js} +171 -9
  338. package/dist/esm/certification_request-5cadde9f.js.map +1 -0
  339. package/dist/esm/{crl-7f23c111.js → crl-11670c3e.js} +7 -6
  340. package/dist/esm/crl-11670c3e.js.map +1 -0
  341. package/dist/esm/download-0cc3077a.js +21 -0
  342. package/dist/esm/download-0cc3077a.js.map +1 -0
  343. package/dist/esm/download-57c5bf8f.js +470 -0
  344. package/dist/esm/download-57c5bf8f.js.map +1 -0
  345. package/dist/esm/index-4079bbb5.js +2448 -0
  346. package/dist/esm/index-4079bbb5.js.map +1 -0
  347. package/dist/esm/index.js +3 -1
  348. package/dist/esm/index.js.map +1 -0
  349. package/dist/esm/loader.js +6 -12
  350. package/dist/esm/loader.js.map +1 -0
  351. package/dist/esm/{miscellaneous-c7c0d04a.js → miscellaneous-1d4e8b41.js} +53 -37
  352. package/dist/esm/miscellaneous-1d4e8b41.js.map +1 -0
  353. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +80 -23
  354. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -0
  355. package/dist/esm/peculiar-button-menu_3.entry.js +104 -0
  356. package/dist/esm/peculiar-button-menu_3.entry.js.map +1 -0
  357. package/dist/esm/peculiar-certificate-decoder.entry.js +30 -19
  358. package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -0
  359. package/dist/esm/peculiar-certificate-viewer.entry.js +34 -11
  360. package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -0
  361. package/dist/esm/peculiar-certificates-viewer.entry.js +183 -85
  362. package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -0
  363. package/dist/esm/peculiar-text-hider.entry.js +7 -13
  364. package/dist/esm/peculiar-text-hider.entry.js.map +1 -0
  365. package/dist/esm/peculiar.js +8 -58
  366. package/dist/esm/peculiar.js.map +1 -0
  367. package/dist/esm/{x509_certificate-d8e0af2d.js → x509_certificate-dfae6999.js} +4 -3
  368. package/dist/esm/x509_certificate-dfae6999.js.map +1 -0
  369. package/dist/esm-es5/arrow_top-efd3a56d.js +19 -0
  370. package/dist/esm-es5/arrow_top-efd3a56d.js.map +1 -0
  371. package/dist/esm-es5/button-35146bdd.js +19 -0
  372. package/dist/esm-es5/button-35146bdd.js.map +1 -0
  373. package/dist/esm-es5/certification_request-5cadde9f.js +97 -0
  374. package/dist/esm-es5/certification_request-5cadde9f.js.map +1 -0
  375. package/dist/esm-es5/crl-11670c3e.js +33 -0
  376. package/dist/esm-es5/crl-11670c3e.js.map +1 -0
  377. package/dist/esm-es5/download-0cc3077a.js +12 -0
  378. package/dist/esm-es5/download-0cc3077a.js.map +1 -0
  379. package/dist/esm-es5/download-57c5bf8f.js +19 -0
  380. package/dist/esm-es5/download-57c5bf8f.js.map +1 -0
  381. package/dist/esm-es5/index-4079bbb5.js +6 -0
  382. package/dist/esm-es5/index-4079bbb5.js.map +1 -0
  383. package/dist/esm-es5/index.js +5 -0
  384. package/dist/esm-es5/index.js.map +1 -0
  385. package/dist/esm-es5/loader.js +5 -0
  386. package/dist/esm-es5/loader.js.map +1 -0
  387. package/dist/esm-es5/miscellaneous-1d4e8b41.js +355 -0
  388. package/dist/esm-es5/miscellaneous-1d4e8b41.js.map +1 -0
  389. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js +110 -0
  390. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -0
  391. package/dist/esm-es5/peculiar-button-menu_3.entry.js +12 -0
  392. package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -0
  393. package/dist/esm-es5/peculiar-certificate-decoder.entry.js +12 -0
  394. package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -0
  395. package/dist/esm-es5/peculiar-certificate-viewer.entry.js +5 -0
  396. package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -0
  397. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +33 -0
  398. package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -0
  399. package/dist/esm-es5/peculiar-text-hider.entry.js +5 -0
  400. package/dist/esm-es5/peculiar-text-hider.entry.js.map +1 -0
  401. package/dist/esm-es5/peculiar.js +5 -0
  402. package/dist/esm-es5/peculiar.js.map +1 -0
  403. package/dist/esm-es5/x509_certificate-dfae6999.js +12 -0
  404. package/dist/esm-es5/x509_certificate-dfae6999.js.map +1 -0
  405. package/dist/index.js +1 -1
  406. package/dist/peculiar/index.esm.js +2 -1
  407. package/dist/peculiar/index.esm.js.map +1 -0
  408. package/dist/peculiar/locales/en.json +4 -3
  409. package/dist/peculiar/p-0b356bb5.js +6 -0
  410. package/dist/peculiar/p-0b356bb5.js.map +1 -0
  411. package/dist/peculiar/p-0bdcdbf7.system.js +355 -0
  412. package/dist/peculiar/p-0bdcdbf7.system.js.map +1 -0
  413. package/dist/peculiar/p-17e3c47b.js +12 -0
  414. package/dist/peculiar/p-17e3c47b.js.map +1 -0
  415. package/dist/peculiar/p-23555789.system.entry.js +34 -0
  416. package/dist/peculiar/p-23555789.system.entry.js.map +1 -0
  417. package/dist/peculiar/p-26981468.system.entry.js +5 -0
  418. package/dist/peculiar/p-26981468.system.entry.js.map +1 -0
  419. package/dist/peculiar/p-2fcad8cb.system.js +20 -0
  420. package/dist/peculiar/p-2fcad8cb.system.js.map +1 -0
  421. package/dist/peculiar/p-31586b23.system.js +13 -0
  422. package/dist/peculiar/p-31586b23.system.js.map +1 -0
  423. package/dist/peculiar/p-43eb3721.js +33 -0
  424. package/dist/peculiar/p-43eb3721.js.map +1 -0
  425. package/dist/peculiar/p-5823e6e8.entry.js +12 -0
  426. package/dist/peculiar/p-5823e6e8.entry.js.map +1 -0
  427. package/dist/peculiar/p-596836a7.entry.js +33 -0
  428. package/dist/peculiar/p-596836a7.entry.js.map +1 -0
  429. package/dist/peculiar/p-5aabeba7.system.js +6 -0
  430. package/dist/peculiar/p-5aabeba7.system.js.map +1 -0
  431. package/dist/peculiar/p-6667fe6e.system.js +34 -0
  432. package/dist/peculiar/p-6667fe6e.system.js.map +1 -0
  433. package/dist/peculiar/p-6e79b9c8.js +12 -0
  434. package/dist/peculiar/p-6e79b9c8.js.map +1 -0
  435. package/dist/peculiar/p-709994c1.js +19 -0
  436. package/dist/peculiar/p-709994c1.js.map +1 -0
  437. package/dist/peculiar/p-74c241e7.js +97 -0
  438. package/dist/peculiar/p-74c241e7.js.map +1 -0
  439. package/dist/peculiar/p-7ed7cd97.system.entry.js +111 -0
  440. package/dist/peculiar/p-7ed7cd97.system.entry.js.map +1 -0
  441. package/dist/peculiar/p-7f9beaa8.js +19 -0
  442. package/dist/peculiar/p-7f9beaa8.js.map +1 -0
  443. package/dist/peculiar/p-80832207.system.js +5 -0
  444. package/dist/peculiar/p-80832207.system.js.map +1 -0
  445. package/dist/peculiar/p-8748391f.system.entry.js +5 -0
  446. package/dist/peculiar/p-8748391f.system.entry.js.map +1 -0
  447. package/dist/peculiar/p-882e1281.entry.js +12 -0
  448. package/dist/peculiar/p-882e1281.entry.js.map +1 -0
  449. package/dist/peculiar/p-90459cec.entry.js +5 -0
  450. package/dist/peculiar/p-90459cec.entry.js.map +1 -0
  451. package/dist/peculiar/p-97688065.js +355 -0
  452. package/dist/peculiar/p-97688065.js.map +1 -0
  453. package/dist/peculiar/p-a053c132.js +19 -0
  454. package/dist/peculiar/p-a053c132.js.map +1 -0
  455. package/dist/peculiar/p-ae9189f6.system.js +19 -0
  456. package/dist/peculiar/p-ae9189f6.system.js.map +1 -0
  457. package/dist/peculiar/p-bd485115.system.entry.js +13 -0
  458. package/dist/peculiar/p-bd485115.system.entry.js.map +1 -0
  459. package/dist/peculiar/p-c0a298fd.system.js +97 -0
  460. package/dist/peculiar/p-c0a298fd.system.js.map +1 -0
  461. package/dist/peculiar/p-daf23673.system.js +20 -0
  462. package/dist/peculiar/p-daf23673.system.js.map +1 -0
  463. package/dist/peculiar/p-e1960173.system.js +5 -0
  464. package/dist/peculiar/p-e1960173.system.js.map +1 -0
  465. package/dist/peculiar/p-e39de121.system.entry.js +13 -0
  466. package/dist/peculiar/p-e39de121.system.entry.js.map +1 -0
  467. package/dist/peculiar/p-e6a3b4d4.system.js +13 -0
  468. package/dist/peculiar/p-e6a3b4d4.system.js.map +1 -0
  469. package/dist/peculiar/p-f3d85a5f.entry.js +110 -0
  470. package/dist/peculiar/p-f3d85a5f.entry.js.map +1 -0
  471. package/dist/peculiar/p-fd4b9a50.entry.js +5 -0
  472. package/dist/peculiar/p-fd4b9a50.entry.js.map +1 -0
  473. package/dist/peculiar/peculiar.css +1 -1
  474. package/dist/peculiar/peculiar.esm.js +2 -1
  475. package/dist/peculiar/peculiar.esm.js.map +1 -0
  476. package/dist/peculiar/peculiar.js +127 -0
  477. package/dist/types/components/attribute-certificate-viewer/attribute-certificate-viewer.d.ts +15 -3
  478. package/dist/types/components/button/button.d.ts +5 -16
  479. package/dist/types/components/button/index.d.ts +2 -0
  480. package/dist/types/components/button-menu/button-menu.d.ts +21 -0
  481. package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +9 -6
  482. package/dist/types/components/certificate-details-parts/miscellaneous.d.ts +1 -1
  483. package/dist/types/components/certificate-summary/certificate-summary.d.ts +4 -3
  484. package/dist/types/components/certificate-summary/index.d.ts +1 -0
  485. package/dist/types/components/certificate-viewer/certificate-viewer.d.ts +13 -5
  486. package/dist/types/components/certificates-viewer/certificates-viewer.d.ts +22 -11
  487. package/dist/types/components/crl-viewer/crl-viewer.d.ts +13 -5
  488. package/dist/types/components/csr-viewer/csr-viewer.d.ts +13 -5
  489. package/dist/types/components/icons/actions.d.ts +12 -0
  490. package/dist/types/components/icons/arrow_bottom.d.ts +12 -0
  491. package/dist/types/components/icons/arrow_top.d.ts +12 -0
  492. package/dist/types/components/icons/cross.d.ts +12 -0
  493. package/dist/types/components/icons/details.d.ts +12 -0
  494. package/dist/types/components/icons/download.d.ts +12 -0
  495. package/dist/types/components/icons/index.d.ts +7 -0
  496. package/dist/types/components/icons/link.d.ts +12 -0
  497. package/dist/types/components/link/index.d.ts +1 -0
  498. package/dist/types/components/link/link.d.ts +6 -6
  499. package/dist/types/components/text-hider/text-hider.d.ts +0 -3
  500. package/dist/types/components/typography/index.d.ts +1 -0
  501. package/dist/types/components/typography/typography.d.ts +10 -20
  502. package/dist/types/components.d.ts +74 -175
  503. package/dist/types/crypto/attribute.d.ts +1 -1
  504. package/dist/types/crypto/extension.d.ts +1 -1
  505. package/dist/types/interface.d.ts +98 -6
  506. package/dist/types/stencil-public-runtime.d.ts +110 -23
  507. package/dist/types/utils/l10n.d.ts +5 -4
  508. package/dist/types/utils/read_file.d.ts +1 -1
  509. package/hydrate/index.d.ts +218 -0
  510. package/hydrate/index.js +22549 -0
  511. package/hydrate/package.json +6 -0
  512. package/loader/index.d.ts +10 -1
  513. package/loader/index.js +1 -1
  514. package/loader/package.json +1 -0
  515. package/package.json +6 -4
  516. package/dist/cjs/dom-f57e260e.js +0 -78
  517. package/dist/cjs/index-064e95c7.js +0 -1486
  518. package/dist/cjs/l10n-ddc7cff9.js +0 -169
  519. package/dist/cjs/peculiar-button-split_4.cjs.entry.js +0 -128
  520. package/dist/cjs/peculiar-button.cjs.entry.js +0 -40
  521. package/dist/cjs/peculiar-link.cjs.entry.js +0 -29
  522. package/dist/cjs/peculiar-typography.cjs.entry.js +0 -38
  523. package/dist/collection/components/button/button.css +0 -81
  524. package/dist/collection/components/button-split/button-split.css +0 -57
  525. package/dist/collection/components/button-split/button-split.js +0 -116
  526. package/dist/collection/components/certificate-summary/certificate-summary.css +0 -49
  527. package/dist/collection/components/link/link.css +0 -59
  528. package/dist/collection/components/typography/typography.css +0 -95
  529. package/dist/esm/dom-f1b08a97.js +0 -76
  530. package/dist/esm/index-bbd484d9.js +0 -1455
  531. package/dist/esm/l10n-d48f35ff.js +0 -165
  532. package/dist/esm/peculiar-button-split_4.entry.js +0 -121
  533. package/dist/esm/peculiar-button.entry.js +0 -36
  534. package/dist/esm/peculiar-link.entry.js +0 -25
  535. package/dist/esm/peculiar-typography.entry.js +0 -34
  536. package/dist/esm/polyfills/css-shim.js +0 -1
  537. package/dist/peculiar/p-01cea5c0.entry.js +0 -11
  538. package/dist/peculiar/p-3bfefa4a.entry.js +0 -18
  539. package/dist/peculiar/p-4e8169cb.entry.js +0 -4
  540. package/dist/peculiar/p-57b89412.entry.js +0 -4
  541. package/dist/peculiar/p-5b4eed12.entry.js +0 -4
  542. package/dist/peculiar/p-610b85e3.entry.js +0 -4
  543. package/dist/peculiar/p-6d37c8b5.entry.js +0 -4
  544. package/dist/peculiar/p-711b4e1e.js +0 -18
  545. package/dist/peculiar/p-81a88a33.js +0 -11
  546. package/dist/peculiar/p-918aeee4.entry.js +0 -4
  547. package/dist/peculiar/p-9f4ee110.js +0 -22
  548. package/dist/peculiar/p-a050e184.js +0 -69
  549. package/dist/peculiar/p-c24c26c2.js +0 -32
  550. package/dist/peculiar/p-df53fbcc.entry.js +0 -4
  551. package/dist/peculiar/p-ec250cc4.js +0 -12
  552. package/dist/peculiar/p-f7683ba5.js +0 -5
  553. package/dist/peculiar/p-fe05f51e.js +0 -79
  554. package/dist/types/components/button-split/button-split.d.ts +0 -21
@@ -0,0 +1 @@
1
+ {"file":"download.js","mappings":";;;AAAA;;;;;;;AAQA;;;;;;;;;;SAWgB,kBAAkB,CAChC,KAAkB,EAClB,IAAY,EACZ,SAAiB,EACjB,OAAe,0BAA0B;EAEzC,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;;EAG/C,IAAI,SAAS,CAAC,UAAU,EAAE;;IAExB,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,IAAI,IAAI,SAAS,EAAE,CAAC,CAAC;IAEnD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO;MACzB,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;KAC1B,CAAC,CAAC;GACJ;EAED,MAAM,OAAO,GAAG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KAAK,EAAE,CAAC,GAAW,EAAE,IAAY;IAC/B,kBAAkB,CAChBA,aAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EACvB,IAAI,EACJ,KAAK,EACL,sBAAsB,CACvB,CAAC;GACH;EAED,KAAK,EAAE,CAAC,GAAW,EAAE,IAAY;IAC/B,kBAAkB,CAChBA,aAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EACvB,IAAI,EACJ,KAAK,EACL,sBAAsB,CACvB,CAAC;GACH;CACF;;;;","names":["Convert"],"sources":["src/utils/download_from_buffer.ts","../../node_modules/pvtsutils/build/index.js","src/utils/download.ts"],"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\n/**\n * Download from buffer\n *\n * @example\n * ```js\n * import { downloadFromBuffer } from './utils';\n *\n * downloadFromBuffer(arrayBufferValue, 'myFile', 'pdf', 'applciation/pdf');\n * ```\n */\n\nexport function downloadFromBuffer(\n value: ArrayBuffer,\n name: string,\n extension: string,\n mime: string = 'application/octet-stream',\n) {\n const blob = new Blob([value], { type: mime });\n\n // @ts-ignore\n if (navigator.msSaveBlob) { // IE10+ : (has Blob, but not a[download] or URL)\n // @ts-ignore\n navigator.msSaveBlob(blob, `${name}.${extension}`);\n\n return new Promise((resolve) => {\n setTimeout(resolve, 100);\n });\n }\n\n const blobURL = window.URL.createObjectURL(blob);\n\n const link = document.createElement('a');\n const frame = document.createElement('iframe');\n\n link.style.display = 'none';\n frame.style.display = 'none';\n\n frame.name = blobURL;\n document.body.appendChild(frame);\n\n link.href = blobURL;\n link.target = blobURL;\n link.download = `${name}.${extension}`;\n document.body.appendChild(link);\n link.dispatchEvent(new MouseEvent('click'));\n document.body.removeChild(link);\n\n return new Promise<void>((resolve) => {\n setTimeout(\n () => {\n document.body.removeChild(frame);\n resolve();\n },\n 100,\n );\n });\n}\n","/*!\n * MIT License\n * \n * Copyright (c) 2017-2022 Peculiar Ventures, LLC\n * \n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * \n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n * \n */\n\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nconst ARRAY_BUFFER_NAME = \"[object ArrayBuffer]\";\r\nclass BufferSourceConverter {\r\n static isArrayBuffer(data) {\r\n return Object.prototype.toString.call(data) === ARRAY_BUFFER_NAME;\r\n }\r\n static toArrayBuffer(data) {\r\n if (this.isArrayBuffer(data)) {\r\n return data;\r\n }\r\n if (data.byteLength === data.buffer.byteLength) {\r\n return data.buffer;\r\n }\r\n return this.toUint8Array(data).slice().buffer;\r\n }\r\n static toUint8Array(data) {\r\n return this.toView(data, Uint8Array);\r\n }\r\n static toView(data, type) {\r\n if (data.constructor === type) {\r\n return data;\r\n }\r\n if (this.isArrayBuffer(data)) {\r\n return new type(data);\r\n }\r\n if (this.isArrayBufferView(data)) {\r\n return new type(data.buffer, data.byteOffset, data.byteLength);\r\n }\r\n throw new TypeError(\"The provided value is not of type '(ArrayBuffer or ArrayBufferView)'\");\r\n }\r\n static isBufferSource(data) {\r\n return this.isArrayBufferView(data)\r\n || this.isArrayBuffer(data);\r\n }\r\n static isArrayBufferView(data) {\r\n return ArrayBuffer.isView(data)\r\n || (data && this.isArrayBuffer(data.buffer));\r\n }\r\n static isEqual(a, b) {\r\n const aView = BufferSourceConverter.toUint8Array(a);\r\n const bView = BufferSourceConverter.toUint8Array(b);\r\n if (aView.length !== bView.byteLength) {\r\n return false;\r\n }\r\n for (let i = 0; i < aView.length; i++) {\r\n if (aView[i] !== bView[i]) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n static concat(...args) {\r\n if (Array.isArray(args[0])) {\r\n const buffers = args[0];\r\n let size = 0;\r\n for (const buffer of buffers) {\r\n size += buffer.byteLength;\r\n }\r\n const res = new Uint8Array(size);\r\n let offset = 0;\r\n for (const buffer of buffers) {\r\n const view = this.toUint8Array(buffer);\r\n res.set(view, offset);\r\n offset += view.length;\r\n }\r\n if (args[1]) {\r\n return this.toView(res, args[1]);\r\n }\r\n return res.buffer;\r\n }\r\n else {\r\n return this.concat(args);\r\n }\r\n }\r\n}\n\nclass Utf8Converter {\r\n static fromString(text) {\r\n const s = unescape(encodeURIComponent(text));\r\n const uintArray = new Uint8Array(s.length);\r\n for (let i = 0; i < s.length; i++) {\r\n uintArray[i] = s.charCodeAt(i);\r\n }\r\n return uintArray.buffer;\r\n }\r\n static toString(buffer) {\r\n const buf = BufferSourceConverter.toUint8Array(buffer);\r\n let encodedString = \"\";\r\n for (let i = 0; i < buf.length; i++) {\r\n encodedString += String.fromCharCode(buf[i]);\r\n }\r\n const decodedString = decodeURIComponent(escape(encodedString));\r\n return decodedString;\r\n }\r\n}\r\nclass Utf16Converter {\r\n static toString(buffer, littleEndian = false) {\r\n const arrayBuffer = BufferSourceConverter.toArrayBuffer(buffer);\r\n const dataView = new DataView(arrayBuffer);\r\n let res = \"\";\r\n for (let i = 0; i < arrayBuffer.byteLength; i += 2) {\r\n const code = dataView.getUint16(i, littleEndian);\r\n res += String.fromCharCode(code);\r\n }\r\n return res;\r\n }\r\n static fromString(text, littleEndian = false) {\r\n const res = new ArrayBuffer(text.length * 2);\r\n const dataView = new DataView(res);\r\n for (let i = 0; i < text.length; i++) {\r\n dataView.setUint16(i * 2, text.charCodeAt(i), littleEndian);\r\n }\r\n return res;\r\n }\r\n}\r\nclass Convert {\r\n static isHex(data) {\r\n return typeof data === \"string\"\r\n && /^[a-z0-9]+$/i.test(data);\r\n }\r\n static isBase64(data) {\r\n return typeof data === \"string\"\r\n && /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(data);\r\n }\r\n static isBase64Url(data) {\r\n return typeof data === \"string\"\r\n && /^[a-zA-Z0-9-_]+$/i.test(data);\r\n }\r\n static ToString(buffer, enc = \"utf8\") {\r\n const buf = BufferSourceConverter.toUint8Array(buffer);\r\n switch (enc.toLowerCase()) {\r\n case \"utf8\":\r\n return this.ToUtf8String(buf);\r\n case \"binary\":\r\n return this.ToBinary(buf);\r\n case \"hex\":\r\n return this.ToHex(buf);\r\n case \"base64\":\r\n return this.ToBase64(buf);\r\n case \"base64url\":\r\n return this.ToBase64Url(buf);\r\n case \"utf16le\":\r\n return Utf16Converter.toString(buf, true);\r\n case \"utf16\":\r\n case \"utf16be\":\r\n return Utf16Converter.toString(buf);\r\n default:\r\n throw new Error(`Unknown type of encoding '${enc}'`);\r\n }\r\n }\r\n static FromString(str, enc = \"utf8\") {\r\n if (!str) {\r\n return new ArrayBuffer(0);\r\n }\r\n switch (enc.toLowerCase()) {\r\n case \"utf8\":\r\n return this.FromUtf8String(str);\r\n case \"binary\":\r\n return this.FromBinary(str);\r\n case \"hex\":\r\n return this.FromHex(str);\r\n case \"base64\":\r\n return this.FromBase64(str);\r\n case \"base64url\":\r\n return this.FromBase64Url(str);\r\n case \"utf16le\":\r\n return Utf16Converter.fromString(str, true);\r\n case \"utf16\":\r\n case \"utf16be\":\r\n return Utf16Converter.fromString(str);\r\n default:\r\n throw new Error(`Unknown type of encoding '${enc}'`);\r\n }\r\n }\r\n static ToBase64(buffer) {\r\n const buf = BufferSourceConverter.toUint8Array(buffer);\r\n if (typeof btoa !== \"undefined\") {\r\n const binary = this.ToString(buf, \"binary\");\r\n return btoa(binary);\r\n }\r\n else {\r\n return Buffer.from(buf).toString(\"base64\");\r\n }\r\n }\r\n static FromBase64(base64) {\r\n const formatted = this.formatString(base64);\r\n if (!formatted) {\r\n return new ArrayBuffer(0);\r\n }\r\n if (!Convert.isBase64(formatted)) {\r\n throw new TypeError(\"Argument 'base64Text' is not Base64 encoded\");\r\n }\r\n if (typeof atob !== \"undefined\") {\r\n return this.FromBinary(atob(formatted));\r\n }\r\n else {\r\n return new Uint8Array(Buffer.from(formatted, \"base64\")).buffer;\r\n }\r\n }\r\n static FromBase64Url(base64url) {\r\n const formatted = this.formatString(base64url);\r\n if (!formatted) {\r\n return new ArrayBuffer(0);\r\n }\r\n if (!Convert.isBase64Url(formatted)) {\r\n throw new TypeError(\"Argument 'base64url' is not Base64Url encoded\");\r\n }\r\n return this.FromBase64(this.Base64Padding(formatted.replace(/\\-/g, \"+\").replace(/\\_/g, \"/\")));\r\n }\r\n static ToBase64Url(data) {\r\n return this.ToBase64(data).replace(/\\+/g, \"-\").replace(/\\//g, \"_\").replace(/\\=/g, \"\");\r\n }\r\n static FromUtf8String(text, encoding = Convert.DEFAULT_UTF8_ENCODING) {\r\n switch (encoding) {\r\n case \"ascii\":\r\n return this.FromBinary(text);\r\n case \"utf8\":\r\n return Utf8Converter.fromString(text);\r\n case \"utf16\":\r\n case \"utf16be\":\r\n return Utf16Converter.fromString(text);\r\n case \"utf16le\":\r\n case \"usc2\":\r\n return Utf16Converter.fromString(text, true);\r\n default:\r\n throw new Error(`Unknown type of encoding '${encoding}'`);\r\n }\r\n }\r\n static ToUtf8String(buffer, encoding = Convert.DEFAULT_UTF8_ENCODING) {\r\n switch (encoding) {\r\n case \"ascii\":\r\n return this.ToBinary(buffer);\r\n case \"utf8\":\r\n return Utf8Converter.toString(buffer);\r\n case \"utf16\":\r\n case \"utf16be\":\r\n return Utf16Converter.toString(buffer);\r\n case \"utf16le\":\r\n case \"usc2\":\r\n return Utf16Converter.toString(buffer, true);\r\n default:\r\n throw new Error(`Unknown type of encoding '${encoding}'`);\r\n }\r\n }\r\n static FromBinary(text) {\r\n const stringLength = text.length;\r\n const resultView = new Uint8Array(stringLength);\r\n for (let i = 0; i < stringLength; i++) {\r\n resultView[i] = text.charCodeAt(i);\r\n }\r\n return resultView.buffer;\r\n }\r\n static ToBinary(buffer) {\r\n const buf = BufferSourceConverter.toUint8Array(buffer);\r\n let res = \"\";\r\n for (let i = 0; i < buf.length; i++) {\r\n res += String.fromCharCode(buf[i]);\r\n }\r\n return res;\r\n }\r\n static ToHex(buffer) {\r\n const buf = BufferSourceConverter.toUint8Array(buffer);\r\n const splitter = \"\";\r\n const res = [];\r\n const len = buf.length;\r\n for (let i = 0; i < len; i++) {\r\n const char = buf[i].toString(16).padStart(2, \"0\");\r\n res.push(char);\r\n }\r\n return res.join(splitter);\r\n }\r\n static FromHex(hexString) {\r\n let formatted = this.formatString(hexString);\r\n if (!formatted) {\r\n return new ArrayBuffer(0);\r\n }\r\n if (!Convert.isHex(formatted)) {\r\n throw new TypeError(\"Argument 'hexString' is not HEX encoded\");\r\n }\r\n if (formatted.length % 2) {\r\n formatted = `0${formatted}`;\r\n }\r\n const res = new Uint8Array(formatted.length / 2);\r\n for (let i = 0; i < formatted.length; i = i + 2) {\r\n const c = formatted.slice(i, i + 2);\r\n res[i / 2] = parseInt(c, 16);\r\n }\r\n return res.buffer;\r\n }\r\n static ToUtf16String(buffer, littleEndian = false) {\r\n return Utf16Converter.toString(buffer, littleEndian);\r\n }\r\n static FromUtf16String(text, littleEndian = false) {\r\n return Utf16Converter.fromString(text, littleEndian);\r\n }\r\n static Base64Padding(base64) {\r\n const padCount = 4 - (base64.length % 4);\r\n if (padCount < 4) {\r\n for (let i = 0; i < padCount; i++) {\r\n base64 += \"=\";\r\n }\r\n }\r\n return base64;\r\n }\r\n static formatString(data) {\r\n return (data === null || data === void 0 ? void 0 : data.replace(/[\\n\\r\\t ]/g, \"\")) || \"\";\r\n }\r\n}\r\nConvert.DEFAULT_UTF8_ENCODING = \"utf8\";\n\nfunction assign(target, ...sources) {\r\n const res = arguments[0];\r\n for (let i = 1; i < arguments.length; i++) {\r\n const obj = arguments[i];\r\n for (const prop in obj) {\r\n res[prop] = obj[prop];\r\n }\r\n }\r\n return res;\r\n}\r\nfunction combine(...buf) {\r\n const totalByteLength = buf.map((item) => item.byteLength).reduce((prev, cur) => prev + cur);\r\n const res = new Uint8Array(totalByteLength);\r\n let currentPos = 0;\r\n buf.map((item) => new Uint8Array(item)).forEach((arr) => {\r\n for (const item2 of arr) {\r\n res[currentPos++] = item2;\r\n }\r\n });\r\n return res.buffer;\r\n}\r\nfunction isEqual(bytes1, bytes2) {\r\n if (!(bytes1 && bytes2)) {\r\n return false;\r\n }\r\n if (bytes1.byteLength !== bytes2.byteLength) {\r\n return false;\r\n }\r\n const b1 = new Uint8Array(bytes1);\r\n const b2 = new Uint8Array(bytes2);\r\n for (let i = 0; i < bytes1.byteLength; i++) {\r\n if (b1[i] !== b2[i]) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\n\nexports.BufferSourceConverter = BufferSourceConverter;\nexports.Convert = Convert;\nexports.assign = assign;\nexports.combine = combine;\nexports.isEqual = isEqual;\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 { Convert } from 'pvtsutils';\n\nimport { downloadFromBuffer } from './download_from_buffer';\n\nexport class Download {\n public static cert = {\n asPEM: (pem: string, name: string) => {\n downloadFromBuffer(\n Convert.FromString(pem),\n name,\n 'cer',\n 'application/pkix-cert',\n );\n },\n\n asDER: (hex: string, name: string) => {\n downloadFromBuffer(\n Convert.FromString(hex),\n name,\n 'cer',\n 'application/pkix-cert',\n );\n },\n };\n\n public static attrCert = {\n asPEM: (pem: string, name: string) => {\n downloadFromBuffer(\n Convert.FromString(pem),\n name,\n 'cer',\n 'application/pkix-attr-cert',\n );\n },\n\n asDER: (hex: string, name: string) => {\n downloadFromBuffer(\n Convert.FromString(hex),\n name,\n 'cer',\n 'application/pkix-attr-cert',\n );\n },\n };\n\n public static csr = {\n asPEM: (pem: string, name: string) => {\n downloadFromBuffer(\n Convert.FromString(pem),\n name,\n 'csr',\n 'application/pkcs10',\n );\n },\n\n asDER: (hex: string, name: string) => {\n downloadFromBuffer(\n Convert.FromString(hex),\n name,\n 'csr',\n 'application/pkcs10',\n );\n },\n };\n\n public static crl = {\n asPEM: (pem: string, name: string) => {\n downloadFromBuffer(\n Convert.FromString(pem),\n name,\n 'crl',\n 'application/pkix-crl',\n );\n },\n\n asDER: (hex: string, name: string) => {\n downloadFromBuffer(\n Convert.FromString(hex),\n name,\n 'crl',\n 'application/pkix-crl',\n );\n },\n };\n}\n"],"version":3}
@@ -0,0 +1,60 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
5
+
6
+ const highlightWordsCss = ":host{display:inline}::slotted(mark){background-color:var(--pv-color-attention-tint-4)}";
7
+
8
+ const HighlightWords = /*@__PURE__*/ proxyCustomElement(class HighlightWords extends HTMLElement {
9
+ constructor() {
10
+ super();
11
+ this.__registerHost();
12
+ this.__attachShadow();
13
+ this.tag = 'mark';
14
+ this.search = undefined;
15
+ }
16
+ componentDidLoad() {
17
+ this.handleHighlightSearch();
18
+ }
19
+ componentDidUpdate() {
20
+ this.handleHighlightSearch();
21
+ }
22
+ handleHighlightSearch() {
23
+ const basicString = this.resetHighlightSearch(this.host.innerHTML);
24
+ let result = basicString;
25
+ if (this.search) {
26
+ const substring = new RegExp(`(${this.search})`, 'gi');
27
+ result = basicString.replace(substring, `<${this.tag}>$1</${this.tag}>`);
28
+ }
29
+ this.host.innerHTML = result;
30
+ }
31
+ resetHighlightSearch(source) {
32
+ // eslint-disable-next-line no-useless-escape
33
+ const substring = new RegExp(`<\/?${this.tag}>`, 'g');
34
+ return source.replace(substring, '');
35
+ }
36
+ render() {
37
+ return (h(Host, null, h("slot", null)));
38
+ }
39
+ get host() { return this; }
40
+ static get style() { return highlightWordsCss; }
41
+ }, [1, "peculiar-highlight-words", {
42
+ "search": [1]
43
+ }]);
44
+ function defineCustomElement() {
45
+ if (typeof customElements === "undefined") {
46
+ return;
47
+ }
48
+ const components = ["peculiar-highlight-words"];
49
+ components.forEach(tagName => { switch (tagName) {
50
+ case "peculiar-highlight-words":
51
+ if (!customElements.get(tagName)) {
52
+ customElements.define(tagName, HighlightWords);
53
+ }
54
+ break;
55
+ } });
56
+ }
57
+
58
+ export { HighlightWords as H, defineCustomElement as d };
59
+
60
+ //# sourceMappingURL=highlight-words.js.map
@@ -0,0 +1 @@
1
+ {"file":"highlight-words.js","mappings":";;;;;AAAA,MAAM,iBAAiB,GAAG,yFAAyF;;MCiBtG,cAAc;;;;;IAKjB,QAAG,GAAW,MAAM,CAAC;;;EAE7B,gBAAgB;IACd,IAAI,CAAC,qBAAqB,EAAE,CAAC;GAC9B;EAED,kBAAkB;IAChB,IAAI,CAAC,qBAAqB,EAAE,CAAC;GAC9B;EAED,qBAAqB;IACnB,MAAM,WAAW,GAAG,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACnE,IAAI,MAAM,GAAG,WAAW,CAAC;IAEzB,IAAI,IAAI,CAAC,MAAM,EAAE;MACf,MAAM,SAAS,GAAG,IAAI,MAAM,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,EAAE,IAAI,CAAC,CAAC;MAEvD,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,IAAI,CAAC,GAAG,QAAQ,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;KAC1E;IAED,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC;GAC9B;EAED,oBAAoB,CAAC,MAAc;;IAEjC,MAAM,SAAS,GAAG,IAAI,MAAM,CAAC,OAAO,IAAI,CAAC,GAAG,GAAG,EAAE,GAAG,CAAC,CAAC;IAEtD,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;GACtC;EAED,MAAM;IACJ,QACE,EAAC,IAAI,QACH,eAAQ,CACH,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/highlight-words/highlight-words.scss?tag=peculiar-highlight-words&encapsulation=shadow","src/components/highlight-words/highlight-words.tsx"],"sourcesContent":[":host {\n display: inline;\n}\n\n::slotted(mark) {\n background-color: var(--pv-color-attention-tint-4);\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, Host, h, Element, Prop,\n} from '@stencil/core';\n\n@Component({\n tag: 'peculiar-highlight-words',\n styleUrl: 'highlight-words.scss',\n shadow: true,\n})\nexport class HighlightWords {\n @Element() host: HTMLElement;\n\n @Prop() search: string;\n\n private tag: string = 'mark';\n\n componentDidLoad() {\n this.handleHighlightSearch();\n }\n\n componentDidUpdate() {\n this.handleHighlightSearch();\n }\n\n handleHighlightSearch() {\n const basicString = this.resetHighlightSearch(this.host.innerHTML);\n let result = basicString;\n\n if (this.search) {\n const substring = new RegExp(`(${this.search})`, 'gi');\n\n result = basicString.replace(substring, `<${this.tag}>$1</${this.tag}>`);\n }\n\n this.host.innerHTML = result;\n }\n\n resetHighlightSearch(source: string) {\n // eslint-disable-next-line no-useless-escape\n const substring = new RegExp(`<\\/?${this.tag}>`, 'g');\n\n return source.replace(substring, '');\n }\n\n render() {\n return (\n <Host>\n <slot />\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Get the base path to where the assets can be found. Use "setAssetPath(path)"
3
+ * if the path needs to be customized.
4
+ */
5
+ export declare const getAssetPath: (path: string) => string;
6
+
7
+ /**
8
+ * Used to manually set the base path where assets can be found.
9
+ * If the script is used as "module", it's recommended to use "import.meta.url",
10
+ * such as "setAssetPath(import.meta.url)". Other options include
11
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
12
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
13
+ * But do note that this configuration depends on how your script is bundled, or lack of
14
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
15
+ * will have to ensure the static assets are copied to its build directory.
16
+ */
17
+ export declare const setAssetPath: (path: string) => void;
18
+
19
+ /**
20
+ * Used to specify a nonce value that corresponds with an application's CSP.
21
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
22
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
23
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
24
+ * will result in the same behavior.
25
+ */
26
+ export declare const setNonce: (nonce: string) => void
27
+
28
+ export interface SetPlatformOptions {
29
+ raf?: (c: FrameRequestCallback) => number;
30
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
31
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
32
+ }
33
+ export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
5
+ export { D as Download, d as downloadFromBuffer } from './download.js';
6
+
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"file":"index.js","mappings":";;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,299 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ import { b as build } from './download.js';
5
+ import { A as AsnData, o as Attribute$1, p as id_pkcs9_at_extensionRequest, q as AsnParser, r as ExtensionRequest, E as Extension, b as AsnConvert, s as id_pkcs9_at_unstructuredName, U as UnstructuredName, t as id_pkcs9_at_challengePassword, C as ChallengePassword, u as id_ValuationRanking, V as ValuationRanking, v as id_InsuranceValue, I as InsuranceValue, w as id_WebGDPR, W as WebGDPR, x as id_ActivityDescription, y as ActivityDescription, z as id_TypeRelationship, D as TypeRelationship, F as id_DomainNameTechnicalOperator, H as DomainNameTechnicalOperator, J as id_DomainNameOwner, K as DomainNameOwner, L as id_DomainNameLegalRepresentative, N as DomainNameLegalRepresentative, O as id_DomainNameBeneficiary, P as DomainNameBeneficiary, f as RowValue, i as getStringByOID, Q as OIDs, G as GeneralNamePart, l as l10n, R as RowTitle, X as Name } from './miscellaneous.js';
6
+ import { h } from '@stencil/core/internal/client';
7
+
8
+ /**
9
+ * @license
10
+ * Copyright (c) Peculiar Ventures, LLC.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+ class Attribute extends AsnData {
16
+ getAsnExtnValue() {
17
+ return this.asn.values[0];
18
+ }
19
+ constructor(raw) {
20
+ super(raw, Attribute$1);
21
+ const asnExtnValue = this.getAsnExtnValue();
22
+ switch (this.asn.type) {
23
+ case id_DomainNameBeneficiary:
24
+ this.value = AsnParser.parse(asnExtnValue, DomainNameBeneficiary);
25
+ break;
26
+ case id_DomainNameLegalRepresentative:
27
+ this.value = AsnParser.parse(asnExtnValue, DomainNameLegalRepresentative);
28
+ break;
29
+ case id_DomainNameOwner:
30
+ this.value = AsnParser.parse(asnExtnValue, DomainNameOwner);
31
+ break;
32
+ case id_DomainNameTechnicalOperator:
33
+ this.value = AsnParser.parse(asnExtnValue, DomainNameTechnicalOperator);
34
+ break;
35
+ case id_TypeRelationship:
36
+ this.value = AsnParser.parse(asnExtnValue, TypeRelationship);
37
+ break;
38
+ case id_ActivityDescription:
39
+ this.value = AsnParser.parse(asnExtnValue, ActivityDescription);
40
+ break;
41
+ case id_WebGDPR:
42
+ this.value = AsnParser.parse(asnExtnValue, WebGDPR);
43
+ break;
44
+ case id_InsuranceValue:
45
+ this.value = AsnParser.parse(asnExtnValue, InsuranceValue);
46
+ break;
47
+ case id_ValuationRanking:
48
+ this.value = AsnParser.parse(asnExtnValue, ValuationRanking);
49
+ break;
50
+ case id_pkcs9_at_challengePassword:
51
+ this.value = AsnParser.parse(asnExtnValue, ChallengePassword);
52
+ break;
53
+ case id_pkcs9_at_unstructuredName:
54
+ this.value = AsnParser.parse(asnExtnValue, UnstructuredName);
55
+ break;
56
+ case id_pkcs9_at_extensionRequest: {
57
+ const extensionRequest = AsnParser.parse(asnExtnValue, ExtensionRequest);
58
+ this.value = extensionRequest
59
+ .map((e) => new Extension(AsnConvert.serialize(e)));
60
+ break;
61
+ }
62
+ default:
63
+ this.value = build.Convert.ToHex(asnExtnValue);
64
+ }
65
+ }
66
+ }
67
+
68
+ /**
69
+ * @license
70
+ * Copyright (c) Peculiar Ventures, LLC.
71
+ *
72
+ * This source code is licensed under the MIT license found in the
73
+ * LICENSE file in the root directory of this source tree.
74
+ */
75
+ const BasicAttribute = (props, children) => {
76
+ const { attribute } = props;
77
+ return ([
78
+ h(RowValue, { name: "Name", value: getStringByOID(attribute.asn.type) }),
79
+ children,
80
+ h("tr", null,
81
+ h("td", { colSpan: 2, class: "divider" },
82
+ h("span", null))),
83
+ ]);
84
+ };
85
+
86
+ /**
87
+ * @license
88
+ * Copyright (c) Peculiar Ventures, LLC.
89
+ *
90
+ * This source code is licensed under the MIT license found in the
91
+ * LICENSE file in the root directory of this source tree.
92
+ */
93
+ const NamePart = (props) => {
94
+ const { name } = props;
95
+ if (!name) {
96
+ return null;
97
+ }
98
+ return name.map((relativeDistinguishedName) => (relativeDistinguishedName.map((attributeTypeAndValue) => (h(RowValue, { name: OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type, value: attributeTypeAndValue.value.toString() })))));
99
+ };
100
+
101
+ /**
102
+ * @license
103
+ * Copyright (c) Peculiar Ventures, LLC.
104
+ *
105
+ * This source code is licensed under the MIT license found in the
106
+ * LICENSE file in the root directory of this source tree.
107
+ */
108
+ const NameAttribute = (props) => {
109
+ const { attribute } = props;
110
+ return (h(BasicAttribute, { attribute: attribute },
111
+ h(NamePart, { name: attribute.value })));
112
+ };
113
+
114
+ /**
115
+ * @license
116
+ * Copyright (c) Peculiar Ventures, LLC.
117
+ *
118
+ * This source code is licensed under the MIT license found in the
119
+ * LICENSE file in the root directory of this source tree.
120
+ */
121
+ const ActivityDescriptionAttribute = (props) => {
122
+ const { attribute } = props;
123
+ return (h(BasicAttribute, { attribute: attribute },
124
+ h(RowValue, { name: "Code Authority", value: "" }),
125
+ h(GeneralNamePart, { generalName: attribute.value.codeAuthority, getDNSNameLink: () => '', getIPAddressLink: () => '' }),
126
+ h(RowValue, { name: "Code Id", value: "" }),
127
+ h(GeneralNamePart, { generalName: attribute.value.codeId, getDNSNameLink: () => '', getIPAddressLink: () => '' }),
128
+ h(RowValue, { name: "Short Name", value: attribute.value.shortName }),
129
+ h(RowValue, { name: "Short Description", value: attribute.value.shortDescription })));
130
+ };
131
+
132
+ /**
133
+ * @license
134
+ * Copyright (c) Peculiar Ventures, LLC.
135
+ *
136
+ * This source code is licensed under the MIT license found in the
137
+ * LICENSE file in the root directory of this source tree.
138
+ */
139
+ const WebGdprAttribute = (props) => {
140
+ const { attribute } = props;
141
+ return (h(BasicAttribute, { attribute: attribute },
142
+ h(RowValue, { name: "Assessment Authority", value: "" }),
143
+ h(GeneralNamePart, { generalName: attribute.value.assessmentAuthority, getDNSNameLink: () => '', getIPAddressLink: () => '' }),
144
+ h(RowValue, { name: "Assessment Location", value: "" }),
145
+ h(GeneralNamePart, { generalName: attribute.value.assessmentLocation, getDNSNameLink: () => '', getIPAddressLink: () => '' }),
146
+ h(RowValue, { name: "Assessment Ref", value: "" }),
147
+ h(GeneralNamePart, { generalName: attribute.value.assessmentRef, getDNSNameLink: () => '', getIPAddressLink: () => '' }),
148
+ h(RowValue, { name: "Data Storage Territory", value: attribute.value.dataStorageTerritory }),
149
+ h(RowValue, { name: "Description", value: attribute.value.description })));
150
+ };
151
+
152
+ /**
153
+ * @license
154
+ * Copyright (c) Peculiar Ventures, LLC.
155
+ *
156
+ * This source code is licensed under the MIT license found in the
157
+ * LICENSE file in the root directory of this source tree.
158
+ */
159
+ const InsuranceValueAttribute = (props) => {
160
+ const { attribute } = props;
161
+ const value = `${attribute.value.base} * 10^${attribute.value.degree} ${attribute.value.location}`;
162
+ return (h(BasicAttribute, { attribute: attribute },
163
+ h(RowValue, { name: "Value", value: value })));
164
+ };
165
+
166
+ /**
167
+ * @license
168
+ * Copyright (c) Peculiar Ventures, LLC.
169
+ *
170
+ * This source code is licensed under the MIT license found in the
171
+ * LICENSE file in the root directory of this source tree.
172
+ */
173
+ const TypeRelationshipAttribute = (props) => {
174
+ const { attribute } = props;
175
+ return (h(BasicAttribute, { attribute: attribute }, Object.keys(attribute.value).map((keyName) => (h(RowValue, { name: keyName, value: attribute.value[keyName].toNumber() ? l10n.getString('yes') : l10n.getString('no') })))));
176
+ };
177
+
178
+ /**
179
+ * @license
180
+ * Copyright (c) Peculiar Ventures, LLC.
181
+ *
182
+ * This source code is licensed under the MIT license found in the
183
+ * LICENSE file in the root directory of this source tree.
184
+ */
185
+ const getValueRank = (value) => {
186
+ let ratio = 1;
187
+ if (value / 100 > 1) {
188
+ ratio = 100;
189
+ }
190
+ else if (value / 10 > 1) {
191
+ ratio = 10;
192
+ }
193
+ return `${value}/${5 * ratio}`;
194
+ };
195
+ const ValuationRankingAttribute = (props) => {
196
+ const { attribute } = props;
197
+ const values = Object.keys(attribute.value).map((keyName) => ([
198
+ getValueRank(attribute.value[keyName]),
199
+ h("br", null),
200
+ ]));
201
+ return (h(BasicAttribute, { attribute: attribute },
202
+ h(RowValue, { name: "Value", value: values })));
203
+ };
204
+
205
+ /**
206
+ * @license
207
+ * Copyright (c) Peculiar Ventures, LLC.
208
+ *
209
+ * This source code is licensed under the MIT license found in the
210
+ * LICENSE file in the root directory of this source tree.
211
+ */
212
+ const AsStringAttribute = (props) => {
213
+ const { attribute } = props;
214
+ return (h(BasicAttribute, { attribute: attribute },
215
+ h(RowValue, { name: "Value", value: attribute.value, monospace: true })));
216
+ };
217
+
218
+ /**
219
+ * @license
220
+ * Copyright (c) Peculiar Ventures, LLC.
221
+ *
222
+ * This source code is licensed under the MIT license found in the
223
+ * LICENSE file in the root directory of this source tree.
224
+ */
225
+ const UnstructuredNameAttribute = (props) => {
226
+ const { attribute } = props;
227
+ return (h(BasicAttribute, { attribute: attribute },
228
+ h(RowValue, { name: "Value", value: attribute.value.utf8String })));
229
+ };
230
+
231
+ /**
232
+ * @license
233
+ * Copyright (c) Peculiar Ventures, LLC.
234
+ *
235
+ * This source code is licensed under the MIT license found in the
236
+ * LICENSE file in the root directory of this source tree.
237
+ */
238
+ const ChallengePasswordAttribute = (props) => {
239
+ const { attribute } = props;
240
+ return (h(BasicAttribute, { attribute: attribute },
241
+ h(RowValue, { name: "Value", value: attribute.value.toString() })));
242
+ };
243
+
244
+ /**
245
+ * @license
246
+ * Copyright (c) Peculiar Ventures, LLC.
247
+ *
248
+ * This source code is licensed under the MIT license found in the
249
+ * LICENSE file in the root directory of this source tree.
250
+ */
251
+ const Attributes = (props) => {
252
+ const { attributes } = props;
253
+ if (!attributes || !attributes.length) {
254
+ return null;
255
+ }
256
+ return ([
257
+ h(RowTitle, { value: "Attributes" }),
258
+ attributes.map((attribute) => {
259
+ try {
260
+ if (attribute.value instanceof Name) {
261
+ return (h(NameAttribute, { attribute: attribute }));
262
+ }
263
+ if (attribute.value instanceof ActivityDescription) {
264
+ return (h(ActivityDescriptionAttribute, { attribute: attribute }));
265
+ }
266
+ if (attribute.value instanceof WebGDPR) {
267
+ return (h(WebGdprAttribute, { attribute: attribute }));
268
+ }
269
+ if (attribute.value instanceof InsuranceValue) {
270
+ return (h(InsuranceValueAttribute, { attribute: attribute }));
271
+ }
272
+ if (attribute.value instanceof TypeRelationship) {
273
+ return (h(TypeRelationshipAttribute, { attribute: attribute }));
274
+ }
275
+ if (attribute.value instanceof ValuationRanking) {
276
+ return (h(ValuationRankingAttribute, { attribute: attribute }));
277
+ }
278
+ if (attribute.value instanceof UnstructuredName) {
279
+ return (h(UnstructuredNameAttribute, { attribute: attribute }));
280
+ }
281
+ if (attribute.value instanceof ChallengePassword) {
282
+ return (h(ChallengePasswordAttribute, { attribute: attribute }));
283
+ }
284
+ if (typeof attribute.value === 'string') {
285
+ return (h(AsStringAttribute, { attribute: attribute }));
286
+ }
287
+ return (h(BasicAttribute, { attribute: attribute }));
288
+ }
289
+ catch (error) {
290
+ console.error('Error render attribute:', attribute.asn.type);
291
+ return null;
292
+ }
293
+ }),
294
+ ]);
295
+ };
296
+
297
+ export { Attribute as A, Attributes as a };
298
+
299
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"file":"index2.js","mappings":";;;;;;;AAAA;;;;;;;MAmEa,SAAqC,SAAQ,OAAqB;EAGrE,eAAe;IACrB,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;GAC3B;EAED,YAAY,GAAiB;IAC3B,KAAK,CAAC,GAAG,EAAEA,WAAY,CAAC,CAAC;IAEzB,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;IAE5C,QAAQ,IAAI,CAAC,GAAG,CAAC,IAAI;MACnB,KAAK,wBAAwB;QAC3B,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,YAAY,EAAE,qBAAqB,CAAM,CAAC;QACvE,MAAM;MACR,KAAK,gCAAgC;QACnC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,YAAY,EAAE,6BAA6B,CAAM,CAAC;QAC/E,MAAM;MACR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,EAAE;UAC7C,QACE,EAAC,uBAAuB,IACtB,SAAS,EAAE,SAAgB,GAC3B,EACF;SACH;QAED,IAAI,SAAS,CAAC,KAAK,YAAY,gBAAgB,EAAE;UAC/C,QACE,EAAC,yBAAyB,IACxB,SAAS,EAAE,SAAgB,GAC3B,EACF;SACH;QAED,IAAI,SAAS,CAAC,KAAK,YAAY,gBAAgB,EAAE;UAC/C,QACE,EAAC,yBAAyB,IACxB,SAAS,EAAE,SAAgB,GAC3B,EACF;SACH;QAED,IAAI,SAAS,CAAC,KAAK,YAAY,gBAAgB,EAAE;UAC/C,QACE,EAAC,yBAAyB,IACxB,SAAS,EAAE,SAAgB,GAC3B,EACF;SACH;QAED,IAAI,SAAS,CAAC,KAAK,YAAY,iBAAiB,EAAE;UAChD,QACE,EAAC,0BAA0B,IACzB,SAAS,EAAE,SAAgB,GAC3B,EACF;SACH;QAED,IAAI,OAAO,SAAS,CAAC,KAAK,KAAK,QAAQ,EAAE;UACvC,QACE,EAAC,iBAAiB,IAChB,SAAS,EAAE,SAAgB,GAC3B,EACF;SACH;QAED,QACE,EAAC,cAAc,IACb,SAAS,EAAE,SAAS,GACpB,EACF;OACH;MAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAE7D,OAAO,IAAI,CAAC;OACb;KACF,CAAC;GACH,EAAE;AACL;;;;","names":["AsnAttribute","Convert"],"sources":["src/crypto/attribute.ts","src/components/certificate-details-parts/attributes/basic_attribute.tsx","src/components/certificate-details-parts/attributes/name_part.tsx","src/components/certificate-details-parts/attributes/name_attribute.tsx","src/components/certificate-details-parts/attributes/activity_description_attribute.tsx","src/components/certificate-details-parts/attributes/web_gdpr_attribute.tsx","src/components/certificate-details-parts/attributes/insurance_value_attribute.tsx","src/components/certificate-details-parts/attributes/type_relationship_attribute.tsx","src/components/certificate-details-parts/attributes/valuation_ranking_attribute.tsx","src/components/certificate-details-parts/attributes/as_string_attribute.tsx","src/components/certificate-details-parts/attributes/unstructured_name_attribute.tsx","src/components/certificate-details-parts/attributes/challenge_password_attribute.tsx","src/components/certificate-details-parts/attributes/index.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 { Convert } from 'pvtsutils';\nimport { AsnParser, AsnConvert } from '@peculiar/asn1-schema';\nimport { Attribute as AsnAttribute } from '@peculiar/asn1-x509';\nimport {\n id_DomainNameBeneficiary,\n DomainNameBeneficiary,\n\n id_DomainNameLegalRepresentative,\n DomainNameLegalRepresentative,\n\n id_DomainNameOwner,\n DomainNameOwner,\n\n id_DomainNameTechnicalOperator,\n DomainNameTechnicalOperator,\n\n id_TypeRelationship,\n TypeRelationship,\n\n id_ActivityDescription,\n ActivityDescription,\n\n id_WebGDPR,\n WebGDPR,\n\n id_InsuranceValue,\n InsuranceValue,\n\n id_ValuationRanking,\n ValuationRanking,\n} from '@peculiar/asn1-ntqwac';\nimport {\n id_pkcs9_at_extensionRequest,\n ExtensionRequest,\n\n id_pkcs9_at_challengePassword,\n ChallengePassword,\n\n id_pkcs9_at_unstructuredName,\n UnstructuredName,\n} from '@peculiar/asn1-pkcs9';\n\nimport { Extension, TExtensionValue } from './extension';\nimport { AsnData } from './asn_data';\n\nexport type TAttributeValue = DomainNameBeneficiary\n| DomainNameLegalRepresentative\n| DomainNameOwner\n| DomainNameTechnicalOperator\n| TypeRelationship\n| ActivityDescription\n| WebGDPR\n| InsuranceValue\n| ValuationRanking\n| Extension<TExtensionValue>[]\n| ChallengePassword\n| UnstructuredName\n| string;\n\nexport class Attribute<T extends TAttributeValue> extends AsnData<AsnAttribute> {\n public readonly value: T;\n\n private getAsnExtnValue() {\n return this.asn.values[0];\n }\n\n constructor(raw: BufferSource) {\n super(raw, AsnAttribute);\n\n const asnExtnValue = this.getAsnExtnValue();\n\n switch (this.asn.type) {\n case id_DomainNameBeneficiary:\n this.value = AsnParser.parse(asnExtnValue, DomainNameBeneficiary) as T;\n break;\n case id_DomainNameLegalRepresentative:\n this.value = AsnParser.parse(asnExtnValue, DomainNameLegalRepresentative) as T;\n break;\n case id_DomainNameOwner:\n this.value = AsnParser.parse(asnExtnValue, DomainNameOwner) as T;\n break;\n case id_DomainNameTechnicalOperator:\n this.value = AsnParser.parse(asnExtnValue, DomainNameTechnicalOperator) as T;\n break;\n case id_TypeRelationship:\n this.value = AsnParser.parse(asnExtnValue, TypeRelationship) as T;\n break;\n case id_ActivityDescription:\n this.value = AsnParser.parse(asnExtnValue, ActivityDescription) as T;\n break;\n case id_WebGDPR:\n this.value = AsnParser.parse(asnExtnValue, WebGDPR) as T;\n break;\n case id_InsuranceValue:\n this.value = AsnParser.parse(asnExtnValue, InsuranceValue) as T;\n break;\n case id_ValuationRanking:\n this.value = AsnParser.parse(asnExtnValue, ValuationRanking) as T;\n break;\n case id_pkcs9_at_challengePassword:\n this.value = AsnParser.parse(asnExtnValue, ChallengePassword) as T;\n break;\n case id_pkcs9_at_unstructuredName:\n this.value = AsnParser.parse(asnExtnValue, UnstructuredName) as T;\n break;\n case id_pkcs9_at_extensionRequest: {\n const extensionRequest = AsnParser.parse(asnExtnValue, ExtensionRequest);\n\n this.value = extensionRequest\n .map((e) => new Extension(AsnConvert.serialize(e))) as T;\n break;\n }\n default:\n this.value = Convert.ToHex(asnExtnValue) as T;\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 { h, FunctionalComponent } from '@stencil/core';\n\nimport type { Attribute, TAttributeValue } from '../../../crypto/attribute';\nimport { getStringByOID } from '../../../utils';\nimport { RowValue } from '../row';\n\ninterface IBasicAttributeProps {\n attribute: Attribute<TAttributeValue>;\n}\n\nexport const BasicAttribute: FunctionalComponent<IBasicAttributeProps> = (props, children) => {\n const { attribute } = props;\n\n return ([\n <RowValue\n name=\"Name\"\n value={getStringByOID(attribute.asn.type)}\n />,\n children,\n <tr>\n <td colSpan={2} class=\"divider\">\n <span />\n </td>\n </tr>,\n ]);\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { Name } from '@peculiar/asn1-x509';\n\nimport { OIDs } from '../../../constants/oids';\nimport { RowValue } from '../row';\n\ninterface INamePartProps {\n name: Name;\n}\n\nexport const NamePart: FunctionalComponent<INamePartProps> = (props): any[] => {\n const { name } = props;\n\n if (!name) {\n return null;\n }\n\n return name.map((relativeDistinguishedName) => (\n relativeDistinguishedName.map((attributeTypeAndValue) => (\n <RowValue\n name={OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type}\n value={attributeTypeAndValue.value.toString()}\n />\n ))\n ));\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { Name } from '@peculiar/asn1-x509';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { BasicAttribute } from './basic_attribute';\nimport { NamePart } from './name_part';\n\ninterface INameAttributeProps {\n attribute: Attribute<Name>;\n}\n\nexport const NameAttribute:\nFunctionalComponent<INameAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <NamePart\n name={attribute.value}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ActivityDescription } from '@peculiar/asn1-ntqwac';\n\nimport { Attribute } from '../../../crypto/attribute';\nimport { GeneralNamePart } from '../extensions/general_name_part';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IActivityDescriptionAttributeProps {\n attribute: Attribute<ActivityDescription>;\n}\n\nexport const ActivityDescriptionAttribute:\nFunctionalComponent<IActivityDescriptionAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Code Authority\"\n value=\"\"\n />\n <GeneralNamePart\n generalName={attribute.value.codeAuthority}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n\n <RowValue\n name=\"Code Id\"\n value=\"\"\n />\n <GeneralNamePart\n generalName={attribute.value.codeId}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n\n <RowValue\n name=\"Short Name\"\n value={attribute.value.shortName}\n />\n <RowValue\n name=\"Short Description\"\n value={attribute.value.shortDescription}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { WebGDPR } from '@peculiar/asn1-ntqwac';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { GeneralNamePart } from '../extensions/general_name_part';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IWebGdprAttributeProps {\n attribute: Attribute<WebGDPR>;\n}\n\nexport const WebGdprAttribute:\nFunctionalComponent<IWebGdprAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Assessment Authority\"\n value=\"\"\n />\n <GeneralNamePart\n generalName={attribute.value.assessmentAuthority}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n\n <RowValue\n name=\"Assessment Location\"\n value=\"\"\n />\n <GeneralNamePart\n generalName={attribute.value.assessmentLocation}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n\n <RowValue\n name=\"Assessment Ref\"\n value=\"\"\n />\n <GeneralNamePart\n generalName={attribute.value.assessmentRef}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n\n <RowValue\n name=\"Data Storage Territory\"\n value={attribute.value.dataStorageTerritory}\n />\n <RowValue\n name=\"Description\"\n value={attribute.value.description}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { InsuranceValue } from '@peculiar/asn1-ntqwac';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IInsuranceValueAttributeProps {\n attribute: Attribute<InsuranceValue>;\n}\n\nexport const InsuranceValueAttribute:\nFunctionalComponent<IInsuranceValueAttributeProps> = (props) => {\n const { attribute } = props;\n const value = `${attribute.value.base} * 10^${attribute.value.degree} ${attribute.value.location}`;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={value}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { TypeRelationship } from '@peculiar/asn1-ntqwac';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { l10n } from '../../../utils';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface ITypeRelationshipAttributeProps {\n attribute: Attribute<TypeRelationship>;\n}\n\nexport const TypeRelationshipAttribute:\nFunctionalComponent<ITypeRelationshipAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n {Object.keys(attribute.value).map((keyName) => (\n <RowValue\n name={keyName}\n value={attribute.value[keyName].toNumber() ? l10n.getString('yes') : l10n.getString('no')}\n />\n ))}\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ValuationRanking } from '@peculiar/asn1-ntqwac';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IValuationRankingAttributeProps {\n attribute: Attribute<ValuationRanking>;\n}\n\nconst getValueRank = (value: number): string => {\n let ratio = 1;\n\n if (value / 100 > 1) {\n ratio = 100;\n } else if (value / 10 > 1) {\n ratio = 10;\n }\n\n return `${value}/${5 * ratio}`;\n};\n\nexport const ValuationRankingAttribute:\nFunctionalComponent<IValuationRankingAttributeProps> = (props) => {\n const { attribute } = props;\n const values = Object.keys(attribute.value).map((keyName) => ([\n getValueRank(attribute.value[keyName]),\n <br />,\n ]));\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={values as any}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IAsStringAttributeProps {\n attribute: Attribute<string>;\n}\n\nexport const AsStringAttribute:\nFunctionalComponent<IAsStringAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value}\n monospace\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { UnstructuredName } from '@peculiar/asn1-pkcs9';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IUnstructuredNameAttributeProps {\n attribute: Attribute<UnstructuredName>;\n}\n\nexport const UnstructuredNameAttribute:\nFunctionalComponent<IUnstructuredNameAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value.utf8String}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ChallengePassword } from '@peculiar/asn1-pkcs9';\n\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IChallengePasswordAttributeProps {\n attribute: Attribute<ChallengePassword>;\n}\n\nexport const ChallengePasswordAttribute:\nFunctionalComponent<IChallengePasswordAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value.toString()}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { Name } from '@peculiar/asn1-x509';\nimport {\n TypeRelationship,\n ActivityDescription,\n WebGDPR,\n InsuranceValue,\n ValuationRanking,\n} from '@peculiar/asn1-ntqwac';\nimport {\n UnstructuredName,\n ChallengePassword,\n} from '@peculiar/asn1-pkcs9';\n\nimport type { Attribute, TAttributeValue } from '../../../crypto/attribute';\nimport { RowTitle } from '../row';\nimport { NameAttribute } from './name_attribute';\nimport { ActivityDescriptionAttribute } from './activity_description_attribute';\nimport { WebGdprAttribute } from './web_gdpr_attribute';\nimport { InsuranceValueAttribute } from './insurance_value_attribute';\nimport { TypeRelationshipAttribute } from './type_relationship_attribute';\nimport { ValuationRankingAttribute } from './valuation_ranking_attribute';\nimport { BasicAttribute } from './basic_attribute';\nimport { AsStringAttribute } from './as_string_attribute';\nimport { UnstructuredNameAttribute } from './unstructured_name_attribute';\nimport { ChallengePasswordAttribute } from './challenge_password_attribute';\n\ninterface IAttributesPtops extends\n IGeneralNameOptions,\n ILeiOptions,\n IAuthorityKeyIdentifierOptions,\n ISubjectKeyIdentifierOptions {\n attributes: Attribute<TAttributeValue>[];\n}\n\nexport const Attributes: FunctionalComponent<IAttributesPtops> = (props) => {\n const { attributes } = props;\n\n if (!attributes || !attributes.length) {\n return null;\n }\n\n return ([\n <RowTitle\n value=\"Attributes\"\n />,\n attributes.map((attribute) => {\n try {\n if (attribute.value instanceof Name) {\n return (\n <NameAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof ActivityDescription) {\n return (\n <ActivityDescriptionAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof WebGDPR) {\n return (\n <WebGdprAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof InsuranceValue) {\n return (\n <InsuranceValueAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof TypeRelationship) {\n return (\n <TypeRelationshipAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof ValuationRanking) {\n return (\n <ValuationRankingAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof UnstructuredName) {\n return (\n <UnstructuredNameAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (attribute.value instanceof ChallengePassword) {\n return (\n <ChallengePasswordAttribute\n attribute={attribute as any}\n />\n );\n }\n\n if (typeof attribute.value === 'string') {\n return (\n <AsStringAttribute\n attribute={attribute as any}\n />\n );\n }\n\n return (\n <BasicAttribute\n attribute={attribute}\n />\n );\n } catch (error) {\n console.error('Error render attribute:', attribute.asn.type);\n\n return null;\n }\n }),\n ]);\n};\n"],"version":3}
@@ -0,0 +1,26 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ import { h } from '@stencil/core/internal/client';
5
+ import { l as l10n, R as RowTitle, aj as Link, f as RowValue } from './miscellaneous.js';
6
+ import './download.js';
7
+
8
+ /**
9
+ * @license
10
+ * Copyright (c) Peculiar Ventures, LLC.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+ const IssuerName = (props) => {
16
+ const { name, issuerDnLink } = props;
17
+ const title = l10n.getString('issuerName');
18
+ return [
19
+ h(RowTitle, { value: issuerDnLink ? (h(Link, { href: issuerDnLink }, title)) : title }),
20
+ name.map((n) => (h(RowValue, { name: n.name || n.type, value: n.value }))),
21
+ ];
22
+ };
23
+
24
+ export { IssuerName as I };
25
+
26
+ //# sourceMappingURL=issuer_name.js.map
@@ -0,0 +1 @@
1
+ {"file":"issuer_name.js","mappings":";;;;;;;AAAA;;;;;;;MAoBa,UAAU,GAA2C,CAAC,KAAK;EACtE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;EACrC,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;EAE3C,OAAO;IACL,EAAC,QAAQ,IACP,KAAK,EAAE,YAAY,IACjB,EAAC,IAAI,IACH,IAAI,EAAE,YAAY,IAEjB,KAAK,CACD,IACL,KAAK,GACT;IACF,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MACT,EAAC,QAAQ,IACP,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,EACtB,KAAK,EAAE,CAAC,CAAC,KAAK,GACd,CACH,CAAC;GACH,CAAC;AACJ;;;;","names":[],"sources":["src/components/certificate-details-parts/issuer_name.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 { h, FunctionalComponent } from '@stencil/core';\n\nimport type { INameJSON } from '../../crypto/name';\nimport { l10n } from '../../utils';\nimport { Link } from '../link';\nimport { RowTitle, RowValue } from './row';\n\ninterface ISubjectNameProps {\n name: INameJSON[];\n issuerDnLink?: string;\n}\n\nexport const IssuerName: FunctionalComponent<ISubjectNameProps> = (props) => {\n const { name, issuerDnLink } = props;\n const title = l10n.getString('issuerName');\n\n return [\n <RowTitle\n value={issuerDnLink ? (\n <Link\n href={issuerDnLink}\n >\n {title}\n </Link>\n ) : title}\n />,\n name.map((n) => (\n <RowValue\n name={n.name || n.type}\n value={n.value}\n />\n )),\n ];\n};\n"],"version":3}