@peculiar/certificates-viewer 4.0.1 → 4.1.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 (242) hide show
  1. package/README.md +1 -1
  2. package/components/actions.js +21 -0
  3. package/components/actions.js.map +1 -0
  4. package/components/arrow_top.js +1 -1
  5. package/components/attribute-certificate-viewer.js +7 -7
  6. package/components/attribute-certificate-viewer.js.map +1 -1
  7. package/components/button-menu.js +2 -14
  8. package/components/button-menu.js.map +1 -1
  9. package/components/certificate-viewer.js +5 -5
  10. package/components/certificate-viewer.js.map +1 -1
  11. package/components/crl-viewer.js +6 -6
  12. package/components/crl-viewer.js.map +1 -1
  13. package/components/cross.js +47 -0
  14. package/components/cross.js.map +1 -0
  15. package/components/csr-viewer.js +4 -4
  16. package/components/csr-viewer.js.map +1 -1
  17. package/components/download.js +404 -374
  18. package/components/download.js.map +1 -1
  19. package/components/index.js +5 -1
  20. package/components/index.js.map +1 -1
  21. package/components/index2.js +2 -2
  22. package/components/index2.js.map +1 -1
  23. package/components/issuer_name.js +2 -2
  24. package/components/miscellaneous.js +648 -245
  25. package/components/miscellaneous.js.map +1 -1
  26. package/components/peculiar-certificates-viewer.js +4 -42
  27. package/components/peculiar-certificates-viewer.js.map +1 -1
  28. package/components/peculiar-text-hider.js +1 -1
  29. package/components/subject_name.js +2 -2
  30. package/components/subject_name.js.map +1 -1
  31. package/dist/cjs/actions-19013d4a.js +23 -0
  32. package/dist/cjs/actions-19013d4a.js.map +1 -0
  33. package/dist/cjs/{certification_request-c0cafa72.js → certification_request-bf416170.js} +553 -214
  34. package/dist/cjs/certification_request-bf416170.js.map +1 -0
  35. package/dist/cjs/{crl-b4322166.js → crl-d9591b95.js} +14 -14
  36. package/dist/cjs/{crl-b4322166.js.map → crl-d9591b95.js.map} +1 -1
  37. package/dist/cjs/cross-9872c473.js +51 -0
  38. package/dist/cjs/cross-9872c473.js.map +1 -0
  39. package/dist/cjs/{download-972dda8a.js → download-0fa5b33c.js} +377 -377
  40. package/dist/cjs/download-0fa5b33c.js.map +1 -0
  41. package/dist/cjs/index.cjs.js +18 -1
  42. package/dist/cjs/index.cjs.js.map +1 -1
  43. package/dist/cjs/link-6aea0be4.js +25 -0
  44. package/dist/cjs/link-6aea0be4.js.map +1 -0
  45. package/dist/cjs/{miscellaneous-806a04a5.js → miscellaneous-6e800553.js} +114 -33
  46. package/dist/cjs/miscellaneous-6e800553.js.map +1 -0
  47. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +9 -8
  48. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js.map +1 -1
  49. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +2 -14
  50. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js.map +1 -1
  51. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +4 -4
  52. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +5 -4
  53. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -1
  54. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +9 -47
  55. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -1
  56. package/dist/cjs/{x509_certificate-989b1435.js → x509_certificate-53feebd3.js} +7 -7
  57. package/dist/cjs/{x509_certificate-989b1435.js.map → x509_certificate-53feebd3.js.map} +1 -1
  58. package/dist/collection/components/certificate-details-parts/extensions/index.js +5 -0
  59. package/dist/collection/components/certificate-details-parts/extensions/index.js.map +1 -1
  60. package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js +80 -0
  61. package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js.map +1 -0
  62. package/dist/collection/constants/oids.js +1 -0
  63. package/dist/collection/constants/oids.js.map +1 -1
  64. package/dist/collection/crypto/extension.js +4 -0
  65. package/dist/collection/crypto/extension.js.map +1 -1
  66. package/dist/collection/index.js +4 -0
  67. package/dist/collection/index.js.map +1 -1
  68. package/dist/collection/utils/camel_case_to_words.js +15 -0
  69. package/dist/collection/utils/camel_case_to_words.js.map +1 -0
  70. package/dist/collection/utils/index.js +1 -0
  71. package/dist/collection/utils/index.js.map +1 -1
  72. package/dist/esm/actions-8d745b2a.js +21 -0
  73. package/dist/esm/actions-8d745b2a.js.map +1 -0
  74. package/dist/esm/{arrow_top-efd3a56d.js → arrow_top-fc298828.js} +2 -2
  75. package/dist/esm/{arrow_top-efd3a56d.js.map → arrow_top-fc298828.js.map} +1 -1
  76. package/dist/esm/{certification_request-5cadde9f.js → certification_request-c9dc8e9c.js} +545 -209
  77. package/dist/esm/certification_request-c9dc8e9c.js.map +1 -0
  78. package/dist/esm/{crl-11670c3e.js → crl-70e85374.js} +14 -14
  79. package/dist/esm/{crl-11670c3e.js.map → crl-70e85374.js.map} +1 -1
  80. package/dist/esm/cross-9ec9a759.js +47 -0
  81. package/dist/esm/cross-9ec9a759.js.map +1 -0
  82. package/dist/esm/{download-57c5bf8f.js → download-aacb6eff.js} +375 -375
  83. package/dist/esm/download-aacb6eff.js.map +1 -0
  84. package/dist/esm/index.js +8 -1
  85. package/dist/esm/index.js.map +1 -1
  86. package/dist/esm/link-ad24c3be.js +23 -0
  87. package/dist/esm/link-ad24c3be.js.map +1 -0
  88. package/dist/esm/{miscellaneous-1d4e8b41.js → miscellaneous-0763f98e.js} +108 -27
  89. package/dist/esm/miscellaneous-0763f98e.js.map +1 -0
  90. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +9 -8
  91. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
  92. package/dist/esm/peculiar-button-menu_3.entry.js +2 -14
  93. package/dist/esm/peculiar-button-menu_3.entry.js.map +1 -1
  94. package/dist/esm/peculiar-certificate-decoder.entry.js +4 -4
  95. package/dist/esm/peculiar-certificate-viewer.entry.js +5 -4
  96. package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -1
  97. package/dist/esm/peculiar-certificates-viewer.entry.js +5 -43
  98. package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -1
  99. package/dist/esm/peculiar-text-hider.entry.js +1 -1
  100. package/dist/esm/{x509_certificate-dfae6999.js → x509_certificate-8cf268d1.js} +7 -7
  101. package/dist/esm/{x509_certificate-dfae6999.js.map → x509_certificate-8cf268d1.js.map} +1 -1
  102. package/dist/esm-es5/actions-8d745b2a.js +12 -0
  103. package/dist/esm-es5/actions-8d745b2a.js.map +1 -0
  104. package/dist/esm-es5/{arrow_top-efd3a56d.js → arrow_top-fc298828.js} +2 -2
  105. package/dist/esm-es5/certification_request-c9dc8e9c.js +97 -0
  106. package/dist/esm-es5/certification_request-c9dc8e9c.js.map +1 -0
  107. package/dist/esm-es5/{crl-11670c3e.js → crl-70e85374.js} +6 -6
  108. package/dist/esm-es5/{crl-11670c3e.js.map → crl-70e85374.js.map} +1 -1
  109. package/dist/esm-es5/cross-9ec9a759.js +26 -0
  110. package/dist/esm-es5/cross-9ec9a759.js.map +1 -0
  111. package/dist/esm-es5/download-aacb6eff.js +43 -0
  112. package/dist/esm-es5/download-aacb6eff.js.map +1 -0
  113. package/dist/esm-es5/index.js +1 -1
  114. package/dist/esm-es5/link-ad24c3be.js +12 -0
  115. package/dist/esm-es5/link-ad24c3be.js.map +1 -0
  116. package/dist/esm-es5/{miscellaneous-1d4e8b41.js → miscellaneous-0763f98e.js} +58 -51
  117. package/dist/esm-es5/miscellaneous-0763f98e.js.map +1 -0
  118. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js +3 -3
  119. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
  120. package/dist/esm-es5/peculiar-button-menu_3.entry.js +1 -8
  121. package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -1
  122. package/dist/esm-es5/peculiar-certificate-decoder.entry.js +1 -1
  123. package/dist/esm-es5/peculiar-certificate-viewer.entry.js +1 -1
  124. package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -1
  125. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +2 -23
  126. package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -1
  127. package/dist/esm-es5/peculiar-text-hider.entry.js +1 -1
  128. package/dist/esm-es5/x509_certificate-8cf268d1.js +12 -0
  129. package/dist/esm-es5/{x509_certificate-dfae6999.js.map → x509_certificate-8cf268d1.js.map} +1 -1
  130. package/dist/peculiar/index.esm.js +1 -1
  131. package/dist/peculiar/p-025b3cfb.entry.js +5 -0
  132. package/dist/peculiar/{p-fd4b9a50.entry.js.map → p-025b3cfb.entry.js.map} +1 -1
  133. package/dist/peculiar/p-0bd7c6bc.system.entry.js +13 -0
  134. package/dist/peculiar/p-0bd7c6bc.system.entry.js.map +1 -0
  135. package/dist/peculiar/{p-709994c1.js → p-0fc2e2b4.js} +2 -2
  136. package/dist/peculiar/p-10d2d400.system.js +34 -0
  137. package/dist/peculiar/{p-6667fe6e.system.js.map → p-10d2d400.system.js.map} +1 -1
  138. package/dist/peculiar/p-14f281b0.system.js +43 -0
  139. package/dist/peculiar/p-14f281b0.system.js.map +1 -0
  140. package/dist/peculiar/p-15cb92b5.system.js +97 -0
  141. package/dist/peculiar/p-15cb92b5.system.js.map +1 -0
  142. package/dist/peculiar/p-1ceb0fe3.js +12 -0
  143. package/dist/peculiar/p-1ceb0fe3.js.map +1 -0
  144. package/dist/peculiar/p-1ef997ee.js +97 -0
  145. package/dist/peculiar/p-1ef997ee.js.map +1 -0
  146. package/dist/peculiar/{p-e39de121.system.entry.js → p-24050d82.system.entry.js} +2 -2
  147. package/dist/peculiar/p-2f48fe70.entry.js +12 -0
  148. package/dist/peculiar/p-2f48fe70.entry.js.map +1 -0
  149. package/dist/peculiar/{p-0bdcdbf7.system.js → p-31b60224.system.js} +59 -52
  150. package/dist/peculiar/p-31b60224.system.js.map +1 -0
  151. package/dist/peculiar/p-33196289.entry.js +5 -0
  152. package/dist/peculiar/{p-90459cec.entry.js.map → p-33196289.entry.js.map} +1 -1
  153. package/dist/peculiar/p-370cee20.js +26 -0
  154. package/dist/peculiar/p-370cee20.js.map +1 -0
  155. package/dist/peculiar/{p-7ed7cd97.system.entry.js → p-4ab9673f.system.entry.js} +4 -4
  156. package/dist/peculiar/{p-7ed7cd97.system.entry.js.map → p-4ab9673f.system.entry.js.map} +1 -1
  157. package/dist/peculiar/{p-8748391f.system.entry.js → p-5151cb6f.system.entry.js} +2 -2
  158. package/dist/peculiar/p-53784f15.system.entry.js +5 -0
  159. package/dist/peculiar/p-53784f15.system.entry.js.map +1 -0
  160. package/dist/peculiar/p-542412ae.js +33 -0
  161. package/dist/peculiar/{p-43eb3721.js.map → p-542412ae.js.map} +1 -1
  162. package/dist/peculiar/p-59e5ac12.js +43 -0
  163. package/dist/peculiar/p-59e5ac12.js.map +1 -0
  164. package/dist/peculiar/p-5ab007e9.entry.js +5 -0
  165. package/dist/peculiar/p-5ab007e9.entry.js.map +1 -0
  166. package/dist/peculiar/p-5e49b881.system.entry.js +5 -0
  167. package/dist/peculiar/{p-26981468.system.entry.js.map → p-5e49b881.system.entry.js.map} +1 -1
  168. package/dist/peculiar/p-6cb88fd6.system.js +13 -0
  169. package/dist/peculiar/p-6cb88fd6.system.js.map +1 -0
  170. package/dist/peculiar/p-72f53d81.js +12 -0
  171. package/dist/peculiar/{p-6e79b9c8.js.map → p-72f53d81.js.map} +1 -1
  172. package/dist/peculiar/p-80832207.system.js +1 -1
  173. package/dist/peculiar/p-94a453d7.js +12 -0
  174. package/dist/peculiar/p-94a453d7.js.map +1 -0
  175. package/dist/peculiar/{p-f3d85a5f.entry.js → p-9c91dd68.entry.js} +5 -5
  176. package/dist/peculiar/{p-f3d85a5f.entry.js.map → p-9c91dd68.entry.js.map} +1 -1
  177. package/dist/peculiar/p-a3eeb94b.system.js +5 -0
  178. package/dist/peculiar/p-b313be9e.system.js +13 -0
  179. package/dist/peculiar/p-b313be9e.system.js.map +1 -0
  180. package/dist/peculiar/{p-daf23673.system.js → p-c99507d4.system.js} +3 -3
  181. package/dist/peculiar/p-ca02a823.js +362 -0
  182. package/dist/peculiar/p-ca02a823.js.map +1 -0
  183. package/dist/peculiar/p-cfca7dae.system.js +13 -0
  184. package/dist/peculiar/{p-31586b23.system.js.map → p-cfca7dae.system.js.map} +1 -1
  185. package/dist/peculiar/p-ddae2f8e.system.js +27 -0
  186. package/dist/peculiar/p-ddae2f8e.system.js.map +1 -0
  187. package/dist/peculiar/{p-882e1281.entry.js → p-e5b18cd1.entry.js} +2 -2
  188. package/dist/peculiar/peculiar.esm.js +1 -1
  189. package/dist/types/components/certificate-details-parts/extensions/key_description_extension.d.ts +15 -0
  190. package/dist/types/constants/oids.d.ts +1 -0
  191. package/dist/types/crypto/extension.d.ts +2 -1
  192. package/dist/types/index.d.ts +4 -0
  193. package/dist/types/utils/camel_case_to_words.d.ts +8 -0
  194. package/dist/types/utils/index.d.ts +1 -0
  195. package/hydrate/index.js +1039 -609
  196. package/package.json +22 -21
  197. package/dist/cjs/certification_request-c0cafa72.js.map +0 -1
  198. package/dist/cjs/download-972dda8a.js.map +0 -1
  199. package/dist/cjs/miscellaneous-806a04a5.js.map +0 -1
  200. package/dist/esm/certification_request-5cadde9f.js.map +0 -1
  201. package/dist/esm/download-57c5bf8f.js.map +0 -1
  202. package/dist/esm/miscellaneous-1d4e8b41.js.map +0 -1
  203. package/dist/esm-es5/certification_request-5cadde9f.js +0 -97
  204. package/dist/esm-es5/certification_request-5cadde9f.js.map +0 -1
  205. package/dist/esm-es5/download-57c5bf8f.js +0 -19
  206. package/dist/esm-es5/download-57c5bf8f.js.map +0 -1
  207. package/dist/esm-es5/miscellaneous-1d4e8b41.js.map +0 -1
  208. package/dist/esm-es5/x509_certificate-dfae6999.js +0 -12
  209. package/dist/peculiar/p-0bdcdbf7.system.js.map +0 -1
  210. package/dist/peculiar/p-23555789.system.entry.js +0 -34
  211. package/dist/peculiar/p-23555789.system.entry.js.map +0 -1
  212. package/dist/peculiar/p-26981468.system.entry.js +0 -5
  213. package/dist/peculiar/p-31586b23.system.js +0 -13
  214. package/dist/peculiar/p-43eb3721.js +0 -33
  215. package/dist/peculiar/p-5823e6e8.entry.js +0 -12
  216. package/dist/peculiar/p-5823e6e8.entry.js.map +0 -1
  217. package/dist/peculiar/p-596836a7.entry.js +0 -33
  218. package/dist/peculiar/p-596836a7.entry.js.map +0 -1
  219. package/dist/peculiar/p-6667fe6e.system.js +0 -34
  220. package/dist/peculiar/p-6e79b9c8.js +0 -12
  221. package/dist/peculiar/p-74c241e7.js +0 -97
  222. package/dist/peculiar/p-74c241e7.js.map +0 -1
  223. package/dist/peculiar/p-90459cec.entry.js +0 -5
  224. package/dist/peculiar/p-97688065.js +0 -355
  225. package/dist/peculiar/p-97688065.js.map +0 -1
  226. package/dist/peculiar/p-a053c132.js +0 -19
  227. package/dist/peculiar/p-a053c132.js.map +0 -1
  228. package/dist/peculiar/p-ae9189f6.system.js +0 -19
  229. package/dist/peculiar/p-ae9189f6.system.js.map +0 -1
  230. package/dist/peculiar/p-bd485115.system.entry.js +0 -13
  231. package/dist/peculiar/p-bd485115.system.entry.js.map +0 -1
  232. package/dist/peculiar/p-c0a298fd.system.js +0 -97
  233. package/dist/peculiar/p-c0a298fd.system.js.map +0 -1
  234. package/dist/peculiar/p-e1960173.system.js +0 -5
  235. package/dist/peculiar/p-fd4b9a50.entry.js +0 -5
  236. /package/dist/esm-es5/{arrow_top-efd3a56d.js.map → arrow_top-fc298828.js.map} +0 -0
  237. /package/dist/peculiar/{p-709994c1.js.map → p-0fc2e2b4.js.map} +0 -0
  238. /package/dist/peculiar/{p-e39de121.system.entry.js.map → p-24050d82.system.entry.js.map} +0 -0
  239. /package/dist/peculiar/{p-8748391f.system.entry.js.map → p-5151cb6f.system.entry.js.map} +0 -0
  240. /package/dist/peculiar/{p-e1960173.system.js.map → p-a3eeb94b.system.js.map} +0 -0
  241. /package/dist/peculiar/{p-daf23673.system.js.map → p-c99507d4.system.js.map} +0 -0
  242. /package/dist/peculiar/{p-882e1281.entry.js.map → p-e5b18cd1.entry.js.map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AAK,EAAE,CAAC,GAAW,EAAE,IAAY;IAC/B,kBAAkB,CAChBA,aAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EACvB,IAAI,EACJ,KAAK,EACL,4BAA4B,CAC7B,CAAC;GACH;CACF,CAAC;AAEY,YAAG,GAAG;EAClB,KAAK,EAAE,CAAC,GAAW,EAAE,IAAY;IAC/B,kBAAkB,CAChBA,aAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EACvB,IAAI,EACJ,KAAK,EACL,oBAAoB,CACrB,CAAC;GACH;EAED,KAAK,EAAE,CAAC,GAAW,EAAE,IAAY;IAC/B,kBAAkB,CAChBA,aAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EACvB,IAAI,EACJ,KAAK,EACL,oBAAoB,CACrB,CAAC;GACH;CACF,CAAC;AAEY,YAAG,GAAG;EAClB,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}
