@peculiar/certificates-viewer 4.4.0 → 4.6.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/components/actions.js.map +1 -1
- package/components/arrow_top.js.map +1 -1
- package/components/attribute-certificate-viewer.js +2 -4
- package/components/attribute-certificate-viewer.js.map +1 -1
- package/components/attribute.js.map +1 -1
- package/components/button-menu.js +1 -3
- package/components/button-menu.js.map +1 -1
- package/components/button.js +2 -2
- package/components/button.js.map +1 -1
- package/components/certificate-chain-viewer.js +0 -1
- package/components/certificate-chain-viewer.js.map +1 -1
- package/components/certificate-viewer.js +3 -8
- package/components/certificate-viewer.js.map +1 -1
- package/components/circular-progress.js +2 -6
- package/components/circular-progress.js.map +1 -1
- package/components/crl-viewer.js +0 -2
- package/components/crl-viewer.js.map +1 -1
- package/components/cross.js.map +1 -1
- package/components/csr-viewer.js +0 -4
- package/components/csr-viewer.js.map +1 -1
- package/components/download.js +49 -23
- package/components/download.js.map +1 -1
- package/components/highlight-words.js +1 -1
- package/components/highlight-words.js.map +1 -1
- package/components/index2.js +2 -1
- package/components/index2.js.map +1 -1
- package/components/issuer_name.js +3 -1
- package/components/issuer_name.js.map +1 -1
- package/components/miscellaneous.js +15 -16
- package/components/miscellaneous.js.map +1 -1
- package/components/peculiar-certificate-decoder.js +7 -8
- package/components/peculiar-certificate-decoder.js.map +1 -1
- package/components/peculiar-certificates-viewer.js +44 -43
- package/components/peculiar-certificates-viewer.js.map +1 -1
- package/components/peculiar-text-hider.js +1 -1
- package/components/peculiar-text-hider.js.map +1 -1
- package/components/pkcs10_certificate_request.js.map +1 -1
- package/components/read_file.js.map +1 -1
- package/components/subject_name.js.map +1 -1
- package/dist/cjs/actions-Dl4HXXlI.js.map +1 -1
- package/dist/cjs/arrow_top-DBMPHVlB.js.map +1 -1
- package/dist/cjs/{button-C5jDF-CZ.js → button-B0CduHSE.js} +4 -4
- package/dist/cjs/button-B0CduHSE.js.map +1 -0
- package/dist/cjs/{certification_request-Bipg1Az7.js → certification_request-DaJSDP3R.js} +50 -24
- package/dist/cjs/certification_request-DaJSDP3R.js.map +1 -0
- package/dist/cjs/cross-pi7K0cHC.js.map +1 -1
- package/dist/cjs/download-D9skkVoT.js.map +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{link-CwLq-Nge.js → link-kgbgxxVh.js} +4 -4
- package/dist/cjs/link-kgbgxxVh.js.map +1 -0
- package/dist/cjs/{miscellaneous-C0sOAo-1.js → miscellaneous-Ce9aGjKB.js} +23 -22
- package/dist/cjs/miscellaneous-Ce9aGjKB.js.map +1 -0
- package/dist/cjs/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer_4.cjs.entry.js +8 -16
- package/dist/cjs/peculiar-attribute-certificate-viewer_4.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-button-menu.peculiar-circular-progress.peculiar-highlight-words.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +5 -11
- package/dist/cjs/peculiar-button-menu_3.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +12 -13
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificate-decoder.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +5 -7
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificate-viewer.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +47 -46
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificates-viewer.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-text-hider.cjs.entry.js +2 -2
- package/dist/cjs/peculiar-text-hider.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-text-hider.entry.cjs.js.map +1 -1
- package/dist/cjs/{pkcs10_certificate_request-BDz0P_px.js → pkcs10_certificate_request-D13Ssi7Z.js} +3 -3
- package/dist/cjs/pkcs10_certificate_request-D13Ssi7Z.js.map +1 -0
- package/dist/cjs/read_file-DWtcn3zU.js.map +1 -1
- package/dist/cjs/{x509_certificate-DRvXOszL.js → x509_certificate-h5GZArG6.js} +6 -9
- package/dist/cjs/x509_certificate-h5GZArG6.js.map +1 -0
- package/dist/cjs/{x509_crl-DVGVym_S.js → x509_crl-CDPt6P1z.js} +6 -6
- package/dist/cjs/x509_crl-CDPt6P1z.js.map +1 -0
- package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +4 -6
- package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js.map +1 -1
- package/dist/collection/components/button/button.js +3 -3
- package/dist/collection/components/button/button.js.map +1 -1
- package/dist/collection/components/button/index.js.map +1 -1
- package/dist/collection/components/button-menu/button-menu.js +5 -7
- package/dist/collection/components/button-menu/button-menu.js.map +1 -1
- package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.js +1 -2
- package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.js.map +1 -1
- package/dist/collection/components/certificate-decoder/certificate-decoder.js +4 -1
- package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/index.js +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/index.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/name_part.js +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/name_part.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/basic_information.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/cabforganization_identifier_extension.js +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/cabforganization_identifier_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js +3 -3
- package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/index.js +2 -2
- package/dist/collection/components/certificate-details-parts/extensions/index.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js +0 -1
- package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js +2 -2
- package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/holder.js +1 -1
- package/dist/collection/components/certificate-details-parts/holder.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/issuer.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/issuer_name.js +3 -1
- package/dist/collection/components/certificate-details-parts/issuer_name.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/miscellaneous.js +2 -2
- package/dist/collection/components/certificate-details-parts/miscellaneous.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/public_key.js +1 -1
- package/dist/collection/components/certificate-details-parts/public_key.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/revoked_certificates.js +3 -3
- package/dist/collection/components/certificate-details-parts/revoked_certificates.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/row.js +3 -3
- package/dist/collection/components/certificate-details-parts/row.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/signature.js +1 -1
- package/dist/collection/components/certificate-details-parts/signature.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/subject_name.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/thumbprints.js.map +1 -1
- package/dist/collection/components/certificate-summary/certificate-summary.js.map +1 -1
- package/dist/collection/components/certificate-viewer/certificate-viewer.js +5 -7
- package/dist/collection/components/certificate-viewer/certificate-viewer.js.map +1 -1
- package/dist/collection/components/certificates-viewer/certificates-viewer.js +44 -43
- package/dist/collection/components/certificates-viewer/certificates-viewer.js.map +1 -1
- package/dist/collection/components/circular-progress/circular-progress.js +2 -6
- package/dist/collection/components/circular-progress/circular-progress.js.map +1 -1
- package/dist/collection/components/crl-viewer/crl-viewer.js +4 -6
- package/dist/collection/components/crl-viewer/crl-viewer.js.map +1 -1
- package/dist/collection/components/csr-viewer/csr-viewer.js +4 -8
- package/dist/collection/components/csr-viewer/csr-viewer.js.map +1 -1
- package/dist/collection/components/highlight-words/highlight-words.js +1 -1
- package/dist/collection/components/highlight-words/highlight-words.js.map +1 -1
- package/dist/collection/components/icons/actions.js.map +1 -1
- package/dist/collection/components/icons/arrow_bottom.js.map +1 -1
- package/dist/collection/components/icons/arrow_top.js.map +1 -1
- package/dist/collection/components/icons/cross.js.map +1 -1
- package/dist/collection/components/icons/details.js.map +1 -1
- package/dist/collection/components/icons/download.js.map +1 -1
- package/dist/collection/components/icons/link.js.map +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/link/link.js.map +1 -1
- package/dist/collection/components/text-hider/text-hider.js +1 -1
- package/dist/collection/components/text-hider/text-hider.js.map +1 -1
- package/dist/collection/components/typography/typography.js.map +1 -1
- package/dist/collection/constants/oids.js +21 -3
- package/dist/collection/constants/oids.js.map +1 -1
- package/dist/collection/crypto/asn_data.js +1 -1
- package/dist/collection/crypto/asn_data.js.map +1 -1
- package/dist/collection/crypto/attribute.js.map +1 -1
- package/dist/collection/crypto/extension.js.map +1 -1
- package/dist/collection/crypto/name.js.map +1 -1
- package/dist/collection/crypto/pem_converter.js +13 -8
- package/dist/collection/crypto/pem_converter.js.map +1 -1
- package/dist/collection/crypto/pkcs10_certificate_request.js.map +1 -1
- package/dist/collection/crypto/provider.js +7 -3
- package/dist/collection/crypto/provider.js.map +1 -1
- package/dist/collection/crypto/utils.js +1 -1
- package/dist/collection/crypto/utils.js.map +1 -1
- package/dist/collection/crypto/x509_attribute_certificate.js +2 -2
- package/dist/collection/crypto/x509_attribute_certificate.js.map +1 -1
- package/dist/collection/crypto/x509_certificate.js +3 -6
- package/dist/collection/crypto/x509_certificate.js.map +1 -1
- package/dist/collection/crypto/x509_certificates.js +3 -7
- package/dist/collection/crypto/x509_certificates.js.map +1 -1
- package/dist/collection/crypto/x509_crl.js.map +1 -1
- package/dist/collection/utils/download.js +1 -0
- package/dist/collection/utils/download.js.map +1 -1
- package/dist/collection/utils/download_from_buffer.js +3 -3
- package/dist/collection/utils/download_from_buffer.js.map +1 -1
- package/dist/collection/utils/l10n.js +1 -3
- package/dist/collection/utils/l10n.js.map +1 -1
- package/dist/collection/utils/read_file.js.map +1 -1
- package/dist/esm/actions-DzoPRObK.js.map +1 -1
- package/dist/esm/arrow_top-CF9pv-tQ.js.map +1 -1
- package/dist/esm/{button-Djn8UI82.js → button-Do0R_8PZ.js} +4 -4
- package/dist/esm/button-Do0R_8PZ.js.map +1 -0
- package/dist/esm/{certification_request-BTbyumBe.js → certification_request-DazysL_f.js} +50 -24
- package/dist/esm/certification_request-DazysL_f.js.map +1 -0
- package/dist/esm/cross-DdCuR1F2.js.map +1 -1
- package/dist/esm/download-Cqfc-Sxf.js.map +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{link-BfDk078v.js → link-qg3yKAoS.js} +4 -4
- package/dist/esm/link-qg3yKAoS.js.map +1 -0
- package/dist/esm/{miscellaneous-CGtCg3Q9.js → miscellaneous-BJPX0Hs_.js} +23 -22
- package/dist/esm/miscellaneous-BJPX0Hs_.js.map +1 -0
- package/dist/esm/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.js.map +1 -1
- package/dist/esm/peculiar-attribute-certificate-viewer_4.entry.js +8 -16
- package/dist/esm/peculiar-attribute-certificate-viewer_4.entry.js.map +1 -1
- package/dist/esm/peculiar-button-menu.peculiar-circular-progress.peculiar-highlight-words.entry.js.map +1 -1
- package/dist/esm/peculiar-button-menu_3.entry.js +5 -11
- package/dist/esm/peculiar-button-menu_3.entry.js.map +1 -1
- package/dist/esm/peculiar-certificate-decoder.entry.js +12 -13
- package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -1
- package/dist/esm/peculiar-certificate-viewer.entry.js +5 -7
- package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -1
- package/dist/esm/peculiar-certificates-viewer.entry.js +47 -46
- package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -1
- package/dist/esm/peculiar-text-hider.entry.js +2 -2
- package/dist/esm/peculiar-text-hider.entry.js.map +1 -1
- package/dist/esm/{pkcs10_certificate_request-CrA_WcgY.js → pkcs10_certificate_request-SQcYKma2.js} +3 -3
- package/dist/esm/pkcs10_certificate_request-SQcYKma2.js.map +1 -0
- package/dist/esm/read_file-F2F0McJX.js.map +1 -1
- package/dist/esm/{x509_certificate-DX7sKoAD.js → x509_certificate-Dmgw53TR.js} +6 -9
- package/dist/esm/x509_certificate-Dmgw53TR.js.map +1 -0
- package/dist/esm/{x509_crl-DRjoh8Yp.js → x509_crl-B5TRu79b.js} +6 -6
- package/dist/esm/x509_crl-B5TRu79b.js.map +1 -0
- package/dist/esm-es5/actions-DzoPRObK.js.map +1 -1
- package/dist/esm-es5/arrow_top-CF9pv-tQ.js.map +1 -1
- package/dist/esm-es5/{button-Djn8UI82.js → button-Do0R_8PZ.js} +2 -2
- package/dist/esm-es5/button-Do0R_8PZ.js.map +1 -0
- package/dist/esm-es5/{certification_request-BTbyumBe.js → certification_request-DazysL_f.js} +15 -15
- package/dist/esm-es5/certification_request-DazysL_f.js.map +1 -0
- package/dist/esm-es5/cross-DdCuR1F2.js.map +1 -1
- package/dist/esm-es5/download-Cqfc-Sxf.js.map +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{link-BfDk078v.js → link-qg3yKAoS.js} +3 -3
- package/dist/esm-es5/link-qg3yKAoS.js.map +1 -0
- package/dist/esm-es5/{miscellaneous-CGtCg3Q9.js → miscellaneous-BJPX0Hs_.js} +3 -3
- package/dist/esm-es5/miscellaneous-BJPX0Hs_.js.map +1 -0
- package/dist/esm-es5/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_4.entry.js +1 -1
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_4.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-button-menu.peculiar-circular-progress.peculiar-highlight-words.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-button-menu_3.entry.js +1 -1
- package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +2 -2
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-text-hider.entry.js +1 -1
- package/dist/esm-es5/peculiar-text-hider.entry.js.map +1 -1
- package/dist/esm-es5/{pkcs10_certificate_request-CrA_WcgY.js → pkcs10_certificate_request-SQcYKma2.js} +2 -2
- package/dist/esm-es5/pkcs10_certificate_request-SQcYKma2.js.map +1 -0
- package/dist/esm-es5/read_file-F2F0McJX.js.map +1 -1
- package/dist/esm-es5/{x509_certificate-DX7sKoAD.js → x509_certificate-Dmgw53TR.js} +3 -3
- package/dist/esm-es5/x509_certificate-Dmgw53TR.js.map +1 -0
- package/dist/esm-es5/{x509_crl-DRjoh8Yp.js → x509_crl-B5TRu79b.js} +4 -4
- package/dist/esm-es5/x509_crl-B5TRu79b.js.map +1 -0
- package/dist/peculiar/index.esm.js +1 -1
- package/dist/peculiar/p--Pej0I-A.system.js.map +1 -0
- package/dist/peculiar/{p-CpTwQbPC.js → p-0HZUc9Ix.js} +3 -3
- package/dist/peculiar/p-0HZUc9Ix.js.map +1 -0
- package/dist/peculiar/p-15c2b820.entry.js +5 -0
- package/dist/peculiar/{p-f4490197.entry.js.map → p-15c2b820.entry.js.map} +1 -1
- package/dist/peculiar/{p-ab220e36.system.entry.js → p-16aa5600.system.entry.js} +2 -2
- package/dist/peculiar/p-16aa5600.system.entry.js.map +1 -0
- package/dist/peculiar/{p-e7266b0a.entry.js → p-1cbb0d6b.entry.js} +15 -15
- package/dist/peculiar/p-1cbb0d6b.entry.js.map +1 -0
- package/dist/peculiar/{p-85667993.entry.js → p-218364f2.entry.js} +2 -2
- package/dist/peculiar/p-218364f2.entry.js.map +1 -0
- package/dist/peculiar/{p-Bw_icgVx.js → p-3zhoLQno.js} +4 -4
- package/dist/peculiar/p-3zhoLQno.js.map +1 -0
- package/dist/peculiar/{p-73a75d1e.system.entry.js → p-44648a8e.system.entry.js} +3 -3
- package/dist/peculiar/p-44648a8e.system.entry.js.map +1 -0
- package/dist/peculiar/{p-092074e8.system.entry.js → p-52444a44.system.entry.js} +2 -2
- package/dist/peculiar/p-52444a44.system.entry.js.map +1 -0
- package/dist/peculiar/{p-c2a805b3.entry.js → p-5b843427.entry.js} +3 -3
- package/dist/peculiar/p-5b843427.entry.js.map +1 -0
- package/dist/peculiar/{p-12d2e080.entry.js → p-7b0e7f43.entry.js} +2 -2
- package/dist/peculiar/p-7b0e7f43.entry.js.map +1 -0
- package/dist/peculiar/p-B2YrZuK2.system.js.map +1 -1
- package/dist/peculiar/p-BA8os2l6.system.js.map +1 -0
- package/dist/peculiar/p-BAB4EyrL.system.js.map +1 -0
- package/dist/peculiar/{p-B7TxZGea.system.js → p-BBZwtkNN.system.js} +4 -4
- package/dist/peculiar/p-BBZwtkNN.system.js.map +1 -0
- package/dist/peculiar/p-BBgwMHRZ.system.js.map +1 -1
- package/dist/peculiar/p-BHBizfwo.js.map +1 -1
- package/dist/peculiar/{p-lnQq6VON.system.js → p-BKKflyKt.system.js} +5 -5
- package/dist/peculiar/p-BKKflyKt.system.js.map +1 -0
- package/dist/peculiar/p-BOSH9vjy.system.js.map +1 -1
- package/dist/peculiar/p-BP2bmYR2.system.js.map +1 -1
- package/dist/peculiar/p-BcFnjn1R.system.js.map +1 -0
- package/dist/peculiar/{p-vMACJe_C.system.js → p-BmIps4bV.system.js} +22 -22
- package/dist/peculiar/p-BmIps4bV.system.js.map +1 -0
- package/dist/peculiar/{p-B0CjUC4o.system.js → p-CDh6shXP.system.js} +9 -9
- package/dist/peculiar/p-CDh6shXP.system.js.map +1 -0
- package/dist/peculiar/{p-BisXzAqN.js → p-CEHpBNWe.js} +3 -3
- package/dist/peculiar/p-CEHpBNWe.js.map +1 -0
- package/dist/peculiar/{p-Ct0zEUB_.js → p-CJro0Exb.js} +12 -12
- package/dist/peculiar/p-CJro0Exb.js.map +1 -0
- package/dist/peculiar/p-CWs-Ocvt.system.js.map +1 -0
- package/dist/peculiar/p-CeKqQ13Z.js.map +1 -1
- package/dist/peculiar/{p-BCATfe_H.js → p-CkwiD_ia.js} +2 -2
- package/dist/peculiar/p-CkwiD_ia.js.map +1 -0
- package/dist/peculiar/{p-BRhx1gbw.system.js → p-Cm-ylIxb.system.js} +2 -2
- package/dist/peculiar/p-Cm-ylIxb.system.js.map +1 -0
- package/dist/peculiar/p-D2QB-8Q6.system.js.map +1 -1
- package/dist/peculiar/p-D5BWI7FK.system.js +1 -1
- package/dist/peculiar/p-DJRm54BZ.system.js.map +1 -0
- package/dist/peculiar/{p-DxdVL_Kj.system.js → p-DRoyzOgk.system.js} +3 -3
- package/dist/peculiar/p-DRoyzOgk.system.js.map +1 -0
- package/dist/peculiar/{p-BTbyumBe.js → p-DazysL_f.js} +9 -9
- package/dist/peculiar/p-DazysL_f.js.map +1 -0
- package/dist/peculiar/p-DhdG07f8.js.map +1 -1
- package/dist/peculiar/p-DkAhB3Vy.js.map +1 -1
- package/dist/peculiar/{p-4IvcYmU7.js → p-DzItK48Y.js} +4 -4
- package/dist/peculiar/p-DzItK48Y.js.map +1 -0
- package/dist/peculiar/p-F2F0McJX.js.map +1 -1
- package/dist/peculiar/{p-wgYkE8CV.system.js → p-YHrZ3f_s.system.js} +2 -2
- package/dist/peculiar/p-YHrZ3f_s.system.js.map +1 -0
- package/dist/peculiar/p-a3c0f753.system.entry.js +5 -0
- package/dist/peculiar/{p-cae95996.system.entry.js.map → p-a3c0f753.system.entry.js.map} +1 -1
- package/dist/peculiar/{p-80fc5538.entry.js → p-ab6a8a44.entry.js} +2 -2
- package/dist/peculiar/p-ab6a8a44.entry.js.map +1 -0
- package/dist/peculiar/{p-1af57833.system.entry.js → p-d16ddef8.system.entry.js} +2 -2
- package/dist/peculiar/p-d16ddef8.system.entry.js.map +1 -0
- package/dist/peculiar/{p-1b3855ec.system.entry.js → p-d9013293.system.entry.js} +16 -16
- package/dist/peculiar/p-d9013293.system.entry.js.map +1 -0
- package/dist/peculiar/{p-B859JpGw.system.js → p-wYK0iVYg.system.js} +2 -2
- package/dist/peculiar/p-wYK0iVYg.system.js.map +1 -0
- package/dist/peculiar/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar-button-menu.peculiar-circular-progress.peculiar-highlight-words.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar-certificate-decoder.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar-certificate-viewer.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar-certificates-viewer.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar-text-hider.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/attribute-certificate-viewer/attribute-certificate-viewer.d.ts +3 -3
- package/dist/types/components/button/button.d.ts +2 -2
- package/dist/types/components/button/index.d.ts +1 -1
- package/dist/types/components/button-menu/button-menu.d.ts +5 -5
- package/dist/types/components/certificate-details-parts/miscellaneous.d.ts +2 -2
- package/dist/types/components/certificate-summary/certificate-summary.d.ts +2 -2
- package/dist/types/components/certificate-viewer/certificate-viewer.d.ts +3 -3
- package/dist/types/components/certificates-viewer/certificates-viewer.d.ts +3 -2
- package/dist/types/components/crl-viewer/crl-viewer.d.ts +3 -3
- package/dist/types/components/csr-viewer/csr-viewer.d.ts +3 -3
- package/dist/types/components/icons/actions.d.ts +2 -2
- package/dist/types/components/icons/arrow_bottom.d.ts +2 -2
- package/dist/types/components/icons/arrow_top.d.ts +2 -2
- package/dist/types/components/icons/cross.d.ts +2 -2
- package/dist/types/components/icons/details.d.ts +2 -2
- package/dist/types/components/icons/download.d.ts +2 -2
- package/dist/types/components/icons/link.d.ts +2 -2
- package/dist/types/components/link/link.d.ts +4 -4
- package/dist/types/components/typography/typography.d.ts +5 -5
- package/dist/types/components.d.ts +20 -20
- package/dist/types/constants/oids.d.ts +20 -3
- package/dist/types/crypto/asn_data.d.ts +1 -3
- package/dist/types/crypto/pem_converter.d.ts +7 -19
- package/dist/types/crypto/provider.d.ts +1 -6
- package/dist/types/interface.d.ts +3 -3
- package/dist/types/utils/l10n.d.ts +6 -6
- package/dist/types/utils/read_file.d.ts +7 -7
- package/hydrate/index.js +132 -124
- package/hydrate/index.mjs +132 -124
- package/package.json +2 -2
- package/dist/cjs/button-C5jDF-CZ.js.map +0 -1
- package/dist/cjs/certification_request-Bipg1Az7.js.map +0 -1
- package/dist/cjs/link-CwLq-Nge.js.map +0 -1
- package/dist/cjs/miscellaneous-C0sOAo-1.js.map +0 -1
- package/dist/cjs/pkcs10_certificate_request-BDz0P_px.js.map +0 -1
- package/dist/cjs/x509_certificate-DRvXOszL.js.map +0 -1
- package/dist/cjs/x509_crl-DVGVym_S.js.map +0 -1
- package/dist/esm/button-Djn8UI82.js.map +0 -1
- package/dist/esm/certification_request-BTbyumBe.js.map +0 -1
- package/dist/esm/link-BfDk078v.js.map +0 -1
- package/dist/esm/miscellaneous-CGtCg3Q9.js.map +0 -1
- package/dist/esm/pkcs10_certificate_request-CrA_WcgY.js.map +0 -1
- package/dist/esm/x509_certificate-DX7sKoAD.js.map +0 -1
- package/dist/esm/x509_crl-DRjoh8Yp.js.map +0 -1
- package/dist/esm-es5/button-Djn8UI82.js.map +0 -1
- package/dist/esm-es5/certification_request-BTbyumBe.js.map +0 -1
- package/dist/esm-es5/link-BfDk078v.js.map +0 -1
- package/dist/esm-es5/miscellaneous-CGtCg3Q9.js.map +0 -1
- package/dist/esm-es5/pkcs10_certificate_request-CrA_WcgY.js.map +0 -1
- package/dist/esm-es5/x509_certificate-DX7sKoAD.js.map +0 -1
- package/dist/esm-es5/x509_crl-DRjoh8Yp.js.map +0 -1
- package/dist/peculiar/p-092074e8.system.entry.js.map +0 -1
- package/dist/peculiar/p-12d2e080.entry.js.map +0 -1
- package/dist/peculiar/p-1af57833.system.entry.js.map +0 -1
- package/dist/peculiar/p-1b3855ec.system.entry.js.map +0 -1
- package/dist/peculiar/p-4IvcYmU7.js.map +0 -1
- package/dist/peculiar/p-73a75d1e.system.entry.js.map +0 -1
- package/dist/peculiar/p-7Nmqck4T.system.js.map +0 -1
- package/dist/peculiar/p-80fc5538.entry.js.map +0 -1
- package/dist/peculiar/p-85667993.entry.js.map +0 -1
- package/dist/peculiar/p-B0CjUC4o.system.js.map +0 -1
- package/dist/peculiar/p-B7TxZGea.system.js.map +0 -1
- package/dist/peculiar/p-B859JpGw.system.js.map +0 -1
- package/dist/peculiar/p-BCATfe_H.js.map +0 -1
- package/dist/peculiar/p-BRhx1gbw.system.js.map +0 -1
- package/dist/peculiar/p-BTbyumBe.js.map +0 -1
- package/dist/peculiar/p-BX9qW3ww.system.js.map +0 -1
- package/dist/peculiar/p-BbPo3hge.system.js.map +0 -1
- package/dist/peculiar/p-BisXzAqN.js.map +0 -1
- package/dist/peculiar/p-Bw_icgVx.js.map +0 -1
- package/dist/peculiar/p-C_7Koml8.system.js.map +0 -1
- package/dist/peculiar/p-CpTwQbPC.js.map +0 -1
- package/dist/peculiar/p-Ct0zEUB_.js.map +0 -1
- package/dist/peculiar/p-DxdVL_Kj.system.js.map +0 -1
- package/dist/peculiar/p-FVz6FuoZ.system.js.map +0 -1
- package/dist/peculiar/p-RW7UbzcZ.system.js.map +0 -1
- package/dist/peculiar/p-ab220e36.system.entry.js.map +0 -1
- package/dist/peculiar/p-c2a805b3.entry.js.map +0 -1
- package/dist/peculiar/p-cae95996.system.entry.js +0 -5
- package/dist/peculiar/p-e7266b0a.entry.js.map +0 -1
- package/dist/peculiar/p-f4490197.entry.js +0 -5
- package/dist/peculiar/p-lnQq6VON.system.js.map +0 -1
- package/dist/peculiar/p-vMACJe_C.system.js.map +0 -1
- package/dist/peculiar/p-wgYkE8CV.system.js.map +0 -1
package/hydrate/index.js
CHANGED
|
@@ -9544,9 +9544,7 @@ var en = {
|
|
|
9544
9544
|
* This source code is licensed under the MIT license found in the
|
|
9545
9545
|
* LICENSE file in the root directory of this source tree.
|
|
9546
9546
|
*/
|
|
9547
|
-
const MESSAGES_ALL = {
|
|
9548
|
-
en,
|
|
9549
|
-
};
|
|
9547
|
+
const MESSAGES_ALL = { en };
|
|
9550
9548
|
class Localization {
|
|
9551
9549
|
constructor() {
|
|
9552
9550
|
this.setLocale = (locale) => {
|
|
@@ -9596,9 +9594,9 @@ const l10n = new Localization();
|
|
|
9596
9594
|
*/
|
|
9597
9595
|
function downloadFromBuffer(value, name, extension, mime = 'application/octet-stream') {
|
|
9598
9596
|
const blob = new Blob([value], { type: mime });
|
|
9599
|
-
// @ts-
|
|
9600
|
-
if (navigator.msSaveBlob) {
|
|
9601
|
-
// @ts-
|
|
9597
|
+
// @ts-expect-error - IE10+ : (has Blob, but not a[download] or URL)
|
|
9598
|
+
if (navigator.msSaveBlob) {
|
|
9599
|
+
// @ts-expect-error - IE10+ : (has Blob, but not a[download] or URL)
|
|
9602
9600
|
navigator.msSaveBlob(blob, `${name}.${extension}`);
|
|
9603
9601
|
return new Promise((resolve) => {
|
|
9604
9602
|
setTimeout(resolve, 100);
|
|
@@ -9632,6 +9630,7 @@ function downloadFromBuffer(value, name, extension, mime = 'application/octet-st
|
|
|
9632
9630
|
* This source code is licensed under the MIT license found in the
|
|
9633
9631
|
* LICENSE file in the root directory of this source tree.
|
|
9634
9632
|
*/
|
|
9633
|
+
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
9635
9634
|
class Download {
|
|
9636
9635
|
}
|
|
9637
9636
|
Download.cert = {
|
|
@@ -10915,6 +10914,7 @@ const OIDs = {
|
|
|
10915
10914
|
'1.3.6.1.4.1.40869.1.1.22.3': 'TWCAEV policy',
|
|
10916
10915
|
'1.3.6.1.4.1.13177.10.1.2.2': 'Corporate certificates for Natural Person',
|
|
10917
10916
|
'1.3.6.1.4.1.37476.9000.64.1': 'Smallstep CA Provisioner ID',
|
|
10917
|
+
'1.3.6.1.5.2.3.4': 'KP Client Authentication',
|
|
10918
10918
|
'1.3.6.1.5.2.3.5': 'KCD Authentication',
|
|
10919
10919
|
'1.3.6.1.5.5.7': 'PKIX',
|
|
10920
10920
|
'1.3.6.1.5.5.7.0.12': 'Attribute Cert',
|
|
@@ -10951,6 +10951,7 @@ const OIDs = {
|
|
|
10951
10951
|
'1.3.6.1.5.5.7.3.11': 'Sbgp Cert AA Server Auth',
|
|
10952
10952
|
'1.3.6.1.5.5.7.3.13': 'Eap Over PPP',
|
|
10953
10953
|
'1.3.6.1.5.5.7.3.14': 'Eap Over LAN',
|
|
10954
|
+
'1.3.6.1.5.5.7.3.21': 'Secure Shell Client',
|
|
10954
10955
|
'1.3.6.1.5.5.7.3.31': 'Brand Indicator for Message Identification',
|
|
10955
10956
|
'1.3.6.1.5.5.7.3.46': 'Document Signing',
|
|
10956
10957
|
'1.3.6.1.5.5.7.4': 'Cmp Information Types',
|
|
@@ -11683,6 +11684,7 @@ const OIDs = {
|
|
|
11683
11684
|
'2.16.840.1.101.3.2.1.3.3': 'FBCA Medium Policy',
|
|
11684
11685
|
'2.16.840.1.101.3.2.1.3.4': 'FBCA High Policy',
|
|
11685
11686
|
'2.16.840.1.101.3.2.1.3.12': 'FBCA Medium Hardware Policy',
|
|
11687
|
+
'2.16.840.1.101.3.2.1.3.13': 'FPKI Common Authentication Policy',
|
|
11686
11688
|
'2.16.840.1.101.3.2.1.48.1': 'Nist Test Policy1',
|
|
11687
11689
|
'2.16.840.1.101.3.2.1.48.2': 'Nist Test Policy2',
|
|
11688
11690
|
'2.16.840.1.101.3.2.1.48.3': 'Nist Test Policy3',
|
|
@@ -11731,9 +11733,8 @@ const OIDs = {
|
|
|
11731
11733
|
'2.16.840.1.101.3.4.2.4': 'SHA-224',
|
|
11732
11734
|
'2.16.840.1.101.3.4.3.1': 'DSA with Sha224',
|
|
11733
11735
|
'2.16.840.1.101.3.4.3.2': 'DSA with Sha256',
|
|
11734
|
-
'2.16.840.1.101.3.
|
|
11735
|
-
'2.16.840.1.101.3.
|
|
11736
|
-
'2.16.840.1.101.3.4.3.19': 'ML-DSA-87',
|
|
11736
|
+
'2.16.840.1.101.3.6.9.1': 'Personal Identity Verification (PIV) National Agency Check with Inquiries (NACI) indicator',
|
|
11737
|
+
'2.16.840.1.101.3.6.6': 'FASC-N',
|
|
11737
11738
|
'2.16.840.1.113719.1.2.8': 'Novell Algorithm',
|
|
11738
11739
|
'2.16.840.1.113719.1.2.8.22': 'DES Cbc IV8',
|
|
11739
11740
|
'2.16.840.1.113719.1.2.8.23': 'DES Cbc Pad IV8',
|
|
@@ -12017,6 +12018,22 @@ const OIDs = {
|
|
|
12017
12018
|
'2.23.140.1.31': 'CA/B Forum Onion EV',
|
|
12018
12019
|
'2.23.140.2.1': 'CA/B Forum Test Certificate',
|
|
12019
12020
|
'2.23.140.3.1': 'CA/B Forum Organization Identifier',
|
|
12021
|
+
// https://github.com/IETF-Hackathon/pqc-certificates/blob/master/docs/oid_mapping.md
|
|
12022
|
+
'2.16.840.1.101.3.4.3.17': 'ML-DSA-44',
|
|
12023
|
+
'2.16.840.1.101.3.4.3.18': 'ML-DSA-65',
|
|
12024
|
+
'2.16.840.1.101.3.4.3.19': 'ML-DSA-87',
|
|
12025
|
+
'2.16.840.1.101.3.4.3.20': 'SLH-DSA-SHA2-128s',
|
|
12026
|
+
'2.16.840.1.101.3.4.3.21': 'SLH-DSA-SHA2-128f',
|
|
12027
|
+
'2.16.840.1.101.3.4.3.22': 'SLH-DSA-SHA2-192s',
|
|
12028
|
+
'2.16.840.1.101.3.4.3.23': 'SLH-DSA-SHA2-192f',
|
|
12029
|
+
'2.16.840.1.101.3.4.3.24': 'SLH-DSA-SHA2-256s',
|
|
12030
|
+
'2.16.840.1.101.3.4.3.25': 'SLH-DSA-SHA2-256f',
|
|
12031
|
+
'2.16.840.1.101.3.4.3.26': 'SLH-DSA-SHAKE-128s',
|
|
12032
|
+
'2.16.840.1.101.3.4.3.27': 'SLH-DSA-SHAKE-128f',
|
|
12033
|
+
'2.16.840.1.101.3.4.3.28': 'SLH-DSA-SHAKE-192f',
|
|
12034
|
+
'2.16.840.1.101.3.4.3.29': 'SLH-DSA-SHAKE-256s',
|
|
12035
|
+
'2.16.840.1.101.3.4.3.30': 'SLH-DSA-SHAKE-256f',
|
|
12036
|
+
'2.16.840.1.101.3.4.3.31': 'SLH-DSA-SHAKE-256f',
|
|
12020
12037
|
};
|
|
12021
12038
|
|
|
12022
12039
|
/**
|
|
@@ -13654,12 +13671,12 @@ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) ||
|
|
|
13654
13671
|
};
|
|
13655
13672
|
var _AsnData_asn, _AsnData_raw;
|
|
13656
13673
|
class AsnData {
|
|
13674
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13657
13675
|
constructor(...args) {
|
|
13658
13676
|
_AsnData_asn.set(this, void 0);
|
|
13659
13677
|
_AsnData_raw.set(this, void 0);
|
|
13660
13678
|
if (args.length === 1) {
|
|
13661
13679
|
// asn
|
|
13662
|
-
// eslint-disable-next-line prefer-destructuring
|
|
13663
13680
|
__classPrivateFieldSet(this, _AsnData_asn, args[0], "f");
|
|
13664
13681
|
__classPrivateFieldSet(this, _AsnData_raw, AsnConvert.serialize(__classPrivateFieldGet(this, _AsnData_asn, "f")), "f");
|
|
13665
13682
|
}
|
|
@@ -13774,13 +13791,13 @@ const rPem = `${rBeginTag}${rEolGroup}(?:((?:${rHeaderKey}: ${rHeaderValue})+))?
|
|
|
13774
13791
|
/**
|
|
13775
13792
|
* Represents PEM Converter.
|
|
13776
13793
|
*/
|
|
13794
|
+
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
13777
13795
|
class PemConverter {
|
|
13778
13796
|
static isPem(data) {
|
|
13779
13797
|
return typeof data === 'string'
|
|
13780
|
-
&& new RegExp(rPem, 'g').test(data);
|
|
13798
|
+
&& new RegExp(rPem, 'g').test(data.replace(/\r/g, ''));
|
|
13781
13799
|
}
|
|
13782
13800
|
static decodeWithHeaders(pem) {
|
|
13783
|
-
// eslint-disable-next-line no-param-reassign
|
|
13784
13801
|
pem = pem.replace(/\r/g, ''); // CRLF -> LF
|
|
13785
13802
|
const pattern = new RegExp(rPem, 'g');
|
|
13786
13803
|
const res = [];
|
|
@@ -13800,7 +13817,6 @@ class PemConverter {
|
|
|
13800
13817
|
if (headersString) {
|
|
13801
13818
|
const headers = headersString.split(new RegExp(rEolGroup, 'g'));
|
|
13802
13819
|
let lastHeader = null;
|
|
13803
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
13804
13820
|
for (const header of headers) {
|
|
13805
13821
|
const [key, value] = header.split(/:(.*)/);
|
|
13806
13822
|
if (value === undefined) {
|
|
@@ -13815,7 +13831,9 @@ class PemConverter {
|
|
|
13815
13831
|
if (lastHeader) {
|
|
13816
13832
|
pemStruct.headers.push(lastHeader);
|
|
13817
13833
|
}
|
|
13818
|
-
lastHeader = {
|
|
13834
|
+
lastHeader = {
|
|
13835
|
+
key, value: value.trim(),
|
|
13836
|
+
};
|
|
13819
13837
|
}
|
|
13820
13838
|
}
|
|
13821
13839
|
// add last header
|
|
@@ -13835,6 +13853,11 @@ class PemConverter {
|
|
|
13835
13853
|
const blocks = this.decodeWithHeaders(pem);
|
|
13836
13854
|
return blocks.map((o) => o.rawData);
|
|
13837
13855
|
}
|
|
13856
|
+
/**
|
|
13857
|
+
* Encodes a list of raws in PEM format
|
|
13858
|
+
* @param raws A list of raws
|
|
13859
|
+
* @param tag PEM tag
|
|
13860
|
+
*/
|
|
13838
13861
|
static encode(rawData, tag) {
|
|
13839
13862
|
if (Array.isArray(rawData)) {
|
|
13840
13863
|
const raws = new Array();
|
|
@@ -13851,10 +13874,10 @@ class PemConverter {
|
|
|
13851
13874
|
});
|
|
13852
13875
|
}
|
|
13853
13876
|
else {
|
|
13854
|
-
// encode
|
|
13877
|
+
// encode IPemStruct[]
|
|
13855
13878
|
rawData.forEach((element) => {
|
|
13856
13879
|
if (!('type' in element)) {
|
|
13857
|
-
throw new TypeError('Cannot encode array of
|
|
13880
|
+
throw new TypeError('Cannot encode array of IPemStruct in PEM format. Not all items of the array are PemStrut');
|
|
13858
13881
|
}
|
|
13859
13882
|
raws.push(this.encodeStruct(element));
|
|
13860
13883
|
});
|
|
@@ -13862,7 +13885,7 @@ class PemConverter {
|
|
|
13862
13885
|
return raws.join('\n');
|
|
13863
13886
|
}
|
|
13864
13887
|
if (!tag) {
|
|
13865
|
-
throw new Error(
|
|
13888
|
+
throw new Error('Required argument \'tag\' is missed');
|
|
13866
13889
|
}
|
|
13867
13890
|
return this.encodeStruct({
|
|
13868
13891
|
type: tag,
|
|
@@ -13880,7 +13903,6 @@ class PemConverter {
|
|
|
13880
13903
|
const res = [];
|
|
13881
13904
|
res.push(`-----BEGIN ${upperCaseType}-----`);
|
|
13882
13905
|
if ((_a = pem.headers) === null || _a === void 0 ? void 0 : _a.length) {
|
|
13883
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
13884
13906
|
for (const header of pem.headers) {
|
|
13885
13907
|
res.push(`${header.key}: ${header.value}`);
|
|
13886
13908
|
}
|
|
@@ -13927,16 +13949,20 @@ PemConverter.AttributeCertificateTag = 'ATTRIBUTE CERTIFICATE';
|
|
|
13927
13949
|
*/
|
|
13928
13950
|
class CryptoProvider {
|
|
13929
13951
|
static isCryptoKeyPair(data) {
|
|
13930
|
-
return data && data
|
|
13952
|
+
return data && typeof data === 'object' && 'privateKey' in data && 'publicKey' in data;
|
|
13931
13953
|
}
|
|
13932
13954
|
constructor() {
|
|
13933
13955
|
this.providers = new Map();
|
|
13934
|
-
// @ts-
|
|
13956
|
+
// @ts-expect-error - window.crypto is not typed
|
|
13935
13957
|
const crypto = window.crypto || window.msCrypto;
|
|
13936
13958
|
if (typeof crypto !== 'undefined') {
|
|
13937
13959
|
this.set(CryptoProvider.DEFAULT, crypto);
|
|
13938
13960
|
}
|
|
13939
13961
|
}
|
|
13962
|
+
/**
|
|
13963
|
+
* Returns crypto by name
|
|
13964
|
+
* @param key Crypto name
|
|
13965
|
+
*/
|
|
13940
13966
|
get(key = CryptoProvider.DEFAULT) {
|
|
13941
13967
|
const crypto = this.providers.get(key.toLowerCase());
|
|
13942
13968
|
if (!crypto) {
|
|
@@ -13947,7 +13973,7 @@ class CryptoProvider {
|
|
|
13947
13973
|
set(key, value) {
|
|
13948
13974
|
if (typeof key === 'string') {
|
|
13949
13975
|
if (!value) {
|
|
13950
|
-
throw new TypeError(
|
|
13976
|
+
throw new TypeError('Argument \'value\' is required');
|
|
13951
13977
|
}
|
|
13952
13978
|
this.providers.set(key.toLowerCase(), value);
|
|
13953
13979
|
}
|
|
@@ -13980,7 +14006,7 @@ const certificateRawToBuffer = (raw) => {
|
|
|
13980
14006
|
if (Convert.isBase64Url(raw)) {
|
|
13981
14007
|
return Convert.FromBase64Url(raw);
|
|
13982
14008
|
}
|
|
13983
|
-
|
|
14009
|
+
return Convert.FromBinary(raw);
|
|
13984
14010
|
};
|
|
13985
14011
|
const getCertificateThumbprint = async (algorithm, data) => {
|
|
13986
14012
|
const crypto = cryptoProvider.get();
|
|
@@ -14011,13 +14037,13 @@ class X509Certificate extends AsnData {
|
|
|
14011
14037
|
const notBefore = tbsCertificate.validity.notBefore.utcTime
|
|
14012
14038
|
|| tbsCertificate.validity.notBefore.generalTime;
|
|
14013
14039
|
if (!notBefore) {
|
|
14014
|
-
throw new Error(
|
|
14040
|
+
throw new Error('Cannot get \'notBefore\' value');
|
|
14015
14041
|
}
|
|
14016
14042
|
this.notBefore = notBefore;
|
|
14017
14043
|
const notAfter = tbsCertificate.validity.notAfter.utcTime
|
|
14018
14044
|
|| tbsCertificate.validity.notAfter.generalTime;
|
|
14019
14045
|
if (!notAfter) {
|
|
14020
|
-
throw new Error(
|
|
14046
|
+
throw new Error('Cannot get \'notAfter\' value');
|
|
14021
14047
|
}
|
|
14022
14048
|
this.notAfter = notAfter;
|
|
14023
14049
|
this.validity = dateDiff(this.notBefore, this.notAfter);
|
|
@@ -14095,10 +14121,7 @@ class X509Certificate extends AsnData {
|
|
|
14095
14121
|
}
|
|
14096
14122
|
for (let i = 0; i < this.issuer.length; i += 1) {
|
|
14097
14123
|
const name = this.issuer[i];
|
|
14098
|
-
if (name.shortName === 'CN') {
|
|
14099
|
-
return name.value;
|
|
14100
|
-
}
|
|
14101
|
-
if (name.shortName === 'E') {
|
|
14124
|
+
if (name.shortName === 'CN' || name.shortName === 'E' || name.shortName === 'O') {
|
|
14102
14125
|
return name.value;
|
|
14103
14126
|
}
|
|
14104
14127
|
}
|
|
@@ -15756,12 +15779,12 @@ class X509AttributeCertificate extends AsnData {
|
|
|
15756
15779
|
this.version = acinfo.version;
|
|
15757
15780
|
const notBefore = acinfo.attrCertValidityPeriod.notBeforeTime;
|
|
15758
15781
|
if (!notBefore) {
|
|
15759
|
-
throw new Error(
|
|
15782
|
+
throw new Error('Cannot get \'notBefore\' value');
|
|
15760
15783
|
}
|
|
15761
15784
|
this.notBefore = notBefore;
|
|
15762
15785
|
const notAfter = acinfo.attrCertValidityPeriod.notAfterTime;
|
|
15763
15786
|
if (!notAfter) {
|
|
15764
|
-
throw new Error(
|
|
15787
|
+
throw new Error('Cannot get \'notAfter\' value');
|
|
15765
15788
|
}
|
|
15766
15789
|
this.notAfter = notAfter;
|
|
15767
15790
|
this.validity = dateDiff(this.notBefore, this.notAfter);
|
|
@@ -16057,7 +16080,6 @@ class X509Certificates extends Array {
|
|
|
16057
16080
|
if (rawItems.length < 2) {
|
|
16058
16081
|
throw new Error('Unable to parse string. The array of elements is less than 2');
|
|
16059
16082
|
}
|
|
16060
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
16061
16083
|
for (const item of rawItems) {
|
|
16062
16084
|
this.push(new X509Certificate(item));
|
|
16063
16085
|
}
|
|
@@ -16071,12 +16093,9 @@ class X509Certificates extends Array {
|
|
|
16071
16093
|
const signedData = new SignedData();
|
|
16072
16094
|
signedData.version = 1;
|
|
16073
16095
|
signedData.encapContentInfo.eContentType = id_data;
|
|
16074
|
-
signedData.encapContentInfo.eContent = new EncapsulatedContent({
|
|
16075
|
-
|
|
16076
|
-
|
|
16077
|
-
signedData.certificates = new CertificateSet(Array.from(this).map((o) => new CertificateChoices({
|
|
16078
|
-
certificate: AsnConvert.parse(o.raw, Certificate),
|
|
16079
|
-
})));
|
|
16096
|
+
signedData.encapContentInfo.eContent = new EncapsulatedContent({ single: new OctetString() });
|
|
16097
|
+
signedData.certificates = new CertificateSet(Array.from(this)
|
|
16098
|
+
.map((o) => new CertificateChoices({ certificate: AsnConvert.parse(o.raw, Certificate) })));
|
|
16080
16099
|
const cms = new ContentInfo({
|
|
16081
16100
|
contentType: id_signedData,
|
|
16082
16101
|
content: AsnConvert.serialize(signedData),
|
|
@@ -16184,7 +16203,7 @@ const Typography = (props, children) => {
|
|
|
16184
16203
|
const Link = (props, children) => {
|
|
16185
16204
|
const { href, variant, } = props;
|
|
16186
16205
|
return (hAsync(Typography, { component: "a", variant: variant, color: "secondary",
|
|
16187
|
-
// @ts-
|
|
16206
|
+
// @ts-expect-error - href is a string
|
|
16188
16207
|
href: href, target: "_blank", rel: "noreferrer noopener" }, children));
|
|
16189
16208
|
};
|
|
16190
16209
|
|
|
@@ -16231,11 +16250,11 @@ const RowValue = (props) => {
|
|
|
16231
16250
|
return (hAsync("tr", null,
|
|
16232
16251
|
hAsync("td", { colSpan: hasValue ? 1 : 2 },
|
|
16233
16252
|
hAsync(Typography, { variant: "b2", color: "gray-9" }, name)),
|
|
16234
|
-
hasValue && (hAsync("td", { class: {
|
|
16235
|
-
|
|
16236
|
-
|
|
16237
|
-
|
|
16238
|
-
|
|
16253
|
+
hasValue && (hAsync("td", { class: { monospace } }, (isLink(value.toString()) || href)
|
|
16254
|
+
? (hAsync(Link, { variant: "b2", href: href || value.toString() }, value))
|
|
16255
|
+
: (hAsync(Typography, { variant: "b2", color: "black" },
|
|
16256
|
+
elementValue,
|
|
16257
|
+
extraValue))))));
|
|
16239
16258
|
};
|
|
16240
16259
|
|
|
16241
16260
|
/**
|
|
@@ -16332,7 +16351,9 @@ const IssuerName = (props) => {
|
|
|
16332
16351
|
const { name, issuerDnLink } = props;
|
|
16333
16352
|
const title = l10n.getString('issuerName');
|
|
16334
16353
|
return [
|
|
16335
|
-
hAsync(RowTitle, { value: issuerDnLink
|
|
16354
|
+
hAsync(RowTitle, { value: issuerDnLink
|
|
16355
|
+
? (hAsync(Link, { href: issuerDnLink }, title))
|
|
16356
|
+
: title }),
|
|
16336
16357
|
name.map((n) => (hAsync(RowValue, { name: n.name || n.type, value: n.value }))),
|
|
16337
16358
|
];
|
|
16338
16359
|
};
|
|
@@ -16454,7 +16475,7 @@ const ExtendedKeyUsageExtension = (props) => {
|
|
|
16454
16475
|
* LICENSE file in the root directory of this source tree.
|
|
16455
16476
|
*/
|
|
16456
16477
|
const SubjectKeyIdentifierExtension = (props) => {
|
|
16457
|
-
const { extension, getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink } = props;
|
|
16478
|
+
const { extension, getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink, } = props;
|
|
16458
16479
|
const keyId = Convert.ToHex(extension.value.buffer);
|
|
16459
16480
|
const childrenLink = getSubjectKeyIdChildrenLink(keyId);
|
|
16460
16481
|
const siblingsLink = getSubjectKeyIdSiblingsLink(keyId);
|
|
@@ -16479,7 +16500,7 @@ const SubjectKeyIdentifierExtension = (props) => {
|
|
|
16479
16500
|
* LICENSE file in the root directory of this source tree.
|
|
16480
16501
|
*/
|
|
16481
16502
|
const AuthorityKeyIdentifierExtension = (props) => {
|
|
16482
|
-
const { extension, getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink } = props;
|
|
16503
|
+
const { extension, getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink, } = props;
|
|
16483
16504
|
const keyId = Convert.ToHex(extension.value.keyIdentifier.buffer);
|
|
16484
16505
|
const parentLink = getAuthKeyIdParentLink(keyId);
|
|
16485
16506
|
const siblingsLink = getAuthKeyIdSiblingsLink(keyId);
|
|
@@ -16515,7 +16536,7 @@ const names = {
|
|
|
16515
16536
|
registeredID: 'Registered ID',
|
|
16516
16537
|
};
|
|
16517
16538
|
const GeneralNamePart = (props) => {
|
|
16518
|
-
const { generalName, getDNSNameLink, getIPAddressLink } = props;
|
|
16539
|
+
const { generalName, getDNSNameLink, getIPAddressLink, } = props;
|
|
16519
16540
|
if (!generalName) {
|
|
16520
16541
|
return null;
|
|
16521
16542
|
}
|
|
@@ -16532,7 +16553,7 @@ const GeneralNamePart = (props) => {
|
|
|
16532
16553
|
const text = AsnParser.parse(value.value, DisplayText);
|
|
16533
16554
|
return (hAsync(RowValue, { name: OIDs[value.typeId] || value.typeId, value: text.toString() }));
|
|
16534
16555
|
}
|
|
16535
|
-
catch (
|
|
16556
|
+
catch (_a) {
|
|
16536
16557
|
//
|
|
16537
16558
|
}
|
|
16538
16559
|
try {
|
|
@@ -16541,7 +16562,7 @@ const GeneralNamePart = (props) => {
|
|
|
16541
16562
|
return (hAsync(RowValue, { name: OIDs[value.typeId] || value.typeId, value: text.explicitText.toString() }));
|
|
16542
16563
|
}
|
|
16543
16564
|
}
|
|
16544
|
-
catch (
|
|
16565
|
+
catch (_b) {
|
|
16545
16566
|
//
|
|
16546
16567
|
}
|
|
16547
16568
|
return (hAsync(RowValue, { name: OIDs[value.typeId] || value.typeId, value: Convert.ToHex(value.value), monospace: true }));
|
|
@@ -17271,7 +17292,6 @@ const CRLNumberExtension = (props) => {
|
|
|
17271
17292
|
* This source code is licensed under the MIT license found in the
|
|
17272
17293
|
* LICENSE file in the root directory of this source tree.
|
|
17273
17294
|
*/
|
|
17274
|
-
// eslint-disable-next-line max-len
|
|
17275
17295
|
const IssuingDistributionPointExtension = (props) => {
|
|
17276
17296
|
var _a;
|
|
17277
17297
|
const { extension } = props;
|
|
@@ -17329,14 +17349,14 @@ const KeyDescriptionExtension = (props) => {
|
|
|
17329
17349
|
];
|
|
17330
17350
|
}
|
|
17331
17351
|
}
|
|
17332
|
-
catch (
|
|
17352
|
+
catch (_a) {
|
|
17333
17353
|
//
|
|
17334
17354
|
}
|
|
17335
17355
|
}
|
|
17336
17356
|
try {
|
|
17337
17357
|
value = Convert.ToString(keyValue);
|
|
17338
17358
|
}
|
|
17339
|
-
catch (
|
|
17359
|
+
catch (_b) {
|
|
17340
17360
|
value = Convert.ToHex(keyValue);
|
|
17341
17361
|
}
|
|
17342
17362
|
break;
|
|
@@ -17499,7 +17519,7 @@ const Extensions = (props) => {
|
|
|
17499
17519
|
}
|
|
17500
17520
|
return (hAsync(BasicExtension, { extension: extension }));
|
|
17501
17521
|
}
|
|
17502
|
-
catch (
|
|
17522
|
+
catch (_a) {
|
|
17503
17523
|
console.error('Error render extension:', extension.asn.extnID);
|
|
17504
17524
|
return null;
|
|
17505
17525
|
}
|
|
@@ -17532,6 +17552,7 @@ const BasicAttribute = (props, children) => {
|
|
|
17532
17552
|
* This source code is licensed under the MIT license found in the
|
|
17533
17553
|
* LICENSE file in the root directory of this source tree.
|
|
17534
17554
|
*/
|
|
17555
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17535
17556
|
const NamePart = (props) => {
|
|
17536
17557
|
const { name } = props;
|
|
17537
17558
|
if (!name) {
|
|
@@ -17733,7 +17754,7 @@ const Attributes = (props) => {
|
|
|
17733
17754
|
}
|
|
17734
17755
|
return (hAsync(BasicAttribute, { attribute: attribute }));
|
|
17735
17756
|
}
|
|
17736
|
-
catch (
|
|
17757
|
+
catch (_a) {
|
|
17737
17758
|
console.error('Error render attribute:', attribute.asn.type);
|
|
17738
17759
|
return null;
|
|
17739
17760
|
}
|
|
@@ -17752,12 +17773,12 @@ const Button = (props, children) => {
|
|
|
17752
17773
|
const { href, class: classProp, startIcon, onClick, } = props;
|
|
17753
17774
|
const isLink = !!href;
|
|
17754
17775
|
const TagType = isLink ? 'a' : 'button';
|
|
17755
|
-
return (hAsync(TagType, { type: !isLink && 'button', href: isLink && href, target: isLink && '_blank', rel: isLink && 'noreferrer noopener',
|
|
17776
|
+
return (hAsync(TagType, { type: !isLink && 'button', href: isLink && href, target: isLink && '_blank', rel: isLink && 'noreferrer noopener', class: {
|
|
17756
17777
|
button: true,
|
|
17757
17778
|
// eslint-disable-next-line react/destructuring-assignment
|
|
17758
17779
|
m_no_padding: children.length === 0,
|
|
17759
17780
|
[classProp]: Boolean(classProp),
|
|
17760
|
-
} },
|
|
17781
|
+
}, onClick: onClick },
|
|
17761
17782
|
startIcon,
|
|
17762
17783
|
children.length > 0 && (hAsync(Typography, { variant: "b3", color: "black", component: "span" }, children))));
|
|
17763
17784
|
};
|
|
@@ -17866,10 +17887,10 @@ const Miscellaneous = (props) => {
|
|
|
17866
17887
|
hAsync(RowTitle, { value: l10n.getString('miscellaneous') }),
|
|
17867
17888
|
hAsync("tr", null,
|
|
17868
17889
|
hAsync("td", null,
|
|
17869
|
-
hAsync(Button, { onClick: () => certificate.downloadAsPEM()
|
|
17890
|
+
hAsync(Button, { startIcon: hAsync(DownloadIcon, null), onClick: () => certificate.downloadAsPEM() }, l10n.getString('download.pem')))),
|
|
17870
17891
|
hAsync("tr", null,
|
|
17871
17892
|
hAsync("td", null,
|
|
17872
|
-
hAsync(Button, { onClick: () => certificate.downloadAsDER()
|
|
17893
|
+
hAsync(Button, { startIcon: hAsync(DownloadIcon, null), onClick: () => certificate.downloadAsDER() }, l10n.getString('download.der')))),
|
|
17873
17894
|
];
|
|
17874
17895
|
};
|
|
17875
17896
|
|
|
@@ -18050,11 +18071,9 @@ class AttributeCertificateViewer {
|
|
|
18050
18071
|
}
|
|
18051
18072
|
}
|
|
18052
18073
|
}
|
|
18053
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18054
18074
|
renderErrorState() {
|
|
18055
18075
|
return (hAsync("div", { class: "status_wrapper" }, hAsync(Typography, null, "There was an error decoding this attribute certificate.")));
|
|
18056
18076
|
}
|
|
18057
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18058
18077
|
renderEmptyState() {
|
|
18059
18078
|
return (hAsync("div", { class: "status_wrapper" }, hAsync(Typography, null, "There is no attribute certificate available.")));
|
|
18060
18079
|
}
|
|
@@ -18103,9 +18122,7 @@ class ButtonMenu {
|
|
|
18103
18122
|
};
|
|
18104
18123
|
}
|
|
18105
18124
|
render() {
|
|
18106
|
-
return (hAsync(Host, { key: '
|
|
18107
|
-
is_shown: this.open,
|
|
18108
|
-
} }, hAsync(Button, { key: '00b7864c569169633c30a69f26185891ba9c39d1', class: "button_popover", onClick: this.handleClick, startIcon: hAsync(ActionsIcon, null) }), hAsync("div", { key: 'afe0500732f053c8b22c65ec11bd2010546fc5e6', role: "dialog", tabIndex: -1, class: "popover", "aria-hidden": String(this.open) }, this.groups.map((group) => (hAsync("div", { class: "group" }, hAsync(Typography, { variant: "c2", color: "gray-9", class: "group_title" }, group.title), group.options.map((option) => (hAsync(Button, { class: "button_option", startIcon: option.startIcon, href: option.href, onClick: (event) => {
|
|
18125
|
+
return (hAsync(Host, { key: '66dd03eaa8d6e1f6dee3d9782390e094c5804b4a', class: { is_shown: this.open } }, hAsync(Button, { key: 'ba4e5601321b4e778937f6386a8a5220e28f5809', class: "button_popover", startIcon: hAsync(ActionsIcon, null), onClick: this.handleClick }), hAsync("div", { key: 'ed4d374f4a4982a24665e1cb60eaa57428ba0e4e', role: "dialog", tabIndex: -1, class: "popover", "aria-hidden": String(this.open) }, this.groups.map((group) => (hAsync("div", { class: "group" }, hAsync(Typography, { variant: "c2", color: "gray-9", class: "group_title" }, group.title), group.options.map((option) => (hAsync(Button, { class: "button_option", startIcon: option.startIcon, href: option.href, onClick: (event) => {
|
|
18109
18126
|
event.stopPropagation();
|
|
18110
18127
|
this.handleClick();
|
|
18111
18128
|
if (option.onClick) {
|
|
@@ -18134,7 +18151,6 @@ class CertificateChainViewer {
|
|
|
18134
18151
|
registerInstance(this, hostRef);
|
|
18135
18152
|
this.selectedCertificateIndex = 0;
|
|
18136
18153
|
}
|
|
18137
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18138
18154
|
renderEmptyState() {
|
|
18139
18155
|
return (hAsync("div", { class: "status_wrapper" }, hAsync(Typography, null, "There is no certificates available.")));
|
|
18140
18156
|
}
|
|
@@ -18182,6 +18198,7 @@ class CertificateDecoder {
|
|
|
18182
18198
|
this.handleClickClear = () => {
|
|
18183
18199
|
this.clearValue();
|
|
18184
18200
|
};
|
|
18201
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18185
18202
|
this.handleChangeInputFile = async (event) => {
|
|
18186
18203
|
const element = event.target;
|
|
18187
18204
|
if (element.files) {
|
|
@@ -18192,6 +18209,7 @@ class CertificateDecoder {
|
|
|
18192
18209
|
element.value = '';
|
|
18193
18210
|
}
|
|
18194
18211
|
};
|
|
18212
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18195
18213
|
this.handleChangeExample = (event) => {
|
|
18196
18214
|
if (event.target.value) {
|
|
18197
18215
|
this.decode(event.target.value);
|
|
@@ -18200,6 +18218,7 @@ class CertificateDecoder {
|
|
|
18200
18218
|
this.clearValue();
|
|
18201
18219
|
}
|
|
18202
18220
|
};
|
|
18221
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18203
18222
|
this.handleDropFile = async (event) => {
|
|
18204
18223
|
event.stopPropagation();
|
|
18205
18224
|
event.preventDefault();
|
|
@@ -18264,7 +18283,7 @@ class CertificateDecoder {
|
|
|
18264
18283
|
}
|
|
18265
18284
|
render() {
|
|
18266
18285
|
var _a;
|
|
18267
|
-
return (hAsync(Host, { key: '
|
|
18286
|
+
return (hAsync(Host, { key: '2c4ec8c59145c494dee26f7e6eae99b10481f091' }, hAsync("textarea", { key: '88129c0b5c56b2458c4af2df6d746c25d4252fd2', placeholder: "Certificate DER or PEM", class: "textarea t-b2 c-black", ref: (el) => { this.inputPaste = el; }, onDrop: this.handleDropFile }), hAsync("div", { key: '3730b1bade8d27bb9bc1617018dc5bf01f9277ef', class: "controls" }, hAsync("div", { key: 'b803986ab6d5bfaf5e61cd9df57428e6bff6bb55', class: "control_row" }, hAsync(Typography, { key: 'e6ed2ea27f11d0957da4109e19483cd040febb01', variant: "b3", color: "secondary-tint-2" }, "Drag or load file:"), hAsync("input", { key: '898d0fdd1de5f204337ab8bf77ad1dafd25da882', type: "file", accept: "application/pkix-cert,application/x-x509-ca-cert,application/x-x509-user-cert,application/pkcs10,application/pkix-crl,.csr,.req,.crl", value: "", onChange: this.handleChangeInputFile })), ((_a = this.certificateExamples) === null || _a === void 0 ? void 0 : _a.length) && (hAsync("div", { key: 'd6cf99bfc145f44fdfef32e52eb6afa8ec3836cf', class: "control_row" }, hAsync(Typography, { key: '4f7ff1b34fe34837909e328afdf401a5826d89f5', variant: "b3", color: "secondary-tint-2" }, "Load examples:"), hAsync("select", { key: '47c7433eefc2e82fb5dd9a30f062cc71104f7f5b', onChange: this.handleChangeExample }, hAsync("option", { key: '667a68723f7a22b954c1c89e1e86b85ddc6b4fd5', value: "" }, "None"), this.certificateExamples.map((example) => (hAsync("option", { value: example.value }, example.title)))))), hAsync("div", { key: 'e1fc1f00e7bb998d26a818fee955df9561f8e6c0', class: "control_row" }, hAsync(Button, { key: '254fdd5ff25e644ba5d233d9cec2508a28e023c9', onClick: this.handleClickDecode }, "Decode"), hAsync(Button, { key: '594d6e51c56a1b51440f6495eb85af0eda75bcef', onClick: this.handleClickClear }, "Clear"))), this.renderCertificate()));
|
|
18268
18287
|
}
|
|
18269
18288
|
static get style() { return certificateDecoderCss; }
|
|
18270
18289
|
static get cmpMeta() { return {
|
|
@@ -18363,11 +18382,9 @@ class CertificateViewer {
|
|
|
18363
18382
|
getIssuerDnLink() {
|
|
18364
18383
|
return this.issuerDnLink;
|
|
18365
18384
|
}
|
|
18366
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18367
18385
|
renderErrorState() {
|
|
18368
18386
|
return (hAsync("div", { class: "status_wrapper" }, hAsync(Typography, null, "There was an error decoding this certificate.")));
|
|
18369
18387
|
}
|
|
18370
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18371
18388
|
renderEmptyState() {
|
|
18372
18389
|
return (hAsync("div", { class: "status_wrapper" }, hAsync(Typography, null, "There is no certificate available.")));
|
|
18373
18390
|
}
|
|
@@ -18478,7 +18495,8 @@ class CertificatesViewer {
|
|
|
18478
18495
|
this.detailsClose.emit();
|
|
18479
18496
|
};
|
|
18480
18497
|
this.handleSearch = (event) => {
|
|
18481
|
-
|
|
18498
|
+
const target = event.target;
|
|
18499
|
+
this.search = target.value.trim();
|
|
18482
18500
|
};
|
|
18483
18501
|
}
|
|
18484
18502
|
handleMediaQueryChange(event) {
|
|
@@ -18504,7 +18522,6 @@ class CertificatesViewer {
|
|
|
18504
18522
|
return;
|
|
18505
18523
|
}
|
|
18506
18524
|
const data = [];
|
|
18507
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
18508
18525
|
for (const certificate of this.certificates) {
|
|
18509
18526
|
try {
|
|
18510
18527
|
const decoded = new X509Certificate(certificate.value);
|
|
@@ -18526,13 +18543,17 @@ class CertificatesViewer {
|
|
|
18526
18543
|
this.isDecodeInProcess = false;
|
|
18527
18544
|
this.certificatesDecoded = data;
|
|
18528
18545
|
}
|
|
18529
|
-
|
|
18546
|
+
getCertificateName(certificate) {
|
|
18547
|
+
if (typeof certificate.name === 'function') {
|
|
18548
|
+
return certificate.name(certificate.body);
|
|
18549
|
+
}
|
|
18550
|
+
return certificate.name || certificate.body.commonName;
|
|
18551
|
+
}
|
|
18530
18552
|
handleClickDownloadAsPem(certificate) {
|
|
18531
|
-
certificate.body.downloadAsPEM(
|
|
18553
|
+
certificate.body.downloadAsPEM(this.getCertificateName(certificate));
|
|
18532
18554
|
}
|
|
18533
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18534
18555
|
handleClickDownloadAsDer(certificate) {
|
|
18535
|
-
certificate.body.downloadAsDER(
|
|
18556
|
+
certificate.body.downloadAsDER(this.getCertificateName(certificate));
|
|
18536
18557
|
}
|
|
18537
18558
|
handleClickRow(index) {
|
|
18538
18559
|
const isExpandedRowClicked = this.expandedRow === index;
|
|
@@ -18577,26 +18598,34 @@ class CertificatesViewer {
|
|
|
18577
18598
|
},
|
|
18578
18599
|
],
|
|
18579
18600
|
},
|
|
18580
|
-
...(isHasTestURLs
|
|
18581
|
-
|
|
18582
|
-
|
|
18583
|
-
|
|
18584
|
-
|
|
18585
|
-
|
|
18586
|
-
|
|
18587
|
-
|
|
18588
|
-
|
|
18589
|
-
|
|
18590
|
-
|
|
18591
|
-
|
|
18592
|
-
|
|
18593
|
-
|
|
18594
|
-
|
|
18595
|
-
|
|
18596
|
-
|
|
18597
|
-
|
|
18598
|
-
|
|
18599
|
-
|
|
18601
|
+
...(isHasTestURLs
|
|
18602
|
+
? [{
|
|
18603
|
+
title: l10n.getString('testURLs'),
|
|
18604
|
+
options: [
|
|
18605
|
+
...(((_a = certificate.tests) === null || _a === void 0 ? void 0 : _a.valid)
|
|
18606
|
+
? [{
|
|
18607
|
+
text: l10n.getString('valid'),
|
|
18608
|
+
href: certificate.tests.valid,
|
|
18609
|
+
startIcon: hAsync(LinkIcon, null),
|
|
18610
|
+
}]
|
|
18611
|
+
: []),
|
|
18612
|
+
...(((_b = certificate.tests) === null || _b === void 0 ? void 0 : _b.revoked)
|
|
18613
|
+
? [{
|
|
18614
|
+
text: l10n.getString('revoked'),
|
|
18615
|
+
href: certificate.tests.revoked,
|
|
18616
|
+
startIcon: hAsync(LinkIcon, null),
|
|
18617
|
+
}]
|
|
18618
|
+
: []),
|
|
18619
|
+
...(((_c = certificate.tests) === null || _c === void 0 ? void 0 : _c.expired)
|
|
18620
|
+
? [{
|
|
18621
|
+
text: l10n.getString('expired'),
|
|
18622
|
+
href: certificate.tests.expired,
|
|
18623
|
+
startIcon: hAsync(LinkIcon, null),
|
|
18624
|
+
}]
|
|
18625
|
+
: []),
|
|
18626
|
+
],
|
|
18627
|
+
}]
|
|
18628
|
+
: []),
|
|
18600
18629
|
] }));
|
|
18601
18630
|
}
|
|
18602
18631
|
renderExpandedRow(certificate) {
|
|
@@ -18616,8 +18645,7 @@ class CertificatesViewer {
|
|
|
18616
18645
|
const certificateStringForSearch = [
|
|
18617
18646
|
publicKeyValue,
|
|
18618
18647
|
certificate.body.issuerCommonName,
|
|
18619
|
-
certificate
|
|
18620
|
-
certificate.body.commonName,
|
|
18648
|
+
this.getCertificateName(certificate),
|
|
18621
18649
|
certificate.body.thumbprints['SHA-1'],
|
|
18622
18650
|
]
|
|
18623
18651
|
.join(' ')
|
|
@@ -18631,21 +18659,12 @@ class CertificatesViewer {
|
|
|
18631
18659
|
hAsync("tr", { class: {
|
|
18632
18660
|
certificate_row: true,
|
|
18633
18661
|
m_expanded: isExpandedRow,
|
|
18634
|
-
}, key: certificate.body.thumbprints['SHA-1'] }, hAsync("td", null, hAsync("table", null, hAsync("tbody", null, !this.isHasRoots && (hAsync("tr", null, hAsync("td", null, hAsync(Typography, { variant: "b2", color: "gray-9" }, l10n.getString('issuer'))), hAsync("td", null, hAsync(Typography, { variant: "b2", color: "black" }, hAsync("peculiar-highlight-words", { search: searchHighlight }, certificate.body.issuerCommonName))))), hAsync("tr", null, hAsync("td", null, hAsync(Typography, { variant: "b2", color: "gray-9" }, l10n.getString('name'))), hAsync("td", null, hAsync(Typography, { variant: "b2", color: "black" }, hAsync("peculiar-highlight-words", { search: searchHighlight },
|
|
18635
|
-
// eslint-disable-next-line react/jsx-no-bind
|
|
18636
|
-
, {
|
|
18637
|
-
// eslint-disable-next-line react/jsx-no-bind
|
|
18638
|
-
onClick: this.handleClickRow.bind(this, index), startIcon: isExpandedRow ? hAsync(ArrowTopIcon, null) : hAsync(ArrowBottomIcon, null)
|
|
18639
|
-
}))))))),
|
|
18662
|
+
}, key: certificate.body.thumbprints['SHA-1'] }, hAsync("td", null, hAsync("table", null, hAsync("tbody", null, !this.isHasRoots && (hAsync("tr", null, hAsync("td", null, hAsync(Typography, { variant: "b2", color: "gray-9" }, l10n.getString('issuer'))), hAsync("td", null, hAsync(Typography, { variant: "b2", color: "black" }, hAsync("peculiar-highlight-words", { search: searchHighlight }, certificate.body.issuerCommonName))))), hAsync("tr", null, hAsync("td", null, hAsync(Typography, { variant: "b2", color: "gray-9" }, l10n.getString('name'))), hAsync("td", null, hAsync(Typography, { variant: "b2", color: "black" }, hAsync("peculiar-highlight-words", { search: searchHighlight }, this.getCertificateName(certificate))))), hAsync("tr", null, hAsync("td", null, hAsync(Typography, { variant: "b2", color: "gray-9" }, l10n.getString('publicKey'))), hAsync("td", null, hAsync(Typography, { variant: "b2", color: "black" }, hAsync("peculiar-highlight-words", { search: searchHighlight }, publicKeyValue)))), hAsync("tr", null, hAsync("td", null, hAsync(Typography, { variant: "b2", color: "gray-9" }, l10n.getString('fingerprint'), "\u00A0 (SHA-1)")), hAsync("td", null, hAsync(Typography, { variant: "b2", color: "black" }, hAsync("peculiar-highlight-words", { search: searchHighlight }, certificate.body.thumbprints['SHA-1'])))), isExpandedRow && this.renderExpandedRow(certificate.body), hAsync("tr", { class: "certificate_row_actions" }, hAsync("td", null, this.renderCertificateButtonActions(certificate), hAsync(Button, { startIcon: isExpandedRow ? hAsync(ArrowTopIcon, null) : hAsync(ArrowBottomIcon, null), onClick: this.handleClickRow.bind(this, index) }))))))),
|
|
18640
18663
|
]);
|
|
18641
18664
|
return;
|
|
18642
18665
|
}
|
|
18643
18666
|
content.push([
|
|
18644
|
-
hAsync("tr", { class: {
|
|
18645
|
-
m_expanded: isExpandedRow,
|
|
18646
|
-
}, key: certificate.body.thumbprints['SHA-1'] }, hAsync("td", null, hAsync(Button, { class: "button_table_cell",
|
|
18647
|
-
// eslint-disable-next-line react/jsx-no-bind
|
|
18648
|
-
onClick: this.handleClickRow.bind(this, index), startIcon: isExpandedRow ? hAsync(ArrowTopIcon, null) : hAsync(ArrowBottomIcon, null) })), !this.isHasRoots && (hAsync("td", null, hAsync(Typography, null, hAsync("peculiar-highlight-words", { search: searchHighlight }, certificate.body.issuerCommonName)))), hAsync("td", null, hAsync(Typography, null, hAsync("peculiar-highlight-words", { search: searchHighlight }, certificate.name || certificate.body.commonName))), hAsync("td", null, hAsync(Typography, null, hAsync("peculiar-highlight-words", { search: searchHighlight }, publicKeyValue))), hAsync("td", null, hAsync(Typography, null, hAsync("peculiar-highlight-words", { search: searchHighlight }, certificate.body.thumbprints['SHA-1']))), hAsync("td", null, this.renderCertificateButtonActions(certificate))),
|
|
18667
|
+
hAsync("tr", { class: { m_expanded: isExpandedRow }, key: certificate.body.thumbprints['SHA-1'] }, hAsync("td", null, hAsync(Button, { startIcon: isExpandedRow ? hAsync(ArrowTopIcon, null) : hAsync(ArrowBottomIcon, null), class: "button_table_cell", onClick: this.handleClickRow.bind(this, index) })), !this.isHasRoots && (hAsync("td", null, hAsync(Typography, null, hAsync("peculiar-highlight-words", { search: searchHighlight }, certificate.body.issuerCommonName)))), hAsync("td", null, hAsync(Typography, null, hAsync("peculiar-highlight-words", { search: searchHighlight }, this.getCertificateName(certificate)))), hAsync("td", null, hAsync(Typography, null, hAsync("peculiar-highlight-words", { search: searchHighlight }, publicKeyValue))), hAsync("td", null, hAsync(Typography, null, hAsync("peculiar-highlight-words", { search: searchHighlight }, certificate.body.thumbprints['SHA-1']))), hAsync("td", null, this.renderCertificateButtonActions(certificate))),
|
|
18649
18668
|
isExpandedRow && this.renderExpandedRow(certificate.body),
|
|
18650
18669
|
]);
|
|
18651
18670
|
});
|
|
@@ -18655,13 +18674,13 @@ class CertificatesViewer {
|
|
|
18655
18674
|
if (!this.certificateSelectedForDetails) {
|
|
18656
18675
|
return null;
|
|
18657
18676
|
}
|
|
18658
|
-
return (hAsync("div", { class: "modal_wrapper", role: "presentation", "aria-hidden": "false", part: "presentation" }, hAsync("div", { class: "modal_backdrop",
|
|
18677
|
+
return (hAsync("div", { class: "modal_wrapper", role: "presentation", "aria-hidden": "false", part: "presentation" }, hAsync("div", { class: "modal_backdrop", "aria-hidden": "true", onClick: this.handleModalClose }), hAsync("div", { class: "modal_container", role: "dialog", part: "presentation_container" }, hAsync("header", { class: "modal_header" }, hAsync(Typography, { variant: "h4" }, l10n.getString('certificateDetails')), hAsync(Button, { startIcon: hAsync(CrossIcon, null), onClick: this.handleModalClose })), hAsync("div", { class: "modal_content" }, hAsync("peculiar-certificate-viewer", { certificate: this.certificateSelectedForDetails, mobileMediaQueryString: this.mobileMediaQueryString })))));
|
|
18659
18678
|
}
|
|
18660
18679
|
renderSearch() {
|
|
18661
18680
|
if (!this.filterWithSearch && !this.highlightWithSearch) {
|
|
18662
18681
|
return null;
|
|
18663
18682
|
}
|
|
18664
|
-
return (hAsync("div", { class: "search_section" }, hAsync("input", {
|
|
18683
|
+
return (hAsync("div", { class: "search_section" }, hAsync("input", { type: "search", value: "", class: "input_search t-b3 c-black", disabled: !this.certificatesDecoded.length, placeholder: "Search", onInput: this.handleSearch })));
|
|
18665
18684
|
}
|
|
18666
18685
|
renderEmptyState() {
|
|
18667
18686
|
const colSpan = this.getMaxColSpanValue();
|
|
@@ -18671,7 +18690,6 @@ class CertificatesViewer {
|
|
|
18671
18690
|
const colSpan = this.getMaxColSpanValue();
|
|
18672
18691
|
return (hAsync("tr", null, hAsync("td", { class: "status_wrapper", colSpan: colSpan }, hAsync(Typography, { variant: "b1" }, "No results found for \u201C", this.search, "\u201C"))));
|
|
18673
18692
|
}
|
|
18674
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18675
18693
|
renderLoadingState() {
|
|
18676
18694
|
return (hAsync("div", { class: "loading_container" }, hAsync("peculiar-circular-progress", null)));
|
|
18677
18695
|
}
|
|
@@ -18689,7 +18707,7 @@ class CertificatesViewer {
|
|
|
18689
18707
|
return certificatesRows;
|
|
18690
18708
|
}
|
|
18691
18709
|
render() {
|
|
18692
|
-
return (hAsync(Host, { key: '
|
|
18710
|
+
return (hAsync(Host, { key: '894edb33a53c1128d812c2fd7a5b230a4b13493c', "data-mobile-screen-view": String(this.mobileScreenView) }, this.renderSearch(), hAsync("table", { key: '998d37ab98be6743f1564fafb4ce9fc70b79e358' }, !this.mobileScreenView && (hAsync("thead", { key: '4728e09450b6285cbc2f69cf0a0e06135910558f' }, hAsync("tr", { key: '70bf5be60e50b9d7109e27128b661044778e0ded' }, hAsync("th", { key: 'cf0fef5df1b42d0bce49d3bf0af2d91b82de6d05' }), !this.isHasRoots && (hAsync("th", { key: '59f00d345883dfb3c81a97278583821543ce6808', class: "col_issuer" }, hAsync(Typography, { key: '54ce8fba1ab5355ac1f82ccc3aa62945351a3632', variant: "s2" }, l10n.getString('issuer')))), hAsync("th", { key: '9aea7911edafca1482f31e2ca3316d2cde40fd78', class: "col_name" }, hAsync(Typography, { key: '2a0145b0cc56543ed4b5170a8773c3c43e5e64f9', variant: "s2" }, l10n.getString('name'))), hAsync("th", { key: '9eab414d9b1558d6a5b9938f55165aeca5baa54e', class: "col_public_key" }, hAsync(Typography, { key: 'cbdcb1013bbf12ac88e63ca2d268c55854803297', variant: "s2" }, l10n.getString('publicKey'))), hAsync("th", { key: '06adb89146693583a0dad86644b2c8b399e25c0e', class: "col_fingerprint" }, hAsync(Typography, { key: 'eca0440721f16953219f014edb8d3742f312f704', variant: "s2" }, l10n.getString('fingerprint'), "\u00A0 (SHA-1)")), hAsync("th", { key: '56b7fdf83f5c45cf524a8cce81dbca584b9b5fa8' })))), hAsync("tbody", { key: '01ccda1abfa846a8b0cdc00588b106398358ed88' }, this.renderTableBody())), this.renderCertificateDetailsModal(), this.isDecodeInProcess && this.renderLoadingState()));
|
|
18693
18711
|
}
|
|
18694
18712
|
static get watchers() { return {
|
|
18695
18713
|
"certificates": ["watchCertificates"]
|
|
@@ -18732,14 +18750,10 @@ class CircularProgress {
|
|
|
18732
18750
|
this.box = 50;
|
|
18733
18751
|
}
|
|
18734
18752
|
render() {
|
|
18735
|
-
return (hAsync(Host, { key: '
|
|
18753
|
+
return (hAsync(Host, { key: '0a7d6a83e20839fb324b3f24c7e8b1074775c6a3' }, hAsync("div", { key: '88111c52129ca2806ab67f7862ccdbec0e55e68f', class: "circle_progress", style: {
|
|
18736
18754
|
width: `${this.size}px`,
|
|
18737
18755
|
height: `${this.size}px`,
|
|
18738
|
-
} }, hAsync("svg", { key: '
|
|
18739
|
-
strokeWidth: `${this.width}px`,
|
|
18740
|
-
} }), hAsync("circle", { key: 'f61b2daa3fad404e325b787d3be59c8d7f04c118', class: "circle_progress_circle", cx: this.box / 2, cy: this.box / 2, r: (this.box / 2) - 5, fill: "none", style: {
|
|
18741
|
-
strokeWidth: `${this.width}px`,
|
|
18742
|
-
} })))));
|
|
18756
|
+
} }, hAsync("svg", { key: '73b6d9ef7d0b5d09049f8b0c3477e633fa6ee8a3', class: "circle_progress_svg", viewBox: `0 0 ${this.box} ${this.box}` }, hAsync("circle", { key: '764d4d27927cd961c84631ac2d9bf2d0ca3e542f', class: "circle_progress_backdrop", cx: this.box / 2, cy: this.box / 2, r: (this.box / 2) - 5, fill: "none", style: { strokeWidth: `${this.width}px` } }), hAsync("circle", { key: 'b24985974a66d754514f5a82b06fa6e7cae77133', class: "circle_progress_circle", cx: this.box / 2, cy: this.box / 2, r: (this.box / 2) - 5, fill: "none", style: { strokeWidth: `${this.width}px` } })))));
|
|
18743
18757
|
}
|
|
18744
18758
|
static get style() { return circularProgressCss; }
|
|
18745
18759
|
static get cmpMeta() { return {
|
|
@@ -18830,11 +18844,9 @@ class CrlViewer {
|
|
|
18830
18844
|
}
|
|
18831
18845
|
}
|
|
18832
18846
|
}
|
|
18833
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18834
18847
|
renderErrorState() {
|
|
18835
18848
|
return (hAsync("div", { class: "status_wrapper" }, hAsync(Typography, null, "There was an error decoding this certificate revocation list.")));
|
|
18836
18849
|
}
|
|
18837
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18838
18850
|
renderEmptyState() {
|
|
18839
18851
|
return (hAsync("div", { class: "status_wrapper" }, hAsync(Typography, null, "There is no certificate revocation list available.")));
|
|
18840
18852
|
}
|
|
@@ -18885,9 +18897,7 @@ class CsrViewer {
|
|
|
18885
18897
|
this.mobileMediaQueryString = '(max-width: 900px)';
|
|
18886
18898
|
this.mobileScreenView = false;
|
|
18887
18899
|
this.isDecodeInProcess = true;
|
|
18888
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18889
18900
|
this.getAuthKeyIdParentLink = (value) => value;
|
|
18890
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18891
18901
|
this.getAuthKeyIdSiblingsLink = (value) => value;
|
|
18892
18902
|
this.getSubjectKeyIdChildrenLink = (value) => {
|
|
18893
18903
|
var _a;
|
|
@@ -18946,11 +18956,9 @@ class CsrViewer {
|
|
|
18946
18956
|
}
|
|
18947
18957
|
}
|
|
18948
18958
|
}
|
|
18949
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18950
18959
|
renderErrorState() {
|
|
18951
18960
|
return (hAsync("div", { class: "status_wrapper" }, hAsync(Typography, null, "There was an error decoding this certificate request.")));
|
|
18952
18961
|
}
|
|
18953
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18954
18962
|
renderEmptyState() {
|
|
18955
18963
|
return (hAsync("div", { class: "status_wrapper" }, hAsync(Typography, null, "There is no certificate request available.")));
|
|
18956
18964
|
}
|
|
@@ -19013,7 +19021,7 @@ class HighlightWords {
|
|
|
19013
19021
|
return source.replace(substring, '');
|
|
19014
19022
|
}
|
|
19015
19023
|
render() {
|
|
19016
|
-
return (hAsync(Host, { key: '
|
|
19024
|
+
return (hAsync(Host, { key: '95b1cef18522eabfb495710d6756d8eee86dfa73' }, hAsync("slot", { key: '360e1c4d7121833dbfccdd6e1021d2030017373b' })));
|
|
19017
19025
|
}
|
|
19018
19026
|
get host() { return getElement(this); }
|
|
19019
19027
|
static get style() { return highlightWordsCss; }
|
|
@@ -19037,7 +19045,7 @@ class TextHider {
|
|
|
19037
19045
|
this.opened = false;
|
|
19038
19046
|
}
|
|
19039
19047
|
render() {
|
|
19040
|
-
return (hAsync(Host, { key: '
|
|
19048
|
+
return (hAsync(Host, { key: 'e62e0ae5bad2145d9d0f8e47493d89f1c9bdd559', "aria-expanded": String(this.opened) }, hAsync("div", { key: 'ee6a5b678e4ff568d017fde3168a37c818c241da', class: "content" }, hAsync("slot", { key: 'b9d073a716fec21e5e9c1dadc66da3fef292d00b' })), hAsync(Button, { key: '398b81d7ec84ccac8803f46dd4d78104a86b9be7', class: "action", startIcon: this.opened ? hAsync(ArrowTopIcon, { color: "secondary" }) : hAsync(ArrowBottomIcon, { color: "secondary" }), onClick: () => { this.opened = !this.opened; } })));
|
|
19041
19049
|
}
|
|
19042
19050
|
static get style() { return textHiderCss; }
|
|
19043
19051
|
static get cmpMeta() { return {
|