@peculiar/certificates-viewer 3.7.0 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/cjs/{certification_request-00bbfbc5.js → certification_request-b9ac73f2.js} +443 -431
  2. package/dist/cjs/{crl-de4e196b.js → crl-57727a07.js} +6 -6
  3. package/dist/cjs/{download-a97f4cb2.js → download-93f7b773.js} +9 -5
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/{l10n-17c96aba.js → l10n-ddc7cff9.js} +1 -1
  6. package/dist/cjs/{miscellaneous-30c4aded.js → miscellaneous-07184a47.js} +210 -67
  7. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +7 -5
  8. package/dist/cjs/peculiar-button-split_4.cjs.entry.js +2 -2
  9. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +5 -5
  10. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +5 -5
  11. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +4 -4
  12. package/dist/cjs/{x509_certificate-2af9b990.js → x509_certificate-da0fc87d.js} +4 -4
  13. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js +10 -9
  14. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js +24 -24
  15. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js +11 -10
  16. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js +6 -2
  17. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js +7 -6
  18. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js +37 -6
  19. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js +7 -6
  20. package/dist/collection/components/certificate-details-parts/public_key.js +5 -8
  21. package/dist/collection/components/csr-viewer/csr-viewer.js +2 -0
  22. package/dist/collection/constants/oids.js +15 -13
  23. package/dist/collection/crypto/crl.js +1 -1
  24. package/dist/collection/crypto/csr.js +1 -1
  25. package/dist/collection/crypto/provider.js +2 -1
  26. package/dist/collection/crypto/x509_attribute_certificate.js +1 -1
  27. package/dist/collection/crypto/x509_certificate.js +1 -1
  28. package/dist/collection/utils/download_from_buffer.js +9 -5
  29. package/dist/esm/{certification_request-8cc9d070.js → certification_request-db83dd19.js} +23 -17
  30. package/dist/esm/{crl-f43a95b7.js → crl-34288843.js} +6 -6
  31. package/dist/esm/{download-67ac9120.js → download-91511aeb.js} +9 -5
  32. package/dist/esm/index.js +1 -1
  33. package/dist/esm/{l10n-a68d5748.js → l10n-d48f35ff.js} +1 -1
  34. package/dist/esm/{miscellaneous-b74d9eae.js → miscellaneous-ee8e1994.js} +210 -67
  35. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +7 -5
  36. package/dist/esm/peculiar-button-split_4.entry.js +2 -2
  37. package/dist/esm/peculiar-certificate-decoder.entry.js +5 -5
  38. package/dist/esm/peculiar-certificate-viewer.entry.js +5 -5
  39. package/dist/esm/peculiar-certificates-viewer.entry.js +4 -4
  40. package/dist/esm/{x509_certificate-0fdd28aa.js → x509_certificate-1acb3564.js} +4 -4
  41. package/dist/peculiar/index.esm.js +1 -1
  42. package/dist/peculiar/p-08aba71b.js +69 -0
  43. package/dist/peculiar/p-0f7868b1.js +11 -0
  44. package/dist/peculiar/{p-167fd2db.entry.js → p-2f213160.entry.js} +2 -2
  45. package/dist/peculiar/{p-c72f8e8f.js → p-3c4e4245.js} +6 -6
  46. package/dist/peculiar/{p-ea9a6317.js → p-48a620ff.js} +5 -5
  47. package/dist/peculiar/p-711b4e1e.js +18 -0
  48. package/dist/peculiar/{p-0868020d.entry.js → p-81ae1305.entry.js} +1 -1
  49. package/dist/peculiar/{p-4e9318fb.entry.js → p-81d33fb4.entry.js} +1 -1
  50. package/dist/peculiar/{p-05337212.entry.js → p-9bfd4f58.entry.js} +1 -1
  51. package/dist/peculiar/{p-893659f4.entry.js → p-df53fbcc.entry.js} +1 -1
  52. package/dist/peculiar/{p-fec9d812.js → p-ec250cc4.js} +1 -1
  53. package/dist/peculiar/peculiar.esm.js +1 -1
  54. package/dist/types/constants/oids.d.ts +2 -0
  55. package/dist/types/crypto/crl.d.ts +1 -1
  56. package/dist/types/crypto/csr.d.ts +1 -1
  57. package/dist/types/crypto/x509_attribute_certificate.d.ts +1 -1
  58. package/dist/types/crypto/x509_certificate.d.ts +1 -1
  59. package/dist/types/interface.d.ts +1 -0
  60. package/package.json +3 -2
  61. package/dist/peculiar/p-45336b4f.js +0 -69
  62. package/dist/peculiar/p-cff9655c.js +0 -18
  63. package/dist/peculiar/p-ec8787ed.js +0 -11
@@ -3,9 +3,9 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- const certification_request = require('./certification_request-00bbfbc5.js');
7
- const download = require('./download-a97f4cb2.js');
8
- const l10n = require('./l10n-17c96aba.js');
6
+ const certification_request = require('./certification_request-b9ac73f2.js');
7
+ const download = require('./download-93f7b773.js');
8
+ const l10n = require('./l10n-ddc7cff9.js');
9
9
 