1
+ {"file":"download.js","mappings":";;;;;;AAAA;;;;;;;AAQA;;;;;;;;;;SAWgB,kBA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UAAU,CAAC,GAAG,CAAC,EACvB,IAAI,EACJ,KAAK,EACL,oBAAoB,CACrB,CAAC;GACH;CACF,CAAC;AAEY,YAAG,GAAG;EAClB,KAAK,EAAE,CAAC,GAAW,EAAE,IAAY;IAC/B,kBAAkB,CAChBA,SAAO,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,SAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EACvB,IAAI,EACJ,KAAK,EACL,sBAAsB,CACvB,CAAC;GACH;CACF;;AC3FH;;;;;;;MAiBa,IAAI,GAAmC,CAAC,KAAK,EAAE,QAAQ;EAClE,MAAM,EACJ,IAAI,EACJ,OAAO,GACR,GAAG,KAAK,CAAC;EAEV,QACE,EAAC,UAAU,IACT,SAAS,EAAC,GAAG,EACb,OAAO,EAAE,OAAO,EAChB,KAAK,EAAC,WAAW;;IAEjB,IAAI,EAAE,IAAI,EACV,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,IAExB,QAAQ,CACE,EACb;AACJ;;ACpCA;;;;;;;MAWa,YAAY,GAA+C,CAAC,KAAK;EAC5E,MAAM,EAAE,KAAK,GAAG,WAAW,EAAE,GAAG,KAAK,CAAC;EAEtC,QACE,WACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,MAAM;IAEX,YACE,IAAI,EAAE,kBAAkB,KAAK,GAAG,EAChC,CAAC,EAAC,2WAA2W,GAC7W,CACE,EACN;AACJ;;;;","names":["Convert"],"sources":["src/utils/download_from_buffer.ts","../../node_modules/pvtsutils/build/index.js","src/utils/download.ts","src/components/link/link.tsx","src/components/icons/download.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\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\nconst ARRAY_BUFFER_NAME = \"[object ArrayBuffer]\";\nclass BufferSourceConverter {\n static isArrayBuffer(data) {\n return Object.prototype.toString.call(data) === ARRAY_BUFFER_NAME;\n }\n static toArrayBuffer(data) {\n if (this.isArrayBuffer(data)) {\n return data;\n }\n if (data.byteLength === data.buffer.byteLength) {\n return data.buffer;\n }\n if (data.byteOffset === 0 && data.byteLength === data.buffer.byteLength) {\n return data.buffer;\n }\n return this.toUint8Array(data.buffer)\n .slice(data.byteOffset, data.byteOffset + data.byteLength)\n .buffer;\n }\n static toUint8Array(data) {\n return this.toView(data, Uint8Array);\n }\n static toView(data, type) {\n if (data.constructor === type) {\n return data;\n }\n if (this.isArrayBuffer(data)) {\n return new type(data);\n }\n if (this.isArrayBufferView(data)) {\n return new type(data.buffer, data.byteOffset, data.byteLength);\n }\n throw new TypeError(\"The provided value is not of type '(ArrayBuffer or ArrayBufferView)'\");\n }\n static isBufferSource(data) {\n return this.isArrayBufferView(data)\n || this.isArrayBuffer(data);\n }\n static isArrayBufferView(data) {\n return ArrayBuffer.isView(data)\n || (data && this.isArrayBuffer(data.buffer));\n }\n static isEqual(a, b) {\n const aView = BufferSourceConverter.toUint8Array(a);\n const bView = BufferSourceConverter.toUint8Array(b);\n if (aView.length !== bView.byteLength) {\n return false;\n }\n for (let i = 0; i < aView.length; i++) {\n if (aView[i] !== bView[i]) {\n return false;\n }\n }\n return true;\n }\n static concat(...args) {\n let buffers;\n if (Array.isArray(args[0]) && !(args[1] instanceof Function)) {\n buffers = args[0];\n }\n else if (Array.isArray(args[0]) && args[1] instanceof Function) {\n buffers = args[0];\n }\n else {\n if (args[args.length - 1] instanceof Function) {\n buffers = args.slice(0, args.length - 1);\n }\n else {\n buffers = args;\n }\n }\n let size = 0;\n for (const buffer of buffers) {\n size += buffer.byteLength;\n }\n const res = new Uint8Array(size);\n let offset = 0;\n for (const buffer of buffers) {\n const view = this.toUint8Array(buffer);\n res.set(view, offset);\n offset += view.length;\n }\n if (args[args.length - 1] instanceof Function) {\n return this.toView(res, args[args.length - 1]);\n }\n return res.buffer;\n }\n}\n\nconst STRING_TYPE = \"string\";\nconst HEX_REGEX = /^[0-9a-f]+$/i;\nconst BASE64_REGEX = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;\nconst BASE64URL_REGEX = /^[a-zA-Z0-9-_]+$/;\nclass Utf8Converter {\n static fromString(text) {\n const s = unescape(encodeURIComponent(text));\n const uintArray = new Uint8Array(s.length);\n for (let i = 0; i < s.length; i++) {\n uintArray[i] = s.charCodeAt(i);\n }\n return uintArray.buffer;\n }\n static toString(buffer) {\n const buf = BufferSourceConverter.toUint8Array(buffer);\n let encodedString = \"\";\n for (let i = 0; i < buf.length; i++) {\n encodedString += String.fromCharCode(buf[i]);\n }\n const decodedString = decodeURIComponent(escape(encodedString));\n return decodedString;\n }\n}\nclass Utf16Converter {\n static toString(buffer, littleEndian = false) {\n const arrayBuffer = BufferSourceConverter.toArrayBuffer(buffer);\n const dataView = new DataView(arrayBuffer);\n let res = \"\";\n for (let i = 0; i < arrayBuffer.byteLength; i += 2) {\n const code = dataView.getUint16(i, littleEndian);\n res += String.fromCharCode(code);\n }\n return res;\n }\n static fromString(text, littleEndian = false) {\n const res = new ArrayBuffer(text.length * 2);\n const dataView = new DataView(res);\n for (let i = 0; i < text.length; i++) {\n dataView.setUint16(i * 2, text.charCodeAt(i), littleEndian);\n }\n return res;\n }\n}\nclass Convert {\n static isHex(data) {\n return typeof data === STRING_TYPE\n && HEX_REGEX.test(data);\n }\n static isBase64(data) {\n return typeof data === STRING_TYPE\n && BASE64_REGEX.test(data);\n }\n static isBase64Url(data) {\n return typeof data === STRING_TYPE\n && BASE64URL_REGEX.test(data);\n }\n static ToString(buffer, enc = \"utf8\") {\n const buf = BufferSourceConverter.toUint8Array(buffer);\n switch (enc.toLowerCase()) {\n case \"utf8\":\n return this.ToUtf8String(buf);\n case \"binary\":\n return this.ToBinary(buf);\n case \"hex\":\n return this.ToHex(buf);\n case \"base64\":\n return this.ToBase64(buf);\n case \"base64url\":\n return this.ToBase64Url(buf);\n case \"utf16le\":\n return Utf16Converter.toString(buf, true);\n case \"utf16\":\n case \"utf16be\":\n return Utf16Converter.toString(buf);\n default:\n throw new Error(`Unknown type of encoding '${enc}'`);\n }\n }\n static FromString(str, enc = \"utf8\") {\n if (!str) {\n return new ArrayBuffer(0);\n }\n switch (enc.toLowerCase()) {\n case \"utf8\":\n return this.FromUtf8String(str);\n case \"binary\":\n return this.FromBinary(str);\n case \"hex\":\n return this.FromHex(str);\n case \"base64\":\n return this.FromBase64(str);\n case \"base64url\":\n return this.FromBase64Url(str);\n case \"utf16le\":\n return Utf16Converter.fromString(str, true);\n case \"utf16\":\n case \"utf16be\":\n return Utf16Converter.fromString(str);\n default:\n throw new Error(`Unknown type of encoding '${enc}'`);\n }\n }\n static ToBase64(buffer) {\n const buf = BufferSourceConverter.toUint8Array(buffer);\n if (typeof btoa !== \"undefined\") {\n const binary = this.ToString(buf, \"binary\");\n return btoa(binary);\n }\n else {\n return Buffer.from(buf).toString(\"base64\");\n }\n }\n static FromBase64(base64) {\n const formatted = this.formatString(base64);\n if (!formatted) {\n return new ArrayBuffer(0);\n }\n if (!Convert.isBase64(formatted)) {\n throw new TypeError(\"Argument 'base64Text' is not Base64 encoded\");\n }\n if (typeof atob !== \"undefined\") {\n return this.FromBinary(atob(formatted));\n }\n else {\n return new Uint8Array(Buffer.from(formatted, \"base64\")).buffer;\n }\n }\n static FromBase64Url(base64url) {\n const formatted = this.formatString(base64url);\n if (!formatted) {\n return new ArrayBuffer(0);\n }\n if (!Convert.isBase64Url(formatted)) {\n throw new TypeError(\"Argument 'base64url' is not Base64Url encoded\");\n }\n return this.FromBase64(this.Base64Padding(formatted.replace(/\\-/g, \"+\").replace(/\\_/g, \"/\")));\n }\n static ToBase64Url(data) {\n return this.ToBase64(data).replace(/\\+/g, \"-\").replace(/\\//g, \"_\").replace(/\\=/g, \"\");\n }\n static FromUtf8String(text, encoding = Convert.DEFAULT_UTF8_ENCODING) {\n switch (encoding) {\n case \"ascii\":\n return this.FromBinary(text);\n case \"utf8\":\n return Utf8Converter.fromString(text);\n case \"utf16\":\n case \"utf16be\":\n return Utf16Converter.fromString(text);\n case \"utf16le\":\n case \"usc2\":\n return Utf16Converter.fromString(text, true);\n default:\n throw new Error(`Unknown type of encoding '${encoding}'`);\n }\n }\n static ToUtf8String(buffer, encoding = Convert.DEFAULT_UTF8_ENCODING) {\n switch (encoding) {\n case \"ascii\":\n return this.ToBinary(buffer);\n case \"utf8\":\n return Utf8Converter.toString(buffer);\n case \"utf16\":\n case \"utf16be\":\n return Utf16Converter.toString(buffer);\n case \"utf16le\":\n case \"usc2\":\n return Utf16Converter.toString(buffer, true);\n default:\n throw new Error(`Unknown type of encoding '${encoding}'`);\n }\n }\n static FromBinary(text) {\n const stringLength = text.length;\n const resultView = new Uint8Array(stringLength);\n for (let i = 0; i < stringLength; i++) {\n resultView[i] = text.charCodeAt(i);\n }\n return resultView.buffer;\n }\n static ToBinary(buffer) {\n const buf = BufferSourceConverter.toUint8Array(buffer);\n let res = \"\";\n for (let i = 0; i < buf.length; i++) {\n res += String.fromCharCode(buf[i]);\n }\n return res;\n }\n static ToHex(buffer) {\n const buf = BufferSourceConverter.toUint8Array(buffer);\n let result = \"\";\n const len = buf.length;\n for (let i = 0; i < len; i++) {\n const byte = buf[i];\n if (byte < 16) {\n result += \"0\";\n }\n result += byte.toString(16);\n }\n return result;\n }\n static FromHex(hexString) {\n let formatted = this.formatString(hexString);\n if (!formatted) {\n return new ArrayBuffer(0);\n }\n if (!Convert.isHex(formatted)) {\n throw new TypeError(\"Argument 'hexString' is not HEX encoded\");\n }\n if (formatted.length % 2) {\n formatted = `0${formatted}`;\n }\n const res = new Uint8Array(formatted.length / 2);\n for (let i = 0; i < formatted.length; i = i + 2) {\n const c = formatted.slice(i, i + 2);\n res[i / 2] = parseInt(c, 16);\n }\n return res.buffer;\n }\n static ToUtf16String(buffer, littleEndian = false) {\n return Utf16Converter.toString(buffer, littleEndian);\n }\n static FromUtf16String(text, littleEndian = false) {\n return Utf16Converter.fromString(text, littleEndian);\n }\n static Base64Padding(base64) {\n const padCount = 4 - (base64.length % 4);\n if (padCount < 4) {\n for (let i = 0; i < padCount; i++) {\n base64 += \"=\";\n }\n }\n return base64;\n }\n static formatString(data) {\n return (data === null || data === void 0 ? void 0 : data.replace(/[\\n\\r\\t ]/g, \"\")) || \"\";\n }\n}\nConvert.DEFAULT_UTF8_ENCODING = \"utf8\";\n\nfunction assign(target, ...sources) {\n const res = arguments[0];\n for (let i = 1; i < arguments.length; i++) {\n const obj = arguments[i];\n for (const prop in obj) {\n res[prop] = obj[prop];\n }\n }\n return res;\n}\nfunction combine(...buf) {\n const totalByteLength = buf.map((item) => item.byteLength).reduce((prev, cur) => prev + cur);\n const res = new Uint8Array(totalByteLength);\n let currentPos = 0;\n buf.map((item) => new Uint8Array(item)).forEach((arr) => {\n for (const item2 of arr) {\n res[currentPos++] = item2;\n }\n });\n return res.buffer;\n}\nfunction isEqual(bytes1, bytes2) {\n if (!(bytes1 && bytes2)) {\n return false;\n }\n if (bytes1.byteLength !== bytes2.byteLength) {\n return false;\n }\n const b1 = new Uint8Array(bytes1);\n const b2 = new Uint8Array(bytes2);\n for (let i = 0; i < bytes1.byteLength; i++) {\n if (b1[i] !== b2[i]) {\n return false;\n }\n }\n return true;\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","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h } from '@stencil/core';\nimport type { TypographyType } from '../../interface';\nimport { Typography } from '../typography';\n\ninterface LinkProps {\n href: string;\n variant?: TypographyType;\n}\n\nexport const Link: FunctionalComponent<LinkProps> = (props, children) => {\n const {\n href,\n variant,\n } = props;\n\n return (\n <Typography\n component=\"a\"\n variant={variant}\n color=\"secondary\"\n // @ts-ignore\n href={href}\n target=\"_blank\"\n rel=\"noreferrer noopener\"\n >\n {children}\n </Typography>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h } from '@stencil/core';\nimport type { ColorType } from '../../interface';\n\nexport const DownloadIcon: FunctionalComponent<{ color?: ColorType }> = (props) => {\n const { color = 'secondary' } = props;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"30\"\n fill=\"none\"\n >\n <path\n fill={`var(--pv-color-${color})`}\n d=\"M21 12h-2c-.6 0-1 .4-1 1s.4 1 1 1h2c.6 0 1 .4 1 1v7c0 .6-.4 1-1 1H9c-.6 0-1-.4-1-1v-7c0-.6.4-1 1-1h2c.6 0 1-.4 1-1s-.4-1-1-1H9c-1.7 0-3 1.3-3 3v7c0 1.7 1.3 3 3 3h12c1.7 0 3-1.3 3-3v-7c0-1.7-1.3-3-3-3Zm-9.7 5.7 3 3c.2.2.4.3.7.3.3 0 .5-.1.7-.3l3-3c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L16 17.6V6c0-.6-.4-1-1-1s-1 .4-1 1v11.6l-1.3-1.3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4Z\"\n />\n </svg>\n );\n};\n"],"version":3}
@@ -2,6 +2,10 @@
2
2
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
3
  */
