@peculiar/certificates-viewer 4.7.1-alpha.4 → 4.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/components/actions.js +1 -2
  2. package/components/actions.js.map +1 -1
  3. package/components/arrow_top.js +2 -4
  4. package/components/arrow_top.js.map +1 -1
  5. package/components/attribute-certificate-viewer.js +7 -12
  6. package/components/attribute-certificate-viewer.js.map +1 -1
  7. package/components/button-menu.js +4 -2
  8. package/components/button-menu.js.map +1 -1
  9. package/components/button.js +5 -8
  10. package/components/button.js.map +1 -1
  11. package/components/certificate-chain-viewer.js +5 -3
  12. package/components/certificate-chain-viewer.js.map +1 -1
  13. package/components/certificate-viewer.js +4 -2
  14. package/components/certificate-viewer.js.map +1 -1
  15. package/components/circular-progress.js +4 -2
  16. package/components/circular-progress.js.map +1 -1
  17. package/components/crl-viewer.js +6 -7
  18. package/components/crl-viewer.js.map +1 -1
  19. package/components/cross.js +3 -6
  20. package/components/cross.js.map +1 -1
  21. package/components/csr-viewer.js +4 -2
  22. package/components/csr-viewer.js.map +1 -1
  23. package/components/download.js +93 -94
  24. package/components/download.js.map +1 -1
  25. package/components/highlight-words.js +4 -2
  26. package/components/highlight-words.js.map +1 -1
  27. package/components/index2.js +14 -49
  28. package/components/index2.js.map +1 -1
  29. package/components/issuer_name.js.map +1 -1
  30. package/components/miscellaneous.js +61 -153
  31. package/components/miscellaneous.js.map +1 -1
  32. package/components/peculiar-certificate-decoder.js +6 -4
  33. package/components/peculiar-certificate-decoder.js.map +1 -1
  34. package/components/peculiar-certificates-viewer.js +6 -16
  35. package/components/peculiar-certificates-viewer.js.map +1 -1
  36. package/components/pkcs10_certificate_request.js.map +1 -1
  37. package/components/row.js +6 -17
  38. package/components/row.js.map +1 -1
  39. package/components/ssh-certificate-viewer.js +5 -5
  40. package/components/ssh-certificate-viewer.js.map +1 -1
  41. package/components/subject_name.js.map +1 -1
  42. package/components/text-hider.js +4 -2
  43. package/components/text-hider.js.map +1 -1
  44. package/dist/cjs/{actions-ByC9jQU-.js → actions-mGiqn4uZ.js} +4 -5
  45. package/dist/cjs/{actions-ByC9jQU-.js.map → actions-mGiqn4uZ.js.map} +1 -1
  46. package/dist/cjs/{arrow_top-Cw9KN115.js → arrow_top-opfTrg-m.js} +5 -7
  47. package/dist/cjs/{arrow_top-Cw9KN115.js.map → arrow_top-opfTrg-m.js.map} +1 -1
  48. package/dist/cjs/{button-C8EWG_-r.js → button-B215SxsO.js} +8 -11
  49. package/dist/{esm-es5/button-Bbh7MwG6.js.map → cjs/button-B215SxsO.js.map} +1 -1
  50. package/dist/cjs/cross-DV79hJ_S.js +49 -0
  51. package/dist/cjs/{cross-3DqhA0G_.js.map → cross-DV79hJ_S.js.map} +1 -1
  52. package/dist/cjs/download-DAw3krU6.js +23 -0
  53. package/dist/cjs/{download-DQP0KR4o.js.map → download-DAw3krU6.js.map} +1 -1
  54. package/dist/cjs/{extension-DTtJlxk8.js → extension-BDpdRJkE.js} +3 -3
  55. package/dist/cjs/extension-BDpdRJkE.js.map +1 -0
  56. package/dist/cjs/{index-uHmGhObe.js → index-BDWR3dnW.js} +88 -47
  57. package/dist/cjs/index-BDWR3dnW.js.map +1 -0
  58. package/dist/cjs/index.cjs.js +9 -11
  59. package/dist/cjs/{link-Cgh8wnbs.js → link-BScgjwVZ.js} +5 -5
  60. package/dist/cjs/{link-Cgh8wnbs.js.map → link-BScgjwVZ.js.map} +1 -1
  61. package/dist/cjs/loader.cjs.js +2 -4
  62. package/dist/cjs/{miscellaneous-DCeacaAw.js → miscellaneous-Bomq8zQH.js} +75 -178
  63. package/dist/cjs/miscellaneous-Bomq8zQH.js.map +1 -0
  64. package/dist/cjs/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.cjs.js.map +1 -1
  65. package/dist/cjs/peculiar-attribute-certificate-viewer_5.cjs.entry.js +30 -79
  66. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +3 -5
  67. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +8 -10
  68. package/dist/cjs/peculiar-certificate-decoder.entry.cjs.js.map +1 -1
  69. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +8 -10
  70. package/dist/cjs/peculiar-certificate-viewer.entry.cjs.js.map +1 -1
  71. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +10 -24
  72. package/dist/cjs/peculiar-certificates-viewer.entry.cjs.js.map +1 -1
  73. package/dist/cjs/peculiar-text-hider.cjs.entry.js +3 -5
  74. package/dist/cjs/peculiar.cjs.js +3 -5
  75. package/dist/cjs/peculiar.cjs.js.map +1 -1
  76. package/dist/cjs/{pkcs10_certificate_request-DE-0eDXE.js → pkcs10_certificate_request-DZLiHGCV.js} +3 -3
  77. package/dist/cjs/{pkcs10_certificate_request-DE-0eDXE.js.map → pkcs10_certificate_request-DZLiHGCV.js.map} +1 -1
  78. package/dist/cjs/{ssh_certificate-D2q_p49O.js → ssh_certificate-Bh14rhzR.js} +93 -93
  79. package/dist/cjs/ssh_certificate-Bh14rhzR.js.map +1 -0
  80. package/dist/cjs/{x509_certificate-Cto1q-eu.js → x509_certificate-p8RMn7Hw.js} +4 -4
  81. package/dist/cjs/{x509_certificate-Cto1q-eu.js.map → x509_certificate-p8RMn7Hw.js.map} +1 -1
  82. package/dist/cjs/{x509_crl-CgixMZrh.js → x509_crl-tjmX6l3R.js} +5 -5
  83. package/dist/cjs/{x509_crl-CgixMZrh.js.map → x509_crl-tjmX6l3R.js.map} +1 -1
  84. package/dist/collection/collection-manifest.json +2 -2
  85. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +14 -14
  86. package/dist/collection/components/button-menu/button-menu.js +1 -2
  87. package/dist/collection/components/button-menu/button-menu.js.map +1 -1
  88. package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.css +0 -447
  89. package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.js +2 -3
  90. package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.js.map +1 -1
  91. package/dist/collection/components/certificate-decoder/certificate-decoder.js +3 -4
  92. package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -1
  93. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js +1 -1
  94. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js.map +1 -1
  95. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js +1 -1
  96. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js.map +1 -1
  97. package/dist/collection/components/certificate-viewer/certificate-viewer.js +16 -16
  98. package/dist/collection/components/certificates-viewer/certificates-viewer.js +4 -5
  99. package/dist/collection/components/certificates-viewer/certificates-viewer.js.map +1 -1
  100. package/dist/collection/components/circular-progress/circular-progress.js +2 -2
  101. package/dist/collection/components/crl-viewer/crl-viewer.js +12 -12
  102. package/dist/collection/components/csr-viewer/csr-viewer.js +10 -10
  103. package/dist/collection/components/highlight-words/highlight-words.js +2 -2
  104. package/dist/collection/components/ssh-certificate-viewer/-components/miscellaneous.js +1 -1
  105. package/dist/collection/components/ssh-certificate-viewer/-components/miscellaneous.js.map +1 -1
  106. package/dist/collection/components/ssh-certificate-viewer/ssh-certificate-viewer.js +6 -6
  107. package/dist/collection/crypto/extensions/cabforganization_identifier.js.map +1 -1
  108. package/dist/collection/crypto/ssh_certificate.js +10 -5
  109. package/dist/collection/crypto/ssh_certificate.js.map +1 -1
  110. package/dist/collection/locales/en.json +0 -1
  111. package/dist/collection/utils/download.js +2 -2
  112. package/dist/collection/utils/download.js.map +1 -1
  113. package/dist/esm/{actions-BOY2Tl0T.js → actions-CabuIstu.js} +4 -5
  114. package/dist/esm/{actions-BOY2Tl0T.js.map → actions-CabuIstu.js.map} +1 -1
  115. package/dist/esm/{arrow_top-DL0RWe4n.js → arrow_top-CWdnzNJA.js} +5 -7
  116. package/dist/{esm-es5/arrow_top-DL0RWe4n.js.map → esm/arrow_top-CWdnzNJA.js.map} +1 -1
  117. package/dist/esm/{button-Bbh7MwG6.js → button-DoyFdU2L.js} +8 -11
  118. package/dist/esm/{button-Bbh7MwG6.js.map → button-DoyFdU2L.js.map} +1 -1
  119. package/dist/esm/cross-B4NPVkar.js +45 -0
  120. package/dist/{esm-es5/cross-G84H_-QL.js.map → esm/cross-B4NPVkar.js.map} +1 -1
  121. package/dist/esm/download-C7Viw-3R.js +21 -0
  122. package/dist/esm/{download-ykcxSgxU.js.map → download-C7Viw-3R.js.map} +1 -1
  123. package/dist/esm/{extension-DmlhftES.js → extension-xW03sQxn.js} +3 -3
  124. package/dist/esm/extension-xW03sQxn.js.map +1 -0
  125. package/dist/esm/{index-CwgZaF40.js → index-B0tLzdJT.js} +88 -47
  126. package/dist/esm/index-B0tLzdJT.js.map +1 -0
  127. package/dist/esm/index.js +9 -11
  128. package/dist/esm/{link-CGURvKy1.js → link-BDCg-T_l.js} +5 -5
  129. package/dist/esm/{link-CGURvKy1.js.map → link-BDCg-T_l.js.map} +1 -1
  130. package/dist/esm/loader.js +3 -5
  131. package/dist/esm/{miscellaneous-BTlqwN5_.js → miscellaneous-DxE6a1mr.js} +75 -178
  132. package/dist/esm/miscellaneous-DxE6a1mr.js.map +1 -0
  133. package/dist/esm/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.js.map +1 -1
  134. package/dist/esm/peculiar-attribute-certificate-viewer_5.entry.js +30 -79
  135. package/dist/esm/peculiar-button-menu_3.entry.js +3 -5
  136. package/dist/esm/peculiar-certificate-decoder.entry.js +8 -10
  137. package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -1
  138. package/dist/esm/peculiar-certificate-viewer.entry.js +8 -10
  139. package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -1
  140. package/dist/esm/peculiar-certificates-viewer.entry.js +10 -24
  141. package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -1
  142. package/dist/esm/peculiar-text-hider.entry.js +3 -5
  143. package/dist/esm/peculiar.js +4 -6
  144. package/dist/esm/peculiar.js.map +1 -1
  145. package/dist/esm/{pkcs10_certificate_request-B5C1NYFc.js → pkcs10_certificate_request-Crr9FABo.js} +3 -3
  146. package/dist/{esm-es5/pkcs10_certificate_request-B5C1NYFc.js.map → esm/pkcs10_certificate_request-Crr9FABo.js.map} +1 -1
  147. package/dist/esm/{ssh_certificate-PCn0WXhQ.js → ssh_certificate-CmOVFH_Z.js} +93 -93
  148. package/dist/esm/ssh_certificate-CmOVFH_Z.js.map +1 -0
  149. package/dist/esm/{x509_certificate-BiAmXJ4S.js → x509_certificate-C2EVTspY.js} +4 -4
  150. package/dist/{esm-es5/x509_certificate-BiAmXJ4S.js.map → esm/x509_certificate-C2EVTspY.js.map} +1 -1
  151. package/dist/esm/{x509_crl-CCeoLLUZ.js → x509_crl-Bdnys_YT.js} +5 -5
  152. package/dist/{esm-es5/x509_crl-CCeoLLUZ.js.map → esm/x509_crl-Bdnys_YT.js.map} +1 -1
  153. package/dist/esm-es5/{actions-BOY2Tl0T.js → actions-CabuIstu.js} +3 -3
  154. package/dist/esm-es5/{actions-BOY2Tl0T.js.map → actions-CabuIstu.js.map} +1 -1
  155. package/dist/esm-es5/{arrow_top-DL0RWe4n.js → arrow_top-CWdnzNJA.js} +2 -2
  156. package/dist/{esm/arrow_top-DL0RWe4n.js.map → esm-es5/arrow_top-CWdnzNJA.js.map} +1 -1
  157. package/dist/esm-es5/{button-Bbh7MwG6.js → button-DoyFdU2L.js} +2 -2
  158. package/dist/{cjs/button-C8EWG_-r.js.map → esm-es5/button-DoyFdU2L.js.map} +1 -1
  159. package/dist/esm-es5/{cross-G84H_-QL.js → cross-B4NPVkar.js} +2 -2
  160. package/dist/{esm/cross-G84H_-QL.js.map → esm-es5/cross-B4NPVkar.js.map} +1 -1
  161. package/dist/esm-es5/{download-ykcxSgxU.js → download-C7Viw-3R.js} +2 -2
  162. package/dist/esm-es5/{download-ykcxSgxU.js.map → download-C7Viw-3R.js.map} +1 -1
  163. package/dist/esm-es5/{extension-DmlhftES.js → extension-xW03sQxn.js} +2 -2
  164. package/dist/esm-es5/extension-xW03sQxn.js.map +1 -0
  165. package/dist/esm-es5/index-B0tLzdJT.js +6 -0
  166. package/dist/esm-es5/index-B0tLzdJT.js.map +1 -0
  167. package/dist/esm-es5/index.js +1 -1
  168. package/dist/esm-es5/{link-CGURvKy1.js → link-BDCg-T_l.js} +3 -3
  169. package/dist/esm-es5/{link-CGURvKy1.js.map → link-BDCg-T_l.js.map} +1 -1
  170. package/dist/esm-es5/loader.js +2 -2
  171. package/dist/esm-es5/{miscellaneous-BTlqwN5_.js → miscellaneous-DxE6a1mr.js} +4 -4
  172. package/dist/esm-es5/miscellaneous-DxE6a1mr.js.map +1 -0
  173. package/dist/esm-es5/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.js.map +1 -1
  174. package/dist/esm-es5/peculiar-attribute-certificate-viewer_5.entry.js +4 -4
  175. package/dist/esm-es5/peculiar-attribute-certificate-viewer_5.entry.js.map +1 -1
  176. package/dist/esm-es5/peculiar-button-menu_3.entry.js +1 -1
  177. package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -1
  178. package/dist/esm-es5/peculiar-certificate-decoder.entry.js +2 -2
  179. package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -1
  180. package/dist/esm-es5/peculiar-certificate-viewer.entry.js +2 -2
  181. package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -1
  182. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +2 -2
  183. package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -1
  184. package/dist/esm-es5/peculiar-text-hider.entry.js +1 -1
  185. package/dist/esm-es5/peculiar.js +2 -2
  186. package/dist/esm-es5/peculiar.js.map +1 -1
  187. package/dist/esm-es5/{pkcs10_certificate_request-B5C1NYFc.js → pkcs10_certificate_request-Crr9FABo.js} +3 -3
  188. package/dist/{esm/pkcs10_certificate_request-B5C1NYFc.js.map → esm-es5/pkcs10_certificate_request-Crr9FABo.js.map} +1 -1
  189. package/dist/esm-es5/{ssh_certificate-PCn0WXhQ.js → ssh_certificate-CmOVFH_Z.js} +7 -7
  190. package/dist/esm-es5/ssh_certificate-CmOVFH_Z.js.map +1 -0
  191. package/dist/esm-es5/{x509_certificate-BiAmXJ4S.js → x509_certificate-C2EVTspY.js} +4 -4
  192. package/dist/{esm/x509_certificate-BiAmXJ4S.js.map → esm-es5/x509_certificate-C2EVTspY.js.map} +1 -1
  193. package/dist/esm-es5/{x509_crl-CCeoLLUZ.js → x509_crl-Bdnys_YT.js} +4 -4
  194. package/dist/{esm/x509_crl-CCeoLLUZ.js.map → esm-es5/x509_crl-Bdnys_YT.js.map} +1 -1
  195. package/dist/peculiar/index.esm.js +1 -1
  196. package/dist/peculiar/locales/en.json +0 -1
  197. package/dist/peculiar/p--UIbyTPo.system.js.map +1 -0
  198. package/dist/peculiar/p-16bd5fac.system.entry.js +153 -0
  199. package/dist/peculiar/p-16bd5fac.system.entry.js.map +1 -0
  200. package/dist/peculiar/{p-71eab586.entry.js → p-26e1e392.entry.js} +3 -3
  201. package/dist/peculiar/p-26e1e392.entry.js.map +1 -0
  202. package/dist/peculiar/{p-7273601a.entry.js → p-2c5ec624.entry.js} +2 -2
  203. package/dist/peculiar/p-2c5ec624.entry.js.map +1 -0
  204. package/dist/peculiar/{p-27ae6a3a.entry.js → p-4111bd62.entry.js} +2 -2
  205. package/dist/peculiar/p-4111bd62.entry.js.map +1 -0
  206. package/dist/peculiar/{p-46c17c8d.system.entry.js → p-4b510453.system.entry.js} +3 -3
  207. package/dist/peculiar/p-4b510453.system.entry.js.map +1 -0
  208. package/dist/peculiar/{p-83bfd8e5.system.entry.js → p-4fc81fd0.system.entry.js} +3 -3
  209. package/dist/peculiar/p-4fc81fd0.system.entry.js.map +1 -0
  210. package/dist/peculiar/p-51832de2.entry.js +152 -0
  211. package/dist/peculiar/p-51832de2.entry.js.map +1 -0
  212. package/dist/peculiar/{p-B4PdAFCr.system.js → p-AHlPpL1z.system.js} +2 -2
  213. package/dist/peculiar/{p-B4PdAFCr.system.js.map → p-AHlPpL1z.system.js.map} +1 -1
  214. package/dist/peculiar/p-B0tLzdJT.js +6 -0
  215. package/dist/peculiar/p-B0tLzdJT.js.map +1 -0
  216. package/dist/peculiar/{p-h7XP7otl.js → p-B4vvBwd6.js} +2 -2
  217. package/dist/peculiar/{p-h7XP7otl.js.map → p-B4vvBwd6.js.map} +1 -1
  218. package/dist/peculiar/{p-Db41gPxb.js → p-B7cL9SBA.js} +4 -4
  219. package/dist/peculiar/{p-Db41gPxb.js.map → p-B7cL9SBA.js.map} +1 -1
  220. package/dist/peculiar/{p-DanjeXNk.js → p-BAAnYCav.js} +3 -3
  221. package/dist/peculiar/{p-DanjeXNk.js.map → p-BAAnYCav.js.map} +1 -1
  222. package/dist/peculiar/{p-CHnDlTqM.js → p-BLjDwIXV.js} +3 -3
  223. package/dist/peculiar/{p-CHnDlTqM.js.map → p-BLjDwIXV.js.map} +1 -1
  224. package/dist/peculiar/{p-CutTi-2B.js → p-BNRN5kAu.js} +2 -2
  225. package/dist/peculiar/{p-CutTi-2B.js.map → p-BNRN5kAu.js.map} +1 -1
  226. package/dist/peculiar/{p-Bi5mjeeg.system.js → p-BX5m4Pk2.system.js} +2 -2
  227. package/dist/peculiar/{p-Bi5mjeeg.system.js.map → p-BX5m4Pk2.system.js.map} +1 -1
  228. package/dist/peculiar/{p-N3w4Sc5c.system.js.map → p-BdGJr6Nw.system.js.map} +1 -1
  229. package/dist/peculiar/{p-DPbpwYQ8.system.js → p-Bfl7RVFY.system.js} +4 -4
  230. package/dist/peculiar/{p-DPbpwYQ8.system.js.map → p-Bfl7RVFY.system.js.map} +1 -1
  231. package/dist/peculiar/{p-DnOLjFJP.js → p-BjREwt05.js} +43 -43
  232. package/dist/peculiar/p-BjREwt05.js.map +1 -0
  233. package/dist/peculiar/{p-BGASC3UX.system.js → p-BjfN0sUP.system.js} +3 -3
  234. package/dist/peculiar/p-BjfN0sUP.system.js.map +1 -0
  235. package/dist/peculiar/{p-DMZr5ztF.js → p-BrjKJZAs.js} +2 -2
  236. package/dist/peculiar/{p-DMZr5ztF.js.map → p-BrjKJZAs.js.map} +1 -1
  237. package/dist/peculiar/{p-CstRxc9v.js → p-BxiR02Uf.js} +4 -4
  238. package/dist/peculiar/{p-CstRxc9v.js.map → p-BxiR02Uf.js.map} +1 -1
  239. package/dist/peculiar/{p-ZT6tVIen.js → p-C-zA8CWJ.js} +2 -2
  240. package/dist/peculiar/{p-ZT6tVIen.js.map → p-C-zA8CWJ.js.map} +1 -1
  241. package/dist/peculiar/{p-Bknpl7EO.system.js → p-C9U3cZjb.system.js} +3 -3
  242. package/dist/peculiar/{p-Bknpl7EO.system.js.map → p-C9U3cZjb.system.js.map} +1 -1
  243. package/dist/peculiar/{p-B5GO6_Ut.system.js → p-CCPSoWEH.system.js} +43 -43
  244. package/dist/peculiar/p-CCPSoWEH.system.js.map +1 -0
  245. package/dist/peculiar/{p-B2FH4Pv2.system.js → p-CGipIfjs.system.js} +4 -4
  246. package/dist/peculiar/{p-B2FH4Pv2.system.js.map → p-CGipIfjs.system.js.map} +1 -1
  247. package/dist/peculiar/{p-DMDALRLP.system.js → p-CLcRtCZ9.system.js} +7 -7
  248. package/dist/peculiar/p-CLcRtCZ9.system.js.map +1 -0
  249. package/dist/peculiar/{p-CdS84qJs.system.js → p-CNRpL2vk.system.js} +2 -2
  250. package/dist/peculiar/{p-CdS84qJs.system.js.map → p-CNRpL2vk.system.js.map} +1 -1
  251. package/dist/peculiar/{p-JyD6URnB.js → p-CVqAvraM.js} +2 -2
  252. package/dist/peculiar/{p-JyD6URnB.js.map → p-CVqAvraM.js.map} +1 -1
  253. package/dist/peculiar/{p-D8xU284r.system.js → p-CWwlqwKM.system.js} +2 -2
  254. package/dist/peculiar/{p-D8xU284r.system.js.map → p-CWwlqwKM.system.js.map} +1 -1
  255. package/dist/peculiar/p-CbJUBy06.system.js +5 -0
  256. package/dist/peculiar/p-CbJUBy06.system.js.map +1 -0
  257. package/dist/peculiar/p-CfHXB_pJ.system.js.map +1 -0
  258. package/dist/peculiar/p-Ckf8xErP.system.js +12 -0
  259. package/dist/peculiar/p-Ckf8xErP.system.js.map +1 -0
  260. package/dist/peculiar/{p-PCn0WXhQ.js → p-CmOVFH_Z.js} +6 -6
  261. package/dist/peculiar/p-CmOVFH_Z.js.map +1 -0
  262. package/dist/peculiar/{p-CbJQZ9Hh.system.js.map → p-Cp79UjaU.system.js.map} +1 -1
  263. package/dist/peculiar/p-D4MqnJ9p.system.js.map +1 -0
  264. package/dist/peculiar/p-D5BlV4_w.system.js +6 -0
  265. package/dist/peculiar/p-D5BlV4_w.system.js.map +1 -0
  266. package/dist/peculiar/{p-eziSY5IJ.system.js.map → p-DOSHmuRc.system.js.map} +1 -1
  267. package/dist/peculiar/p-DXA1451q.js +12 -0
  268. package/dist/peculiar/p-DXA1451q.js.map +1 -0
  269. package/dist/peculiar/{p-SjVQtfgD.system.js → p-DberG072.system.js} +5 -5
  270. package/dist/peculiar/{p-SjVQtfgD.system.js.map → p-DberG072.system.js.map} +1 -1
  271. package/dist/peculiar/{p-de857304.system.entry.js → p-ae88bf01.system.entry.js} +2 -2
  272. package/dist/peculiar/p-ae88bf01.system.entry.js.map +1 -0
  273. package/dist/peculiar/{p-24861cf6.system.entry.js → p-c4bbd44c.system.entry.js} +3 -3
  274. package/dist/peculiar/p-c4bbd44c.system.entry.js.map +1 -0
  275. package/dist/peculiar/{p-9d9f24bd.entry.js → p-d212830c.entry.js} +2 -2
  276. package/dist/peculiar/p-d212830c.entry.js.map +1 -0
  277. package/dist/peculiar/{p-98219569.entry.js → p-e40e47be.entry.js} +2 -2
  278. package/dist/peculiar/p-e40e47be.entry.js.map +1 -0
  279. package/dist/peculiar/{p-607d08e8.system.entry.js → p-ef52478f.system.entry.js} +2 -2
  280. package/dist/peculiar/p-ef52478f.system.entry.js.map +1 -0
  281. package/dist/peculiar/p-qOxEa6Ap.system.js.map +1 -0
  282. package/dist/peculiar/{p-NnCM1ETy.system.js → p-vusQjz44.system.js} +2 -2
  283. package/dist/peculiar/{p-NnCM1ETy.system.js.map → p-vusQjz44.system.js.map} +1 -1
  284. package/dist/peculiar/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.esm.js.map +1 -1
  285. package/dist/peculiar/peculiar-certificate-decoder.entry.esm.js.map +1 -1
  286. package/dist/peculiar/peculiar-certificate-viewer.entry.esm.js.map +1 -1
  287. package/dist/peculiar/peculiar-certificates-viewer.entry.esm.js.map +1 -1
  288. package/dist/peculiar/peculiar.esm.js +1 -1
  289. package/dist/peculiar/peculiar.esm.js.map +1 -1
  290. package/dist/peculiar/peculiar.js +1 -1
  291. package/dist/types/crypto/ssh_certificate.d.ts +2 -2
  292. package/dist/types/interface.d.ts +86 -86
  293. package/dist/types/stencil-public-runtime.d.ts +49 -2
  294. package/dist/types/utils/download.d.ts +1 -1
  295. package/dist/types/utils/l10n.d.ts +0 -1
  296. package/hydrate/index.d.ts +2 -0
  297. package/hydrate/index.js +373 -502
  298. package/hydrate/index.mjs +373 -502
  299. package/package.json +4 -4
  300. package/dist/cjs/cross-3DqhA0G_.js +0 -52
  301. package/dist/cjs/download-DQP0KR4o.js +0 -24
  302. package/dist/cjs/extension-DTtJlxk8.js.map +0 -1
  303. package/dist/cjs/index-uHmGhObe.js.map +0 -1
  304. package/dist/cjs/miscellaneous-DCeacaAw.js.map +0 -1
  305. package/dist/cjs/peculiar-attribute-certificate-viewer_5.cjs.entry.js.map +0 -1
  306. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js.map +0 -1
  307. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +0 -1
  308. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +0 -1
  309. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +0 -1
  310. package/dist/cjs/peculiar-text-hider.cjs.entry.js.map +0 -1
  311. package/dist/cjs/ssh_certificate-D2q_p49O.js.map +0 -1
  312. package/dist/esm/cross-G84H_-QL.js +0 -48
  313. package/dist/esm/download-ykcxSgxU.js +0 -22
  314. package/dist/esm/extension-DmlhftES.js.map +0 -1
  315. package/dist/esm/index-CwgZaF40.js.map +0 -1
  316. package/dist/esm/miscellaneous-BTlqwN5_.js.map +0 -1
  317. package/dist/esm/peculiar-attribute-certificate-viewer_5.entry.js.map +0 -1
  318. package/dist/esm/peculiar-button-menu_3.entry.js.map +0 -1
  319. package/dist/esm/ssh_certificate-PCn0WXhQ.js.map +0 -1
  320. package/dist/esm-es5/extension-DmlhftES.js.map +0 -1
  321. package/dist/esm-es5/index-CwgZaF40.js +0 -6
  322. package/dist/esm-es5/index-CwgZaF40.js.map +0 -1
  323. package/dist/esm-es5/miscellaneous-BTlqwN5_.js.map +0 -1
  324. package/dist/esm-es5/ssh_certificate-PCn0WXhQ.js.map +0 -1
  325. package/dist/peculiar/p-24861cf6.system.entry.js.map +0 -1
  326. package/dist/peculiar/p-27ae6a3a.entry.js.map +0 -1
  327. package/dist/peculiar/p-46c17c8d.system.entry.js.map +0 -1
  328. package/dist/peculiar/p-607d08e8.system.entry.js.map +0 -1
  329. package/dist/peculiar/p-71cb31c6.entry.js +0 -152
  330. package/dist/peculiar/p-71cb31c6.entry.js.map +0 -1
  331. package/dist/peculiar/p-71eab586.entry.js.map +0 -1
  332. package/dist/peculiar/p-7273601a.entry.js.map +0 -1
  333. package/dist/peculiar/p-83bfd8e5.system.entry.js.map +0 -1
  334. package/dist/peculiar/p-98219569.entry.js.map +0 -1
  335. package/dist/peculiar/p-9MJeDspO.system.js.map +0 -1
  336. package/dist/peculiar/p-9d9f24bd.entry.js.map +0 -1
  337. package/dist/peculiar/p-AjXipXSl.system.js +0 -12
  338. package/dist/peculiar/p-AjXipXSl.system.js.map +0 -1
  339. package/dist/peculiar/p-B5GO6_Ut.system.js.map +0 -1
  340. package/dist/peculiar/p-B82-c-xr.system.js.map +0 -1
  341. package/dist/peculiar/p-BGASC3UX.system.js.map +0 -1
  342. package/dist/peculiar/p-BHpSDBz_.system.js.map +0 -1
  343. package/dist/peculiar/p-BwlcJAh0.js +0 -12
  344. package/dist/peculiar/p-BwlcJAh0.js.map +0 -1
  345. package/dist/peculiar/p-CSz5liuX.system.js.map +0 -1
  346. package/dist/peculiar/p-CwgZaF40.js +0 -6
  347. package/dist/peculiar/p-CwgZaF40.js.map +0 -1
  348. package/dist/peculiar/p-DKl0YViA.system.js +0 -6
  349. package/dist/peculiar/p-DKl0YViA.system.js.map +0 -1
  350. package/dist/peculiar/p-DMDALRLP.system.js.map +0 -1
  351. package/dist/peculiar/p-DnOLjFJP.js.map +0 -1
  352. package/dist/peculiar/p-PCn0WXhQ.js.map +0 -1
  353. package/dist/peculiar/p-cc01a2da.system.entry.js +0 -153
  354. package/dist/peculiar/p-cc01a2da.system.entry.js.map +0 -1
  355. package/dist/peculiar/p-dOkqMp-O.system.js +0 -5
  356. package/dist/peculiar/p-dOkqMp-O.system.js.map +0 -1
  357. package/dist/peculiar/p-de857304.system.entry.js.map +0 -1