10
10
  /**
11
11
  * @license
@@ -122,7 +122,7 @@ class X509AttributeCertificate extends certification_request.AsnData {
122
122
  try {
123
123
  const thumbprint = await certification_request.getCertificateThumbprint(algorithm, this.raw);
124
124
  if (thumbprint) {
125
- this.thumbprints[algorithm['name'] || algorithm] = download.build.Convert.ToHex(thumbprint);
125
+ this.thumbprints[algorithm] = download.build.Convert.ToHex(thumbprint);
126
126
  }
127
127
  }
128
128
  catch (error) {
@@ -204,7 +204,7 @@ class CSR extends certification_request.AsnData {
204
204
  try {
205
205
  const thumbprint = await certification_request.getCertificateThumbprint(algorithm, this.raw);
206
206
  if (thumbprint) {
207
- this.thumbprints[algorithm['name'] || algorithm] = download.build.Convert.ToHex(thumbprint);
207
+ this.thumbprints[algorithm] = download.build.Convert.ToHex(thumbprint);
208
208
  }
209
209
  }
210
210
  catch (error) {
@@ -266,7 +266,7 @@ class CRL extends certification_request.AsnData {
266
266
  try {
267
267
  const thumbprint = await certification_request.getCertificateThumbprint(algorithm, this.raw);
268
268
  if (thumbprint) {
269
- this.thumbprints[algorithm['name'] || algorithm] = download.build.Convert.ToHex(thumbprint);
269
+ this.thumbprints[algorithm] = download.build.Convert.ToHex(thumbprint);
270
270
  }
271
271
  }
272
272
  catch (error) {
@@ -26,7 +26,9 @@ function downloadFromBuffer(value, name, extension, mime = 'application/octet-st
26
26
  if (navigator.msSaveBlob) { // IE10+ : (has Blob, but not a[download] or URL)
27
27
  // @ts-ignore
28
28
  navigator.msSaveBlob(blob, `${name}.${extension}`);
29
- return new Promise((res) => setTimeout(res, 100));
29
+ return new Promise((resolve) => {
30
+ setTimeout(resolve, 100);
31
+ });
30
32
  }
31
33
  const blobURL = window.URL.createObjectURL(blob);
32
34
  const link = document.createElement('a');
@@ -41,10 +43,12 @@ function downloadFromBuffer(value, name, extension, mime = 'application/octet-st
41
43
  document.body.appendChild(link);
42
44
  link.dispatchEvent(new MouseEvent('click'));
43
45
  document.body.removeChild(link);
44
- return new Promise((res) => setTimeout(() => {
45
- document.body.removeChild(frame);
46
- res(undefined);
47
- }, 100));
46
+ return new Promise((resolve) => {
47
+ setTimeout(() => {
48
+ document.body.removeChild(frame);
49
+ resolve();
50
+ }, 100);
51
+ });
48
52
  }
49
53
 
50
54
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -5,7 +5,7 @@
5
5
 
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
- const download = require('./download-a97f4cb2.js');
8
+ const download = require('./download-93f7b773.js');
9
9
 
10
10
 
11
11
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- const download$1 = require('./download-a97f4cb2.js');
6
+ const download$1 = require('./download-93f7b773.js');
7
7
 
8
8
  var dayjs_min = download$1.createCommonjsModule(function (module, exports) {
9
9
  !function(t,e){module.exports=e();}(download$1.commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,M={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("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={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),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.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($);if(r){var i=r[2]-1||0,s=(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,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}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()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(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,h=O.p(t),l=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(a)},$=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)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case c:return r?l(1,0):l(31,11);case f:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);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,h){var d,l=this;r=Number(r);var $=O.p(h),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===f)return this.set(f,this.$M+r);if($===c)return this.set(c,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;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||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,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(y,(function(t,e){return e||$[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,v=this-M,g=O.m(this,M);return g=($={},$[c]=g/12,$[f]=g,$[h]=g/3,$[o]=(v-m)/6048e5,$[a]=(v-m)/864e5,$[u]=v/n,$[s]=v/e,$[i]=v/t,$)[y]||v,l?g:O.a(g)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(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()},M}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
@@ -4,9 +4,9 @@
4
4
  'use strict';
5
5
 
6
6
  const index = require('./index-064e95c7.js');
7
- const l10n = require('./l10n-17c96aba.js');
8
- const download = require('./download-a97f4cb2.js');
9
- const certification_request = require('./certification_request-00bbfbc5.js');
7
+ const l10n = require('./l10n-ddc7cff9.js');
8
+ const download = require('./download-93f7b773.js');
9
+ const certification_request = require('./certification_request-b9ac73f2.js');
10
10
 
11
11
  /**
12
12
  * @license
@@ -122,9 +122,8 @@ const BasicInformation = (props) => {
122
122
  * LICENSE file in the root directory of this source tree.
123
123
  */
