@peculiar/certificates-viewer 1.17.1 → 1.17.4
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-3b72f5e6.js → download-1cf6585c.js} +119 -10
- package/dist/cjs/{l10n-91045362.js → l10n-f5651bb0.js} +1 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer_9.cjs.entry.js +2 -2
- 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/esm/{download-64de4f51.js → download-dea7e15e.js} +119 -10
- package/dist/esm/{l10n-25aa4c54.js → l10n-6ab04c66.js} +1 -1
- package/dist/esm/peculiar-attribute-certificate-viewer_9.entry.js +2 -2
- 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-64de4f51.js → download-dea7e15e.js} +150 -29
- package/dist/esm-es5/{l10n-25aa4c54.js → l10n-6ab04c66.js} +15 -10
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_9.entry.js +2 -2
- 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-b817b484.system.entry.js → p-150d1ad1.system.entry.js} +1 -1
- package/dist/peculiar/p-557d912f.system.js +1 -1
- package/dist/peculiar/p-590831d1.system.js +78 -0
- package/dist/peculiar/{p-a51bfdb4.system.entry.js → p-659feaec.system.entry.js} +1 -1
- package/dist/peculiar/{p-8b326ca9.js → p-6b2a8d50.js} +10 -10
- package/dist/peculiar/{p-15f040a7.system.entry.js → p-704409ca.system.entry.js} +1 -1
- package/dist/peculiar/{p-a2030e03.entry.js → p-73a580ff.entry.js} +1 -1
- package/dist/peculiar/{p-cffe0126.js → p-79bbe633.js} +1 -1
- package/dist/peculiar/{p-be2b0d6d.system.js → p-ee7045c5.system.js} +5 -5
- package/dist/peculiar/{p-8a166731.entry.js → p-f304a39b.entry.js} +1 -1
- package/dist/peculiar/{p-1e2b8c38.entry.js → p-f3062b63.entry.js} +1 -1
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/package.json +21 -21
- package/dist/peculiar/p-7741277f.system.js +0 -78
|
@@ -47,7 +47,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
import { c as createCommonjsModule, u as unwrapExports, b as commonjsGlobal, d as dateDiff } from './l10n-
|
|
50
|
+
import { c as createCommonjsModule, u as unwrapExports, b as commonjsGlobal, d as dateDiff } from './l10n-6ab04c66.js';
|
|
51
51
|
//**************************************************************************************
|
|
52
52
|
//**************************************************************************************
|
|
53
53
|
// noinspection FunctionWithMultipleReturnPointsJS
|
|
@@ -80,8 +80,8 @@ function bufferToHexCodes(inputBuffer, inputOffset, inputLength, insertSpace) {
|
|
|
80
80
|
if (inputLength === void 0) { inputLength = (inputBuffer.byteLength - inputOffset); }
|
|
81
81
|
if (insertSpace === void 0) { insertSpace = false; }
|
|
82
82
|
var result = "";
|
|
83
|
-
for (var _i = 0,
|
|
84
|
-
var item =
|
|
83
|
+
for (var _i = 0, _d = (new Uint8Array(inputBuffer, inputOffset, inputLength)); _i < _d.length; _i++) {
|
|
84
|
+
var item = _d[_i];
|
|
85
85
|
// noinspection ChainedFunctionCallJS
|
|
86
86
|
var str = item.toString(16).toUpperCase();
|
|
87
87
|
// noinspection ConstantOnRightSideOfComparisonJS, NonBlockStatementBodyJS
|
|
@@ -216,15 +216,15 @@ function utilConcatBuf() {
|
|
|
216
216
|
//endregion
|
|
217
217
|
//region Calculate output length
|
|
218
218
|
// noinspection NonBlockStatementBodyJS
|
|
219
|
-
for (var
|
|
220
|
-
var buffer = buffers_1[
|
|
219
|
+
for (var _d = 0, buffers_1 = buffers; _d < buffers_1.length; _d++) {
|
|
220
|
+
var buffer = buffers_1[_d];
|
|
221
221
|
outputLength += buffer.byteLength;
|
|
222
222
|
}
|
|
223
223
|
//endregion
|
|
224
224
|
var retBuf = new ArrayBuffer(outputLength);
|
|
225
225
|
var retView = new Uint8Array(retBuf);
|
|
226
|
-
for (var
|
|
227
|
-
var buffer = buffers_2[
|
|
226
|
+
for (var _e = 0, buffers_2 = buffers; _e < buffers_2.length; _e++) {
|
|
227
|
+
var buffer = buffers_2[_e];
|
|
228
228
|
// noinspection NestedFunctionCallJS
|
|
229
229
|
retView.set(new Uint8Array(buffer), prevLength);
|
|
230
230
|
prevLength += buffer.byteLength;
|
|
@@ -248,15 +248,15 @@ function utilConcatView() {
|
|
|
248
248
|
//endregion
|
|
249
249
|
//region Calculate output length
|
|
250
250
|
// noinspection NonBlockStatementBodyJS
|
|
251
|
-
for (var
|
|
252
|
-
var view = views_1[
|
|
251
|
+
for (var _d = 0, views_1 = views; _d < views_1.length; _d++) {
|
|
252
|
+
var view = views_1[_d];
|
|
253
253
|
outputLength += view.length;
|
|
254
254
|
}
|
|
255
255
|
//endregion
|
|
256
256
|
var retBuf = new ArrayBuffer(outputLength);
|
|
257
257
|
var retView = new Uint8Array(retBuf);
|
|
258
|
-
for (var
|
|
259
|
-
var view = views_2[
|
|
258
|
+
for (var _e = 0, views_2 = views; _e < views_2.length; _e++) {
|
|
259
|
+
var view = views_2[_e];
|
|
260
260
|
retView.set(view, prevLength);
|
|
261
261
|
prevLength += view.length;
|
|
262
262
|
}
|
|
@@ -395,6 +395,16 @@ function padNumber(inputNumber, fullLength) {
|
|
|
395
395
|
//**************************************************************************************
|
|
396
396
|
/* eslint-disable indent */
|
|
397
397
|
//**************************************************************************************
|
|
398
|
+
//region Other utility functions
|
|
399
|
+
//**************************************************************************************
|
|
400
|
+
function assertBigInt() {
|
|
401
|
+
if (typeof BigInt === "undefined") {
|
|
402
|
+
throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.");
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
//**************************************************************************************
|
|
406
|
+
//endregion
|
|
407
|
+
//**************************************************************************************
|
|
398
408
|
//region Declaration of global variables
|
|
399
409
|
//**************************************************************************************
|
|
400
410
|
var powers2 = [new Uint8Array([1])];
|
|
@@ -1484,8 +1494,8 @@ var Constructed = /** @class */ (function (_super) {
|
|
|
1484
1494
|
//**********************************************************************************
|
|
1485
1495
|
Constructed.prototype.toString = function () {
|
|
1486
1496
|
var values = [];
|
|
1487
|
-
for (var _i = 0,
|
|
1488
|
-
var value =
|
|
1497
|
+
for (var _i = 0, _d = this.valueBlock.value; _i < _d.length; _i++) {
|
|
1498
|
+
var value = _d[_i];
|
|
1489
1499
|
values.push(value.toString().split("\n").map(function (o) { return " " + o; }).join("\n"));
|
|
1490
1500
|
}
|
|
1491
1501
|
var blockName = this.idBlock.tagClass === 3
|
|
@@ -2630,6 +2640,7 @@ var Integer = /** @class */ (function (_super) {
|
|
|
2630
2640
|
};
|
|
2631
2641
|
//**********************************************************************************
|
|
2632
2642
|
Integer.prototype.toString = function () {
|
|
2643
|
+
assertBigInt();
|
|
2633
2644
|
var hex = bufferToHexCodes(this.valueBlock.valueHex);
|
|
2634
2645
|
var bigInt = BigInt("0x" + hex);
|
|
2635
2646
|
return this.constructor.blockName() + " : " + bigInt.toString();
|
|
@@ -2742,6 +2753,26 @@ var LocalSidValueBlock = /** @class */ (function (_super) {
|
|
|
2742
2753
|
}
|
|
2743
2754
|
return (inputOffset + this.blockLength);
|
|
2744
2755
|
};
|
|
2756
|
+
Object.defineProperty(LocalSidValueBlock.prototype, "valueBigInt", {
|
|
2757
|
+
//**********************************************************************************
|
|
2758
|
+
/**
|
|
2759
|
+
* Save a BigInt value immediately as an array of octects.
|
|
2760
|
+
*/
|
|
2761
|
+
set: function (value) {
|
|
2762
|
+
assertBigInt();
|
|
2763
|
+
var bits = BigInt(value).toString(2);
|
|
2764
|
+
while (bits.length % 7) {
|
|
2765
|
+
bits = '0' + bits;
|
|
2766
|
+
}
|
|
2767
|
+
var bytes = new Uint8Array(bits.length / 7);
|
|
2768
|
+
for (var i = 0; i < bytes.length; i++) {
|
|
2769
|
+
bytes[i] = parseInt(bits.slice(i * 7, i * 7 + 7), 2) + (i + 1 < bytes.length ? 0x80 : 0);
|
|
2770
|
+
}
|
|
2771
|
+
this.fromBER(bytes.buffer, 0, bytes.length);
|
|
2772
|
+
},
|
|
2773
|
+
enumerable: false,
|
|
2774
|
+
configurable: true
|
|
2775
|
+
});
|
|
2745
2776
|
//**********************************************************************************
|
|
2746
2777
|
/**
|
|
2747
2778
|
* Encoding of current ASN.1 block into ASN.1 encoded array (BER rules)
|
|
@@ -2934,9 +2965,16 @@ var LocalObjectIdentifierValueBlock = /** @class */ (function (_super) {
|
|
|
2934
2965
|
}
|
|
2935
2966
|
else {
|
|
2936
2967
|
var sidBlock = new LocalSidValueBlock();
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2968
|
+
if (sid > Number.MAX_SAFE_INTEGER) {
|
|
2969
|
+
assertBigInt();
|
|
2970
|
+
var sidValue = BigInt(sid);
|
|
2971
|
+
sidBlock.valueBigInt = sidValue;
|
|
2972
|
+
}
|
|
2973
|
+
else {
|
|
2974
|
+
sidBlock.valueDec = parseInt(sid, 10);
|
|
2975
|
+
if (isNaN(sidBlock.valueDec))
|
|
2976
|
+
return true;
|
|
2977
|
+
}
|
|
2940
2978
|
if (this.value.length === 0) {
|
|
2941
2979
|
sidBlock.isFirstSid = true;
|
|
2942
2980
|
flag = true;
|
|
@@ -5833,7 +5871,7 @@ var build = createCommonjsModule(function (module, exports) {
|
|
|
5833
5871
|
*/
|
|
5834
5872
|
(function (global, factory) {
|
|
5835
5873
|
factory(exports);
|
|
5836
|
-
}(commonjsGlobal, (function (exports) {
|
|
5874
|
+
})(commonjsGlobal, (function (exports) {
|
|
5837
5875
|
var BufferSourceConverter = /** @class */ (function () {
|
|
5838
5876
|
function BufferSourceConverter() {
|
|
5839
5877
|
}
|
|
@@ -5851,7 +5889,7 @@ var build = createCommonjsModule(function (module, exports) {
|
|
|
5851
5889
|
return this.toView(data, Uint8Array);
|
|
5852
5890
|
};
|
|
5853
5891
|
BufferSourceConverter.toView = function (data, type) {
|
|
5854
|
-
if (typeof Buffer !== "undefined" && Buffer.isBuffer(data)) {
|
|
5892
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.isBuffer === "function" && Buffer.isBuffer(data)) {
|
|
5855
5893
|
return new type(data.buffer, data.byteOffset, data.byteLength);
|
|
5856
5894
|
}
|
|
5857
5895
|
if (this.isArrayBuffer(data)) {
|
|
@@ -5870,6 +5908,19 @@ var build = createCommonjsModule(function (module, exports) {
|
|
|
5870
5908
|
return ArrayBuffer.isView(data)
|
|
5871
5909
|
|| (data && this.isArrayBuffer(data.buffer));
|
|
5872
5910
|
};
|
|
5911
|
+
BufferSourceConverter.isEqual = function (a, b) {
|
|
5912
|
+
var aView = BufferSourceConverter.toUint8Array(a);
|
|
5913
|
+
var bView = BufferSourceConverter.toUint8Array(b);
|
|
5914
|
+
if (aView.length !== bView.byteLength) {
|
|
5915
|
+
return false;
|
|
5916
|
+
}
|
|
5917
|
+
for (var i = 0; i < aView.length; i++) {
|
|
5918
|
+
if (aView[i] !== bView[i]) {
|
|
5919
|
+
return false;
|
|
5920
|
+
}
|
|
5921
|
+
}
|
|
5922
|
+
return true;
|
|
5923
|
+
};
|
|
5873
5924
|
return BufferSourceConverter;
|
|
5874
5925
|
}());
|
|
5875
5926
|
var Utf8Converter = /** @class */ (function () {
|
|
@@ -6174,7 +6225,7 @@ var build = createCommonjsModule(function (module, exports) {
|
|
|
6174
6225
|
exports.combine = combine;
|
|
6175
6226
|
exports.isEqual = isEqual;
|
|
6176
6227
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6177
|
-
}))
|
|
6228
|
+
}));
|
|
6178
6229
|
});
|
|
6179
6230
|
var index = unwrapExports(build);
|
|
6180
6231
|
var BitString$1 = /** @class */ (function () {
|
|
@@ -6331,10 +6382,10 @@ var AsnSchemaStorage = /** @class */ (function () {
|
|
|
6331
6382
|
return this.items.has(target);
|
|
6332
6383
|
};
|
|
6333
6384
|
AsnSchemaStorage.prototype.get = function (target) {
|
|
6334
|
-
var _a, _b, _c
|
|
6385
|
+
var _a, _b, _c;
|
|
6335
6386
|
var schema = this.items.get(target);
|
|
6336
6387
|
if (!schema) {
|
|
6337
|
-
throw new Error("Cannot get schema for '" + ((
|
|
6388
|
+
throw new Error("Cannot get schema for '" + ((_c = (_b = (_a = target === null || target === void 0 ? void 0 : target.prototype) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : target) + "' target");
|
|
6338
6389
|
}
|
|
6339
6390
|
return schema;
|
|
6340
6391
|
};
|
|
@@ -8137,6 +8188,29 @@ var CertificatePolicies = CertificatePolicies_1 = /** @class */ (function (_supe
|
|
|
8137
8188
|
CertificatePolicies = CertificatePolicies_1 = __decorate([
|
|
8138
8189
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: PolicyInformation })
|
|
8139
8190
|
], CertificatePolicies);
|
|
8191
|
+
var CRLNumber = /** @class */ (function () {
|
|
8192
|
+
function CRLNumber(value) {
|
|
8193
|
+
if (value === void 0) { value = 0; }
|
|
8194
|
+
this.value = value;
|
|
8195
|
+
}
|
|
8196
|
+
return CRLNumber;
|
|
8197
|
+
}());
|
|
8198
|
+
__decorate([
|
|
8199
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
8200
|
+
], CRLNumber.prototype, "value", void 0);
|
|
8201
|
+
CRLNumber = __decorate([
|
|
8202
|
+
AsnType({ type: AsnTypeTypes.Choice })
|
|
8203
|
+
], CRLNumber);
|
|
8204
|
+
var BaseCRLNumber = /** @class */ (function (_super) {
|
|
8205
|
+
__extends(BaseCRLNumber, _super);
|
|
8206
|
+
function BaseCRLNumber() {
|
|
8207
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
8208
|
+
}
|
|
8209
|
+
return BaseCRLNumber;
|
|
8210
|
+
}(CRLNumber));
|
|
8211
|
+
BaseCRLNumber = __decorate([
|
|
8212
|
+
AsnType({ type: AsnTypeTypes.Choice })
|
|
8213
|
+
], BaseCRLNumber);
|
|
8140
8214
|
var CRLDistributionPoints_1;
|
|
8141
8215
|
var id_ce_cRLDistributionPoints = id_ce + ".31";
|
|
8142
8216
|
var ReasonFlags;
|
|
@@ -8237,6 +8311,53 @@ var CRLDistributionPoints = CRLDistributionPoints_1 = /** @class */ (function (_
|
|
|
8237
8311
|
CRLDistributionPoints = CRLDistributionPoints_1 = __decorate([
|
|
8238
8312
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: DistributionPoint })
|
|
8239
8313
|
], CRLDistributionPoints);
|
|
8314
|
+
var FreshestCRL_1;
|
|
8315
|
+
var FreshestCRL = FreshestCRL_1 = /** @class */ (function (_super) {
|
|
8316
|
+
__extends(FreshestCRL, _super);
|
|
8317
|
+
function FreshestCRL(items) {
|
|
8318
|
+
var _this = _super.call(this, items) || this;
|
|
8319
|
+
Object.setPrototypeOf(_this, FreshestCRL_1.prototype);
|
|
8320
|
+
return _this;
|
|
8321
|
+
}
|
|
8322
|
+
return FreshestCRL;
|
|
8323
|
+
}(CRLDistributionPoints));
|
|
8324
|
+
FreshestCRL = FreshestCRL_1 = __decorate([
|
|
8325
|
+
AsnType({ type: AsnTypeTypes.Sequence, itemType: DistributionPoint })
|
|
8326
|
+
], FreshestCRL);
|
|
8327
|
+
var IssuingDistributionPoint = /** @class */ (function () {
|
|
8328
|
+
function IssuingDistributionPoint(params) {
|
|
8329
|
+
if (params === void 0) { params = {}; }
|
|
8330
|
+
this.onlyContainsUserCerts = IssuingDistributionPoint.ONLY;
|
|
8331
|
+
this.onlyContainsCACerts = IssuingDistributionPoint.ONLY;
|
|
8332
|
+
this.indirectCRL = IssuingDistributionPoint.ONLY;
|
|
8333
|
+
this.onlyContainsAttributeCerts = IssuingDistributionPoint.ONLY;
|
|
8334
|
+
Object.assign(this, params);
|
|
8335
|
+
}
|
|
8336
|
+
;
|
|
8337
|
+
;
|
|
8338
|
+
;
|
|
8339
|
+
;
|
|
8340
|
+
return IssuingDistributionPoint;
|
|
8341
|
+
}());
|
|
8342
|
+
IssuingDistributionPoint.ONLY = false;
|
|
8343
|
+
__decorate([
|
|
8344
|
+
AsnProp({ type: DistributionPointName, context: 0, optional: true })
|
|
8345
|
+
], IssuingDistributionPoint.prototype, "distributionPoint", void 0);
|
|
8346
|
+
__decorate([
|
|
8347
|
+
AsnProp({ type: AsnPropTypes.Boolean, context: 1, defaultValue: IssuingDistributionPoint.ONLY })
|
|
8348
|
+
], IssuingDistributionPoint.prototype, "onlyContainsUserCerts", void 0);
|
|
8349
|
+
__decorate([
|
|
8350
|
+
AsnProp({ type: AsnPropTypes.Boolean, context: 2, defaultValue: IssuingDistributionPoint.ONLY })
|
|
8351
|
+
], IssuingDistributionPoint.prototype, "onlyContainsCACerts", void 0);
|
|
8352
|
+
__decorate([
|
|
8353
|
+
AsnProp({ type: Reason, context: 3, optional: true })
|
|
8354
|
+
], IssuingDistributionPoint.prototype, "onlySomeReasons", void 0);
|
|
8355
|
+
__decorate([
|
|
8356
|
+
AsnProp({ type: AsnPropTypes.Boolean, context: 4, defaultValue: IssuingDistributionPoint.ONLY })
|
|
8357
|
+
], IssuingDistributionPoint.prototype, "indirectCRL", void 0);
|
|
8358
|
+
__decorate([
|
|
8359
|
+
AsnProp({ type: AsnPropTypes.Boolean, context: 5, defaultValue: IssuingDistributionPoint.ONLY })
|
|
8360
|
+
], IssuingDistributionPoint.prototype, "onlyContainsAttributeCerts", void 0);
|
|
8240
8361
|
var id_ce_cRLReasons = id_ce + ".21";
|
|
8241
8362
|
var CRLReasons;
|
|
8242
8363
|
(function (CRLReasons) {
|
|
@@ -12952,7 +13073,7 @@ var certificateRawToBuffer = function (raw) {
|
|
|
12952
13073
|
};
|
|
12953
13074
|
var getCertificateThumbprint = function (algorithm, data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
12954
13075
|
var crypto;
|
|
12955
|
-
return __generator(this, function (
|
|
13076
|
+
return __generator(this, function (_d) {
|
|
12956
13077
|
crypto = cryptoProvider.get();
|
|
12957
13078
|
return [2 /*return*/, crypto.subtle.digest(algorithm, data)];
|
|
12958
13079
|
});
|
|
@@ -12999,7 +13120,7 @@ var X509Certificate = /** @class */ (function (_super) {
|
|
|
12999
13120
|
};
|
|
13000
13121
|
Object.defineProperty(X509Certificate.prototype, "publicKey", {
|
|
13001
13122
|
get: function () {
|
|
13002
|
-
var
|
|
13123
|
+
var _d = this.asn.tbsCertificate.subjectPublicKeyInfo, subjectPublicKey = _d.subjectPublicKey, algorithm = _d.algorithm;
|
|
13003
13124
|
var params;
|
|
13004
13125
|
if (algorithm.algorithm === id_ecPublicKey && algorithm.parameters) {
|
|
13005
13126
|
params = AsnConvert.parse(algorithm.parameters, ECParameters);
|
|
@@ -13019,7 +13140,7 @@ var X509Certificate = /** @class */ (function (_super) {
|
|
|
13019
13140
|
});
|
|
13020
13141
|
Object.defineProperty(X509Certificate.prototype, "signature", {
|
|
13021
13142
|
get: function () {
|
|
13022
|
-
var
|
|
13143
|
+
var _d = this.asn, signatureValue = _d.signatureValue, signatureAlgorithm = _d.signatureAlgorithm;
|
|
13023
13144
|
return {
|
|
13024
13145
|
value: signatureValue,
|
|
13025
13146
|
algorithm: signatureAlgorithm.algorithm,
|
|
@@ -13041,17 +13162,17 @@ var X509Certificate = /** @class */ (function (_super) {
|
|
|
13041
13162
|
if (algorithm === void 0) { algorithm = 'SHA-1'; }
|
|
13042
13163
|
return __awaiter(this, void 0, void 0, function () {
|
|
13043
13164
|
var thumbprint, error_1;
|
|
13044
|
-
return __generator(this, function (
|
|
13045
|
-
switch (
|
|
13165
|
+
return __generator(this, function (_d) {
|
|
13166
|
+
switch (_d.label) {
|
|
13046
13167
|
case 0:
|
|
13047
|
-
|
|
13168
|
+
_d.trys.push([0, 2, , 3]);
|
|
13048
13169
|
return [4 /*yield*/, getCertificateThumbprint(algorithm, this.raw)];
|
|
13049
13170
|
case 1:
|
|
13050
|
-
thumbprint =
|
|
13171
|
+
thumbprint = _d.sent();
|
|
13051
13172
|
this.thumbprints[algorithm['name'] || algorithm] = index.Convert.ToHex(thumbprint);
|
|
13052
13173
|
return [3 /*break*/, 3];
|
|
13053
13174
|
case 2:
|
|
13054
|
-
error_1 =
|
|
13175
|
+
error_1 = _d.sent();
|
|
13055
13176
|
console.error('Error thumbprint get:', error_1);
|
|
13056
13177
|
return [3 /*break*/, 3];
|
|
13057
13178
|
case 3: return [2 /*return*/];
|
|
@@ -574,13 +574,18 @@ var history = Object.assign(browserHistory, {
|
|
|
574
574
|
});
|
|
575
575
|
var dayjs_min = createCommonjsModule(function (module, exports) {
|
|
576
576
|
!function (t, e) { module.exports = e(); }(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", $ = "Invalid Date", l = /^(\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("_") }, 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())
|
|
577
|
-
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; } },
|
|
578
|
-
return
|
|
579
|
-
|
|
577
|
+
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; } }, v = "en", D = {}; D[v] = M; var p = function (t) { return t instanceof _; }, S = function t(e, n, r) { var i; if (!e)
|
|
578
|
+
return v; if ("string" == typeof e) {
|
|
579
|
+
var s = e.toLowerCase();
|
|
580
|
+
D[s] && (i = s), n && (D[s] = n, i = s);
|
|
581
|
+
var u = e.split("-");
|
|
582
|
+
if (!i && u.length > 1)
|
|
583
|
+
return t(u[0]);
|
|
584
|
+
}
|
|
580
585
|
else {
|
|
581
|
-
var
|
|
582
|
-
|
|
583
|
-
} return !
|
|
586
|
+
var a = e.name;
|
|
587
|
+
D[a] = e, i = a;
|
|
588
|
+
} return !r && i && (v = i), i || !r && v; }, w = function (t, e) { if (p(t))
|
|
584
589
|
return t.clone(); var n = "object" == typeof e ? e : {}; return n.date = t, n.args = arguments, new _(n); }, O = g; 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)
|
|
585
590
|
return new Date(NaN); if (O.u(e))
|
|
586
591
|
return new Date; if (e instanceof Date)
|
|
@@ -594,8 +599,8 @@ var dayjs_min = createCommonjsModule(function (module, exports) {
|
|
|
594
599
|
case c: return r ? $(1, 0) : $(31, 11);
|
|
595
600
|
case f: return r ? $(1, M) : $(0, M + 1);
|
|
596
601
|
case o:
|
|
597
|
-
var
|
|
598
|
-
return $(r ? m -
|
|
602
|
+
var v = this.$locale().weekStart || 0, D = (y < v ? y + 7 : y) - v;
|
|
603
|
+
return $(r ? m - D : m + (6 - D), M);
|
|
599
604
|
case a:
|
|
600
605
|
case d: return l(g + "Hours", 0);
|
|
601
606
|
case u: return l(g + "Minutes", 1);
|
|
@@ -612,8 +617,8 @@ var dayjs_min = createCommonjsModule(function (module, exports) {
|
|
|
612
617
|
return this.set(c, this.$y + r); if (l === a)
|
|
613
618
|
return y(1); if (l === o)
|
|
614
619
|
return y(7); var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[l] || 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())
|
|
615
|
-
return n.invalidDate || $; 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].substr(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; }, l = { 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 || l[t] || i.replace(":", ""); })); }, m.utcOffset = function () { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); }, m.diff = function (r, d, $) { var l, y = O.p(d), M = w(r), m = (M.utcOffset() - this.utcOffset()) * e, g = this - M,
|
|
616
|
-
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; }(), b = _.prototype; return w.prototype = b, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach((function (t) { b[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 = v
|
|
620
|
+
return n.invalidDate || $; 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].substr(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; }, l = { 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 || l[t] || i.replace(":", ""); })); }, m.utcOffset = function () { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); }, m.diff = function (r, d, $) { var l, y = O.p(d), M = w(r), m = (M.utcOffset() - this.utcOffset()) * e, g = this - M, v = O.m(this, M); return v = (l = {}, l[c] = v / 12, l[f] = v, l[h] = v / 3, l[o] = (g - m) / 6048e5, l[a] = (g - m) / 864e5, l[u] = g / n, l[s] = g / e, l[i] = g / t, l)[y] || g, $ ? v : O.a(v); }, m.daysInMonth = function () { return this.endOf(f).$D; }, m.$locale = function () { return D[this.$L]; }, m.locale = function (t, e) { if (!t)
|
|
621
|
+
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; }(), b = _.prototype; return w.prototype = b, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach((function (t) { b[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[v], w.Ls = D, w.p = {}, w; }));
|
|
617
622
|
});
|
|
618
623
|
/**
|
|
619
624
|
* @license
|
|
@@ -48,8 +48,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
import { h, r as registerInstance, H as Host, c as createEvent } from './index-5ef692cc.js';
|
|
51
|
-
import { A as AsnData, a as Attribute$1, i as index, b as id_pkcs9_at_extensionRequest, c as AsnParser, E as ExtensionRequest, d as Extension, e as AsnConvert, f as id_pkcs9_at_unstructuredName, U as UnstructuredName, g as id_pkcs9_at_challengePassword, C as ChallengePassword, h as id_ValuationRanking, V as ValuationRanking, j as id_InsuranceValue, I as InsuranceValue, k as id_WebGDPR, W as WebGDPR, l as id_ActivityDescription, m as ActivityDescription, n as id_TypeRelationship, T as TypeRelationship, o as id_DomainNameTechnicalOperator, D as DomainNameTechnicalOperator, p as id_DomainNameOwner, q as DomainNameOwner, r as id_DomainNameLegalRepresentative, s as DomainNameLegalRepresentative, t as id_DomainNameBeneficiary, u as DomainNameBeneficiary, v as certificateRawToBuffer, w as AttributeCertificate, x as getCertificateThumbprint, y as hexFormat, z as base64Format, B as CertificationRequest, N as Name, F as id_ecPublicKey, G as ECParameters, H as id_rsaEncryption, R as RSAPublicKey, O as OIDs, J as Name$1, K as OtherName, L as DisplayText, M as EDIPartyName, P as UserNotice, Q as KeyUsage, S as BasicConstraints, X as ExtendedKeyUsage, Y as SubjectKeyIdentifier, Z as AuthorityKeyIdentifier, _ as CRLDistributionPoints, $ as AuthorityInfoAccessSyntax, a0 as SubjectAlternativeName, a1 as CertificatePolicies, a2 as CertificateTransparency, a3 as NameConstraints, a4 as CertificateTemplate, a5 as EnrollCertTypeChoice, a6 as CaVersion, a7 as QCStatements, a8 as NetscapeComment, a9 as NetscapeCertType, aa as LeiRole, ab as LeiChoice, ac as Timestamp, ad as ArchiveRevInfo, ae as CRLReason, af as SubjectDirectoryAttributes, ag as PrivateKeyUsagePeriod, ah as EntrustVersionInfo, ai as BiometricSyntax, aj as LogotypeExtn, ak as TNAuthorizationList, al as Download, am as isPem, an as isX509Pem, ao as isPkcs10Pem, ap as isX509AttributePem, aq as X509Certificate } from './download-
|
|
52
|
-
import { d as dateDiff, l as l10n, a as dateShort, h as history } from './l10n-
|
|
51
|
+
import { A as AsnData, a as Attribute$1, i as index, b as id_pkcs9_at_extensionRequest, c as AsnParser, E as ExtensionRequest, d as Extension, e as AsnConvert, f as id_pkcs9_at_unstructuredName, U as UnstructuredName, g as id_pkcs9_at_challengePassword, C as ChallengePassword, h as id_ValuationRanking, V as ValuationRanking, j as id_InsuranceValue, I as InsuranceValue, k as id_WebGDPR, W as WebGDPR, l as id_ActivityDescription, m as ActivityDescription, n as id_TypeRelationship, T as TypeRelationship, o as id_DomainNameTechnicalOperator, D as DomainNameTechnicalOperator, p as id_DomainNameOwner, q as DomainNameOwner, r as id_DomainNameLegalRepresentative, s as DomainNameLegalRepresentative, t as id_DomainNameBeneficiary, u as DomainNameBeneficiary, v as certificateRawToBuffer, w as AttributeCertificate, x as getCertificateThumbprint, y as hexFormat, z as base64Format, B as CertificationRequest, N as Name, F as id_ecPublicKey, G as ECParameters, H as id_rsaEncryption, R as RSAPublicKey, O as OIDs, J as Name$1, K as OtherName, L as DisplayText, M as EDIPartyName, P as UserNotice, Q as KeyUsage, S as BasicConstraints, X as ExtendedKeyUsage, Y as SubjectKeyIdentifier, Z as AuthorityKeyIdentifier, _ as CRLDistributionPoints, $ as AuthorityInfoAccessSyntax, a0 as SubjectAlternativeName, a1 as CertificatePolicies, a2 as CertificateTransparency, a3 as NameConstraints, a4 as CertificateTemplate, a5 as EnrollCertTypeChoice, a6 as CaVersion, a7 as QCStatements, a8 as NetscapeComment, a9 as NetscapeCertType, aa as LeiRole, ab as LeiChoice, ac as Timestamp, ad as ArchiveRevInfo, ae as CRLReason, af as SubjectDirectoryAttributes, ag as PrivateKeyUsagePeriod, ah as EntrustVersionInfo, ai as BiometricSyntax, aj as LogotypeExtn, ak as TNAuthorizationList, al as Download, am as isPem, an as isX509Pem, ao as isPkcs10Pem, ap as isX509AttributePem, aq as X509Certificate } from './download-dea7e15e.js';
|
|
52
|
+
import { d as dateDiff, l as l10n, a as dateShort, h as history } from './l10n-6ab04c66.js';
|
|
53
53
|
/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-5ef692cc.js';
|
|
2
|
-
import { l as l10n, a as dateShort } from './l10n-
|
|
2
|
+
import { l as l10n, a as dateShort } from './l10n-6ab04c66.js';
|
|
3
3
|
var certificateSummaryCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%}td{border:none;padding:0}table{width:100%;border-spacing:0;border-collapse:collapse}td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td:first-child{width:130px;padding-right:10px}table td:last-child{width:calc(100% - 130px)}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{width:100%}}";
|
|
4
4
|
var CertificateSummary = /** @class */ (function () {
|
|
5
5
|
function CertificateSummary(hostRef) {
|
|
@@ -35,8 +35,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-5ef692cc.js';
|
|
38
|
-
import { aq as X509Certificate, al as Download, O as OIDs } from './download-
|
|
39
|
-
import { l as l10n } from './l10n-
|
|
38
|
+
import { aq as X509Certificate, al as Download, O as OIDs } from './download-dea7e15e.js';
|
|
39
|
+
import { l as l10n } from './l10n-6ab04c66.js';
|
|
40
40
|
var 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::-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}}";
|
|
41
41
|
var CertificatesViewer = /** @class */ (function () {
|
|
42
42
|
function class_1(hostRef) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-9f815f76.system.js","./p-
|
|
1
|
+
System.register(["./p-9f815f76.system.js","./p-ee7045c5.system.js"],(function(t){"use strict";var r,e,i,s,o,a;return{setters:[function(t){r=t.r;e=t.h;i=t.H;s=t.g},function(t){o=t.l;a=t.a}],execute:function(){var n=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%}td{border:none;padding:0}table{width:100%;border-spacing:0;border-collapse:collapse}td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td:first-child{width:130px;padding-right:10px}table td:last-child{width:calc(100% - 130px)}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{width:100%}}";var h=t("peculiar_certificate_summary",function(){function t(t){r(this,t);this.showIssuer=true}t.prototype.renderRow=function(t,r,i){return e("tr",null,e("td",null,e("peculiar-typography",{color:"grey_5"},t,":")),e("td",null,e("peculiar-typography",{class:"meta_value",monospace:i},r)))};t.prototype.render=function(){return e(i,null,e("table",null,e("tbody",null,this.renderRow(o.getString("subjectName"),this.certificate.subjectToString()),this.showIssuer&&this.renderRow(o.getString("issuerName"),this.certificate.issuerToString()),this.renderRow(o.getString("serialNumber"),this.certificate.serialNumber,true),this.renderRow(o.getString("version"),this.certificate.version),this.renderRow(o.getString("validity"),this.certificate.validity),this.renderRow(o.getString("issued"),a(this.certificate.notBefore)),this.renderRow(o.getString("expired"),a(this.certificate.notAfter)))))};return t}());h.style=n;var c=":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%}@-webkit-keyframes circular-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes circular-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes circular-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:100, 200;stroke-dashoffset:-15}to{stroke-dasharray:100, 200;stroke-dashoffset:-120}}@keyframes circular-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:100, 200;stroke-dashoffset:-15}to{stroke-dasharray:100, 200;stroke-dashoffset:-120}}.circle_progress{margin:0 auto}.circle_progress_svg{-webkit-animation:circular-rotate 1.4s linear infinite;animation:circular-rotate 1.4s linear infinite}.circle_progress_circle{stroke-linecap:round;-webkit-animation:circular-dash 1.4s ease-in-out infinite;animation:circular-dash 1.4s ease-in-out infinite;stroke-dasharray:80, 200;stroke-dashoffset:0;stroke:#3584f7;stroke:rgba(var(--pv-color-primary-rgb), 1)}.circle_progress_backdrop{stroke:#d1d5d9;stroke:rgba(var(--pv-color-grey_3-rgb), 1)}";var l=t("peculiar_circular_progress",function(){function t(t){r(this,t);this.size=24;this.width=4;this.box=50}t.prototype.render=function(){return e(i,null,e("div",{class:"circle_progress",style:{width:this.size+"px",height:this.size+"px"}},e("svg",{class:"circle_progress_svg",viewBox:"0 0 "+this.box+" "+this.box},e("circle",{class:"circle_progress_backdrop",cx:this.box/2,cy:this.box/2,r:this.box/2-5,fill:"none",style:{strokeWidth:this.width+"px"}}),e("circle",{class:"circle_progress_circle",cx:this.box/2,cy:this.box/2,r:this.box/2-5,fill:"none",style:{strokeWidth:this.width+"px"}}))))};return t}());l.style=c;var d=":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}::slotted(mark){background-color:rgba(247, 168, 49, 0.4);background-color:rgba(var(--pv-color-attention-rgb), 0.4)}";var g=t("peculiar_highlight_words",function(){function t(t){r(this,t);this.tag="mark"}t.prototype.componentDidLoad=function(){this.handleHighlightSearch()};t.prototype.componentDidUpdate=function(){this.handleHighlightSearch()};t.prototype.handleHighlightSearch=function(){var t=this.resetHighlightSearch(this.host.innerHTML);var r=t;if(this.search){var e=new RegExp("("+this.search+")","gi");r=t.replace(e,"<"+this.tag+">$1</"+this.tag+">")}this.host.innerHTML=r};t.prototype.resetHighlightSearch=function(t){var r=new RegExp("</?"+this.tag+">","g");return t.replace(r,"")};t.prototype.render=function(){return e(i,null,e("slot",null))};Object.defineProperty(t.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());g.style=d}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-9f815f76.system.js","./p-aa0a9b36.system.js"],(function(){"use strict";var e,i;return{setters:[function(i){e=i.b},function(e){i=e.p}],execute:function(){i().then((function(i){return e([["p-
|
|
1
|
+
System.register(["./p-9f815f76.system.js","./p-aa0a9b36.system.js"],(function(){"use strict";var e,i;return{setters:[function(i){e=i.b},function(e){i=e.p}],execute:function(){i().then((function(i){return e([["p-659feaec.system",[[1,"peculiar-certificate-decoder",{certificateExample:[1,"certificate-example"],certificateDecoded:[32]}],[1,"peculiar-attribute-certificate-viewer",{certificate:[1],download:[4],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],isDecodeInProcess:[32]}],[1,"peculiar-csr-viewer",{certificate:[513],download:[4],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],view:[513],isDecodeInProcess:[32]}],[1,"peculiar-certificate-viewer",{certificate:[513],download:[516],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],issuerDnLink:[513,"issuer-dn-link"],view:[513],isDecodeInProcess:[32]}],[1,"peculiar-button-split",{onClick:[16],fill:[1],actions:[16],open:[32]}],[1,"peculiar-text-hider",{opened:[1540]},[[0,"textExpand","textExpandHandler"]]],[1,"peculiar-link",{href:[513],type:[513]}],[1,"peculiar-typography",{type:[513],color:[1],align:[1],ellipsis:[4],monospace:[4]}],[1,"peculiar-button",{fill:[1],disabled:[516],href:[1],target:[1],onClick:[16]}]]],["p-150d1ad1.system",[[1,"peculiar-certificate-summary",{certificate:[16],showIssuer:[4,"show-issuer"]}],[1,"peculiar-circular-progress",{size:[2],width:[2]}],[1,"peculiar-highlight-words",{search:[1]}]]],["p-704409ca.system",[[1,"peculiar-certificates-viewer",{certificates:[16],filterWithSearch:[4,"filter-with-search"],highlightWithSearch:[4,"highlight-with-search"],search:[32],certificatesDecoded:[32],expandedRow:[32],certificateSelectedForDetails:[32],isDecodeInProcess:[32]}]]]],i)}))}}}));
|