@learncard/react 2.12.1 → 2.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/cjs/{BoostGenericCard-71899305.js → BoostGenericCard-72cab860.js} +3 -3
  2. package/dist/cjs/{BoostGenericCard-71899305.js.map → BoostGenericCard-72cab860.js.map} +1 -1
  3. package/dist/cjs/{CertificateDisplayCard-f10b46b1.js → CertificateDisplayCard-a036cdc5.js} +20 -14
  4. package/dist/cjs/CertificateDisplayCard-a036cdc5.js.map +1 -0
  5. package/dist/cjs/{MeritBadgeDisplayCard-d50cfb5e.js → MeritBadgeDisplayCard-2e4edd20.js} +4 -4
  6. package/dist/cjs/MeritBadgeDisplayCard-2e4edd20.js.map +1 -0
  7. package/dist/cjs/{MeritBadgeSkillsCount-e46503f5.js → MeritBadgeSkillsCount-472542c1.js} +2 -2
  8. package/dist/cjs/{MeritBadgeSkillsCount-e46503f5.js.map → MeritBadgeSkillsCount-472542c1.js.map} +1 -1
  9. package/dist/cjs/{SchoolIDCard-2d3cbb2c.js → SchoolIDCard-10796199.js} +1184 -3
  10. package/dist/cjs/SchoolIDCard-10796199.js.map +1 -0
  11. package/dist/cjs/{VCCard-42479c97.js → VCCard-ebbbda88.js} +3 -3
  12. package/dist/cjs/{VCCard-42479c97.js.map → VCCard-ebbbda88.js.map} +1 -1
  13. package/dist/cjs/{VCDisplayBackFace-d1cf9f73.js → VCDisplayBackFace-13c73f23.js} +3 -3
  14. package/dist/cjs/{VCDisplayBackFace-d1cf9f73.js.map → VCDisplayBackFace-13c73f23.js.map} +1 -1
  15. package/dist/cjs/{VCDisplayCard-cf46c224.js → VCDisplayCard-3720145a.js} +3 -3
  16. package/dist/cjs/{VCDisplayCard-cf46c224.js.map → VCDisplayCard-3720145a.js.map} +1 -1
  17. package/dist/cjs/{VCDisplayCard2-4a201a8a.js → VCDisplayCard2-ae93ccd2.js} +38 -30
  18. package/dist/cjs/VCDisplayCard2-ae93ccd2.js.map +1 -0
  19. package/dist/cjs/{VCVerificationPill-6c9dcf80.js → VCVerificationPill-a1607dff.js} +2 -2
  20. package/dist/cjs/{VCVerificationPill-6c9dcf80.js.map → VCVerificationPill-a1607dff.js.map} +1 -1
  21. package/dist/cjs/{VerifierStateBadgeAndText-934239ab.js → VerifierStateBadgeAndText-5f10743e.js} +166 -107
  22. package/dist/cjs/VerifierStateBadgeAndText-5f10743e.js.map +1 -0
  23. package/dist/cjs/{credential.helpers-17a10601.js → credential.helpers-65ea507a.js} +2 -2
  24. package/dist/cjs/{credential.helpers-17a10601.js.map → credential.helpers-65ea507a.js.map} +1 -1
  25. package/dist/cjs/{i18n-8fd90b2f.js → i18n-ddbb18e7.js} +12 -1
  26. package/dist/cjs/{i18n-8fd90b2f.js.map → i18n-ddbb18e7.js.map} +1 -1
  27. package/dist/cjs/index.js +14 -15
  28. package/dist/cjs/index.js.map +1 -1
  29. package/dist/cjs/index14.js +14 -15
  30. package/dist/cjs/index14.js.map +1 -1
  31. package/dist/cjs/index22.js +6 -6
  32. package/dist/cjs/index31.js +1 -2
  33. package/dist/cjs/index31.js.map +1 -1
  34. package/dist/cjs/index39.js +11 -12
  35. package/dist/cjs/index39.js.map +1 -1
  36. package/dist/cjs/index4.js +4 -4
  37. package/dist/cjs/index40.js +4 -4
  38. package/dist/cjs/index41.js +5 -5
  39. package/dist/cjs/index42.js +7 -8
  40. package/dist/cjs/index42.js.map +1 -1
  41. package/dist/cjs/index43.js +1 -1
  42. package/dist/cjs/index46.js +2 -2
  43. package/dist/cjs/index7.js +5 -4
  44. package/dist/cjs/index7.js.map +1 -1
  45. package/dist/cjs/{types.esm-73624b33.js → types.esm-50b3eecd.js} +46 -3
  46. package/dist/cjs/types.esm-50b3eecd.js.map +1 -0
  47. package/dist/esm/{BoostGenericCard-3b3ff784.js → BoostGenericCard-2f586072.js} +3 -3
  48. package/dist/esm/{BoostGenericCard-3b3ff784.js.map → BoostGenericCard-2f586072.js.map} +1 -1
  49. package/dist/esm/{CertificateDisplayCard-f26ef278.js → CertificateDisplayCard-ff1ae869.js} +20 -14
  50. package/dist/esm/CertificateDisplayCard-ff1ae869.js.map +1 -0
  51. package/dist/esm/{MeritBadgeDisplayCard-0d0b28c7.js → MeritBadgeDisplayCard-b8b904d2.js} +4 -4
  52. package/dist/esm/MeritBadgeDisplayCard-b8b904d2.js.map +1 -0
  53. package/dist/esm/{MeritBadgeSkillsCount-09e211fc.js → MeritBadgeSkillsCount-46d9c24b.js} +2 -2
  54. package/dist/esm/{MeritBadgeSkillsCount-09e211fc.js.map → MeritBadgeSkillsCount-46d9c24b.js.map} +1 -1
  55. package/dist/esm/{SchoolIDCard-fbd1cf6c.js → SchoolIDCard-f82e40bc.js} +1183 -2
  56. package/dist/esm/SchoolIDCard-f82e40bc.js.map +1 -0
  57. package/dist/esm/{VCCard-7e5e00d7.js → VCCard-e2ebb922.js} +3 -3
  58. package/dist/esm/{VCCard-7e5e00d7.js.map → VCCard-e2ebb922.js.map} +1 -1
  59. package/dist/esm/{VCDisplayBackFace-ae74476d.js → VCDisplayBackFace-4f2d700d.js} +3 -3
  60. package/dist/esm/{VCDisplayBackFace-ae74476d.js.map → VCDisplayBackFace-4f2d700d.js.map} +1 -1
  61. package/dist/esm/{VCDisplayCard-ac1f367a.js → VCDisplayCard-32e126f8.js} +3 -3
  62. package/dist/esm/{VCDisplayCard-ac1f367a.js.map → VCDisplayCard-32e126f8.js.map} +1 -1
  63. package/dist/esm/{VCDisplayCard2-7011596e.js → VCDisplayCard2-ec2177de.js} +38 -30
  64. package/dist/esm/VCDisplayCard2-ec2177de.js.map +1 -0
  65. package/dist/esm/{VCVerificationPill-04ffdf56.js → VCVerificationPill-0c336075.js} +2 -2
  66. package/dist/esm/{VCVerificationPill-04ffdf56.js.map → VCVerificationPill-0c336075.js.map} +1 -1
  67. package/dist/esm/{VerifierStateBadgeAndText-750a6c24.js → VerifierStateBadgeAndText-0a4e0c63.js} +167 -108
  68. package/dist/esm/VerifierStateBadgeAndText-0a4e0c63.js.map +1 -0
  69. package/dist/esm/{credential.helpers-4fbdd8e8.js → credential.helpers-61005784.js} +2 -2
  70. package/dist/esm/{credential.helpers-4fbdd8e8.js.map → credential.helpers-61005784.js.map} +1 -1
  71. package/dist/esm/{i18n-08b606cb.js → i18n-35209bfa.js} +12 -1
  72. package/dist/esm/{i18n-08b606cb.js.map → i18n-35209bfa.js.map} +1 -1
  73. package/dist/esm/index.js +14 -15
  74. package/dist/esm/index.js.map +1 -1
  75. package/dist/esm/index14.js +14 -15
  76. package/dist/esm/index14.js.map +1 -1
  77. package/dist/esm/index22.js +6 -6
  78. package/dist/esm/index31.js +1 -2
  79. package/dist/esm/index31.js.map +1 -1
  80. package/dist/esm/index39.js +11 -12
  81. package/dist/esm/index39.js.map +1 -1
  82. package/dist/esm/index4.js +4 -4
  83. package/dist/esm/index40.js +4 -4
  84. package/dist/esm/index41.js +5 -5
  85. package/dist/esm/index42.js +7 -8
  86. package/dist/esm/index42.js.map +1 -1
  87. package/dist/esm/index43.js +1 -1
  88. package/dist/esm/index46.js +2 -2
  89. package/dist/esm/index7.js +5 -4
  90. package/dist/esm/index7.js.map +1 -1
  91. package/dist/esm/{types.esm-5f75bd4a.js → types.esm-2762569e.js} +42 -4
  92. package/dist/esm/types.esm-2762569e.js.map +1 -0
  93. package/dist/index.d.ts +20 -2
  94. package/dist/main.css +1 -1
  95. package/dist/main.js +1 -1
  96. package/package.json +6 -10
  97. package/src/assets/styles/main.css +24 -18
  98. package/src/components/CertificateDisplayCard/AlignmentRow.tsx +4 -2
  99. package/src/components/CertificateDisplayCard/AlignmentsBox.tsx +12 -9
  100. package/src/components/CertificateDisplayCard/InfoBox.tsx +3 -1
  101. package/src/components/CertificateDisplayCard/VerifierStateBadgeAndText.tsx +10 -6
  102. package/src/components/CircleIcon/__tests__/CircleIcon.test.tsx +1 -1
  103. package/src/components/MeritBadgeDisplayCard/MediaAttachmentsBox.tsx +3 -2
  104. package/src/components/VCDisplayCard2/InfoBox.tsx +3 -1
  105. package/src/components/VCDisplayCard2/TruncateTextBox.tsx +4 -2
  106. package/src/components/VCDisplayCard2/VC2BackFace.tsx +6 -4
  107. package/src/components/VCDisplayCard2/VC2FrontFaceInfo.tsx +22 -22
  108. package/src/components/VCDisplayCard2/VCDisplayCard2.tsx +10 -2
  109. package/src/components/VCDisplayCard2/__tests__/VC2LocalizedLabels.test.tsx +122 -0
  110. package/src/helpers/credential.helpers.test.ts +1 -1
  111. package/src/i18n/index.tsx +12 -0
  112. package/dist/cjs/CertificateDisplayCard-f10b46b1.js.map +0 -1
  113. package/dist/cjs/MeritBadgeDisplayCard-d50cfb5e.js.map +0 -1
  114. package/dist/cjs/SchoolIDCard-2d3cbb2c.js.map +0 -1
  115. package/dist/cjs/VCDisplayCard2-4a201a8a.js.map +0 -1
  116. package/dist/cjs/VerifierStateBadgeAndText-934239ab.js.map +0 -1
  117. package/dist/cjs/index-47efbf5b.js +0 -1186
  118. package/dist/cjs/index-47efbf5b.js.map +0 -1
  119. package/dist/cjs/types.esm-73624b33.js.map +0 -1
  120. package/dist/esm/CertificateDisplayCard-f26ef278.js.map +0 -1
  121. package/dist/esm/MeritBadgeDisplayCard-0d0b28c7.js.map +0 -1
  122. package/dist/esm/SchoolIDCard-fbd1cf6c.js.map +0 -1
  123. package/dist/esm/VCDisplayCard2-7011596e.js.map +0 -1
  124. package/dist/esm/VerifierStateBadgeAndText-750a6c24.js.map +0 -1
  125. package/dist/esm/index-cbd2e9db.js +0 -1184
  126. package/dist/esm/index-cbd2e9db.js.map +0 -1
  127. package/dist/esm/types.esm-5f75bd4a.js.map +0 -1