124
124
  function getPublicKeyModulus(publicKey) {
125
- var _a;
126
- if ((_a = publicKey.params) === null || _a === void 0 ? void 0 : _a['modulus']) {
127
- let length = publicKey.params['modulus'].byteLength;
125
+ if ('modulus' in publicKey.params) {
126
+ let length = publicKey.params.modulus.byteLength;
128
127
  if (length % 2) {
129
128
  length -= 1;
130
129
  }
@@ -133,9 +132,8 @@ function getPublicKeyModulus(publicKey) {
133
132
  return null;
134
133
  }
135
134
  function getPublicKeyExponent(publicKey) {
136
- var _a;
137
- if ((_a = publicKey.params) === null || _a === void 0 ? void 0 : _a['publicExponent']) {
138
- return publicKey.params['publicExponent'].byteLength === 3
135
+ if ('publicExponent' in publicKey.params) {
136
+ return publicKey.params.publicExponent.byteLength === 3
139
137
  ? 65537
140
138
  : 3;
141
139
  }
@@ -147,10 +145,9 @@ const PublicKey = (props) => {
147
145
  return null;
148
146
  }
149
147
  function renderKeyDetails(key) {
150
- var _a;
151
148
  return [
152
149
  index.h(RowValue, { name: l10n.l10n.getString('algorithm'), value: getStringByOID(key.algorithm) }),
153
- index.h(RowValue, { name: l10n.l10n.getString('namedCurve'), value: getStringByOID((_a = key.params) === null || _a === void 0 ? void 0 : _a['namedCurve']) }),
150
+ index.h(RowValue, { name: l10n.l10n.getString('namedCurve'), value: getStringByOID('namedCurve' in key.params ? key.params.namedCurve : undefined) }),
154
151
  index.h(RowValue, { name: l10n.l10n.getString('exponent'), value: getPublicKeyExponent(key) }),
155
152
  index.h(RowValue, { name: l10n.l10n.getString('modulus'), value: getPublicKeyModulus(key) }),
156
153
  index.h(RowValue, { name: l10n.l10n.getString('value'), value: download.build.Convert.ToHex(key.value), monospace: true, collapse: true }),
@@ -296,7 +293,11 @@ const BasicConstraintsExtension = (props) => {
296
293
  */
297
294
  const ExtendedKeyUsageExtension = (props) => {
298
295
  const { extension } = props;
299
- return (index.h(BasicExtension, { extension: extension }, extension.value.map((usage, arrayIndex) => (index.h(RowValue, { name: `Purpose #${arrayIndex + 1}`, value: getStringByOID(usage) })))));
296
+ return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
297
+ index.h(RowValue, { name: "Purposes:", value: "" }),
298
+ extension.value.map((usage) => (index.h(TableRowTable, null,
299
+ index.h(RowValue, { name: "Purpose", value: getStringByOID(usage) })))),
300
+ ])));
300
301
  };
301
302
 
302
303
  /**
@@ -442,11 +443,12 @@ const CRLDistributionPointsExtension = (props) => {
442
443
  */
443
444
  const InfoAccessSyntaxExtension = (props) => {
444
445
  const { extension } = props;
445
- return (index.h(BasicExtension, { extension: extension }, extension.value.map((description, arrayIndex) => ([
446
- index.h(RowValue, { name: `Description #${arrayIndex + 1}`, value: "" }),
447
- index.h(RowValue, { name: "Method", value: getStringByOID(description.accessMethod) }),
448
- index.h(GeneralNamePart, Object.assign({ generalName: description.accessLocation }, props)),
449
- ]))));
446
+ return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
447
+ index.h(RowValue, { name: "Descriptions:", value: "" }),
448
+ extension.value.map((description) => (index.h(TableRowTable, null,
449
+ index.h(RowValue, { name: "Method", value: getStringByOID(description.accessMethod) }),
450
+ index.h(GeneralNamePart, Object.assign({ generalName: description.accessLocation }, props))))),
451
+ ])));
450
452
  };
451
453
 
452
454
  /**
@@ -470,30 +472,30 @@ const SubjectAlternativeNameExtension = (props) => {
470
472
  */
471
473
  const CertificatePoliciesExtension = (props) => {
472
474
  const { extension } = props;
473
- return (index.h(BasicExtension, { extension: extension }, extension.value.map((policy, arrayIndex) => {
474
- var _a;
475
- return ([
476
- index.h(RowValue, { name: `Policy #${arrayIndex + 1}`, value: "" }),
477
- index.h(RowValue, { name: "ID", value: getStringByOID(policy.policyIdentifier) }),
478
- (_a = policy.policyQualifiers) === null || _a === void 0 ? void 0 : _a.map((qualifierInfo, indexInfo) => {
479
- const data = [
480
- index.h(RowValue, { name: `Qualifier #${arrayIndex + 1}.${indexInfo + 1}`, value: "" }),
481
- index.h(RowValue, { name: "ID", value: getStringByOID(qualifierInfo.policyQualifierId) }),
482
- ];
483
- if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.1') {
484
- const value = certification_request.AsnParser.parse(qualifierInfo.qualifier, certification_request.DisplayText);
485
- data.push(index.h(RowValue, { name: "Value", value: value.toString() }));
486
- }
487
- if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.2') {
488
- const value = certification_request.AsnParser.parse(qualifierInfo.qualifier, certification_request.UserNotice);
489
- if (value.explicitText) {
490
- data.push(index.h(RowValue, { name: "Value", value: value.explicitText.toString() }));
475
+ return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
476
+ index.h(RowValue, { name: "Policies:", value: "" }),
477
+ extension.value.map((policy) => (index.h(TableRowTable, null,
478
+ index.h(RowValue, { name: "Policy ID", value: getStringByOID(policy.policyIdentifier) }),
479
+ policy.policyQualifiers && Boolean(policy.policyQualifiers.length) && ([
480
+ index.h(RowValue, { name: "Qualifiers:", value: "" }),
481
+ policy.policyQualifiers.map((qualifierInfo) => {
482
+ const data = [
483
+ index.h(RowValue, { name: "Qualifier ID", value: getStringByOID(qualifierInfo.policyQualifierId) }),
484
+ ];
485
+ if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.1') {
486
+ const value = certification_request.AsnParser.parse(qualifierInfo.qualifier, certification_request.DisplayText);
487
+ data.push(index.h(RowValue, { name: "Value", value: value.toString() }));
491
488
  }
492
- }
493
- return data;
494
- }),
495
- ]);
496
- })));
489
+ if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.2') {
490
+ const value = certification_request.AsnParser.parse(qualifierInfo.qualifier, certification_request.UserNotice);
491
+ if (value.explicitText) {
492
+ data.push(index.h(RowValue, { name: "Value", value: value.explicitText.toString() }));
493
+ }
494
+ }
495
+ return (index.h(TableRowTable, null, data));
496
+ }),
497
+ ])))),
498
+ ])));
497
499
  };