@@ -6,9 +6,11 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
6
6
  const highlightWordsCss = ":host{display:inline}::slotted(mark){background-color:var(--pv-color-attention-tint-4)}";
7
7
 
8
8
  const HighlightWords = /*@__PURE__*/ proxyCustomElement(class HighlightWords extends HTMLElement {
9
- constructor() {
9
+ constructor(registerHost) {
10
10
  super();
11
- this.__registerHost();
11
+ if (registerHost !== false) {
12
+ this.__registerHost();
13
+ }
12
14
  this.__attachShadow();
13
15
  this.tag = 'mark';
14
16
  }
@@ -1 +1 @@
1
- {"file":"highlight-words.js","mappings":";;;;;AAAA,MAAM,iBA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/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 = '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}
1
+ {"file":"highlight-words.js","mappings":";;;;;AAAA,MAAM,iBAAiB,GAAG,yFAAyF;;MCiBtG,cAAc,iBAAAA,kBAAA,CAAA,MAAA,cAAA,SAAA,WAAA,CAAA;AAL3B,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;AAUU,QAAA,IAAG,CAAA,GAAA,GAAG,MAAM;AAqCrB;IAnCC,gBAAgB,GAAA;QACd,IAAI,CAAC,qBAAqB,EAAE;;IAG9B,kBAAkB,GAAA;QAChB,IAAI,CAAC,qBAAqB,EAAE;;IAG9B,qBAAqB,GAAA;AACnB,QAAA,MAAM,WAAW,GAAG,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;QAClE,IAAI,MAAM,GAAG,WAAW;AAExB,QAAA,IAAI,IAAI,CAAC,MAAM,EAAE;AACf,YAAA,MAAM,SAAS,GAAG,IAAI,MAAM,CAAC,CAAA,CAAA,EAAI,IAAI,CAAC,MAAM,CAAA,CAAA,CAAG,EAAE,IAAI,CAAC;AAEtD,YAAA,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,SAAS,EAAE,CAAA,CAAA,EAAI,IAAI,CAAC,GAAG,CAAQ,KAAA,EAAA,IAAI,CAAC,GAAG,CAAA,CAAA,CAAG,CAAC;;AAG1E,QAAA,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM;;AAG9B,IAAA,oBAAoB,CAAC,MAAc,EAAA;;AAEjC,QAAA,MAAM,SAAS,GAAG,IAAI,MAAM,CAAC,CAAA,IAAA,EAAO,IAAI,CAAC,GAAG,CAAA,CAAA,CAAG,EAAE,GAAG,CAAC;QAErD,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC;;IAGtC,MAAM,GAAA;QACJ,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACH;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement"],"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 = '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}
@@ -18,9 +18,7 @@ const BasicAttribute = (props, children) => {
18
18
  return ([
19
19
  h(RowValue, { name: "Name", value: getStringByOID(attribute.asn.type) }),
20
20
  children,
21
- h("tr", null,
22
- h("td", { colSpan: 2, class: "divider" },
23
- h("span", null))),
21
+ h("tr", null, h("td", { colSpan: 2, class: "divider" }, h("span", null))),
24
22
  ]);
25
23
  };
26
24
 
@@ -49,8 +47,7 @@ const NamePart = (props) => {
49
47
  */
50
48
  const NameAttribute = (props) => {
51
49
  const { attribute } = props;
52
- return (h(BasicAttribute, { attribute: attribute },
53
- h(NamePart, { name: attribute.value })));
50
+ return (h(BasicAttribute, { attribute: attribute }, h(NamePart, { name: attribute.value })));
54
51
  };
55
52
 
56
53
  /**
@@ -62,15 +59,7 @@ const NameAttribute = (props) => {
62
59
  */
63
60
  const ActivityDescriptionAttribute = (props) => {
64
61
  const { attribute } = props;
65
- return (h(BasicAttribute, { attribute: attribute },
66
- h(RowValue, { name: camelCaseToWords('codeAuthority'), value: "" }),
67
- h(TableRowTable, null,
68
- h(GeneralNamePart, { generalName: attribute.value.codeAuthority, getDNSNameLink: () => '', getIPAddressLink: () => '' })),
69
- h(RowValue, { name: camelCaseToWords('codeId'), value: "" }),
70
- h(TableRowTable, null,
71
- h(GeneralNamePart, { generalName: attribute.value.codeId, getDNSNameLink: () => '', getIPAddressLink: () => '' })),
72
- h(RowValue, { name: camelCaseToWords('shortName'), value: attribute.value.shortName }),
73
- h(RowValue, { name: camelCaseToWords('shortDescription'), value: attribute.value.shortDescription })));
62
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: camelCaseToWords('codeAuthority'), value: "" }), h(TableRowTable, null, h(GeneralNamePart, { generalName: attribute.value.codeAuthority, getDNSNameLink: () => '', getIPAddressLink: () => '' })), h(RowValue, { name: camelCaseToWords('codeId'), value: "" }), h(TableRowTable, null, h(GeneralNamePart, { generalName: attribute.value.codeId, getDNSNameLink: () => '', getIPAddressLink: () => '' })), h(RowValue, { name: camelCaseToWords('shortName'), value: attribute.value.shortName }), h(RowValue, { name: camelCaseToWords('shortDescription'), value: attribute.value.shortDescription })));
74
63
  };
75
64
 
76
65
  /**
@@ -82,18 +71,7 @@ const ActivityDescriptionAttribute = (props) => {
82
71
  */
83
72
  const WebGdprAttribute = (props) => {
84
73
  const { attribute } = props;
85
- return (h(BasicAttribute, { attribute: attribute },
86
- h(RowValue, { name: camelCaseToWords('assessmentAuthority'), value: "" }),
87
- h(TableRowTable, null,
88
- h(GeneralNamePart, { generalName: attribute.value.assessmentAuthority, getDNSNameLink: () => '', getIPAddressLink: () => '' })),
89
- h(RowValue, { name: camelCaseToWords('assessmentLocation'), value: "" }),
90
- h(TableRowTable, null,
91
- h(GeneralNamePart, { generalName: attribute.value.assessmentLocation, getDNSNameLink: () => '', getIPAddressLink: () => '' })),
92
- h(RowValue, { name: camelCaseToWords('assessmentRef'), value: "" }),
93
- h(TableRowTable, null,
94
- h(GeneralNamePart, { generalName: attribute.value.assessmentRef, getDNSNameLink: () => '', getIPAddressLink: () => '' })),
95
- h(RowValue, { name: camelCaseToWords('dataStorageTerritory'), value: attribute.value.dataStorageTerritory }),
96
- h(RowValue, { name: camelCaseToWords('description'), value: attribute.value.description })));
74
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: camelCaseToWords('assessmentAuthority'), value: "" }), h(TableRowTable, null, h(GeneralNamePart, { generalName: attribute.value.assessmentAuthority, getDNSNameLink: () => '', getIPAddressLink: () => '' })), h(RowValue, { name: camelCaseToWords('assessmentLocation'), value: "" }), h(TableRowTable, null, h(GeneralNamePart, { generalName: attribute.value.assessmentLocation, getDNSNameLink: () => '', getIPAddressLink: () => '' })), h(RowValue, { name: camelCaseToWords('assessmentRef'), value: "" }), h(TableRowTable, null, h(GeneralNamePart, { generalName: attribute.value.assessmentRef, getDNSNameLink: () => '', getIPAddressLink: () => '' })), h(RowValue, { name: camelCaseToWords('dataStorageTerritory'), value: attribute.value.dataStorageTerritory }), h(RowValue, { name: camelCaseToWords('description'), value: attribute.value.description })));
97
75
  };