@@ -11,7 +11,8 @@ var Social = require('./social.png');
11
11
  var Stem = require('./stem.png');
12
12
  var Trade = require('./trade.png');
13
13
  var PuzzlePiece = require('./PuzzlePiece-e64f4596.js');
14
- var types_esm = require('./types.esm-73624b33.js');
14
+ var types_esm = require('./types.esm-50b3eecd.js');
15
+ var i18n = require('./i18n-ddbb18e7.js');
15
16
 
16
17
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
17
18
 
@@ -434,6 +435,10 @@ const VideoIcon = ({ className = "", size = "25" }) => {
434
435
  );
435
436
  };
436
437
 
438
+ function number(params) {
439
+ return types_esm._coercedNumber(types_esm.ZodNumber, params);
440
+ }
441
+
437
442
  const capitalize = (string) => {
438
443
  return string ? string[0].toUpperCase() + string.slice(1) : "";
439
444
  };
@@ -3161,12 +3166,11 @@ var produce = immer.produce;
3161
3166
  *
3162
3167
  * @author Dan Kogai (https://github.com/dankogai)
3163
3168
  */
3164
- const version = '3.8.0';
3169
+ const version = '3.9.3';
3165
3170
  /**
3166
3171
  * @deprecated use lowercase `version`.
3167
3172
  */
3168
3173
  const VERSION = version;
3169
- const _hasBuffer = typeof Buffer === 'function';
3170
3174
  const _TD = typeof TextDecoder === 'function' ? new TextDecoder('utf-8', { ignoreBOM: true }) : undefined;
3171
3175
  const _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;
3172
3176
  const b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
@@ -3210,10 +3214,8 @@ const btoaPolyfill = (bin) => {
3210
3214
  * @returns {string} Base64-encoded string
3211
3215
  */
3212
3216
  const _btoa = typeof btoa === 'function' ? (bin) => btoa(bin)
3213
- : _hasBuffer ? (bin) => Buffer.from(bin, 'binary').toString('base64')
3214
- : btoaPolyfill;
3215
- const _fromUint8Array = _hasBuffer
3216
- ? (u8a) => Buffer.from(u8a).toString('base64')
3217
+ : btoaPolyfill;
3218
+ const _fromUint8Array = typeof Uint8Array.prototype.toBase64 === 'function' ? (u8a) => u8a.toBase64()
3217
3219
  : (u8a) => {
3218
3220
  // cf. https://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string/12713326#12713326
3219
3221
  const maxargs = 0x1000;
@@ -3252,7 +3254,7 @@ const cb_utob = (c) => {
3252
3254
  + _fromCC(0x80 | (cc & 0x3f)));
3253
3255
  }
3254
3256
  };
3255
- const re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
3257
+ const re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\x00-\x7F]/g;
3256
3258
  /**
3257
3259
  * @deprecated should have been internal use only.
3258
3260
  * @param {string} src UTF-8 string
@@ -3260,11 +3262,9 @@ const re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
3260
3262
  */
