@peculiar/certificates-viewer 1.19.0 → 1.20.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/dist/cjs/{download-dd491e0e.js → download-aed99556.js} +3739 -7067
- package/dist/cjs/{l10n-f5651bb0.js → l10n-e971a5ac.js} +1 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer_9.cjs.entry.js +70 -30
- package/dist/cjs/peculiar-certificate-summary_3.cjs.entry.js +1 -1
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +2 -2
- package/dist/collection/components/certificate-viewer/extensions/crl_distribution_points_extension.js +5 -2
- package/dist/collection/components/certificate-viewer/extensions/index.js +13 -4
- package/dist/collection/components/certificate-viewer/extensions/{authority_info_access_syntax_extension.js → info_access_syntax_extension.js} +1 -1
- package/dist/collection/components/certificate-viewer/extensions/policy_constraints_extension.js +17 -0
- package/dist/collection/components/certificate-viewer/extensions/policy_mappings_extension.js +19 -0
- package/dist/collection/constants/oids.js +8 -4
- package/dist/collection/crypto/extension.js +4 -1
- package/dist/esm/{download-8756bae5.js → download-1580501c.js} +3735 -7066
- package/dist/esm/{l10n-6ab04c66.js → l10n-c8cf6930.js} +1 -1
- package/dist/esm/peculiar-attribute-certificate-viewer_9.entry.js +70 -30
- package/dist/esm/peculiar-certificate-summary_3.entry.js +1 -1
- package/dist/esm/peculiar-certificates-viewer.entry.js +2 -2
- package/dist/esm-es5/{download-8756bae5.js → download-1580501c.js} +2397 -4496
- package/dist/esm-es5/{l10n-6ab04c66.js → l10n-c8cf6930.js} +2 -2
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_9.entry.js +66 -30
- package/dist/esm-es5/peculiar-certificate-summary_3.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +2 -2
- package/dist/peculiar/{p-f304a39b.entry.js → p-294c4ef9.entry.js} +1 -1
- package/dist/peculiar/{p-7aad398f.system.entry.js → p-344c2502.system.entry.js} +1 -1
- package/dist/peculiar/p-557d912f.system.js +1 -1
- package/dist/peculiar/p-6639fba3.system.js +100 -0
- package/dist/peculiar/p-7c7cd1d9.js +100 -0
- package/dist/peculiar/p-9351b95f.system.entry.js +457 -0
- package/dist/peculiar/{p-150d1ad1.system.entry.js → p-983b5210.system.entry.js} +1 -1
- package/dist/peculiar/p-ad2ab9ac.entry.js +110 -0
- package/dist/peculiar/{p-ee7045c5.system.js → p-bd1f9066.system.js} +3 -3
- package/dist/peculiar/{p-79bbe633.js → p-cf1841f8.js} +1 -1
- package/dist/peculiar/{p-d85fb3e7.entry.js → p-efc86dbf.entry.js} +1 -1
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/certificate-viewer/extensions/info_access_syntax_extension.d.ts +15 -0
- package/dist/types/components/certificate-viewer/extensions/{authority_info_access_syntax_extension.d.ts → policy_constraints_extension.d.ts} +4 -4
- package/dist/types/components/certificate-viewer/extensions/policy_mappings_extension.d.ts +15 -0
- package/dist/types/constants/oids.d.ts +4 -0
- package/dist/types/crypto/extension.d.ts +2 -2
- package/package.json +20 -20
- package/dist/peculiar/p-35030746.js +0 -77
- package/dist/peculiar/p-4f48056d.entry.js +0 -110
- package/dist/peculiar/p-724513d0.system.js +0 -78
- package/dist/peculiar/p-dd80ee96.system.entry.js +0 -443
|
@@ -0,0 +1,110 @@
|
|
|
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-7c7cd1d9.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}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register([],(function(t){"use strict";return{execute:function(){t({c:r,u:n});var e=t("b",typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{});function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}function r(t,e,n){return n={path:e,exports:{},require:function(t,e){return i()}},t(n,n.exports),n.exports}function i(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}function a(){a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){t[r]=n[r]}}}return t};return a.apply(this,arguments)}function o(t){return t.charAt(0)==="/"}function s(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1){t[n]=t[r]}t.pop()}function u(t,e){if(e===undefined)e="";var n=t&&t.split("/")||[];var r=e&&e.split("/")||[];var i=t&&o(t);var a=e&&o(e);var u=i||a;if(t&&o(t)){r=n}else if(n.length){r.pop();r=r.concat(n)}if(!r.length)return"/";var f;if(r.length){var c=r[r.length-1];f=c==="."||c===".."||c===""}else{f=false}var
|
|
1
|
+
System.register([],(function(t){"use strict";return{execute:function(){t({c:r,u:n});var e=t("b",typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{});function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}function r(t,e,n){return n={path:e,exports:{},require:function(t,e){return i()}},t(n,n.exports),n.exports}function i(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}function a(){a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){t[r]=n[r]}}}return t};return a.apply(this,arguments)}function o(t){return t.charAt(0)==="/"}function s(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1){t[n]=t[r]}t.pop()}function u(t,e){if(e===undefined)e="";var n=t&&t.split("/")||[];var r=e&&e.split("/")||[];var i=t&&o(t);var a=e&&o(e);var u=i||a;if(t&&o(t)){r=n}else if(n.length){r.pop();r=r.concat(n)}if(!r.length)return"/";var f;if(r.length){var c=r[r.length-1];f=c==="."||c===".."||c===""}else{f=false}var l=0;for(var h=r.length;h>=0;h--){var d=r[h];if(d==="."){s(r,h)}else if(d===".."){s(r,h);l++}else if(l){s(r,h);l--}}if(!u)for(;l--;l)r.unshift("..");if(u&&r[0]!==""&&(!r[0]||!o(r[0])))r.unshift("");var v=r.join("/");if(f&&v.substr(-1)!=="/")v+="/";return v}var f="Invariant failed";function c(t,e){if(t){return}{throw new Error(f)}}function l(t){return t.charAt(0)==="/"?t:"/"+t}function h(t,e){return t.toLowerCase().indexOf(e.toLowerCase())===0&&"/?#".indexOf(t.charAt(e.length))!==-1}function d(t,e){return h(t,e)?t.substr(e.length):t}function v(t){return t.charAt(t.length-1)==="/"?t.slice(0,-1):t}function p(t){var e=t||"/";var n="";var r="";var i=e.indexOf("#");if(i!==-1){r=e.substr(i);e=e.substr(0,i)}var a=e.indexOf("?");if(a!==-1){n=e.substr(a);e=e.substr(0,a)}return{pathname:e,search:n==="?"?"":n,hash:r==="#"?"":r}}function y(t){var e=t.pathname,n=t.search,r=t.hash;var i=e||"/";if(n&&n!=="?")i+=n.charAt(0)==="?"?n:"?"+n;if(r&&r!=="#")i+=r.charAt(0)==="#"?r:"#"+r;return i}function m(t,e,n,r){var i;if(typeof t==="string"){i=p(t);i.state=e}else{i=a({},t);if(i.pathname===undefined)i.pathname="";if(i.search){if(i.search.charAt(0)!=="?")i.search="?"+i.search}else{i.search=""}if(i.hash){if(i.hash.charAt(0)!=="#")i.hash="#"+i.hash}else{i.hash=""}if(e!==undefined&&i.state===undefined)i.state=e}try{i.pathname=decodeURI(i.pathname)}catch(o){if(o instanceof URIError){throw new URIError('Pathname "'+i.pathname+'" could not be decoded. '+"This is likely caused by an invalid percent-encoding.")}else{throw o}}if(n)i.key=n;if(r){if(!i.pathname){i.pathname=r.pathname}else if(i.pathname.charAt(0)!=="/"){i.pathname=u(i.pathname,r.pathname)}}else{if(!i.pathname){i.pathname="/"}}return i}function g(){var t=null;function e(e){t=e;return function(){if(t===e)t=null}}function n(e,n,r,i){if(t!=null){var a=typeof t==="function"?t(e,n):t;if(typeof a==="string"){if(typeof r==="function"){r(a,i)}else{i(true)}}else{i(a!==false)}}else{i(true)}}var r=[];function i(t){var e=true;function n(){if(e)t.apply(void 0,arguments)}r.push(n);return function(){e=false;r=r.filter((function(t){return t!==n}))}}function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++){e[n]=arguments[n]}r.forEach((function(t){return t.apply(void 0,e)}))}return{setPrompt:e,confirmTransitionTo:n,appendListener:i,notifyListeners:a}}var w=!!(typeof window!=="undefined"&&window.document&&window.document.createElement);function $(t,e){e(window.confirm(t))}function M(){var t=window.navigator.userAgent;if((t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1)return false;return window.history&&"pushState"in window.history}function b(){return window.navigator.userAgent.indexOf("Trident")===-1}function D(t){return t.state===undefined&&navigator.userAgent.indexOf("CriOS")===-1}var O="popstate";var S="hashchange";function x(){try{return window.history.state||{}}catch(t){return{}}}function L(t){if(t===void 0){t={}}!w?c(false):void 0;var e=window.history;var n=M();var r=!b();var i=t,o=i.forceRefresh,s=o===void 0?false:o,u=i.getUserConfirmation,f=u===void 0?$:u,h=i.keyLength,p=h===void 0?6:h;var L=t.basename?v(l(t.basename)):"";function T(t){var e=t||{},n=e.key,r=e.state;var i=window.location,a=i.pathname,o=i.search,s=i.hash;var u=a+o+s;if(L)u=d(u,L);return m(u,r,n)}function k(){return Math.random().toString(36).substr(2,p)}var A=g();function I(t){a(B,t);B.length=e.length;A.notifyListeners(B.location,B.action)}function C(t){if(D(t))return;H(T(t.state))}function _(){H(T(x()))}var E=false;function H(t){if(E){E=false;I()}else{var e="POP";A.confirmTransitionTo(t,e,f,(function(n){if(n){I({action:e,location:t})}else{P(t)}}))}}function P(t){var e=B.location;var n=U.indexOf(e.key);if(n===-1)n=0;var r=U.indexOf(t.key);if(r===-1)r=0;var i=n-r;if(i){E=true;W(i)}}var N=T(x());var U=[N.key];function j(t){return L+y(t)}function Y(t,r){var i="PUSH";var a=m(t,r,k(),B.location);A.confirmTransitionTo(a,i,f,(function(t){if(!t)return;var r=j(a);var o=a.key,u=a.state;if(n){e.pushState({key:o,state:u},null,r);if(s){window.location.href=r}else{var f=U.indexOf(B.location.key);var c=U.slice(0,f+1);c.push(a.key);U=c;I({action:i,location:a})}}else{window.location.href=r}}))}function R(t,r){var i="REPLACE";var a=m(t,r,k(),B.location);A.confirmTransitionTo(a,i,f,(function(t){if(!t)return;var r=j(a);var o=a.key,u=a.state;if(n){e.replaceState({key:o,state:u},null,r);if(s){window.location.replace(r)}else{var f=U.indexOf(B.location.key);if(f!==-1)U[f]=a.key;I({action:i,location:a})}}else{window.location.replace(r)}}))}function W(t){e.go(t)}function F(){W(-1)}function V(){W(1)}var q=0;function J(t){q+=t;if(q===1&&t===1){window.addEventListener(O,C);if(r)window.addEventListener(S,_)}else if(q===0){window.removeEventListener(O,C);if(r)window.removeEventListener(S,_)}}var K=false;function Z(t){if(t===void 0){t=false}var e=A.setPrompt(t);if(!K){J(1);K=true}return function(){if(K){K=false;J(-1)}return e()}}function z(t){var e=A.appendListener(t);J(1);return function(){J(-1);e()}}var B={length:e.length,action:"POP",location:N,createHref:j,push:Y,replace:R,go:W,goBack:F,goForward:V,block:Z,listen:z};return B}
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -19,14 +19,14 @@ System.register([],(function(t){"use strict";return{execute:function(){t({c:r,u:
|
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the MIT license found in the
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/var A=L();var I=t("h",Object.assign(A,{parseHash:T,queryStringify:k}));var C=r((function(t,n){!function(e,n){t.exports=n()}(e,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",u="week",f="month",c="quarter",
|
|
22
|
+
*/var A=L();var I=t("h",Object.assign(A,{parseHash:T,queryStringify:k}));var C=r((function(t,n){!function(e,n){t.exports=n()}(e,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",u="week",f="month",c="quarter",l="year",h="date",d="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),a=n-i<0,o=e.clone().add(r+(a?-1:1),f);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:f,y:l,w:u,d:s,D:h,h:o,m:a,s:i,ms:r,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",$={};$[w]=y;var M=function(t){return t instanceof S},b=function t(e,n,r){var i;if(!e)return w;if("string"==typeof e){var a=e.toLowerCase();$[a]&&(i=a),n&&($[a]=n,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;$[s]=e,i=s}return!r&&i&&(w=i),i||!r&&w},D=function(t,e){if(M(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},O=g;O.l=b,O.i=M,O.w=function(t,e){return D(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function y(t){this.$L=b(t.locale,null,!0),this.parse(t)}var m=y.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(v);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return!(this.$d.toString()===d)},m.isSame=function(t,e){var n=D(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return D(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<D(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,c=O.p(t),d=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(s)},v=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,y=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(c){case l:return r?d(1,0):d(31,11);case f:return r?d(1,y):d(0,y+1);case u:var w=this.$locale().weekStart||0,$=(p<w?p+7:p)-w;return d(r?m-$:m+(6-$),y);case s:case h:return v(g+"Hours",0);case o:return v(g+"Minutes",1);case a:return v(g+"Seconds",2);case i:return v(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,u=O.p(t),c="set"+(this.$u?"UTC":""),d=(n={},n[s]=c+"Date",n[h]=c+"Date",n[f]=c+"Month",n[l]=c+"FullYear",n[o]=c+"Hours",n[a]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[u],v=u===s?this.$D+(e-this.$W):e;if(u===f||u===l){var p=this.clone().set(h,1);p.$d[d](v),p.init(),this.$d=p.set(h,Math.min(this.$D,p.daysInMonth())).$d}else d&&this.$d[d](v);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,c){var h,d=this;r=Number(r);var v=O.p(c),p=function(t){var e=D(d);return O.w(e.date(e.date()+Math.round(t*r)),d)};if(v===f)return this.set(f,this.$M+r);if(v===l)return this.set(l,this.$y+r);if(v===s)return p(1);if(v===u)return p(7);var y=(h={},h[a]=e,h[o]=n,h[i]=t,h)[v]||1,m=this.$d.getTime()+r*y;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),a=this.$H,o=this.$m,s=this.$M,u=n.weekdays,f=n.months,c=function(t,n,i,a){return t&&(t[n]||t(e,r))||i[n].slice(0,a)},l=function(t){return O.s(a%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:O.s(s+1,2,"0"),MMM:c(n.monthsShort,s,f,3),MMMM:c(f,s),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,u,2),ddd:c(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(a),HH:O.s(a,2,"0"),h:l(1),hh:l(2),a:h(a,o,!0),A:h(a,o,!1),m:String(o),mm:O.s(o,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(p,(function(t,e){return e||v[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,h,d){var v,p=O.p(h),y=D(r),m=(y.utcOffset()-this.utcOffset())*e,g=this-y,w=O.m(this,y);return w=(v={},v[l]=w/12,v[f]=w,v[c]=w/3,v[u]=(g-m)/6048e5,v[s]=(g-m)/864e5,v[o]=g/n,v[a]=g/e,v[i]=g/t,v)[p]||g,d?w:O.a(w)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return $[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=b(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},y}(),x=S.prototype;return D.prototype=x,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",f],["$y",l],["$D",h]].forEach((function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),D.extend=function(t,e){return t.$i||(t(e,S,D),t.$i=!0),D},D.locale=b,D.isDayjs=M,D.unix=function(t){return D(1e3*t)},D.en=$[w],D.Ls=$,D.p={},D}))}));
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var _=t("a",(function(t){return new Date(t).toUTCString()}));var E=t("d",(function(t,e){if(!t||!e){return""}var n=C(t);var r=C(e);var i=function(t){return t===1?"":"s"};var a=r.diff(n,"year",true);if(Number.isInteger(a)){return a+" year"+i(a)}var o=r.diff(n,"month",true);if(Number.isInteger(o)){return o+" month"+i(o)}var s=r.diff(n,"day");return s+" day"+i(s)}));var H="Basic Information";var P="Subject Name";var N="Issuer Name";var U="Public Key Info";var j="Signature";var Y="Extensions";var R="Miscellaneous";var W="Download";var F="Serial Number";var V="Version";var q="Validity";var J="Issued";var K="Expired";var Z="Algorithm";var z="Named Curve";var B="Exponent";var Q="Modulus";var G="Value";var X="Valid";var tt="Revoked";var et="Issuer";var nt="Name";var rt="Public Key";var it="Fingerprint";var at="Fingerprints";var ot="Actions";var st="Details";var ut="Test URLs";var ft="Certificate Details";var ct="Holder";var
|
|
29
|
+
*/var _=t("a",(function(t){return new Date(t).toUTCString()}));var E=t("d",(function(t,e){if(!t||!e){return""}var n=C(t);var r=C(e);var i=function(t){return t===1?"":"s"};var a=r.diff(n,"year",true);if(Number.isInteger(a)){return a+" year"+i(a)}var o=r.diff(n,"month",true);if(Number.isInteger(o)){return o+" month"+i(o)}var s=r.diff(n,"day");return s+" day"+i(s)}));var H="Basic Information";var P="Subject Name";var N="Issuer Name";var U="Public Key Info";var j="Signature";var Y="Extensions";var R="Miscellaneous";var W="Download";var F="Serial Number";var V="Version";var q="Validity";var J="Issued";var K="Expired";var Z="Algorithm";var z="Named Curve";var B="Exponent";var Q="Modulus";var G="Value";var X="Valid";var tt="Revoked";var et="Issuer";var nt="Name";var rt="Public Key";var it="Fingerprint";var at="Fingerprints";var ot="Actions";var st="Details";var ut="Test URLs";var ft="Certificate Details";var ct="Holder";var lt="Digest Info";var ht="Type";var dt={basicInformation:H,subjectName:P,issuerName:N,publicKeyInfo:U,signature:j,extensions:Y,miscellaneous:R,download:W,"download.pem":"Download PEM","download.der":"Download DER",serialNumber:F,version:V,validity:q,issued:J,expired:K,algorithm:Z,namedCurve:z,exponent:B,modulus:Q,value:G,valid:X,revoked:tt,issuer:et,name:nt,publicKey:rt,fingerprint:it,fingerprints:at,actions:ot,details:st,testURLs:ut,certificateDetails:ft,holder:ct,digestInfo:lt,type:ht};
|
|
30
30
|
/**
|
|
31
31
|
* @license
|
|
32
32
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -20,7 +20,7 @@ const f=function(n){void 0===n&&(n={}),s||function(){throw new Error("Invariant
|
|
|
20
20
|
*
|
|
21
21
|
* This source code is licensed under the MIT license found in the
|
|
22
22
|
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/,queryStringify:function(n){const t=[];return Object.keys(n).forEach(r=>{"string"!=typeof n[r]&&"boolean"!=typeof n[r]&&"number"!=typeof n[r]||t.push(`${r}=${encodeURIComponent(n[r])}`)}),t.join("&")}});var d=r((function(n){n.exports=function(){var n=6e4,t=36e5,r="millisecond",i="second",e="minute",o="hour",u="day",s="week",a="month",c="quarter",f="year",h="date",d="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(n,t,r){var i=String(n);return!i||i.length>=t?n:""+Array(t+1-i.length).join(r)+n},p={s:y,z:function(n){var t=-n.utcOffset(),r=Math.abs(t),i=Math.floor(r/60),e=r%60;return(t<=0?"+":"-")+y(i,2,"0")+":"+y(e,2,"0")},m:function n(t,r){if(t.date()<r.date())return-n(r,t);var i=12*(r.year()-t.year())+(r.month()-t.month()),e=t.clone().add(i,a),o=r-e<0,u=t.clone().add(i+(o?-1:1),a);return+(-(i+(r-e)/(o?e-u:u-e))||0)},a:function(n){return n<0?Math.ceil(n)||0:Math.floor(n)},p:function(n){return{M:a,y:f,w:s,d:u,D:h,h:o,m:e,s:i,ms:r,Q:c}[n]||String(n||"").toLowerCase().replace(/s$/,"")},u:function(n){return void 0===n}},m="en",g={};g[m]=w;var M=function(n){return n instanceof $},b=function n(t,r,i){var e;if(!t)return m;if("string"==typeof t){var o=t.toLowerCase();g[o]&&(e=o),r&&(g[o]=r,e=o);var u=t.split("-");if(!e&&u.length>1)return n(u[0])}else{var s=t.name;g[s]=t,e=s}return!i&&e&&(m=e),e||!i&&m},D=function(n,t){if(M(n))return n.clone();var r="object"==typeof t?t:{};return r.date=n,r.args=arguments,new $(r)},S=p;S.l=b,S.i=M,S.w=function(n,t){return D(n,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var $=function(){function w(n){this.$L=b(n.locale,null,!0),this.parse(n)}var y=w.prototype;return y.parse=function(n){this.$d=function(n){var t=n.date,r=n.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(l);if(i){var e=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],e,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],e,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(n),this.$x=n.x||{},this.init()},y.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(n,t){var r=D(n);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(n,t){return D(n)<this.startOf(t)},y.isBefore=function(n,t){return this.endOf(t)<D(n)},y.$g=function(n,t,r){return S.u(n)?this[t]:this.set(r,n)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(n,t){var r=this,c=!!S.u(t)||t,d=S.p(n),l=function(n,t){var i=S.w(r.$u?Date.UTC(r.$y,t,n):new Date(r.$y,t,n),r);return c?i:i.endOf(u)},v=function(n,t){return S.w(r.toDate()[n].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},w=this.$W,y=this.$M,p=this.$D,m="set"+(this.$u?"UTC":"");switch(d){case f:return c?l(1,0):l(31,11);case a:return c?l(1,y):l(0,y+1);case s:var g=this.$locale().weekStart||0,M=(w<g?w+7:w)-g;return l(c?p-M:p+(6-M),y);case u:case h:return v(m+"Hours",0);case o:return v(m+"Minutes",1);case e:return v(m+"Seconds",2);case i:return v(m+"Milliseconds",3);default:return this.clone()}},y.endOf=function(n){return this.startOf(n,!1)},y.$set=function(n,t){var s,c=S.p(n),d="set"+(this.$u?"UTC":""),l=(s={},s[u]=d+"Date",s[h]=d+"Date",s[a]=d+"Month",s[f]=d+"FullYear",s[o]=d+"Hours",s[e]=d+"Minutes",s[i]=d+"Seconds",s[r]=d+"Milliseconds",s)[c],v=c===u?this.$D+(t-this.$W):t;if(c===a||c===f){var w=this.clone().set(h,1);w.$d[l](v),w.init(),this.$d=w.set(h,Math.min(this.$D,w.daysInMonth())).$d}else l&&this.$d[l](v);return this.init(),this},y.set=function(n,t){return this.clone().$set(n,t)},y.get=function(n){return this[S.p(n)]()},y.add=function(r,c){var h,d=this;r=Number(r);var l=S.p(c),v=function(n){var t=D(d);return S.w(t.date(t.date()+Math.round(n*r)),d)};if(l===a)return this.set(a,this.$M+r);if(l===f)return this.set(f,this.$y+r);if(l===u)return v(1);if(l===s)return v(7);var w=(h={},h[e]=n,h[o]=t,h[i]=1e3,h)[l]||1,y=this.$d.getTime()+r*w;return S.w(y,this)},y.subtract=function(n,t){return this.add(-1*n,t)},y.format=function(n){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var i=n||"YYYY-MM-DDTHH:mm:ssZ",e=S.z(this),o=this.$H,u=this.$m,s=this.$M,a=r.weekdays,c=r.months,f=function(n,r,e,o){return n&&(n[r]||n(t,i))||e[r].
|
|
23
|
+
*/,queryStringify:function(n){const t=[];return Object.keys(n).forEach(r=>{"string"!=typeof n[r]&&"boolean"!=typeof n[r]&&"number"!=typeof n[r]||t.push(`${r}=${encodeURIComponent(n[r])}`)}),t.join("&")}});var d=r((function(n){n.exports=function(){var n=6e4,t=36e5,r="millisecond",i="second",e="minute",o="hour",u="day",s="week",a="month",c="quarter",f="year",h="date",d="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(n,t,r){var i=String(n);return!i||i.length>=t?n:""+Array(t+1-i.length).join(r)+n},p={s:y,z:function(n){var t=-n.utcOffset(),r=Math.abs(t),i=Math.floor(r/60),e=r%60;return(t<=0?"+":"-")+y(i,2,"0")+":"+y(e,2,"0")},m:function n(t,r){if(t.date()<r.date())return-n(r,t);var i=12*(r.year()-t.year())+(r.month()-t.month()),e=t.clone().add(i,a),o=r-e<0,u=t.clone().add(i+(o?-1:1),a);return+(-(i+(r-e)/(o?e-u:u-e))||0)},a:function(n){return n<0?Math.ceil(n)||0:Math.floor(n)},p:function(n){return{M:a,y:f,w:s,d:u,D:h,h:o,m:e,s:i,ms:r,Q:c}[n]||String(n||"").toLowerCase().replace(/s$/,"")},u:function(n){return void 0===n}},m="en",g={};g[m]=w;var M=function(n){return n instanceof $},b=function n(t,r,i){var e;if(!t)return m;if("string"==typeof t){var o=t.toLowerCase();g[o]&&(e=o),r&&(g[o]=r,e=o);var u=t.split("-");if(!e&&u.length>1)return n(u[0])}else{var s=t.name;g[s]=t,e=s}return!i&&e&&(m=e),e||!i&&m},D=function(n,t){if(M(n))return n.clone();var r="object"==typeof t?t:{};return r.date=n,r.args=arguments,new $(r)},S=p;S.l=b,S.i=M,S.w=function(n,t){return D(n,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var $=function(){function w(n){this.$L=b(n.locale,null,!0),this.parse(n)}var y=w.prototype;return y.parse=function(n){this.$d=function(n){var t=n.date,r=n.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(l);if(i){var e=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],e,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],e,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(n),this.$x=n.x||{},this.init()},y.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(n,t){var r=D(n);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(n,t){return D(n)<this.startOf(t)},y.isBefore=function(n,t){return this.endOf(t)<D(n)},y.$g=function(n,t,r){return S.u(n)?this[t]:this.set(r,n)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(n,t){var r=this,c=!!S.u(t)||t,d=S.p(n),l=function(n,t){var i=S.w(r.$u?Date.UTC(r.$y,t,n):new Date(r.$y,t,n),r);return c?i:i.endOf(u)},v=function(n,t){return S.w(r.toDate()[n].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},w=this.$W,y=this.$M,p=this.$D,m="set"+(this.$u?"UTC":"");switch(d){case f:return c?l(1,0):l(31,11);case a:return c?l(1,y):l(0,y+1);case s:var g=this.$locale().weekStart||0,M=(w<g?w+7:w)-g;return l(c?p-M:p+(6-M),y);case u:case h:return v(m+"Hours",0);case o:return v(m+"Minutes",1);case e:return v(m+"Seconds",2);case i:return v(m+"Milliseconds",3);default:return this.clone()}},y.endOf=function(n){return this.startOf(n,!1)},y.$set=function(n,t){var s,c=S.p(n),d="set"+(this.$u?"UTC":""),l=(s={},s[u]=d+"Date",s[h]=d+"Date",s[a]=d+"Month",s[f]=d+"FullYear",s[o]=d+"Hours",s[e]=d+"Minutes",s[i]=d+"Seconds",s[r]=d+"Milliseconds",s)[c],v=c===u?this.$D+(t-this.$W):t;if(c===a||c===f){var w=this.clone().set(h,1);w.$d[l](v),w.init(),this.$d=w.set(h,Math.min(this.$D,w.daysInMonth())).$d}else l&&this.$d[l](v);return this.init(),this},y.set=function(n,t){return this.clone().$set(n,t)},y.get=function(n){return this[S.p(n)]()},y.add=function(r,c){var h,d=this;r=Number(r);var l=S.p(c),v=function(n){var t=D(d);return S.w(t.date(t.date()+Math.round(n*r)),d)};if(l===a)return this.set(a,this.$M+r);if(l===f)return this.set(f,this.$y+r);if(l===u)return v(1);if(l===s)return v(7);var w=(h={},h[e]=n,h[o]=t,h[i]=1e3,h)[l]||1,y=this.$d.getTime()+r*w;return S.w(y,this)},y.subtract=function(n,t){return this.add(-1*n,t)},y.format=function(n){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var i=n||"YYYY-MM-DDTHH:mm:ssZ",e=S.z(this),o=this.$H,u=this.$m,s=this.$M,a=r.weekdays,c=r.months,f=function(n,r,e,o){return n&&(n[r]||n(t,i))||e[r].slice(0,o)},h=function(n){return S.s(o%12||12,n,"0")},l=r.meridiem||function(n,t,r){var i=n<12?"AM":"PM";return r?i.toLowerCase():i},w={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:S.s(s+1,2,"0"),MMM:f(r.monthsShort,s,c,3),MMMM:f(c,s),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:f(r.weekdaysMin,this.$W,a,2),ddd:f(r.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(o),HH:S.s(o,2,"0"),h:h(1),hh:h(2),a:l(o,u,!0),A:l(o,u,!1),m:String(u),mm:S.s(u,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:e};return i.replace(v,(function(n,t){return t||w[n]||e.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,h,d){var l,v=S.p(h),w=D(r),y=(w.utcOffset()-this.utcOffset())*n,p=this-w,m=S.m(this,w);return m=(l={},l[f]=m/12,l[a]=m,l[c]=m/3,l[s]=(p-y)/6048e5,l[u]=(p-y)/864e5,l[o]=p/t,l[e]=p/n,l[i]=p/1e3,l)[v]||p,d?m:S.a(m)},y.daysInMonth=function(){return this.endOf(a).$D},y.$locale=function(){return g[this.$L]},y.locale=function(n,t){if(!n)return this.$L;var r=this.clone(),i=b(n,t,!0);return i&&(r.$L=i),r},y.clone=function(){return S.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},w}(),_=$.prototype;return D.prototype=_,[["$ms",r],["$s",i],["$m",e],["$H",o],["$W",u],["$M",a],["$y",f],["$D",h]].forEach((function(n){_[n[1]]=function(t){return this.$g(t,n[0],n[1])}})),D.extend=function(n,t){return n.$i||(n(t,$,D),n.$i=!0),D},D.locale=b,D.isDayjs=M,D.unix=function(n){return D(1e3*n)},D.en=g[m],D.Ls=g,D.p={},D}()}));
|
|
24
24
|
/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as r,h as e,H as o}from"./p-bd949790.js";import{aq as a,al as i,O as l}from"./p-35030746.js";import{l as s}from"./p-79bbe633.js";const c=class{constructor(e){t(this,e),this.detailsOpen=r(this,"detailsOpen",7),this.detailsClose=r(this,"detailsClose",7),this.certificates=[],this.filterWithSearch=!0,this.highlightWithSearch=!0,this.search="",this.certificatesDecoded=[],this.isDecodeInProcess=!0,this.isHasTests=!1,this.isHasRoots=!1,this.handleClickDetails=(t,r)=>{r.stopPropagation(),this.certificateSelectedForDetails=t,this.detailsOpen.emit(t)},this.handleModalClose=()=>{this.certificateSelectedForDetails=void 0,this.detailsClose.emit()},this.handleSearch=t=>{this.search=t.target.value.trim()}}componentWillLoad(){this.certificatesDecodeAndSet()}watchCertificates(t,r){JSON.stringify(t)!==JSON.stringify(r)&&this.certificatesDecodeAndSet()}async certificatesDecodeAndSet(){let t=!1,r=!1;if(!Array.isArray(this.certificates))return;const e=[];for(const i of this.certificates)try{const o=new a(i.value);await o.getThumbprint("SHA-1"),e.push({body:o,tests:i.tests,name:i.name}),!r&&o.isRoot&&(r=!0),t||i.tests&&(i.tests.expired||i.tests.revoked||i.tests.valid)&&(t=!0)}catch(o){console.error("Error certificate parse:",o)}this.isHasTests=t,this.isHasRoots=r,this.isDecodeInProcess=!1,this.certificatesDecoded=e}handleClickDownloadAsPem(t,r){r.stopPropagation(),i.certificate.asPEM(t.body.exportAsPemFormatted(),t.name||t.body.commonName)}handleClickDownloadAsDer(t,r){r.stopPropagation(),i.certificate.asPEM(t.body.exportAsHexFormatted(),t.name||t.body.commonName)}handleClickRow(t){this.expandedRow=this.expandedRow===t?void 0:t}getMaxColSpanValue(){let t=4;return this.isHasTests&&(t+=1),this.isHasRoots||(t+=1),t}renderExpandedRow(t){const r=this.getMaxColSpanValue();return e("tr",{class:"expanded_summary"},e("td",{colSpan:r},e("peculiar-certificate-summary",{certificate:t,showIssuer:!t.isRoot})))}renderCertificateTests(t){if(!t)return null;const r=[];return t.valid&&r.push(e("peculiar-button",{class:"button_table_action",href:t.valid,target:"_blank"},s.getString("valid"))),t.revoked&&r.push(e("peculiar-button",{class:"button_table_action",href:t.revoked,target:"_blank"},s.getString("revoked"))),t.expired&&r.push(e("peculiar-button",{class:"button_table_action",href:t.expired,target:"_blank"},s.getString("expired"))),r}renderContentState(){const t=this.highlightWithSearch?this.search:"",r=[];return this.certificatesDecoded.forEach((o,a)=>{const i=a===this.expandedRow,c=l[o.body.signature.algorithm]||o.body.signature.algorithm;this.filterWithSearch&&this.search&&-1===[c,o.body.issuerCommonName,o.name,o.body.commonName,o.body.thumbprints["SHA-1"]].join(" ").toLowerCase().indexOf(this.search.toLowerCase())||r.push([e("tr",{class:{expanded:i},onClick:this.handleClickRow.bind(this,a),key:a},!this.isHasRoots&&e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("issuer"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},o.body.issuerCommonName))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("name"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},o.name||o.body.commonName))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("publicKey"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},c))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("fingerprint")," (SHA-1):"),e("peculiar-typography",{class:"content",monospace:!0},e("peculiar-highlight-words",{search:t},o.body.thumbprints["SHA-1"]))),e("td",{class:"align_center"},e("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("actions"),":"),e("span",{class:"content"},e("peculiar-button",{onClick:this.handleClickDetails.bind(this,o.body),class:"button_table_action"},s.getString("details")),e("peculiar-button-split",{onClick:this.handleClickDownloadAsPem.bind(this,o),actions:[{text:s.getString("download.der"),onClick:this.handleClickDownloadAsDer.bind(this,o)}],class:"button_table_action"},s.getString("download.pem")))),this.isHasTests&&e("td",{class:"align_center"},e("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("testURLs"),":"),e("span",{class:"content"},this.renderCertificateTests(o.tests)))),i&&this.renderExpandedRow(o.body)])}),r}renderCertificateDetailsModal(){return this.certificateSelectedForDetails?e("div",{class:"modal_wrapper",role:"presentation","aria-hidden":"false",part:"presentation"},e("div",{class:"modal_backdrop",onClick:this.handleModalClose,"aria-hidden":"true"}),e("div",{class:"modal_container",role:"dialog",part:"presentation_container"},e("header",{class:"modal_title"},e("peculiar-typography",{type:"h4"},s.getString("certificateDetails")),e("button",{class:"modal_close",onClick:this.handleModalClose,type:"button","aria-label":"Close",title:"Close"},e("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.7204 14.375L21.0654 19.7185C21.3115 19.9658 21.3115 20.3693 21.0654 20.6154L20.615 21.0645C20.3689 21.3118 19.9667 21.3118 19.7181 21.0645L14.3744 15.721L9.03194 21.0645C8.78327 21.3118 8.3811 21.3118 8.13371 21.0645L7.68459 20.6154C7.43847 20.3693 7.43847 19.9658 7.68459 19.7185L13.0296 14.375L7.68459 9.03155C7.43847 8.78417 7.43847 8.38074 7.68459 8.13463L8.13371 7.68554C8.3811 7.43815 8.78327 7.43815 9.03194 7.68554L14.3744 13.029L19.7181 7.68554C19.9667 7.43815 20.3689 7.43815 20.615 7.68554L21.0654 8.13463C21.3115 8.38074 21.3115 8.78417 21.0654 9.03155L15.7204 14.375Z"})))),e("div",{class:"modal_content"},e("peculiar-certificate-viewer",{certificate:this.certificateSelectedForDetails})))):null}renderSearch(){return this.filterWithSearch||this.highlightWithSearch?e("div",{class:"search_section"},e("input",{onInput:this.handleSearch,type:"search",value:"",class:"input_search",disabled:!this.certificatesDecoded.length,placeholder:"Search"})):null}renderEmptyState(){const t=this.getMaxColSpanValue();return e("tr",null,e("td",{class:"status_wrapper",colSpan:t},e("peculiar-typography",{type:"b1",align:"center"},"There are no certificates available.")))}renderEmptySearchState(){const t=this.getMaxColSpanValue();return e("tr",null,e("td",{class:"status_wrapper",colSpan:t},e("peculiar-typography",{type:"b1",align:"center"},"No results found for “",this.search,"“")))}renderLoadingState(){return e("div",{class:"loading_container"},e("peculiar-circular-progress",null))}renderBody(){if(this.isDecodeInProcess)return null;if(!this.certificatesDecoded.length)return this.renderEmptyState();const t=this.renderContentState();return this.search&&!t.length?this.renderEmptySearchState():t}render(){return e(o,null,this.renderSearch(),e("table",{class:{m_extra:this.isHasTests||!this.isHasRoots}},e("thead",null,e("tr",null,!this.isHasRoots&&e("th",{class:"col_issuer"},e("peculiar-typography",{type:"h7",align:"left"},s.getString("issuer"))),e("th",{class:"col_name"},e("peculiar-typography",{type:"h7",align:"left"},s.getString("name"))),e("th",{class:"col_public_key"},e("peculiar-typography",{type:"h7",align:"left"},s.getString("publicKey"))),e("th",{class:"col_fingerprint"},e("peculiar-typography",{type:"h7",align:"left"},s.getString("fingerprint")," (SHA-1)")),e("th",{class:"col_actions"},e("peculiar-typography",{type:"h7",align:"center"},s.getString("actions"))),this.isHasTests&&e("th",{class:"col_tests"},e("peculiar-typography",{type:"h7",align:"center"},s.getString("testURLs"))))),e("tbody",null,this.renderBody())),this.renderCertificateDetailsModal(),this.isDecodeInProcess&&this.renderLoadingState())}static get watchers(){return{certificates:["watchCertificates"]}}};c.style=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;min-width:280px;overflow:auto;position:relative;background:white;background:rgba(var(--pv-color-light-rgb), 1)}table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0}table thead{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07)}table tr td{vertical-align:middle}table tbody tr:not(.expanded_summary){cursor:pointer}table tr{border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table th{padding:15px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table td{padding:8px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table .col_issuer,table .col_name,table .col_public_key{width:16%}table .col_actions,table .col_tests{width:18%}table.m_extra .col_issuer,table.m_extra .col_name,table.m_extra .col_public_key{width:12%}table.m_extra .col_actions,table.m_extra .col_tests{width:17%}table tr.expanded td:not(:last-child){border-right-color:transparent}table tr.expanded td{border-bottom-color:transparent}.expanded{border-bottom-color:transparent;background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary td{vertical-align:top;padding:10px 20px 26px}@-webkit-keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}.modal_wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:auto;text-align:center;-webkit-animation:fadeIn 200ms;animation:fadeIn 200ms;padding:30px 10px}.modal_wrapper:before{display:inline-block;vertical-align:middle;width:0;height:100%;content:""}.modal_backdrop{background:rgba(42, 49, 52, 0.5);background:rgba(var(--pv-color-dark-rgb), 0.5);z-index:-1;position:fixed;top:0;right:0;bottom:0;left:0}.modal_container{position:relative;display:inline-block;vertical-align:middle;width:100%;max-width:900px;text-align:left;border-radius:3px;overflow:hidden;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);height:100%}.modal_title{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);border-bottom-width:1px;border-bottom-style:solid;padding:20px 60px 16px 20px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:60px}.modal_content{height:calc(100% - 60px);overflow-y:auto}.modal_close{cursor:pointer;border:none;background-color:transparent;position:absolute;top:0;bottom:0;right:0;padding:0 12px;-webkit-transition:opacity 100ms;transition:opacity 100ms;outline:none}.modal_close:hover{opacity:0.6}.modal_close svg{fill:#2a3134;fill:rgba(var(--pv-color-dark-rgb), 1)}.button_table_action{margin:2px}.mobile_title{display:none}.status_wrapper{height:85px;text-align:center;pointer-events:none}.search_section{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);height:50px;padding:10px;border-width:1px 1px 0 1px;border-style:solid}.input_search{height:100%;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:0 14px;font-size:12px;outline:none;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.input_search::-moz-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search:-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-webkit-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.loading_container{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(42, 49, 52, 0.3);background:rgba(var(--pv-color-dark-rgb), 0.3);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.align_center{text-align:center}@media (hover: hover){table tbody tr:not(.expanded_summary):hover{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}}@media (max-width: 900px){table,tbody,tr,td{display:block}thead{display:none}tr{padding:0 15px;border-width:1px;border-style:solid}tr:not(:first-child){margin-top:-1px}tr:not(.expanded_summary) td:first-child{border:none !important}table td{padding-left:0;padding-right:0;border-width:1px 0 0 0 !important;border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr.expanded_summary td{padding:15px 0}.mobile_title{display:inline-block;width:90px;vertical-align:middle}.modal_title{padding:17px 60px 17px 15px}.content{display:inline-block;width:calc(100% - 90px);vertical-align:middle;text-align:left}.expanded_summary{border-top-color:transparent;padding-bottom:10px}.expanded_summary td:before{content:none}.status_wrapper{height:266px;display:table-cell}.search_section{height:60px;padding:15px}.align_center{text-align:inherit}}';export{c as peculiar_certificates_viewer}
|
|
1
|
+
import{r as t,c as r,h as e,H as o}from"./p-bd949790.js";import{l as a}from"./p-cf1841f8.js";import{av as i,aq as l,O as s}from"./p-7c7cd1d9.js";const c=class{constructor(e){t(this,e),this.detailsOpen=r(this,"detailsOpen",7),this.detailsClose=r(this,"detailsClose",7),this.certificates=[],this.filterWithSearch=!0,this.highlightWithSearch=!0,this.search="",this.certificatesDecoded=[],this.isDecodeInProcess=!0,this.isHasTests=!1,this.isHasRoots=!1,this.handleClickDetails=(t,r)=>{r.stopPropagation(),this.certificateSelectedForDetails=t,this.detailsOpen.emit(t)},this.handleModalClose=()=>{this.certificateSelectedForDetails=void 0,this.detailsClose.emit()},this.handleSearch=t=>{this.search=t.target.value.trim()}}componentWillLoad(){this.certificatesDecodeAndSet()}watchCertificates(t,r){JSON.stringify(t)!==JSON.stringify(r)&&this.certificatesDecodeAndSet()}async certificatesDecodeAndSet(){let t=!1,r=!1;if(!Array.isArray(this.certificates))return;const e=[];for(const a of this.certificates)try{const o=new i(a.value);await o.getThumbprint("SHA-1"),e.push({body:o,tests:a.tests,name:a.name}),!r&&o.isRoot&&(r=!0),t||a.tests&&(a.tests.expired||a.tests.revoked||a.tests.valid)&&(t=!0)}catch(o){console.error("Error certificate parse:",o)}this.isHasTests=t,this.isHasRoots=r,this.isDecodeInProcess=!1,this.certificatesDecoded=e}handleClickDownloadAsPem(t,r){r.stopPropagation(),l.certificate.asPEM(t.body.exportAsPemFormatted(),t.name||t.body.commonName)}handleClickDownloadAsDer(t,r){r.stopPropagation(),l.certificate.asPEM(t.body.exportAsHexFormatted(),t.name||t.body.commonName)}handleClickRow(t){this.expandedRow=this.expandedRow===t?void 0:t}getMaxColSpanValue(){let t=4;return this.isHasTests&&(t+=1),this.isHasRoots||(t+=1),t}renderExpandedRow(t){const r=this.getMaxColSpanValue();return e("tr",{class:"expanded_summary"},e("td",{colSpan:r},e("peculiar-certificate-summary",{certificate:t,showIssuer:!t.isRoot})))}renderCertificateTests(t){if(!t)return null;const r=[];return t.valid&&r.push(e("peculiar-button",{class:"button_table_action",href:t.valid,target:"_blank"},a.getString("valid"))),t.revoked&&r.push(e("peculiar-button",{class:"button_table_action",href:t.revoked,target:"_blank"},a.getString("revoked"))),t.expired&&r.push(e("peculiar-button",{class:"button_table_action",href:t.expired,target:"_blank"},a.getString("expired"))),r}renderContentState(){const t=this.highlightWithSearch?this.search:"",r=[];return this.certificatesDecoded.forEach((o,i)=>{const l=i===this.expandedRow,c=s[o.body.signature.algorithm]||o.body.signature.algorithm;this.filterWithSearch&&this.search&&-1===[c,o.body.issuerCommonName,o.name,o.body.commonName,o.body.thumbprints["SHA-1"]].join(" ").toLowerCase().indexOf(this.search.toLowerCase())||r.push([e("tr",{class:{expanded:l},onClick:this.handleClickRow.bind(this,i),key:i},!this.isHasRoots&&e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},a.getString("issuer"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},o.body.issuerCommonName))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},a.getString("name"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},o.name||o.body.commonName))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},a.getString("publicKey"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},c))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},a.getString("fingerprint")," (SHA-1):"),e("peculiar-typography",{class:"content",monospace:!0},e("peculiar-highlight-words",{search:t},o.body.thumbprints["SHA-1"]))),e("td",{class:"align_center"},e("peculiar-typography",{class:"mobile_title",color:"grey_5"},a.getString("actions"),":"),e("span",{class:"content"},e("peculiar-button",{onClick:this.handleClickDetails.bind(this,o.body),class:"button_table_action"},a.getString("details")),e("peculiar-button-split",{onClick:this.handleClickDownloadAsPem.bind(this,o),actions:[{text:a.getString("download.der"),onClick:this.handleClickDownloadAsDer.bind(this,o)}],class:"button_table_action"},a.getString("download.pem")))),this.isHasTests&&e("td",{class:"align_center"},e("peculiar-typography",{class:"mobile_title",color:"grey_5"},a.getString("testURLs"),":"),e("span",{class:"content"},this.renderCertificateTests(o.tests)))),l&&this.renderExpandedRow(o.body)])}),r}renderCertificateDetailsModal(){return this.certificateSelectedForDetails?e("div",{class:"modal_wrapper",role:"presentation","aria-hidden":"false",part:"presentation"},e("div",{class:"modal_backdrop",onClick:this.handleModalClose,"aria-hidden":"true"}),e("div",{class:"modal_container",role:"dialog",part:"presentation_container"},e("header",{class:"modal_title"},e("peculiar-typography",{type:"h4"},a.getString("certificateDetails")),e("button",{class:"modal_close",onClick:this.handleModalClose,type:"button","aria-label":"Close",title:"Close"},e("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.7204 14.375L21.0654 19.7185C21.3115 19.9658 21.3115 20.3693 21.0654 20.6154L20.615 21.0645C20.3689 21.3118 19.9667 21.3118 19.7181 21.0645L14.3744 15.721L9.03194 21.0645C8.78327 21.3118 8.3811 21.3118 8.13371 21.0645L7.68459 20.6154C7.43847 20.3693 7.43847 19.9658 7.68459 19.7185L13.0296 14.375L7.68459 9.03155C7.43847 8.78417 7.43847 8.38074 7.68459 8.13463L8.13371 7.68554C8.3811 7.43815 8.78327 7.43815 9.03194 7.68554L14.3744 13.029L19.7181 7.68554C19.9667 7.43815 20.3689 7.43815 20.615 7.68554L21.0654 8.13463C21.3115 8.38074 21.3115 8.78417 21.0654 9.03155L15.7204 14.375Z"})))),e("div",{class:"modal_content"},e("peculiar-certificate-viewer",{certificate:this.certificateSelectedForDetails})))):null}renderSearch(){return this.filterWithSearch||this.highlightWithSearch?e("div",{class:"search_section"},e("input",{onInput:this.handleSearch,type:"search",value:"",class:"input_search",disabled:!this.certificatesDecoded.length,placeholder:"Search"})):null}renderEmptyState(){const t=this.getMaxColSpanValue();return e("tr",null,e("td",{class:"status_wrapper",colSpan:t},e("peculiar-typography",{type:"b1",align:"center"},"There are no certificates available.")))}renderEmptySearchState(){const t=this.getMaxColSpanValue();return e("tr",null,e("td",{class:"status_wrapper",colSpan:t},e("peculiar-typography",{type:"b1",align:"center"},"No results found for “",this.search,"“")))}renderLoadingState(){return e("div",{class:"loading_container"},e("peculiar-circular-progress",null))}renderBody(){if(this.isDecodeInProcess)return null;if(!this.certificatesDecoded.length)return this.renderEmptyState();const t=this.renderContentState();return this.search&&!t.length?this.renderEmptySearchState():t}render(){return e(o,null,this.renderSearch(),e("table",{class:{m_extra:this.isHasTests||!this.isHasRoots}},e("thead",null,e("tr",null,!this.isHasRoots&&e("th",{class:"col_issuer"},e("peculiar-typography",{type:"h7",align:"left"},a.getString("issuer"))),e("th",{class:"col_name"},e("peculiar-typography",{type:"h7",align:"left"},a.getString("name"))),e("th",{class:"col_public_key"},e("peculiar-typography",{type:"h7",align:"left"},a.getString("publicKey"))),e("th",{class:"col_fingerprint"},e("peculiar-typography",{type:"h7",align:"left"},a.getString("fingerprint")," (SHA-1)")),e("th",{class:"col_actions"},e("peculiar-typography",{type:"h7",align:"center"},a.getString("actions"))),this.isHasTests&&e("th",{class:"col_tests"},e("peculiar-typography",{type:"h7",align:"center"},a.getString("testURLs"))))),e("tbody",null,this.renderBody())),this.renderCertificateDetailsModal(),this.isDecodeInProcess&&this.renderLoadingState())}static get watchers(){return{certificates:["watchCertificates"]}}};c.style=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;min-width:280px;overflow:auto;position:relative;background:white;background:rgba(var(--pv-color-light-rgb), 1)}table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0}table thead{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07)}table tr td{vertical-align:middle}table tbody tr:not(.expanded_summary){cursor:pointer}table tr{border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table th{padding:15px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table td{padding:8px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table .col_issuer,table .col_name,table .col_public_key{width:16%}table .col_actions,table .col_tests{width:18%}table.m_extra .col_issuer,table.m_extra .col_name,table.m_extra .col_public_key{width:12%}table.m_extra .col_actions,table.m_extra .col_tests{width:17%}table tr.expanded td:not(:last-child){border-right-color:transparent}table tr.expanded td{border-bottom-color:transparent}.expanded{border-bottom-color:transparent;background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary td{vertical-align:top;padding:10px 20px 26px}@-webkit-keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}.modal_wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:auto;text-align:center;-webkit-animation:fadeIn 200ms;animation:fadeIn 200ms;padding:30px 10px}.modal_wrapper:before{display:inline-block;vertical-align:middle;width:0;height:100%;content:""}.modal_backdrop{background:rgba(42, 49, 52, 0.5);background:rgba(var(--pv-color-dark-rgb), 0.5);z-index:-1;position:fixed;top:0;right:0;bottom:0;left:0}.modal_container{position:relative;display:inline-block;vertical-align:middle;width:100%;max-width:900px;text-align:left;border-radius:3px;overflow:hidden;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);height:100%}.modal_title{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);border-bottom-width:1px;border-bottom-style:solid;padding:20px 60px 16px 20px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:60px}.modal_content{height:calc(100% - 60px);overflow-y:auto}.modal_close{cursor:pointer;border:none;background-color:transparent;position:absolute;top:0;bottom:0;right:0;padding:0 12px;-webkit-transition:opacity 100ms;transition:opacity 100ms;outline:none}.modal_close:hover{opacity:0.6}.modal_close svg{fill:#2a3134;fill:rgba(var(--pv-color-dark-rgb), 1)}.button_table_action{margin:2px}.mobile_title{display:none}.status_wrapper{height:85px;text-align:center;pointer-events:none}.search_section{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);height:50px;padding:10px;border-width:1px 1px 0 1px;border-style:solid}.input_search{height:100%;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:0 14px;font-size:12px;outline:none;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.input_search::-moz-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search:-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-webkit-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.loading_container{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(42, 49, 52, 0.3);background:rgba(var(--pv-color-dark-rgb), 0.3);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.align_center{text-align:center}@media (hover: hover){table tbody tr:not(.expanded_summary):hover{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}}@media (max-width: 900px){table,tbody,tr,td{display:block}thead{display:none}tr{padding:0 15px;border-width:1px;border-style:solid}tr:not(:first-child){margin-top:-1px}tr:not(.expanded_summary) td:first-child{border:none !important}table td{padding-left:0;padding-right:0;border-width:1px 0 0 0 !important;border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr.expanded_summary td{padding:15px 0}.mobile_title{display:inline-block;width:90px;vertical-align:middle}.modal_title{padding:17px 60px 17px 15px}.content{display:inline-block;width:calc(100% - 90px);vertical-align:middle;text-align:left}.expanded_summary{border-top-color:transparent;padding-bottom:10px}.expanded_summary td:before{content:none}.status_wrapper{height:266px;display:table-cell}.search_section{height:60px;padding:15px}.align_center{text-align:inherit}}';export{c as peculiar_certificates_viewer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"./p-bd949790.js";import{p as i}from"./p-198d9121.js";i().then(i=>e([["p-
|
|
1
|
+
import{b as e}from"./p-bd949790.js";import{p as i}from"./p-198d9121.js";i().then(i=>e([["p-ad2ab9ac",[[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-294c4ef9",[[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-efc86dbf",[[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));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { FunctionalComponent } from '../../../stencil-public-runtime';
|
|
9
|
+
import { AuthorityInfoAccessSyntax, SubjectInfoAccessSyntax } from '@peculiar/asn1-x509';
|
|
10
|
+
import { Extension } from '../../../crypto/extension';
|
|
11
|
+
interface IInfoAccessSyntaxExtensionProps extends IGeneralNameOptions {
|
|
12
|
+
extension: Extension<AuthorityInfoAccessSyntax | SubjectInfoAccessSyntax>;
|
|
13
|
+
}
|
|
14
|
+
export declare const InfoAccessSyntaxExtension: FunctionalComponent<IInfoAccessSyntaxExtensionProps>;
|
|
15
|
+
export {};
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { FunctionalComponent } from '../../../stencil-public-runtime';
|
|
9
|
-
import {
|
|
9
|
+
import { PolicyConstraints } from '@peculiar/asn1-x509';
|
|
10
10
|
import { Extension } from '../../../crypto/extension';
|
|
11
|
-
interface
|
|
12
|
-
extension: Extension<
|
|
11
|
+
interface IPolicyConstraintsExtensionProps {
|
|
12
|
+
extension: Extension<PolicyConstraints>;
|
|
13
13
|
}
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const PolicyConstraintsExtension: FunctionalComponent<IPolicyConstraintsExtensionProps>;
|
|
15
15
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { FunctionalComponent } from '../../../stencil-public-runtime';
|
|
9
|
+
import { PolicyMappings } from '@peculiar/asn1-x509';
|
|
10
|
+
import { Extension } from '../../../crypto/extension';
|
|
11
|
+
interface IPolicyMappingsExtensionProps {
|
|
12
|
+
extension: Extension<PolicyMappings>;
|
|
13
|
+
}
|
|
14
|
+
export declare const PolicyMappingsExtension: FunctionalComponent<IPolicyMappingsExtensionProps>;
|
|
15
|
+
export {};
|
|
@@ -1996,10 +1996,14 @@ export declare const OIDs: {
|
|
|
1996
1996
|
'2.16.840.1.101.3.1': string;
|
|
1997
1997
|
'2.16.840.1.101.3.2': string;
|
|
1998
1998
|
'2.16.840.1.101.3.2.1': string;
|
|
1999
|
+
'2.16.840.1.101.3.2.1.2.7': string;
|
|
2000
|
+
'2.16.840.1.101.3.2.1.2.8': string;
|
|
2001
|
+
'2.16.840.1.101.3.2.1.2.9': string;
|
|
1999
2002
|
'2.16.840.1.101.3.2.1.3.1': string;
|
|
2000
2003
|
'2.16.840.1.101.3.2.1.3.2': string;
|
|
2001
2004
|
'2.16.840.1.101.3.2.1.3.3': string;
|
|
2002
2005
|
'2.16.840.1.101.3.2.1.3.4': string;
|
|
2006
|
+
'2.16.840.1.101.3.2.1.3.12': string;
|
|
2003
2007
|
'2.16.840.1.101.3.2.1.48.1': string;
|
|
2004
2008
|
'2.16.840.1.101.3.2.1.48.2': string;
|
|
2005
2009
|
'2.16.840.1.101.3.2.1.48.3': string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import { Extension as AsnExtension, AuthorityInfoAccessSyntax, AuthorityKeyIdentifier, BasicConstraints, CertificateIssuer, CertificatePolicies, CRLDistributionPoints, CRLReason, ExtendedKeyUsage, InhibitAnyPolicy, InvalidityDate, KeyUsage, NameConstraints, PolicyConstraints, PolicyMappings, SubjectDirectoryAttributes, SubjectKeyIdentifier, PrivateKeyUsagePeriod, EntrustVersionInfo } from '@peculiar/asn1-x509';
|
|
8
|
+
import { Extension as AsnExtension, AuthorityInfoAccessSyntax, AuthorityKeyIdentifier, BasicConstraints, CertificateIssuer, CertificatePolicies, CRLDistributionPoints, CRLReason, ExtendedKeyUsage, InhibitAnyPolicy, InvalidityDate, KeyUsage, NameConstraints, PolicyConstraints, PolicyMappings, SubjectDirectoryAttributes, SubjectKeyIdentifier, PrivateKeyUsagePeriod, EntrustVersionInfo, SubjectInfoAccessSyntax } from '@peculiar/asn1-x509';
|
|
9
9
|
import { QCStatements, BiometricSyntax } from '@peculiar/asn1-x509-qualified';
|
|
10
10
|
import { CertificateTemplate, EnrollCertTypeChoice, CaVersion } from '@peculiar/asn1-x509-microsoft';
|
|
11
11
|
import { NetscapeComment, NetscapeCertType } from '@peculiar/asn1-x509-netscape';
|
|
@@ -15,7 +15,7 @@ import { Timestamp, ArchiveRevInfo } from '@peculiar/asn1-adobe-acrobat';
|
|
|
15
15
|
import { LogotypeExtn } from '@peculiar/asn1-x509-logotype';
|
|
16
16
|
import { TNAuthorizationList } from '@peculiar/asn1-rfc8226';
|
|
17
17
|
import { AsnData } from './asn_data';
|
|
18
|
-
export declare type TExtensionValue = AuthorityInfoAccessSyntax | AuthorityKeyIdentifier | BasicConstraints | CertificateIssuer | CertificatePolicies | CRLDistributionPoints | CRLReason | ExtendedKeyUsage | InhibitAnyPolicy | InvalidityDate | NameConstraints | PolicyConstraints | PolicyMappings | SubjectDirectoryAttributes | SubjectKeyIdentifier | QCStatements | CertificateTemplate | EnrollCertTypeChoice | NetscapeComment | LeiChoice | LeiRole | CertificateTransparency | Timestamp | ArchiveRevInfo | KeyUsage | NetscapeCertType | CaVersion | PrivateKeyUsagePeriod | EntrustVersionInfo | BiometricSyntax | LogotypeExtn | TNAuthorizationList | string;
|
|
18
|
+
export declare type TExtensionValue = AuthorityInfoAccessSyntax | AuthorityKeyIdentifier | BasicConstraints | CertificateIssuer | CertificatePolicies | CRLDistributionPoints | CRLReason | ExtendedKeyUsage | InhibitAnyPolicy | InvalidityDate | NameConstraints | PolicyConstraints | PolicyMappings | SubjectDirectoryAttributes | SubjectKeyIdentifier | QCStatements | CertificateTemplate | EnrollCertTypeChoice | NetscapeComment | LeiChoice | LeiRole | CertificateTransparency | Timestamp | ArchiveRevInfo | KeyUsage | NetscapeCertType | CaVersion | PrivateKeyUsagePeriod | EntrustVersionInfo | BiometricSyntax | LogotypeExtn | TNAuthorizationList | SubjectInfoAccessSyntax | string;
|
|
19
19
|
export declare class Extension<T extends TExtensionValue> extends AsnData<AsnExtension> {
|
|
20
20
|
readonly value: T;
|
|
21
21
|
private getAsnExtnValue;
|