98
76
 
99
77
  /**
@@ -106,8 +84,7 @@ const WebGdprAttribute = (props) => {
106
84
  const InsuranceValueAttribute = (props) => {
107
85
  const { attribute } = props;
108
86
  const value = `${attribute.value.base} * 10^${attribute.value.degree} ${attribute.value.location}`;
109
- return (h(BasicAttribute, { attribute: attribute },
110
- h(RowValue, { name: "Value", value: value })));
87
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: value })));
111
88
  };
112
89
 
113
90
  /**
@@ -145,8 +122,7 @@ const ValuationRankingAttribute = (props) => {
145
122
  getValueRank(attribute.value[keyName]),
146
123
  h("br", null),
147
124
  ]));
148
- return (h(BasicAttribute, { attribute: attribute },
149
- h(RowValue, { name: "Value", value: values })));
125
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: values })));
150
126
  };
151
127
 
152
128
  /**
@@ -158,8 +134,7 @@ const ValuationRankingAttribute = (props) => {
158
134
  */
159
135
  const AsStringAttribute = (props) => {
160
136
  const { attribute } = props;
161
- return (h(BasicAttribute, { attribute: attribute },
162
- h(RowValue, { name: "Value", value: attribute.value, monospace: true })));
137
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: attribute.value, monospace: true })));
163
138
  };