498
500
 
499
501
  /**
@@ -591,15 +593,16 @@ const logs = {
591
593
  */
592
594
  const CertificateTransparencyExtension = (props) => {
593
595
  const { extension } = props;
594
- return (index.h(BasicExtension, { extension: extension }, extension.value.toJSON().map((signedCertificateTimestamp, arrayIndex) => ([
595
- index.h(RowValue, { name: `SCT #${arrayIndex + 1}`, value: "" }),
596
- index.h(RowValue, { name: "Version", value: signedCertificateTimestamp.version + 1 }),
597
- index.h(RowValue, { name: "Log Operator", value: logs[signedCertificateTimestamp.logId] || signedCertificateTimestamp.logId }),
598
- index.h(RowValue, { name: "Log Key ID", value: signedCertificateTimestamp.logId, monospace: true }),
599
- index.h(RowValue, { name: "Timestamp", value: l10n.dateShort(signedCertificateTimestamp.timestamp) }),
600
- index.h(RowValue, { name: "Signature Algorithm", value: `${signedCertificateTimestamp.hashAlgorithm} ${signedCertificateTimestamp.signatureAlgorithm}`.toUpperCase() }),
601
- index.h(RowValue, { name: "Signature", value: signedCertificateTimestamp.signature, monospace: true }),
602
- ]))));
596
+ return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.items.length) && ([
597
+ index.h(RowValue, { name: "Signed Certificate Timestamps:", value: "" }),
598
+ extension.value.toJSON().map((signedCertificateTimestamp) => (index.h(TableRowTable, null,
599
+ index.h(RowValue, { name: "Version", value: signedCertificateTimestamp.version + 1 }),
600
+ index.h(RowValue, { name: "Log Operator", value: logs[signedCertificateTimestamp.logId] || signedCertificateTimestamp.logId }),
601
+ index.h(RowValue, { name: "Log Key ID", value: signedCertificateTimestamp.logId, monospace: true }),
602
+ index.h(RowValue, { name: "Timestamp", value: l10n.dateShort(signedCertificateTimestamp.timestamp) }),
603
+ index.h(RowValue, { name: "Signature Algorithm", value: `${signedCertificateTimestamp.hashAlgorithm} ${signedCertificateTimestamp.signatureAlgorithm}`.toUpperCase() }),
604
+ index.h(RowValue, { name: "Signature", value: signedCertificateTimestamp.signature, monospace: true })))),
605
+ ])));
603
606
  };
604
607
 