3261
3263
  const utob = (u) => u.replace(re_utob, cb_utob);
3262
3264
  //
3263
- const _encode = _hasBuffer
3264
- ? (s) => Buffer.from(s, 'utf8').toString('base64')
3265
- : _TE
3266
- ? (s) => _fromUint8Array(_TE.encode(s))
3267
- : (s) => _btoa(utob(s));
3265
+ const _encode = _TE
3266
+ ? (s) => _fromUint8Array(_TE.encode(s))
3267
+ : (s) => _btoa(utob(s));
3268
3268
  /**
3269
3269
  * converts a UTF-8-encoded string to a Base64 string.
3270
3270
  * @param {boolean} [urlsafe] if `true` make the result URL-safe
@@ -3340,22 +3340,18 @@ const atobPolyfill = (asc) => {
3340
3340
  * @returns {string} binary string
3341
3341
  */
3342
3342
  const _atob = typeof atob === 'function' ? (asc) => atob(_tidyB64(asc))
3343
- : _hasBuffer ? (asc) => Buffer.from(asc, 'base64').toString('binary')
3344
- : atobPolyfill;
3343
+ : atobPolyfill;
3345
3344
  //
3346
- const _toUint8Array = _hasBuffer
3347
- ? (a) => _U8Afrom(Buffer.from(a, 'base64'))
3348
- : (a) => _U8Afrom(_atob(a).split('').map(c => c.charCodeAt(0)));
3345
+ const _toUint8Array = typeof Uint8Array.fromBase64 === 'function'
3346
+ ? (a) => Uint8Array.fromBase64(a) : (a) => _U8Afrom(_atob(a).split('').map(c => c.charCodeAt(0)));
3349
3347
  /**
3350
3348
  * converts a Base64 string to a Uint8Array.
3351
3349
  */
3352
3350
  const toUint8Array = (a) => _toUint8Array(_unURI(a));
3353
3351
  //
3354
- const _decode = _hasBuffer
3355
- ? (a) => Buffer.from(a, 'base64').toString('utf8')
3356
- : _TD
3357
- ? (a) => _TD.decode(_toUint8Array(a))
3358
- : (a) => btou(_atob(a));
3352
+ const _decode = _TD
3353
+ ? (a) => _TD.decode(_toUint8Array(a))
3354
+ : (a) => btou(_atob(a));
3359
3355
  const _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == '-' ? '+' : '/'));
3360
3356
  /**
3361
3357
  * converts a Base64 string to a UTF-8 string.
@@ -3483,6 +3479,7 @@ var __async = (__this, __arguments, generator) => {
3483
3479
  step((generator = generator.apply(__this, __arguments)).next());
3484
3480
  });
3485
3481
  };
3482
+ var _a;
3486
3483
  var __create = Object.create;
3487
3484
  var __defProp2 = Object.defineProperty;
3488
3485
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -3678,6 +3675,12 @@ var require_types_cjs_development = __commonJS({
3678
3675
  LCNBoostClaimLinkSigningAuthorityValidator: /* @__PURE__ */ __name(() => LCNBoostClaimLinkSigningAuthorityValidator, "LCNBoostClaimLinkSigningAuthorityValidator"),
3679
3676
  LCNBoostStatus: /* @__PURE__ */ __name(() => LCNBoostStatus, "LCNBoostStatus"),
3680
3677
  LCNConnectionProfileValidator: /* @__PURE__ */ __name(() => LCNConnectionProfileValidator, "LCNConnectionProfileValidator"),
3678
+ LCNConnectionPromptActionResultValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptActionResultValidator, "LCNConnectionPromptActionResultValidator"),
3679
+ LCNConnectionPromptActionStatusValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptActionStatusValidator, "LCNConnectionPromptActionStatusValidator"),
3680
+ LCNConnectionPromptMetadataValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptMetadataValidator, "LCNConnectionPromptMetadataValidator"),
3681
+ LCNConnectionPromptStatusValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptStatusValidator, "LCNConnectionPromptStatusValidator"),
3682
+ LCNConnectionPromptSurfaceValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptSurfaceValidator, "LCNConnectionPromptSurfaceValidator"),
3683
+ LCNConnectionPromptValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptValidator, "LCNConnectionPromptValidator"),
3681
3684
  LCNDomainOrOriginValidator: /* @__PURE__ */ __name(() => LCNDomainOrOriginValidator, "LCNDomainOrOriginValidator"),
3682
3685
  LCNInboxContactMethodValidator: /* @__PURE__ */ __name(() => LCNInboxContactMethodValidator, "LCNInboxContactMethodValidator"),
3683
3686
  LCNInboxStatusEnumValidator: /* @__PURE__ */ __name(() => LCNInboxStatusEnumValidator, "LCNInboxStatusEnumValidator"),
