@peculiar/certificates-viewer 3.5.0 → 3.7.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 (191) hide show
  1. package/dist/cjs/{certification_request-ea440617.js → certification_request-00bbfbc5.js} +6714 -6604
  2. package/dist/cjs/{crl-fd60d923.js → crl-de4e196b.js} +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{public_key-14290c77.js → miscellaneous-30c4aded.js} +185 -169
  5. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +87 -90
  6. package/dist/cjs/{peculiar-certificate-summary_3.cjs.entry.js → peculiar-button-split_4.cjs.entry.js} +35 -0
  7. package/dist/cjs/peculiar-button.cjs.entry.js +40 -0
  8. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +3 -3
  9. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +5 -5
  10. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +2 -2
  11. package/dist/cjs/peculiar-link.cjs.entry.js +29 -0
  12. package/dist/cjs/peculiar-text-hider.cjs.entry.js +33 -0
  13. package/dist/cjs/peculiar-typography.cjs.entry.js +38 -0
  14. package/dist/cjs/peculiar.cjs.js +1 -1
  15. package/dist/cjs/{x509_certificate-262bac06.js → x509_certificate-2af9b990.js} +18 -4
  16. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +1 -8
  17. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/basic_attribute.js +1 -1
  18. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/basic_extension.js +1 -2
  19. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/biometric_syntax_extension.js +1 -1
  20. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_policies_extension.js +1 -1
  21. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/extended_key_usage_extension.js +1 -1
  22. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/general_name_part.js +1 -1
  23. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/info_access_syntax_extension.js +1 -1
  24. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/logotype_extension.js +1 -1
  25. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/policy_mappings_extension.js +1 -1
  26. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/qc_statements_extension.js +1 -1
  27. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_directory_attributes_extension.js +1 -1
  28. package/dist/collection/components/{attribute-certificate-viewer → certificate-details-parts}/holder.js +3 -4
  29. package/dist/collection/components/certificate-details-parts/index.js +15 -0
  30. package/dist/collection/components/{attribute-certificate-viewer → certificate-details-parts}/issuer.js +2 -2
  31. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/public_key.js +14 -9
  32. package/dist/collection/components/{crl-viewer → certificate-details-parts}/revoked_certificates.js +3 -7
  33. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/row.js +3 -0
  34. package/dist/collection/components/certificate-details-parts/signature.js +31 -0
  35. package/dist/collection/components/certificate-viewer/certificate-viewer.css +4 -0
  36. package/dist/collection/components/certificate-viewer/certificate-viewer.js +1 -8
  37. package/dist/collection/components/crl-viewer/crl-viewer.js +1 -7
  38. package/dist/collection/components/csr-viewer/csr-viewer.js +1 -8
  39. package/dist/collection/constants/oids.js +10 -0
  40. package/dist/collection/crypto/x509_certificate.js +18 -3
  41. package/dist/collection/{components/certificate-viewer → utils}/get_string_by_oid.js +1 -1
  42. package/dist/collection/utils/index.js +1 -0
  43. package/dist/esm/{certification_request-0ecd0af1.js → certification_request-8cc9d070.js} +6713 -6605
  44. package/dist/esm/{crl-c09357a9.js → crl-f43a95b7.js} +1 -1
  45. package/dist/esm/loader.js +1 -1
  46. package/dist/esm/{public_key-e6d12f27.js → miscellaneous-b74d9eae.js} +185 -170
  47. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +54 -57
  48. package/dist/esm/{peculiar-certificate-summary_3.entry.js → peculiar-button-split_4.entry.js} +35 -1
  49. package/dist/esm/peculiar-button.entry.js +36 -0
  50. package/dist/esm/peculiar-certificate-decoder.entry.js +3 -3
  51. package/dist/esm/peculiar-certificate-viewer.entry.js +4 -4
  52. package/dist/esm/peculiar-certificates-viewer.entry.js +2 -2
  53. package/dist/esm/peculiar-link.entry.js +25 -0
  54. package/dist/esm/peculiar-text-hider.entry.js +29 -0
  55. package/dist/esm/peculiar-typography.entry.js +34 -0
  56. package/dist/esm/peculiar.js +1 -1
  57. package/dist/esm/{x509_certificate-59d7a03c.js → x509_certificate-0fdd28aa.js} +18 -4
  58. package/dist/peculiar/p-05337212.entry.js +18 -0
  59. package/dist/peculiar/p-0868020d.entry.js +4 -0
  60. package/dist/peculiar/{p-1d6d0160.entry.js → p-167fd2db.entry.js} +1 -1
  61. package/dist/peculiar/p-45336b4f.js +69 -0
  62. package/dist/peculiar/{p-e7d81a43.entry.js → p-4e9318fb.entry.js} +1 -1
  63. package/dist/peculiar/p-57b89412.entry.js +4 -0
  64. package/dist/peculiar/p-610b85e3.entry.js +4 -0
  65. package/dist/peculiar/p-6d37c8b5.entry.js +4 -0
  66. package/dist/peculiar/p-893659f4.entry.js +4 -0
  67. package/dist/peculiar/p-918aeee4.entry.js +4 -0
  68. package/dist/peculiar/p-c72f8e8f.js +79 -0
  69. package/dist/peculiar/{p-7321a8d6.js → p-ea9a6317.js} +3 -3
  70. package/dist/peculiar/p-ec8787ed.js +11 -0
  71. package/dist/peculiar/peculiar.esm.js +1 -1
  72. package/dist/types/components/certificate-details-parts/index.d.ts +12 -0
  73. package/dist/types/components/{certificate-viewer → certificate-details-parts}/row.d.ts +1 -0
  74. package/dist/types/constants/oids.d.ts +8 -0
  75. package/dist/types/crypto/x509_certificate.d.ts +6 -1
  76. package/dist/types/utils/index.d.ts +1 -0
  77. package/package.json +20 -19
  78. package/dist/cjs/peculiar-button_5.cjs.entry.js +0 -148
  79. package/dist/collection/components/certificate-viewer/signature.js +0 -26
  80. package/dist/esm/peculiar-button_5.entry.js +0 -140
  81. package/dist/peculiar/p-1b11aa24.js +0 -63
  82. package/dist/peculiar/p-37c38f22.entry.js +0 -4
  83. package/dist/peculiar/p-3a4556ef.js +0 -87
  84. package/dist/peculiar/p-7a31bffb.entry.js +0 -26
  85. package/dist/peculiar/p-870c3592.entry.js +0 -4
  86. package/dist/peculiar/p-c9f01b83.js +0 -11
  87. package/dist/peculiar/p-dafae164.entry.js +0 -4
  88. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/activity_description_attribute.js +1 -1
  89. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/as_string_attribute.js +1 -1
  90. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/challenge_password_attribute.js +1 -1
  91. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/index.js +0 -0
  92. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/insurance_value_attribute.js +1 -1
  93. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/name_attribute.js +0 -0
  94. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/name_part.js +0 -0
  95. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/type_relationship_attribute.js +1 -1
  96. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/unstructured_name_attribute.js +1 -1
  97. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/valuation_ranking_attribute.js +1 -1
  98. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/web_gdpr_attribute.js +1 -1
  99. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/basic_information.js +0 -0
  100. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/archive_rev_info_extension.js +0 -0
  101. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/as_string_extension.js +0 -0
  102. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/attribute_value.js +0 -0
  103. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/authority_key_identifier_extension.js +0 -0
  104. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/basic_constraints_extension.js +0 -0
  105. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/ca_version_extension.js +0 -0
  106. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_template_extension.js +0 -0
  107. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_transparency_extension.js +0 -0
  108. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_distribution_points_extension.js +0 -0
  109. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_number_extension.js +0 -0
  110. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_reason_extension.js +0 -0
  111. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/enroll_cert_type_extension.js +0 -0
  112. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/entrust_version_info_extension.js +0 -0
  113. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/index.js +0 -0
  114. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/issuing_distribution_point_extension.js +0 -0
  115. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/key_usage_extension.js +0 -0
  116. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/lei_extension.js +0 -0
  117. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/lei_role_extennsion.js +0 -0
  118. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/name_constraints_extension.js +0 -0
  119. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_cert_type_extension.js +0 -0
  120. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_comment_extension.js +0 -0
  121. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/policy_constraints_extension.js +0 -0
  122. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/private_key_usage_period_extension.js +0 -0
  123. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_alternative_name_extension.js +0 -0
  124. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_key_identifier_extension.js +0 -0
  125. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/timestamp_extension.js +0 -0
  126. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/tn_auth_list_extension.js +0 -0
  127. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/issuer_name.js +0 -0
  128. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/miscellaneous.js +0 -0
  129. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/subject_name.js +0 -0
  130. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/thumbprints.js +0 -0
  131. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/activity_description_attribute.d.ts +0 -0
  132. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/as_string_attribute.d.ts +0 -0
  133. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/basic_attribute.d.ts +0 -0
  134. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/challenge_password_attribute.d.ts +0 -0
  135. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/index.d.ts +0 -0
  136. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/insurance_value_attribute.d.ts +0 -0
  137. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/name_attribute.d.ts +0 -0
  138. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/name_part.d.ts +0 -0
  139. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/type_relationship_attribute.d.ts +0 -0
  140. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/unstructured_name_attribute.d.ts +0 -0
  141. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/valuation_ranking_attribute.d.ts +0 -0
  142. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/web_gdpr_attribute.d.ts +0 -0
  143. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/basic_information.d.ts +0 -0
  144. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/archive_rev_info_extension.d.ts +0 -0
  145. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/as_string_extension.d.ts +0 -0
  146. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/attribute_value.d.ts +0 -0
  147. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/authority_key_identifier_extension.d.ts +0 -0
  148. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/basic_constraints_extension.d.ts +0 -0
  149. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/basic_extension.d.ts +0 -0
  150. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/biometric_syntax_extension.d.ts +0 -0
  151. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/ca_version_extension.d.ts +0 -0
  152. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_policies_extension.d.ts +0 -0
  153. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_template_extension.d.ts +0 -0
  154. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_transparency_extension.d.ts +0 -0
  155. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_distribution_points_extension.d.ts +0 -0
  156. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_number_extension.d.ts +0 -0
  157. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_reason_extension.d.ts +0 -0
  158. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/enroll_cert_type_extension.d.ts +0 -0
  159. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/entrust_version_info_extension.d.ts +0 -0
  160. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/extended_key_usage_extension.d.ts +0 -0
  161. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/general_name_part.d.ts +0 -0
  162. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/index.d.ts +0 -0
  163. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/info_access_syntax_extension.d.ts +0 -0
  164. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/issuing_distribution_point_extension.d.ts +0 -0
  165. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/key_usage_extension.d.ts +0 -0
  166. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/lei_extension.d.ts +0 -0
  167. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/lei_role_extennsion.d.ts +0 -0
  168. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/logotype_extension.d.ts +0 -0
  169. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/name_constraints_extension.d.ts +0 -0
  170. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_cert_type_extension.d.ts +0 -0
  171. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_comment_extension.d.ts +0 -0
  172. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/policy_constraints_extension.d.ts +0 -0
  173. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/policy_mappings_extension.d.ts +0 -0
  174. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/private_key_usage_period_extension.d.ts +0 -0
  175. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/qc_statements_extension.d.ts +0 -0
  176. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_alternative_name_extension.d.ts +0 -0
  177. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_directory_attributes_extension.d.ts +0 -0
  178. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_key_identifier_extension.d.ts +0 -0
  179. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/timestamp_extension.d.ts +0 -0
  180. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/tn_auth_list_extension.d.ts +0 -0
  181. /package/dist/types/components/{attribute-certificate-viewer → certificate-details-parts}/holder.d.ts +0 -0
  182. /package/dist/types/components/{attribute-certificate-viewer → certificate-details-parts}/issuer.d.ts +0 -0
  183. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/issuer_name.d.ts +0 -0
  184. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/miscellaneous.d.ts +0 -0
  185. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/public_key.d.ts +0 -0
  186. /package/dist/types/components/{crl-viewer → certificate-details-parts}/revoked_certificates.d.ts +0 -0
  187. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/signature.d.ts +0 -0
  188. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/subject_name.d.ts +0 -0
  189. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/thumbprints.d.ts +0 -0
  190. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/types.d.ts +0 -0
  191. /package/dist/types/{components/certificate-viewer → utils}/get_string_by_oid.d.ts +0 -0
@@ -5,6 +5,40 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-bb
5
5
  import { l as l10n, a as dateShort } from './l10n-a68d5748.js';
6
6
  import './download-67ac9120.js';
7
7
 