164
139
 
165
140
  /**
@@ -171,8 +146,7 @@ const AsStringAttribute = (props) => {
171
146
  */
172
147
  const UnstructuredNameAttribute = (props) => {
173
148
  const { attribute } = props;
174
- return (h(BasicAttribute, { attribute: attribute },
175
- h(RowValue, { name: "Value", value: attribute.value.utf8String })));
149
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: attribute.value.utf8String })));
176
150
  };
177
151
 
178
152
  /**
@@ -184,8 +158,7 @@ const UnstructuredNameAttribute = (props) => {
184
158
  */
185
159
  const ChallengePasswordAttribute = (props) => {
186
160
  const { attribute } = props;
187
- return (h(BasicAttribute, { attribute: attribute },
188
- h(RowValue, { name: "Value", value: attribute.value.toString() })));
161
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Value", value: attribute.value.toString() })));
189
162
  };
190
163
 
191
164
  /**
@@ -201,9 +174,7 @@ const ExtensionRequestAttribute = (props) => {
201
174
  if (attribute.value) {
202
175
  extensions = attribute.value.map((e) => new Extension(AsnConvert.serialize(e)));
203
176
  }
204
- return (h(BasicAttribute, { attribute: attribute },
205
- h(TableRowTable, null,
206
- h(Extensions, { extensions: extensions, getDNSNameLink: () => '', getIPAddressLink: () => '', getLEILink: () => '' }))));
177
+ return (h(BasicAttribute, { attribute: attribute }, h(TableRowTable, null, h(Extensions, { extensions: extensions, getDNSNameLink: () => '', getIPAddressLink: () => '', getLEILink: () => '' }))));
207
178
  };
208
179
 
209
180
  /**
@@ -218,16 +189,10 @@ const PrivateKeyPossessionStatementAttribute = (props) => {
218
189
  const certificateRaw = attribute.value.cert
219
190
  ? AsnConvert.serialize(attribute.value.cert)
220
191
  : null;
221
- return (h(BasicAttribute, { attribute: attribute },
222
- h(RowValue, { name: "Serial Number", value: buildExports.Convert.ToHex(attribute.value.signer.serialNumber), monospace: true }),
223
- h(RowValue, { name: "Issuer", value: "" }),
224
- h(TableRowTable, null,
225
- h(NamePart, { name: attribute.value.signer.issuer })),
226
- certificateRaw && [
227
- h(RowValue, { name: "Certificate", value: "" }),
228
- h(TableRowTable, null,
229
- h("peculiar-certificate-viewer", { certificate: buildExports.Convert.ToBase64(certificateRaw) })),
230
- ]));
192
+ return (h(BasicAttribute, { attribute: attribute }, h(RowValue, { name: "Serial Number", value: buildExports.Convert.ToHex(attribute.value.signer.serialNumber), monospace: true }), h(RowValue, { name: "Issuer", value: "" }), h(TableRowTable, null, h(NamePart, { name: attribute.value.signer.issuer })), certificateRaw && [
193
+ h(RowValue, { name: "Certificate", value: "" }),
194
+ h(TableRowTable, null, h("peculiar-certificate-viewer", { certificate: buildExports.Convert.ToBase64(certificateRaw) })),
195
+ ]));
231
196
  };
232
197
 
233
198
  /**
@@ -1 +1 @@
1
- {"file":"index2.js","mappings":";;;;;;;;AAAA;;;;;;AAMG;AAWI,MAAM,cAAc,GAA8C,CAAC,KAAK,EAAE,QAAQ,KAAI;AAC3F,IAAA,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK;AAE3B,IAAA,QAAQ;AACN,QAAA,CAAA,CAAC,QAAQ,EACP,EAAA,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EACzC,CAAA;QACF,QAAQ;AACR,QAAA,CAAA,CAAA,IAAA,EAAA,IAAA;AACE,YAAA,CAAA,CAAA,IAAA,EAAA,EAAI,OAAO,EAAE,CAAC,EAAE,KAAK,EAAC,SAAS,EAAA;AAC7B,gBAAA,CAAA,CAAA,MAAA,EAAA,IAAA,CAAQ,CACL,CACF;AACN,KAAA;AACH,CAAC;;AChCD;;;;;;AAMG;AAWH;AACO,MAAM,QAAQ,GAAwC,CAAC,KAAK,KAAW;AAC5E,IAAA,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK;IAEtB,IAAI,CAAC,IAAI,EAAE;AACT,QAAA,OAAO,IAAI;;IAGb,OAAO,IAAI,CAAC,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I,SAAS,CAAC,KAAK,YAAY,gBAAgB,EAAE;oBAC/C,QACE,EAAC,yBAAyB,EAAA,EACxB,SAAS,EAAE,SAAmD,EAC9D,CAAA;;AAIN,gBAAA,IAAI,SAAS,CAAC,KAAK,YAAY,gBAAgB,EAAE;oBAC/C,QACE,EAAC,yBAAyB,EAAA,EACxB,SAAS,EAAE,SAAmD,EAC9D,CAAA;;AAIN,gBAAA,IAAI,SAAS,CAAC,KAAK,YAAY,gBAAgB,EAAE;oBAC/C,QACE,EAAC,yBAAyB,EAAA,EACxB,SAAS,EAAE,SAAmD,EAC9D,CAAA;;AAIN,gBAAA,IAAI,SAAS,CAAC,KAAK,YAAY,iBAAiB,EAAE;oBAChD,QACE,EAAC,0BAA0B,EAAA,EACzB,SAAS,EAAE,SAAoD,EAC/D,CAAA;;AAIN,gBAAA,IAAI,SAAS,CAAC,KAAK,YAAY,6BAA6B,EAAE;oBAC5D,QACE,EAAC,sCAAsC,EAAA,EACrC,SAAS,EAAE,SAAgE,EAC3E,CAAA;;AAIN,gBAAA,IAAI,OAAO,SAAS,CAAC,KAAK,KAAK,QAAQ,EAAE;oBACvC,QACE,EAAC,iBAAiB,EAAA,EAChB,SAAS,EAAE,SAAyC,EACpD,CAAA;;gBAIN,QACE,EAAC,cAAc,EAAA,EACb,SAAS,EAAE,SAAS,EACpB,CAAA;;AAEJ,YAAA,OAAA,EAAA,EAAM;gBACN,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;AAE5D,gBAAA,OAAO,IAAI;;AAEf,SAAC,CAAC;AACH,KAAA;AACH;;;;","names":["Convert","Name"],"sources":["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/extension_request_attribute.tsx","src/components/certificate-details-parts/attributes/private_key_possession_statement_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 { h, FunctionalComponent } from '@stencil/core';\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';\nimport { OIDs } from '../../../constants/oids';\nimport { RowValue } from '../row';\n\ninterface INamePartProps {\n name: Name;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\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';\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';\nimport { Attribute } from '../../../crypto/attribute';\nimport { camelCaseToWords } from '../../../utils';\nimport { GeneralNamePart } from '../extensions/general_name_part';\nimport { RowValue, TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IActivityDescriptionAttributeProps {\n attribute: Attribute<ActivityDescription>;\n}\n\nexport const ActivityDescriptionAttribute:\nFunctionalComponent<IActivityDescriptionAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name={camelCaseToWords('codeAuthority')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.codeAuthority}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('codeId')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.codeId}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('shortName')}\n value={attribute.value.shortName}\n />\n <RowValue\n name={camelCaseToWords('shortDescription')}\n value={attribute.value.shortDescription}\n />\n </BasicAttribute>\n );\n};\n","/**\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';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { camelCaseToWords } from '../../../utils';\nimport { GeneralNamePart } from '../extensions/general_name_part';\nimport { RowValue, TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IWebGdprAttributeProps {\n attribute: Attribute<WebGDPR>;\n}\n\nexport const WebGdprAttribute:\nFunctionalComponent<IWebGdprAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name={camelCaseToWords('assessmentAuthority')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentAuthority}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('assessmentLocation')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentLocation}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('assessmentRef')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentRef}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('dataStorageTerritory')}\n value={attribute.value.dataStorageTerritory}\n />\n <RowValue\n name={camelCaseToWords('description')}\n value={attribute.value.description}\n />\n </BasicAttribute>\n );\n};\n","/**\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';\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';\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';\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 unknown as string[]}\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 { 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';\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';\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 { ExtensionRequest } from '@peculiar/asn1-pkcs9';\nimport { AsnConvert } from '@peculiar/asn1-schema';\nimport { Extension, TExtensionValue } from '../../../crypto/extension';\nimport { Attribute } from '../../../crypto/attribute';\nimport { Extensions } from '../../certificate-details-parts';\nimport { TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IExtensionRequestAttributeProps {\n attribute: Attribute<ExtensionRequest>;\n}\n\nexport const ExtensionRequestAttribute:\nFunctionalComponent<IExtensionRequestAttributeProps> = (props) => {\n const { attribute } = props;\n let extensions: Extension<TExtensionValue>[];\n\n if (attribute.value) {\n extensions = attribute.value.map((e) => new Extension(AsnConvert.serialize(e)));\n }\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <TableRowTable>\n <Extensions\n extensions={extensions}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n getLEILink={() => ''}\n />\n </TableRowTable>\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 { AsnConvert } from '@peculiar/asn1-schema';\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { PrivateKeyPossessionStatement } from '@peculiar/asn1-private-key-stmt';\nimport { Convert } from 'pvtsutils';\nimport { Attribute } from '../../../crypto/attribute';\nimport { RowValue, TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\nimport { NamePart } from './name_part';\n\ninterface IPrivateKeyPossessionStatementAttributeProps {\n attribute: Attribute<PrivateKeyPossessionStatement>;\n}\n\nexport const PrivateKeyPossessionStatementAttribute:\nFunctionalComponent<IPrivateKeyPossessionStatementAttributeProps> = (props) => {\n const { attribute } = props;\n const certificateRaw = attribute.value.cert\n ? AsnConvert.serialize(attribute.value.cert)\n : null;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Serial Number\"\n value={Convert.ToHex(attribute.value.signer.serialNumber)}\n monospace\n />\n <RowValue\n name=\"Issuer\"\n value=\"\"\n />\n <TableRowTable>\n <NamePart\n name={attribute.value.signer.issuer}\n />\n </TableRowTable>\n {certificateRaw && [\n <RowValue\n name=\"Certificate\"\n value=\"\"\n />,\n <TableRowTable>\n <peculiar-certificate-viewer\n certificate={Convert.ToBase64(certificateRaw)}\n />\n </TableRowTable>,\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 ExtensionRequest,\n} from '@peculiar/asn1-pkcs9';\nimport { PrivateKeyPossessionStatement } from '@peculiar/asn1-private-key-stmt';\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';\nimport { ExtensionRequestAttribute } from './extension_request_attribute';\nimport { PrivateKeyPossessionStatementAttribute } from './private_key_possession_statement_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 unknown as Attribute<Name>}\n />\n );\n }\n\n if (attribute.value instanceof ExtensionRequest) {\n return (\n <ExtensionRequestAttribute\n attribute={attribute as unknown as Attribute<ExtensionRequest>}\n />\n );\n }\n\n if (attribute.value instanceof ActivityDescription) {\n return (\n <ActivityDescriptionAttribute\n attribute={attribute as unknown as Attribute<ActivityDescription>}\n />\n );\n }\n\n if (attribute.value instanceof WebGDPR) {\n return (\n <WebGdprAttribute\n attribute={attribute as unknown as Attribute<WebGDPR>}\n />\n );\n }\n\n if (attribute.value instanceof InsuranceValue) {\n return (\n <InsuranceValueAttribute\n attribute={attribute as unknown as Attribute<InsuranceValue>}\n />\n );\n }\n\n if (attribute.value instanceof TypeRelationship) {\n return (\n <TypeRelationshipAttribute\n attribute={attribute as unknown as Attribute<TypeRelationship>}\n />\n );\n }\n\n if (attribute.value instanceof ValuationRanking) {\n return (\n <ValuationRankingAttribute\n attribute={attribute as unknown as Attribute<ValuationRanking>}\n />\n );\n }\n\n if (attribute.value instanceof UnstructuredName) {\n return (\n <UnstructuredNameAttribute\n attribute={attribute as unknown as Attribute<UnstructuredName>}\n />\n );\n }\n\n if (attribute.value instanceof ChallengePassword) {\n return (\n <ChallengePasswordAttribute\n attribute={attribute as unknown as Attribute<ChallengePassword>}\n />\n );\n }\n\n if (attribute.value instanceof PrivateKeyPossessionStatement) {\n return (\n <PrivateKeyPossessionStatementAttribute\n attribute={attribute as unknown as Attribute<PrivateKeyPossessionStatement>}\n />\n );\n }\n\n if (typeof attribute.value === 'string') {\n return (\n <AsStringAttribute\n attribute={attribute as unknown as Attribute<string>}\n />\n );\n }\n\n return (\n <BasicAttribute\n attribute={attribute}\n />\n );\n } catch {\n console.error('Error render attribute:', attribute.asn.type);\n\n return null;\n }\n }),\n ]);\n};\n"],"version":3}
1
+ {"file":"index2.js","mappings":";;;;;;;;AAAA;;;;;;AAMG;AAWI,MAAM,cAAc,GAA8C,CAAC,KAAK,EAAE,QAAQ,KAAI;AAC3F,IAAA,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK;AAE3B,IAAA,QAAQ;AACN,QAAA,CAAA,CAAC,QAAQ,EACP,EAAA,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EACzC,CAAA;QACF,QAAQ;QACR,CAAA,CAAA,IAAA,EAAA,IAAA,EACE,CAAA,CAAA,IAAA,EAAA,EAAI,OAAO,EAAE,CAAC,EAAE,KAAK,EAAC,SAAS,EAAA,EAC7B,CAAA,CAAA,MAAA,EAAA,IAAA,CAAQ,CACL,CACF;AACN,KAAA;AACH,CAAC;;AChCD;;;;;;AAMG;AAWH;AAC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CAAA;;AAIN,gBAAA,IAAI,SAAS,CAAC,KAAK,YAAY,gBAAgB,EAAE;AAC/C,oBAAA,QACE,EAAC,yBAAyB,EAAA,EACxB,SAAS,EAAE,SAAmD,EAC9D,CAAA;;AAIN,gBAAA,IAAI,SAAS,CAAC,KAAK,YAAY,gBAAgB,EAAE;AAC/C,oBAAA,QACE,EAAC,yBAAyB,EAAA,EACxB,SAAS,EAAE,SAAmD,EAC9D,CAAA;;AAIN,gBAAA,IAAI,SAAS,CAAC,KAAK,YAAY,gBAAgB,EAAE;AAC/C,oBAAA,QACE,EAAC,yBAAyB,EAAA,EACxB,SAAS,EAAE,SAAmD,EAC9D,CAAA;;AAIN,gBAAA,IAAI,SAAS,CAAC,KAAK,YAAY,iBAAiB,EAAE;AAChD,oBAAA,QACE,EAAC,0BAA0B,EAAA,EACzB,SAAS,EAAE,SAAoD,EAC/D,CAAA;;AAIN,gBAAA,IAAI,SAAS,CAAC,KAAK,YAAY,6BAA6B,EAAE;AAC5D,oBAAA,QACE,EAAC,sCAAsC,EAAA,EACrC,SAAS,EAAE,SAAgE,EAC3E,CAAA;;AAIN,gBAAA,IAAI,OAAO,SAAS,CAAC,KAAK,KAAK,QAAQ,EAAE;AACvC,oBAAA,QACE,EAAC,iBAAiB,EAAA,EAChB,SAAS,EAAE,SAAyC,EACpD,CAAA;;AAIN,gBAAA,QACE,EAAC,cAAc,EAAA,EACb,SAAS,EAAE,SAAS,EACpB,CAAA;;YAEJ,OAAA,EAAA,EAAM;gBACN,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;AAE5D,gBAAA,OAAO,IAAI;;AAEf,SAAC,CAAC;AACH,KAAA;AACH;;;;","names":["Convert","Name"],"sources":["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/extension_request_attribute.tsx","src/components/certificate-details-parts/attributes/private_key_possession_statement_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 { h, FunctionalComponent } from '@stencil/core';\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';\nimport { OIDs } from '../../../constants/oids';\nimport { RowValue } from '../row';\n\ninterface INamePartProps {\n name: Name;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\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';\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';\nimport { Attribute } from '../../../crypto/attribute';\nimport { camelCaseToWords } from '../../../utils';\nimport { GeneralNamePart } from '../extensions/general_name_part';\nimport { RowValue, TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IActivityDescriptionAttributeProps {\n attribute: Attribute<ActivityDescription>;\n}\n\nexport const ActivityDescriptionAttribute:\nFunctionalComponent<IActivityDescriptionAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name={camelCaseToWords('codeAuthority')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.codeAuthority}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('codeId')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.codeId}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('shortName')}\n value={attribute.value.shortName}\n />\n <RowValue\n name={camelCaseToWords('shortDescription')}\n value={attribute.value.shortDescription}\n />\n </BasicAttribute>\n );\n};\n","/**\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';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { camelCaseToWords } from '../../../utils';\nimport { GeneralNamePart } from '../extensions/general_name_part';\nimport { RowValue, TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IWebGdprAttributeProps {\n attribute: Attribute<WebGDPR>;\n}\n\nexport const WebGdprAttribute:\nFunctionalComponent<IWebGdprAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name={camelCaseToWords('assessmentAuthority')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentAuthority}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('assessmentLocation')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentLocation}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('assessmentRef')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentRef}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('dataStorageTerritory')}\n value={attribute.value.dataStorageTerritory}\n />\n <RowValue\n name={camelCaseToWords('description')}\n value={attribute.value.description}\n />\n </BasicAttribute>\n );\n};\n","/**\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';\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';\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';\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 unknown as string[]}\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 { 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';\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';\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 { ExtensionRequest } from '@peculiar/asn1-pkcs9';\nimport { AsnConvert } from '@peculiar/asn1-schema';\nimport { Extension, TExtensionValue } from '../../../crypto/extension';\nimport { Attribute } from '../../../crypto/attribute';\nimport { Extensions } from '../../certificate-details-parts';\nimport { TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IExtensionRequestAttributeProps {\n attribute: Attribute<ExtensionRequest>;\n}\n\nexport const ExtensionRequestAttribute:\nFunctionalComponent<IExtensionRequestAttributeProps> = (props) => {\n const { attribute } = props;\n let extensions: Extension<TExtensionValue>[];\n\n if (attribute.value) {\n extensions = attribute.value.map((e) => new Extension(AsnConvert.serialize(e)));\n }\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <TableRowTable>\n <Extensions\n extensions={extensions}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n getLEILink={() => ''}\n />\n </TableRowTable>\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 { AsnConvert } from '@peculiar/asn1-schema';\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { PrivateKeyPossessionStatement } from '@peculiar/asn1-private-key-stmt';\nimport { Convert } from 'pvtsutils';\nimport { Attribute } from '../../../crypto/attribute';\nimport { RowValue, TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\nimport { NamePart } from './name_part';\n\ninterface IPrivateKeyPossessionStatementAttributeProps {\n attribute: Attribute<PrivateKeyPossessionStatement>;\n}\n\nexport const PrivateKeyPossessionStatementAttribute:\nFunctionalComponent<IPrivateKeyPossessionStatementAttributeProps> = (props) => {\n const { attribute } = props;\n const certificateRaw = attribute.value.cert\n ? AsnConvert.serialize(attribute.value.cert)\n : null;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Serial Number\"\n value={Convert.ToHex(attribute.value.signer.serialNumber)}\n monospace\n />\n <RowValue\n name=\"Issuer\"\n value=\"\"\n />\n <TableRowTable>\n <NamePart\n name={attribute.value.signer.issuer}\n />\n </TableRowTable>\n {certificateRaw && [\n <RowValue\n name=\"Certificate\"\n value=\"\"\n />,\n <TableRowTable>\n <peculiar-certificate-viewer\n certificate={Convert.ToBase64(certificateRaw)}\n />\n </TableRowTable>,\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 ExtensionRequest,\n} from '@peculiar/asn1-pkcs9';\nimport { PrivateKeyPossessionStatement } from '@peculiar/asn1-private-key-stmt';\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';\nimport { ExtensionRequestAttribute } from './extension_request_attribute';\nimport { PrivateKeyPossessionStatementAttribute } from './private_key_possession_statement_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 unknown as Attribute<Name>}\n />\n );\n }\n\n if (attribute.value instanceof ExtensionRequest) {\n return (\n <ExtensionRequestAttribute\n attribute={attribute as unknown as Attribute<ExtensionRequest>}\n />\n );\n }\n\n if (attribute.value instanceof ActivityDescription) {\n return (\n <ActivityDescriptionAttribute\n attribute={attribute as unknown as Attribute<ActivityDescription>}\n />\n );\n }\n\n if (attribute.value instanceof WebGDPR) {\n return (\n <WebGdprAttribute\n attribute={attribute as unknown as Attribute<WebGDPR>}\n />\n );\n }\n\n if (attribute.value instanceof InsuranceValue) {\n return (\n <InsuranceValueAttribute\n attribute={attribute as unknown as Attribute<InsuranceValue>}\n />\n );\n }\n\n if (attribute.value instanceof TypeRelationship) {\n return (\n <TypeRelationshipAttribute\n attribute={attribute as unknown as Attribute<TypeRelationship>}\n />\n );\n }\n\n if (attribute.value instanceof ValuationRanking) {\n return (\n <ValuationRankingAttribute\n attribute={attribute as unknown as Attribute<ValuationRanking>}\n />\n );\n }\n\n if (attribute.value instanceof UnstructuredName) {\n return (\n <UnstructuredNameAttribute\n attribute={attribute as unknown as Attribute<UnstructuredName>}\n />\n );\n }\n\n if (attribute.value instanceof ChallengePassword) {\n return (\n <ChallengePasswordAttribute\n attribute={attribute as unknown as Attribute<ChallengePassword>}\n />\n );\n }\n\n if (attribute.value instanceof PrivateKeyPossessionStatement) {\n return (\n <PrivateKeyPossessionStatementAttribute\n attribute={attribute as unknown as Attribute<PrivateKeyPossessionStatement>}\n />\n );\n }\n\n if (typeof attribute.value === 'string') {\n return (\n <AsStringAttribute\n attribute={attribute as unknown as Attribute<string>}\n />\n );\n }\n\n return (\n <BasicAttribute\n attribute={attribute}\n />\n );\n } catch {\n console.error('Error render attribute:', attribute.asn.type);\n\n return null;\n }\n }),\n ]);\n};\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"issuer_name.js","mappings":";;;;;;;AAAA;;;;;;AAMG;AAaU,MAAA,UAAU,GAA2C,CAAC,KAAK,KAAI;AAC1E,IAAA,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,KAAK;IACpC,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;IAE1C,OAAO;AACL,QAAA,CAAA,CAAC,QAAQ,EAAA,EACP,KAAK,EAAE;mBAED,CAAA,CAAC,IAAI,EAAA,EACH,IAAI,EAAE,YAAY,EAAA,EAEjB,KAAK,CACD;kBAET,KAAK,EACT,CAAA;AACF,QAAA,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MACT,CAAA,CAAC,QAAQ,EAAA,EACP,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,EACtB,KAAK,EAAE,CAAC,CAAC,KAAK,EAAA,CACd,CACH,CAAC;KACH;AACH;;;;","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';\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 ? (\n <Link\n href={issuerDnLink}\n >\n {title}\n </Link>\n )\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}
1
+ {"file":"issuer_name.js","mappings":";;;;;;;AAAA;;;;;;AAMG;AAaU,MAAA,UAAU,GAA2C,CAAC,KAAK,KAAI;AAC1E,IAAA,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,KAAK;IACpC,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;IAE1C,OAAO;AACL,QAAA,CAAA,CAAC,QAAQ,EAAA,EACP,KAAK,EAAE;AACL,mBACI,CAAA,CAAC,IAAI,EAAA,EACH,IAAI,EAAE,YAAY,EAAA,EAEjB,KAAK,CACD;kBAET,KAAK,EACT,CAAA;AACF,QAAA,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MACT,CAAA,CAAC,QAAQ,EAAA,EACP,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,EACtB,KAAK,EAAE,CAAC,CAAC,KAAK,EAAA,CACd,CACH,CAAC;KACH;AACH;;;;","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';\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 ? (\n <Link\n href={issuerDnLink}\n >\n {title}\n </Link>\n )\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}