@@ -3689,6 +3692,7 @@ var require_types_cjs_development = __commonJS({
3689
3692
  LCNNotificationDataValidator: /* @__PURE__ */ __name(() => LCNNotificationDataValidator, "LCNNotificationDataValidator"),
3690
3693
  LCNNotificationInboxValidator: /* @__PURE__ */ __name(() => LCNNotificationInboxValidator, "LCNNotificationInboxValidator"),
3691
3694
  LCNNotificationMessageValidator: /* @__PURE__ */ __name(() => LCNNotificationMessageValidator, "LCNNotificationMessageValidator"),
3695
+ LCNNotificationMetadataValidator: /* @__PURE__ */ __name(() => LCNNotificationMetadataValidator, "LCNNotificationMetadataValidator"),
3692
3696
  LCNNotificationTypeEnumValidator: /* @__PURE__ */ __name(() => LCNNotificationTypeEnumValidator, "LCNNotificationTypeEnumValidator"),
3693
3697
  LCNNotificationValidator: /* @__PURE__ */ __name(() => LCNNotificationValidator, "LCNNotificationValidator"),
3694
3698
  LCNProfileConnectionStatusEnum: /* @__PURE__ */ __name(() => LCNProfileConnectionStatusEnum, "LCNProfileConnectionStatusEnum"),
@@ -4337,7 +4341,7 @@ var require_types_cjs_development = __commonJS({
4337
4341
  util: /* @__PURE__ */ __name(() => util_exports, "util"),
4338
4342
  version: /* @__PURE__ */ __name(() => version, "version")
4339
4343
  });
4340
- var _a;
4344
+ var _a2;
4341
4345
  var NEVER = /* @__PURE__ */ Object.freeze({
4342
4346
  status: "aborted"
4343
4347
  });
@@ -4417,7 +4421,7 @@ var require_types_cjs_development = __commonJS({
4417
4421
  this.name = "ZodEncodeError";
4418
4422
  }
4419
4423
  }, __name(_b, "$ZodEncodeError"), __name2(_b, "$ZodEncodeError"), _b);
4420
- (_c = (_a = globalThis).__zod_globalConfig) != null ? _c : _a.__zod_globalConfig = {};
4424
+ (_c = (_a2 = globalThis).__zod_globalConfig) != null ? _c : _a2.__zod_globalConfig = {};
4421
4425
  var globalConfig = globalThis.__zod_globalConfig;
4422
4426
  function config(newConfig) {
4423
4427
  if (newConfig)
@@ -14609,7 +14613,7 @@ var require_types_cjs_development = __commonJS({
14609
14613
  }
14610
14614
  __name(yo_default, "yo_default");
14611
14615
  __name2(yo_default, "default");
14612
- var _a2;
14616
+ var _a22;
14613
14617
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
14614
14618
  var $input = /* @__PURE__ */ Symbol("ZodInput");
14615
14619
  var $ZodRegistry = (_f = class {
@@ -14658,7 +14662,7 @@ var require_types_cjs_development = __commonJS({
14658
14662
  }
14659
14663
  __name(registry, "registry");
14660
14664
  __name2(registry, "registry");
14661
- (_g = (_a2 = globalThis).__zod_globalRegistry) != null ? _g : _a2.__zod_globalRegistry = registry();
14665
+ (_g = (_a22 = globalThis).__zod_globalRegistry) != null ? _g : _a22.__zod_globalRegistry = registry();
14662
14666
  var globalRegistry = globalThis.__zod_globalRegistry;
14663
14667
  // @__NO_SIDE_EFFECTS__
14664
14668
  function _string(Class2, params) {
@@ -18623,7 +18627,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18623
18627
  var ZodFirstPartyTypeKind;
18624
18628
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
18625
18629
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
18626
- var z2 = __spreadProps(__spreadValues(__spreadValues({}, schemas_exports2), checks_exports2), {
18630
+ var z3 = __spreadProps(__spreadValues(__spreadValues({}, schemas_exports2), checks_exports2), {
18627
18631
  iso: iso_exports
18628
18632
  });
18629
18633
  var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
@@ -18735,7 +18739,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18735
18739
  function convertBaseSchema(schema, ctx) {
18736
18740
  if (schema.not !== void 0) {
18737
18741
  if (typeof schema.not === "object" && Object.keys(schema.not).length === 0) {
18738
- return z2.never();
18742
+ return z3.never();
18739
18743
  }
18740
18744
  throw new Error("not is not supported in Zod (except { not: {} } for never)");
18741
18745
  }
@@ -18757,7 +18761,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18757
18761
  return ctx.refs.get(refPath);
18758
18762
  }
18759
18763
  if (ctx.processing.has(refPath)) {
18760
- return z2.lazy(() => {
18764
+ return z3.lazy(() => {
18761
18765
  if (!ctx.refs.has(refPath)) {
18762
18766
  throw new Error(`Circular reference not resolved: ${refPath}`);
18763
18767
  }
@@ -18774,25 +18778,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18774
18778
  if (schema.enum !== void 0) {
18775
18779
  const enumValues = schema.enum;
18776
18780
  if (ctx.version === "openapi-3.0" && schema.nullable === true && enumValues.length === 1 && enumValues[0] === null) {
18777
- return z2.null();
18781
+ return z3.null();
18778
18782
  }
18779
18783
  if (enumValues.length === 0) {
18780
- return z2.never();
18784
+ return z3.never();
18781
18785
  }
18782
18786
  if (enumValues.length === 1) {
18783
- return z2.literal(enumValues[0]);
18787
+ return z3.literal(enumValues[0]);
18784
18788
  }
18785
18789
  if (enumValues.every((v) => typeof v === "string")) {
18786
- return z2.enum(enumValues);
18790
+ return z3.enum(enumValues);
18787
18791
  }
18788
- const literalSchemas = enumValues.map((v) => z2.literal(v));
18792
+ const literalSchemas = enumValues.map((v) => z3.literal(v));
18789
18793
  if (literalSchemas.length < 2) {
18790
18794
  return literalSchemas[0];
18791
18795
  }
18792
- return z2.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]);
18796
+ return z3.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]);
18793
18797
  }
18794
18798
  if (schema.const !== void 0) {
18795
- return z2.literal(schema.const);
18799
+ return z3.literal(schema.const);
18796
18800
  }
18797
18801
  const type = schema.type;
18798
18802
  if (Array.isArray(type)) {
@@ -18801,68 +18805,68 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18801
18805
  return convertBaseSchema(typeSchema, ctx);
18802
18806
  });
18803
18807
  if (typeSchemas.length === 0) {
18804
- return z2.never();
18808
+ return z3.never();
18805
18809
  }
18806
18810
  if (typeSchemas.length === 1) {
18807
18811
  return typeSchemas[0];
18808
18812
  }
18809
- return z2.union(typeSchemas);
18813
+ return z3.union(typeSchemas);
18810
18814
  }
18811
18815
  if (!type) {
18812
- return z2.any();
18816
+ return z3.any();
18813
18817
  }
18814
18818
  let zodSchema;
18815
18819
  switch (type) {
18816
18820
  case "string": {
18817
- let stringSchema = z2.string();
18821
+ let stringSchema = z3.string();
18818
18822
  if (schema.format) {
18819
18823
  const format = schema.format;
18820
18824
  if (format === "email") {
18821
- stringSchema = stringSchema.check(z2.email());
18825
+ stringSchema = stringSchema.check(z3.email());
18822
18826
  } else if (format === "uri" || format === "uri-reference") {
18823
- stringSchema = stringSchema.check(z2.url());
18827
+ stringSchema = stringSchema.check(z3.url());
18824
18828
  } else if (format === "uuid" || format === "guid") {
18825
- stringSchema = stringSchema.check(z2.uuid());
18829
+ stringSchema = stringSchema.check(z3.uuid());
18826
18830
  } else if (format === "date-time") {
18827
- stringSchema = stringSchema.check(z2.iso.datetime());
18831
+ stringSchema = stringSchema.check(z3.iso.datetime());
18828
18832
  } else if (format === "date") {
18829
- stringSchema = stringSchema.check(z2.iso.date());
18833
+ stringSchema = stringSchema.check(z3.iso.date());
18830
18834
  } else if (format === "time") {
18831
- stringSchema = stringSchema.check(z2.iso.time());
18835
+ stringSchema = stringSchema.check(z3.iso.time());
18832
18836
  } else if (format === "duration") {
18833
- stringSchema = stringSchema.check(z2.iso.duration());
18837
+ stringSchema = stringSchema.check(z3.iso.duration());
18834
18838
  } else if (format === "ipv4") {
18835
- stringSchema = stringSchema.check(z2.ipv4());
18839
+ stringSchema = stringSchema.check(z3.ipv4());
18836
18840
  } else if (format === "ipv6") {
18837
- stringSchema = stringSchema.check(z2.ipv6());
18841
+ stringSchema = stringSchema.check(z3.ipv6());
18838
18842
  } else if (format === "mac") {
18839
- stringSchema = stringSchema.check(z2.mac());
18843
+ stringSchema = stringSchema.check(z3.mac());
18840
18844
  } else if (format === "cidr") {
18841
- stringSchema = stringSchema.check(z2.cidrv4());
18845
+ stringSchema = stringSchema.check(z3.cidrv4());
18842
18846
  } else if (format === "cidr-v6") {
18843
- stringSchema = stringSchema.check(z2.cidrv6());
18847
+ stringSchema = stringSchema.check(z3.cidrv6());
18844
18848
  } else if (format === "base64") {
18845
- stringSchema = stringSchema.check(z2.base64());
18849
+ stringSchema = stringSchema.check(z3.base64());
18846
18850
  } else if (format === "base64url") {
18847
- stringSchema = stringSchema.check(z2.base64url());
18851
+ stringSchema = stringSchema.check(z3.base64url());
18848
18852
  } else if (format === "e164") {
18849
- stringSchema = stringSchema.check(z2.e164());
18853
+ stringSchema = stringSchema.check(z3.e164());
18850
18854
  } else if (format === "jwt") {
18851
- stringSchema = stringSchema.check(z2.jwt());
18855
+ stringSchema = stringSchema.check(z3.jwt());
18852
18856
  } else if (format === "emoji") {
18853
- stringSchema = stringSchema.check(z2.emoji());
18857
+ stringSchema = stringSchema.check(z3.emoji());
18854
18858
  } else if (format === "nanoid") {
18855
- stringSchema = stringSchema.check(z2.nanoid());
18859
+ stringSchema = stringSchema.check(z3.nanoid());
18856
18860
  } else if (format === "cuid") {
18857
- stringSchema = stringSchema.check(z2.cuid());
18861
+ stringSchema = stringSchema.check(z3.cuid());
18858
18862
  } else if (format === "cuid2") {
18859
- stringSchema = stringSchema.check(z2.cuid2());
18863
+ stringSchema = stringSchema.check(z3.cuid2());
18860
18864
  } else if (format === "ulid") {
18861
- stringSchema = stringSchema.check(z2.ulid());
18865
+ stringSchema = stringSchema.check(z3.ulid());
18862
18866
  } else if (format === "xid") {
18863
- stringSchema = stringSchema.check(z2.xid());
18867
+ stringSchema = stringSchema.check(z3.xid());
18864
18868
  } else if (format === "ksuid") {
18865
- stringSchema = stringSchema.check(z2.ksuid());
18869
+ stringSchema = stringSchema.check(z3.ksuid());
18866
18870
  }
18867
18871
  }
18868
18872
  if (typeof schema.minLength === "number") {
@@ -18879,7 +18883,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18879
18883
  }
18880
18884
  case "number":
18881
18885
  case "integer": {
18882
- let numberSchema = type === "integer" ? z2.number().int() : z2.number();
18886
+ let numberSchema = type === "integer" ? z3.number().int() : z3.number();
18883
18887
  if (typeof schema.minimum === "number") {
18884
18888
  numberSchema = numberSchema.min(schema.minimum);
18885
18889
  }
@@ -18903,11 +18907,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18903
18907
  break;
18904
18908
  }
18905
18909
  case "boolean": {
18906
- zodSchema = z2.boolean();
18910
+ zodSchema = z3.boolean();
18907
18911
  break;
18908
18912
  }
18909
18913
  case "null": {
18910
- zodSchema = z2.null();
18914
+ zodSchema = z3.null();
18911
18915
  break;
18912
18916
  }
18913
18917
  case "object": {
@@ -18920,14 +18924,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18920
18924
  }
18921
18925
  if (schema.propertyNames) {
18922
18926
  const keySchema = convertSchema(schema.propertyNames, ctx);
18923
- const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object" ? convertSchema(schema.additionalProperties, ctx) : z2.any();
18927
+ const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object" ? convertSchema(schema.additionalProperties, ctx) : z3.any();
18924
18928
  if (Object.keys(shape).length === 0) {
18925
- zodSchema = z2.record(keySchema, valueSchema);
18929
+ zodSchema = z3.record(keySchema, valueSchema);
18926
18930
  break;
18927
18931
  }
18928
- const objectSchema2 = z2.object(shape).passthrough();
18929
- const recordSchema = z2.looseRecord(keySchema, valueSchema);
18930
- zodSchema = z2.intersection(objectSchema2, recordSchema);
18932
+ const objectSchema2 = z3.object(shape).passthrough();
18933
+ const recordSchema = z3.looseRecord(keySchema, valueSchema);
18934
+ zodSchema = z3.intersection(objectSchema2, recordSchema);
18931
18935
  break;
18932
18936
  }
18933
18937
  if (schema.patternProperties) {
@@ -18936,28 +18940,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18936
18940
  const looseRecords = [];
18937
18941
  for (const pattern of patternKeys) {
18938
18942
  const patternValue = convertSchema(patternProps[pattern], ctx);
18939
- const keySchema = z2.string().regex(new RegExp(pattern));
18940
- looseRecords.push(z2.looseRecord(keySchema, patternValue));
18943
+ const keySchema = z3.string().regex(new RegExp(pattern));
18944
+ looseRecords.push(z3.looseRecord(keySchema, patternValue));
18941
18945
  }
18942
18946
  const schemasToIntersect = [];
18943
18947
  if (Object.keys(shape).length > 0) {
18944
- schemasToIntersect.push(z2.object(shape).passthrough());
18948
+ schemasToIntersect.push(z3.object(shape).passthrough());
18945
18949
  }
18946
18950
  schemasToIntersect.push(...looseRecords);
18947
18951
  if (schemasToIntersect.length === 0) {
18948
- zodSchema = z2.object({}).passthrough();
18952
+ zodSchema = z3.object({}).passthrough();
18949
18953
  } else if (schemasToIntersect.length === 1) {
18950
18954
  zodSchema = schemasToIntersect[0];
18951
18955
  } else {
18952
- let result = z2.intersection(schemasToIntersect[0], schemasToIntersect[1]);
18956
+ let result = z3.intersection(schemasToIntersect[0], schemasToIntersect[1]);
18953
18957
  for (let i = 2; i < schemasToIntersect.length; i++) {
18954
- result = z2.intersection(result, schemasToIntersect[i]);
18958
+ result = z3.intersection(result, schemasToIntersect[i]);
18955
18959
  }
18956
18960
  zodSchema = result;
18957
18961
  }
18958
18962
  break;
18959
18963
  }
18960
- const objectSchema = z2.object(shape);
18964
+ const objectSchema = z3.object(shape);
18961
18965
  if (schema.additionalProperties === false) {
18962
18966
  zodSchema = objectSchema.strict();
18963
18967
  } else if (typeof schema.additionalProperties === "object") {
@@ -18974,33 +18978,33 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18974
18978
  const tupleItems = prefixItems.map((item) => convertSchema(item, ctx));
18975
18979
  const rest = items && typeof items === "object" && !Array.isArray(items) ? convertSchema(items, ctx) : void 0;
18976
18980
  if (rest) {
18977
- zodSchema = z2.tuple(tupleItems).rest(rest);
18981
+ zodSchema = z3.tuple(tupleItems).rest(rest);
18978
18982
  } else {
18979
- zodSchema = z2.tuple(tupleItems);
18983
+ zodSchema = z3.tuple(tupleItems);
18980
18984
  }
18981
18985
  if (typeof schema.minItems === "number") {
18982
- zodSchema = zodSchema.check(z2.minLength(schema.minItems));
18986
+ zodSchema = zodSchema.check(z3.minLength(schema.minItems));
18983
18987
  }
18984
18988
  if (typeof schema.maxItems === "number") {
18985
- zodSchema = zodSchema.check(z2.maxLength(schema.maxItems));
18989
+ zodSchema = zodSchema.check(z3.maxLength(schema.maxItems));
18986
18990
  }
18987
18991
  } else if (Array.isArray(items)) {
18988
18992
  const tupleItems = items.map((item) => convertSchema(item, ctx));
18989
18993
  const rest = schema.additionalItems && typeof schema.additionalItems === "object" ? convertSchema(schema.additionalItems, ctx) : void 0;
18990
18994
  if (rest) {
18991
- zodSchema = z2.tuple(tupleItems).rest(rest);
18995
+ zodSchema = z3.tuple(tupleItems).rest(rest);
18992
18996
  } else {
18993
- zodSchema = z2.tuple(tupleItems);
18997
+ zodSchema = z3.tuple(tupleItems);
18994
18998
  }
18995
18999
  if (typeof schema.minItems === "number") {
18996
- zodSchema = zodSchema.check(z2.minLength(schema.minItems));
19000
+ zodSchema = zodSchema.check(z3.minLength(schema.minItems));
18997
19001
  }
18998
19002
  if (typeof schema.maxItems === "number") {
18999
- zodSchema = zodSchema.check(z2.maxLength(schema.maxItems));
19003
+ zodSchema = zodSchema.check(z3.maxLength(schema.maxItems));
19000
19004
  }
19001
19005
  } else if (items !== void 0) {
19002
19006
  const element = convertSchema(items, ctx);
19003
- let arraySchema = z2.array(element);
19007
+ let arraySchema = z3.array(element);
19004
19008
  if (typeof schema.minItems === "number") {
19005
19009
  arraySchema = arraySchema.min(schema.minItems);
19006
19010
  }
@@ -19009,7 +19013,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19009
19013
  }
19010
19014
  zodSchema = arraySchema;
19011
19015
  } else {
19012
- zodSchema = z2.array(z2.any());
19016
+ zodSchema = z3.array(z3.any());
19013
19017
  }
19014
19018
  break;
19015
19019
  }
@@ -19022,37 +19026,37 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19022
19026
  __name2(convertBaseSchema, "convertBaseSchema");
19023
19027
  function convertSchema(schema, ctx) {
19024
19028
  if (typeof schema === "boolean") {
19025
- return schema ? z2.any() : z2.never();
19029
+ return schema ? z3.any() : z3.never();
19026
19030
  }
19027
19031
  let baseSchema = convertBaseSchema(schema, ctx);
19028
19032
  const hasExplicitType = schema.type || schema.enum !== void 0 || schema.const !== void 0;
19029
19033
  if (schema.anyOf && Array.isArray(schema.anyOf)) {
19030
19034
  const options = schema.anyOf.map((s) => convertSchema(s, ctx));
19031
- const anyOfUnion = z2.union(options);
19032
- baseSchema = hasExplicitType ? z2.intersection(baseSchema, anyOfUnion) : anyOfUnion;
19035
+ const anyOfUnion = z3.union(options);
19036
+ baseSchema = hasExplicitType ? z3.intersection(baseSchema, anyOfUnion) : anyOfUnion;
19033
19037
  }
19034
19038
  if (schema.oneOf && Array.isArray(schema.oneOf)) {
19035
19039
  const options = schema.oneOf.map((s) => convertSchema(s, ctx));
19036
- const oneOfUnion = z2.xor(options);
19037
- baseSchema = hasExplicitType ? z2.intersection(baseSchema, oneOfUnion) : oneOfUnion;
19040
+ const oneOfUnion = z3.xor(options);
19041
+ baseSchema = hasExplicitType ? z3.intersection(baseSchema, oneOfUnion) : oneOfUnion;
19038
19042
  }
19039
19043
  if (schema.allOf && Array.isArray(schema.allOf)) {
19040
19044
  if (schema.allOf.length === 0) {
19041
- baseSchema = hasExplicitType ? baseSchema : z2.any();
19045
+ baseSchema = hasExplicitType ? baseSchema : z3.any();
19042
19046
  } else {
19043
19047
  let result = hasExplicitType ? baseSchema : convertSchema(schema.allOf[0], ctx);
19044
19048
  const startIdx = hasExplicitType ? 0 : 1;
19045
19049
  for (let i = startIdx; i < schema.allOf.length; i++) {
19046
- result = z2.intersection(result, convertSchema(schema.allOf[i], ctx));
19050
+ result = z3.intersection(result, convertSchema(schema.allOf[i], ctx));
19047
19051
  }
19048
19052
  baseSchema = result;
19049
19053
  }
19050
19054
  }
19051
19055
  if (schema.nullable === true && ctx.version === "openapi-3.0") {
19052
- baseSchema = z2.nullable(baseSchema);
19056
+ baseSchema = z3.nullable(baseSchema);
19053
19057
  }
19054
19058
  if (schema.readOnly === true) {
19055
- baseSchema = z2.readonly(baseSchema);
19059
+ baseSchema = z3.readonly(baseSchema);
19056
19060
  }
19057
19061
  if (schema.default !== void 0) {
19058
19062
  baseSchema = baseSchema.default(schema.default);
@@ -19088,7 +19092,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19088
19092
  function fromJSONSchema(schema, params) {
19089
19093
  var _a4;
19090
19094
  if (typeof schema === "boolean") {
19091
- return schema ? z2.any() : z2.never();
19095
+ return schema ? z3.any() : z3.never();
19092
19096
  }
19093
19097
  let normalized;
19094
19098
  try {
@@ -19780,6 +19784,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19780
19784
  isServiceProfile: true,
19781
19785
  display: true
19782
19786
  });
19787
+ var LCNConnectionPromptStatusValidator = external_exports.enum(["PENDING", "SKIPPED", "CONNECTED"]);
19788
+ var LCNConnectionPromptSurfaceValidator = external_exports.enum(["POST_CLAIM", "NOTIFICATION"]);
19789
+ var LCNConnectionPromptActionStatusValidator = external_exports.enum([
19790
+ "PENDING",
19791
+ "SKIPPED",
19792
+ "CONNECTED",
19793
+ "STALE"
19794
+ ]);
19795
+ var LCNConnectionPromptValidator = external_exports.object({
19796
+ promptId: external_exports.string().uuid(),
19797
+ status: LCNConnectionPromptStatusValidator,
19798
+ surface: LCNConnectionPromptSurfaceValidator,
19799
+ triggerId: external_exports.string(),
19800
+ triggeredAt: external_exports.iso.datetime(),
19801
+ updatedAt: external_exports.iso.datetime(),
19802
+ counterpart: LCNPublicProfileValidator
19803
+ });
19804
+ var LCNConnectionPromptActionResultValidator = external_exports.object({
19805
+ promptId: external_exports.string().uuid(),
19806
+ status: LCNConnectionPromptActionStatusValidator
19807
+ });
19808
+ var LCNConnectionPromptMetadataValidator = external_exports.object({
19809
+ promptId: external_exports.string().uuid(),
19810
+ counterpartProfileId: external_exports.string()
19811
+ });
19783
19812
  var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
19784
19813
  bio: LCNProfileValidator.shape.bio,
19785
19814
  websiteLink: LCNProfileValidator.shape.websiteLink,
@@ -19788,7 +19817,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19788
19817
  did: LCNProfileValidator.shape.did
19789
19818
  });
19790
19819
  var LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
19791
- email: LCNProfileValidator.shape.email
19820
+ email: LCNProfileValidator.shape.email,
19821
+ connectedAt: external_exports.iso.datetime().optional().describe("When the viewer and this profile became connected.")
19792
19822
  });
19793
19823
  var LCNVisibleProfileValidator = external_exports.union([
19794
19824
  LCNConnectionProfileValidator.strict(),
@@ -20345,12 +20375,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
20345
20375
  }),
20346
20376
  timestamp: external_exports.iso.datetime().optional()
20347
20377
  });
20378
+ var LCNNotificationMetadataValidator = external_exports.object({
20379
+ connectionPrompt: LCNConnectionPromptMetadataValidator.optional()
20380
+ }).catchall(external_exports.unknown());
20348
20381
  var LCNNotificationDataValidator = external_exports.object({
20349
20382
  vcUris: external_exports.array(external_exports.string()).optional(),
20350
20383
  vpUris: external_exports.array(external_exports.string()).optional(),
20351
20384
  transaction: ConsentFlowTransactionValidator.optional(),
20352
20385
  inbox: LCNNotificationInboxValidator.optional(),
20353
- metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
20386
+ metadata: LCNNotificationMetadataValidator.optional()
20354
20387
  }).loose();
20355
20388
  var LCNNotificationValidator = external_exports.object({
20356
20389
  type: LCNNotificationTypeEnumValidator,
@@ -21230,11 +21263,11 @@ var getFilestackHandle = /* @__PURE__ */ __name((url) => {
21230
21263
  return urlParams[urlParams.length - 1];
21231
21264
  }, "getFilestackHandle");
21232
21265
  var getFileType = /* @__PURE__ */ __name((url) => __async(null, null, function* () {
21233
- var _a;
21266
+ var _a2;
21234
21267
  const handle = getFilestackHandle(url);
21235
21268
  try {
21236
21269
  const data = yield (yield fetch(`https://www.filestackapi.com/api/file/${handle}/metadata`)).json();
21237
- return (_a = data.mimetype) != null ? _a : "";
21270
+ return (_a2 = data.mimetype) != null ? _a2 : "";
21238
21271
  } catch (error) {
21239
21272
  console.error(error);
21240
21273
  return "";
@@ -21467,8 +21500,8 @@ function innerReactOuterReact(setState, field, value) {
21467
21500
  __name(innerReactOuterReact, "innerReactOuterReact");
21468
21501
  var curriedInnerReactOuterReact = /* @__PURE__ */ __name((setState) => (field, value) => innerReactOuterReact(setState, field, value), "curriedInnerReactOuterReact");
21469
21502
  function curriedStateSlice(setState, options) {
21470
- var _a, _b, _c;
21471
- if (((_a = options == null ? void 0 : options.outer) != null ? _a : "immer") === "immer") {
21503
+ var _a2, _b, _c;
21504
+ if (((_a2 = options == null ? void 0 : options.outer) != null ? _a2 : "immer") === "immer") {
21472
21505
  return ((_b = options == null ? void 0 : options.inner) != null ? _b : "immer") === "immer" ? curriedInnerImmerOuterImmer(setState) : curriedInnerReactOuterImmer(setState);
21473
21506
  }
21474
21507
  return ((_c = options == null ? void 0 : options.inner) != null ? _c : "immer") === "immer" ? curriedInnerImmerOuterReact(setState) : curriedInnerReactOuterReact(setState);
@@ -21484,6 +21517,31 @@ types_esm.object({
21484
21517
  loading: types_esm.union([ImageResizingValidator, ImageUploadingValidator]).optional()
21485
21518
  });
21486
21519
  __toESM(require_dist());
21520
+ (_a = class extends Error {
21521
+ constructor(message) {
21522
+ super(message);
21523
+ this.name = "EnvironmentConfigurationError";
21524
+ }
21525
+ }, __name(_a, "EnvironmentConfigurationError"), _a);
21526
+ var requiredEnvironmentString = types_esm.string().trim().min(1, "Required but missing");
21527
+ types_esm.preprocess(
21528
+ (value) => value === "" ? void 0 : value,
21529
+ requiredEnvironmentString.optional()
21530
+ );
21531
+ types_esm.preprocess(
21532
+ (value) => value === "" ? void 0 : value,
21533
+ types_esm.url("Expected a valid URL").optional()
21534
+ );
21535
+ var environmentBoolean = types_esm._enum(["true", "false", "1", "0"]).transform((value) => value === "true" || value === "1");
21536
+ types_esm.preprocess(
21537
+ (value) => value === "" || value === void 0 ? void 0 : value,
21538
+ environmentBoolean.optional()
21539
+ );
21540
+ var environmentPort = number().int().min(1).max(65535);
21541
+ types_esm.preprocess(
21542
+ (value) => value === "" || value === void 0 ? void 0 : value,
21543
+ environmentPort.optional()
21544
+ );
21487
21545
  var isAppDidWeb = /* @__PURE__ */ __name((did) => {
21488
21546
  if (!did) return false;
21489
21547
  const LCN_APP_DID_WEB_REGEX = /^did:web:.*:app:([^:]+)$/;
@@ -21623,8 +21681,9 @@ const VERIFIER_STATES = {
21623
21681
  };
21624
21682
  const VerifierStateBadgeAndText = React.forwardRef(
21625
21683
  ({ verifierState, className = "", unknownVerifierTitle, onClick }, ref) => {
21684
+ const t = i18n.useT();
21626
21685
  const effectiveState = unknownVerifierTitle && verifierState !== VERIFIER_STATES.selfVerified && verifierState !== VERIFIER_STATES.untrustedVerifier && verifierState !== VERIFIER_STATES.appIssuer ? VERIFIER_STATES.trustedVerifier : verifierState;
21627
- const content = /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, effectiveState === VERIFIER_STATES.selfVerified && /* @__PURE__ */ React__default["default"].createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-green-dark" }, /* @__PURE__ */ React__default["default"].createElement(PersonBadge, null), /* @__PURE__ */ React__default["default"].createElement("span", { className: "whitespace-nowrap" }, "Self Issued")), effectiveState === VERIFIER_STATES.trustedVerifier && /* @__PURE__ */ React__default["default"].createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-green-600" }, /* @__PURE__ */ React__default["default"].createElement(VerifiedBadge, null), /* @__PURE__ */ React__default["default"].createElement("span", { className: "whitespace-nowrap" }, unknownVerifierTitle != null ? unknownVerifierTitle : "Trusted Issuer")), effectiveState === VERIFIER_STATES.unknownVerifier && /* @__PURE__ */ React__default["default"].createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-orange-500" }, /* @__PURE__ */ React__default["default"].createElement(UnknownVerifierBadge, null), /* @__PURE__ */ React__default["default"].createElement("span", { className: "whitespace-nowrap" }, unknownVerifierTitle != null ? unknownVerifierTitle : VERIFIER_STATES.unknownVerifier)), effectiveState === VERIFIER_STATES.appIssuer && /* @__PURE__ */ React__default["default"].createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-cyan-600" }, /* @__PURE__ */ React__default["default"].createElement(VerifiedBadge, null), /* @__PURE__ */ React__default["default"].createElement("span", { className: "whitespace-nowrap" }, "App Issuer")), effectiveState === VERIFIER_STATES.untrustedVerifier && /* @__PURE__ */ React__default["default"].createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-red-mastercard" }, /* @__PURE__ */ React__default["default"].createElement(RedFlag, null), /* @__PURE__ */ React__default["default"].createElement("span", { className: "whitespace-nowrap" }, "Untrusted Issuer")));
21686
+ const content = /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, effectiveState === VERIFIER_STATES.selfVerified && /* @__PURE__ */ React__default["default"].createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-green-dark" }, /* @__PURE__ */ React__default["default"].createElement(PersonBadge, null), /* @__PURE__ */ React__default["default"].createElement("span", { className: "whitespace-nowrap" }, t("verification.selfIssued"))), effectiveState === VERIFIER_STATES.trustedVerifier && /* @__PURE__ */ React__default["default"].createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-green-600" }, /* @__PURE__ */ React__default["default"].createElement(VerifiedBadge, null), /* @__PURE__ */ React__default["default"].createElement("span", { className: "whitespace-nowrap" }, unknownVerifierTitle != null ? unknownVerifierTitle : t("verification.trustedIssuer"))), effectiveState === VERIFIER_STATES.unknownVerifier && /* @__PURE__ */ React__default["default"].createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-orange-800" }, /* @__PURE__ */ React__default["default"].createElement(UnknownVerifierBadge, null), /* @__PURE__ */ React__default["default"].createElement("span", { className: "whitespace-nowrap" }, unknownVerifierTitle != null ? unknownVerifierTitle : t("verification.unknownIssuer"))), effectiveState === VERIFIER_STATES.appIssuer && /* @__PURE__ */ React__default["default"].createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-cyan-600" }, /* @__PURE__ */ React__default["default"].createElement(VerifiedBadge, null), /* @__PURE__ */ React__default["default"].createElement("span", { className: "whitespace-nowrap" }, t("verification.appIssuer"))), effectiveState === VERIFIER_STATES.untrustedVerifier && /* @__PURE__ */ React__default["default"].createElement("div", { className: "flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-red-mastercard" }, /* @__PURE__ */ React__default["default"].createElement(RedFlag, null), /* @__PURE__ */ React__default["default"].createElement("span", { className: "whitespace-nowrap" }, t("verification.untrustedIssuer"))));
21628
21687
  return /* @__PURE__ */ React__default["default"].createElement("div", { className: `flex justify-center ${className}` }, onClick ? /* @__PURE__ */ React__default["default"].createElement(
21629
21688
  "button",
21630
21689
  {
@@ -21673,4 +21732,4 @@ exports.isDid = isDid;
21673
21732
  exports.isLearnCardNetworkDid = isLearnCardNetworkDid;
21674
21733
  exports.prettyBytes = prettyBytes;
21675
21734
  exports.resolveProfileDisplay = resolveProfileDisplay;
21676
- //# sourceMappingURL=VerifierStateBadgeAndText-934239ab.js.map
21735
+ //# sourceMappingURL=VerifierStateBadgeAndText-5f10743e.js.map