8
+ const buttonSplitCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:inline-block;vertical-align:top;position:relative;white-space:nowrap;font-size:0}.button_split_icon{width:7px;height:5px;display:inline-block;vertical-align:middle}.button_split_with_icon{width:25px;border-bottom-left-radius:0;border-top-left-radius:0}.button_split_with_icon.m_open::part(base):before{position:fixed;width:100%;height:100%;top:0;left:0;content:\"\"}.button_split_action{width:100%}.button_split_container{position:absolute;bottom:calc(100% + 1px);left:0;width:100%;border-radius:2px;-webkit-box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);z-index:1}.button_split>peculiar-button:first-of-type::part(base){border-top-right-radius:0;border-bottom-right-radius:0}.button_split>peculiar-button:last-of-type::part(base){border-top-left-radius:0;border-bottom-left-radius:0}.button_split>peculiar-button:not(:first-child){margin-left:-1px}";
9
+
10
+ const ButtonSplit = class {
11
+ constructor(hostRef) {
12
+ registerInstance(this, hostRef);
13
+ this.fill = 'stroke';
14
+ this.actions = [];
15
+ this.open = false;
16
+ this.onClickSplitButton = (event) => {
17
+ event.stopPropagation();
18
+ this.open = !this.open;
19
+ };
20
+ }
21
+ onClickActiveButton(action, event) {
22
+ this.open = false;
23
+ action(event);
24
+ }
25
+ renderActiveSplitState() {
26
+ if (!this.open) {
27
+ return null;
28
+ }
29
+ return (h("div", { class: "button_split_container" }, this.actions.map((action) => (h("peculiar-button", { fill: "fill", class: "button_split_action", onClick: this.onClickActiveButton.bind(this, action.onClick) }, action.text)))));
30
+ }
31
+ render() {
32
+ return (h("div", { class: {
33
+ button_split: true,
34
+ } }, h("peculiar-button", { fill: this.fill, onClick: this.onClick }, h("slot", null)), h("peculiar-button", { fill: this.fill, onClick: this.onClickSplitButton, class: {
35
+ button_split_with_icon: true,
36
+ m_open: this.open,
37
+ } }, h("svg", { viewBox: "0 0 7 5", xmlns: "http://www.w3.org/2000/svg", class: "button_split_icon" }, h("path", { fill: "currentColor", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.459.124c.934.001 1.442.994.84 1.644L4.425 3.794c-.44.475-1.244.475-1.684 0L.862 1.764C.26 1.115.77.12 1.705.122l3.754.003z" }))), this.renderActiveSplitState()));
38
+ }
39
+ };
40
+ ButtonSplit.style = buttonSplitCss;
41
+
8
42
  const certificateSummaryCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%}td{border:none;padding:0}table{width:100%;border-spacing:0;border-collapse:collapse}td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td:first-child{width:130px;padding-right:10px}table td:last-child{width:calc(100% - 130px)}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{width:100%}}";
9
43
 
10
44
  const CertificateSummary = class {
@@ -84,4 +118,4 @@ const HighlightWords = class {
84
118
  };
85
119
  HighlightWords.style = highlightWordsCss;
86
120
 
87
- export { CertificateSummary as peculiar_certificate_summary, CircularProgress as peculiar_circular_progress, HighlightWords as peculiar_highlight_words };
121
+ export { ButtonSplit as peculiar_button_split, CertificateSummary as peculiar_certificate_summary, CircularProgress as peculiar_circular_progress, HighlightWords as peculiar_highlight_words };
@@ -0,0 +1,36 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ import { r as registerInstance, h } from './index-bbd484d9.js';
5
+
6
+ const buttonCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:inline-block;width:auto;cursor:pointer;position:relative;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;--pv-button-padding-end:5px;--pv-button-padding-start:5px}.button{font-family:\"Open Sans\", \"Arial\", sans-serif;font-family:var(--pv-font-family);font-size:13px;font-size:var(--pv-font-size-b3);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;border-style:solid;border-width:1px;font-weight:400;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;vertical-align:middle;cursor:inherit;height:30px;line-height:30px;border-radius:2px;padding:0 5px;padding:0 var(--pv-button-padding-end) 0 var(--pv-button-padding-start)}.button::-moz-focus-inner{border:0}.button:focus{outline:none;-webkit-box-shadow:0 4px 10px 0 rgba(var(--pv-color-dark-rgb), 0.1);box-shadow:0 4px 10px 0 rgba(var(--pv-color-dark-rgb), 0.1)}.button[disabled]{opacity:0.5;cursor:not-allowed}.button_stroke{border-color:rgba(53, 132, 247, 0.3);border-color:rgba(var(--pv-color-primary-rgb), 0.3);color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1);background-color:transparent}.button_fill{border-color:#3584f7;border-color:rgba(var(--pv-color-primary-rgb), 1);background-color:#3584f7;background-color:rgba(var(--pv-color-primary-rgb), 1);color:white;color:rgba(var(--pv-color-light-rgb), 1)}.button_label{-webkit-transition:opacity 200ms;transition:opacity 200ms}.button:hover .button_label{opacity:0.7}";
7
+
8
+ const Button = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.fill = 'stroke';
12
+ this.handleClick = (event) => {
13
+ if (this.disabled) {
14
+ event.preventDefault();
15
+ event.stopPropagation();
16
+ return;
17
+ }
18
+ if (this.onClick) {
19
+ this.onClick(event);
20
+ }
21
+ };
22
+ }
23
+ render() {
24
+ const isLink = !!this.href;
25
+ const TagType = isLink ? 'a' : 'button';
26
+ return (h(TagType, { class: {
27
+ button: true,
28
+ button_stroke: this.fill === 'stroke',
29
+ button_fill: this.fill === 'fill',
30
+ button_disabled: this.disabled,
31
+ }, disabled: this.disabled, type: !isLink && 'button', href: isLink && this.href, target: isLink && this.target ? this.target : null, rel: isLink && 'noreferrer noopener', onClick: this.handleClick, part: "base" }, h("span", { part: "label", class: "button_label" }, h("slot", null))));
32
+ }
33
+ };
34
+ Button.style = buttonCss;
35
+
36
+ export { Button as peculiar_button };
@@ -2,11 +2,11 @@
2
2
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
3
  */
4
4
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-bbd484d9.js';
5
- import { i as isPem, a as isX509Pem, b as isPkcs10Pem, c as isX509AttributePem, d as isX509CRLPem } from './certification_request-0ecd0af1.js';
5
+ import { i as isPem, a as isX509Pem, b as isPkcs10Pem, c as isX509AttributePem, d as isX509CRLPem } from './certification_request-8cc9d070.js';
6
6
  import './l10n-a68d5748.js';
7
7
  import './download-67ac9120.js';
8
- import { X as X509Certificate } from './x509_certificate-59d7a03c.js';
9
- import { X as X509AttributeCertificate, C as CSR, a as CRL } from './crl-c09357a9.js';
8
+ import { X as X509Certificate } from './x509_certificate-0fdd28aa.js';
9
+ import { X as X509AttributeCertificate, C as CSR, a as CRL } from './crl-f43a95b7.js';
10
10
 
11
11
  /**
12
12
  * @license
@@ -2,13 +2,13 @@
2
2
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
3
  */
4
4
  import { r as registerInstance, h, H as Host } from './index-bbd484d9.js';
5
- import { X as X509Certificate } from './x509_certificate-59d7a03c.js';
6
- import './certification_request-0ecd0af1.js';
5
+ import { X as X509Certificate } from './x509_certificate-0fdd28aa.js';
6
+ import './certification_request-8cc9d070.js';
7
7
  import './download-67ac9120.js';
8
8
  import './l10n-a68d5748.js';
9
- import { B as BasicInformation, e as SubjectName, I as IssuerName, P as PublicKey, S as Signature, T as Thumbprints, E as Extensions, b as getLEILink, c as getDNSNameLink, d as getIPAddressLink, M as Miscellaneous } from './public_key-e6d12f27.js';
9
+ import { B as BasicInformation, f as SubjectName, I as IssuerName, P as PublicKey, S as Signature, b as Thumbprints, E as Extensions, c as getLEILink, d as getDNSNameLink, e as getIPAddressLink, M as Miscellaneous } from './miscellaneous-b74d9eae.js';
10
10
 
11
- const certificateViewerCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";
11
+ const certificateViewerCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table table{margin-bottom:0}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";
12
12
 
13
13
  const CertificateViewer = class {
14
14
  constructor(hostRef) {
@@ -2,8 +2,8 @@
2
2
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
3
  */
4
4
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-bbd484d9.js';
5
- import { X as X509Certificate } from './x509_certificate-59d7a03c.js';
6
- import { Q as OIDs } from './certification_request-0ecd0af1.js';
5
+ import { X as X509Certificate } from './x509_certificate-0fdd28aa.js';
6
+ import { _ as OIDs } from './certification_request-8cc9d070.js';
7
7
  import './download-67ac9120.js';
8
8
  import { l as l10n } from './l10n-a68d5748.js';
9
9
 
@@ -0,0 +1,25 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ import { r as registerInstance, h } from './index-bbd484d9.js';
5
+
6
+ const linkCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:inline-block}.link{font-family:\"Open Sans\", \"Arial\", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1);font-weight:400;margin:0;padding:0;word-break:break-all}.link_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.link_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.link_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.link_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.link_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.link:hover{text-decoration:none}";
7
+
8
+ const Link = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ /**
12
+ * Typography type.
13
+ */
14
+ this.type = 'b3';
15
+ }
16
+ render() {
17
+ return (h("a", { href: this.href, target: "_blank", rel: "noreferrer noopener", class: {
18
+ link: true,
19
+ [`link_type_${this.type || 'b3'}`]: true,
20
+ } }, h("slot", null)));
21
+ }
22
+ };
23
+ Link.style = linkCss;
24
+
25
+ export { Link as peculiar_link };
@@ -0,0 +1,29 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-bbd484d9.js';
5
+
6
+ const textHiderCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%}.text{display:inline-block;width:calc(100% - 60px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.text.m_opened{white-space:initial}.action{vertical-align:top;display:inline-block;width:60px;text-align:right;position:relative;top:-6px}.button_action{width:30px}.expand_icon{width:7px;height:5px;display:inline-block}.m_opened .expand_icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}";
7
+
8
+ const TextHider = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.textExpand = createEvent(this, "textExpand", 7);
12
+ this.opened = false;
13
+ }
14
+ textExpandHandler() {
15
+ this.opened = !this.opened;
16
+ }
17
+ render() {
18
+ return (h(Host, null, h("div", { class: "root" }, h("div", { class: {
19
+ text: true,
20
+ m_opened: this.opened,
21
+ } }, h("slot", null)), h("div", { class: "action" }, h("peculiar-button", { onClick: this.textExpand.emit, class: {
22
+ button_action: true,
23
+ m_opened: this.opened,
24
+ }, fill: this.opened ? 'fill' : 'stroke' }, h("svg", { viewBox: "0 0 7 5", xmlns: "http://www.w3.org/2000/svg", class: "expand_icon" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", fill: "currentColor", d: "M5.459.124c.934.001 1.442.994.84 1.644L4.425 3.794c-.44.475-1.244.475-1.684 0L.862 1.764C.26 1.115.77.12 1.705.122l3.754.003z" })))))));
25
+ }
26
+ };
27
+ TextHider.style = textHiderCss;
28
+
29
+ export { TextHider as peculiar_text_hider };
@@ -0,0 +1,34 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ import { r as registerInstance, h } from './index-bbd484d9.js';
5
+
6
+ const typographyCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:block}.typography{font-family:\"Open Sans\", \"Arial\", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);font-weight:400;margin:0;padding:0;display:block}.typography_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.typography_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.typography_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.typography_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.typography_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.typography_color_dark{color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.typography_color_light{color:white;color:rgba(var(--pv-color-light-rgb), 1)}.typography_color_grey_3{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.typography_color_grey_5{color:#869196;color:rgba(var(--pv-color-grey_5-rgb), 1)}.typography_color_attention{color:#f7a831;color:rgba(var(--pv-color-attention-rgb), 1)}.typography_color_primary{color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1)}.typography_ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.typography_monospace{font-family:monospace}.typography_align_left{text-align:left}.typography_align_center{text-align:center}.typography_align_right{text-align:right}";
7
+
8
+ const PeculiarTypography = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ /**
12
+ * Typography type.
13
+ */
14
+ this.type = 'b3';
15
+ /**
16
+ * Component color from theme.
17
+ */
18
+ this.color = 'dark';
19
+ }
20
+ render() {
21
+ const TagType = this.type && this.type.includes('h') ? this.type : 'p';
22
+ return (h(TagType, { class: {
23
+ typography: true,
24
+ [`typography_type_${this.type || 'b3'}`]: true,
25
+ [`typography_color_${this.color || 'dark'}`]: true,
26
+ [`typography_align_${this.align}`]: !!this.align,
27
+ typography_ellipsis: this.ellipsis,
28
+ typography_monospace: this.monospace,
29
+ } }, h("slot", null)));
30
+ }
31
+ };
32
+ PeculiarTypography.style = typographyCss;
33
+
34
+ export { PeculiarTypography as peculiar_typography };
@@ -69,5 +69,5 @@ const patchDynamicImport = (base, orgScriptElm) => {
69
69
  };
70
70
 
71
71
  patchBrowser().then(options => {
72
- return bootstrapLazy([["peculiar-button_5",[[1,"peculiar-button-split",{"onClick":[16],"fill":[1],"actions":[16],"open":[32]}],[1,"peculiar-text-hider",{"opened":[1540]},[[0,"textExpand","textExpandHandler"]]],[1,"peculiar-link",{"href":[513],"type":[513]}],[1,"peculiar-typography",{"type":[513],"color":[1],"align":[1],"ellipsis":[4],"monospace":[4]}],[1,"peculiar-button",{"fill":[1],"disabled":[516],"href":[1],"target":[1],"onClick":[16]}]]],["peculiar-certificate-viewer",[[1,"peculiar-certificate-viewer",{"certificate":[513],"download":[516],"authKeyIdParentLink":[513,"auth-key-id-parent-link"],"authKeyIdSiblingsLink":[513,"auth-key-id-siblings-link"],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"issuerDnLink":[513,"issuer-dn-link"],"view":[513],"isDecodeInProcess":[32]}]]],["peculiar-certificate-decoder",[[1,"peculiar-certificate-decoder",{"certificateExample":[1,"certificate-example"],"defaultCertificate":[1,"default-certificate"],"certificateDecoded":[32]}]]],["peculiar-certificates-viewer",[[1,"peculiar-certificates-viewer",{"certificates":[16],"filterWithSearch":[4,"filter-with-search"],"highlightWithSearch":[4,"highlight-with-search"],"search":[32],"certificatesDecoded":[32],"expandedRow":[32],"certificateSelectedForDetails":[32],"isDecodeInProcess":[32]}]]],["peculiar-attribute-certificate-viewer_3",[[1,"peculiar-attribute-certificate-viewer",{"certificate":[1],"download":[4],"authKeyIdParentLink":[513,"auth-key-id-parent-link"],"authKeyIdSiblingsLink":[513,"auth-key-id-siblings-link"],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"isDecodeInProcess":[32]}],[1,"peculiar-crl-viewer",{"certificate":[513],"download":[4],"authKeyIdParentLink":[513,"auth-key-id-parent-link"],"authKeyIdSiblingsLink":[513,"auth-key-id-siblings-link"],"issuerDnLink":[513,"issuer-dn-link"],"view":[513],"isDecodeInProcess":[32]}],[1,"peculiar-csr-viewer",{"certificate":[513],"download":[4],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"view":[513],"isDecodeInProcess":[32]}]]],["peculiar-certificate-summary_3",[[1,"peculiar-certificate-summary",{"certificate":[16],"showIssuer":[4,"show-issuer"]}],[1,"peculiar-circular-progress",{"size":[2],"width":[2]}],[1,"peculiar-highlight-words",{"search":[1]}]]]], options);
72
+ return bootstrapLazy([["peculiar-certificates-viewer",[[1,"peculiar-certificates-viewer",{"certificates":[16],"filterWithSearch":[4,"filter-with-search"],"highlightWithSearch":[4,"highlight-with-search"],"search":[32],"certificatesDecoded":[32],"expandedRow":[32],"certificateSelectedForDetails":[32],"isDecodeInProcess":[32]}]]],["peculiar-certificate-decoder",[[1,"peculiar-certificate-decoder",{"certificateExample":[1,"certificate-example"],"defaultCertificate":[1,"default-certificate"],"certificateDecoded":[32]}]]],["peculiar-text-hider",[[1,"peculiar-text-hider",{"opened":[1540]},[[0,"textExpand","textExpandHandler"]]]]],["peculiar-link",[[1,"peculiar-link",{"href":[513],"type":[513]}]]],["peculiar-typography",[[1,"peculiar-typography",{"type":[513],"color":[1],"align":[1],"ellipsis":[4],"monospace":[4]}]]],["peculiar-certificate-viewer",[[1,"peculiar-certificate-viewer",{"certificate":[513],"download":[516],"authKeyIdParentLink":[513,"auth-key-id-parent-link"],"authKeyIdSiblingsLink":[513,"auth-key-id-siblings-link"],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"issuerDnLink":[513,"issuer-dn-link"],"view":[513],"isDecodeInProcess":[32]}]]],["peculiar-attribute-certificate-viewer_3",[[1,"peculiar-attribute-certificate-viewer",{"certificate":[1],"download":[4],"authKeyIdParentLink":[513,"auth-key-id-parent-link"],"authKeyIdSiblingsLink":[513,"auth-key-id-siblings-link"],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"isDecodeInProcess":[32]}],[1,"peculiar-crl-viewer",{"certificate":[513],"download":[4],"authKeyIdParentLink":[513,"auth-key-id-parent-link"],"authKeyIdSiblingsLink":[513,"auth-key-id-siblings-link"],"issuerDnLink":[513,"issuer-dn-link"],"view":[513],"isDecodeInProcess":[32]}],[1,"peculiar-csr-viewer",{"certificate":[513],"download":[4],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"view":[513],"isDecodeInProcess":[32]}]]],["peculiar-button",[[1,"peculiar-button",{"fill":[1],"disabled":[516],"href":[1],"target":[1],"onClick":[16]}]]],["peculiar-button-split_4",[[1,"peculiar-button-split",{"onClick":[16],"fill":[1],"actions":[16],"open":[32]}],[1,"peculiar-certificate-summary",{"certificate":[16],"showIssuer":[4,"show-issuer"]}],[1,"peculiar-circular-progress",{"size":[2],"width":[2]}],[1,"peculiar-highlight-words",{"search":[1]}]]]], options);
73
73
  });
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
3
  */
4
- import { A as AsnData, e as certificateRawToBuffer, C as Certificate, N as Name, E as Extension, f as AsnConvert, g as id_ecPublicKey, h as ECParameters, j as id_rsaEncryption, R as RSAPublicKey, k as hexFormat, l as base64Format, m as getCertificateThumbprint } from './certification_request-0ecd0af1.js';
4
+ import { A as AsnData, e as certificateRawToBuffer, C as Certificate, N as Name, E as Extension, f as AsnConvert, g as id_ecPublicKey, h as ECParameters, j as id_rsaEncryption, R as RSAPublicKey, k as id_composite_key, l as CompositePublicKey, m as id_alg_composite, n as CompositeSignatureValue, o as CompositeParams, p as hexFormat, q as base64Format, r as getCertificateThumbprint } from './certification_request-8cc9d070.js';
5
5
  import { b as build, D as Download } from './download-67ac9120.js';
6
6
  import { d as dateDiff } from './l10n-a68d5748.js';
7
7
 
@@ -43,8 +43,8 @@ class X509Certificate extends AsnData {
43
43
  .map((e) => new Extension(AsnConvert.serialize(e)));
44
44
  }
45
45
  }
46
- get publicKey() {
47
- const { subjectPublicKey, algorithm } = this.asn.tbsCertificate.subjectPublicKeyInfo;
46
+ getPublicKeyInfo(publicKeyInfo) {
47
+ const { subjectPublicKey, algorithm } = publicKeyInfo;
48
48
  let params;
49
49
  if (algorithm.algorithm === id_ecPublicKey && algorithm.parameters) {
50
50
  params = AsnConvert.parse(algorithm.parameters, ECParameters);
@@ -52,16 +52,30 @@ class X509Certificate extends AsnData {
52
52
  if (algorithm.algorithm === id_rsaEncryption) {
53
53
  params = AsnConvert.parse(subjectPublicKey, RSAPublicKey);
54
54
  }
55
- const spki = AsnConvert.serialize(this.asn.tbsCertificate.subjectPublicKeyInfo);
55
+ if (algorithm.algorithm === id_composite_key) {
56
+ params = AsnConvert.parse(subjectPublicKey, CompositePublicKey);
57
+ params = params.map((param) => this.getPublicKeyInfo(param));
58
+ }
59
+ const spki = AsnConvert.serialize(publicKeyInfo);
56
60
  return {
57
61
  params,
58
62
  value: spki,
59
63
  algorithm: algorithm.algorithm,
60
64
  };
61
65
  }
66
+ get publicKey() {
67
+ return this.getPublicKeyInfo(this.asn.tbsCertificate.subjectPublicKeyInfo);
68
+ }
62
69
  get signature() {
63
70
  const { signatureValue, signatureAlgorithm } = this.asn;
71
+ let params;
72
+ if (signatureAlgorithm.algorithm === id_alg_composite) {
73
+ const compositeSignatureValues = AsnConvert.parse(signatureValue, CompositeSignatureValue);
74
+ const compositeParams = AsnConvert.parse(signatureAlgorithm.parameters, CompositeParams);
75
+ params = compositeParams.map((param, index) => (Object.assign(Object.assign({}, param), { value: compositeSignatureValues[index] })));
76
+ }
64
77
  return {
78
+ params,
65
79
  value: signatureValue,
66
80
  algorithm: signatureAlgorithm.algorithm,
67
81
  };
@@ -0,0 +1,18 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ import{h as t,r as e,H as i}from"./p-f7683ba5.js";import{_ as a,$ as r,G as s,W as n,I as d,T as o,V as l,U as c,y as h,a0 as p,a1 as b,a2 as g}from"./p-c72f8e8f.js";import{b as u}from"./p-cff9655c.js";import{l as m,a as x}from"./p-fec9d812.js";import{X as v,a as f,C as w}from"./p-ea9a6317.js";import{g as y,R as k,G as L,a as I,T as S,B as A,S as _,b as N,c as D,d as j,e as K,E as P,M as C,I as E,f as z,P as T}from"./p-45336b4f.js";
5
+ /**
6
+ * @license
7
+ * Copyright (c) Peculiar Ventures, LLC.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */const $=(e,i)=>{const{attribute:a}=e;return[t(k,{name:"Name",value:y(a.asn.type)}),i,t("tr",null,t("td",{colSpan:2,class:"divider"},t("span",{class:"bg_fill"})))]},H=e=>{const{name:i}=e;return i?i.map((e=>e.map((e=>t(k,{name:a[e.type]||e.type,value:e.value.toString()}))))):null},V=e=>{const{attribute:i}=e;return t($,{attribute:i},t(H,{name:i.value}))},O=e=>{const{attribute:i}=e;return t($,{attribute:i},t(k,{name:"Code Authority",value:""}),t(L,{generalName:i.value.codeAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Code Id",value:""}),t(L,{generalName:i.value.codeId,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Short Name",value:i.value.shortName}),t(k,{name:"Short Description",value:i.value.shortDescription}))},q=e=>{const{attribute:i}=e;return t($,{attribute:i},t(k,{name:"Assessment Authority",value:""}),t(L,{generalName:i.value.assessmentAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Assessment Location",value:""}),t(L,{generalName:i.value.assessmentLocation,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Assessment Ref",value:""}),t(L,{generalName:i.value.assessmentRef,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Data Storage Territory",value:i.value.dataStorageTerritory}),t(k,{name:"Description",value:i.value.description}))},R=e=>{const{attribute:i}=e;return t($,{attribute:i},t(k,{name:"Value",value:`${i.value.base} * 10^${i.value.degree} ${i.value.location}`}))},W=e=>{const{attribute:i}=e;return t($,{attribute:i},Object.keys(i.value).map((e=>t(k,{name:e,value:i.value[e].toNumber()?m.getString("yes"):m.getString("no")}))))},G=t=>{let e=1;return t/100>1?e=100:t/10>1&&(e=10),`${t}/${5*e}`},B=e=>{const{attribute:i}=e,a=Object.keys(i.value).map((e=>[G(i.value[e]),t("br",null)]));return t($,{attribute:i},t(k,{name:"Value",value:a}))},M=e=>{const{attribute:i}=e;return t($,{attribute:i},t(k,{name:"Value",value:i.value,monospace:!0}))},U=e=>{const{attribute:i}=e;return t($,{attribute:i},t(k,{name:"Value",value:i.value.utf8String}))},X=e=>{const{attribute:i}=e;return t($,{attribute:i},t(k,{name:"Value",value:i.value.toString()}))},F=e=>{const{attributes:i}=e;return i&&i.length?[t(I,{value:"Attributes"}),i.map((e=>{try{return t(e.value instanceof r?V:e.value instanceof s?O:e.value instanceof n?q:e.value instanceof d?R:e.value instanceof o?W:e.value instanceof l?B:e.value instanceof c?U:e.value instanceof h?X:"string"==typeof e.value?M:$,{attribute:e})}catch(t){return console.error("Error render attribute:",e.asn.type),null}}))]:null},J=e=>{const{revokedCertificates:i,getDNSNameLink:a,getIPAddressLink:r}=e;return i&&i.length?[t(I,{value:m.getString("revokedCertificates")}),i.map((e=>[t(k,{name:m.getString("serialNumber"),value:u.Convert.ToHex(e.userCertificate),monospace:!0}),t(k,{name:m.getString("revocationDate"),value:x(e.revocationDate.getTime())}),e.crlEntryExtensions&&e.crlEntryExtensions.length&&[t(k,{name:`${m.getString("crlEntryExtensions")}:`,value:""}),t(S,null,e.crlEntryExtensions.map((e=>e.value instanceof p?t(k,{name:y(e.asn.extnID),value:e.value.toJSON()||e.value.reason}):e.value instanceof b?t(k,{name:y(e.asn.extnID),value:e.value.value.getTime()}):e.value instanceof g&&e.value.length?[t(k,{name:`${y(e.asn.extnID)}:`,value:""}),e.value.map((e=>t(S,null,t(L,{generalName:e,getDNSNameLink:a,getIPAddressLink:r}))))]:t(k,{name:y(e.asn.extnID),value:u.Convert.ToHex(e.asn.extnValue),monospace:!0}))))],t("tr",null,t("td",{colSpan:2,class:"divider"},t("span",{class:"bg_fill"})))]))]:null},Q=e=>{const{holder:i}=e;if(!i)return null;const{baseCertificateID:a,objectDigestInfo:r}=i;return[t(I,{value:m.getString("holder")}),a&&[a.issuer.map((e=>t(L,{generalName:e,getDNSNameLink:()=>"",getIPAddressLink:()=>""}))),t("tr",null,t("td",null),t("td",null)),t(k,{name:m.getString("serialNumber"),value:u.Convert.ToHex(a.serial),monospace:!0}),t("tr",null,t("td",null),t("td",null))],r&&[t(k,{name:m.getString("digestInfo"),value:""}),t(k,{name:m.getString("algorithm"),value:y(r.digestAlgorithm.algorithm)}),t(k,{name:m.getString("value"),value:u.Convert.ToHex(r.objectDigest),monospace:!0}),t(k,{name:m.getString("type"),value:r.digestedObjectType})]]},Y=e=>{const{issuer:i}=e;return i?[t(I,{value:m.getString("issuer")}),i.map((e=>t(L,{generalName:e,getDNSNameLink:()=>"",getIPAddressLink:()=>""})))]:null},Z=class{constructor(t){e(this,t),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>{var e;return null===(e=this.authKeyIdParentLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)},this.getAuthKeyIdSiblingsLink=t=>{var e;return null===(e=this.authKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)},this.getSubjectKeyIdChildrenLink=t=>{var e;return null===(e=this.subjectKeyIdChildrenLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)},this.getSubjectKeyIdSiblingsLink=t=>{var e;return null===(e=this.subjectKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof v)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new v(t)}this.certificateDecoded.parseExtensions(),this.certificateDecoded.parseAttributes(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}watchCertificateAndDecode(t,e){"string"!=typeof t||"string"!=typeof e?t instanceof v&&e instanceof v&&t.serialNumber!==e.serialNumber&&this.decodeCertificate(t):t!==e&&this.decodeCertificate(t)}renderErrorState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this attribute certificate."))}renderEmptyState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no attribute certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?t(i,null,t("table",null,t(A,Object.assign({},this.certificateDecoded)),t(Y,{issuer:this.certificateDecoded.issuer}),t(Q,{holder:this.certificateDecoded.holder}),t(_,{signature:this.certificateDecoded.signature}),t(N,{thumbprints:this.certificateDecoded.thumbprints}),t(F,{attributes:this.certificateDecoded.attributes,getLEILink:D,getDNSNameLink:j,getIPAddressLink:K,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),t(P,{extensions:this.certificateDecoded.extensions,getLEILink:D,getDNSNameLink:j,getIPAddressLink:K,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&t(C,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};
12
+ /**
13
+ * @license
14
+ * Copyright (c) Peculiar Ventures, LLC.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */Z.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table table{margin-bottom:0}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";const tt=class{constructor(t){e(this,t),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>{var e;return null===(e=this.authKeyIdParentLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)},this.getAuthKeyIdSiblingsLink=t=>{var e;return null===(e=this.authKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof f)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new f(t)}this.certificateDecoded.parseExtensions(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}getIssuerDnLink(){return this.issuerDnLink}watchCertificateAndDecode(t,e){"string"!=typeof t||"string"!=typeof e?t instanceof f&&e instanceof f&&t.commonName!==e.commonName&&this.decodeCertificate(t):t!==e&&this.decodeCertificate(t)}renderErrorState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate revocation list."))}renderEmptyState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate revocation list available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?t(i,{"data-view":this.view},t("table",null,t(A,Object.assign({},this.certificateDecoded)),t(E,{name:this.certificateDecoded.issuer,issuerDnLink:this.getIssuerDnLink()}),t(_,{signature:this.certificateDecoded.signature}),t(N,{thumbprints:this.certificateDecoded.thumbprints}),t(P,{extensions:this.certificateDecoded.extensions,getLEILink:D,getDNSNameLink:j,getIPAddressLink:K,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink}),t(J,{revokedCertificates:this.certificateDecoded.revokedCertificates,getDNSNameLink:j,getIPAddressLink:K}),this.download&&t(C,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};tt.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table table{margin-bottom:0}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";const et=class{constructor(t){e(this,t),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>t,this.getAuthKeyIdSiblingsLink=t=>t,this.getSubjectKeyIdChildrenLink=t=>{var e;return null===(e=this.subjectKeyIdChildrenLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)},this.getSubjectKeyIdSiblingsLink=t=>{var e;return null===(e=this.subjectKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof w)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new w(t)}this.certificateDecoded.parseAttributes(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}watchCertificateAndDecode(t,e){"string"!=typeof t||"string"!=typeof e?t instanceof w&&e instanceof w&&t.commonName!==e.commonName&&this.decodeCertificate(t):t!==e&&this.decodeCertificate(t)}renderErrorState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate request."))}renderEmptyState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate request available."))}getExtensionRequestAttribute(){if(this.certificateDecoded)return this.certificateDecoded.attributes.find((t=>"1.2.840.113549.1.9.14"===t.asn.type))}render(){if(this.certificateDecodeError)return this.renderErrorState();if(!this.certificateDecoded)return this.renderEmptyState();const e=this.getExtensionRequestAttribute();return t(i,{"data-view":this.view},t("table",null,t(A,Object.assign({},this.certificateDecoded)),t(z,{name:this.certificateDecoded.subject}),t(T,{publicKey:this.certificateDecoded.publicKey}),t(_,{signature:this.certificateDecoded.signature}),t(N,{thumbprints:this.certificateDecoded.thumbprints}),t(F,{attributes:this.certificateDecoded.attributes,getLEILink:D,getDNSNameLink:j,getIPAddressLink:K,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),t(P,{extensions:null==e?void 0:e.value,title:"Extension Request",getLEILink:D,getDNSNameLink:j,getIPAddressLink:K,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&t(C,{certificate:this.certificateDecoded})))}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};et.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table table{margin-bottom:0}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";export{Z as peculiar_attribute_certificate_viewer,tt as peculiar_crl_viewer,et as peculiar_csr_viewer}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ import{r as t,h as i,H as e}from"./p-f7683ba5.js";import{X as a}from"./p-ec8787ed.js";import"./p-c72f8e8f.js";import"./p-cff9655c.js";import"./p-fec9d812.js";import{B as r,f as d,I as s,P as o,S as l,b as n,E as p,c as h,d as c,e as b,M as g}from"./p-45336b4f.js";const m=class{constructor(i){t(this,i),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>{var i;return null===(i=this.authKeyIdParentLink)||void 0===i?void 0:i.replace("{{authKeyId}}",t)},this.getAuthKeyIdSiblingsLink=t=>{var i;return null===(i=this.authKeyIdSiblingsLink)||void 0===i?void 0:i.replace("{{authKeyId}}",t)},this.getSubjectKeyIdChildrenLink=t=>{var i;return null===(i=this.subjectKeyIdChildrenLink)||void 0===i?void 0:i.replace("{{subjectKeyId}}",t)},this.getSubjectKeyIdSiblingsLink=t=>{var i;return null===(i=this.subjectKeyIdSiblingsLink)||void 0===i?void 0:i.replace("{{subjectKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof a)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new a(t)}this.certificateDecoded.parseExtensions(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}watchCertificateAndDecode(t,i){"string"!=typeof t||"string"!=typeof i?t instanceof a&&i instanceof a&&t.serialNumber!==i.serialNumber&&this.decodeCertificate(t):t!==i&&this.decodeCertificate(t)}getIssuerDnLink(){return this.issuerDnLink}renderErrorState(){return i("div",{class:"status_wrapper"},i("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate."))}renderEmptyState(){return i("div",{class:"status_wrapper"},i("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?i(e,{"data-view":this.view},i("table",null,i(r,Object.assign({},this.certificateDecoded)),i(d,{name:this.certificateDecoded.subject}),i(s,{name:this.certificateDecoded.issuer,issuerDnLink:this.getIssuerDnLink()}),i(o,{publicKey:this.certificateDecoded.publicKey}),i(l,{signature:this.certificateDecoded.signature}),i(n,{thumbprints:this.certificateDecoded.thumbprints}),i(p,{extensions:this.certificateDecoded.extensions,getLEILink:h,getDNSNameLink:c,getIPAddressLink:b,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&i(g,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};m.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table table{margin-bottom:0}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";export{m as peculiar_certificate_viewer}
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
3
  */
4
- import{r as t,c as i,h as e,H as s}from"./p-f7683ba5.js";import{i as o,a as r,b as a,c,d as n}from"./p-3a4556ef.js";import"./p-fec9d812.js";import"./p-cff9655c.js";import{X as l}from"./p-c9f01b83.js";import{X as p,C as h,a as f}from"./p-7321a8d6.js";
4
+ import{r as t,c as i,h as e,H as s}from"./p-f7683ba5.js";import{i as o,a as r,b as a,c,d as n}from"./p-c72f8e8f.js";import"./p-fec9d812.js";import"./p-cff9655c.js";import{X as l}from"./p-ec8787ed.js";import{X as p,C as h,a as f}from"./p-ea9a6317.js";
5
5
  /**
6
6
  * @license
7
7
  * Copyright (c) Peculiar Ventures, LLC.
@@ -0,0 +1,69 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ import{h as e}from"./p-f7683ba5.js";import{l as a,a as n}from"./p-fec9d812.js";import{b as c}from"./p-cff9655c.js";import{_ as t,$ as o,a3 as s,u as f,a4 as i,a5 as d,a6 as r,a7 as l,a8 as b,a9 as u,aa as m,ab as v,ac as x,ad as g,ae as p,af as y,ag as C,ah as h,ai as N,aj as S,ak as A,al as D,am as I,an as G,ao as j,ap as T,aq as O,ar as k,as as $,at as P,a0 as L,au as V,av as R,aw as U,ax as E,ay as K,az as H,aA as B,aB as M,aC as X,aD as Y}from"./p-c72f8e8f.js";
5
+ /**
6
+ * @license
7
+ * Copyright (c) Peculiar Ventures, LLC.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */function _(e){const a=t[e];return a?`${a} (${e})`:e}
12
+ /**
13
+ * @license
14
+ * Copyright (c) Peculiar Ventures, LLC.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */const q=e=>`https://search.gleif.org/#/record/${e}`,w=e=>`https://search.censys.io/search?resource=hosts&q=dns.names%3A${e}`,z=e=>`https://search.censys.io/search?resource=hosts&q=ip%3A${e}`
19
+ /**
20
+ * @license
21
+ * Copyright (c) Peculiar Ventures, LLC.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */,W=(a,n)=>e("tr",null,e("td",{colSpan:2},e("table",null,n))),F=a=>{const{value:n}=a;return n?e("tr",{class:"title"},e("td",{colSpan:2},e("peculiar-typography",{type:"h6"},n))):null},Q=a=>{const{name:n,value:c,monospace:t,collapse:o,href:s,extraValue:f}=a;if(!n)return null;if(null==c)return null;let i;i=o?e("peculiar-text-hider",null,c):c;const d=!!c.toString();return e("tr",null,e("td",{colSpan:d?1:2},e("peculiar-typography",{color:"grey_5"},n,d?":":"")),d&&e("td",{class:{monospace:t}},function(e){return 0===e.indexOf("http")}
26
+ /**
27
+ * @license
28
+ * Copyright (c) Peculiar Ventures, LLC.
29
+ *
30
+ * This source code is licensed under the MIT license found in the
31
+ * LICENSE file in the root directory of this source tree.
32
+ */(c.toString())||s?e("peculiar-link",{href:s||c.toString()},c):e("peculiar-typography",{monospace:t},i,f)))},J=c=>{const{serialNumber:t,version:o,validity:s,notBefore:f,notAfter:i,lastUpdate:d,nextUpdate:r,type:l}=c;return[e(F,{value:a.getString("basicInformation")}),e(Q,{name:a.getString("type"),value:l}),e(Q,{name:a.getString("serialNumber"),value:t,monospace:!0}),e(Q,{name:a.getString("version"),value:o}),e(Q,{name:a.getString("validity"),value:s}),e(Q,{name:a.getString("issued"),value:f?n(f):void 0}),e(Q,{name:a.getString("expired"),value:i?n(i):void 0}),e(Q,{name:a.getString("lastUpdate"),value:d?n(d):void 0}),e(Q,{name:a.getString("nextUpdate"),value:r?n(r):void 0})]};
33
+ /**
34
+ * @license
35
+ * Copyright (c) Peculiar Ventures, LLC.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE file in the root directory of this source tree.
39
+ */
40
+ function Z(e){var a;if(null===(a=e.params)||void 0===a?void 0:a.modulus){let a=e.params.modulus.byteLength;return a%2&&(a-=1),8*a}return null}function ee(e){var a;return(null===(a=e.params)||void 0===a?void 0:a.publicExponent)?3===e.params.publicExponent.byteLength?65537:3:null}const ae=n=>{const{publicKey:t}=n;if(!t)return null;function o(n){var t;return[e(Q,{name:a.getString("algorithm"),value:_(n.algorithm)}),e(Q,{name:a.getString("namedCurve"),value:_(null===(t=n.params)||void 0===t?void 0:t.namedCurve)}),e(Q,{name:a.getString("exponent"),value:ee(n)}),e(Q,{name:a.getString("modulus"),value:Z(n)}),e(Q,{name:a.getString("value"),value:c.Convert.ToHex(n.value),monospace:!0,collapse:!0})]}return[e(F,{value:a.getString("publicKeyInfo")}),o(t),Array.isArray(t.params)&&t.params.length&&t.params.map((a=>e(W,null,o(a))))]},ne=n=>{const{name:c}=n;return[e(F,{value:a.getString("subjectName")}),c.map((a=>e(Q,{name:a.name||a.type,value:a.value})))]},ce=n=>{const{name:c,issuerDnLink:t}=n,o=a.getString("issuerName");return[e(F,{value:t?e("peculiar-link",{href:t,type:"h6"},o):o}),c.map((a=>e(Q,{name:a.name||a.type,value:a.value})))]},te=n=>{const{signature:t}=n;if(!t)return null;function o(n){return[e(Q,{name:a.getString("algorithm"),value:_(n.algorithm)}),e(Q,{name:a.getString("value"),value:c.Convert.ToHex(n.value),monospace:!0,collapse:!0})]}return[e(F,{value:a.getString("signature")}),o(t),t.params&&t.params.length&&t.params.map((a=>e(W,null,o(a))))]},oe=n=>{const{thumbprints:c}=n;if(!c)return null;const t=Object.keys(c);return t.length?[e(F,{value:a.getString("fingerprints")}),t.map((a=>e(Q,{name:a,value:c[a],monospace:!0})))]:null},se=(n,c)=>{const{extension:t}=n;return[e(Q,{name:"Name",value:_(t.asn.extnID)}),e(Q,{name:"Critical",value:a.getString(t.asn.critical?"yes":"no")}),c,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},fe=a=>{const{extension:n}=a;return e(se,{extension:n},e(Q,{name:"Usage",value:n.value.toJSON().join(", ")}))},ie=n=>{const{extension:c}=n;return e(se,{extension:c},e(Q,{name:"Certificate Authority",value:a.getString(c.value.cA?"yes":"no")}),e(Q,{name:"Path Length Constraint",value:c.value.pathLenConstraint}))},de=a=>{const{extension:n}=a;return e(se,{extension:n},n.value.map(((a,n)=>e(Q,{name:`Purpose #${n+1}`,value:_(a)}))))},re=a=>{const{extension:n,getSubjectKeyIdChildrenLink:t,getSubjectKeyIdSiblingsLink:o}=a,s=c.Convert.ToHex(n.value.buffer),f=t(s),i=o(s);return e(se,{extension:n},e(Q,{name:"Key ID",value:s,monospace:!0,extraValue:[f&&e("span",null," [",e("peculiar-link",{href:f},"children"),"]"),i&&e("span",null," [",e("peculiar-link",{href:i},"siblings"),"]")]}))},le=a=>{const{extension:n,getAuthKeyIdParentLink:t,getAuthKeyIdSiblingsLink:o}=a,s=c.Convert.ToHex(n.value.keyIdentifier.buffer),f=t(s),i=o(s);return e(se,{extension:n},e(Q,{name:"Key ID",value:s,monospace:!0,extraValue:[f&&e("span",null," [",e("peculiar-link",{href:f},"parents"),"]"),i&&e("span",null," [",e("peculiar-link",{href:i},"siblings"),"]")]}))},be={otherName:"Other Name",rfc822Name:"RFC 822 Name",dNSName:"DNS Name",x400Address:"X400 Address",directoryName:"Directory Name",ediPartyName:"Edi Party Name ",uniformResourceIdentifier:"URI",iPAddress:"IP Address",registeredID:"Registered ID"},ue=a=>{const{generalName:n,getDNSNameLink:l,getIPAddressLink:b}=a;return n?Object.keys(n).map((a=>{const u=n[a];if(u instanceof o)return[e(Q,{name:be[a]||a,value:""}),u.map((a=>a.map((a=>e(Q,{name:t[a.type]||a.type,value:a.value.toString()})))))];if(u instanceof s){try{const a=f.parse(u.value,i);return e(Q,{name:t[u.typeId]||u.typeId,value:a.toString()})}catch(e){}try{const a=f.parse(u.value,d);if(a.explicitText)return e(Q,{name:t[u.typeId]||u.typeId,value:a.explicitText.toString()})}catch(e){}return e(Q,{name:t[u.typeId]||u.typeId,value:c.Convert.ToHex(u.value),monospace:!0})}return c.BufferSourceConverter.isBufferSource(u)?e(Q,{name:be[a]||a,value:c.Convert.ToString(u)}):e(Q,u instanceof r?{name:be[a]||a,value:u.partyName.toString()}:"dNSName"===a?{name:be[a]||a,value:u,href:l(u)}:"iPAddress"===a?{name:be[a]||a,value:u,href:b(u)}:{name:be[a]||a,value:u})})):null},me=a=>{const{extension:n}=a;return e(se,{extension:n},n.value.map((n=>{var c,t;return[null===(c=n.distributionPoint)||void 0===c?void 0:c.fullName.map((n=>e(ue,Object.assign({generalName:n},a)))),null===(t=n.cRLIssuer)||void 0===t?void 0:t.map((n=>e(ue,Object.assign({generalName:n},a))))]})))},ve=a=>{const{extension:n}=a;return e(se,{extension:n},n.value.map(((n,c)=>[e(Q,{name:`Description #${c+1}`,value:""}),e(Q,{name:"Method",value:_(n.accessMethod)}),e(ue,Object.assign({generalName:n.accessLocation},a))])))},xe=a=>{const{extension:n}=a;return e(se,{extension:n},n.value.map((n=>e(ue,Object.assign({generalName:n},a)))))},ge=a=>{const{extension:n}=a;return e(se,{extension:n},n.value.map(((a,n)=>{var c;return[e(Q,{name:`Policy #${n+1}`,value:""}),e(Q,{name:"ID",value:_(a.policyIdentifier)}),null===(c=a.policyQualifiers)||void 0===c?void 0:c.map(((a,c)=>{const t=[e(Q,{name:`Qualifier #${n+1}.${c+1}`,value:""}),e(Q,{name:"ID",value:_(a.policyQualifierId)})];if("1.3.6.1.5.5.7.2.1"===a.policyQualifierId){const n=f.parse(a.qualifier,i);t.push(e(Q,{name:"Value",value:n.toString()}))}if("1.3.6.1.5.5.7.2.2"===a.policyQualifierId){const n=f.parse(a.qualifier,d);n.explicitText&&t.push(e(Q,{name:"Value",value:n.explicitText.toString()}))}return t}))]})))},pe={"9606c02c690033aa1d145f59c6e2648d0549f0df96aab8db915a70d8ecf390a5":"Akamai CT","39376f545f7b4607f59742d768cd5d2437bf3473b6534a4834bcf72e681c83c9":"Alpha CT",a577ac9ced7548dd8f025b67a241089df86e0f476ec203c2ecbedb185f282638:"CNNIC CT",cdb5179b7fc1c046feea31136a3f8f002e6182faf8896fecc8b2f5b5ab604900:"Certly.IO","1fbc36e002ede97f40199e86b3573b8a4217d80187746ad0da03a06054d20df4":"Cloudflare “Nimbus2017”",db74afeecb29ecb1feca3e716d2ce5b9aabb36f7847183c75d9d4f37b61fbf64:"Cloudflare “Nimbus2018”","747eda8331ad331091219cce254f4270c2bffd5e422008c6373579e6107bcc56":"Cloudflare “Nimbus2019”","5ea773f9df56c0e7b536487dd049e0327a919a0c84a112128418759681714558":"Cloudflare “Nimbus2020”","4494652eb0eeceafc44007d8a8fe28c0dae682bed8cb31b53fd33396b5b681a8":"Cloudflare “Nimbus2021”","41c8cab1df22464a10c6a13a0942875e4e318b1b03ebeb4bc768f090629606f6":"Cloudflare “Nimbus2022”","7a328c54d8b72db620ea38e0521ee98416703213854d3bd22bc13a57a352eb52":"Cloudflare “Nimbus2023”","6ff141b5647e4222f7ef052cefae7c21fd608e27d2af5a6e9f4b8a37d6633ee5":"DigiCert Nessie2018",fe446108b1d01ab78a62ccfeab6ab2b2babff3abdad80a4d8b30df2d0008830c:"DigiCert Nessie2019",c652a0ec48ceb3fcab170992c43a87413309e80065a26252401ba3362a17c565:"DigiCert Nessie2020",eec095ee8d72640f92e3c3b91bc712a3696a097b4b6a1a1438e647b2cbedc5f9:"DigiCert Nessie2021","51a3b0f5fd01799c566db837788f0ca47acc1b27cbf79e88429a0dfed48b05e5":"DigiCert Nessie2022",b3737707e18450f86386d605a9dc11094a792db1670c0b87dcf0030e7936a59a:"DigiCert Nessie2023","5614069a2fd7c2ecd3f5e1bd44b23ec74676b9bc99115cc0ef949855d689d0dd":"DigiCert Server","8775bfe7597cf88c43995fbdf36eff568d475636ff4ab560c1b4eaff5ea0830f":"DigiCert Server 2",c1164ae0a772d2d4392dc80ac10770d4f0c49bde991a4840c1fa075164f63360:"DigiCert Yeti2018",e2694bae26e8e94009e8861bb63b83d43ee7fe7488fba48f2893019dddf1dbfe:"DigiCert Yeti2019",f095a459f200d18240102d2f93888ead4bfe1d47e399e1d034a6b0a8aa8eb273:"DigiCert Yeti2020","5cdc4392fee6ab4544b15e9ad456e61037fbd5fa47dca17394b25ee6f6c70eca":"DigiCert Yeti2021","2245450759552456963fa12ff1f76d86e0232663adc04b7f5dc6835c6ee20f02":"DigiCert Yeti2022","35cf191bbfb16c57bf0fad4c6d42cbbbb627202651ea3fe12aefa803c33bd64c":"DigiCert Yeti2023","717ea7420975be84a2723553f1777c26dd51af4e102144094d9019b462fb6668":"GDCA 1","14308d90ccd030135005c01ca526d81e84e87624e39b6248e08f724aea3bb42a":"GDCA 2",c9cf890a21109c666cc17a3ed065c930d0e0135a9feba85af14210b8072421aa:"GDCA CT #1","924a30f909336ff435d6993a10ac75a2c641728e7fc2d659ae6188ffad40ce01":"GDCA CT #2",fad4c97cc49ee2f8ac85c5ea5cea09d0220dbbf4e49c6b50662ff868f86b8c28:"Google “Argon2017”",a4501269055a15545e6211ab37bc103f62ae5576a45e4b1714453e1b22106a25:"Google “Argon2018”","63f2dbcde83bcc2ccf0b728427576b33a48d61778fbd75a638b1c768544bd88d":"Google “Argon2019”",b21e05cc8ba2cd8a204e8766f92bb98a2520676bdafa70e7b249532def8b905e:"Google “Argon2020”",f65c942fd1773022145418083094568ee34d131933bfdf0c2f200bcc4ef164e3:"Google “Argon2021”","2979bef09e393921f056739f63a577e5be577d9c600af8f94d5d265c255dc784":"Google “Argon2022”","68f698f81f6482be3a8ceeb9281d4cfc71515d6793d444d10a67acbb4f4ffbc4":"Google “Aviator”",c3bf03a7e1ca8841c607bae3ff4270fca5ec45b186ebbe4e2cf3fc778630f5f6:"Google “Crucible”","1d024b8eb1498b344dfd87ea3efc0996f7506f235d1d497061a4773c439c25fb":"Google “Daedalus”","293c519654c83965baaa50fc5807d4b76fbf587a2972dca4c30cf4e54547f478":"Google “Icarus”",a4b90990b418581487bb13a2cc67700a3c359804f91bdfb8e377cd0ec80ddc10:"Google “Pilot”",ee4bbdb775ce60bae142691fabe19e66a30f7e5fb072d88300c47b897aa8fdcb:"Google “Rocketeer”",bbd9dfbc1f8a71b593942397aa927b473857950aab52e81a909664368e1ed185:"Google “Skydiver”","52eb4b225ec896974850675f23e43bc1d021e3214ce52ecd5fa87c203cdfca03":"Google “Solera2018”","0b760e9a8b9a682f88985b15e947501a56446bba8830785c3842994386450c00":"Google “Solera2019”","1fc72ce5a1b799f400c359bff96ca3913548e8644220610952e9ba1774f7bac7":"Google “Solera2020”",a3c99845e80ab7ce00157b3742df0207dd272b2b602ecf98ee2c12db9c5ae7e7:"Google “Solera2021”","697aafca1a6b536fae21205046debad7e0eaea13d2432e6e9d8fb379f2b9aaf3":"Google “Solera2022”",a899d8780c9290aaf462f31880ccfbd52451e970d0fbf591ef75b0d99b645681:"Google “Submariner”",b0cc83e5a5f97d6baf7c09cc284904872ac7e88b132c6350b7c6fd26e16c6c77:"Google “Testtube”",b10cd559a6d67846811f7df9a51532739ac48d703bea0323da5d38755bc0ad4e:"Google “Xenon2018”","084114980071532c16190460bcfc47fdc2653afa292c72b37ff863ae29ccc9f0":"Google “Xenon2019”","07b75c1be57d68fff1b0c61d2315c7bae6577c5794b76aeebc613a1a69d3a21c":"Google “Xenon2020”","7d3ef2f88fff88556824c2c0ca9e5289792bc50e78097f2e6a9768997e22f0d7":"Google “Xenon2021”","46a555eb75fa912030b5a28969f4f37d112c4174befd49b885abf2fc70fe6d47":"Google “Xenon2022”","7461b4a09cfb3d41d75159575b2e7649a445a8d27709b0cc564a6482b7eb41a3":"Izenpe","8941449c70742e06b9fc9ce7b116ba0024aa36d59af44f0204404f00f7ea8566":"Izenpe “Argi”","296afa2d568bca0d2ea844956ae9721fc35fa355ecda99693aafd458a71aefdd":"Let“s Encrypt ”Clicky”","537b69a3564335a9c04904e39593b2c298eb8d7a6e83023635c627248cd6b440":"Nordu “flimsy”",aae70b7f3cb8d566c86c2f16979c9f445f69ab0eb4535589b2f77a030104f3cd:"Nordu “plausible”",e0127629e90496564e3d0147984498aa48f8adb16600eb7902a1ef9909906273:"PuChuangSiDa CT",cf55e28923497c340d5206d05353aeb25834b52f1f8dc9526809f212efdd7ca6:"SHECA CT 1","32dc59c2d4c41968d56e14bc61ac8f0e45db39faf3c155aa4252f5001fa0c623":"SHECA CT 2",db76fdadac65e7d09508886e2159bd8b90352f5fead3e3dc5e22eb350acc7b98:"Sectigo (Comodo) “Dodo” CT","6f5376ac31f03119d89900a45115ff77151c11d902c10029068db2089a37d913":"Sectigo (Comodo) “Mammoth” CT","5581d4c2169036014aea0b9b573c53f0c0e43878702508172fa3aa1d0713d30c":"Sectigo (Comodo) “Sabre” CT","34bb6ad6c3df9c03eea8a499ff7891486c9d5e5cac92d01f7bfd1bce19db48ef":"StartCom",ddeb1d2b7a0d4fa6208b81ad8168707e2e8e9d01d55c888d3d11c4cdb6ecbecc:"Symantec",a7ce4a4e6207e0addee5fdaa4b1f86768767b5d002a55d47310e7e670a95eab2:"Symantec Deneb","15970488d7b997a05beb52512adee8d2e8b4a3165264121a9fabfbd5f85ad93f":"Symantec “Sirius”",bc78e1dfc5f63c684649334da10fa15f0979692009c081b4f3f6917f3ed9b8a5:"Symantec “Vega”",b0b784bc81c0ddc47544e883f05985bb9077d134d8ab88b2b2e533980b8e508b:"Up In The Air “Behind the Sofa”",ac3b9aed7fa9674757159e6d7d575672f9d98100941e9bdeffeca1313b75782d:"Venafi","03019df3fd85a69a8ebd1facc6da9ba73e469774fe77f579fc5a08b8328c1d6b":"Venafi Gen2 CT","41b2dc2e89e63ce4af1ba7bb29bf68c6dee6f9f1cc047e30dffae3b3ba259263":"WoSign","63d0006026dde10bb0601f452446965ee2b6ea2cd4fbc95ac866a550af9075b7":"WoSign 2","9e4ff73dc3ce220b69217c899e468076abf8d78636d5ccfc85a31a75628ba88b":"WoSign CT #1"},ye=a=>{const{extension:c}=a;return e(se,{extension:c},c.value.toJSON().map(((a,c)=>[e(Q,{name:`SCT #${c+1}`,value:""}),e(Q,{name:"Version",value:a.version+1}),e(Q,{name:"Log Operator",value:pe[a.logId]||a.logId}),e(Q,{name:"Log Key ID",value:a.logId,monospace:!0}),e(Q,{name:"Timestamp",value:n(a.timestamp)}),e(Q,{name:"Signature Algorithm",value:`${a.hashAlgorithm} ${a.signatureAlgorithm}`.toUpperCase()}),e(Q,{name:"Signature",value:a.signature,monospace:!0})])))},Ce=a=>{var n,c;const{extension:t}=a;return e(se,{extension:t},null===(n=t.value.excludedSubtrees)||void 0===n?void 0:n.map((n=>e(ue,Object.assign({generalName:n.base},a)))),null===(c=t.value.permittedSubtrees)||void 0===c?void 0:c.map((n=>e(ue,Object.assign({generalName:n.base},a)))))},he=a=>{const{extension:n}=a;return e(se,{extension:n},e(Q,{name:"Template ID",value:n.value.templateID}),e(Q,{name:"Template Major Version",value:n.value.templateMajorVersion}),e(Q,{name:"Template Minor Version",value:n.value.templateMinorVersion}))},Ne=a=>{const{extension:n}=a;return e(se,{extension:n},e(Q,{name:"Name",value:n.value.toString()}))},Se=a=>{const{extension:n}=a,c=n.value.getVersion();return e(se,{extension:n},e(Q,{name:"Certificate Index",value:c.certificateIndex}),e(Q,{name:"Key Index",value:c.keyIndex}))},Ae=a=>{const{extension:n}=a;return e(se,{extension:n},n.value.map(((a,n)=>[e(Q,{name:`Statement #${n+1}`,value:""}),e(Q,{name:"ID",value:_(a.statementId)}),e(Q,{name:"Info",value:a.statementInfo.byteLength?c.Convert.ToHex(a.statementInfo):null,monospace:!0})])))},De=a=>{const{extension:n}=a;return e(se,{extension:n},e(Q,{name:"Comment",value:n.value.value}))},Ie=a=>{const{extension:n}=a;return e(se,{extension:n},e(Q,{name:"Type",value:n.value.toJSON().join(", ")}))},Ge=a=>{const{extension:n}=a;return e(se,{extension:n},e(Q,{name:"Role",value:n.value.text}))},je=a=>{const{extension:n,getLEILink:c}=a;return e(se,{extension:n},e(Q,{name:"Identifier",value:n.value.text,href:c(n.value.text)}))},Te=n=>{const{extension:c}=n;return e(se,{extension:c},e(Q,{name:"Version",value:c.value.version}),e(ue,Object.assign({generalName:c.value.location},n)),e(Q,{name:"Requires Auth",value:a.getString(c.value.requiresAuth?"yes":"no")}))},Oe=a=>{const{extension:n}=a;return e(se,{extension:n},e(Q,{name:"Version",value:n.value.version}))},ke=a=>{const{extension:n}=a;return e(se,{extension:n},e(Q,{name:"Reason",value:n.value.toJSON()}))};
41
+ /**
42
+ * @license
43
+ * Copyright (c) Peculiar Ventures, LLC.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE file in the root directory of this source tree.
47
+ */
48
+ /**
49
+ * @license
50
+ * Copyright (c) Peculiar Ventures, LLC.
51
+ *
52
+ * This source code is licensed under the MIT license found in the
53
+ * LICENSE file in the root directory of this source tree.
54
+ */
55
+ function $e(e){return c.Convert.ToString(e.values[0])}
56
+ /**
57
+ * @license
58
+ * Copyright (c) Peculiar Ventures, LLC.
59
+ *
60
+ * This source code is licensed under the MIT license found in the
61
+ * LICENSE file in the root directory of this source tree.
62
+ */const Pe=a=>{const{extension:n}=a;return e(se,{extension:n},n.value.map(((a,n)=>[e(Q,{name:`Attribute #${n+1}`,value:""}),e(Q,{name:"Type",value:_(a.type)}),e(Q,{name:"Value",value:$e(a)})])))},Le=a=>{const{extension:n}=a;return e(se,{extension:n},e(Q,{name:"Value",value:n.value,monospace:!0}))},Ve=a=>{const{extension:c}=a;return e(se,{extension:c},e(Q,{name:"Not Before",value:n(c.value.notBefore)}),e(Q,{name:"Not After",value:n(c.value.notAfter)}))},Re=a=>{const{extension:n}=a;return e(se,{extension:n},e(Q,{name:"Version",value:n.value.entrustVers}),e(Q,{name:"Info Flags",value:n.value.entrustInfoFlags.toJSON().join(", ")}))},Ue=a=>{const{extension:n}=a;return e(se,{extension:n},n.value.map(((a,n)=>[e(Q,{name:`Biometric #${n+1}`,value:""}),e(Q,{name:"OID",value:_(a.typeOfBiometricData.biometricDataOid)}),e(Q,{name:"Type",value:a.typeOfBiometricData.predefinedBiometricType}),e(Q,{name:"Algorithm",value:_(a.hashAlgorithm.algorithm)}),e(Q,{name:"Hash",value:c.Convert.ToHex(a.biometricDataHash.buffer),monospace:!0}),e(Q,{name:"Source Uri",value:a.sourceDataUri})])))},Ee=a=>{const{extension:n}=a,t=a=>a?a.map((a=>{const{imageDetails:n}=a;return[e(Q,{name:"Image Type",value:n.mediaType}),e(Q,{name:"Image Hash",value:c.Convert.ToHex(n.logotypeHash[0].hashValue),monospace:!0}),e(Q,{name:"Image URL",value:n.logotypeURI[0],monospace:!0,collapse:!0}),e(Q,{name:"Image Hash Algorithm",value:_(n.logotypeHash[0].hashAlg.algorithm)})]})):null,o=a=>a?a.map((a=>{const{audioDetails:n}=a;return[e(Q,{name:"Audio Type",value:n.mediaType}),e(Q,{name:"Audio Hash",value:c.Convert.ToHex(n.logotypeHash[0].hashValue),monospace:!0}),e(Q,{name:"Audio URL",value:n.logotypeURI[0],monospace:!0,collapse:!0}),e(Q,{name:"Audio Hash Algorithm",value:_(n.logotypeHash[0].hashAlg.algorithm)})]})):null,s=(a,n)=>{if(!n||!n.direct)return null;const{image:c,audio:s}=n.direct;return[e(Q,{name:"Type",value:a}),t(c),o(s),e("tr",null,e("td",null),e("td",null))]};return e(se,{extension:n},s("Subject",n.value.subjectLogo),s("Issuer",n.value.issuerLogo))},Ke=a=>{const{extension:n}=a;return e(se,{extension:n},n.value.map(((a,n)=>[e(Q,{name:`Entry #${n+1}`,value:""}),e(Q,{name:"SPC",value:a.spc}),e(Q,{name:"Range",value:a.range?`start=${a.range.start} count==${a.range.count}`:null}),e(Q,{name:"One",value:a.one})])))},He=a=>{const{extension:n}=a;return e(se,{extension:n},n.value.requireExplicitPolicy&&e(Q,{name:"Require Explicit Policy",value:l.toASN(n.value.requireExplicitPolicy).valueBlock.toString()}),n.value.inhibitPolicyMapping&&e(Q,{name:"Inhibit Policy Mapping",value:l.toASN(n.value.inhibitPolicyMapping).valueBlock.toString()}))},Be=a=>{const{extension:n}=a;return e(se,{extension:n},n.value.map(((a,n)=>[e(Q,{name:`Policy #${n+1}`,value:""}),e(Q,{name:"Issuer Domain",value:_(a.issuerDomainPolicy)}),e(Q,{name:"Subject Domain",value:_(a.subjectDomainPolicy)})])))},Me=n=>{const{extension:c}=n;return e(se,{extension:c},e(Q,{name:a.getString("value"),value:c.value.value}))},Xe=n=>{var c;const{extension:t}=n;return e(se,{extension:t},null===(c=t.value.distributionPoint)||void 0===c?void 0:c.fullName.map((a=>e(ue,Object.assign({generalName:a},n)))),t.value.onlySomeReasons&&e(Q,{name:a.getString("onlyReasons"),value:t.value.onlySomeReasons.toJSON().join(", ")}),t.value.indirectCRL&&e(Q,{name:a.getString("indirectCRL"),value:a.getString("yes")}),t.value.onlyContainsUserCerts&&e(Q,{name:a.getString("onlyUserCertificates"),value:a.getString("yes")}),t.value.onlyContainsAttributeCerts&&e(Q,{name:a.getString("onlyAttributeCertificates"),value:a.getString("yes")}),t.value.onlyContainsCACerts&&e(Q,{name:a.getString("onlyCACertificates"),value:a.getString("yes")}))},Ye=a=>{const{extensions:n,title:c}=a;return n&&n.length?[e(F,{value:c||"Extensions"}),n.map((n=>{try{return n.value instanceof b?e(fe,{extension:n}):n.value instanceof u?e(ie,{extension:n}):n.value instanceof m?e(de,{extension:n}):n.value instanceof v?e(re,Object.assign({extension:n},a)):n.value instanceof x?e(le,Object.assign({extension:n},a)):n.value instanceof g?e(me,Object.assign({extension:n},a)):n.value instanceof p||n.value instanceof y?e(ve,Object.assign({extension:n},a)):n.value instanceof C?e(xe,Object.assign({extension:n},a)):n.value instanceof h?e(ge,{extension:n}):n.value instanceof N?e(ye,{extension:n}):n.value instanceof S?e(Ce,Object.assign({extension:n},a)):n.value instanceof A?e(he,{extension:n}):n.value instanceof D?e(Ne,{extension:n}):n.value instanceof I?e(Se,{extension:n}):n.value instanceof G?e(Ae,{extension:n}):n.value instanceof j?e(De,{extension:n}):n.value instanceof T?e(Ie,{extension:n}):n.value instanceof O?e(Ge,{extension:n}):n.value instanceof k?e(je,Object.assign({extension:n},a)):n.value instanceof $?e(Te,Object.assign({extension:n},a)):n.value instanceof P?e(Oe,{extension:n}):n.value instanceof L?e(ke,{extension:n}):n.value instanceof V?e(Pe,{extension:n}):n.value instanceof R?e(Ve,{extension:n}):n.value instanceof U?e(Re,{extension:n}):n.value instanceof E?e(Ue,{extension:n}):n.value instanceof K?e(Ee,{extension:n}):n.value instanceof H?e(Ke,{extension:n}):n.value instanceof B?e(He,{extension:n}):n.value instanceof M?e(Be,{extension:n}):n.value instanceof X?e(Me,{extension:n}):n.value instanceof Y?e(Xe,Object.assign({extension:n},a)):e("string"==typeof n.value?Le:se,{extension:n})}catch(e){return console.error("Error render extension:",n.asn.extnID),null}}))]:null},_e=n=>{const{certificate:c}=n;return[e(F,{value:a.getString("miscellaneous")}),e("tr",null,e("td",{class:"vertical_align_middle"},e("peculiar-typography",{color:"grey_5"},a.getString("download"),":")),e("td",null,e("peculiar-button-split",{onClick:()=>c.downloadAsPEM(),actions:[{text:a.getString("download.der"),onClick:()=>c.downloadAsDER()}]},a.getString("download.pem"))))]};
63
+ /**
64
+ * @license
65
+ * Copyright (c) Peculiar Ventures, LLC.
66
+ *
67
+ * This source code is licensed under the MIT license found in the
68
+ * LICENSE file in the root directory of this source tree.
69
+ */export{J as B,Ye as E,ue as G,ce as I,_e as M,ae as P,Q as R,te as S,W as T,F as a,oe as b,q as c,w as d,z as e,ne as f,_ as g}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
3
  */
4
- import{r as t,c as r,h as e,H as o}from"./p-f7683ba5.js";import{X as a}from"./p-c9f01b83.js";import{Q as i}from"./p-3a4556ef.js";import"./p-cff9655c.js";import{l}from"./p-fec9d812.js";const s=class{constructor(e){t(this,e),this.detailsOpen=r(this,"detailsOpen",7),this.detailsClose=r(this,"detailsClose",7),this.certificates=[],this.filterWithSearch=!0,this.highlightWithSearch=!0,this.search="",this.certificatesDecoded=[],this.isDecodeInProcess=!0,this.isHasTests=!1,this.isHasRoots=!1,this.handleClickDetails=(t,r)=>{r.stopPropagation(),this.certificateSelectedForDetails=t,this.detailsOpen.emit(t)},this.handleModalClose=()=>{this.certificateSelectedForDetails=void 0,this.detailsClose.emit()},this.handleSearch=t=>{this.search=t.target.value.trim()}}componentWillLoad(){this.certificatesDecodeAndSet()}watchCertificates(t,r){JSON.stringify(t)!==JSON.stringify(r)&&this.certificatesDecodeAndSet()}async certificatesDecodeAndSet(){let t=!1,r=!1;if(!Array.isArray(this.certificates))return;const e=[];for(const o of this.certificates)try{const i=new a(o.value);await i.getThumbprint("SHA-1"),e.push({body:i,tests:o.tests,name:o.name}),!r&&i.isRoot&&(r=!0),t||o.tests&&(o.tests.expired||o.tests.revoked||o.tests.valid)&&(t=!0)}catch(t){console.error("Error certificate parse:",t)}this.isHasTests=t,this.isHasRoots=r,this.isDecodeInProcess=!1,this.certificatesDecoded=e}handleClickDownloadAsPem(t,r){r.stopPropagation(),t.body.downloadAsPEM(t.name||t.body.commonName)}handleClickDownloadAsDer(t,r){r.stopPropagation(),t.body.downloadAsDER(t.name||t.body.commonName)}handleClickRow(t){this.expandedRow=this.expandedRow===t?void 0:t}getMaxColSpanValue(){let t=4;return this.isHasTests&&(t+=1),this.isHasRoots||(t+=1),t}renderExpandedRow(t){const r=this.getMaxColSpanValue();return e("tr",{class:"expanded_summary"},e("td",{colSpan:r},e("peculiar-certificate-summary",{certificate:t,showIssuer:!t.isRoot})))}renderCertificateTests(t){if(!t)return null;const r=[];return t.valid&&r.push(e("peculiar-button",{class:"button_table_action",href:t.valid,target:"_blank"},l.getString("valid"))),t.revoked&&r.push(e("peculiar-button",{class:"button_table_action",href:t.revoked,target:"_blank"},l.getString("revoked"))),t.expired&&r.push(e("peculiar-button",{class:"button_table_action",href:t.expired,target:"_blank"},l.getString("expired"))),r}renderContentState(){const t=this.highlightWithSearch?this.search:"",r=[];return this.certificatesDecoded.forEach(((o,a)=>{const s=a===this.expandedRow,c=i[o.body.signature.algorithm]||o.body.signature.algorithm;this.filterWithSearch&&this.search&&-1===[c,o.body.issuerCommonName,o.name,o.body.commonName,o.body.thumbprints["SHA-1"]].join(" ").toLowerCase().indexOf(this.search.toLowerCase())||r.push([e("tr",{class:{expanded:s},onClick:this.handleClickRow.bind(this,a),key:o.body.thumbprints["SHA-1"]},!this.isHasRoots&&e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("issuer"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},o.body.issuerCommonName))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("name"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},o.name||o.body.commonName))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("publicKey"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},c))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("fingerprint"),"  (SHA-1):"),e("peculiar-typography",{class:"content",monospace:!0},e("peculiar-highlight-words",{search:t},o.body.thumbprints["SHA-1"]))),e("td",{class:"align_center"},e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("actions"),":"),e("span",{class:"content"},e("peculiar-button",{onClick:this.handleClickDetails.bind(this,o.body),class:"button_table_action"},l.getString("details")),e("peculiar-button-split",{onClick:this.handleClickDownloadAsPem.bind(this,o),actions:[{text:l.getString("download.der"),onClick:this.handleClickDownloadAsDer.bind(this,o)}],class:"button_table_action"},l.getString("download.pem")))),this.isHasTests&&e("td",{class:"align_center"},e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("testURLs"),":"),e("span",{class:"content"},this.renderCertificateTests(o.tests)))),s&&this.renderExpandedRow(o.body)])})),r}renderCertificateDetailsModal(){return this.certificateSelectedForDetails?e("div",{class:"modal_wrapper",role:"presentation","aria-hidden":"false",part:"presentation"},e("div",{class:"modal_backdrop",onClick:this.handleModalClose,"aria-hidden":"true"}),e("div",{class:"modal_container",role:"dialog",part:"presentation_container"},e("header",{class:"modal_title"},e("peculiar-typography",{type:"h4"},l.getString("certificateDetails")),e("button",{class:"modal_close",onClick:this.handleModalClose,type:"button","aria-label":"Close",title:"Close"},e("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.7204 14.375L21.0654 19.7185C21.3115 19.9658 21.3115 20.3693 21.0654 20.6154L20.615 21.0645C20.3689 21.3118 19.9667 21.3118 19.7181 21.0645L14.3744 15.721L9.03194 21.0645C8.78327 21.3118 8.3811 21.3118 8.13371 21.0645L7.68459 20.6154C7.43847 20.3693 7.43847 19.9658 7.68459 19.7185L13.0296 14.375L7.68459 9.03155C7.43847 8.78417 7.43847 8.38074 7.68459 8.13463L8.13371 7.68554C8.3811 7.43815 8.78327 7.43815 9.03194 7.68554L14.3744 13.029L19.7181 7.68554C19.9667 7.43815 20.3689 7.43815 20.615 7.68554L21.0654 8.13463C21.3115 8.38074 21.3115 8.78417 21.0654 9.03155L15.7204 14.375Z"})))),e("div",{class:"modal_content"},e("peculiar-certificate-viewer",{certificate:this.certificateSelectedForDetails})))):null}renderSearch(){return this.filterWithSearch||this.highlightWithSearch?e("div",{class:"search_section"},e("input",{onInput:this.handleSearch,type:"search",value:"",class:"input_search",disabled:!this.certificatesDecoded.length,placeholder:"Search"})):null}renderEmptyState(){const t=this.getMaxColSpanValue();return e("tr",null,e("td",{class:"status_wrapper",colSpan:t},e("peculiar-typography",{type:"b1",align:"center"},"There are no certificates available.")))}renderEmptySearchState(){const t=this.getMaxColSpanValue();return e("tr",null,e("td",{class:"status_wrapper",colSpan:t},e("peculiar-typography",{type:"b1",align:"center"},"No results found for “",this.search,"“")))}renderLoadingState(){return e("div",{class:"loading_container"},e("peculiar-circular-progress",null))}renderBody(){if(this.isDecodeInProcess)return null;if(!this.certificatesDecoded.length)return this.renderEmptyState();const t=this.renderContentState();return this.search&&!t.length?this.renderEmptySearchState():t}render(){return e(o,null,this.renderSearch(),e("table",{class:{m_extra:this.isHasTests||!this.isHasRoots}},e("thead",null,e("tr",null,!this.isHasRoots&&e("th",{class:"col_issuer"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("issuer"))),e("th",{class:"col_name"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("name"))),e("th",{class:"col_public_key"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("publicKey"))),e("th",{class:"col_fingerprint"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("fingerprint"),"  (SHA-1)")),e("th",{class:"col_actions"},e("peculiar-typography",{type:"h7",align:"center"},l.getString("actions"))),this.isHasTests&&e("th",{class:"col_tests"},e("peculiar-typography",{type:"h7",align:"center"},l.getString("testURLs"))))),e("tbody",null,this.renderBody())),this.renderCertificateDetailsModal(),this.isDecodeInProcess&&this.renderLoadingState())}static get watchers(){return{certificates:["watchCertificates"]}}};s.style=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;min-width:280px;overflow:auto;position:relative;background:white;background:rgba(var(--pv-color-light-rgb), 1)}table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0}table thead{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07)}table tr td{vertical-align:middle}table tbody tr:not(.expanded_summary){cursor:pointer}table tr{border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table th{padding:15px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table td{padding:8px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table .col_issuer,table .col_name,table .col_public_key{width:16%}table .col_actions,table .col_tests{width:18%}table.m_extra .col_issuer,table.m_extra .col_name,table.m_extra .col_public_key{width:12%}table.m_extra .col_actions,table.m_extra .col_tests{width:17%}table tr.expanded td:not(:last-child){border-right-color:transparent}table tr.expanded td{border-bottom-color:transparent}.expanded{border-bottom-color:transparent;background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary td{vertical-align:top;padding:10px 20px 26px}@-webkit-keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}.modal_wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:auto;text-align:center;-webkit-animation:fadeIn 200ms;animation:fadeIn 200ms;padding:30px 10px}.modal_wrapper:before{display:inline-block;vertical-align:middle;width:0;height:100%;content:""}.modal_backdrop{background:rgba(42, 49, 52, 0.5);background:rgba(var(--pv-color-dark-rgb), 0.5);z-index:-1;position:fixed;top:0;right:0;bottom:0;left:0}.modal_container{position:relative;display:inline-block;vertical-align:middle;width:100%;max-width:900px;text-align:left;border-radius:3px;overflow:hidden;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);height:100%}.modal_title{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);border-bottom-width:1px;border-bottom-style:solid;padding:20px 60px 16px 20px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:60px}.modal_content{height:calc(100% - 60px);overflow-y:auto}.modal_close{cursor:pointer;border:none;background-color:transparent;position:absolute;top:0;bottom:0;right:0;padding:0 12px;-webkit-transition:opacity 100ms;transition:opacity 100ms;outline:none}.modal_close:hover{opacity:0.6}.modal_close svg{fill:#2a3134;fill:rgba(var(--pv-color-dark-rgb), 1)}.button_table_action{margin:2px}.mobile_title{display:none}.status_wrapper{height:85px;text-align:center;pointer-events:none}.search_section{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);height:50px;padding:10px;border-width:1px 1px 0 1px;border-style:solid}.input_search{height:100%;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:0 14px;font-size:12px;outline:none;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.input_search::-webkit-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-moz-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search:-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.loading_container{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(42, 49, 52, 0.3);background:rgba(var(--pv-color-dark-rgb), 0.3);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.align_center{text-align:center}@media (hover: hover){table tbody tr:not(.expanded_summary):hover{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}}@media (max-width: 900px){table,tbody,tr,td{display:block}thead{display:none}tr{padding:0 15px;border-width:1px;border-style:solid}tr:not(:first-child){margin-top:-1px}tr:not(.expanded_summary) td:first-child{border:none !important}table td{padding-left:0;padding-right:0;border-width:1px 0 0 0 !important;border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr.expanded_summary td{padding:15px 0}.mobile_title{display:inline-block;width:90px;vertical-align:middle}.modal_title{padding:17px 60px 17px 15px}.content{display:inline-block;width:calc(100% - 90px);vertical-align:middle;text-align:left}.expanded_summary{border-top-color:transparent;padding-bottom:10px}.expanded_summary td:before{content:none}.status_wrapper{height:266px;display:table-cell}.search_section{height:60px;padding:15px}.align_center{text-align:inherit}}';export{s as peculiar_certificates_viewer}
4
+ import{r as t,c as r,h as e,H as o}from"./p-f7683ba5.js";import{X as a}from"./p-ec8787ed.js";import{_ as i}from"./p-c72f8e8f.js";import"./p-cff9655c.js";import{l}from"./p-fec9d812.js";const s=class{constructor(e){t(this,e),this.detailsOpen=r(this,"detailsOpen",7),this.detailsClose=r(this,"detailsClose",7),this.certificates=[],this.filterWithSearch=!0,this.highlightWithSearch=!0,this.search="",this.certificatesDecoded=[],this.isDecodeInProcess=!0,this.isHasTests=!1,this.isHasRoots=!1,this.handleClickDetails=(t,r)=>{r.stopPropagation(),this.certificateSelectedForDetails=t,this.detailsOpen.emit(t)},this.handleModalClose=()=>{this.certificateSelectedForDetails=void 0,this.detailsClose.emit()},this.handleSearch=t=>{this.search=t.target.value.trim()}}componentWillLoad(){this.certificatesDecodeAndSet()}watchCertificates(t,r){JSON.stringify(t)!==JSON.stringify(r)&&this.certificatesDecodeAndSet()}async certificatesDecodeAndSet(){let t=!1,r=!1;if(!Array.isArray(this.certificates))return;const e=[];for(const o of this.certificates)try{const i=new a(o.value);await i.getThumbprint("SHA-1"),e.push({body:i,tests:o.tests,name:o.name}),!r&&i.isRoot&&(r=!0),t||o.tests&&(o.tests.expired||o.tests.revoked||o.tests.valid)&&(t=!0)}catch(t){console.error("Error certificate parse:",t)}this.isHasTests=t,this.isHasRoots=r,this.isDecodeInProcess=!1,this.certificatesDecoded=e}handleClickDownloadAsPem(t,r){r.stopPropagation(),t.body.downloadAsPEM(t.name||t.body.commonName)}handleClickDownloadAsDer(t,r){r.stopPropagation(),t.body.downloadAsDER(t.name||t.body.commonName)}handleClickRow(t){this.expandedRow=this.expandedRow===t?void 0:t}getMaxColSpanValue(){let t=4;return this.isHasTests&&(t+=1),this.isHasRoots||(t+=1),t}renderExpandedRow(t){const r=this.getMaxColSpanValue();return e("tr",{class:"expanded_summary"},e("td",{colSpan:r},e("peculiar-certificate-summary",{certificate:t,showIssuer:!t.isRoot})))}renderCertificateTests(t){if(!t)return null;const r=[];return t.valid&&r.push(e("peculiar-button",{class:"button_table_action",href:t.valid,target:"_blank"},l.getString("valid"))),t.revoked&&r.push(e("peculiar-button",{class:"button_table_action",href:t.revoked,target:"_blank"},l.getString("revoked"))),t.expired&&r.push(e("peculiar-button",{class:"button_table_action",href:t.expired,target:"_blank"},l.getString("expired"))),r}renderContentState(){const t=this.highlightWithSearch?this.search:"",r=[];return this.certificatesDecoded.forEach(((o,a)=>{const s=a===this.expandedRow,c=i[o.body.signature.algorithm]||o.body.signature.algorithm;this.filterWithSearch&&this.search&&-1===[c,o.body.issuerCommonName,o.name,o.body.commonName,o.body.thumbprints["SHA-1"]].join(" ").toLowerCase().indexOf(this.search.toLowerCase())||r.push([e("tr",{class:{expanded:s},onClick:this.handleClickRow.bind(this,a),key:o.body.thumbprints["SHA-1"]},!this.isHasRoots&&e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("issuer"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},o.body.issuerCommonName))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("name"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},o.name||o.body.commonName))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("publicKey"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},c))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("fingerprint"),"  (SHA-1):"),e("peculiar-typography",{class:"content",monospace:!0},e("peculiar-highlight-words",{search:t},o.body.thumbprints["SHA-1"]))),e("td",{class:"align_center"},e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("actions"),":"),e("span",{class:"content"},e("peculiar-button",{onClick:this.handleClickDetails.bind(this,o.body),class:"button_table_action"},l.getString("details")),e("peculiar-button-split",{onClick:this.handleClickDownloadAsPem.bind(this,o),actions:[{text:l.getString("download.der"),onClick:this.handleClickDownloadAsDer.bind(this,o)}],class:"button_table_action"},l.getString("download.pem")))),this.isHasTests&&e("td",{class:"align_center"},e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("testURLs"),":"),e("span",{class:"content"},this.renderCertificateTests(o.tests)))),s&&this.renderExpandedRow(o.body)])})),r}renderCertificateDetailsModal(){return this.certificateSelectedForDetails?e("div",{class:"modal_wrapper",role:"presentation","aria-hidden":"false",part:"presentation"},e("div",{class:"modal_backdrop",onClick:this.handleModalClose,"aria-hidden":"true"}),e("div",{class:"modal_container",role:"dialog",part:"presentation_container"},e("header",{class:"modal_title"},e("peculiar-typography",{type:"h4"},l.getString("certificateDetails")),e("button",{class:"modal_close",onClick:this.handleModalClose,type:"button","aria-label":"Close",title:"Close"},e("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.7204 14.375L21.0654 19.7185C21.3115 19.9658 21.3115 20.3693 21.0654 20.6154L20.615 21.0645C20.3689 21.3118 19.9667 21.3118 19.7181 21.0645L14.3744 15.721L9.03194 21.0645C8.78327 21.3118 8.3811 21.3118 8.13371 21.0645L7.68459 20.6154C7.43847 20.3693 7.43847 19.9658 7.68459 19.7185L13.0296 14.375L7.68459 9.03155C7.43847 8.78417 7.43847 8.38074 7.68459 8.13463L8.13371 7.68554C8.3811 7.43815 8.78327 7.43815 9.03194 7.68554L14.3744 13.029L19.7181 7.68554C19.9667 7.43815 20.3689 7.43815 20.615 7.68554L21.0654 8.13463C21.3115 8.38074 21.3115 8.78417 21.0654 9.03155L15.7204 14.375Z"})))),e("div",{class:"modal_content"},e("peculiar-certificate-viewer",{certificate:this.certificateSelectedForDetails})))):null}renderSearch(){return this.filterWithSearch||this.highlightWithSearch?e("div",{class:"search_section"},e("input",{onInput:this.handleSearch,type:"search",value:"",class:"input_search",disabled:!this.certificatesDecoded.length,placeholder:"Search"})):null}renderEmptyState(){const t=this.getMaxColSpanValue();return e("tr",null,e("td",{class:"status_wrapper",colSpan:t},e("peculiar-typography",{type:"b1",align:"center"},"There are no certificates available.")))}renderEmptySearchState(){const t=this.getMaxColSpanValue();return e("tr",null,e("td",{class:"status_wrapper",colSpan:t},e("peculiar-typography",{type:"b1",align:"center"},"No results found for “",this.search,"“")))}renderLoadingState(){return e("div",{class:"loading_container"},e("peculiar-circular-progress",null))}renderBody(){if(this.isDecodeInProcess)return null;if(!this.certificatesDecoded.length)return this.renderEmptyState();const t=this.renderContentState();return this.search&&!t.length?this.renderEmptySearchState():t}render(){return e(o,null,this.renderSearch(),e("table",{class:{m_extra:this.isHasTests||!this.isHasRoots}},e("thead",null,e("tr",null,!this.isHasRoots&&e("th",{class:"col_issuer"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("issuer"))),e("th",{class:"col_name"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("name"))),e("th",{class:"col_public_key"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("publicKey"))),e("th",{class:"col_fingerprint"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("fingerprint"),"  (SHA-1)")),e("th",{class:"col_actions"},e("peculiar-typography",{type:"h7",align:"center"},l.getString("actions"))),this.isHasTests&&e("th",{class:"col_tests"},e("peculiar-typography",{type:"h7",align:"center"},l.getString("testURLs"))))),e("tbody",null,this.renderBody())),this.renderCertificateDetailsModal(),this.isDecodeInProcess&&this.renderLoadingState())}static get watchers(){return{certificates:["watchCertificates"]}}};s.style=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;min-width:280px;overflow:auto;position:relative;background:white;background:rgba(var(--pv-color-light-rgb), 1)}table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0}table thead{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07)}table tr td{vertical-align:middle}table tbody tr:not(.expanded_summary){cursor:pointer}table tr{border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table th{padding:15px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table td{padding:8px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table .col_issuer,table .col_name,table .col_public_key{width:16%}table .col_actions,table .col_tests{width:18%}table.m_extra .col_issuer,table.m_extra .col_name,table.m_extra .col_public_key{width:12%}table.m_extra .col_actions,table.m_extra .col_tests{width:17%}table tr.expanded td:not(:last-child){border-right-color:transparent}table tr.expanded td{border-bottom-color:transparent}.expanded{border-bottom-color:transparent;background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary td{vertical-align:top;padding:10px 20px 26px}@-webkit-keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}.modal_wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:auto;text-align:center;-webkit-animation:fadeIn 200ms;animation:fadeIn 200ms;padding:30px 10px}.modal_wrapper:before{display:inline-block;vertical-align:middle;width:0;height:100%;content:""}.modal_backdrop{background:rgba(42, 49, 52, 0.5);background:rgba(var(--pv-color-dark-rgb), 0.5);z-index:-1;position:fixed;top:0;right:0;bottom:0;left:0}.modal_container{position:relative;display:inline-block;vertical-align:middle;width:100%;max-width:900px;text-align:left;border-radius:3px;overflow:hidden;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);height:100%}.modal_title{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);border-bottom-width:1px;border-bottom-style:solid;padding:20px 60px 16px 20px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:60px}.modal_content{height:calc(100% - 60px);overflow-y:auto}.modal_close{cursor:pointer;border:none;background-color:transparent;position:absolute;top:0;bottom:0;right:0;padding:0 12px;-webkit-transition:opacity 100ms;transition:opacity 100ms;outline:none}.modal_close:hover{opacity:0.6}.modal_close svg{fill:#2a3134;fill:rgba(var(--pv-color-dark-rgb), 1)}.button_table_action{margin:2px}.mobile_title{display:none}.status_wrapper{height:85px;text-align:center;pointer-events:none}.search_section{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);height:50px;padding:10px;border-width:1px 1px 0 1px;border-style:solid}.input_search{height:100%;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:0 14px;font-size:12px;outline:none;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.input_search::-webkit-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-moz-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search:-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.loading_container{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(42, 49, 52, 0.3);background:rgba(var(--pv-color-dark-rgb), 0.3);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.align_center{text-align:center}@media (hover: hover){table tbody tr:not(.expanded_summary):hover{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}}@media (max-width: 900px){table,tbody,tr,td{display:block}thead{display:none}tr{padding:0 15px;border-width:1px;border-style:solid}tr:not(:first-child){margin-top:-1px}tr:not(.expanded_summary) td:first-child{border:none !important}table td{padding-left:0;padding-right:0;border-width:1px 0 0 0 !important;border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr.expanded_summary td{padding:15px 0}.mobile_title{display:inline-block;width:90px;vertical-align:middle}.modal_title{padding:17px 60px 17px 15px}.content{display:inline-block;width:calc(100% - 90px);vertical-align:middle;text-align:left}.expanded_summary{border-top-color:transparent;padding-bottom:10px}.expanded_summary td:before{content:none}.status_wrapper{height:266px;display:table-cell}.search_section{height:60px;padding:15px}.align_center{text-align:inherit}}';export{s as peculiar_certificates_viewer}