605
608
  /**
@@ -660,6 +663,116 @@ const CaVersionExtension = (props) => {
660
663
  index.h(RowValue, { name: "Key Index", value: version.keyIndex })));
661
664
  };
662
665
 
666
+ var PdsLocations_1, QcEuPDS_1, QcType_1, QcCClegislation_1;
667
+ let Iso4217CurrencyCode = class Iso4217CurrencyCode {
668
+ constructor(value) {
669
+ if (typeof value === "string") {
670
+ this.alphabetic = value;
671
+ }
672
+ else if (typeof value === "number") {
673
+ this.numeric = value;
674
+ }
675
+ }
676
+ };
677
+ certification_request.__decorate([
678
+ certification_request.AsnProp({ type: certification_request.AsnPropTypes.PrintableString })
679
+ ], Iso4217CurrencyCode.prototype, "alphabetic", void 0);
680
+ certification_request.__decorate([
681
+ certification_request.AsnProp({ type: certification_request.AsnPropTypes.PrintableString })
682
+ ], Iso4217CurrencyCode.prototype, "numeric", void 0);
683
+ Iso4217CurrencyCode = certification_request.__decorate([
684
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Choice })
685
+ ], Iso4217CurrencyCode);
686
+ class MonetaryValue {
687
+ constructor(params = {}) {
688
+ this.currency = new Iso4217CurrencyCode();
689
+ this.amount = 0;
690
+ this.exponent = 0;
691
+ Object.assign(this, params);
692
+ }
693
+ }
694
+ certification_request.__decorate([
695
+ certification_request.AsnProp({ type: Iso4217CurrencyCode })
696
+ ], MonetaryValue.prototype, "currency", void 0);
697
+ certification_request.__decorate([
698
+ certification_request.AsnProp({ type: certification_request.AsnPropTypes.Integer })
699
+ ], MonetaryValue.prototype, "amount", void 0);
700
+ certification_request.__decorate([
701
+ certification_request.AsnProp({ type: certification_request.AsnPropTypes.Integer })
702
+ ], MonetaryValue.prototype, "exponent", void 0);
703
+ let QcEuLimitValue = class QcEuLimitValue extends MonetaryValue {
704
+ };
705
+ QcEuLimitValue = certification_request.__decorate([
706
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Sequence })
707
+ ], QcEuLimitValue);
708
+ let QcEuRetentionPeriod = class QcEuRetentionPeriod {
709
+ constructor(value = 0) {
710
+ this.value = value;
711
+ }
712
+ };
713
+ certification_request.__decorate([
714
+ certification_request.AsnProp({ type: certification_request.AsnPropTypes.Integer })
715
+ ], QcEuRetentionPeriod.prototype, "value", void 0);
716
+ QcEuRetentionPeriod = certification_request.__decorate([
717
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Choice })
718
+ ], QcEuRetentionPeriod);
719
+ let PdsLocation = class PdsLocation {
720
+ constructor(params = {}) {
721
+ this.url = "";
722
+ this.language = "";
723
+ Object.assign(this, params);
724
+ }
725
+ };
726
+ certification_request.__decorate([
727
+ certification_request.AsnProp({ type: certification_request.AsnPropTypes.IA5String })
728
+ ], PdsLocation.prototype, "url", void 0);
729
+ certification_request.__decorate([
730
+ certification_request.AsnProp({ type: certification_request.AsnPropTypes.PrintableString })
731
+ ], PdsLocation.prototype, "language", void 0);
732
+ PdsLocation = certification_request.__decorate([
733
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Sequence })
734
+ ], PdsLocation);
735
+ let PdsLocations = PdsLocations_1 = class PdsLocations extends certification_request.AsnArray {
736
+ constructor(items) {
737
+ super(items);
738
+ Object.setPrototypeOf(this, PdsLocations_1.prototype);
739
+ }
740
+ };
741
+ PdsLocations = PdsLocations_1 = certification_request.__decorate([
742
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Sequence, itemType: PdsLocation })
743
+ ], PdsLocations);
744
+ let QcEuPDS = QcEuPDS_1 = class QcEuPDS extends PdsLocations {
745
+ constructor(items) {
746
+ super(items);
747
+ Object.setPrototypeOf(this, QcEuPDS_1.prototype);
748
+ }
749
+ };
750
+ QcEuPDS = QcEuPDS_1 = certification_request.__decorate([
751
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Sequence, itemType: PdsLocation })
752
+ ], QcEuPDS);
753
+ let QcType = QcType_1 = class QcType extends certification_request.AsnArray {
754
+ constructor(items) {
755
+ super(items);
756
+ Object.setPrototypeOf(this, QcType_1.prototype);
757
+ }
758
+ };
759
+ QcType = QcType_1 = certification_request.__decorate([
760
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Sequence, itemType: certification_request.AsnPropTypes.ObjectIdentifier })
761
+ ], QcType);
762
+ let QcCClegislation = QcCClegislation_1 = class QcCClegislation extends certification_request.AsnArray {
763
+ constructor(items) {
764
+ super(items);
765
+ Object.setPrototypeOf(this, QcCClegislation_1.prototype);
766
+ }
767
+ };
768
+ QcCClegislation = QcCClegislation_1 = certification_request.__decorate([
769
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Sequence, itemType: certification_request.AsnPropTypes.PrintableString })
770
+ ], QcCClegislation);
771
+ const id_etsi_qcs = "0.4.0.1862.1";
772
+ const id_etsi_qcs_qcRetentionPeriod = `${id_etsi_qcs}.3`;
773
+ const id_etsi_qcs_qcPDS = `${id_etsi_qcs}.5`;
774
+ const id_etsi_qcs_qcType = `${id_etsi_qcs}.6`;
775
+
663
776
  /**
664
777
  * @license
665
778
  * Copyright (c) Peculiar Ventures, LLC.
@@ -669,11 +782,39 @@ const CaVersionExtension = (props) => {
669
782
  */
