@peculiar/certificates-viewer 2.0.1 → 2.0.2-alpha.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.
- package/README.md +3 -3
- package/dist/cjs/_commonjsHelpers-cb1f949a.js +23 -0
- package/dist/cjs/{download-cd98aa01.js → certification_request-96951e7b.js} +2880 -3313
- package/dist/cjs/{dom-760f300f.js → dom-f57e260e.js} +4 -1
- package/dist/cjs/download-5e7d5455.js +438 -0
- package/dist/cjs/{index-2973f90a.js → index-064e95c7.js} +287 -634
- package/dist/cjs/index.cjs.js +12 -0
- package/dist/cjs/{l10n-e971a5ac.js → l10n-2e7def18.js} +72 -90
- package/dist/cjs/loader.cjs.js +12 -3
- package/dist/cjs/peculiar-attribute-certificate-viewer_9.cjs.entry.js +1426 -1391
- package/dist/cjs/peculiar-certificate-summary_3.cjs.entry.js +66 -62
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +222 -217
- package/dist/cjs/peculiar.cjs.js +70 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +220 -205
- package/dist/collection/components/attribute-certificate-viewer/holder.js +27 -24
- package/dist/collection/components/attribute-certificate-viewer/issuer.js +11 -8
- package/dist/collection/components/button/button.css +2 -7
- package/dist/collection/components/button/button.js +125 -122
- package/dist/collection/components/button-split/button-split.js +103 -100
- package/dist/collection/components/certificate-decoder/certificate-decoder.css +1 -3
- package/dist/collection/components/certificate-decoder/certificate-decoder.js +158 -155
- package/dist/collection/components/certificate-summary/certificate-summary.js +75 -72
- package/dist/collection/components/certificate-viewer/attributes/activity_description_attribute.js +11 -8
- package/dist/collection/components/certificate-viewer/attributes/as_string_attribute.js +6 -3
- package/dist/collection/components/certificate-viewer/attributes/basic_attribute.js +11 -8
- package/dist/collection/components/certificate-viewer/attributes/challenge_password_attribute.js +6 -3
- package/dist/collection/components/certificate-viewer/attributes/index.js +45 -42
- package/dist/collection/components/certificate-viewer/attributes/insurance_value_attribute.js +7 -4
- package/dist/collection/components/certificate-viewer/attributes/name_attribute.js +6 -3
- package/dist/collection/components/certificate-viewer/attributes/name_part.js +8 -5
- package/dist/collection/components/certificate-viewer/attributes/type_relationship_attribute.js +5 -2
- package/dist/collection/components/certificate-viewer/attributes/unstructured_name_attribute.js +6 -3
- package/dist/collection/components/certificate-viewer/attributes/valuation_ranking_attribute.js +18 -15
- package/dist/collection/components/certificate-viewer/attributes/web_gdpr_attribute.js +13 -10
- package/dist/collection/components/certificate-viewer/basic_information.js +13 -10
- package/dist/collection/components/certificate-viewer/certificate-viewer.js +255 -240
- package/dist/collection/components/certificate-viewer/extensions/archive_rev_info_extension.js +6 -3
- package/dist/collection/components/certificate-viewer/extensions/as_string_extension.js +6 -3
- package/dist/collection/components/certificate-viewer/extensions/attribute_value.js +4 -1
- package/dist/collection/components/certificate-viewer/extensions/authority_key_identifier_extension.js +18 -15
- package/dist/collection/components/certificate-viewer/extensions/basic_constraints_extension.js +7 -4
- package/dist/collection/components/certificate-viewer/extensions/basic_extension.js +12 -9
- package/dist/collection/components/certificate-viewer/extensions/biometric_syntax_extension.js +12 -9
- package/dist/collection/components/certificate-viewer/extensions/ca_version_extension.js +8 -5
- package/dist/collection/components/certificate-viewer/extensions/certificate_policies_extension.js +28 -25
- package/dist/collection/components/certificate-viewer/extensions/certificate_template_extension.js +8 -5
- package/dist/collection/components/certificate-viewer/extensions/certificate_transparency_extension.js +13 -10
- package/dist/collection/components/certificate-viewer/extensions/crl_distribution_points_extension.js +11 -8
- package/dist/collection/components/certificate-viewer/extensions/crl_reason_extension.js +6 -3
- package/dist/collection/components/certificate-viewer/extensions/enroll_cert_type_extension.js +6 -3
- package/dist/collection/components/certificate-viewer/extensions/entrust_version_info_extension.js +7 -4
- package/dist/collection/components/certificate-viewer/extensions/extended_key_usage_extension.js +5 -2
- package/dist/collection/components/certificate-viewer/extensions/general_name_part.js +55 -52
- package/dist/collection/components/certificate-viewer/extensions/index.js +112 -109
- package/dist/collection/components/certificate-viewer/extensions/info_access_syntax_extension.js +9 -6
- package/dist/collection/components/certificate-viewer/extensions/key_usage_extension.js +6 -3
- package/dist/collection/components/certificate-viewer/extensions/lei_extension.js +6 -3
- package/dist/collection/components/certificate-viewer/extensions/lei_role_extennsion.js +6 -3
- package/dist/collection/components/certificate-viewer/extensions/logotype_extension.js +49 -46
- package/dist/collection/components/certificate-viewer/extensions/name_constraints_extension.js +8 -5
- package/dist/collection/components/certificate-viewer/extensions/netscape_cert_type_extension.js +6 -3
- package/dist/collection/components/certificate-viewer/extensions/netscape_comment_extension.js +6 -3
- package/dist/collection/components/certificate-viewer/extensions/policy_constraints_extension.js +7 -4
- package/dist/collection/components/certificate-viewer/extensions/policy_mappings_extension.js +9 -6
- package/dist/collection/components/certificate-viewer/extensions/private_key_usage_period_extension.js +7 -4
- package/dist/collection/components/certificate-viewer/extensions/qc_statements_extension.js +9 -6
- package/dist/collection/components/certificate-viewer/extensions/subject_alternative_name_extension.js +5 -2
- package/dist/collection/components/certificate-viewer/extensions/subject_directory_attributes_extension.js +9 -6
- package/dist/collection/components/certificate-viewer/extensions/subject_key_identifier_extension.js +18 -15
- package/dist/collection/components/certificate-viewer/extensions/timestamp_extension.js +8 -5
- package/dist/collection/components/certificate-viewer/extensions/tn_auth_list_extension.js +10 -7
- package/dist/collection/components/certificate-viewer/get_string_by_oid.js +8 -5
- package/dist/collection/components/certificate-viewer/issuer_name.js +9 -6
- package/dist/collection/components/certificate-viewer/miscellaneous.js +29 -26
- package/dist/collection/components/certificate-viewer/public_key.js +31 -28
- package/dist/collection/components/certificate-viewer/row.js +35 -32
- package/dist/collection/components/certificate-viewer/signature.js +12 -9
- package/dist/collection/components/certificate-viewer/subject_name.js +8 -5
- package/dist/collection/components/certificate-viewer/thumbprints.js +15 -12
- package/dist/collection/components/certificates-viewer/certificates-viewer.css +1 -19
- package/dist/collection/components/certificates-viewer/certificates-viewer.js +384 -381
- package/dist/collection/components/circular-progress/circular-progress.css +2 -24
- package/dist/collection/components/circular-progress/circular-progress.js +73 -70
- package/dist/collection/components/csr-viewer/csr-viewer.js +197 -188
- package/dist/collection/components/highlight-words/highlight-words.js +56 -53
- package/dist/collection/components/link/link.css +1 -3
- package/dist/collection/components/link/link.js +60 -57
- package/dist/collection/components/text-hider/text-hider.js +75 -72
- package/dist/collection/components/typography/typography.css +1 -3
- package/dist/collection/components/typography/typography.js +126 -123
- package/dist/collection/constants/logs.js +79 -76
- package/dist/collection/constants/oids.js +2301 -2298
- package/dist/collection/crypto/asn_data.js +33 -32
- package/dist/collection/crypto/attribute.js +52 -49
- package/dist/collection/crypto/csr.js +64 -61
- package/dist/collection/crypto/extension.js +126 -123
- package/dist/collection/crypto/index.js +3 -0
- package/dist/collection/crypto/name.js +33 -32
- package/dist/collection/crypto/provider.js +28 -25
- package/dist/collection/crypto/utils.js +24 -21
- package/dist/collection/crypto/x509_attribute_certificate.js +61 -58
- package/dist/collection/crypto/x509_certificate.js +107 -104
- package/dist/collection/index.js +5 -1
- package/dist/collection/utils/date_formatter.js +19 -16
- package/dist/collection/utils/download.js +18 -15
- package/dist/collection/utils/download_from_buffer.js +30 -25
- package/dist/collection/utils/history.js +5 -2
- package/dist/collection/utils/index.js +3 -0
- package/dist/collection/utils/is_link.js +4 -1
- package/dist/collection/utils/l10n.js +28 -25
- package/dist/collection/utils/parse_hash.js +16 -13
- package/dist/collection/utils/query_stringify.js +12 -9
- package/dist/collection/utils/read_file.js +43 -40
- package/dist/collection/utils/third_party_links.js +3 -0
- package/dist/collection/utils/validator.js +15 -12
- package/dist/esm/_commonjsHelpers-bfbd2ad8.js +20 -0
- package/dist/esm/{download-1ff0a3be.js → certification_request-48e8b956.js} +2898 -3328
- package/dist/esm/{dom-91ed8d21.js → dom-f1b08a97.js} +4 -1
- package/dist/esm/download-cf68ac2c.js +434 -0
- package/dist/esm/{index-5ef692cc.js → index-bbd484d9.js} +278 -624
- package/dist/esm/index.js +5 -0
- package/dist/esm/{l10n-c8cf6930.js → l10n-ead9928b.js} +71 -86
- package/dist/esm/{loader.mjs → loader.js} +11 -2
- package/dist/esm/peculiar-attribute-certificate-viewer_9.entry.js +1425 -1390
- package/dist/esm/peculiar-certificate-summary_3.entry.js +66 -62
- package/dist/esm/peculiar-certificates-viewer.entry.js +222 -217
- package/dist/esm/peculiar.js +73 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/index.js +2 -2
- package/dist/esm-es5/_commonjsHelpers-bfbd2ad8.js +4 -0
- package/dist/esm-es5/certification_request-48e8b956.js +89 -0
- package/dist/esm-es5/dom-f1b08a97.js +24 -0
- package/dist/esm-es5/download-cf68ac2c.js +18 -0
- package/dist/esm-es5/index-bbd484d9.js +5 -0
- package/dist/esm-es5/index.js +4 -0
- package/dist/esm-es5/l10n-ead9928b.js +39 -0
- package/dist/esm-es5/loader.js +4 -0
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_9.entry.js +198 -1907
- package/dist/esm-es5/peculiar-certificate-summary_3.entry.js +4 -83
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +4 -290
- package/dist/esm-es5/peculiar.js +4 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -1
- package/dist/peculiar/index.esm.js +4 -0
- package/dist/peculiar/p-047b12d9.system.js +89 -0
- package/dist/peculiar/p-13e9d17d.system.entry.js +460 -0
- package/dist/peculiar/p-29cdd256.system.js +18 -0
- package/dist/peculiar/{p-75076c56.system.js → p-3929074b.system.js} +18 -15
- package/dist/peculiar/p-452d69af.entry.js +113 -0
- package/dist/peculiar/p-4f52a24f.system.js +39 -0
- package/dist/peculiar/p-5f7fbf05.system.entry.js +4 -0
- package/dist/peculiar/p-82033e2e.system.entry.js +4 -0
- package/dist/peculiar/p-886e9c53.js +87 -0
- package/dist/peculiar/p-88fbaf05.system.js +4 -0
- package/dist/peculiar/p-8df391dc.system.js +4 -0
- package/dist/peculiar/p-9837be14.system.js +5 -0
- package/dist/peculiar/p-9ae6b1f8.entry.js +4 -0
- package/dist/peculiar/{p-3d1015c2.js → p-9f4ee110.js} +5 -2
- package/dist/peculiar/p-c774ec0b.js +18 -0
- package/dist/peculiar/p-d09b762f.js +33 -0
- package/dist/peculiar/p-d0b55fbb.js +4 -0
- package/dist/peculiar/p-e5f99586.entry.js +4 -0
- package/dist/peculiar/p-ee0e2707.system.js +4 -0
- package/dist/peculiar/p-f7683ba5.js +5 -0
- package/dist/peculiar/peculiar.esm.js +4 -1
- package/dist/peculiar/peculiar.js +1 -3
- package/dist/types/components/attribute-certificate-viewer/attribute-certificate-viewer.d.ts +56 -56
- package/dist/types/components/attribute-certificate-viewer/holder.d.ts +1 -1
- package/dist/types/components/attribute-certificate-viewer/issuer.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +17 -17
- package/dist/types/components/button-split/button-split.d.ts +10 -10
- package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +16 -16
- package/dist/types/components/certificate-summary/certificate-summary.d.ts +4 -4
- package/dist/types/components/certificate-viewer/attributes/activity_description_attribute.d.ts +1 -1
- package/dist/types/components/certificate-viewer/attributes/as_string_attribute.d.ts +1 -1
- package/dist/types/components/certificate-viewer/attributes/basic_attribute.d.ts +1 -1
- package/dist/types/components/certificate-viewer/attributes/challenge_password_attribute.d.ts +1 -1
- package/dist/types/components/certificate-viewer/attributes/index.d.ts +1 -1
- package/dist/types/components/certificate-viewer/attributes/insurance_value_attribute.d.ts +1 -1
- package/dist/types/components/certificate-viewer/attributes/name_attribute.d.ts +1 -1
- package/dist/types/components/certificate-viewer/attributes/name_part.d.ts +1 -1
- package/dist/types/components/certificate-viewer/attributes/type_relationship_attribute.d.ts +1 -1
- package/dist/types/components/certificate-viewer/attributes/unstructured_name_attribute.d.ts +1 -1
- package/dist/types/components/certificate-viewer/attributes/valuation_ranking_attribute.d.ts +1 -1
- package/dist/types/components/certificate-viewer/attributes/web_gdpr_attribute.d.ts +1 -1
- package/dist/types/components/certificate-viewer/basic_information.d.ts +6 -6
- package/dist/types/components/certificate-viewer/certificate-viewer.d.ts +66 -66
- package/dist/types/components/certificate-viewer/extensions/archive_rev_info_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/as_string_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/authority_key_identifier_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/basic_constraints_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/basic_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/biometric_syntax_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/ca_version_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/certificate_policies_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/certificate_template_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/certificate_transparency_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/crl_distribution_points_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/crl_reason_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/enroll_cert_type_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/entrust_version_info_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/extended_key_usage_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/general_name_part.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/index.d.ts +2 -2
- package/dist/types/components/certificate-viewer/extensions/info_access_syntax_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/key_usage_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/lei_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/lei_role_extennsion.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/logotype_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/name_constraints_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/netscape_cert_type_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/netscape_comment_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/policy_constraints_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/policy_mappings_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/private_key_usage_period_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/qc_statements_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/subject_alternative_name_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/subject_directory_attributes_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/subject_key_identifier_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/timestamp_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/extensions/tn_auth_list_extension.d.ts +1 -1
- package/dist/types/components/certificate-viewer/issuer_name.d.ts +2 -2
- package/dist/types/components/certificate-viewer/miscellaneous.d.ts +1 -1
- package/dist/types/components/certificate-viewer/public_key.d.ts +1 -1
- package/dist/types/components/certificate-viewer/row.d.ts +7 -7
- package/dist/types/components/certificate-viewer/signature.d.ts +1 -1
- package/dist/types/components/certificate-viewer/subject_name.d.ts +1 -1
- package/dist/types/components/certificate-viewer/thumbprints.d.ts +1 -1
- package/dist/types/components/certificate-viewer/types.d.ts +26 -0
- package/dist/types/components/certificates-viewer/certificates-viewer.d.ts +64 -64
- package/dist/types/components/circular-progress/circular-progress.d.ts +10 -10
- package/dist/types/components/csr-viewer/csr-viewer.d.ts +45 -45
- package/dist/types/components/highlight-words/highlight-words.d.ts +8 -8
- package/dist/types/components/link/link.d.ts +6 -6
- package/dist/types/components/text-hider/text-hider.d.ts +4 -4
- package/dist/types/components/typography/typography.d.ts +18 -18
- package/dist/types/components.d.ts +11 -3
- package/dist/types/constants/logs.d.ts +76 -76
- package/dist/types/constants/oids.d.ts +2293 -2293
- package/dist/types/crypto/asn_data.d.ts +6 -6
- package/dist/types/crypto/attribute.d.ts +3 -3
- package/dist/types/crypto/csr.d.ts +19 -19
- package/dist/types/crypto/extension.d.ts +3 -3
- package/dist/types/crypto/name.d.ts +7 -7
- package/dist/types/crypto/provider.d.ts +15 -15
- package/dist/types/crypto/x509_attribute_certificate.d.ts +22 -22
- package/dist/types/crypto/x509_certificate.d.ts +28 -28
- package/dist/types/index.d.ts +2 -1
- package/dist/types/interface.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +230 -217
- package/dist/types/utils/download.d.ts +8 -8
- package/dist/types/utils/download_from_buffer.d.ts +3 -3
- package/dist/types/utils/l10n.d.ts +43 -43
- package/dist/types/utils/read_file.d.ts +7 -7
- package/loader/cdn.js +3 -1
- package/loader/index.cjs.js +3 -1
- package/loader/index.d.ts +0 -1
- package/loader/index.es2017.js +5 -0
- package/loader/{index.mjs → index.js} +4 -2
- package/loader/package.json +4 -5
- package/package.json +15 -16
- package/dist/cjs/css-shim-1b988199.js +0 -6
- package/dist/cjs/patch-15ea31af.js +0 -112
- package/dist/cjs/shadow-css-376763e9.js +0 -385
- package/dist/esm/css-shim-5ce2b5c4.js +0 -4
- package/dist/esm/index.mjs +0 -1
- package/dist/esm/patch-f8a17185.js +0 -109
- package/dist/esm/peculiar.mjs +0 -6
- package/dist/esm/shadow-css-95922619.js +0 -383
- package/dist/esm-es5/css-shim-5ce2b5c4.js +0 -122
- package/dist/esm-es5/dom-91ed8d21.js +0 -468
- package/dist/esm-es5/download-1ff0a3be.js +0 -12692
- package/dist/esm-es5/index-5ef692cc.js +0 -1839
- package/dist/esm-es5/index.mjs +0 -0
- package/dist/esm-es5/l10n-c8cf6930.js +0 -758
- package/dist/esm-es5/loader.mjs +0 -10
- package/dist/esm-es5/patch-f8a17185.js +0 -106
- package/dist/esm-es5/peculiar.mjs +0 -5
- package/dist/esm-es5/shadow-css-95922619.js +0 -408
- package/dist/index.mjs +0 -1
- package/dist/peculiar/p-0ad0b6e8.js +0 -1
- package/dist/peculiar/p-198d9121.js +0 -1
- package/dist/peculiar/p-294c4ef9.entry.js +0 -1
- package/dist/peculiar/p-3d339152.system.entry.js +0 -1
- package/dist/peculiar/p-4b7cd42f.js +0 -12
- package/dist/peculiar/p-50ea2036.system.js +0 -1
- package/dist/peculiar/p-557d912f.system.js +0 -1
- package/dist/peculiar/p-84e8326d.entry.js +0 -110
- package/dist/peculiar/p-94f96303.system.js +0 -100
- package/dist/peculiar/p-983b5210.system.entry.js +0 -1
- package/dist/peculiar/p-9f815f76.system.js +0 -1
- package/dist/peculiar/p-aa0a9b36.system.js +0 -1
- package/dist/peculiar/p-bd1f9066.system.js +0 -36
- package/dist/peculiar/p-bd949790.js +0 -1
- package/dist/peculiar/p-cf1841f8.js +0 -30
- package/dist/peculiar/p-dbdd61e7.entry.js +0 -1
- package/dist/peculiar/p-dc6b70b2.js +0 -100
- package/dist/peculiar/p-fb53799e.system.js +0 -1
- package/dist/peculiar/p-fc92385a.system.entry.js +0 -457
- package/dist/peculiar/p-fdad110e.system.js +0 -13
- package/dist/peculiar.js +0 -30
- package/loader/index.es2017.mjs +0 -3
- package/loader/node-main.js +0 -3
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register([],(function(){"use strict";return{execute:function(){}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-9f815f76.system.js","./p-aa0a9b36.system.js"],(function(){"use strict";var e,i;return{setters:[function(i){e=i.b},function(e){i=e.p}],execute:function(){i().then((function(i){return e([["p-fc92385a.system",[[1,"peculiar-certificate-decoder",{certificateExample:[1,"certificate-example"],certificateDecoded:[32]}],[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-csr-viewer",{certificate:[513],download:[4],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],view:[513],isDecodeInProcess:[32]}],[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]}],[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]}]]],["p-983b5210.system",[[1,"peculiar-certificate-summary",{certificate:[16],showIssuer:[4,"show-issuer"]}],[1,"peculiar-circular-progress",{size:[2],width:[2]}],[1,"peculiar-highlight-words",{search:[1]}]]],["p-3d339152.system",[[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]}]]]],i)}))}}}));
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import{h as e,r as t,H as a,c as i}from"./p-bd949790.js";import{d as n,l as o,a as r,h as s}from"./p-cf1841f8.js";import{A as l,a as c,b as d,i as b,c as p,E as h,d as u,e as f,f as g,U as m,g as v,C as x,h as y,V as w,j as k,I as _,k as C,W as z,l as A,m as S,n as I,T as N,o as L,D,p as j,q as E,r as T,s as K,t as P,u as O,v as G,w as R,x as V,y as H,z as q,B as $,N as B,F,G as U,H as Y,R as M,O as X,J as W,K as Q,L as J,M as Z,P as ee,Q as te,S as ae,X as ie,Y as ne,Z as oe,_ as re,$ as se,a0 as le,a1 as ce,a2 as de,a3 as be,a4 as pe,a5 as he,a6 as ue,a7 as fe,a8 as ge,a9 as me,aa as ve,ab as xe,ac as ye,ad as we,ae as ke,af as _e,ag as Ce,ah as ze,ai as Ae,aj as Se,ak as Ie,al as Ne,am as Le,an as De,ao as je,ap as Ee,aq as Te,ar as Ke,as as Pe,at as Oe,au as Ge,av as Re}from"./p-dc6b70b2.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/function Ve(e){return new Promise((t,a)=>{const i=new FileReader;i.onload=()=>t({value:i.result,fileName:e.name,fileSize:e.size,sourceMime:e.type}),i.onerror=()=>a(i.error),i.readAsBinaryString(e)})}
|
|
9
|
-
/**
|
|
10
|
-
* @license
|
|
11
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the MIT license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/class He extends l{constructor(e){super(e,c);const t=this.getAsnExtnValue();switch(this.asn.type){case P:this.value=p.parse(t,O);break;case T:this.value=p.parse(t,K);break;case j:this.value=p.parse(t,E);break;case L:this.value=p.parse(t,D);break;case I:this.value=p.parse(t,N);break;case A:this.value=p.parse(t,S);break;case C:this.value=p.parse(t,z);break;case k:this.value=p.parse(t,_);break;case y:this.value=p.parse(t,w);break;case v:this.value=p.parse(t,x);break;case g:this.value=p.parse(t,m);break;case b:{const e=p.parse(t,h);this.value=e.map(e=>new u(f.serialize(e)));break}default:this.value=d.ToHex(t)}}getAsnExtnValue(){return this.asn.values[0]}}
|
|
16
|
-
/**
|
|
17
|
-
* @license
|
|
18
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the MIT license found in the
|
|
21
|
-
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/class qe extends l{constructor(e){var t;super(G(e),R),this.thumbprints={},this.type="X.509 Attribute Certificate";const{acinfo:a}=this.asn;this.serialNumber=d.ToHex(a.serialNumber),this.version=a.version;const i=a.attrCertValidityPeriod.notBeforeTime;if(!i)throw new Error("Cannot get 'notBefore' value");this.notBefore=i;const o=a.attrCertValidityPeriod.notAfterTime;if(!o)throw new Error("Cannot get 'notAfter' value");this.notAfter=o,this.validity=n(this.notBefore,this.notAfter),this.issuer=a.issuer.v1Form||(null===(t=a.issuer.v2Form)||void 0===t?void 0:t.issuerName),this.holder=a.holder}get signature(){const{signatureValue:e,signatureAlgorithm:t}=this.asn;return{value:e,algorithm:t.algorithm}}parseExtensions(){const{acinfo:e}=this.asn;e.extensions&&(this.extensions=e.extensions.map(e=>new u(f.serialize(e))))}parseAttributes(){const{acinfo:e}=this.asn;e.attributes&&(this.attributes=e.attributes.map(e=>new He(f.serialize(e))))}async getThumbprint(e="SHA-1"){try{const t=await V(e,this.raw);this.thumbprints[e.name||e]=d.ToHex(t)}catch(t){console.error("Error thumbprint get:",t)}}exportAsBase64(){return d.ToBase64(this.raw)}exportAsHexFormatted(){return H(d.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN ATTRIBUTE CERTIFICATE-----\n${q(this.exportAsBase64())}\n-----END ATTRIBUTE CERTIFICATE-----`}get commonName(){return"attribute-certificate-"+this.thumbprints["SHA-1"]}}
|
|
23
|
-
/**
|
|
24
|
-
* @license
|
|
25
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/class $e extends l{constructor(e){super(G(e),$),this.thumbprints={},this.type="PKCS#10 Certificate Request";const{certificationRequestInfo:t}=this.asn;this.subject=new B(t.subject).toJSON(),this.version=t.version}get publicKey(){const{subjectPublicKey:e,algorithm:t}=this.asn.certificationRequestInfo.subjectPKInfo;let a;return t.algorithm===F&&t.parameters&&(a=f.parse(t.parameters,U)),t.algorithm===Y&&(a=f.parse(e,M)),{params:a,value:f.serialize(this.asn.certificationRequestInfo.subjectPKInfo),algorithm:t.algorithm}}get signature(){const{signature:e,signatureAlgorithm:t}=this.asn;return{value:e,algorithm:t.algorithm}}get commonName(){if(!this.subject)return"";for(let e=0;e<this.subject.length;e+=1){const t=this.subject[e];if("CN"===t.shortName||"E"===t.shortName||"O"===t.shortName)return t.value}return""}async getThumbprint(e="SHA-1"){try{const t=await V(e,this.raw);this.thumbprints[e.name||e]=d.ToHex(t)}catch(t){console.error("Error thumbprint get:",t)}}parseAttributes(){const{certificationRequestInfo:e}=this.asn;e.attributes&&(this.attributes=e.attributes.map(e=>new He(f.serialize(e))))}exportAsBase64(){return d.ToBase64(this.raw)}exportAsHexFormatted(){return H(d.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN CERTIFICATE REQUEST-----\n${q(this.exportAsBase64())}\n-----END CERTIFICATE REQUEST-----`}}
|
|
30
|
-
/**
|
|
31
|
-
* @license
|
|
32
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the MIT license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/function Be(e){const t=X[e];return t?`${t} (${e})`:e}
|
|
37
|
-
/**
|
|
38
|
-
* @license
|
|
39
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
40
|
-
*
|
|
41
|
-
* This source code is licensed under the MIT license found in the
|
|
42
|
-
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/
|
|
44
|
-
/**
|
|
45
|
-
* @license
|
|
46
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the MIT license found in the
|
|
49
|
-
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/
|
|
51
|
-
const Fe=t=>{const{value:a}=t;return a?e("tr",{class:"title"},e("td",{colSpan:2},e("peculiar-typography",{type:"h6"},a))):null},Ue=t=>{const{name:a,value:i,monospace:n,collapse:o,href:r,extraValue:s}=t;if(!a)return null;if(null==i)return null;let l;l=o?e("peculiar-text-hider",null,i):i;const c=!!i.toString();return e("tr",null,e("td",{colSpan:c?1:2},e("peculiar-typography",{color:"grey_5"},a,c?":":"")),c&&e("td",{class:{monospace:n}},function(e){return 0===e.indexOf("http")}(i.toString())||r?e("peculiar-link",{href:r||i.toString()},i):e("peculiar-typography",{monospace:n},l,s)))},Ye=t=>{const{signature:a}=t;return a?[e(Fe,{value:o.getString("signature")}),e(Ue,{name:o.getString("algorithm"),value:Be(a.algorithm)}),e(Ue,{name:o.getString("value"),value:d.ToHex(a.value),monospace:!0,collapse:!0})]:null},Me=(t,a)=>{const{attribute:i}=t;return[e(Ue,{name:"Name",value:Be(i.asn.type)}),a,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},Xe=t=>{const{name:a}=t;return a?a.map(t=>t.map(t=>e(Ue,{name:X[t.type]||t.type,value:t.value.toString()}))):null},We=t=>{const{attribute:a}=t;return e(Me,{attribute:a},e(Xe,{name:a.value}))},Qe={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"},Je=t=>{const{generalName:a,getDNSNameLink:i,getIPAddressLink:n}=t;return a?Object.keys(a).map(t=>{const o=a[t];if(o instanceof W)return[e(Ue,{name:Qe[t]||t,value:""}),o.map(t=>t.map(t=>e(Ue,{name:X[t.type]||t.type,value:t.value.toString()})))];if(o instanceof Q){try{const t=p.parse(o.value,J);return e(Ue,{name:X[o.typeId]||o.typeId,value:t.toString()})}catch(r){}try{const t=p.parse(o.value,Z);if(t.explicitText)return e(Ue,{name:X[o.typeId]||o.typeId,value:t.explicitText.toString()})}catch(r){}return e(Ue,{name:X[o.typeId]||o.typeId,value:d.ToHex(o.value),monospace:!0})}return ee.isBufferSource(o)?e(Ue,{name:Qe[t]||t,value:d.ToString(o)}):e(Ue,o instanceof te?{name:Qe[t]||t,value:d.ToString(o.partyName)}:"dNSName"===t?{name:Qe[t]||t,value:o,href:i(o)}:"iPAddress"===t?{name:Qe[t]||t,value:o,href:n(o)}:{name:Qe[t]||t,value:o})}):null},Ze=t=>{const{attribute:a}=t;return e(Me,{attribute:a},e(Ue,{name:"Code Authority",value:""}),e(Je,{generalName:a.value.codeAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(Ue,{name:"Code Id",value:""}),e(Je,{generalName:a.value.codeId,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(Ue,{name:"Short Name",value:a.value.shortName}),e(Ue,{name:"Short Description",value:a.value.shortDescription}))},et=t=>{const{attribute:a}=t;return e(Me,{attribute:a},e(Ue,{name:"Assessment Authority",value:""}),e(Je,{generalName:a.value.assessmentAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(Ue,{name:"Assessment Location",value:""}),e(Je,{generalName:a.value.assessmentLocation,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(Ue,{name:"Assessment Ref",value:""}),e(Je,{generalName:a.value.assessmentRef,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(Ue,{name:"Data Storage Territory",value:a.value.dataStorageTerritory}),e(Ue,{name:"Description",value:a.value.description}))},tt=t=>{const{attribute:a}=t;return e(Me,{attribute:a},e(Ue,{name:"Value",value:`${a.value.base} * 10^${a.value.degree} ${a.value.location}`}))},at=t=>{const{attribute:a}=t;return e(Me,{attribute:a},Object.keys(a.value).map(t=>e(Ue,{name:t,value:a.value[t].toNumber()?"YES":"NO"})))},it=e=>{let t=1;return e/100>1?t=100:e/10>1&&(t=10),`${e}/${5*t}`},nt=t=>{const{attribute:a}=t,i=Object.keys(a.value).map(t=>[it(a.value[t]),e("br",null)]);return e(Me,{attribute:a},e(Ue,{name:"Value",value:i}))},ot=t=>{const{attribute:a}=t;return e(Me,{attribute:a},e(Ue,{name:"Value",value:a.value,monospace:!0}))},rt=t=>{const{attribute:a}=t;return e(Me,{attribute:a},e(Ue,{name:"Value",value:a.value.utf8String}))},st=t=>{const{attribute:a}=t;return e(Me,{attribute:a},e(Ue,{name:"Value",value:a.value.toString()}))},lt=t=>{const{attributes:a}=t;return a&&a.length?[e(Fe,{value:"Attributes"}),a.map(t=>{try{return e(t.value instanceof W?We:t.value instanceof S?Ze:t.value instanceof z?et:t.value instanceof _?tt:t.value instanceof N?at:t.value instanceof w?nt:t.value instanceof m?rt:t.value instanceof x?st:"string"==typeof t.value?ot:Me,{attribute:t})}catch(a){return console.error("Error render attribute:",t.asn.type),null}})]:null},ct=t=>{const{thumbprints:a}=t;if(!a)return null;const i=Object.keys(a);return i.length?[e(Fe,{value:o.getString("fingerprints")}),i.map(t=>e(Ue,{name:t,value:a[t],monospace:!0}))]:null},dt=(t,a)=>{const{extension:i}=t;return[e(Ue,{name:"Name",value:Be(i.asn.extnID)}),e(Ue,{name:"Critical",value:i.asn.critical?"YES":"NO"}),a,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},bt=t=>{const{extension:a}=t;return e(dt,{extension:a},e(Ue,{name:"Usage",value:a.value.toJSON().join(", ")}))},pt=t=>{const{extension:a}=t;return e(dt,{extension:a},e(Ue,{name:"Certificate Authority",value:a.value.cA?"YES":"NO"}),e(Ue,{name:"Path Length Constraint",value:a.value.pathLenConstraint}))},ht=t=>{const{extension:a}=t;return e(dt,{extension:a},a.value.map((t,a)=>e(Ue,{name:"Purpose #"+(a+1),value:Be(t)})))},ut=t=>{const{extension:a,getSubjectKeyIdChildrenLink:i,getSubjectKeyIdSiblingsLink:n}=t,o=d.ToHex(a.value.buffer),r=i(o),s=n(o);return e(dt,{extension:a},e(Ue,{name:"Key ID",value:o,monospace:!0,extraValue:[r&&e("span",null," [",e("peculiar-link",{href:r},"children"),"]"),s&&e("span",null," [",e("peculiar-link",{href:s},"siblings"),"]")]}))},ft=t=>{const{extension:a,getAuthKeyIdParentLink:i,getAuthKeyIdSiblingsLink:n}=t,o=d.ToHex(a.value.keyIdentifier.buffer),r=i(o),s=n(o);return e(dt,{extension:a},e(Ue,{name:"Key ID",value:o,monospace:!0,extraValue:[r&&e("span",null," [",e("peculiar-link",{href:r},"parents"),"]"),s&&e("span",null," [",e("peculiar-link",{href:s},"siblings"),"]")]}))},gt=t=>{const{extension:a}=t;return e(dt,{extension:a},a.value.map(a=>{var i,n;return[null===(i=a.distributionPoint)||void 0===i?void 0:i.fullName.map(a=>e(Je,Object.assign({generalName:a},t))),null===(n=a.cRLIssuer)||void 0===n?void 0:n.map(a=>e(Je,Object.assign({generalName:a},t)))]}))},mt=t=>{const{extension:a}=t;return e(dt,{extension:a},a.value.map((a,i)=>[e(Ue,{name:"Description #"+(i+1),value:""}),e(Ue,{name:"Method",value:Be(a.accessMethod)}),e(Je,Object.assign({generalName:a.accessLocation},t))]))},vt=t=>{const{extension:a}=t;return e(dt,{extension:a},a.value.map(a=>e(Je,Object.assign({generalName:a},t))))},xt=t=>{const{extension:a}=t;return e(dt,{extension:a},a.value.map((t,a)=>{var i;return[e(Ue,{name:"Policy #"+(a+1),value:""}),e(Ue,{name:"ID",value:Be(t.policyIdentifier)}),null===(i=t.policyQualifiers)||void 0===i?void 0:i.map((t,i)=>{const n=[e(Ue,{name:`Qualifier #${a+1}.${i+1}`,value:""}),e(Ue,{name:"ID",value:Be(t.policyQualifierId)})];if("1.3.6.1.5.5.7.2.1"===t.policyQualifierId){const a=p.parse(t.qualifier,J);n.push(e(Ue,{name:"Value",value:a.toString()}))}if("1.3.6.1.5.5.7.2.2"===t.policyQualifierId){const a=p.parse(t.qualifier,Z);a.explicitText&&n.push(e(Ue,{name:"Value",value:a.explicitText.toString()}))}return n})]}))},yt={"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"},wt=t=>{const{extension:a}=t;return e(dt,{extension:a},a.value.toJSON().map((t,a)=>[e(Ue,{name:"SCT #"+(a+1),value:""}),e(Ue,{name:"Version",value:t.version+1}),e(Ue,{name:"Log Operator",value:yt[t.logId]||t.logId}),e(Ue,{name:"Log Key ID",value:t.logId,monospace:!0}),e(Ue,{name:"Timestamp",value:r(t.timestamp)}),e(Ue,{name:"Signature Algorithm",value:`${t.hashAlgorithm} ${t.signatureAlgorithm}`.toUpperCase()}),e(Ue,{name:"Signature",value:t.signature,monospace:!0})]))},kt=t=>{var a,i;const{extension:n}=t;return e(dt,{extension:n},null===(a=n.value.excludedSubtrees)||void 0===a?void 0:a.map(a=>e(Je,Object.assign({generalName:a.base},t))),null===(i=n.value.permittedSubtrees)||void 0===i?void 0:i.map(a=>e(Je,Object.assign({generalName:a.base},t))))},_t=t=>{const{extension:a}=t;return e(dt,{extension:a},e(Ue,{name:"Template ID",value:a.value.templateID}),e(Ue,{name:"Template Major Version",value:a.value.templateMajorVersion}),e(Ue,{name:"Template Minor Version",value:a.value.templateMinorVersion}))},Ct=t=>{const{extension:a}=t;return e(dt,{extension:a},e(Ue,{name:"Name",value:a.value.toString()}))},zt=t=>{const{extension:a}=t,i=a.value.getVersion();return e(dt,{extension:a},e(Ue,{name:"Certificate Index",value:i.certificateIndex}),e(Ue,{name:"Key Index",value:i.keyIndex}))},At=t=>{const{extension:a}=t;return e(dt,{extension:a},a.value.map((t,a)=>[e(Ue,{name:"Statement #"+(a+1),value:""}),e(Ue,{name:"ID",value:Be(t.statementId)}),e(Ue,{name:"Info",value:t.statementInfo.byteLength?d.ToHex(t.statementInfo):null,monospace:!0})]))},St=t=>{const{extension:a}=t;return e(dt,{extension:a},e(Ue,{name:"Comment",value:a.value.value}))},It=t=>{const{extension:a}=t;return e(dt,{extension:a},e(Ue,{name:"Type",value:a.value.toJSON().join(", ")}))},Nt=t=>{const{extension:a}=t;return e(dt,{extension:a},e(Ue,{name:"Role",value:a.value.text}))},Lt=t=>{const{extension:a,getLEILink:i}=t;return e(dt,{extension:a},e(Ue,{name:"Identifier",value:a.value.text,href:i(a.value.text)}))},Dt=t=>{const{extension:a}=t;return e(dt,{extension:a},e(Ue,{name:"Version",value:a.value.version}),e(Je,Object.assign({generalName:a.value.location},t)),e(Ue,{name:"Requires Auth",value:a.value.requiresAuth?"YES":"NO"}))},jt=t=>{const{extension:a}=t;return e(dt,{extension:a},e(Ue,{name:"Version",value:a.value.version}))},Et=t=>{const{extension:a}=t;return e(dt,{extension:a},e(Ue,{name:"Reason",value:a.value.toJSON()}))};
|
|
52
|
-
/**
|
|
53
|
-
* @license
|
|
54
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the MIT license found in the
|
|
57
|
-
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/
|
|
59
|
-
function Tt(e){return d.ToString(e.values[0])}
|
|
60
|
-
/**
|
|
61
|
-
* @license
|
|
62
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the MIT license found in the
|
|
65
|
-
* LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const Kt=t=>{const{extension:a}=t;return e(dt,{extension:a},a.value.map((t,a)=>[e(Ue,{name:"Attribute #"+(a+1),value:""}),e(Ue,{name:"Type",value:Be(t.type)}),e(Ue,{name:"Value",value:Tt(t)})]))},Pt=t=>{const{extension:a}=t;return e(dt,{extension:a},e(Ue,{name:"Value",value:a.value,monospace:!0}))},Ot=t=>{const{extension:a}=t;return e(dt,{extension:a},e(Ue,{name:"Not Before",value:r(a.value.notBefore)}),e(Ue,{name:"Not After",value:r(a.value.notAfter)}))},Gt=t=>{const{extension:a}=t;return e(dt,{extension:a},e(Ue,{name:"Version",value:a.value.entrustVers}),e(Ue,{name:"Info Flags",value:a.value.entrustInfoFlags.toJSON().join(", ")}))},Rt=t=>{const{extension:a}=t;return e(dt,{extension:a},a.value.map((t,a)=>[e(Ue,{name:"Biometric #"+(a+1),value:""}),e(Ue,{name:"OID",value:Be(t.typeOfBiometricData.biometricDataOid)}),e(Ue,{name:"Type",value:t.typeOfBiometricData.predefinedBiometricType}),e(Ue,{name:"Algorithm",value:Be(t.hashAlgorithm.algorithm)}),e(Ue,{name:"Hash",value:d.ToHex(t.biometricDataHash.buffer),monospace:!0}),e(Ue,{name:"Source Uri",value:t.sourceDataUri})]))},Vt=t=>{const{extension:a}=t,i=t=>t?t.map(t=>{const{imageDetails:a}=t;return[e(Ue,{name:"Image Type",value:a.mediaType}),e(Ue,{name:"Image Hash",value:d.ToHex(a.logotypeHash[0].hashValue),monospace:!0}),e(Ue,{name:"Image URL",value:a.logotypeURI[0],monospace:!0,collapse:!0}),e(Ue,{name:"Image Hash Algorithm",value:Be(a.logotypeHash[0].hashAlg.algorithm)})]}):null,n=t=>t?t.map(t=>{const{audioDetails:a}=t;return[e(Ue,{name:"Audio Type",value:a.mediaType}),e(Ue,{name:"Audio Hash",value:d.ToHex(a.logotypeHash[0].hashValue),monospace:!0}),e(Ue,{name:"Audio URL",value:a.logotypeURI[0],monospace:!0,collapse:!0}),e(Ue,{name:"Audio Hash Algorithm",value:Be(a.logotypeHash[0].hashAlg.algorithm)})]}):null,o=(t,a)=>{if(!a||!a.direct)return null;const{image:o,audio:r}=a.direct;return[e(Ue,{name:"Type",value:t}),i(o),n(r),e("tr",null,e("td",null),e("td",null))]};return e(dt,{extension:a},o("Subject",a.value.subjectLogo),o("Issuer",a.value.issuerLogo))},Ht=t=>{const{extension:a}=t;return e(dt,{extension:a},a.value.map((t,a)=>[e(Ue,{name:"Entry #"+(a+1),value:""}),e(Ue,{name:"SPC",value:t.spc}),e(Ue,{name:"Range",value:t.range?`start=${t.range.start} count==${t.range.count}`:null}),e(Ue,{name:"One",value:t.one})]))},qt=t=>{const{extension:a}=t;return e(dt,{extension:a},a.value.requireExplicitPolicy&&e(Ue,{name:"Require Explicit Policy",value:ae.toASN(a.value.requireExplicitPolicy).valueBlock.toString()}),a.value.inhibitPolicyMapping&&e(Ue,{name:"Inhibit Policy Mapping",value:ae.toASN(a.value.inhibitPolicyMapping).valueBlock.toString()}))},$t=t=>{const{extension:a}=t;return e(dt,{extension:a},a.value.map((t,a)=>[e(Ue,{name:"Policy #"+(a+1),value:""}),e(Ue,{name:"Issuer Domain",value:Be(t.issuerDomainPolicy)}),e(Ue,{name:"Subject Domain",value:Be(t.subjectDomainPolicy)})]))},Bt=t=>{const{extensions:a,title:i}=t;return a&&a.length?[e(Fe,{value:i||"Extensions"}),a.map(a=>{try{return a.value instanceof ie?e(bt,{extension:a}):a.value instanceof ne?e(pt,{extension:a}):a.value instanceof oe?e(ht,{extension:a}):a.value instanceof re?e(ut,Object.assign({extension:a},t)):a.value instanceof se?e(ft,Object.assign({extension:a},t)):a.value instanceof le?e(gt,Object.assign({extension:a},t)):a.value instanceof ce||a.value instanceof de?e(mt,Object.assign({extension:a},t)):a.value instanceof be?e(vt,Object.assign({extension:a},t)):a.value instanceof pe?e(xt,{extension:a}):a.value instanceof he?e(wt,{extension:a}):a.value instanceof ue?e(kt,Object.assign({extension:a},t)):a.value instanceof fe?e(_t,{extension:a}):a.value instanceof ge?e(Ct,{extension:a}):a.value instanceof me?e(zt,{extension:a}):a.value instanceof ve?e(At,{extension:a}):a.value instanceof xe?e(St,{extension:a}):a.value instanceof ye?e(It,{extension:a}):a.value instanceof we?e(Nt,{extension:a}):a.value instanceof ke?e(Lt,Object.assign({extension:a},t)):a.value instanceof _e?e(Dt,Object.assign({extension:a},t)):e(a.value instanceof Ce?jt:a.value instanceof ze?Et:a.value instanceof Ae?Kt:a.value instanceof Se?Ot:a.value instanceof Ie?Gt:a.value instanceof Ne?Rt:a.value instanceof Le?Vt:a.value instanceof De?Ht:a.value instanceof je?qt:a.value instanceof Ee?$t:"string"==typeof a.value?Pt:dt,{extension:a})}catch(i){return console.error("Error render extension:",a.asn.extnID),null}})]:null},Ft=t=>{const{serialNumber:a,version:i,validity:n,notBefore:s,notAfter:l,type:c}=t;return[e(Fe,{value:o.getString("basicInformation")}),e(Ue,{name:o.getString("type"),value:c}),e(Ue,{name:o.getString("serialNumber"),value:a,monospace:!0}),e(Ue,{name:o.getString("version"),value:i}),e(Ue,{name:o.getString("validity"),value:n}),e(Ue,{name:o.getString("issued"),value:s?r(s):void 0}),e(Ue,{name:o.getString("expired"),value:l?r(l):void 0})]};
|
|
67
|
-
/**
|
|
68
|
-
* @license
|
|
69
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
70
|
-
*
|
|
71
|
-
* This source code is licensed under the MIT license found in the
|
|
72
|
-
* LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/
|
|
74
|
-
/**
|
|
75
|
-
* @license
|
|
76
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the MIT license found in the
|
|
79
|
-
* LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/
|
|
81
|
-
function Ut(e){e instanceof $e?Te.certificateRequest.asPEM(e.exportAsPemFormatted(),e.commonName):Te.certificate.asPEM(e.exportAsPemFormatted(),e.commonName)}function Yt(e){e instanceof $e?Te.certificateRequest.asDER(e.exportAsHexFormatted(),e.commonName):Te.certificate.asDER(e.exportAsHexFormatted(),e.commonName)}const Mt=t=>{const{certificate:a}=t;return[e(Fe,{value:o.getString("miscellaneous")}),e("tr",null,e("td",{class:"vertical_align_middle"},e("peculiar-typography",{color:"grey_5"},o.getString("download"),":")),e("td",null,e("peculiar-button-split",{onClick:Ut.bind(void 0,a),actions:[{text:o.getString("download.der"),onClick:Yt.bind(void 0,a)}]},o.getString("download.pem"))))]},Xt=e=>"https://search.gleif.org/#/record/"+e,Wt=e=>"https://search.censys.io/search?resource=hosts&q=dns.names%3A"+e,Qt=e=>"https://search.censys.io/search?resource=hosts&q=ip%3A"
|
|
82
|
-
/**
|
|
83
|
-
* @license
|
|
84
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the MIT license found in the
|
|
87
|
-
* LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/+e,Jt=t=>{const{issuer:a}=t;return a?[e(Fe,{value:o.getString("issuer")}),a.map(t=>e(Je,{generalName:t,getDNSNameLink:()=>"",getIPAddressLink:()=>""}))]:null},Zt=t=>{const{holder:a}=t;if(!a)return null;const{baseCertificateID:i,objectDigestInfo:n}=a;return[e(Fe,{value:o.getString("holder")}),i&&[i.issuer.map(t=>e(Je,{generalName:t,getDNSNameLink:()=>"",getIPAddressLink:()=>""})),e("tr",null,e("td",null),e("td",null)),e(Ue,{name:o.getString("serialNumber"),value:d.ToHex(i.serial),monospace:!0}),e("tr",null,e("td",null),e("td",null))],n&&[e(Ue,{name:o.getString("digestInfo"),value:""}),e(Ue,{name:o.getString("algorithm"),value:Be(n.digestAlgorithm.algorithm)}),e(Ue,{name:o.getString("value"),value:d.ToHex(n.objectDigest),monospace:!0}),e(Ue,{name:o.getString("type"),value:n.digestedObjectType})]]},ea=class{constructor(e){t(this,e),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=e=>{var t;return null===(t=this.authKeyIdParentLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getAuthKeyIdSiblingsLink=e=>{var t;return null===(t=this.authKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getSubjectKeyIdChildrenLink=e=>{var t;return null===(t=this.subjectKeyIdChildrenLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)},this.getSubjectKeyIdSiblingsLink=e=>{var t;return null===(t=this.subjectKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(e){this.isDecodeInProcess=!0;try{if(e instanceof qe)this.certificateDecoded=e;else{if("string"!=typeof e)return;this.certificateDecoded=new qe(e)}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(e,t){"string"!=typeof e||"string"!=typeof t?e instanceof qe&&t instanceof qe&&e.serialNumber!==t.serialNumber&&this.decodeCertificate(e):e!==t&&this.decodeCertificate(e)}renderErrorState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this attribute certificate."))}renderEmptyState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no attribute certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?e(a,null,e("table",null,e(Ft,Object.assign({},this.certificateDecoded)),e(Jt,{issuer:this.certificateDecoded.issuer}),e(Zt,{holder:this.certificateDecoded.holder}),e(Ye,{signature:this.certificateDecoded.signature}),e(ct,{thumbprints:this.certificateDecoded.thumbprints}),e(lt,{attributes:this.certificateDecoded.attributes,getLEILink:Xt,getDNSNameLink:Wt,getIPAddressLink:Qt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),e(Bt,{extensions:this.certificateDecoded.extensions,getLEILink:Xt,getDNSNameLink:Wt,getIPAddressLink:Qt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&e(Mt,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};
|
|
89
|
-
/**
|
|
90
|
-
* @license
|
|
91
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the MIT license found in the
|
|
94
|
-
* LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/ea.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 .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 ta=class{constructor(e){t(this,e),this.fill="stroke",this.handleClick=e=>{if(this.disabled)return e.preventDefault(),void e.stopPropagation();this.onClick&&this.onClick(e)}}render(){const t=!!this.href;return e(t?"a":"button",{class:{button:!0,button_stroke:"stroke"===this.fill,button_fill:"fill"===this.fill,button_disabled:this.disabled},disabled:this.disabled,type:!t&&"button",href:t&&this.href,target:t&&this.target?this.target:null,rel:t&&"noreferrer noopener",onClick:this.handleClick,part:"base"},e("span",{part:"label",class:"button_label"},e("slot",null)))}};ta.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: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}';const aa=class{constructor(e){t(this,e),this.fill="stroke",this.actions=[],this.open=!1,this.onClickSplitButton=e=>{e.stopPropagation(),this.open=!this.open}}onClickActiveButton(e,t){this.open=!1,e(t)}renderActiveSplitState(){return this.open?e("div",{class:"button_split_container"},this.actions.map(t=>e("peculiar-button",{fill:"fill",class:"button_split_action",onClick:this.onClickActiveButton.bind(this,t.onClick)},t.text))):null}render(){return e("div",{class:{button_split:!0}},e("peculiar-button",{fill:this.fill,onClick:this.onClick},e("slot",null)),e("peculiar-button",{fill:this.fill,onClick:this.onClickSplitButton,class:{button_split_with_icon:!0,m_open:this.open}},e("svg",{viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",class:"button_split_icon"},e("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())}};aa.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: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}';const ia=class{constructor(e){t(this,e),this.onClickDecode=()=>{const{value:e}=this.inputPaste;e&&this.decode(e)},this.onClickExample=()=>{this.decode(this.certificateExample)},this.onClickClear=()=>{this.clearValue()},this.onChangeInputFile=async e=>{const t=e.target;if(t.files){const e=await Ve(t.files[0]);"string"==typeof e.value&&this.decode(e.value),t.value=""}},this.onDropFile=async e=>{e.stopPropagation(),e.preventDefault();const t=e.dataTransfer;if(t.files){const e=await Ve(t.files[0]);"string"==typeof e.value&&this.decode(e.value)}}}componentDidLoad(){const e=s.parseHash(window.location.search);e.cert&&setTimeout(()=>this.decode(e.cert),100)}clearValue(){this.inputPaste.value="",this.certificateDecoded=null,s.replace({search:""})}setValue(e){this.certificateDecoded=e,this.inputPaste.value=e.exportAsPemFormatted(),s.replace({search:s.queryStringify({cert:e.exportAsBase64()})})}decode(e){const t=Ke(e),a=Pe(e),i=Oe(e),n=Ge(e);let o,r;if(t&&!(a||n||i))return this.clearValue(),void alert("Unsupported file type. Please try to use Certificate/AttributeCertificate/CertificateRequest.");try{a&&(o=new Re(e)),n&&(o=new qe(e)),i&&(o=new $e(e))}catch(s){r=s}if(!o)try{o=new Re(e)}catch(s){r=s}if(!o)try{o=new qe(e)}catch(s){r=s}if(!o)try{o=new $e(e)}catch(s){r=s}o?this.setValue(o):(this.clearValue(),console.log(r),alert("Error decoding file. Please try to use Certificate/AttributeCertificate/CertificateRequest."))}render(){return e(a,null,e("textarea",{placeholder:"Certificate DER or PEM",class:"textarea",ref:e=>{this.inputPaste=e},onDrop:this.onDropFile}),e("div",{class:"controls"},e("peculiar-button",{fill:"fill",class:"button",onClick:this.onClickDecode},"Decode"),e("peculiar-button",{class:"button"},"Choose file",e("input",{type:"file",class:"input_file",accept:"application/pkix-cert,application/x-x509-ca-cert,application/x-x509-user-cert,application/pkcs10,.csr,.req",onChange:this.onChangeInputFile,value:""})),e("peculiar-button",{class:"button",onClick:this.onClickClear},"Clear"),this.certificateExample&&e("peculiar-button",{class:"button",onClick:this.onClickExample},"Example")),this.certificateDecoded instanceof Re&&e("peculiar-certificate-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}),this.certificateDecoded instanceof qe&&e("peculiar-attribute-certificate-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}),this.certificateDecoded instanceof $e&&e("peculiar-csr-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}))}};
|
|
96
|
-
/**
|
|
97
|
-
* @license
|
|
98
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
99
|
-
*
|
|
100
|
-
* This source code is licensed under the MIT license found in the
|
|
101
|
-
* LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/
|
|
103
|
-
function na(e){var t;if(null===(t=e.params)||void 0===t?void 0:t.modulus){let t=e.params.modulus.byteLength;return t%2&&(t-=1),8*t}return null}function oa(e){var t;return(null===(t=e.params)||void 0===t?void 0:t.publicExponent)?3===e.params.publicExponent.byteLength?65537:3:null}ia.style=":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;width:100%;font-size:0}.textarea{min-height:300px;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:14px;font-family:monospace;resize:vertical;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);font-size:14px;font-size:var(--pv-font-size-h7)}.controls{margin-top:10px}.button{position:relative}.button:not(:first-child){margin-left:10px}.viewer{margin-top:64px}.input_file{opacity:0;width:100%;height:100%;top:0;left:0;display:block;position:absolute}";const ra=t=>{var a;const{publicKey:i}=t;return i?[e(Fe,{value:o.getString("publicKeyInfo")}),e(Ue,{name:o.getString("algorithm"),value:Be(i.algorithm)}),e(Ue,{name:o.getString("namedCurve"),value:Be(null===(a=i.params)||void 0===a?void 0:a.namedCurve)}),e(Ue,{name:o.getString("exponent"),value:oa(i)}),e(Ue,{name:o.getString("modulus"),value:na(i)}),e(Ue,{name:o.getString("value"),value:d.ToHex(i.value),monospace:!0,collapse:!0})]:null},sa=t=>{const{name:a}=t;return[e(Fe,{value:o.getString("subjectName")}),a.map(t=>e(Ue,{name:t.name||t.type,value:t.value}))]},la=t=>{const{name:a,issuerDnLink:i}=t,n=o.getString("issuerName");return[e(Fe,{value:i?e("peculiar-link",{href:i,type:"h6"},n):n}),a.map(t=>e(Ue,{name:t.name||t.type,value:t.value}))]},ca=class{constructor(e){t(this,e),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=e=>{var t;return null===(t=this.authKeyIdParentLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getAuthKeyIdSiblingsLink=e=>{var t;return null===(t=this.authKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getSubjectKeyIdChildrenLink=e=>{var t;return null===(t=this.subjectKeyIdChildrenLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)},this.getSubjectKeyIdSiblingsLink=e=>{var t;return null===(t=this.subjectKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(e){this.isDecodeInProcess=!0;try{if(e instanceof Re)this.certificateDecoded=e;else{if("string"!=typeof e)return;this.certificateDecoded=new Re(e)}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(e,t){"string"!=typeof e||"string"!=typeof t?e instanceof Re&&t instanceof Re&&e.serialNumber!==t.serialNumber&&this.decodeCertificate(e):e!==t&&this.decodeCertificate(e)}getIssuerDnLink(){return this.issuerDnLink}renderErrorState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate."))}renderEmptyState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?e(a,{"data-view":this.view},e("table",null,e(Ft,Object.assign({},this.certificateDecoded)),e(sa,{name:this.certificateDecoded.subject}),e(la,{name:this.certificateDecoded.issuer,issuerDnLink:this.getIssuerDnLink()}),e(ra,{publicKey:this.certificateDecoded.publicKey}),e(Ye,{signature:this.certificateDecoded.signature}),e(ct,{thumbprints:this.certificateDecoded.thumbprints}),e(Bt,{extensions:this.certificateDecoded.extensions,getLEILink:Xt,getDNSNameLink:Wt,getIPAddressLink:Qt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&e(Mt,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};
|
|
104
|
-
/**
|
|
105
|
-
* @license
|
|
106
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the MIT license found in the
|
|
109
|
-
* LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/ca.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 .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 da=class{constructor(e){t(this,e),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=e=>e,this.getAuthKeyIdSiblingsLink=e=>e,this.getSubjectKeyIdChildrenLink=e=>{var t;return null===(t=this.subjectKeyIdChildrenLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)},this.getSubjectKeyIdSiblingsLink=e=>{var t;return null===(t=this.subjectKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(e){this.isDecodeInProcess=!0;try{if(e instanceof $e)this.certificateDecoded=e;else{if("string"!=typeof e)return;this.certificateDecoded=new $e(e)}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(e,t){"string"!=typeof e||"string"!=typeof t?e instanceof $e&&t instanceof $e&&e.commonName!==t.commonName&&this.decodeCertificate(e):e!==t&&this.decodeCertificate(e)}renderErrorState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate request."))}renderEmptyState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate request available."))}getExtensionRequestAttribute(){if(this.certificateDecoded)return this.certificateDecoded.attributes.find(e=>"1.2.840.113549.1.9.14"===e.asn.type)}render(){if(this.certificateDecodeError)return this.renderErrorState();if(!this.certificateDecoded)return this.renderEmptyState();const t=this.getExtensionRequestAttribute();return e(a,{"data-view":this.view},e("table",null,e(Ft,Object.assign({},this.certificateDecoded)),e(sa,{name:this.certificateDecoded.subject}),e(ra,{publicKey:this.certificateDecoded.publicKey}),e(Ye,{signature:this.certificateDecoded.signature}),e(ct,{thumbprints:this.certificateDecoded.thumbprints}),e(lt,{attributes:this.certificateDecoded.attributes,getLEILink:Xt,getDNSNameLink:Wt,getIPAddressLink:Qt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),e(Bt,{extensions:null==t?void 0:t.value,title:"Extension Request",getLEILink:Xt,getDNSNameLink:Wt,getIPAddressLink:Qt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&e(Mt,{certificate:this.certificateDecoded})))}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};da.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 .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 ba=class{constructor(e){t(this,e),this.type="b3"}render(){return e("a",{href:this.href,target:"_blank",rel:"noreferrer noopener",class:{link:!0,["link_type_"+(this.type||"b3")]:!0}},e("slot",null))}};ba.style=':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}';const pa=class{constructor(e){t(this,e),this.textExpand=i(this,"textExpand",7),this.opened=!1}textExpandHandler(){this.opened=!this.opened}render(){return e(a,null,e("div",{class:"root"},e("div",{class:{text:!0,m_opened:this.opened}},e("slot",null)),e("div",{class:"action"},e("peculiar-button",{onClick:this.textExpand.emit,class:{button_action:!0,m_opened:this.opened},fill:this.opened?"fill":"stroke"},e("svg",{viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",class:"expand_icon"},e("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"}))))))}};pa.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%}.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)}";const ha=class{constructor(e){t(this,e),this.type="b3",this.color="dark"}render(){const t=this.type&&this.type.includes("h")?this.type:"p";return e(t,{class:{typography:!0,["typography_type_"+(this.type||"b3")]:!0,["typography_color_"+(this.color||"dark")]:!0,["typography_align_"+this.align]:!!this.align,typography_ellipsis:this.ellipsis,typography_monospace:this.monospace}},e("slot",null))}};ha.style=':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}';export{ea as peculiar_attribute_certificate_viewer,ta as peculiar_button,aa as peculiar_button_split,ia as peculiar_certificate_decoder,ca as peculiar_certificate_viewer,da as peculiar_csr_viewer,ba as peculiar_link,pa as peculiar_text_hider,ha as peculiar_typography}
|