4
4
  export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
5
- export { D as Download, d as downloadFromBuffer } from './download.js';
5
+ export { D as Download, a as DownloadIcon, L as Link, d as downloadFromBuffer } from './download.js';
6
+ export { B as Button, T as Typography } from './button.js';
7
+ export { C as CrossIcon, D as DetailsIcon, L as LinkIcon } from './cross.js';
8
+ export { A as ActionsIcon } from './actions.js';
9
+ export { A as ArrowBottomIcon, a as ArrowTopIcon } from './arrow_top.js';
6
10
 
7
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"file":"index.js","mappings":";;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
1
+ {"file":"index.js","mappings":";;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
3
  */
4
- import { b as build } from './download.js';
4
+ import { C as Convert_1 } from './download.js';
5
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
6
  import { h } from '@stencil/core/internal/client';
7
7
 
@@ -60,7 +60,7 @@ class Attribute extends AsnData {
60
60
  break;
61
61
  }
62
62
  default:
63
- this.value = build.Convert.ToHex(asnExtnValue);
63
+ this.value = Convert_1.ToHex(asnExtnValue);
64
64
  }
65
65
  }
66
66
  }
@@ -1 +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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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}
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,KAAK,kBAAkB;QACrB,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,YAAY,EAAE,eAAe,CAAM,CAAC;QACjE,MAAM;MACR,KAAK,8BAA8B;QACjC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,YAA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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}
@@ -2,8 +2,8 @@
2
2
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
3
  */
4
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';
5
+ import { l as l10n, R as RowTitle, f as RowValue } from './miscellaneous.js';
6
+ import { L as Link } from './download.js';
7
7
 
8
8
  /**
9
9
  * @license