670
783
  const QCStatementsExtension = (props) => {
671
784
  const { extension } = props;
672
- return (index.h(BasicExtension, { extension: extension }, extension.value.map((statement, arrayIndex) => ([
673
- index.h(RowValue, { name: `Statement #${arrayIndex + 1}`, value: "" }),
674
- index.h(RowValue, { name: "ID", value: getStringByOID(statement.statementId) }),
675
- index.h(RowValue, { name: "Info", value: statement.statementInfo.byteLength ? download.build.Convert.ToHex(statement.statementInfo) : null, monospace: true }),
676
- ]))));
785
+ function renderStatementInfo(statementId, statementInfo) {
786
+ if (!statementInfo.byteLength) {
787
+ return null;
788
+ }
789
+ if (statementId === certification_request.id_qcs_pkixQCSyntax_v2) {
790
+ const semanticsInformation = certification_request.AsnParser.parse(statementInfo, certification_request.SemanticsInformation);
791
+ return (index.h(RowValue, { name: "Semantics Identifier", value: getStringByOID(semanticsInformation.semanticsIdentifier) }));
792
+ }
793
+ if (statementId === id_etsi_qcs_qcType) {
794
+ const qcTypes = certification_request.AsnParser.parse(statementInfo, QcType);
795
+ return (index.h(RowValue, { name: "QC Types", value: qcTypes.map((type) => getStringByOID(type)).join(', ') }));
796
+ }
797
+ if (statementId === id_etsi_qcs_qcRetentionPeriod) {
798
+ const retentionPeriod = certification_request.AsnParser.parse(statementInfo, QcEuRetentionPeriod);
799
+ return (index.h(RowValue, { name: "Retention Period", value: `${retentionPeriod.value} years` }));
800
+ }
801
+ if (statementId === id_etsi_qcs_qcPDS) {
802
+ const pdsLocations = certification_request.AsnParser.parse(statementInfo, PdsLocations);
803
+ return ([
804
+ index.h(RowValue, { name: "PDS Locations:", value: "" }),
805
+ pdsLocations.map((location) => (index.h(TableRowTable, null,
806
+ index.h(RowValue, { name: "URL", value: location.url }),
807
+ index.h(RowValue, { name: "Language", value: location.language })))),
808
+ ]);
809
+ }
810
+ return (index.h(RowValue, { name: "Info", value: download.build.Convert.ToHex(statementInfo), monospace: true }));
811
+ }
812
+ return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
813
+ index.h(RowValue, { name: "Statements:", value: "" }),
814
+ extension.value.map((statement) => (index.h(TableRowTable, null,
815
+ index.h(RowValue, { name: "Statement ID", value: getStringByOID(statement.statementId) }),
816
+ renderStatementInfo(statement.statementId, statement.statementInfo)))),
817
+ ])));
677
818
  };
678
819
 
679
820
  /**
@@ -789,11 +930,12 @@ function getAttributeValue(attribute) {
789
930
  */
790
931
  const SubjectDirectoryAttributesExtension = (props) => {
791
932
  const { extension } = props;
792
- return (index.h(BasicExtension, { extension: extension }, extension.value.map((attribute, arrayIndex) => ([
793
- index.h(RowValue, { name: `Attribute #${arrayIndex + 1}`, value: "" }),
794
- index.h(RowValue, { name: "Type", value: getStringByOID(attribute.type) }),
795
- index.h(RowValue, { name: "Value", value: getAttributeValue(attribute) }),
796
- ]))));
933
+ return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
934
+ index.h(RowValue, { name: "Attributes:", value: "" }),
935
+ extension.value.map((attribute) => (index.h(TableRowTable, null,
936
+ index.h(RowValue, { name: "Type", value: getStringByOID(attribute.type) }),
937
+ index.h(RowValue, { name: "Value", value: getAttributeValue(attribute) })))),
938
+ ])));
797
939
  };
798
940
 
799
941
  /**
@@ -846,14 +988,15 @@ const EntrustVersionInfoExtension = (props) => {
846
988
  */
847
989
  const BiometricSyntaxExtension = (props) => {
848
990
  const { extension } = props;
849
- return (index.h(BasicExtension, { extension: extension }, extension.value.map((data, arrayIndex) => ([
850
- index.h(RowValue, { name: `Biometric #${arrayIndex + 1}`, value: "" }),
851
- index.h(RowValue, { name: "OID", value: getStringByOID(data.typeOfBiometricData.biometricDataOid) }),
852
- index.h(RowValue, { name: "Type", value: data.typeOfBiometricData.predefinedBiometricType }),
853
- index.h(RowValue, { name: "Algorithm", value: getStringByOID(data.hashAlgorithm.algorithm) }),
854
- index.h(RowValue, { name: "Hash", value: download.build.Convert.ToHex(data.biometricDataHash.buffer), monospace: true }),
855
- index.h(RowValue, { name: "Source Uri", value: data.sourceDataUri }),
856
- ]))));
991
+ return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
992
+ index.h(RowValue, { name: "Biometrics:", value: "" }),
993
+ extension.value.map((data) => (index.h(TableRowTable, null,
994
+ index.h(RowValue, { name: "OID", value: getStringByOID(data.typeOfBiometricData.biometricDataOid) }),
995
+ index.h(RowValue, { name: "Type", value: data.typeOfBiometricData.predefinedBiometricType }),
996
+ index.h(RowValue, { name: "Algorithm", value: getStringByOID(data.hashAlgorithm.algorithm) }),
997
+ index.h(RowValue, { name: "Hash", value: download.build.Convert.ToHex(data.biometricDataHash.buffer), monospace: true }),
998
+ index.h(RowValue, { name: "Source Uri", value: data.sourceDataUri })))),
999
+ ])));
857
1000
  };
858
1001
 
