@learncard/react 2.9.29 → 2.10.1
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/BadgeThumbnailImg-02df88f9.js +55 -0
- package/dist/cjs/BadgeThumbnailImg-02df88f9.js.map +1 -0
- package/dist/cjs/{BoostGenericCard-310cd633.js → BoostGenericCard-f2f66b1c.js} +6 -5
- package/dist/cjs/BoostGenericCard-f2f66b1c.js.map +1 -0
- package/dist/cjs/{BoostSmallCard-4e200046.js → BoostSmallCard-ece8f97e.js} +4 -3
- package/dist/cjs/BoostSmallCard-ece8f97e.js.map +1 -0
- package/dist/cjs/{CertificateDisplayCard-50eb6485.js → CertificateDisplayCard-ca865915.js} +51 -13
- package/dist/cjs/CertificateDisplayCard-ca865915.js.map +1 -0
- package/dist/cjs/{GenericCard-2b20ab4b.js → GenericCard-cdc6eede.js} +3 -2
- package/dist/cjs/GenericCard-cdc6eede.js.map +1 -0
- package/dist/cjs/{IDDisplayIcon-4b6ce62f.js → IDDisplayIcon-922a5fcf.js} +14 -14
- package/dist/cjs/IDDisplayIcon-922a5fcf.js.map +1 -0
- package/dist/cjs/{MeritBadgeDisplayCard-7535f16d.js → MeritBadgeDisplayCard-c2f39f1f.js} +52 -13
- package/dist/cjs/MeritBadgeDisplayCard-c2f39f1f.js.map +1 -0
- package/dist/cjs/{MeritBadgeSkillsCount-8307d493.js → MeritBadgeSkillsCount-1120813b.js} +2 -2
- package/dist/cjs/{MeritBadgeSkillsCount-8307d493.js.map → MeritBadgeSkillsCount-1120813b.js.map} +1 -1
- package/dist/cjs/{NotificationBoostCard-80dbf681.js → NotificationBoostCard-3ed9ec86.js} +2 -2
- package/dist/cjs/{NotificationBoostCard-80dbf681.js.map → NotificationBoostCard-3ed9ec86.js.map} +1 -1
- package/dist/cjs/{UserProfilePicture-22944d8f.js → UserProfilePicture-80675455.js} +8 -3
- package/dist/cjs/UserProfilePicture-80675455.js.map +1 -0
- package/dist/cjs/{VCCard-8b62170d.js → VCCard-f0735377.js} +3 -3
- package/dist/cjs/{VCCard-8b62170d.js.map → VCCard-f0735377.js.map} +1 -1
- package/dist/cjs/{VCDisplayBackFace-f220ad7d.js → VCDisplayBackFace-be7d1e31.js} +3 -3
- package/dist/cjs/{VCDisplayBackFace-f220ad7d.js.map → VCDisplayBackFace-be7d1e31.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard-b3f9ae8d.js → VCDisplayCard-e50b4801.js} +4 -4
- package/dist/cjs/{VCDisplayCard-b3f9ae8d.js.map → VCDisplayCard-e50b4801.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard2-b6bf45cf.js → VCDisplayCard2-e14da0aa.js} +94 -39
- package/dist/cjs/VCDisplayCard2-e14da0aa.js.map +1 -0
- package/dist/cjs/{VCVerificationPill-ae3e2fbb.js → VCVerificationPill-93260164.js} +2 -2
- package/dist/cjs/{VCVerificationPill-ae3e2fbb.js.map → VCVerificationPill-93260164.js.map} +1 -1
- package/dist/cjs/{VerifierStateBadgeAndText-d3d4e6a9.js → VerifierStateBadgeAndText-db71ebb2.js} +383 -610
- package/dist/cjs/VerifierStateBadgeAndText-db71ebb2.js.map +1 -0
- package/dist/cjs/{credential.helpers-4e3cf40c.js → credential.helpers-a11b14f1.js} +2 -2
- package/dist/cjs/{credential.helpers-4e3cf40c.js.map → credential.helpers-a11b14f1.js.map} +1 -1
- package/dist/cjs/index.js +187 -30
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index10.js +2 -27
- package/dist/cjs/index10.js.map +1 -1
- package/dist/cjs/index11.js +31 -2
- package/dist/cjs/index11.js.map +1 -1
- package/dist/cjs/index12.js +2 -46
- package/dist/cjs/index12.js.map +1 -1
- package/dist/cjs/index13.js +5 -175
- package/dist/cjs/index13.js.map +1 -1
- package/dist/cjs/index14.js +215 -1
- package/dist/cjs/index14.js.map +1 -1
- package/dist/cjs/index15.js +3 -21
- package/dist/cjs/index15.js.map +1 -1
- package/dist/cjs/index16.js +21 -3
- package/dist/cjs/index16.js.map +1 -1
- package/dist/cjs/index17.js +3 -5
- package/dist/cjs/index17.js.map +1 -1
- package/dist/cjs/index18.js +5 -20
- package/dist/cjs/index18.js.map +1 -1
- package/dist/cjs/index19.js +20 -3
- package/dist/cjs/index19.js.map +1 -1
- package/dist/cjs/index20.js +3 -2
- package/dist/cjs/index20.js.map +1 -1
- package/dist/cjs/index21.js +2 -28
- package/dist/cjs/index21.js.map +1 -1
- package/dist/cjs/index22.js +28 -3
- package/dist/cjs/index22.js.map +1 -1
- package/dist/cjs/index23.js +3 -10
- package/dist/cjs/index23.js.map +1 -1
- package/dist/cjs/index24.js +5 -7
- package/dist/cjs/index24.js.map +1 -1
- package/dist/cjs/index25.js +9 -3
- package/dist/cjs/index25.js.map +1 -1
- package/dist/cjs/index26.js +3 -5
- package/dist/cjs/index26.js.map +1 -1
- package/dist/cjs/index27.js +8 -3
- package/dist/cjs/index27.js.map +1 -1
- package/dist/cjs/index28.js +3 -28
- package/dist/cjs/index28.js.map +1 -1
- package/dist/cjs/index29.js +4 -28
- package/dist/cjs/index29.js.map +1 -1
- package/dist/cjs/index3.js +0 -58
- package/dist/cjs/index3.js.map +1 -1
- package/dist/cjs/index30.js +52 -2
- package/dist/cjs/index30.js.map +1 -1
- package/dist/cjs/index31.js +2 -3
- package/dist/cjs/index31.js.map +1 -1
- package/dist/cjs/index32.js +3 -3
- package/dist/cjs/index33.js +3 -29
- package/dist/cjs/index33.js.map +1 -1
- package/dist/cjs/index34.js +29 -3
- package/dist/cjs/index34.js.map +1 -1
- package/dist/cjs/index35.js +3 -3
- package/dist/cjs/index36.js +3 -27
- package/dist/cjs/index36.js.map +1 -1
- package/dist/cjs/index37.js +27 -2
- package/dist/cjs/index37.js.map +1 -1
- package/dist/cjs/index38.js +2 -42
- package/dist/cjs/index38.js.map +1 -1
- package/dist/cjs/index39.js +34 -9
- package/dist/cjs/index39.js.map +1 -1
- package/dist/cjs/index4.js +11 -6
- package/dist/cjs/index4.js.map +1 -1
- package/dist/cjs/index40.js +9 -13
- package/dist/cjs/index40.js.map +1 -1
- package/dist/cjs/index41.js +15 -28
- package/dist/cjs/index41.js.map +1 -1
- package/dist/cjs/index42.js +37 -3
- package/dist/cjs/index42.js.map +1 -1
- package/dist/cjs/index43.js +3 -7
- package/dist/cjs/index43.js.map +1 -1
- package/dist/cjs/index44.js +4 -6
- package/dist/cjs/index44.js.map +1 -1
- package/dist/cjs/index45.js +6 -6
- package/dist/cjs/index46.js +15 -0
- package/dist/cjs/index46.js.map +1 -0
- package/dist/cjs/index5.js +51 -2
- package/dist/cjs/index5.js.map +1 -1
- package/dist/cjs/index6.js +2 -29
- package/dist/cjs/index6.js.map +1 -1
- package/dist/cjs/index7.js +27 -27
- package/dist/cjs/index8.js +4 -5
- package/dist/cjs/index8.js.map +1 -1
- package/dist/cjs/index9.js +28 -5
- package/dist/cjs/index9.js.map +1 -1
- package/dist/cjs/{types.esm-674d5934.js → types.esm-4d399274.js} +11 -4
- package/dist/cjs/types.esm-4d399274.js.map +1 -0
- package/dist/esm/BadgeThumbnailImg-7d436367.js +49 -0
- package/dist/esm/BadgeThumbnailImg-7d436367.js.map +1 -0
- package/dist/esm/{BoostGenericCard-956474fc.js → BoostGenericCard-fbf76c2c.js} +6 -5
- package/dist/esm/BoostGenericCard-fbf76c2c.js.map +1 -0
- package/dist/esm/{BoostSmallCard-6d63f0b3.js → BoostSmallCard-a73b6800.js} +4 -3
- package/dist/esm/BoostSmallCard-a73b6800.js.map +1 -0
- package/dist/esm/{CertificateDisplayCard-fdc1ea6c.js → CertificateDisplayCard-8f3f43b4.js} +51 -13
- package/dist/esm/CertificateDisplayCard-8f3f43b4.js.map +1 -0
- package/dist/esm/{GenericCard-24648e62.js → GenericCard-a469f2f0.js} +3 -2
- package/dist/esm/GenericCard-a469f2f0.js.map +1 -0
- package/dist/esm/{IDDisplayIcon-d87174fd.js → IDDisplayIcon-f6993140.js} +14 -14
- package/dist/esm/IDDisplayIcon-f6993140.js.map +1 -0
- package/dist/esm/{MeritBadgeDisplayCard-4c768f06.js → MeritBadgeDisplayCard-1b080902.js} +52 -13
- package/dist/esm/MeritBadgeDisplayCard-1b080902.js.map +1 -0
- package/dist/esm/{MeritBadgeSkillsCount-e906d83f.js → MeritBadgeSkillsCount-7871d74f.js} +2 -2
- package/dist/esm/{MeritBadgeSkillsCount-e906d83f.js.map → MeritBadgeSkillsCount-7871d74f.js.map} +1 -1
- package/dist/esm/{NotificationBoostCard-fdfa0cf4.js → NotificationBoostCard-cfebc09e.js} +2 -2
- package/dist/esm/{NotificationBoostCard-fdfa0cf4.js.map → NotificationBoostCard-cfebc09e.js.map} +1 -1
- package/dist/esm/{UserProfilePicture-7e131f5d.js → UserProfilePicture-50c34186.js} +8 -3
- package/dist/esm/UserProfilePicture-50c34186.js.map +1 -0
- package/dist/esm/{VCCard-6c25c2d5.js → VCCard-dcf5ef3d.js} +3 -3
- package/dist/esm/{VCCard-6c25c2d5.js.map → VCCard-dcf5ef3d.js.map} +1 -1
- package/dist/esm/{VCDisplayBackFace-ce80f06d.js → VCDisplayBackFace-fbb3235f.js} +3 -3
- package/dist/esm/{VCDisplayBackFace-ce80f06d.js.map → VCDisplayBackFace-fbb3235f.js.map} +1 -1
- package/dist/esm/{VCDisplayCard-a40c4c7a.js → VCDisplayCard-8463d18d.js} +4 -4
- package/dist/esm/{VCDisplayCard-a40c4c7a.js.map → VCDisplayCard-8463d18d.js.map} +1 -1
- package/dist/esm/{VCDisplayCard2-f0bf0f87.js → VCDisplayCard2-5003e0c8.js} +93 -38
- package/dist/esm/VCDisplayCard2-5003e0c8.js.map +1 -0
- package/dist/esm/{VCVerificationPill-8f82b17c.js → VCVerificationPill-a412a211.js} +2 -2
- package/dist/esm/{VCVerificationPill-8f82b17c.js.map → VCVerificationPill-a412a211.js.map} +1 -1
- package/dist/esm/{VerifierStateBadgeAndText-2bddbc91.js → VerifierStateBadgeAndText-f878973e.js} +380 -612
- package/dist/esm/VerifierStateBadgeAndText-f878973e.js.map +1 -0
- package/dist/esm/{credential.helpers-bd29e893.js → credential.helpers-108b5fb6.js} +2 -2
- package/dist/esm/{credential.helpers-bd29e893.js.map → credential.helpers-108b5fb6.js.map} +1 -1
- package/dist/esm/index.js +177 -29
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index10.js +1 -26
- package/dist/esm/index10.js.map +1 -1
- package/dist/esm/index11.js +30 -1
- package/dist/esm/index11.js.map +1 -1
- package/dist/esm/index12.js +1 -45
- package/dist/esm/index12.js.map +1 -1
- package/dist/esm/index13.js +5 -94
- package/dist/esm/index13.js.map +1 -1
- package/dist/esm/index14.js +135 -1
- package/dist/esm/index14.js.map +1 -1
- package/dist/esm/index15.js +2 -19
- package/dist/esm/index15.js.map +1 -1
- package/dist/esm/index16.js +19 -2
- package/dist/esm/index16.js.map +1 -1
- package/dist/esm/index17.js +2 -4
- package/dist/esm/index17.js.map +1 -1
- package/dist/esm/index18.js +4 -19
- package/dist/esm/index18.js.map +1 -1
- package/dist/esm/index19.js +19 -2
- package/dist/esm/index19.js.map +1 -1
- package/dist/esm/index20.js +2 -1
- package/dist/esm/index20.js.map +1 -1
- package/dist/esm/index21.js +1 -24
- package/dist/esm/index21.js.map +1 -1
- package/dist/esm/index22.js +24 -2
- package/dist/esm/index22.js.map +1 -1
- package/dist/esm/index23.js +2 -8
- package/dist/esm/index23.js.map +1 -1
- package/dist/esm/index24.js +3 -6
- package/dist/esm/index24.js.map +1 -1
- package/dist/esm/index25.js +8 -2
- package/dist/esm/index25.js.map +1 -1
- package/dist/esm/index26.js +2 -3
- package/dist/esm/index26.js.map +1 -1
- package/dist/esm/index27.js +6 -2
- package/dist/esm/index27.js.map +1 -1
- package/dist/esm/index28.js +2 -26
- package/dist/esm/index28.js.map +1 -1
- package/dist/esm/index29.js +2 -23
- package/dist/esm/index29.js.map +1 -1
- package/dist/esm/index3.js +0 -53
- package/dist/esm/index3.js.map +1 -1
- package/dist/esm/index30.js +47 -1
- package/dist/esm/index30.js.map +1 -1
- package/dist/esm/index31.js +1 -1
- package/dist/esm/index32.js +1 -2
- package/dist/esm/index32.js.map +1 -1
- package/dist/esm/index33.js +2 -28
- package/dist/esm/index33.js.map +1 -1
- package/dist/esm/index34.js +28 -2
- package/dist/esm/index34.js.map +1 -1
- package/dist/esm/index35.js +2 -2
- package/dist/esm/index36.js +2 -9
- package/dist/esm/index36.js.map +1 -1
- package/dist/esm/index37.js +9 -1
- package/dist/esm/index37.js.map +1 -1
- package/dist/esm/index38.js +1 -41
- package/dist/esm/index38.js.map +1 -1
- package/dist/esm/index39.js +33 -8
- package/dist/esm/index39.js.map +1 -1
- package/dist/esm/index4.js +10 -5
- package/dist/esm/index4.js.map +1 -1
- package/dist/esm/index40.js +8 -12
- package/dist/esm/index40.js.map +1 -1
- package/dist/esm/index41.js +14 -24
- package/dist/esm/index41.js.map +1 -1
- package/dist/esm/index42.js +29 -3
- package/dist/esm/index42.js.map +1 -1
- package/dist/esm/index43.js +3 -2
- package/dist/esm/index43.js.map +1 -1
- package/dist/esm/index44.js +3 -3
- package/dist/esm/index45.js +3 -5
- package/dist/esm/index45.js.map +1 -1
- package/dist/esm/index46.js +7 -0
- package/dist/esm/index46.js.map +1 -0
- package/dist/esm/index5.js +50 -1
- package/dist/esm/index5.js.map +1 -1
- package/dist/esm/index6.js +1 -23
- package/dist/esm/index6.js.map +1 -1
- package/dist/esm/index7.js +22 -26
- package/dist/esm/index7.js.map +1 -1
- package/dist/esm/index8.js +3 -3
- package/dist/esm/index9.js +26 -4
- package/dist/esm/index9.js.map +1 -1
- package/dist/esm/{types.esm-e2b75956.js → types.esm-aa0345d0.js} +11 -4
- package/dist/esm/types.esm-aa0345d0.js.map +1 -0
- package/dist/index.d.ts +103 -16
- package/dist/main.css +1 -1
- package/dist/main.js +1 -1
- package/package.json +9 -13
- package/dist/cjs/BoostGenericCard-310cd633.js.map +0 -1
- package/dist/cjs/BoostSmallCard-4e200046.js.map +0 -1
- package/dist/cjs/CertificateDisplayCard-50eb6485.js.map +0 -1
- package/dist/cjs/GenericCard-2b20ab4b.js.map +0 -1
- package/dist/cjs/IDDisplayIcon-4b6ce62f.js.map +0 -1
- package/dist/cjs/MeritBadgeDisplayCard-7535f16d.js.map +0 -1
- package/dist/cjs/UserProfilePicture-22944d8f.js.map +0 -1
- package/dist/cjs/VCDisplayCard2-b6bf45cf.js.map +0 -1
- package/dist/cjs/VerifierStateBadgeAndText-d3d4e6a9.js.map +0 -1
- package/dist/cjs/types.esm-674d5934.js.map +0 -1
- package/dist/esm/BoostGenericCard-956474fc.js.map +0 -1
- package/dist/esm/BoostSmallCard-6d63f0b3.js.map +0 -1
- package/dist/esm/CertificateDisplayCard-fdc1ea6c.js.map +0 -1
- package/dist/esm/GenericCard-24648e62.js.map +0 -1
- package/dist/esm/IDDisplayIcon-d87174fd.js.map +0 -1
- package/dist/esm/MeritBadgeDisplayCard-4c768f06.js.map +0 -1
- package/dist/esm/UserProfilePicture-7e131f5d.js.map +0 -1
- package/dist/esm/VCDisplayCard2-f0bf0f87.js.map +0 -1
- package/dist/esm/VerifierStateBadgeAndText-2bddbc91.js.map +0 -1
- package/dist/esm/types.esm-e2b75956.js.map +0 -1
package/dist/esm/{VerifierStateBadgeAndText-2bddbc91.js → VerifierStateBadgeAndText-f878973e.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
1
|
+
import React, { useState, forwardRef } from 'react';
|
|
2
2
|
import Athletics from './athletics.png';
|
|
3
3
|
import Business from './business.png';
|
|
4
4
|
import Creative from './creative.png';
|
|
@@ -9,7 +9,7 @@ import Social from './social.png';
|
|
|
9
9
|
import Stem from './stem.png';
|
|
10
10
|
import Trade from './trade.png';
|
|
11
11
|
import { P as PuzzlePiece } from './PuzzlePiece-a3d9cc62.js';
|
|
12
|
-
import { o as object, l as literal, n as number, s as string, u as union } from './types.esm-
|
|
12
|
+
import { o as object, l as literal, n as number, s as string, u as union } from './types.esm-aa0345d0.js';
|
|
13
13
|
|
|
14
14
|
const AcuteCheckmark = ({ className = "" }) => {
|
|
15
15
|
return /* @__PURE__ */ React.createElement(
|
|
@@ -2374,138 +2374,6 @@ const SkillsBox = ({ skills }) => {
|
|
|
2374
2374
|
})));
|
|
2375
2375
|
};
|
|
2376
2376
|
|
|
2377
|
-
var token = '%[a-f0-9]{2}';
|
|
2378
|
-
var singleMatcher = new RegExp('(' + token + ')|([^%]+?)', 'gi');
|
|
2379
|
-
var multiMatcher = new RegExp('(' + token + ')+', 'gi');
|
|
2380
|
-
|
|
2381
|
-
function decodeComponents(components, split) {
|
|
2382
|
-
try {
|
|
2383
|
-
// Try to decode the entire string first
|
|
2384
|
-
return [decodeURIComponent(components.join(''))];
|
|
2385
|
-
} catch (err) {
|
|
2386
|
-
// Do nothing
|
|
2387
|
-
}
|
|
2388
|
-
|
|
2389
|
-
if (components.length === 1) {
|
|
2390
|
-
return components;
|
|
2391
|
-
}
|
|
2392
|
-
|
|
2393
|
-
split = split || 1;
|
|
2394
|
-
|
|
2395
|
-
// Split the array in 2 parts
|
|
2396
|
-
var left = components.slice(0, split);
|
|
2397
|
-
var right = components.slice(split);
|
|
2398
|
-
|
|
2399
|
-
return Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));
|
|
2400
|
-
}
|
|
2401
|
-
|
|
2402
|
-
function decode$1(input) {
|
|
2403
|
-
try {
|
|
2404
|
-
return decodeURIComponent(input);
|
|
2405
|
-
} catch (err) {
|
|
2406
|
-
var tokens = input.match(singleMatcher) || [];
|
|
2407
|
-
|
|
2408
|
-
for (var i = 1; i < tokens.length; i++) {
|
|
2409
|
-
input = decodeComponents(tokens, i).join('');
|
|
2410
|
-
|
|
2411
|
-
tokens = input.match(singleMatcher) || [];
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
|
-
return input;
|
|
2415
|
-
}
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
|
-
function customDecodeURIComponent(input) {
|
|
2419
|
-
// Keep track of all the replacements and prefill the map with the `BOM`
|
|
2420
|
-
var replaceMap = {
|
|
2421
|
-
'%FE%FF': '\uFFFD\uFFFD',
|
|
2422
|
-
'%FF%FE': '\uFFFD\uFFFD'
|
|
2423
|
-
};
|
|
2424
|
-
|
|
2425
|
-
var match = multiMatcher.exec(input);
|
|
2426
|
-
while (match) {
|
|
2427
|
-
try {
|
|
2428
|
-
// Decode as big chunks as possible
|
|
2429
|
-
replaceMap[match[0]] = decodeURIComponent(match[0]);
|
|
2430
|
-
} catch (err) {
|
|
2431
|
-
var result = decode$1(match[0]);
|
|
2432
|
-
|
|
2433
|
-
if (result !== match[0]) {
|
|
2434
|
-
replaceMap[match[0]] = result;
|
|
2435
|
-
}
|
|
2436
|
-
}
|
|
2437
|
-
|
|
2438
|
-
match = multiMatcher.exec(input);
|
|
2439
|
-
}
|
|
2440
|
-
|
|
2441
|
-
// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else
|
|
2442
|
-
replaceMap['%C2'] = '\uFFFD';
|
|
2443
|
-
|
|
2444
|
-
var entries = Object.keys(replaceMap);
|
|
2445
|
-
|
|
2446
|
-
for (var i = 0; i < entries.length; i++) {
|
|
2447
|
-
// Replace all decoded components
|
|
2448
|
-
var key = entries[i];
|
|
2449
|
-
input = input.replace(new RegExp(key, 'g'), replaceMap[key]);
|
|
2450
|
-
}
|
|
2451
|
-
|
|
2452
|
-
return input;
|
|
2453
|
-
}
|
|
2454
|
-
|
|
2455
|
-
var decodeUriComponent = function (encodedURI) {
|
|
2456
|
-
if (typeof encodedURI !== 'string') {
|
|
2457
|
-
throw new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');
|
|
2458
|
-
}
|
|
2459
|
-
|
|
2460
|
-
try {
|
|
2461
|
-
encodedURI = encodedURI.replace(/\+/g, ' ');
|
|
2462
|
-
|
|
2463
|
-
// Try the built in decoder first
|
|
2464
|
-
return decodeURIComponent(encodedURI);
|
|
2465
|
-
} catch (err) {
|
|
2466
|
-
// Fallback to a more advanced decoder
|
|
2467
|
-
return customDecodeURIComponent(encodedURI);
|
|
2468
|
-
}
|
|
2469
|
-
};
|
|
2470
|
-
|
|
2471
|
-
var filterObj = function (obj, predicate) {
|
|
2472
|
-
var ret = {};
|
|
2473
|
-
var keys = Object.keys(obj);
|
|
2474
|
-
var isArr = Array.isArray(predicate);
|
|
2475
|
-
|
|
2476
|
-
for (var i = 0; i < keys.length; i++) {
|
|
2477
|
-
var key = keys[i];
|
|
2478
|
-
var val = obj[key];
|
|
2479
|
-
|
|
2480
|
-
if (isArr ? predicate.indexOf(key) !== -1 : predicate(key, val, obj)) {
|
|
2481
|
-
ret[key] = val;
|
|
2482
|
-
}
|
|
2483
|
-
}
|
|
2484
|
-
|
|
2485
|
-
return ret;
|
|
2486
|
-
};
|
|
2487
|
-
|
|
2488
|
-
var splitOnFirst = (string, separator) => {
|
|
2489
|
-
if (!(typeof string === 'string' && typeof separator === 'string')) {
|
|
2490
|
-
throw new TypeError('Expected the arguments to be of type `string`');
|
|
2491
|
-
}
|
|
2492
|
-
|
|
2493
|
-
if (separator === '') {
|
|
2494
|
-
return [string];
|
|
2495
|
-
}
|
|
2496
|
-
|
|
2497
|
-
const separatorIndex = string.indexOf(separator);
|
|
2498
|
-
|
|
2499
|
-
if (separatorIndex === -1) {
|
|
2500
|
-
return [string];
|
|
2501
|
-
}
|
|
2502
|
-
|
|
2503
|
-
return [
|
|
2504
|
-
string.slice(0, separatorIndex),
|
|
2505
|
-
string.slice(separatorIndex + separator.length)
|
|
2506
|
-
];
|
|
2507
|
-
};
|
|
2508
|
-
|
|
2509
2377
|
// src/utils/env.ts
|
|
2510
2378
|
var NOTHING = Symbol.for("immer-nothing");
|
|
2511
2379
|
var DRAFTABLE = Symbol.for("immer-draftable");
|
|
@@ -3267,6 +3135,288 @@ function currentImpl(value) {
|
|
|
3267
3135
|
var immer = new Immer2();
|
|
3268
3136
|
var produce = immer.produce;
|
|
3269
3137
|
|
|
3138
|
+
/**
|
|
3139
|
+
* base64.ts
|
|
3140
|
+
*
|
|
3141
|
+
* Licensed under the BSD 3-Clause License.
|
|
3142
|
+
* http://opensource.org/licenses/BSD-3-Clause
|
|
3143
|
+
*
|
|
3144
|
+
* References:
|
|
3145
|
+
* http://en.wikipedia.org/wiki/Base64
|
|
3146
|
+
*
|
|
3147
|
+
* @author Dan Kogai (https://github.com/dankogai)
|
|
3148
|
+
*/
|
|
3149
|
+
const version = '3.7.8';
|
|
3150
|
+
/**
|
|
3151
|
+
* @deprecated use lowercase `version`.
|
|
3152
|
+
*/
|
|
3153
|
+
const VERSION = version;
|
|
3154
|
+
const _hasBuffer = typeof Buffer === 'function';
|
|
3155
|
+
const _TD = typeof TextDecoder === 'function' ? new TextDecoder() : undefined;
|
|
3156
|
+
const _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;
|
|
3157
|
+
const b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
3158
|
+
const b64chs = Array.prototype.slice.call(b64ch);
|
|
3159
|
+
const b64tab = ((a) => {
|
|
3160
|
+
let tab = {};
|
|
3161
|
+
a.forEach((c, i) => tab[c] = i);
|
|
3162
|
+
return tab;
|
|
3163
|
+
})(b64chs);
|
|
3164
|
+
const b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
|
|
3165
|
+
const _fromCC = String.fromCharCode.bind(String);
|
|
3166
|
+
const _U8Afrom = typeof Uint8Array.from === 'function'
|
|
3167
|
+
? Uint8Array.from.bind(Uint8Array)
|
|
3168
|
+
: (it) => new Uint8Array(Array.prototype.slice.call(it, 0));
|
|
3169
|
+
const _mkUriSafe = (src) => src
|
|
3170
|
+
.replace(/=/g, '').replace(/[+\/]/g, (m0) => m0 == '+' ? '-' : '_');
|
|
3171
|
+
const _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\+\/]/g, '');
|
|
3172
|
+
/**
|
|
3173
|
+
* polyfill version of `btoa`
|
|
3174
|
+
*/
|
|
3175
|
+
const btoaPolyfill = (bin) => {
|
|
3176
|
+
// console.log('polyfilled');
|
|
3177
|
+
let u32, c0, c1, c2, asc = '';
|
|
3178
|
+
const pad = bin.length % 3;
|
|
3179
|
+
for (let i = 0; i < bin.length;) {
|
|
3180
|
+
if ((c0 = bin.charCodeAt(i++)) > 255 ||
|
|
3181
|
+
(c1 = bin.charCodeAt(i++)) > 255 ||
|
|
3182
|
+
(c2 = bin.charCodeAt(i++)) > 255)
|
|
3183
|
+
throw new TypeError('invalid character found');
|
|
3184
|
+
u32 = (c0 << 16) | (c1 << 8) | c2;
|
|
3185
|
+
asc += b64chs[u32 >> 18 & 63]
|
|
3186
|
+
+ b64chs[u32 >> 12 & 63]
|
|
3187
|
+
+ b64chs[u32 >> 6 & 63]
|
|
3188
|
+
+ b64chs[u32 & 63];
|
|
3189
|
+
}
|
|
3190
|
+
return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
|
|
3191
|
+
};
|
|
3192
|
+
/**
|
|
3193
|
+
* does what `window.btoa` of web browsers do.
|
|
3194
|
+
* @param {String} bin binary string
|
|
3195
|
+
* @returns {string} Base64-encoded string
|
|
3196
|
+
*/
|
|
3197
|
+
const _btoa = typeof btoa === 'function' ? (bin) => btoa(bin)
|
|
3198
|
+
: _hasBuffer ? (bin) => Buffer.from(bin, 'binary').toString('base64')
|
|
3199
|
+
: btoaPolyfill;
|
|
3200
|
+
const _fromUint8Array = _hasBuffer
|
|
3201
|
+
? (u8a) => Buffer.from(u8a).toString('base64')
|
|
3202
|
+
: (u8a) => {
|
|
3203
|
+
// cf. https://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string/12713326#12713326
|
|
3204
|
+
const maxargs = 0x1000;
|
|
3205
|
+
let strs = [];
|
|
3206
|
+
for (let i = 0, l = u8a.length; i < l; i += maxargs) {
|
|
3207
|
+
strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
|
|
3208
|
+
}
|
|
3209
|
+
return _btoa(strs.join(''));
|
|
3210
|
+
};
|
|
3211
|
+
/**
|
|
3212
|
+
* converts a Uint8Array to a Base64 string.
|
|
3213
|
+
* @param {boolean} [urlsafe] URL-and-filename-safe a la RFC4648 §5
|
|
3214
|
+
* @returns {string} Base64 string
|
|
3215
|
+
*/
|
|
3216
|
+
const fromUint8Array = (u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);
|
|
3217
|
+
// This trick is found broken https://github.com/dankogai/js-base64/issues/130
|
|
3218
|
+
// const utob = (src: string) => unescape(encodeURIComponent(src));
|
|
3219
|
+
// reverting good old fationed regexp
|
|
3220
|
+
const cb_utob = (c) => {
|
|
3221
|
+
if (c.length < 2) {
|
|
3222
|
+
var cc = c.charCodeAt(0);
|
|
3223
|
+
return cc < 0x80 ? c
|
|
3224
|
+
: cc < 0x800 ? (_fromCC(0xc0 | (cc >>> 6))
|
|
3225
|
+
+ _fromCC(0x80 | (cc & 0x3f)))
|
|
3226
|
+
: (_fromCC(0xe0 | ((cc >>> 12) & 0x0f))
|
|
3227
|
+
+ _fromCC(0x80 | ((cc >>> 6) & 0x3f))
|
|
3228
|
+
+ _fromCC(0x80 | (cc & 0x3f)));
|
|
3229
|
+
}
|
|
3230
|
+
else {
|
|
3231
|
+
var cc = 0x10000
|
|
3232
|
+
+ (c.charCodeAt(0) - 0xD800) * 0x400
|
|
3233
|
+
+ (c.charCodeAt(1) - 0xDC00);
|
|
3234
|
+
return (_fromCC(0xf0 | ((cc >>> 18) & 0x07))
|
|
3235
|
+
+ _fromCC(0x80 | ((cc >>> 12) & 0x3f))
|
|
3236
|
+
+ _fromCC(0x80 | ((cc >>> 6) & 0x3f))
|
|
3237
|
+
+ _fromCC(0x80 | (cc & 0x3f)));
|
|
3238
|
+
}
|
|
3239
|
+
};
|
|
3240
|
+
const re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
|
|
3241
|
+
/**
|
|
3242
|
+
* @deprecated should have been internal use only.
|
|
3243
|
+
* @param {string} src UTF-8 string
|
|
3244
|
+
* @returns {string} UTF-16 string
|
|
3245
|
+
*/
|
|
3246
|
+
const utob = (u) => u.replace(re_utob, cb_utob);
|
|
3247
|
+
//
|
|
3248
|
+
const _encode = _hasBuffer
|
|
3249
|
+
? (s) => Buffer.from(s, 'utf8').toString('base64')
|
|
3250
|
+
: _TE
|
|
3251
|
+
? (s) => _fromUint8Array(_TE.encode(s))
|
|
3252
|
+
: (s) => _btoa(utob(s));
|
|
3253
|
+
/**
|
|
3254
|
+
* converts a UTF-8-encoded string to a Base64 string.
|
|
3255
|
+
* @param {boolean} [urlsafe] if `true` make the result URL-safe
|
|
3256
|
+
* @returns {string} Base64 string
|
|
3257
|
+
*/
|
|
3258
|
+
const encode = (src, urlsafe = false) => urlsafe
|
|
3259
|
+
? _mkUriSafe(_encode(src))
|
|
3260
|
+
: _encode(src);
|
|
3261
|
+
/**
|
|
3262
|
+
* converts a UTF-8-encoded string to URL-safe Base64 RFC4648 §5.
|
|
3263
|
+
* @returns {string} Base64 string
|
|
3264
|
+
*/
|
|
3265
|
+
const encodeURI = (src) => encode(src, true);
|
|
3266
|
+
// This trick is found broken https://github.com/dankogai/js-base64/issues/130
|
|
3267
|
+
// const btou = (src: string) => decodeURIComponent(escape(src));
|
|
3268
|
+
// reverting good old fationed regexp
|
|
3269
|
+
const re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
|
|
3270
|
+
const cb_btou = (cccc) => {
|
|
3271
|
+
switch (cccc.length) {
|
|
3272
|
+
case 4:
|
|
3273
|
+
var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
|
|
3274
|
+
| ((0x3f & cccc.charCodeAt(1)) << 12)
|
|
3275
|
+
| ((0x3f & cccc.charCodeAt(2)) << 6)
|
|
3276
|
+
| (0x3f & cccc.charCodeAt(3)), offset = cp - 0x10000;
|
|
3277
|
+
return (_fromCC((offset >>> 10) + 0xD800)
|
|
3278
|
+
+ _fromCC((offset & 0x3FF) + 0xDC00));
|
|
3279
|
+
case 3:
|
|
3280
|
+
return _fromCC(((0x0f & cccc.charCodeAt(0)) << 12)
|
|
3281
|
+
| ((0x3f & cccc.charCodeAt(1)) << 6)
|
|
3282
|
+
| (0x3f & cccc.charCodeAt(2)));
|
|
3283
|
+
default:
|
|
3284
|
+
return _fromCC(((0x1f & cccc.charCodeAt(0)) << 6)
|
|
3285
|
+
| (0x3f & cccc.charCodeAt(1)));
|
|
3286
|
+
}
|
|
3287
|
+
};
|
|
3288
|
+
/**
|
|
3289
|
+
* @deprecated should have been internal use only.
|
|
3290
|
+
* @param {string} src UTF-16 string
|
|
3291
|
+
* @returns {string} UTF-8 string
|
|
3292
|
+
*/
|
|
3293
|
+
const btou = (b) => b.replace(re_btou, cb_btou);
|
|
3294
|
+
/**
|
|
3295
|
+
* polyfill version of `atob`
|
|
3296
|
+
*/
|
|
3297
|
+
const atobPolyfill = (asc) => {
|
|
3298
|
+
// console.log('polyfilled');
|
|
3299
|
+
asc = asc.replace(/\s+/g, '');
|
|
3300
|
+
if (!b64re.test(asc))
|
|
3301
|
+
throw new TypeError('malformed base64.');
|
|
3302
|
+
asc += '=='.slice(2 - (asc.length & 3));
|
|
3303
|
+
let u24, r1, r2;
|
|
3304
|
+
let binArray = []; // use array to avoid minor gc in loop
|
|
3305
|
+
for (let i = 0; i < asc.length;) {
|
|
3306
|
+
u24 = b64tab[asc.charAt(i++)] << 18
|
|
3307
|
+
| b64tab[asc.charAt(i++)] << 12
|
|
3308
|
+
| (r1 = b64tab[asc.charAt(i++)]) << 6
|
|
3309
|
+
| (r2 = b64tab[asc.charAt(i++)]);
|
|
3310
|
+
if (r1 === 64) {
|
|
3311
|
+
binArray.push(_fromCC(u24 >> 16 & 255));
|
|
3312
|
+
}
|
|
3313
|
+
else if (r2 === 64) {
|
|
3314
|
+
binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255));
|
|
3315
|
+
}
|
|
3316
|
+
else {
|
|
3317
|
+
binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255));
|
|
3318
|
+
}
|
|
3319
|
+
}
|
|
3320
|
+
return binArray.join('');
|
|
3321
|
+
};
|
|
3322
|
+
/**
|
|
3323
|
+
* does what `window.atob` of web browsers do.
|
|
3324
|
+
* @param {String} asc Base64-encoded string
|
|
3325
|
+
* @returns {string} binary string
|
|
3326
|
+
*/
|
|
3327
|
+
const _atob = typeof atob === 'function' ? (asc) => atob(_tidyB64(asc))
|
|
3328
|
+
: _hasBuffer ? (asc) => Buffer.from(asc, 'base64').toString('binary')
|
|
3329
|
+
: atobPolyfill;
|
|
3330
|
+
//
|
|
3331
|
+
const _toUint8Array = _hasBuffer
|
|
3332
|
+
? (a) => _U8Afrom(Buffer.from(a, 'base64'))
|
|
3333
|
+
: (a) => _U8Afrom(_atob(a).split('').map(c => c.charCodeAt(0)));
|
|
3334
|
+
/**
|
|
3335
|
+
* converts a Base64 string to a Uint8Array.
|
|
3336
|
+
*/
|
|
3337
|
+
const toUint8Array = (a) => _toUint8Array(_unURI(a));
|
|
3338
|
+
//
|
|
3339
|
+
const _decode = _hasBuffer
|
|
3340
|
+
? (a) => Buffer.from(a, 'base64').toString('utf8')
|
|
3341
|
+
: _TD
|
|
3342
|
+
? (a) => _TD.decode(_toUint8Array(a))
|
|
3343
|
+
: (a) => btou(_atob(a));
|
|
3344
|
+
const _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == '-' ? '+' : '/'));
|
|
3345
|
+
/**
|
|
3346
|
+
* converts a Base64 string to a UTF-8 string.
|
|
3347
|
+
* @param {String} src Base64 string. Both normal and URL-safe are supported
|
|
3348
|
+
* @returns {string} UTF-8 string
|
|
3349
|
+
*/
|
|
3350
|
+
const decode = (src) => _decode(_unURI(src));
|
|
3351
|
+
/**
|
|
3352
|
+
* check if a value is a valid Base64 string
|
|
3353
|
+
* @param {String} src a value to check
|
|
3354
|
+
*/
|
|
3355
|
+
const isValid = (src) => {
|
|
3356
|
+
if (typeof src !== 'string')
|
|
3357
|
+
return false;
|
|
3358
|
+
const s = src.replace(/\s+/g, '').replace(/={0,2}$/, '');
|
|
3359
|
+
return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
|
|
3360
|
+
};
|
|
3361
|
+
//
|
|
3362
|
+
const _noEnum = (v) => {
|
|
3363
|
+
return {
|
|
3364
|
+
value: v, enumerable: false, writable: true, configurable: true
|
|
3365
|
+
};
|
|
3366
|
+
};
|
|
3367
|
+
/**
|
|
3368
|
+
* extend String.prototype with relevant methods
|
|
3369
|
+
*/
|
|
3370
|
+
const extendString = function () {
|
|
3371
|
+
const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));
|
|
3372
|
+
_add('fromBase64', function () { return decode(this); });
|
|
3373
|
+
_add('toBase64', function (urlsafe) { return encode(this, urlsafe); });
|
|
3374
|
+
_add('toBase64URI', function () { return encode(this, true); });
|
|
3375
|
+
_add('toBase64URL', function () { return encode(this, true); });
|
|
3376
|
+
_add('toUint8Array', function () { return toUint8Array(this); });
|
|
3377
|
+
};
|
|
3378
|
+
/**
|
|
3379
|
+
* extend Uint8Array.prototype with relevant methods
|
|
3380
|
+
*/
|
|
3381
|
+
const extendUint8Array = function () {
|
|
3382
|
+
const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));
|
|
3383
|
+
_add('toBase64', function (urlsafe) { return fromUint8Array(this, urlsafe); });
|
|
3384
|
+
_add('toBase64URI', function () { return fromUint8Array(this, true); });
|
|
3385
|
+
_add('toBase64URL', function () { return fromUint8Array(this, true); });
|
|
3386
|
+
};
|
|
3387
|
+
/**
|
|
3388
|
+
* extend Builtin prototypes with relevant methods
|
|
3389
|
+
*/
|
|
3390
|
+
const extendBuiltins = () => {
|
|
3391
|
+
extendString();
|
|
3392
|
+
extendUint8Array();
|
|
3393
|
+
};
|
|
3394
|
+
const gBase64 = {
|
|
3395
|
+
version: version,
|
|
3396
|
+
VERSION: VERSION,
|
|
3397
|
+
atob: _atob,
|
|
3398
|
+
atobPolyfill: atobPolyfill,
|
|
3399
|
+
btoa: _btoa,
|
|
3400
|
+
btoaPolyfill: btoaPolyfill,
|
|
3401
|
+
fromBase64: decode,
|
|
3402
|
+
toBase64: encode,
|
|
3403
|
+
encode: encode,
|
|
3404
|
+
encodeURI: encodeURI,
|
|
3405
|
+
encodeURL: encodeURI,
|
|
3406
|
+
utob: utob,
|
|
3407
|
+
btou: btou,
|
|
3408
|
+
decode: decode,
|
|
3409
|
+
isValid: isValid,
|
|
3410
|
+
fromUint8Array: fromUint8Array,
|
|
3411
|
+
toUint8Array: toUint8Array,
|
|
3412
|
+
extendString: extendString,
|
|
3413
|
+
extendUint8Array: extendUint8Array,
|
|
3414
|
+
extendBuiltins: extendBuiltins
|
|
3415
|
+
};
|
|
3416
|
+
|
|
3417
|
+
gBase64.encodeURI;
|
|
3418
|
+
gBase64.decode;
|
|
3419
|
+
|
|
3270
3420
|
var __defProp = Object.defineProperty;
|
|
3271
3421
|
var __defProps = Object.defineProperties;
|
|
3272
3422
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -3596,6 +3746,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
3596
3746
|
SkillTreeNodeValidator: /* @__PURE__ */ __name(() => SkillTreeNodeValidator, "SkillTreeNodeValidator"),
|
|
3597
3747
|
SkillValidator: /* @__PURE__ */ __name(() => SkillValidator, "SkillValidator"),
|
|
3598
3748
|
StatusCheckEntryValidator: /* @__PURE__ */ __name(() => StatusCheckEntryValidator, "StatusCheckEntryValidator"),
|
|
3749
|
+
StoredCredentialEnvelopeValidator: /* @__PURE__ */ __name(() => StoredCredentialEnvelopeValidator, "StoredCredentialEnvelopeValidator"),
|
|
3599
3750
|
StringQuery: /* @__PURE__ */ __name(() => StringQuery, "StringQuery"),
|
|
3600
3751
|
SummaryCredentialDataValidator: /* @__PURE__ */ __name(() => SummaryCredentialDataValidator, "SummaryCredentialDataValidator"),
|
|
3601
3752
|
SummaryCredentialKeywordValidator: /* @__PURE__ */ __name(() => SummaryCredentialKeywordValidator, "SummaryCredentialKeywordValidator"),
|
|
@@ -3616,7 +3767,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
3616
3767
|
VerificationItemValidator: /* @__PURE__ */ __name(() => VerificationItemValidator, "VerificationItemValidator"),
|
|
3617
3768
|
VerificationMethodValidator: /* @__PURE__ */ __name(() => VerificationMethodValidator, "VerificationMethodValidator"),
|
|
3618
3769
|
VerificationStatusEnum: /* @__PURE__ */ __name(() => VerificationStatusEnum, "VerificationStatusEnum"),
|
|
3619
|
-
VerificationStatusValidator: /* @__PURE__ */ __name(() => VerificationStatusValidator, "VerificationStatusValidator")
|
|
3770
|
+
VerificationStatusValidator: /* @__PURE__ */ __name(() => VerificationStatusValidator, "VerificationStatusValidator"),
|
|
3771
|
+
isStoredCredentialEnvelope: /* @__PURE__ */ __name(() => isStoredCredentialEnvelope2, "isStoredCredentialEnvelope")
|
|
3620
3772
|
});
|
|
3621
3773
|
module.exports = __toCommonJS(index_exports);
|
|
3622
3774
|
var external_exports = {};
|
|
@@ -3722,14 +3874,14 @@ var require_types_cjs_development = __commonJS({
|
|
|
3722
3874
|
cuid2: /* @__PURE__ */ __name(() => cuid22, "cuid2"),
|
|
3723
3875
|
custom: /* @__PURE__ */ __name(() => custom, "custom"),
|
|
3724
3876
|
date: /* @__PURE__ */ __name(() => date3, "date"),
|
|
3725
|
-
decode: /* @__PURE__ */ __name(() =>
|
|
3877
|
+
decode: /* @__PURE__ */ __name(() => decode2, "decode"),
|
|
3726
3878
|
decodeAsync: /* @__PURE__ */ __name(() => decodeAsync2, "decodeAsync"),
|
|
3727
3879
|
describe: /* @__PURE__ */ __name(() => describe2, "describe"),
|
|
3728
3880
|
discriminatedUnion: /* @__PURE__ */ __name(() => discriminatedUnion, "discriminatedUnion"),
|
|
3729
3881
|
e164: /* @__PURE__ */ __name(() => e1642, "e164"),
|
|
3730
3882
|
email: /* @__PURE__ */ __name(() => email2, "email"),
|
|
3731
3883
|
emoji: /* @__PURE__ */ __name(() => emoji2, "emoji"),
|
|
3732
|
-
encode: /* @__PURE__ */ __name(() =>
|
|
3884
|
+
encode: /* @__PURE__ */ __name(() => encode2, "encode"),
|
|
3733
3885
|
encodeAsync: /* @__PURE__ */ __name(() => encodeAsync2, "encodeAsync"),
|
|
3734
3886
|
endsWith: /* @__PURE__ */ __name(() => _endsWith, "endsWith"),
|
|
3735
3887
|
enum: /* @__PURE__ */ __name(() => _enum2, "enum"),
|
|
@@ -3794,7 +3946,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
3794
3946
|
object: /* @__PURE__ */ __name(() => object, "object"),
|
|
3795
3947
|
optional: /* @__PURE__ */ __name(() => optional, "optional"),
|
|
3796
3948
|
overwrite: /* @__PURE__ */ __name(() => _overwrite, "overwrite"),
|
|
3797
|
-
parse: /* @__PURE__ */ __name(() =>
|
|
3949
|
+
parse: /* @__PURE__ */ __name(() => parse2, "parse"),
|
|
3798
3950
|
parseAsync: /* @__PURE__ */ __name(() => parseAsync2, "parseAsync"),
|
|
3799
3951
|
partialRecord: /* @__PURE__ */ __name(() => partialRecord, "partialRecord"),
|
|
3800
3952
|
pipe: /* @__PURE__ */ __name(() => pipe, "pipe"),
|
|
@@ -4088,10 +4240,10 @@ var require_types_cjs_development = __commonJS({
|
|
|
4088
4240
|
_xid: /* @__PURE__ */ __name(() => _xid, "_xid"),
|
|
4089
4241
|
clone: /* @__PURE__ */ __name(() => clone, "clone"),
|
|
4090
4242
|
config: /* @__PURE__ */ __name(() => config, "config"),
|
|
4091
|
-
decode: /* @__PURE__ */ __name(() =>
|
|
4243
|
+
decode: /* @__PURE__ */ __name(() => decode, "decode"),
|
|
4092
4244
|
decodeAsync: /* @__PURE__ */ __name(() => decodeAsync, "decodeAsync"),
|
|
4093
4245
|
describe: /* @__PURE__ */ __name(() => describe, "describe"),
|
|
4094
|
-
encode: /* @__PURE__ */ __name(() =>
|
|
4246
|
+
encode: /* @__PURE__ */ __name(() => encode, "encode"),
|
|
4095
4247
|
encodeAsync: /* @__PURE__ */ __name(() => encodeAsync, "encodeAsync"),
|
|
4096
4248
|
flattenError: /* @__PURE__ */ __name(() => flattenError, "flattenError"),
|
|
4097
4249
|
formatError: /* @__PURE__ */ __name(() => formatError, "formatError"),
|
|
@@ -4102,7 +4254,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
4102
4254
|
isValidJWT: /* @__PURE__ */ __name(() => isValidJWT, "isValidJWT"),
|
|
4103
4255
|
locales: /* @__PURE__ */ __name(() => locales_exports, "locales"),
|
|
4104
4256
|
meta: /* @__PURE__ */ __name(() => meta, "meta"),
|
|
4105
|
-
parse: /* @__PURE__ */ __name(() =>
|
|
4257
|
+
parse: /* @__PURE__ */ __name(() => parse, "parse"),
|
|
4106
4258
|
parseAsync: /* @__PURE__ */ __name(() => parseAsync, "parseAsync"),
|
|
4107
4259
|
prettifyError: /* @__PURE__ */ __name(() => prettifyError, "prettifyError"),
|
|
4108
4260
|
regexes: /* @__PURE__ */ __name(() => regexes_exports, "regexes"),
|
|
@@ -4254,7 +4406,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
4254
4406
|
omit: /* @__PURE__ */ __name(() => omit, "omit"),
|
|
4255
4407
|
optionalKeys: /* @__PURE__ */ __name(() => optionalKeys, "optionalKeys"),
|
|
4256
4408
|
partial: /* @__PURE__ */ __name(() => partial, "partial"),
|
|
4257
|
-
pick: /* @__PURE__ */ __name(() =>
|
|
4409
|
+
pick: /* @__PURE__ */ __name(() => pick, "pick"),
|
|
4258
4410
|
prefixIssues: /* @__PURE__ */ __name(() => prefixIssues, "prefixIssues"),
|
|
4259
4411
|
primitiveTypes: /* @__PURE__ */ __name(() => primitiveTypes, "primitiveTypes"),
|
|
4260
4412
|
promiseAllObject: /* @__PURE__ */ __name(() => promiseAllObject, "promiseAllObject"),
|
|
@@ -4646,7 +4798,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
4646
4798
|
int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
|
|
4647
4799
|
uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
|
|
4648
4800
|
};
|
|
4649
|
-
function
|
|
4801
|
+
function pick(schema, mask) {
|
|
4650
4802
|
const currDef = schema._zod.def;
|
|
4651
4803
|
const def = mergeDefs(schema._zod.def, {
|
|
4652
4804
|
get shape() {
|
|
@@ -4666,8 +4818,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
4666
4818
|
});
|
|
4667
4819
|
return clone(schema, def);
|
|
4668
4820
|
}
|
|
4669
|
-
__name(
|
|
4670
|
-
__name2(
|
|
4821
|
+
__name(pick, "pick");
|
|
4822
|
+
__name2(pick, "pick");
|
|
4671
4823
|
function omit(schema, mask) {
|
|
4672
4824
|
const currDef = schema._zod.def;
|
|
4673
4825
|
const def = mergeDefs(schema._zod.def, {
|
|
@@ -5114,7 +5266,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
5114
5266
|
}
|
|
5115
5267
|
return result.value;
|
|
5116
5268
|
}, "_parse");
|
|
5117
|
-
var
|
|
5269
|
+
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
5118
5270
|
var _parseAsync = /* @__PURE__ */ __name2((_Err) => (schema, value, _ctx, params) => __async(null, null, function* () {
|
|
5119
5271
|
var _a3;
|
|
5120
5272
|
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
@@ -5156,11 +5308,11 @@ var require_types_cjs_development = __commonJS({
|
|
|
5156
5308
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
5157
5309
|
return _parse(_Err)(schema, value, ctx);
|
|
5158
5310
|
}, "_encode");
|
|
5159
|
-
var
|
|
5311
|
+
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
5160
5312
|
var _decode = /* @__PURE__ */ __name2((_Err) => (schema, value, _ctx) => {
|
|
5161
5313
|
return _parse(_Err)(schema, value, _ctx);
|
|
5162
5314
|
}, "_decode");
|
|
5163
|
-
var
|
|
5315
|
+
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
5164
5316
|
var _encodeAsync = /* @__PURE__ */ __name2((_Err) => (schema, value, _ctx) => __async(null, null, function* () {
|
|
5165
5317
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
5166
5318
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
@@ -7759,10 +7911,10 @@ var require_types_cjs_development = __commonJS({
|
|
|
7759
7911
|
throw new Error("implement() must be called with a function");
|
|
7760
7912
|
}
|
|
7761
7913
|
return function(...args) {
|
|
7762
|
-
const parsedArgs = inst._def.input ?
|
|
7914
|
+
const parsedArgs = inst._def.input ? parse(inst._def.input, args) : args;
|
|
7763
7915
|
const result = Reflect.apply(func, this, parsedArgs);
|
|
7764
7916
|
if (inst._def.output) {
|
|
7765
|
-
return
|
|
7917
|
+
return parse(inst._def.output, result);
|
|
7766
7918
|
}
|
|
7767
7919
|
return result;
|
|
7768
7920
|
};
|
|
@@ -15817,12 +15969,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15817
15969
|
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
15818
15970
|
Parent: Error
|
|
15819
15971
|
});
|
|
15820
|
-
var
|
|
15972
|
+
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
15821
15973
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
15822
15974
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
15823
15975
|
var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
15824
|
-
var
|
|
15825
|
-
var
|
|
15976
|
+
var encode2 = /* @__PURE__ */ _encode(ZodRealError);
|
|
15977
|
+
var decode2 = /* @__PURE__ */ _decode(ZodRealError);
|
|
15826
15978
|
var encodeAsync2 = /* @__PURE__ */ _encodeAsync(ZodRealError);
|
|
15827
15979
|
var decodeAsync2 = /* @__PURE__ */ _decodeAsync(ZodRealError);
|
|
15828
15980
|
var safeEncode2 = /* @__PURE__ */ _safeEncode(ZodRealError);
|
|
@@ -15849,7 +16001,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15849
16001
|
reg.add(inst, meta3);
|
|
15850
16002
|
return inst;
|
|
15851
16003
|
});
|
|
15852
|
-
inst.parse = (data, params) =>
|
|
16004
|
+
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
15853
16005
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
15854
16006
|
inst.parseAsync = (data, params) => __async(null, null, function* () {
|
|
15855
16007
|
return parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -15858,8 +16010,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15858
16010
|
return safeParseAsync2(inst, data, params);
|
|
15859
16011
|
});
|
|
15860
16012
|
inst.spa = inst.safeParseAsync;
|
|
15861
|
-
inst.encode = (data, params) =>
|
|
15862
|
-
inst.decode = (data, params) =>
|
|
16013
|
+
inst.encode = (data, params) => encode2(inst, data, params);
|
|
16014
|
+
inst.decode = (data, params) => decode2(inst, data, params);
|
|
15863
16015
|
inst.encodeAsync = (data, params) => __async(null, null, function* () {
|
|
15864
16016
|
return encodeAsync2(inst, data, params);
|
|
15865
16017
|
});
|
|
@@ -17492,6 +17644,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17492
17644
|
"vc+sd-jwt",
|
|
17493
17645
|
"mso_mdoc"
|
|
17494
17646
|
]);
|
|
17647
|
+
var StoredCredentialEnvelopeValidator = external_exports.object({
|
|
17648
|
+
format: CredentialFormatValidator,
|
|
17649
|
+
data: external_exports.string()
|
|
17650
|
+
}).passthrough();
|
|
17651
|
+
var isStoredCredentialEnvelope2 = /* @__PURE__ */ __name2((value) => {
|
|
17652
|
+
if (!value || typeof value !== "object") return false;
|
|
17653
|
+
const candidate = value;
|
|
17654
|
+
if (typeof candidate.format !== "string") return false;
|
|
17655
|
+
if (!CredentialFormatValidator.safeParse(candidate.format).success) return false;
|
|
17656
|
+
return typeof candidate.data === "string" || candidate.data instanceof Uint8Array;
|
|
17657
|
+
}, "isStoredCredentialEnvelope");
|
|
17495
17658
|
var StatusCheckEntryValidator = external_exports.object({
|
|
17496
17659
|
/**
|
|
17497
17660
|
* The `credentialStatus.type` as it appeared on the credential.
|
|
@@ -17823,7 +17986,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17823
17986
|
to: LCNVisibleProfileValidator,
|
|
17824
17987
|
from: external_exports.string(),
|
|
17825
17988
|
received: external_exports.string().optional(),
|
|
17826
|
-
uri: external_exports.string().optional()
|
|
17989
|
+
uri: external_exports.string().optional(),
|
|
17990
|
+
status: external_exports.enum(["active", "revoked", "suspended"]).optional()
|
|
17827
17991
|
});
|
|
17828
17992
|
var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
|
|
17829
17993
|
records: BoostRecipientValidator.array()
|
|
@@ -17833,7 +17997,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17833
17997
|
from: external_exports.string(),
|
|
17834
17998
|
received: external_exports.string().optional(),
|
|
17835
17999
|
boostUris: external_exports.array(external_exports.string()),
|
|
17836
|
-
credentialUris: external_exports.array(external_exports.string()).optional()
|
|
18000
|
+
credentialUris: external_exports.array(external_exports.string()).optional(),
|
|
18001
|
+
status: external_exports.enum(["active", "revoked", "suspended"]).optional()
|
|
17837
18002
|
});
|
|
17838
18003
|
var PaginatedBoostRecipientsWithChildrenValidator = PaginationResponseValidator.extend({
|
|
17839
18004
|
records: BoostRecipientWithChildrenValidator.array()
|
|
@@ -18920,7 +19085,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18920
19085
|
inboxCredentialId: external_exports.string().optional(),
|
|
18921
19086
|
integrationId: external_exports.string().optional(),
|
|
18922
19087
|
source: CredentialActivitySourceTypeValidator,
|
|
18923
|
-
metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
19088
|
+
metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
19089
|
+
status: external_exports.enum(["active", "revoked", "suspended"]).optional()
|
|
18924
19090
|
});
|
|
18925
19091
|
var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
|
|
18926
19092
|
boost: external_exports.object({
|
|
@@ -19075,462 +19241,49 @@ __export(unsplash_helpers_exports, {
|
|
|
19075
19241
|
resizeAndChangeQuality: () => resizeAndChangeQuality2,
|
|
19076
19242
|
resizeUrl: () => resizeUrl2
|
|
19077
19243
|
});
|
|
19078
|
-
var
|
|
19079
|
-
|
|
19080
|
-
|
|
19081
|
-
|
|
19082
|
-
|
|
19083
|
-
|
|
19084
|
-
|
|
19085
|
-
|
|
19086
|
-
|
|
19087
|
-
});
|
|
19088
|
-
var isNullOrUndefined = /* @__PURE__ */ __name((value) => value === null || value === void 0, "isNullOrUndefined");
|
|
19089
|
-
var strictUriEncode = /* @__PURE__ */ __name((string) => encodeURIComponent(string).replaceAll(/[!'()*]/g, (x) => `%${x.charCodeAt(0).toString(16).toUpperCase()}`), "strictUriEncode");
|
|
19090
|
-
var encodeFragmentIdentifier = /* @__PURE__ */ Symbol("encodeFragmentIdentifier");
|
|
19091
|
-
function encoderForArrayFormat(options) {
|
|
19092
|
-
switch (options.arrayFormat) {
|
|
19093
|
-
case "index": {
|
|
19094
|
-
return (key) => (result, value) => {
|
|
19095
|
-
const index = result.length;
|
|
19096
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
19097
|
-
return result;
|
|
19098
|
-
}
|
|
19099
|
-
if (value === null) {
|
|
19100
|
-
return [
|
|
19101
|
-
...result,
|
|
19102
|
-
[encode(key, options), "[", index, "]"].join("")
|
|
19103
|
-
];
|
|
19104
|
-
}
|
|
19105
|
-
return [
|
|
19106
|
-
...result,
|
|
19107
|
-
[encode(key, options), "[", encode(index, options), "]=", encode(value, options)].join("")
|
|
19108
|
-
];
|
|
19109
|
-
};
|
|
19110
|
-
}
|
|
19111
|
-
case "bracket": {
|
|
19112
|
-
return (key) => (result, value) => {
|
|
19113
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
19114
|
-
return result;
|
|
19115
|
-
}
|
|
19116
|
-
if (value === null) {
|
|
19117
|
-
return [
|
|
19118
|
-
...result,
|
|
19119
|
-
[encode(key, options), "[]"].join("")
|
|
19120
|
-
];
|
|
19121
|
-
}
|
|
19122
|
-
return [
|
|
19123
|
-
...result,
|
|
19124
|
-
[encode(key, options), "[]=", encode(value, options)].join("")
|
|
19125
|
-
];
|
|
19126
|
-
};
|
|
19127
|
-
}
|
|
19128
|
-
case "colon-list-separator": {
|
|
19129
|
-
return (key) => (result, value) => {
|
|
19130
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
19131
|
-
return result;
|
|
19132
|
-
}
|
|
19133
|
-
if (value === null) {
|
|
19134
|
-
return [
|
|
19135
|
-
...result,
|
|
19136
|
-
[encode(key, options), ":list="].join("")
|
|
19137
|
-
];
|
|
19138
|
-
}
|
|
19139
|
-
return [
|
|
19140
|
-
...result,
|
|
19141
|
-
[encode(key, options), ":list=", encode(value, options)].join("")
|
|
19142
|
-
];
|
|
19143
|
-
};
|
|
19144
|
-
}
|
|
19145
|
-
case "comma":
|
|
19146
|
-
case "separator":
|
|
19147
|
-
case "bracket-separator": {
|
|
19148
|
-
const keyValueSeparator = options.arrayFormat === "bracket-separator" ? "[]=" : "=";
|
|
19149
|
-
return (key) => (result, value) => {
|
|
19150
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
19151
|
-
return result;
|
|
19152
|
-
}
|
|
19153
|
-
value = value === null ? "" : value;
|
|
19154
|
-
if (result.length === 0) {
|
|
19155
|
-
return [[encode(key, options), keyValueSeparator, encode(value, options)].join("")];
|
|
19156
|
-
}
|
|
19157
|
-
return [[result, encode(value, options)].join(options.arrayFormatSeparator)];
|
|
19158
|
-
};
|
|
19159
|
-
}
|
|
19160
|
-
default: {
|
|
19161
|
-
return (key) => (result, value) => {
|
|
19162
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
19163
|
-
return result;
|
|
19164
|
-
}
|
|
19165
|
-
if (value === null) {
|
|
19166
|
-
return [
|
|
19167
|
-
...result,
|
|
19168
|
-
encode(key, options)
|
|
19169
|
-
];
|
|
19170
|
-
}
|
|
19171
|
-
return [
|
|
19172
|
-
...result,
|
|
19173
|
-
[encode(key, options), "=", encode(value, options)].join("")
|
|
19174
|
-
];
|
|
19175
|
-
};
|
|
19176
|
-
}
|
|
19177
|
-
}
|
|
19178
|
-
}
|
|
19179
|
-
__name(encoderForArrayFormat, "encoderForArrayFormat");
|
|
19180
|
-
function parserForArrayFormat(options) {
|
|
19181
|
-
let result;
|
|
19182
|
-
switch (options.arrayFormat) {
|
|
19183
|
-
case "index": {
|
|
19184
|
-
return (key, value, accumulator) => {
|
|
19185
|
-
result = /\[(\d*)]$/.exec(key);
|
|
19186
|
-
key = key.replace(/\[\d*]$/, "");
|
|
19187
|
-
if (!result) {
|
|
19188
|
-
accumulator[key] = value;
|
|
19189
|
-
return;
|
|
19190
|
-
}
|
|
19191
|
-
if (accumulator[key] === void 0) {
|
|
19192
|
-
accumulator[key] = {};
|
|
19193
|
-
}
|
|
19194
|
-
accumulator[key][result[1]] = value;
|
|
19195
|
-
};
|
|
19196
|
-
}
|
|
19197
|
-
case "bracket": {
|
|
19198
|
-
return (key, value, accumulator) => {
|
|
19199
|
-
result = /(\[])$/.exec(key);
|
|
19200
|
-
key = key.replace(/\[]$/, "");
|
|
19201
|
-
if (!result) {
|
|
19202
|
-
accumulator[key] = value;
|
|
19203
|
-
return;
|
|
19204
|
-
}
|
|
19205
|
-
if (accumulator[key] === void 0) {
|
|
19206
|
-
accumulator[key] = [value];
|
|
19207
|
-
return;
|
|
19208
|
-
}
|
|
19209
|
-
accumulator[key] = [...accumulator[key], value];
|
|
19210
|
-
};
|
|
19211
|
-
}
|
|
19212
|
-
case "colon-list-separator": {
|
|
19213
|
-
return (key, value, accumulator) => {
|
|
19214
|
-
result = /(:list)$/.exec(key);
|
|
19215
|
-
key = key.replace(/:list$/, "");
|
|
19216
|
-
if (!result) {
|
|
19217
|
-
accumulator[key] = value;
|
|
19218
|
-
return;
|
|
19219
|
-
}
|
|
19220
|
-
if (accumulator[key] === void 0) {
|
|
19221
|
-
accumulator[key] = [value];
|
|
19222
|
-
return;
|
|
19223
|
-
}
|
|
19224
|
-
accumulator[key] = [...accumulator[key], value];
|
|
19225
|
-
};
|
|
19226
|
-
}
|
|
19227
|
-
case "comma":
|
|
19228
|
-
case "separator": {
|
|
19229
|
-
return (key, value, accumulator) => {
|
|
19230
|
-
const isArray = typeof value === "string" && value.includes(options.arrayFormatSeparator);
|
|
19231
|
-
const newValue = isArray ? value.split(options.arrayFormatSeparator).map((item) => decode(item, options)) : value === null ? value : decode(value, options);
|
|
19232
|
-
accumulator[key] = newValue;
|
|
19233
|
-
};
|
|
19234
|
-
}
|
|
19235
|
-
case "bracket-separator": {
|
|
19236
|
-
return (key, value, accumulator) => {
|
|
19237
|
-
const isArray = /(\[])$/.test(key);
|
|
19238
|
-
key = key.replace(/\[]$/, "");
|
|
19239
|
-
if (!isArray) {
|
|
19240
|
-
accumulator[key] = value ? decode(value, options) : value;
|
|
19241
|
-
return;
|
|
19242
|
-
}
|
|
19243
|
-
const arrayValue = value === null ? [] : decode(value, options).split(options.arrayFormatSeparator);
|
|
19244
|
-
if (accumulator[key] === void 0) {
|
|
19245
|
-
accumulator[key] = arrayValue;
|
|
19246
|
-
return;
|
|
19247
|
-
}
|
|
19248
|
-
accumulator[key] = [...accumulator[key], ...arrayValue];
|
|
19249
|
-
};
|
|
19250
|
-
}
|
|
19251
|
-
default: {
|
|
19252
|
-
return (key, value, accumulator) => {
|
|
19253
|
-
if (accumulator[key] === void 0) {
|
|
19254
|
-
accumulator[key] = value;
|
|
19255
|
-
return;
|
|
19256
|
-
}
|
|
19257
|
-
accumulator[key] = [...[accumulator[key]].flat(), value];
|
|
19258
|
-
};
|
|
19259
|
-
}
|
|
19260
|
-
}
|
|
19261
|
-
}
|
|
19262
|
-
__name(parserForArrayFormat, "parserForArrayFormat");
|
|
19263
|
-
function validateArrayFormatSeparator(value) {
|
|
19264
|
-
if (typeof value !== "string" || value.length !== 1) {
|
|
19265
|
-
throw new TypeError("arrayFormatSeparator must be single character string");
|
|
19266
|
-
}
|
|
19267
|
-
}
|
|
19268
|
-
__name(validateArrayFormatSeparator, "validateArrayFormatSeparator");
|
|
19269
|
-
function encode(value, options) {
|
|
19270
|
-
if (options.encode) {
|
|
19271
|
-
return options.strict ? strictUriEncode(value) : encodeURIComponent(value);
|
|
19272
|
-
}
|
|
19273
|
-
return value;
|
|
19274
|
-
}
|
|
19275
|
-
__name(encode, "encode");
|
|
19276
|
-
function decode(value, options) {
|
|
19277
|
-
if (options.decode) {
|
|
19278
|
-
return decodeUriComponent(value);
|
|
19279
|
-
}
|
|
19280
|
-
return value;
|
|
19281
|
-
}
|
|
19282
|
-
__name(decode, "decode");
|
|
19283
|
-
function keysSorter(input) {
|
|
19284
|
-
if (Array.isArray(input)) {
|
|
19285
|
-
return input.sort();
|
|
19286
|
-
}
|
|
19287
|
-
if (typeof input === "object") {
|
|
19288
|
-
return keysSorter(Object.keys(input)).sort((a, b) => Number(a) - Number(b)).map((key) => input[key]);
|
|
19289
|
-
}
|
|
19290
|
-
return input;
|
|
19291
|
-
}
|
|
19292
|
-
__name(keysSorter, "keysSorter");
|
|
19293
|
-
function removeHash(input) {
|
|
19294
|
-
const hashStart = input.indexOf("#");
|
|
19295
|
-
if (hashStart !== -1) {
|
|
19296
|
-
input = input.slice(0, hashStart);
|
|
19297
|
-
}
|
|
19298
|
-
return input;
|
|
19299
|
-
}
|
|
19300
|
-
__name(removeHash, "removeHash");
|
|
19301
|
-
function getHash(url) {
|
|
19302
|
-
let hash = "";
|
|
19303
|
-
const hashStart = url.indexOf("#");
|
|
19304
|
-
if (hashStart !== -1) {
|
|
19305
|
-
hash = url.slice(hashStart);
|
|
19306
|
-
}
|
|
19307
|
-
return hash;
|
|
19308
|
-
}
|
|
19309
|
-
__name(getHash, "getHash");
|
|
19310
|
-
function parseValue(value, options, type) {
|
|
19311
|
-
if (type === "string" && typeof value === "string") {
|
|
19312
|
-
return value;
|
|
19313
|
-
}
|
|
19314
|
-
if (typeof type === "function" && typeof value === "string") {
|
|
19315
|
-
return type(value);
|
|
19316
|
-
}
|
|
19317
|
-
if (type === "boolean" && value === null) {
|
|
19318
|
-
return true;
|
|
19319
|
-
}
|
|
19320
|
-
if (type === "boolean" && value !== null && (value.toLowerCase() === "true" || value.toLowerCase() === "false")) {
|
|
19321
|
-
return value.toLowerCase() === "true";
|
|
19322
|
-
}
|
|
19323
|
-
if (type === "boolean" && value !== null && (value.toLowerCase() === "1" || value.toLowerCase() === "0")) {
|
|
19324
|
-
return value.toLowerCase() === "1";
|
|
19325
|
-
}
|
|
19326
|
-
if (type === "string[]" && options.arrayFormat !== "none" && typeof value === "string") {
|
|
19327
|
-
return [value];
|
|
19328
|
-
}
|
|
19329
|
-
if (type === "number[]" && options.arrayFormat !== "none" && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
|
|
19330
|
-
return [Number(value)];
|
|
19331
|
-
}
|
|
19332
|
-
if (type === "number" && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
|
|
19333
|
-
return Number(value);
|
|
19334
|
-
}
|
|
19335
|
-
if (options.parseBooleans && value !== null && (value.toLowerCase() === "true" || value.toLowerCase() === "false")) {
|
|
19336
|
-
return value.toLowerCase() === "true";
|
|
19337
|
-
}
|
|
19338
|
-
if (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
|
|
19339
|
-
return Number(value);
|
|
19340
|
-
}
|
|
19341
|
-
return value;
|
|
19342
|
-
}
|
|
19343
|
-
__name(parseValue, "parseValue");
|
|
19344
|
-
function extract(input) {
|
|
19345
|
-
input = removeHash(input);
|
|
19346
|
-
const queryStart = input.indexOf("?");
|
|
19347
|
-
if (queryStart === -1) {
|
|
19348
|
-
return "";
|
|
19349
|
-
}
|
|
19350
|
-
return input.slice(queryStart + 1);
|
|
19351
|
-
}
|
|
19352
|
-
__name(extract, "extract");
|
|
19353
|
-
function parse(query, options) {
|
|
19354
|
-
options = __spreadValues({
|
|
19355
|
-
decode: true,
|
|
19356
|
-
sort: true,
|
|
19357
|
-
arrayFormat: "none",
|
|
19358
|
-
arrayFormatSeparator: ",",
|
|
19359
|
-
parseNumbers: false,
|
|
19360
|
-
parseBooleans: false,
|
|
19361
|
-
types: /* @__PURE__ */ Object.create(null)
|
|
19362
|
-
}, options);
|
|
19363
|
-
validateArrayFormatSeparator(options.arrayFormatSeparator);
|
|
19364
|
-
const formatter = parserForArrayFormat(options);
|
|
19365
|
-
const returnValue = /* @__PURE__ */ Object.create(null);
|
|
19366
|
-
if (typeof query !== "string") {
|
|
19367
|
-
return returnValue;
|
|
19368
|
-
}
|
|
19369
|
-
query = query.trim().replace(/^[?#&]/, "");
|
|
19370
|
-
if (!query) {
|
|
19371
|
-
return returnValue;
|
|
19372
|
-
}
|
|
19373
|
-
for (const parameter of query.split("&")) {
|
|
19374
|
-
if (parameter === "") {
|
|
19375
|
-
continue;
|
|
19376
|
-
}
|
|
19377
|
-
const parameter_ = options.decode ? parameter.replaceAll("+", " ") : parameter;
|
|
19378
|
-
let [key, value] = splitOnFirst(parameter_, "=");
|
|
19379
|
-
if (key === void 0) {
|
|
19380
|
-
key = parameter_;
|
|
19381
|
-
}
|
|
19382
|
-
value = value === void 0 ? null : ["comma", "separator", "bracket-separator"].includes(options.arrayFormat) ? value : decode(value, options);
|
|
19383
|
-
formatter(decode(key, options), value, returnValue);
|
|
19384
|
-
}
|
|
19385
|
-
for (const [key, value] of Object.entries(returnValue)) {
|
|
19386
|
-
if (typeof value === "object" && value !== null && options.types[key] !== "string") {
|
|
19387
|
-
for (const [key2, value2] of Object.entries(value)) {
|
|
19388
|
-
const typeOption = options.types[key];
|
|
19389
|
-
const type = typeof typeOption === "function" ? typeOption : typeOption ? typeOption.replace("[]", "") : void 0;
|
|
19390
|
-
value[key2] = parseValue(value2, options, type);
|
|
19391
|
-
}
|
|
19392
|
-
} else if (typeof value === "object" && value !== null && options.types[key] === "string") {
|
|
19393
|
-
returnValue[key] = Object.values(value).join(options.arrayFormatSeparator);
|
|
19394
|
-
} else {
|
|
19395
|
-
returnValue[key] = parseValue(value, options, options.types[key]);
|
|
19396
|
-
}
|
|
19397
|
-
}
|
|
19398
|
-
if (options.sort === false) {
|
|
19399
|
-
return returnValue;
|
|
19400
|
-
}
|
|
19401
|
-
return (options.sort === true ? Object.keys(returnValue).sort() : Object.keys(returnValue).sort(options.sort)).reduce((result, key) => {
|
|
19402
|
-
const value = returnValue[key];
|
|
19403
|
-
result[key] = Boolean(value) && typeof value === "object" && !Array.isArray(value) ? keysSorter(value) : value;
|
|
19404
|
-
return result;
|
|
19405
|
-
}, /* @__PURE__ */ Object.create(null));
|
|
19406
|
-
}
|
|
19407
|
-
__name(parse, "parse");
|
|
19408
|
-
function stringify(object, options) {
|
|
19409
|
-
if (!object) {
|
|
19410
|
-
return "";
|
|
19411
|
-
}
|
|
19412
|
-
options = __spreadValues({
|
|
19413
|
-
encode: true,
|
|
19414
|
-
strict: true,
|
|
19415
|
-
arrayFormat: "none",
|
|
19416
|
-
arrayFormatSeparator: ","
|
|
19417
|
-
}, options);
|
|
19418
|
-
validateArrayFormatSeparator(options.arrayFormatSeparator);
|
|
19419
|
-
const shouldFilter = /* @__PURE__ */ __name((key) => options.skipNull && isNullOrUndefined(object[key]) || options.skipEmptyString && object[key] === "", "shouldFilter");
|
|
19420
|
-
const formatter = encoderForArrayFormat(options);
|
|
19421
|
-
const objectCopy = {};
|
|
19422
|
-
for (const [key, value] of Object.entries(object)) {
|
|
19423
|
-
if (!shouldFilter(key)) {
|
|
19424
|
-
objectCopy[key] = value;
|
|
19425
|
-
}
|
|
19426
|
-
}
|
|
19427
|
-
const keys = Object.keys(objectCopy);
|
|
19428
|
-
if (options.sort !== false) {
|
|
19429
|
-
keys.sort(options.sort);
|
|
19430
|
-
}
|
|
19431
|
-
return keys.map((key) => {
|
|
19432
|
-
let value = object[key];
|
|
19433
|
-
if (options.replacer) {
|
|
19434
|
-
value = options.replacer(key, value);
|
|
19435
|
-
if (value === void 0) {
|
|
19436
|
-
return "";
|
|
19437
|
-
}
|
|
19438
|
-
}
|
|
19439
|
-
if (value === void 0) {
|
|
19440
|
-
return "";
|
|
19441
|
-
}
|
|
19442
|
-
if (value === null) {
|
|
19443
|
-
return encode(key, options);
|
|
19444
|
-
}
|
|
19445
|
-
if (Array.isArray(value)) {
|
|
19446
|
-
if (value.length === 0 && options.arrayFormat === "bracket-separator") {
|
|
19447
|
-
return encode(key, options) + "[]";
|
|
19448
|
-
}
|
|
19449
|
-
let processedArray = value;
|
|
19450
|
-
if (options.replacer) {
|
|
19451
|
-
processedArray = value.map(
|
|
19452
|
-
(item, index) => options.replacer(`${key}[${index}]`, item)
|
|
19453
|
-
).filter((item) => item !== void 0);
|
|
19454
|
-
}
|
|
19455
|
-
return processedArray.reduce(formatter(key), []).join("&");
|
|
19456
|
-
}
|
|
19457
|
-
return encode(key, options) + "=" + encode(value, options);
|
|
19458
|
-
}).filter((x) => x.length > 0).join("&");
|
|
19459
|
-
}
|
|
19460
|
-
__name(stringify, "stringify");
|
|
19461
|
-
function parseUrl(url, options) {
|
|
19462
|
-
var _a, _b;
|
|
19463
|
-
options = __spreadValues({
|
|
19464
|
-
decode: true
|
|
19465
|
-
}, options);
|
|
19466
|
-
let [url_, hash] = splitOnFirst(url, "#");
|
|
19467
|
-
if (url_ === void 0) {
|
|
19468
|
-
url_ = url;
|
|
19469
|
-
}
|
|
19244
|
+
var parseUrl = /* @__PURE__ */ __name((input) => {
|
|
19245
|
+
const hashIndex = input.indexOf("#");
|
|
19246
|
+
const fragmentIdentifier = hashIndex === -1 ? void 0 : input.slice(hashIndex + 1);
|
|
19247
|
+
const withoutFragment = hashIndex === -1 ? input : input.slice(0, hashIndex);
|
|
19248
|
+
const queryIndex = withoutFragment.indexOf("?");
|
|
19249
|
+
const url = queryIndex === -1 ? withoutFragment : withoutFragment.slice(0, queryIndex);
|
|
19250
|
+
const search = queryIndex === -1 ? "" : withoutFragment.slice(queryIndex + 1);
|
|
19251
|
+
const query = {};
|
|
19252
|
+
for (const [key, value] of new URLSearchParams(search)) query[key] = value;
|
|
19470
19253
|
return __spreadValues({
|
|
19471
|
-
url: (_b = (_a = url_ == null ? void 0 : url_.split("?")) == null ? void 0 : _a[0]) != null ? _b : "",
|
|
19472
|
-
query: parse(extract(url), options)
|
|
19473
|
-
}, options && options.parseFragmentIdentifier && hash ? { fragmentIdentifier: decode(hash, options) } : {});
|
|
19474
|
-
}
|
|
19475
|
-
__name(parseUrl, "parseUrl");
|
|
19476
|
-
function stringifyUrl(object, options) {
|
|
19477
|
-
options = __spreadValues({
|
|
19478
|
-
encode: true,
|
|
19479
|
-
strict: true,
|
|
19480
|
-
[encodeFragmentIdentifier]: true
|
|
19481
|
-
}, options);
|
|
19482
|
-
const url = removeHash(object.url).split("?")[0] || "";
|
|
19483
|
-
const queryFromUrl = extract(object.url);
|
|
19484
|
-
const query = __spreadValues(__spreadValues({}, parse(queryFromUrl, __spreadValues({ sort: false }, options))), object.query);
|
|
19485
|
-
let queryString = stringify(query, options);
|
|
19486
|
-
queryString && (queryString = `?${queryString}`);
|
|
19487
|
-
let hash = getHash(object.url);
|
|
19488
|
-
if (typeof object.fragmentIdentifier === "string") {
|
|
19489
|
-
const urlObjectForFragmentEncode = new URL(url);
|
|
19490
|
-
urlObjectForFragmentEncode.hash = object.fragmentIdentifier;
|
|
19491
|
-
hash = options[encodeFragmentIdentifier] ? urlObjectForFragmentEncode.hash : `#${object.fragmentIdentifier}`;
|
|
19492
|
-
}
|
|
19493
|
-
return `${url}${queryString}${hash}`;
|
|
19494
|
-
}
|
|
19495
|
-
__name(stringifyUrl, "stringifyUrl");
|
|
19496
|
-
function pick(input, filter, options) {
|
|
19497
|
-
options = __spreadValues({
|
|
19498
|
-
parseFragmentIdentifier: true,
|
|
19499
|
-
[encodeFragmentIdentifier]: false
|
|
19500
|
-
}, options);
|
|
19501
|
-
const { url, query, fragmentIdentifier } = parseUrl(input, options);
|
|
19502
|
-
return stringifyUrl({
|
|
19503
19254
|
url,
|
|
19504
|
-
query
|
|
19505
|
-
|
|
19506
|
-
|
|
19507
|
-
|
|
19508
|
-
|
|
19509
|
-
|
|
19510
|
-
|
|
19511
|
-
|
|
19512
|
-
}
|
|
19513
|
-
|
|
19514
|
-
|
|
19255
|
+
query
|
|
19256
|
+
}, fragmentIdentifier !== void 0 ? { fragmentIdentifier } : {});
|
|
19257
|
+
}, "parseUrl");
|
|
19258
|
+
var stringifyUrl = /* @__PURE__ */ __name((parsed) => {
|
|
19259
|
+
const params = new URLSearchParams();
|
|
19260
|
+
for (const [key, value] of Object.entries(parsed.query)) {
|
|
19261
|
+
if (value === void 0 || value === null) continue;
|
|
19262
|
+
params.append(key, String(value));
|
|
19263
|
+
}
|
|
19264
|
+
const search = params.toString().replace(/\+/g, "%20");
|
|
19265
|
+
const fragment = parsed.fragmentIdentifier ? `#${parsed.fragmentIdentifier}` : "";
|
|
19266
|
+
return `${parsed.url}${search ? `?${search}` : ""}${fragment}`;
|
|
19267
|
+
}, "stringifyUrl");
|
|
19515
19268
|
var fixSrcSetString2 = /* @__PURE__ */ __name((srcSetString, _mimetype, _webp = false) => {
|
|
19516
19269
|
const urls = getUrlsFromSrcSet(srcSetString);
|
|
19517
19270
|
return urls.map(([url, width]) => `${fixUrl2(url)} ${width}`).join(", ");
|
|
19518
19271
|
}, "fixSrcSetString");
|
|
19519
19272
|
var fixUrl2 = /* @__PURE__ */ __name((url, _mimetype, _webp = false) => {
|
|
19520
19273
|
if (url.split(" ").length > 1) return fixSrcSetString2(url);
|
|
19521
|
-
const parsedUrl =
|
|
19274
|
+
const parsedUrl = parseUrl(url);
|
|
19522
19275
|
parsedUrl.query.auto = "format";
|
|
19523
|
-
return
|
|
19276
|
+
return stringifyUrl(parsedUrl);
|
|
19524
19277
|
}, "fixUrl");
|
|
19525
19278
|
var resizeUrl2 = /* @__PURE__ */ __name((url, size) => {
|
|
19526
|
-
const parsedUrl =
|
|
19279
|
+
const parsedUrl = parseUrl(url);
|
|
19527
19280
|
parsedUrl.query.w = size.toString();
|
|
19528
|
-
return
|
|
19281
|
+
return stringifyUrl(parsedUrl);
|
|
19529
19282
|
}, "resizeUrl");
|
|
19530
19283
|
var changeQuality2 = /* @__PURE__ */ __name((url, quality) => {
|
|
19531
|
-
const parsedUrl =
|
|
19284
|
+
const parsedUrl = parseUrl(url);
|
|
19532
19285
|
parsedUrl.query.q = quality.toString();
|
|
19533
|
-
return
|
|
19286
|
+
return stringifyUrl(parsedUrl);
|
|
19534
19287
|
}, "changeQuality");
|
|
19535
19288
|
var resizeAndChangeQuality2 = /* @__PURE__ */ __name((url, size, quality, { fix = false } = {}) => {
|
|
19536
19289
|
const updatedUrl = changeQuality2(resizeUrl2(url, size), quality);
|
|
@@ -19573,9 +19326,9 @@ var fixUrl3 = /* @__PURE__ */ __name((url, _mimetype, _webp = false) => {
|
|
|
19573
19326
|
}, "fixUrl");
|
|
19574
19327
|
var VALID_DISCORD_SIZES = [20, 32, 40, 60, 64, 80, 100, 128, 256, 512, 1024, 2048, 4096];
|
|
19575
19328
|
var resizeUrl3 = /* @__PURE__ */ __name((url, size) => {
|
|
19576
|
-
const parsedUrl =
|
|
19329
|
+
const parsedUrl = parseUrl(url);
|
|
19577
19330
|
parsedUrl.query.size = quantizeValue(size, VALID_DISCORD_SIZES).toString();
|
|
19578
|
-
return
|
|
19331
|
+
return stringifyUrl(parsedUrl);
|
|
19579
19332
|
}, "resizeUrl");
|
|
19580
19333
|
var changeQuality3 = /* @__PURE__ */ __name((url, _quality) => {
|
|
19581
19334
|
return url;
|
|
@@ -19671,6 +19424,7 @@ object({
|
|
|
19671
19424
|
image: string(),
|
|
19672
19425
|
loading: union([ImageResizingValidator, ImageUploadingValidator]).optional()
|
|
19673
19426
|
});
|
|
19427
|
+
__toESM(require_dist());
|
|
19674
19428
|
var isAppDidWeb = /* @__PURE__ */ __name((did) => {
|
|
19675
19429
|
if (!did) return false;
|
|
19676
19430
|
const LCN_APP_DID_WEB_REGEX = /^did:web:.*:app:([^:]+)$/;
|
|
@@ -19808,14 +19562,28 @@ const VERIFIER_STATES = {
|
|
|
19808
19562
|
appIssuer: "App Issuer",
|
|
19809
19563
|
untrustedVerifier: "Untrusted Issuer"
|
|
19810
19564
|
};
|
|
19811
|
-
const VerifierStateBadgeAndText = (
|
|
19812
|
-
verifierState,
|
|
19813
|
-
|
|
19814
|
-
|
|
19815
|
-
}
|
|
19816
|
-
|
|
19817
|
-
|
|
19818
|
-
|
|
19565
|
+
const VerifierStateBadgeAndText = forwardRef(
|
|
19566
|
+
({ verifierState, className = "", unknownVerifierTitle, onClick }, ref) => {
|
|
19567
|
+
const effectiveState = unknownVerifierTitle && verifierState !== VERIFIER_STATES.selfVerified && verifierState !== VERIFIER_STATES.untrustedVerifier && verifierState !== VERIFIER_STATES.appIssuer ? VERIFIER_STATES.trustedVerifier : verifierState;
|
|
19568
|
+
const content = /* @__PURE__ */ React.createElement(React.Fragment, null, effectiveState === VERIFIER_STATES.selfVerified && /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-green-dark" }, /* @__PURE__ */ React.createElement(PersonBadge, null), /* @__PURE__ */ React.createElement("span", { className: "whitespace-nowrap" }, "Self Issued")), effectiveState === VERIFIER_STATES.trustedVerifier && /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-green-600" }, /* @__PURE__ */ React.createElement(VerifiedBadge, null), /* @__PURE__ */ React.createElement("span", { className: "whitespace-nowrap" }, unknownVerifierTitle != null ? unknownVerifierTitle : "Trusted Issuer")), effectiveState === VERIFIER_STATES.unknownVerifier && /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-orange-500" }, /* @__PURE__ */ React.createElement(UnknownVerifierBadge, null), /* @__PURE__ */ React.createElement("span", { className: "whitespace-nowrap" }, unknownVerifierTitle != null ? unknownVerifierTitle : VERIFIER_STATES.unknownVerifier)), effectiveState === VERIFIER_STATES.appIssuer && /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-cyan-600" }, /* @__PURE__ */ React.createElement(VerifiedBadge, null), /* @__PURE__ */ React.createElement("span", { className: "whitespace-nowrap" }, "App Issuer")), effectiveState === VERIFIER_STATES.untrustedVerifier && /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-red-mastercard" }, /* @__PURE__ */ React.createElement(RedFlag, null), /* @__PURE__ */ React.createElement("span", { className: "whitespace-nowrap" }, "Untrusted Issuer")));
|
|
19569
|
+
return /* @__PURE__ */ React.createElement("div", { className: `flex justify-center ${className}` }, onClick ? /* @__PURE__ */ React.createElement(
|
|
19570
|
+
"button",
|
|
19571
|
+
{
|
|
19572
|
+
ref,
|
|
19573
|
+
type: "button",
|
|
19574
|
+
className: "appearance-none bg-transparent p-0 text-left",
|
|
19575
|
+
onClick: (event) => {
|
|
19576
|
+
event.stopPropagation();
|
|
19577
|
+
onClick(event);
|
|
19578
|
+
},
|
|
19579
|
+
onMouseDown: (event) => event.stopPropagation(),
|
|
19580
|
+
"aria-haspopup": "dialog"
|
|
19581
|
+
},
|
|
19582
|
+
content
|
|
19583
|
+
) : /* @__PURE__ */ React.createElement("div", null, content));
|
|
19584
|
+
}
|
|
19585
|
+
);
|
|
19586
|
+
VerifierStateBadgeAndText.displayName = "VerifierStateBadgeAndText";
|
|
19819
19587
|
|
|
19820
|
-
export { AcuteCheckmark as A, Camera as C, ExclamationPoint as E, FatArrow as F, GenericDocumentIcon as G, InfoIcon as I, LinkIcon as L, PersonBadge as P, RoundedCorner as R, SelectedSkills as S, UnknownVerifierBadge as U, VERIFIER_STATES as V,
|
|
19821
|
-
//# sourceMappingURL=VerifierStateBadgeAndText-
|
|
19588
|
+
export { AcuteCheckmark as A, Camera as C, ExclamationPoint as E, FatArrow as F, GenericDocumentIcon as G, InfoIcon as I, LinkIcon as L, PersonBadge as P, RoundedCorner as R, SelectedSkills as S, UnknownVerifierBadge as U, VERIFIER_STATES as V, isLearnCardNetworkDid as a, getAvatarColorFromString as b, capitalize as c, getBaseUrl as d, VideoIcon as e, formatDidDisplayName as f, getAvatarLetterFromDid as g, LeftArrow as h, isDid as i, SkillsBox as j, IssuerSeal as k, isAppDidWeb as l, VerifierStateBadgeAndText as m, VerifiedBadge as n, RedFlag as o, prettyBytes as p, resolveProfileDisplay as r };
|
|
19589
|
+
//# sourceMappingURL=VerifierStateBadgeAndText-f878973e.js.map
|