859
1002
  /**
@@ -6,11 +6,11 @@
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  const index = require('./index-064e95c7.js');
9
- const certification_request = require('./certification_request-00bbfbc5.js');
10
- const download = require('./download-a97f4cb2.js');
11
- const l10n = require('./l10n-17c96aba.js');
12
- const crl = require('./crl-de4e196b.js');
13
- const miscellaneous = require('./miscellaneous-30c4aded.js');
9
+ const certification_request = require('./certification_request-b9ac73f2.js');
10
+ const download = require('./download-93f7b773.js');
11
+ const l10n = require('./l10n-ddc7cff9.js');
12
+ const crl = require('./crl-57727a07.js');
13
+ const miscellaneous = require('./miscellaneous-07184a47.js');
14
14
 
15
15
  /**
16
16
  * @license
@@ -514,7 +514,9 @@ const CsrViewer = class {
514
514
  constructor(hostRef) {
515
515
  index.registerInstance(this, hostRef);
516
516
  this.isDecodeInProcess = true;
517
+ // eslint-disable-next-line class-methods-use-this
517
518
  this.getAuthKeyIdParentLink = (value) => value;
519
+ // eslint-disable-next-line class-methods-use-this
518
520
  this.getAuthKeyIdSiblingsLink = (value) => value;
519
521
  this.getSubjectKeyIdChildrenLink = (value) => {
520
522
  var _a;
@@ -6,8 +6,8 @@
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  const index = require('./index-064e95c7.js');
9
- const l10n = require('./l10n-17c96aba.js');
10
- require('./download-a97f4cb2.js');
9
+ const l10n = require('./l10n-ddc7cff9.js');
10
+ require('./download-93f7b773.js');
11
11
 
12
12
  const buttonSplitCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:inline-block;vertical-align:top;position:relative;white-space:nowrap;font-size:0}.button_split_icon{width:7px;height:5px;display:inline-block;vertical-align:middle}.button_split_with_icon{width:25px;border-bottom-left-radius:0;border-top-left-radius:0}.button_split_with_icon.m_open::part(base):before{position:fixed;width:100%;height:100%;top:0;left:0;content:\"\"}.button_split_action{width:100%}.button_split_container{position:absolute;bottom:calc(100% + 1px);left:0;width:100%;border-radius:2px;-webkit-box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);z-index:1}.button_split>peculiar-button:first-of-type::part(base){border-top-right-radius:0;border-bottom-right-radius:0}.button_split>peculiar-button:last-of-type::part(base){border-top-left-radius:0;border-bottom-left-radius:0}.button_split>peculiar-button:not(:first-child){margin-left:-1px}";
13
13
 
@@ -6,11 +6,11 @@
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  const index = require('./index-064e95c7.js');
9
- const certification_request = require('./certification_request-00bbfbc5.js');
10
- require('./l10n-17c96aba.js');
11
- require('./download-a97f4cb2.js');
12
- const x509_certificate = require('./x509_certificate-2af9b990.js');
13
- const crl = require('./crl-de4e196b.js');
9
+ const certification_request = require('./certification_request-b9ac73f2.js');
10
+ require('./l10n-ddc7cff9.js');
11
+ require('./download-93f7b773.js');
12
+ const x509_certificate = require('./x509_certificate-da0fc87d.js');
13
+ const crl = require('./crl-57727a07.js');
14
14
 
15
15
  /**
16
16
  * @license
@@ -6,11 +6,11 @@
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  const index = require('./index-064e95c7.js');
9
- const x509_certificate = require('./x509_certificate-2af9b990.js');
10
- require('./certification_request-00bbfbc5.js');
11
- require('./download-a97f4cb2.js');
12
- require('./l10n-17c96aba.js');
13
- const miscellaneous = require('./miscellaneous-30c4aded.js');
9
+ const x509_certificate = require('./x509_certificate-da0fc87d.js');
10
+ require('./certification_request-b9ac73f2.js');
11
+ require('./download-93f7b773.js');
12
+ require('./l10n-ddc7cff9.js');
13
+ const miscellaneous = require('./miscellaneous-07184a47.js');
14
14
 
15
15
  const certificateViewerCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table table{margin-bottom:0}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";
16
16
 
@@ -6,10 +6,10 @@
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  const index = require('./index-064e95c7.js');
9
- const x509_certificate = require('./x509_certificate-2af9b990.js');
10
- const certification_request = require('./certification_request-00bbfbc5.js');
11
- require('./download-a97f4cb2.js');
12
- const l10n = require('./l10n-17c96aba.js');
9
+ const x509_certificate = require('./x509_certificate-da0fc87d.js');
10
+ const certification_request = require('./certification_request-b9ac73f2.js');
11
+ require('./download-93f7b773.js');
12
+ const l10n = require('./l10n-ddc7cff9.js');
13
13
 
14
14
  const certificatesViewerCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;min-width:280px;overflow:auto;position:relative;background:white;background:rgba(var(--pv-color-light-rgb), 1)}table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0}table thead{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07)}table tr td{vertical-align:middle}table tbody tr:not(.expanded_summary){cursor:pointer}table tr{border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table th{padding:15px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table td{padding:8px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table .col_issuer,table .col_name,table .col_public_key{width:16%}table .col_actions,table .col_tests{width:18%}table.m_extra .col_issuer,table.m_extra .col_name,table.m_extra .col_public_key{width:12%}table.m_extra .col_actions,table.m_extra .col_tests{width:17%}table tr.expanded td:not(:last-child){border-right-color:transparent}table tr.expanded td{border-bottom-color:transparent}.expanded{border-bottom-color:transparent;background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary td{vertical-align:top;padding:10px 20px 26px}@-webkit-keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}.modal_wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:auto;text-align:center;-webkit-animation:fadeIn 200ms;animation:fadeIn 200ms;padding:30px 10px}.modal_wrapper:before{display:inline-block;vertical-align:middle;width:0;height:100%;content:\"\"}.modal_backdrop{background:rgba(42, 49, 52, 0.5);background:rgba(var(--pv-color-dark-rgb), 0.5);z-index:-1;position:fixed;top:0;right:0;bottom:0;left:0}.modal_container{position:relative;display:inline-block;vertical-align:middle;width:100%;max-width:900px;text-align:left;border-radius:3px;overflow:hidden;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);height:100%}.modal_title{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);border-bottom-width:1px;border-bottom-style:solid;padding:20px 60px 16px 20px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:60px}.modal_content{height:calc(100% - 60px);overflow-y:auto}.modal_close{cursor:pointer;border:none;background-color:transparent;position:absolute;top:0;bottom:0;right:0;padding:0 12px;-webkit-transition:opacity 100ms;transition:opacity 100ms;outline:none}.modal_close:hover{opacity:0.6}.modal_close svg{fill:#2a3134;fill:rgba(var(--pv-color-dark-rgb), 1)}.button_table_action{margin:2px}.mobile_title{display:none}.status_wrapper{height:85px;text-align:center;pointer-events:none}.search_section{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);height:50px;padding:10px;border-width:1px 1px 0 1px;border-style:solid}.input_search{height:100%;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:0 14px;font-size:12px;outline:none;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.input_search::-webkit-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-moz-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search:-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.loading_container{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(42, 49, 52, 0.3);background:rgba(var(--pv-color-dark-rgb), 0.3);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.align_center{text-align:center}@media (hover: hover){table tbody tr:not(.expanded_summary):hover{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}}@media (max-width: 900px){table,tbody,tr,td{display:block}thead{display:none}tr{padding:0 15px;border-width:1px;border-style:solid}tr:not(:first-child){margin-top:-1px}tr:not(.expanded_summary) td:first-child{border:none !important}table td{padding-left:0;padding-right:0;border-width:1px 0 0 0 !important;border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr.expanded_summary td{padding:15px 0}.mobile_title{display:inline-block;width:90px;vertical-align:middle}.modal_title{padding:17px 60px 17px 15px}.content{display:inline-block;width:calc(100% - 90px);vertical-align:middle;text-align:left}.expanded_summary{border-top-color:transparent;padding-bottom:10px}.expanded_summary td:before{content:none}.status_wrapper{height:266px;display:table-cell}.search_section{height:60px;padding:15px}.align_center{text-align:inherit}}";
15
15
 
@@ -3,9 +3,9 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- const certification_request = require('./certification_request-00bbfbc5.js');
7
- const download = require('./download-a97f4cb2.js');
8
- const l10n = require('./l10n-17c96aba.js');
6
+ const certification_request = require('./certification_request-b9ac73f2.js');
7
+ const download = require('./download-93f7b773.js');
8
+ const l10n = require('./l10n-ddc7cff9.js');
9
9
 
10
10
  /**
11
11
  * @license
@@ -95,7 +95,7 @@ class X509Certificate extends certification_request.AsnData {
95
95
  try {
96
96
  const thumbprint = await certification_request.getCertificateThumbprint(algorithm, this.raw);
97
97
  if (thumbprint) {
98
- this.thumbprints[algorithm['name'] || algorithm] = download.build.Convert.ToHex(thumbprint);
98
+ this.thumbprints[algorithm] = download.build.Convert.ToHex(thumbprint);
99
99
  }
100
100
  }
101
101
  catch (error) {
@@ -11,16 +11,17 @@
11
11
  import { h } from '@stencil/core';
12
12
  import { Convert } from 'pvtsutils';
13
13
  import { getStringByOID } from '../../../utils';
14
- import { RowValue } from '../row';
14
+ import { RowValue, TableRowTable } from '../row';
15
15
  import { BasicExtension } from './basic_extension';
16
16
  export const BiometricSyntaxExtension = (props) => {
17
17
  const { extension } = props;
18
- return (h(BasicExtension, { extension: extension }, extension.value.map((data, arrayIndex) => ([
19
- h(RowValue, { name: `Biometric #${arrayIndex + 1}`, value: "" }),
20
- h(RowValue, { name: "OID", value: getStringByOID(data.typeOfBiometricData.biometricDataOid) }),
21
- h(RowValue, { name: "Type", value: data.typeOfBiometricData.predefinedBiometricType }),
22
- h(RowValue, { name: "Algorithm", value: getStringByOID(data.hashAlgorithm.algorithm) }),
23
- h(RowValue, { name: "Hash", value: Convert.ToHex(data.biometricDataHash.buffer), monospace: true }),
24
- h(RowValue, { name: "Source Uri", value: data.sourceDataUri }),
25
- ]))));
18
+ return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
19
+ h(RowValue, { name: "Biometrics:", value: "" }),
20
+ extension.value.map((data) => (h(TableRowTable, null,
21
+ h(RowValue, { name: "OID", value: getStringByOID(data.typeOfBiometricData.biometricDataOid) }),
22
+ h(RowValue, { name: "Type", value: data.typeOfBiometricData.predefinedBiometricType }),
23
+ h(RowValue, { name: "Algorithm", value: getStringByOID(data.hashAlgorithm.algorithm) }),
24
+ h(RowValue, { name: "Hash", value: Convert.ToHex(data.biometricDataHash.buffer), monospace: true }),
25
+ h(RowValue, { name: "Source Uri", value: data.sourceDataUri })))),
26
+ ])));
26
27
  };