@worldcoin/idkit 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.cjs CHANGED
@@ -204,10 +204,7 @@ var useIDKit = ({ handleVerify, onSuccess } = {}) => {
204
204
  var useIDKit_default = useIDKit;
205
205
 
206
206
  // src/components/IDKitWidget/index.tsx
207
- var import_react8 = require("react");
208
-
209
- // src/components/IDKitWidget/BaseWidget.tsx
210
- var import_react_shadow = __toESM(require("react-shadow"), 1);
207
+ var import_react10 = require("react");
211
208
 
212
209
  // src/hooks/useMedia.ts
213
210
  var import_react2 = require("react");
@@ -233,16 +230,81 @@ var useMedia = () => {
233
230
  var useMedia_default = useMedia;
234
231
 
235
232
  // src/components/IDKitWidget/BaseWidget.tsx
236
- var import_react_dom = require("react-dom");
233
+ var import_react_dom2 = require("react-dom");
237
234
 
238
235
  // src/styles/styles.css
239
- var styles_default = `/* TODO: Use an alternative to avoid the extra request to Google (e.g. hosting ourselves, or local file) */
240
- @import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;600;700&family=Sora:wght@600&display=swap');
241
- /* ! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com */
236
+ var styles_default = `/* Remote TWK Lausanne font definitions */
237
+ @font-face {
238
+ font-family: 'TWK Lausanne';
239
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-200.woff2') format('woff2');
240
+ font-weight: 200;
241
+ font-style: normal;
242
+ font-display: swap;
243
+ }
244
+
245
+ @font-face {
246
+ font-family: 'TWK Lausanne';
247
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-300.woff2') format('woff2');
248
+ font-weight: 300;
249
+ font-style: normal;
250
+ font-display: swap;
251
+ }
252
+
253
+ @font-face {
254
+ font-family: 'TWK Lausanne';
255
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-350.woff2') format('woff2');
256
+ font-weight: 350;
257
+ font-style: normal;
258
+ font-display: swap;
259
+ }
260
+
261
+ @font-face {
262
+ font-family: 'TWK Lausanne';
263
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-400.woff2') format('woff2');
264
+ font-weight: 400;
265
+ font-style: normal;
266
+ font-display: swap;
267
+ }
268
+
269
+ @font-face {
270
+ font-family: 'TWK Lausanne';
271
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-450.woff2') format('woff2');
272
+ font-weight: 450;
273
+ font-style: normal;
274
+ font-display: swap;
275
+ }
276
+
277
+ @font-face {
278
+ font-family: 'TWK Lausanne';
279
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-500.woff2') format('woff2');
280
+ font-weight: 500;
281
+ font-style: normal;
282
+ font-display: swap;
283
+ }
284
+
285
+ @font-face {
286
+ font-family: 'TWK Lausanne';
287
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-550.woff2') format('woff2');
288
+ font-weight: 550;
289
+ font-style: normal;
290
+ font-display: swap;
291
+ }
292
+
293
+ @font-face {
294
+ font-family: 'TWK Lausanne';
295
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-600.woff2') format('woff2');
296
+ font-weight: 600;
297
+ font-style: normal;
298
+ font-display: swap;
299
+ }
300
+
301
+ /* ! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com */
302
+
242
303
  /*
243
304
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
244
305
  2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
245
306
  */
307
+
246
308
  *,
247
309
  ::before,
248
310
  ::after {
@@ -251,10 +313,12 @@ var styles_default = `/* TODO: Use an alternative to avoid the extra request to
251
313
  border-style: solid; /* 2 */
252
314
  border-color: #e5e7eb; /* 2 */
253
315
  }
316
+
254
317
  ::before,
255
318
  ::after {
256
319
  --tw-content: '';
257
320
  }
321
+
258
322
  /*
259
323
  1. Use a consistent sensible line-height in all browsers.
260
324
  2. Prevent adjustments of font size after orientation changes in iOS.
@@ -264,6 +328,7 @@ var styles_default = `/* TODO: Use an alternative to avoid the extra request to
264
328
  6. Use the user's configured \`sans\` font-variation-settings by default.
265
329
  7. Disable tap highlights on iOS
266
330
  */
331
+
267
332
  html,
268
333
  :host {
269
334
  line-height: 1.5; /* 1 */
@@ -271,39 +336,47 @@ html,
271
336
  -moz-tab-size: 4; /* 3 */
272
337
  -o-tab-size: 4;
273
338
  tab-size: 4; /* 3 */
274
- font-family: Rubik, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
339
+ font-family: TWK Lausanne, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
275
340
  font-feature-settings: normal; /* 5 */
276
341
  font-variation-settings: normal; /* 6 */
277
342
  -webkit-tap-highlight-color: transparent; /* 7 */
278
343
  }
344
+
279
345
  /*
280
346
  1. Remove the margin in all browsers.
281
347
  2. Inherit line-height from \`html\` so users can set them as a class directly on the \`html\` element.
282
348
  */
349
+
283
350
  body {
284
351
  margin: 0; /* 1 */
285
352
  line-height: inherit; /* 2 */
286
353
  }
354
+
287
355
  /*
288
356
  1. Add the correct height in Firefox.
289
357
  2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
290
358
  3. Ensure horizontal rules are visible by default.
291
359
  */
360
+
292
361
  hr {
293
362
  height: 0; /* 1 */
294
363
  color: inherit; /* 2 */
295
364
  border-top-width: 1px; /* 3 */
296
365
  }
366
+
297
367
  /*
298
368
  Add the correct text decoration in Chrome, Edge, and Safari.
299
369
  */
370
+
300
371
  abbr:where([title]) {
301
372
  -webkit-text-decoration: underline dotted;
302
373
  text-decoration: underline dotted;
303
374
  }
375
+
304
376
  /*
305
377
  Remove the default font size and weight for headings.
306
378
  */
379
+
307
380
  h1,
308
381
  h2,
309
382
  h3,
@@ -313,26 +386,32 @@ h6 {
313
386
  font-size: inherit;
314
387
  font-weight: inherit;
315
388
  }
389
+
316
390
  /*
317
391
  Reset links to optimize for opt-in styling instead of opt-out.
318
392
  */
393
+
319
394
  a {
320
395
  color: inherit;
321
396
  text-decoration: inherit;
322
397
  }
398
+
323
399
  /*
324
400
  Add the correct font weight in Edge and Safari.
325
401
  */
402
+
326
403
  b,
327
404
  strong {
328
405
  font-weight: bolder;
329
406
  }
407
+
330
408
  /*
331
409
  1. Use the user's configured \`mono\` font-family by default.
332
410
  2. Use the user's configured \`mono\` font-feature-settings by default.
333
411
  3. Use the user's configured \`mono\` font-variation-settings by default.
334
412
  4. Correct the odd \`em\` font sizing in all browsers.
335
413
  */
414
+
336
415
  code,
337
416
  kbd,
338
417
  samp,
@@ -342,15 +421,19 @@ pre {
342
421
  font-variation-settings: normal; /* 3 */
343
422
  font-size: 1em; /* 4 */
344
423
  }
424
+
345
425
  /*
346
426
  Add the correct font size in all browsers.
347
427
  */
428
+
348
429
  small {
349
430
  font-size: 80%;
350
431
  }
432
+
351
433
  /*
352
434
  Prevent \`sub\` and \`sup\` elements from affecting the line height in all browsers.
353
435
  */
436
+
354
437
  sub,
355
438
  sup {
356
439
  font-size: 75%;
@@ -358,27 +441,33 @@ sup {
358
441
  position: relative;
359
442
  vertical-align: baseline;
360
443
  }
444
+
361
445
  sub {
362
446
  bottom: -0.25em;
363
447
  }
448
+
364
449
  sup {
365
450
  top: -0.5em;
366
451
  }
452
+
367
453
  /*
368
454
  1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
369
455
  2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
370
456
  3. Remove gaps between table borders by default.
371
457
  */
458
+
372
459
  table {
373
460
  text-indent: 0; /* 1 */
374
461
  border-color: inherit; /* 2 */
375
462
  border-collapse: collapse; /* 3 */
376
463
  }
464
+
377
465
  /*
378
466
  1. Change the font styles in all browsers.
379
467
  2. Remove the margin in Firefox and Safari.
380
468
  3. Remove default padding in all browsers.
381
469
  */
470
+
382
471
  button,
383
472
  input,
384
473
  optgroup,
@@ -395,17 +484,21 @@ textarea {
395
484
  margin: 0; /* 2 */
396
485
  padding: 0; /* 3 */
397
486
  }
487
+
398
488
  /*
399
489
  Remove the inheritance of text transform in Edge and Firefox.
400
490
  */
491
+
401
492
  button,
402
493
  select {
403
494
  text-transform: none;
404
495
  }
496
+
405
497
  /*
406
498
  1. Correct the inability to style clickable types in iOS and Safari.
407
499
  2. Remove default button styles.
408
500
  */
501
+
409
502
  button,
410
503
  input:where([type='button']),
411
504
  input:where([type='reset']),
@@ -414,62 +507,80 @@ input:where([type='submit']) {
414
507
  background-color: transparent; /* 2 */
415
508
  background-image: none; /* 2 */
416
509
  }
510
+
417
511
  /*
418
512
  Use the modern Firefox focus style for all focusable elements.
419
513
  */
514
+
420
515
  :-moz-focusring {
421
516
  outline: auto;
422
517
  }
518
+
423
519
  /*
424
520
  Remove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
425
521
  */
522
+
426
523
  :-moz-ui-invalid {
427
524
  box-shadow: none;
428
525
  }
526
+
429
527
  /*
430
528
  Add the correct vertical alignment in Chrome and Firefox.
431
529
  */
530
+
432
531
  progress {
433
532
  vertical-align: baseline;
434
533
  }
534
+
435
535
  /*
436
536
  Correct the cursor style of increment and decrement buttons in Safari.
437
537
  */
538
+
438
539
  ::-webkit-inner-spin-button,
439
540
  ::-webkit-outer-spin-button {
440
541
  height: auto;
441
542
  }
543
+
442
544
  /*
443
545
  1. Correct the odd appearance in Chrome and Safari.
444
546
  2. Correct the outline style in Safari.
445
547
  */
548
+
446
549
  [type='search'] {
447
550
  -webkit-appearance: textfield; /* 1 */
448
551
  outline-offset: -2px; /* 2 */
449
552
  }
553
+
450
554
  /*
451
555
  Remove the inner padding in Chrome and Safari on macOS.
452
556
  */
557
+
453
558
  ::-webkit-search-decoration {
454
559
  -webkit-appearance: none;
455
560
  }
561
+
456
562
  /*
457
563
  1. Correct the inability to style clickable types in iOS and Safari.
458
564
  2. Change font properties to \`inherit\` in Safari.
459
565
  */
566
+
460
567
  ::-webkit-file-upload-button {
461
568
  -webkit-appearance: button; /* 1 */
462
569
  font: inherit; /* 2 */
463
570
  }
571
+
464
572
  /*
465
573
  Add the correct display in Chrome and Safari.
466
574
  */
575
+
467
576
  summary {
468
577
  display: list-item;
469
578
  }
579
+
470
580
  /*
471
581
  Removes the default spacing and border for appropriate elements.
472
582
  */
583
+
473
584
  blockquote,
474
585
  dl,
475
586
  dd,
@@ -485,13 +596,16 @@ p,
485
596
  pre {
486
597
  margin: 0;
487
598
  }
599
+
488
600
  fieldset {
489
601
  margin: 0;
490
602
  padding: 0;
491
603
  }
604
+
492
605
  legend {
493
606
  padding: 0;
494
607
  }
608
+
495
609
  ol,
496
610
  ul,
497
611
  menu {
@@ -499,49 +613,62 @@ menu {
499
613
  margin: 0;
500
614
  padding: 0;
501
615
  }
616
+
502
617
  /*
503
618
  Reset default styling for dialogs.
504
619
  */
620
+
505
621
  dialog {
506
622
  padding: 0;
507
623
  }
624
+
508
625
  /*
509
626
  Prevent resizing textareas horizontally by default.
510
627
  */
628
+
511
629
  textarea {
512
630
  resize: vertical;
513
631
  }
632
+
514
633
  /*
515
634
  1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
516
635
  2. Set the default placeholder color to the user's configured gray 400 color.
517
636
  */
637
+
518
638
  input::-moz-placeholder, textarea::-moz-placeholder {
519
639
  opacity: 1; /* 1 */
520
640
  color: #9ca3af; /* 2 */
521
641
  }
642
+
522
643
  input::placeholder,
523
644
  textarea::placeholder {
524
645
  opacity: 1; /* 1 */
525
646
  color: #9ca3af; /* 2 */
526
647
  }
648
+
527
649
  /*
528
650
  Set the default cursor for buttons.
529
651
  */
652
+
530
653
  button,
531
654
  [role="button"] {
532
655
  cursor: pointer;
533
656
  }
657
+
534
658
  /*
535
659
  Make sure disabled buttons don't get the pointer cursor.
536
660
  */
661
+
537
662
  :disabled {
538
663
  cursor: default;
539
664
  }
665
+
540
666
  /*
541
667
  1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
542
668
  2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
543
669
  This can trigger a poorly considered lint error in some tools but is included by design.
544
670
  */
671
+
545
672
  img,
546
673
  svg,
547
674
  video,
@@ -553,19 +680,24 @@ object {
553
680
  display: block; /* 1 */
554
681
  vertical-align: middle; /* 2 */
555
682
  }
683
+
556
684
  /*
557
685
  Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
558
686
  */
687
+
559
688
  img,
560
689
  video {
561
690
  max-width: 100%;
562
691
  height: auto;
563
692
  }
693
+
564
694
  /* Make elements with the HTML hidden attribute stay hidden by default */
695
+
565
696
  [hidden] {
566
697
  display: none;
567
698
  }
568
- [type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select{
699
+
700
+ [type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select {
569
701
  -webkit-appearance: none;
570
702
  -moz-appearance: none;
571
703
  appearance: none;
@@ -581,7 +713,8 @@ video {
581
713
  line-height: 1.5rem;
582
714
  --tw-shadow: 0 0 #0000;
583
715
  }
584
- [type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus{
716
+
717
+ [type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus {
585
718
  outline: 2px solid transparent;
586
719
  outline-offset: 2px;
587
720
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
@@ -593,29 +726,36 @@ video {
593
726
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
594
727
  border-color: #2563eb;
595
728
  }
596
- input::-moz-placeholder, textarea::-moz-placeholder{
729
+
730
+ input::-moz-placeholder, textarea::-moz-placeholder {
597
731
  color: #6b7280;
598
732
  opacity: 1;
599
733
  }
600
- input::placeholder,textarea::placeholder{
734
+
735
+ input::placeholder,textarea::placeholder {
601
736
  color: #6b7280;
602
737
  opacity: 1;
603
738
  }
604
- ::-webkit-datetime-edit-fields-wrapper{
739
+
740
+ ::-webkit-datetime-edit-fields-wrapper {
605
741
  padding: 0;
606
742
  }
607
- ::-webkit-date-and-time-value{
743
+
744
+ ::-webkit-date-and-time-value {
608
745
  min-height: 1.5em;
609
746
  text-align: inherit;
610
747
  }
611
- ::-webkit-datetime-edit{
748
+
749
+ ::-webkit-datetime-edit {
612
750
  display: inline-flex;
613
751
  }
614
- ::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{
752
+
753
+ ::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field {
615
754
  padding-top: 0;
616
755
  padding-bottom: 0;
617
756
  }
618
- select{
757
+
758
+ select {
619
759
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
620
760
  background-position: right 0.5rem center;
621
761
  background-repeat: no-repeat;
@@ -624,7 +764,8 @@ select{
624
764
  -webkit-print-color-adjust: exact;
625
765
  print-color-adjust: exact;
626
766
  }
627
- [multiple],[size]:where(select:not([size="1"])){
767
+
768
+ [multiple],[size]:where(select:not([size="1"])) {
628
769
  background-image: initial;
629
770
  background-position: initial;
630
771
  background-repeat: unset;
@@ -633,7 +774,8 @@ select{
633
774
  -webkit-print-color-adjust: unset;
634
775
  print-color-adjust: unset;
635
776
  }
636
- [type='checkbox'],[type='radio']{
777
+
778
+ [type='checkbox'],[type='radio'] {
637
779
  -webkit-appearance: none;
638
780
  -moz-appearance: none;
639
781
  appearance: none;
@@ -655,13 +797,16 @@ select{
655
797
  border-width: 1px;
656
798
  --tw-shadow: 0 0 #0000;
657
799
  }
658
- [type='checkbox']{
800
+
801
+ [type='checkbox'] {
659
802
  border-radius: 0px;
660
803
  }
661
- [type='radio']{
804
+
805
+ [type='radio'] {
662
806
  border-radius: 100%;
663
807
  }
664
- [type='checkbox']:focus,[type='radio']:focus{
808
+
809
+ [type='checkbox']:focus,[type='radio']:focus {
665
810
  outline: 2px solid transparent;
666
811
  outline-offset: 2px;
667
812
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
@@ -672,38 +817,45 @@ select{
672
817
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
673
818
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
674
819
  }
675
- [type='checkbox']:checked,[type='radio']:checked{
820
+
821
+ [type='checkbox']:checked,[type='radio']:checked {
676
822
  border-color: transparent;
677
823
  background-color: currentColor;
678
824
  background-size: 100% 100%;
679
825
  background-position: center;
680
826
  background-repeat: no-repeat;
681
827
  }
682
- [type='checkbox']:checked{
828
+
829
+ [type='checkbox']:checked {
683
830
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
684
831
  }
685
- @media (forced-colors: active) {
686
- [type='checkbox']:checked{
832
+
833
+ @media (forced-colors: active) {
834
+ [type='checkbox']:checked {
687
835
  -webkit-appearance: auto;
688
836
  -moz-appearance: auto;
689
837
  appearance: auto;
690
838
  }
691
839
  }
692
- [type='radio']:checked{
840
+
841
+ [type='radio']:checked {
693
842
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
694
843
  }
695
- @media (forced-colors: active) {
696
- [type='radio']:checked{
844
+
845
+ @media (forced-colors: active) {
846
+ [type='radio']:checked {
697
847
  -webkit-appearance: auto;
698
848
  -moz-appearance: auto;
699
849
  appearance: auto;
700
850
  }
701
851
  }
702
- [type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus{
852
+
853
+ [type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus {
703
854
  border-color: transparent;
704
855
  background-color: currentColor;
705
856
  }
706
- [type='checkbox']:indeterminate{
857
+
858
+ [type='checkbox']:indeterminate {
707
859
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
708
860
  border-color: transparent;
709
861
  background-color: currentColor;
@@ -711,18 +863,21 @@ select{
711
863
  background-position: center;
712
864
  background-repeat: no-repeat;
713
865
  }
714
- @media (forced-colors: active) {
715
- [type='checkbox']:indeterminate{
866
+
867
+ @media (forced-colors: active) {
868
+ [type='checkbox']:indeterminate {
716
869
  -webkit-appearance: auto;
717
870
  -moz-appearance: auto;
718
871
  appearance: auto;
719
872
  }
720
873
  }
721
- [type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus{
874
+
875
+ [type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus {
722
876
  border-color: transparent;
723
877
  background-color: currentColor;
724
878
  }
725
- [type='file']{
879
+
880
+ [type='file'] {
726
881
  background: unset;
727
882
  border-color: inherit;
728
883
  border-width: 0;
@@ -731,11 +886,13 @@ select{
731
886
  font-size: unset;
732
887
  line-height: inherit;
733
888
  }
734
- [type='file']:focus{
889
+
890
+ [type='file']:focus {
735
891
  outline: 1px solid ButtonText;
736
892
  outline: 1px auto -webkit-focus-ring-color;
737
893
  }
738
- *, ::before, ::after{
894
+
895
+ *, ::before, ::after {
739
896
  --tw-border-spacing-x: 0;
740
897
  --tw-border-spacing-y: 0;
741
898
  --tw-translate-x: 0;
@@ -788,7 +945,8 @@ select{
788
945
  --tw-contain-paint: ;
789
946
  --tw-contain-style: ;
790
947
  }
791
- ::backdrop{
948
+
949
+ ::backdrop {
792
950
  --tw-border-spacing-x: 0;
793
951
  --tw-border-spacing-y: 0;
794
952
  --tw-translate-x: 0;
@@ -841,541 +999,543 @@ select{
841
999
  --tw-contain-paint: ;
842
1000
  --tw-contain-style: ;
843
1001
  }
844
- .container{
1002
+ .container {
845
1003
  width: 100%;
846
1004
  }
847
- @media (min-width: 414px){
848
- .container{
1005
+ @media (min-width: 414px) {
1006
+ .container {
849
1007
  max-width: 414px;
850
1008
  }
851
1009
  }
852
- @media (min-width: 640px){
853
- .container{
1010
+ @media (min-width: 640px) {
1011
+ .container {
854
1012
  max-width: 640px;
855
1013
  }
856
1014
  }
857
- @media (min-width: 768px){
858
- .container{
1015
+ @media (min-width: 768px) {
1016
+ .container {
859
1017
  max-width: 768px;
860
1018
  }
861
1019
  }
862
- @media (min-width: 1024px){
863
- .container{
1020
+ @media (min-width: 1024px) {
1021
+ .container {
864
1022
  max-width: 1024px;
865
1023
  }
866
1024
  }
867
- @media (min-width: 1280px){
868
- .container{
1025
+ @media (min-width: 1280px) {
1026
+ .container {
869
1027
  max-width: 1280px;
870
1028
  }
871
1029
  }
872
- @media (min-width: 1536px){
873
- .container{
1030
+ @media (min-width: 1536px) {
1031
+ .container {
874
1032
  max-width: 1536px;
875
1033
  }
876
1034
  }
877
- .visible{
1035
+ .visible {
878
1036
  visibility: visible;
879
1037
  }
880
- .fixed{
1038
+ .fixed {
881
1039
  position: fixed;
882
1040
  }
883
- .absolute{
1041
+ .absolute {
884
1042
  position: absolute;
885
1043
  }
886
- .relative{
1044
+ .relative {
887
1045
  position: relative;
888
1046
  }
889
- .inset-0{
1047
+ .inset-0 {
890
1048
  inset: 0;
891
1049
  }
892
- .z-50{
1050
+ .z-50 {
893
1051
  z-index: 50;
894
1052
  }
895
- .z-\\[9999\\]{
1053
+ .z-\\[9999\\] {
896
1054
  z-index: 9999;
897
1055
  }
898
- .mx-6{
1056
+ .mx-6 {
899
1057
  margin-left: 24px;
900
1058
  margin-right: 24px;
901
1059
  }
902
- .mx-auto{
1060
+ .mx-auto {
903
1061
  margin-left: auto;
904
1062
  margin-right: auto;
905
1063
  }
906
- .-mt-5{
1064
+ .-mt-5 {
907
1065
  margin-top: -20px;
908
1066
  }
909
- .-mt-6{
1067
+ .-mt-6 {
910
1068
  margin-top: -24px;
911
1069
  }
912
- .mb-10{
1070
+ .mb-10 {
913
1071
  margin-bottom: 40px;
914
1072
  }
915
- .mb-12{
916
- margin-bottom: 48px;
917
- }
918
- .mb-3{
1073
+ .mb-3 {
919
1074
  margin-bottom: 12px;
920
1075
  }
921
- .mb-4{
1076
+ .mb-4 {
922
1077
  margin-bottom: 16px;
923
1078
  }
924
- .mb-6{
1079
+ .mb-6 {
925
1080
  margin-bottom: 24px;
926
1081
  }
927
- .mr-1{
928
- margin-right: 4px;
929
- }
930
- .mr-1\\.5{
931
- margin-right: 6px;
932
- }
933
- .mt-2{
1082
+ .mt-2 {
934
1083
  margin-top: 8px;
935
1084
  }
936
- .mt-3{
1085
+ .mt-3 {
937
1086
  margin-top: 12px;
938
1087
  }
939
- .mt-4{
1088
+ .mt-4 {
940
1089
  margin-top: 16px;
941
1090
  }
942
- .inline{
1091
+ .inline {
943
1092
  display: inline;
944
1093
  }
945
- .flex{
1094
+ .flex {
946
1095
  display: flex;
947
1096
  }
948
- .inline-flex{
1097
+ .inline-flex {
949
1098
  display: inline-flex;
950
1099
  }
951
- .hidden{
1100
+ .hidden {
952
1101
  display: none;
953
1102
  }
954
- .size-11{
955
- width: 44px;
956
- height: 44px;
1103
+ .size-14 {
1104
+ width: 56px;
1105
+ height: 56px;
957
1106
  }
958
- .size-24{
1107
+ .size-24 {
959
1108
  width: 96px;
960
1109
  height: 96px;
961
1110
  }
962
- .size-5{
1111
+ .size-4 {
1112
+ width: 16px;
1113
+ height: 16px;
1114
+ }
1115
+ .size-5 {
963
1116
  width: 20px;
964
1117
  height: 20px;
965
1118
  }
966
- .size-6{
1119
+ .size-6 {
967
1120
  width: 24px;
968
1121
  height: 24px;
969
1122
  }
970
- .size-\\[244px\\]{
971
- width: 244px;
972
- height: 244px;
1123
+ .size-8 {
1124
+ width: 32px;
1125
+ height: 32px;
973
1126
  }
974
- .h-10{
975
- height: 40px;
1127
+ .size-\\[200px\\] {
1128
+ width: 200px;
1129
+ height: 200px;
976
1130
  }
977
- .min-h-full{
1131
+ .min-h-full {
978
1132
  min-height: 100%;
979
1133
  }
980
- .min-h-screen{
1134
+ .min-h-screen {
981
1135
  min-height: 100vh;
982
1136
  }
983
- .w-24{
1137
+ .w-24 {
984
1138
  width: 96px;
985
1139
  }
986
- .w-full{
1140
+ .w-full {
987
1141
  width: 100%;
988
1142
  }
989
- .max-w-\\[224px\\]{
1143
+ .max-w-\\[224px\\] {
990
1144
  max-width: 224px;
991
1145
  }
992
- .flex-1{
1146
+ .max-w-\\[260px\\] {
1147
+ max-width: 260px;
1148
+ }
1149
+ .flex-1 {
993
1150
  flex: 1 1 0%;
994
1151
  }
995
- @keyframes pulse{
996
- 50%{
1152
+ @keyframes pulse {
1153
+ 50% {
997
1154
  opacity: .5;
998
1155
  }
999
1156
  }
1000
- .animate-pulse{
1157
+ .animate-pulse {
1001
1158
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
1002
1159
  }
1003
- @keyframes spin{
1004
- to{
1160
+ @keyframes spin {
1161
+ to {
1005
1162
  transform: rotate(360deg);
1006
1163
  }
1007
1164
  }
1008
- .animate-spin{
1165
+ .animate-spin {
1009
1166
  animation: spin 1s linear infinite;
1010
1167
  }
1011
- .cursor-pointer{
1168
+ .cursor-pointer {
1012
1169
  cursor: pointer;
1013
1170
  }
1014
- .flex-col{
1171
+ .flex-col {
1015
1172
  flex-direction: column;
1016
1173
  }
1017
- .items-end{
1174
+ .items-end {
1018
1175
  align-items: flex-end;
1019
1176
  }
1020
- .items-center{
1177
+ .items-center {
1021
1178
  align-items: center;
1022
1179
  }
1023
- .justify-center{
1024
- justify-content: center;
1180
+ .justify-end {
1181
+ justify-content: flex-end;
1025
1182
  }
1026
- .justify-between{
1027
- justify-content: space-between;
1183
+ .justify-center {
1184
+ justify-content: center;
1028
1185
  }
1029
- .space-x-2 > :not([hidden]) ~ :not([hidden]){
1186
+ .space-x-2 > :not([hidden]) ~ :not([hidden]) {
1030
1187
  --tw-space-x-reverse: 0;
1031
1188
  margin-right: calc(8px * var(--tw-space-x-reverse));
1032
1189
  margin-left: calc(8px * calc(1 - var(--tw-space-x-reverse)));
1033
1190
  }
1034
- .space-x-4 > :not([hidden]) ~ :not([hidden]){
1191
+ .space-x-4 > :not([hidden]) ~ :not([hidden]) {
1035
1192
  --tw-space-x-reverse: 0;
1036
1193
  margin-right: calc(16px * var(--tw-space-x-reverse));
1037
1194
  margin-left: calc(16px * calc(1 - var(--tw-space-x-reverse)));
1038
1195
  }
1039
- .space-y-10 > :not([hidden]) ~ :not([hidden]){
1196
+ .space-y-10 > :not([hidden]) ~ :not([hidden]) {
1040
1197
  --tw-space-y-reverse: 0;
1041
1198
  margin-top: calc(40px * calc(1 - var(--tw-space-y-reverse)));
1042
1199
  margin-bottom: calc(40px * var(--tw-space-y-reverse));
1043
1200
  }
1044
- .space-y-4 > :not([hidden]) ~ :not([hidden]){
1201
+ .space-y-4 > :not([hidden]) ~ :not([hidden]) {
1045
1202
  --tw-space-y-reverse: 0;
1046
1203
  margin-top: calc(16px * calc(1 - var(--tw-space-y-reverse)));
1047
1204
  margin-bottom: calc(16px * var(--tw-space-y-reverse));
1048
1205
  }
1049
- .space-y-5 > :not([hidden]) ~ :not([hidden]){
1206
+ .space-y-5 > :not([hidden]) ~ :not([hidden]) {
1050
1207
  --tw-space-y-reverse: 0;
1051
1208
  margin-top: calc(20px * calc(1 - var(--tw-space-y-reverse)));
1052
1209
  margin-bottom: calc(20px * var(--tw-space-y-reverse));
1053
1210
  }
1054
- .space-y-6 > :not([hidden]) ~ :not([hidden]){
1211
+ .space-y-6 > :not([hidden]) ~ :not([hidden]) {
1055
1212
  --tw-space-y-reverse: 0;
1056
1213
  margin-top: calc(24px * calc(1 - var(--tw-space-y-reverse)));
1057
1214
  margin-bottom: calc(24px * var(--tw-space-y-reverse));
1058
1215
  }
1059
- .space-y-8 > :not([hidden]) ~ :not([hidden]){
1216
+ .space-y-8 > :not([hidden]) ~ :not([hidden]) {
1060
1217
  --tw-space-y-reverse: 0;
1061
1218
  margin-top: calc(32px * calc(1 - var(--tw-space-y-reverse)));
1062
1219
  margin-bottom: calc(32px * var(--tw-space-y-reverse));
1063
1220
  }
1064
- .overflow-y-hidden{
1221
+ .overflow-y-hidden {
1065
1222
  overflow-y: hidden;
1066
1223
  }
1067
- .rounded-2xl{
1224
+ .rounded-2xl {
1068
1225
  border-radius: 1rem;
1069
1226
  }
1070
- .rounded-full{
1227
+ .rounded-full {
1071
1228
  border-radius: 9999px;
1072
1229
  }
1073
- .rounded-lg{
1230
+ .rounded-lg {
1074
1231
  border-radius: 0.5rem;
1075
1232
  }
1076
- .border{
1233
+ .border {
1077
1234
  border-width: 1px;
1078
1235
  }
1079
- .border-t{
1236
+ .border-\\[1\\.2px\\] {
1237
+ border-width: 1.2px;
1238
+ }
1239
+ .border-t {
1080
1240
  border-top-width: 1px;
1081
1241
  }
1082
- .border-ebecef{
1242
+ .border-solid {
1243
+ border-style: solid;
1244
+ }
1245
+ .border-\\[\\#EBECEF\\] {
1246
+ --tw-border-opacity: 1;
1247
+ border-color: rgb(235 236 239 / var(--tw-border-opacity));
1248
+ }
1249
+ .border-ebecef {
1083
1250
  --tw-border-opacity: 1;
1084
1251
  border-color: rgb(235 236 239 / var(--tw-border-opacity));
1085
1252
  }
1086
- .border-f1f5f8{
1253
+ .border-f1f5f8 {
1087
1254
  --tw-border-opacity: 1;
1088
1255
  border-color: rgb(241 245 248 / var(--tw-border-opacity));
1089
1256
  }
1090
- .border-f5f5f7{
1257
+ .border-f5f5f7 {
1091
1258
  --tw-border-opacity: 1;
1092
1259
  border-color: rgb(245 245 247 / var(--tw-border-opacity));
1093
1260
  }
1094
- .border-transparent{
1261
+ .border-transparent {
1095
1262
  border-color: transparent;
1096
1263
  }
1097
- .bg-0d151d{
1264
+ .bg-0d151d {
1098
1265
  --tw-bg-opacity: 1;
1099
1266
  background-color: rgb(13 21 29 / var(--tw-bg-opacity));
1100
1267
  }
1101
- .bg-black\\/50{
1268
+ .bg-black\\/50 {
1102
1269
  background-color: rgb(0 0 0 / 0.5);
1103
1270
  }
1104
- .bg-transparent{
1271
+ .bg-transparent {
1105
1272
  background-color: transparent;
1106
1273
  }
1107
- .bg-white{
1274
+ .bg-white {
1108
1275
  --tw-bg-opacity: 1;
1109
1276
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
1110
1277
  }
1111
- .p-2{
1112
- padding: 8px;
1278
+ .p-3 {
1279
+ padding: 12px;
1113
1280
  }
1114
- .p-4{
1281
+ .p-4 {
1115
1282
  padding: 16px;
1116
1283
  }
1117
- .p-7{
1284
+ .p-7 {
1118
1285
  padding: 28px;
1119
1286
  }
1120
- .px-2{
1287
+ .px-2 {
1121
1288
  padding-left: 8px;
1122
1289
  padding-right: 8px;
1123
1290
  }
1124
- .px-8{
1291
+ .px-8 {
1125
1292
  padding-left: 32px;
1126
1293
  padding-right: 32px;
1127
1294
  }
1128
- .py-1{
1295
+ .py-1 {
1129
1296
  padding-top: 4px;
1130
1297
  padding-bottom: 4px;
1131
1298
  }
1132
- .py-3{
1299
+ .py-3 {
1133
1300
  padding-top: 12px;
1134
1301
  padding-bottom: 12px;
1135
1302
  }
1136
- .pt-6{
1303
+ .pt-6 {
1137
1304
  padding-top: 24px;
1138
1305
  }
1139
- .text-center{
1306
+ .text-center {
1140
1307
  text-align: center;
1141
1308
  }
1142
- .font-sans{
1143
- font-family: Rubik, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
1309
+ .font-sans {
1310
+ font-family: TWK Lausanne, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
1144
1311
  }
1145
- .font-sora{
1146
- font-family: Sora, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
1147
- }
1148
- .text-2xl{
1312
+ .text-2xl {
1149
1313
  font-size: 24px;
1150
1314
  line-height: 32px;
1151
1315
  }
1152
- .text-lg{
1316
+ .text-lg {
1153
1317
  font-size: 18px;
1154
1318
  line-height: 28px;
1155
1319
  }
1156
- .text-sm{
1320
+ .text-sm {
1157
1321
  font-size: 14px;
1158
1322
  line-height: 20px;
1159
1323
  }
1160
- .text-xs{
1324
+ .text-xs {
1161
1325
  font-size: 12px;
1162
1326
  line-height: 16px;
1163
1327
  }
1164
- .font-bold{
1165
- font-weight: 700;
1328
+ .font-light {
1329
+ font-weight: 300;
1166
1330
  }
1167
- .font-medium{
1331
+ .font-medium {
1168
1332
  font-weight: 500;
1169
1333
  }
1170
- .font-semibold{
1334
+ .font-semibold {
1171
1335
  font-weight: 600;
1172
1336
  }
1173
- .text-0d151d{
1337
+ .text-0d151d {
1174
1338
  --tw-text-opacity: 1;
1175
1339
  color: rgb(13 21 29 / var(--tw-text-opacity));
1176
1340
  }
1177
- .text-29343f{
1341
+ .text-29343f {
1178
1342
  --tw-text-opacity: 1;
1179
1343
  color: rgb(41 52 63 / var(--tw-text-opacity));
1180
1344
  }
1181
- .text-3c424b{
1345
+ .text-3c424b {
1182
1346
  --tw-text-opacity: 1;
1183
1347
  color: rgb(60 66 75 / var(--tw-text-opacity));
1184
1348
  }
1185
- .text-657080{
1349
+ .text-657080 {
1186
1350
  --tw-text-opacity: 1;
1187
1351
  color: rgb(101 112 128 / var(--tw-text-opacity));
1188
1352
  }
1189
- .text-70868f{
1353
+ .text-70868f {
1190
1354
  --tw-text-opacity: 1;
1191
1355
  color: rgb(112 134 143 / var(--tw-text-opacity));
1192
1356
  }
1193
- .text-9ba3ae{
1357
+ .text-9ba3ae {
1194
1358
  --tw-text-opacity: 1;
1195
1359
  color: rgb(155 163 174 / var(--tw-text-opacity));
1196
1360
  }
1197
- .text-9eafc0{
1361
+ .text-9eafc0 {
1198
1362
  --tw-text-opacity: 1;
1199
1363
  color: rgb(158 175 192 / var(--tw-text-opacity));
1200
1364
  }
1201
- .text-black{
1365
+ .text-black {
1202
1366
  --tw-text-opacity: 1;
1203
1367
  color: rgb(0 0 0 / var(--tw-text-opacity));
1204
1368
  }
1205
- .text-gray-900{
1369
+ .text-gray-900 {
1206
1370
  --tw-text-opacity: 1;
1207
1371
  color: rgb(17 24 39 / var(--tw-text-opacity));
1208
1372
  }
1209
- .text-red-500{
1210
- --tw-text-opacity: 1;
1211
- color: rgb(239 68 68 / var(--tw-text-opacity));
1212
- }
1213
- .text-white{
1373
+ .text-white {
1214
1374
  --tw-text-opacity: 1;
1215
1375
  color: rgb(255 255 255 / var(--tw-text-opacity));
1216
1376
  }
1217
- .opacity-40{
1377
+ .opacity-40 {
1218
1378
  opacity: 0.4;
1219
1379
  }
1220
- .shadow{
1380
+ .shadow {
1221
1381
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
1222
1382
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
1223
1383
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1224
1384
  }
1225
- .shadow-sm{
1385
+ .shadow-sm {
1226
1386
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
1227
1387
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
1228
1388
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1229
1389
  }
1230
- .blur-lg{
1390
+ .blur-lg {
1231
1391
  --tw-blur: blur(16px);
1232
1392
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
1233
1393
  }
1234
- .filter{
1394
+ .filter {
1235
1395
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
1236
1396
  }
1237
- .backdrop-blur-lg{
1397
+ .backdrop-blur-lg {
1238
1398
  --tw-backdrop-blur: blur(16px);
1239
1399
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
1240
1400
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
1241
1401
  }
1242
- .transition{
1402
+ .transition {
1243
1403
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
1244
1404
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
1245
1405
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
1246
1406
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1247
1407
  transition-duration: 150ms;
1248
1408
  }
1249
- .duration-300{
1409
+ .duration-300 {
1250
1410
  transition-duration: 300ms;
1251
1411
  }
1252
- .duration-500{
1412
+ .duration-500 {
1253
1413
  transition-duration: 500ms;
1254
1414
  }
1255
- .ease-in-out{
1415
+ .ease-in-out {
1256
1416
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1257
1417
  }
1258
1418
  input[type='number']::-webkit-inner-spin-button,
1259
- input[type='number']::-webkit-outer-spin-button{
1419
+ input[type='number']::-webkit-outer-spin-button {
1260
1420
  -webkit-appearance: none;
1261
1421
  appearance: none;
1262
1422
  }
1263
1423
 
1264
- .hover\\:underline:hover{
1424
+ .hover\\:underline:hover {
1265
1425
  text-decoration-line: underline;
1266
1426
  }
1267
1427
 
1268
- .hover\\:shadow:hover{
1428
+ .hover\\:shadow:hover {
1269
1429
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
1270
1430
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
1271
1431
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1272
1432
  }
1273
1433
 
1274
- .focus\\:outline-none:focus{
1434
+ .focus\\:outline-none:focus {
1275
1435
  outline: 2px solid transparent;
1276
1436
  outline-offset: 2px;
1277
1437
  }
1278
1438
 
1279
- .focus\\:ring-2:focus{
1439
+ .focus\\:ring-2:focus {
1280
1440
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1281
1441
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1282
1442
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1283
1443
  }
1284
1444
 
1285
- .focus\\:ring-indigo-500:focus{
1445
+ .focus\\:ring-indigo-500:focus {
1286
1446
  --tw-ring-opacity: 1;
1287
1447
  --tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity));
1288
1448
  }
1289
1449
 
1290
- .focus\\:ring-offset-2:focus{
1450
+ .focus\\:ring-offset-2:focus {
1291
1451
  --tw-ring-offset-width: 2px;
1292
1452
  }
1293
1453
 
1294
- .focus-visible\\:ring:focus-visible{
1454
+ .focus-visible\\:ring:focus-visible {
1295
1455
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1296
1456
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1297
1457
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1298
1458
  }
1299
1459
 
1300
- .focus-visible\\:ring-purple-500\\/75:focus-visible{
1460
+ .focus-visible\\:ring-purple-500\\/75:focus-visible {
1301
1461
  --tw-ring-color: rgb(168 85 247 / 0.75);
1302
1462
  }
1303
1463
 
1304
- .disabled\\:cursor-not-allowed:disabled{
1464
+ .disabled\\:cursor-not-allowed:disabled {
1305
1465
  cursor: not-allowed;
1306
1466
  }
1307
1467
 
1308
- .disabled\\:opacity-40:disabled{
1468
+ .disabled\\:opacity-40:disabled {
1309
1469
  opacity: 0.4;
1310
1470
  }
1311
1471
 
1312
- @media (prefers-reduced-motion: reduce){
1313
- @keyframes spin{
1314
- to{
1472
+ @media (prefers-reduced-motion: reduce) {
1473
+ @keyframes spin {
1474
+ to {
1315
1475
  transform: rotate(360deg);
1316
1476
  }
1317
1477
  }
1318
- .motion-reduce\\:animate-\\[spin_1\\.5s_linear_infinite\\]{
1478
+ .motion-reduce\\:animate-\\[spin_1\\.5s_linear_infinite\\] {
1319
1479
  animation: spin 1.5s linear infinite;
1320
1480
  }
1321
1481
  }
1322
1482
 
1323
- .dark\\:border-f1f5f8\\/10:is(.dark *){
1483
+ .dark\\:border-f1f5f8\\/10:is(.dark *) {
1324
1484
  border-color: rgb(241 245 248 / 0.1);
1325
1485
  }
1326
1486
 
1327
- .dark\\:bg-0d151d:is(.dark *){
1487
+ .dark\\:bg-0d151d:is(.dark *) {
1328
1488
  --tw-bg-opacity: 1;
1329
1489
  background-color: rgb(13 21 29 / var(--tw-bg-opacity));
1330
1490
  }
1331
1491
 
1332
- .dark\\:bg-white:is(.dark *){
1492
+ .dark\\:bg-white:is(.dark *) {
1333
1493
  --tw-bg-opacity: 1;
1334
1494
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
1335
1495
  }
1336
1496
 
1337
- .dark\\:text-0d151d:is(.dark *){
1497
+ .dark\\:text-0d151d:is(.dark *) {
1338
1498
  --tw-text-opacity: 1;
1339
1499
  color: rgb(13 21 29 / var(--tw-text-opacity));
1340
1500
  }
1341
1501
 
1342
- .dark\\:text-9eafc0:is(.dark *){
1502
+ .dark\\:text-9eafc0:is(.dark *) {
1343
1503
  --tw-text-opacity: 1;
1344
1504
  color: rgb(158 175 192 / var(--tw-text-opacity));
1345
1505
  }
1346
1506
 
1347
- .dark\\:text-white:is(.dark *){
1507
+ .dark\\:text-white:is(.dark *) {
1348
1508
  --tw-text-opacity: 1;
1349
1509
  color: rgb(255 255 255 / var(--tw-text-opacity));
1350
1510
  }
1351
1511
 
1352
- @media (min-width: 768px){
1353
- .md\\:mt-2{
1512
+ @media (min-width: 768px) {
1513
+ .md\\:mt-2 {
1354
1514
  margin-top: 8px;
1355
1515
  }
1356
- .md\\:hidden{
1516
+ .md\\:hidden {
1357
1517
  display: none;
1358
1518
  }
1359
- .md\\:min-h-\\[35rem\\]{
1519
+ .md\\:min-h-\\[35rem\\] {
1360
1520
  min-height: 35rem;
1361
1521
  }
1362
- .md\\:max-w-md{
1522
+ .md\\:max-w-md {
1363
1523
  max-width: 448px;
1364
1524
  }
1365
- .md\\:items-center{
1525
+ .md\\:items-center {
1366
1526
  align-items: center;
1367
1527
  }
1368
- .md\\:overflow-y-auto{
1528
+ .md\\:overflow-y-auto {
1369
1529
  overflow-y: auto;
1370
1530
  }
1371
- .md\\:rounded-2xl{
1372
- border-radius: 1rem;
1531
+ .md\\:rounded-\\[24px\\] {
1532
+ border-radius: 24px;
1373
1533
  }
1374
- .md\\:rounded-b-2xl{
1534
+ .md\\:rounded-b-2xl {
1375
1535
  border-bottom-right-radius: 1rem;
1376
1536
  border-bottom-left-radius: 1rem;
1377
1537
  }
1378
- .md\\:p-4{
1538
+ .md\\:p-4 {
1379
1539
  padding: 16px;
1380
1540
  }
1381
1541
  }
@@ -1386,12 +1546,30 @@ var import_jsx_runtime = require("react/jsx-runtime");
1386
1546
  var Styles = () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", { children: styles_default });
1387
1547
  var Styles_default = Styles;
1388
1548
 
1549
+ // src/components/IDKitWidget/ShadowHost.tsx
1550
+ var import_react_dom = __toESM(require("react-dom"), 1);
1551
+ var import_react3 = require("react");
1552
+ var import_jsx_runtime2 = require("react/jsx-runtime");
1553
+ var ShadowHost = ({ id, children, mode = "open", delegatesFocus = false }) => {
1554
+ const [shadowRoot, setShadowRoot] = (0, import_react3.useState)(null);
1555
+ const hostRef = (0, import_react3.useCallback)(
1556
+ (node) => {
1557
+ if (node) {
1558
+ const root = node.shadowRoot ?? node.attachShadow({ mode, delegatesFocus });
1559
+ setShadowRoot(root);
1560
+ }
1561
+ },
1562
+ [mode, delegatesFocus]
1563
+ );
1564
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { ref: hostRef, id, children: shadowRoot && import_react_dom.default.createPortal(children, shadowRoot) });
1565
+ };
1566
+
1389
1567
  // src/components/IDKitWidget/BaseWidget.tsx
1390
1568
  var import_shallow3 = require("zustand/shallow");
1391
1569
 
1392
1570
  // src/components/Icons/XMarkIcon.tsx
1393
- var import_jsx_runtime2 = require("react/jsx-runtime");
1394
- var XMarkIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1571
+ var import_jsx_runtime3 = require("react/jsx-runtime");
1572
+ var XMarkIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1395
1573
  "path",
1396
1574
  {
1397
1575
  strokeWidth: "1.5",
@@ -1419,51 +1597,51 @@ function clsx() {
1419
1597
  }
1420
1598
  var clsx_default = clsx;
1421
1599
 
1600
+ // src/components/IDKitWidget/States/ErrorState.tsx
1601
+ var import_react4 = require("react");
1602
+
1422
1603
  // src/components/Icons/ErrorIcon.tsx
1423
- var import_jsx_runtime3 = require("react/jsx-runtime");
1424
- var ErrorIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 100 100", children: [
1425
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "50", cy: "50", r: "49.375", fill: "url(#a)", fillOpacity: ".65", stroke: "url(#b)", strokeWidth: "1.25" }),
1426
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("g", { filter: "url(#c)", children: [
1427
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "50", cy: "50", r: "35", fill: "#fff" }),
1428
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "50", cy: "50", r: "34.432", stroke: "#FFC9AD", strokeWidth: "1.136" })
1429
- ] }),
1430
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1604
+ var import_jsx_runtime4 = require("react/jsx-runtime");
1605
+ var ErrorIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { width: "88", height: "88", viewBox: "0 0 88 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1606
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { width: "88", height: "88", rx: "44", fill: "#9BA3AE" }),
1607
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { opacity: "0.2", width: "88", height: "88", rx: "44", fill: "url(#paint0_radial_117706_3198)" }),
1608
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "0.5", y: "0.5", width: "87", height: "87", rx: "43.5", stroke: "url(#paint1_linear_117706_3198)" }),
1609
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1431
1610
  "path",
1432
1611
  {
1433
- stroke: "#FF4732",
1434
- strokeLinecap: "round",
1435
- strokeLinejoin: "round",
1436
- strokeWidth: "3.75",
1437
- d: "m57.5 42.5-15 14.999m15 .001-15-14.999"
1612
+ d: "M33.0146 53.9853L43.4999 43.5M53.9851 33.0147L43.4999 43.5M43.4999 43.5L33.0146 33.0147M43.4999 43.5L53.9851 53.9853",
1613
+ stroke: "white",
1614
+ strokeWidth: "3"
1438
1615
  }
1439
1616
  ),
1440
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("defs", { children: [
1441
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("linearGradient", { id: "a", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
1442
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("stop", { stopColor: "#FFA483" }),
1443
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("stop", { offset: "1", stopColor: "#FFA483", stopOpacity: "0" })
1444
- ] }),
1445
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("linearGradient", { id: "b", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
1446
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("stop", { stopColor: "#FFA483" }),
1447
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("stop", { offset: ".713", stopColor: "#FFA483", stopOpacity: "0" })
1448
- ] }),
1449
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1450
- "filter",
1617
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("defs", { children: [
1618
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1619
+ "radialGradient",
1451
1620
  {
1452
- id: "c",
1453
- width: "77.5",
1454
- height: "77.5",
1455
- x: "11.25",
1456
- y: "13.125",
1457
- colorInterpolationFilters: "sRGB",
1458
- filterUnits: "userSpaceOnUse",
1621
+ id: "paint0_radial_117706_3198",
1622
+ cx: "0",
1623
+ cy: "0",
1624
+ r: "1",
1625
+ gradientUnits: "userSpaceOnUse",
1626
+ gradientTransform: "translate(20 -1.6729e-06) rotate(63.4349) scale(98.387 97.9627)",
1459
1627
  children: [
1460
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
1461
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }),
1462
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("feOffset", { dy: "1.875" }),
1463
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("feGaussianBlur", { stdDeviation: "1.875" }),
1464
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("feColorMatrix", { values: "0 0 0 0 1 0 0 0 0 0.788235 0 0 0 0 0.678431 0 0 0 0.45 0" }),
1465
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_39_740" }),
1466
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_39_740", result: "shape" })
1628
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { stopColor: "white" }),
1629
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
1630
+ ]
1631
+ }
1632
+ ),
1633
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1634
+ "linearGradient",
1635
+ {
1636
+ id: "paint1_linear_117706_3198",
1637
+ x1: "44",
1638
+ y1: "0",
1639
+ x2: "44",
1640
+ y2: "88",
1641
+ gradientUnits: "userSpaceOnUse",
1642
+ children: [
1643
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { stopColor: "white", stopOpacity: "0.3" }),
1644
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
1467
1645
  ]
1468
1646
  }
1469
1647
  )
@@ -1474,75 +1652,47 @@ var ErrorIcon_default = ErrorIcon;
1474
1652
  // src/components/IDKitWidget/States/ErrorState.tsx
1475
1653
  var import_idkit_core2 = require("@worldcoin/idkit-core");
1476
1654
 
1477
- // src/components/Icons/ReloadIcon.tsx
1478
- var import_jsx_runtime4 = require("react/jsx-runtime");
1479
- var ReloadIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1480
- "path",
1481
- {
1482
- d: "M12.3809 1.6665L13.3626 4.24214C12.3754 3.66434 11.2263 3.33317 9.99992 3.33317C6.31802 3.33317 3.33325 6.31794 3.33325 9.99984C3.33325 11.2141 3.6579 12.3526 4.22513 13.3332M7.61897 18.3332L6.63719 15.7575C7.62438 16.3353 8.77348 16.6665 9.99992 16.6665C13.6818 16.6665 16.6666 13.6817 16.6666 9.99984C16.6666 8.78555 16.3419 7.64708 15.7747 6.6665",
1483
- stroke: "#3C424B",
1484
- strokeWidth: "1.5",
1485
- strokeLinecap: "round",
1486
- strokeLinejoin: "round"
1487
- }
1488
- ) });
1489
- var ReloadIcon_default = ReloadIcon;
1490
-
1491
1655
  // src/components/Icons/WarningIcon.tsx
1492
1656
  var import_jsx_runtime5 = require("react/jsx-runtime");
1493
- var WarningIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 100 100", ...props, children: [
1494
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1495
- "circle",
1496
- {
1497
- cx: "50",
1498
- cy: "50",
1499
- r: "49.375",
1500
- fill: "url(#warning-a)",
1501
- fillOpacity: ".65",
1502
- stroke: "url(#warning-b)",
1503
- strokeWidth: "1.25"
1504
- }
1505
- ),
1506
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("g", { filter: "url(#warning-c)", children: [
1507
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "50", cy: "50", r: "35", fill: "#fff" }),
1508
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "50", cy: "50", r: "34.432", stroke: "#FFE999", strokeWidth: "1.136" })
1509
- ] }),
1657
+ var WarningIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("svg", { width: "88", height: "88", viewBox: "0 0 88 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1658
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("rect", { width: "88", height: "88", rx: "44", fill: "#FFAE00" }),
1659
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("rect", { opacity: "0.2", width: "88", height: "88", rx: "44", fill: "url(#paint0_radial_117706_3182)" }),
1660
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("rect", { x: "0.5", y: "0.5", width: "87", height: "87", rx: "43.5", stroke: "url(#paint1_linear_117706_3182)" }),
1510
1661
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1511
1662
  "path",
1512
1663
  {
1513
- fill: "#FFB200",
1514
- fillRule: "evenodd",
1515
- d: "M47.46 40.207c1.107-1.943 3.973-1.943 5.08 0l9.59 16.834c1.076 1.888-.324 4.209-2.54 4.209H40.41c-2.216 0-3.616-2.32-2.54-4.21l9.59-16.833Zm3.79 16.043a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm-.313-10a.937.937 0 1 0-1.875 0v6.25a.938.938 0 0 0 1.875 0v-6.25Z",
1516
- clipRule: "evenodd"
1664
+ d: "M64.1707 59.5415H22.8298L43.4998 22.3354L64.1707 59.5415ZM42.1208 51.3003L42.1218 54.0503H44.8992L44.8982 51.3003H42.1208ZM42.1248 46.7085H44.8748V36.6255H42.1248V46.7085Z",
1665
+ fill: "white"
1517
1666
  }
1518
1667
  ),
1519
1668
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("defs", { children: [
1520
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("linearGradient", { id: "warning-a", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
1521
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("stop", { stopColor: "#FFDA66" }),
1522
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("stop", { offset: "1", stopColor: "#FFDA66", stopOpacity: "0" })
1523
- ] }),
1524
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("linearGradient", { id: "warning-b", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
1525
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("stop", { stopColor: "#FFDA66" }),
1526
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("stop", { offset: ".713", stopColor: "#FFDA66", stopOpacity: "0" })
1527
- ] }),
1528
1669
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1529
- "filter",
1670
+ "radialGradient",
1530
1671
  {
1531
- id: "warning-c",
1532
- width: "77.5",
1533
- height: "77.5",
1534
- x: "11.25",
1535
- y: "13.125",
1536
- colorInterpolationFilters: "sRGB",
1537
- filterUnits: "userSpaceOnUse",
1672
+ id: "paint0_radial_117706_3182",
1673
+ cx: "0",
1674
+ cy: "0",
1675
+ r: "1",
1676
+ gradientUnits: "userSpaceOnUse",
1677
+ gradientTransform: "translate(20 -1.6729e-06) rotate(63.4349) scale(98.387 97.9627)",
1538
1678
  children: [
1539
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
1540
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }),
1541
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("feOffset", { dy: "1.875" }),
1542
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("feGaussianBlur", { stdDeviation: "1.875" }),
1543
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("feColorMatrix", { values: "0 0 0 0 1 0 0 0 0 0.913725 0 0 0 0 0.6 0 0 0 0.45 0" }),
1544
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_39_758" }),
1545
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_39_758", result: "shape" })
1679
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("stop", { stopColor: "white" }),
1680
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
1681
+ ]
1682
+ }
1683
+ ),
1684
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1685
+ "linearGradient",
1686
+ {
1687
+ id: "paint1_linear_117706_3182",
1688
+ x1: "44",
1689
+ y1: "0",
1690
+ x2: "44",
1691
+ y2: "88",
1692
+ gradientUnits: "userSpaceOnUse",
1693
+ children: [
1694
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("stop", { stopColor: "white", stopOpacity: "0.3" }),
1695
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
1546
1696
  ]
1547
1697
  }
1548
1698
  )
@@ -1565,39 +1715,35 @@ var ERROR_MESSAGES = {
1565
1715
  "You have already verified the maximum number of times for this action."
1566
1716
  ),
1567
1717
  [import_idkit_core2.AppErrorCodes.CredentialUnavailable]: __("It seems you do not have the verification level required by this app."),
1568
- [import_idkit_core2.AppErrorCodes.MalformedRequest]: __(
1569
- "There was a problem with this request. Please try again or contact the app owner."
1570
- ),
1571
1718
  [import_idkit_core2.AppErrorCodes.InvalidNetwork]: __(
1572
1719
  "Invalid network. If you are the app owner, visit docs.world.org/test for details."
1573
1720
  ),
1574
- [import_idkit_core2.AppErrorCodes.InclusionProofFailed]: __("There was an issue fetching your credential. Please try again."),
1575
1721
  [import_idkit_core2.AppErrorCodes.InclusionProofPending]: __(
1576
1722
  "Your identity is still being registered. Please wait a few minutes and try again."
1577
1723
  ),
1578
- [import_idkit_core2.AppErrorCodes.GenericError]: __("Something unexpected went wrong. Please try again."),
1579
- [import_idkit_core2.AppErrorCodes.UnexpectedResponse]: __("Unexpected response from your wallet. Please try again."),
1580
- [import_idkit_core2.AppErrorCodes.FailedByHostApp]: __("Verification failed by the app. Please contact the app owner for details.")
1724
+ [import_idkit_core2.AppErrorCodes.GenericError]: __("We couldn't complete your request. Please try again.")
1581
1725
  };
1582
1726
  var ErrorState = (props) => {
1583
1727
  const { retryFlow, errorState } = idkit_default(getParams);
1584
1728
  const { show_modal } = props;
1729
+ (0, import_react4.useEffect)(() => {
1730
+ if (errorState) {
1731
+ console.error(`Error state: `, errorState);
1732
+ }
1733
+ }, [errorState]);
1585
1734
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "space-y-8", children: [
1586
1735
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: clsx_default("flex items-center justify-center", show_modal ? "-mt-5" : ""), children: errorState?.code == import_idkit_core2.AppErrorCodes.VerificationRejected ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(WarningIcon_default, { className: "w-24" }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ErrorIcon_default, { className: "w-24" }) }),
1587
1736
  /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
1588
1737
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-center text-2xl font-semibold text-gray-900 dark:text-white", children: (errorState?.code && ERROR_TITLES[errorState.code]) ?? ERROR_TITLES[import_idkit_core2.AppErrorCodes.GenericError] }),
1589
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "mx-auto mt-2 max-w-[224px] text-center text-657080", children: errorState?.message ?? ERROR_MESSAGES[errorState?.code ?? import_idkit_core2.AppErrorCodes.GenericError] })
1738
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "mx-auto mt-2 max-w-[224px] text-center text-657080", children: (errorState?.code && ERROR_MESSAGES[errorState.code]) ?? ERROR_MESSAGES[import_idkit_core2.AppErrorCodes.GenericError] })
1590
1739
  ] }),
1591
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1740
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1592
1741
  "button",
1593
1742
  {
1594
1743
  type: "button",
1595
1744
  onClick: retryFlow,
1596
- className: "inline-flex items-center rounded-lg border border-ebecef bg-transparent px-8 py-3 font-medium text-3c424b shadow-sm transition duration-300 hover:shadow focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-40",
1597
- children: [
1598
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ReloadIcon_default, { className: "mr-1.5 size-5" }),
1599
- __("Try Again")
1600
- ]
1745
+ className: "inline-flex items-center rounded-full border-[1.2px] border-ebecef bg-transparent px-8 py-3 font-semibold text-gray-900 shadow-sm transition duration-300 hover:shadow focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-40",
1746
+ children: __("Try Again")
1601
1747
  }
1602
1748
  ) })
1603
1749
  ] });
@@ -1609,60 +1755,39 @@ var Toast = __toESM(require("@radix-ui/react-toast"), 1);
1609
1755
 
1610
1756
  // src/components/Icons/CheckIcon.tsx
1611
1757
  var import_jsx_runtime7 = require("react/jsx-runtime");
1612
- var CheckIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 100 100", ...props, children: [
1613
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1614
- "circle",
1615
- {
1616
- cx: "50",
1617
- cy: "50",
1618
- r: "49.375",
1619
- fill: "url(#success-a)",
1620
- fillOpacity: ".65",
1621
- stroke: "url(#success-b)",
1622
- strokeWidth: "1.25"
1623
- }
1624
- ),
1625
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("g", { filter: "url(#success-c)", children: [
1626
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("circle", { cx: "50", cy: "50", r: "35", fill: "#fff" }),
1627
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("circle", { cx: "50", cy: "50", r: "34.432", stroke: "#CCEBCC", strokeWidth: "1.136" })
1628
- ] }),
1629
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1630
- "path",
1631
- {
1632
- stroke: "#090",
1633
- strokeLinecap: "round",
1634
- strokeLinejoin: "round",
1635
- strokeWidth: "3.75",
1636
- d: "m41.25 52.5 4.375 4.375 13.125-13.75"
1637
- }
1638
- ),
1758
+ var CheckIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", { width: "88", height: "88", viewBox: "0 0 88 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1759
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("rect", { width: "88", height: "88", rx: "44", fill: "#00C230" }),
1760
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("rect", { opacity: "0.2", width: "88", height: "88", rx: "44", fill: "url(#paint0_radial_117706_3174)" }),
1761
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("rect", { x: "0.5", y: "0.5", width: "87", height: "87", rx: "43.5", stroke: "url(#paint1_linear_117706_3174)" }),
1762
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M29.5 45.5L37.5 53.5L57.5 33.5", stroke: "white", strokeWidth: "3" }),
1639
1763
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("defs", { children: [
1640
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("linearGradient", { id: "success-a", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
1641
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("stop", { stopColor: "#99D699" }),
1642
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("stop", { offset: "1", stopColor: "#99D699", stopOpacity: "0" })
1643
- ] }),
1644
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("linearGradient", { id: "success-b", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
1645
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("stop", { stopColor: "#99D699" }),
1646
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("stop", { offset: ".713", stopColor: "#99D699", stopOpacity: "0" })
1647
- ] }),
1648
1764
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1649
- "filter",
1765
+ "radialGradient",
1650
1766
  {
1651
- id: "success-c",
1652
- width: "77.5",
1653
- height: "77.5",
1654
- x: "11.25",
1655
- y: "13.125",
1656
- colorInterpolationFilters: "sRGB",
1657
- filterUnits: "userSpaceOnUse",
1767
+ id: "paint0_radial_117706_3174",
1768
+ cx: "0",
1769
+ cy: "0",
1770
+ r: "1",
1771
+ gradientUnits: "userSpaceOnUse",
1772
+ gradientTransform: "translate(20 -1.6729e-06) rotate(63.4349) scale(98.387 97.9627)",
1658
1773
  children: [
1659
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
1660
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }),
1661
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("feOffset", { dy: "1.875" }),
1662
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("feGaussianBlur", { stdDeviation: "1.875" }),
1663
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("feColorMatrix", { values: "0 0 0 0 0.8 0 0 0 0 0.921569 0 0 0 0 0.8 0 0 0 0.45 0" }),
1664
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_39_712" }),
1665
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_39_712", result: "shape" })
1774
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("stop", { stopColor: "white" }),
1775
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
1776
+ ]
1777
+ }
1778
+ ),
1779
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1780
+ "linearGradient",
1781
+ {
1782
+ id: "paint1_linear_117706_3174",
1783
+ x1: "44",
1784
+ y1: "0",
1785
+ x2: "44",
1786
+ y2: "88",
1787
+ gradientUnits: "userSpaceOnUse",
1788
+ children: [
1789
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("stop", { stopColor: "white", stopOpacity: "0.3" }),
1790
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
1666
1791
  ]
1667
1792
  }
1668
1793
  )
@@ -1676,8 +1801,8 @@ var SuccessState = (props) => {
1676
1801
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "space-y-6", children: [
1677
1802
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: clsx_default("flex items-center justify-center", props.show_modal ? "-mt-5" : ""), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CheckIcon_default, { className: "w-24 text-white" }) }),
1678
1803
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
1679
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-center text-2xl font-semibold text-gray-900 dark:text-white", children: __("Successfully verified") }),
1680
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "mx-auto mt-2 max-w-[224px] text-center text-lg text-657080", children: __("Your World ID verification was successful") })
1804
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-center text-2xl font-semibold text-gray-900 dark:text-white", children: __("All set!") }),
1805
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "mx-auto mt-2 max-w-[260px] text-center text-lg text-657080", children: __("Your World ID is now connected") })
1681
1806
  ] })
1682
1807
  ] });
1683
1808
  };
@@ -1687,7 +1812,7 @@ var SuccessState_default = SuccessState;
1687
1812
  var import_copy_to_clipboard = __toESM(require("copy-to-clipboard"), 1);
1688
1813
 
1689
1814
  // src/components/QRCode.tsx
1690
- var import_react3 = require("react");
1815
+ var import_react5 = require("react");
1691
1816
  var import_qrcode = __toESM(require("qrcode/lib/core/qrcode.js"), 1);
1692
1817
  var import_jsx_runtime9 = require("react/jsx-runtime");
1693
1818
  var generateMatrix = (data) => {
@@ -1703,7 +1828,7 @@ var generateMatrix = (data) => {
1703
1828
  );
1704
1829
  };
1705
1830
  var Qrcode = ({ data, size = 300 }) => {
1706
- const dots = (0, import_react3.useMemo)(() => {
1831
+ const dots = (0, import_react5.useMemo)(() => {
1707
1832
  const dots2 = [];
1708
1833
  const matrix = generateMatrix(data);
1709
1834
  const cellSize = size / matrix.length;
@@ -1743,7 +1868,7 @@ var Qrcode = ({ data, size = 300 }) => {
1743
1868
  "circle",
1744
1869
  {
1745
1870
  fill: "currentColor",
1746
- r: cellSize / 3,
1871
+ r: cellSize / 2.2,
1747
1872
  cx: i * cellSize + cellSize / 2,
1748
1873
  cy: j * cellSize + cellSize / 2,
1749
1874
  className: "text-black dark:text-white"
@@ -1757,19 +1882,19 @@ var Qrcode = ({ data, size = 300 }) => {
1757
1882
  }, [size, data]);
1758
1883
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("svg", { height: size, width: size, "data-test-id": "qr-code", children: dots });
1759
1884
  };
1760
- var QRCode_default = (0, import_react3.memo)(Qrcode);
1885
+ var QRCode_default = (0, import_react5.memo)(Qrcode);
1761
1886
 
1762
1887
  // src/components/IDKitWidget/States/WorldID/QRState.tsx
1763
- var import_react4 = require("react");
1888
+ var import_react6 = require("react");
1764
1889
  var import_framer_motion = require("framer-motion");
1765
1890
 
1766
1891
  // src/components/Icons/WorldcoinIcon.tsx
1767
1892
  var import_jsx_runtime10 = require("react/jsx-runtime");
1768
- var WorldcoinIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 33 32", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1893
+ var WorldcoinIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1769
1894
  "path",
1770
1895
  {
1771
- fill: "currentColor",
1772
- d: "M30.7195 9.77312C29.9097 7.87434 28.7647 6.17103 27.2845 4.6911C25.8044 3.21117 24.1288 2.06632 22.2298 1.25654C20.247 0.418848 18.1525 0 16.0021 0C13.8238 0 11.7293 0.418848 9.7744 1.25654C7.87537 2.06632 6.17184 3.21117 4.69171 4.6911C3.21159 6.17103 2.06659 7.87434 1.25671 9.77312C0.418903 11.7277 0 13.822 0 16C0 18.1501 0.418903 20.2443 1.25671 22.2269C2.06659 24.1257 3.21159 25.829 4.69171 27.3089C6.17184 28.7888 7.87537 29.9337 9.7744 30.7155C11.7572 31.5532 13.8517 31.9721 16.0021 31.9721C18.1525 31.9721 20.247 31.5532 22.2298 30.7155C24.1288 29.9058 25.8323 28.7609 27.3125 27.281C28.7926 25.801 29.9376 24.0977 30.7475 22.1989C31.5853 20.2164 32.0042 18.1222 32.0042 15.9721C32.0042 13.822 31.5574 11.7277 30.7195 9.77312ZM10.696 14.4921C11.3383 11.9232 13.6842 10.0524 16.4489 10.0524H27.5638C28.2899 11.4206 28.7367 12.9284 28.9043 14.4921H10.696ZM28.9043 17.5079C28.7367 19.0716 28.262 20.5794 27.5638 21.9476H16.4489C13.6842 21.9476 11.3662 20.0489 10.696 17.5079H28.9043ZM6.81415 6.81326C9.27172 4.35602 12.5392 3.01571 16.0021 3.01571C19.465 3.01571 22.7325 4.35602 25.19 6.81326C25.2738 6.89703 25.3297 6.95288 25.4134 7.03665H16.4489C14.0472 7.03665 11.8131 7.95811 10.1095 9.66143C8.76903 11.0017 7.9033 12.6771 7.62403 14.4921H3.09988C3.435 11.5881 4.71964 8.9075 6.81415 6.81326ZM16.0021 28.9843C12.5392 28.9843 9.27172 27.644 6.81415 25.1867C4.71964 23.0925 3.435 20.3839 3.09988 17.5079H7.62403C7.93123 19.3229 8.79696 20.9983 10.1095 22.3386C11.8131 24.0419 14.0472 24.9633 16.4489 24.9633H25.4134C25.3297 25.0471 25.2738 25.103 25.19 25.1867C22.7325 27.644 19.465 28.9843 16.0021 28.9843Z"
1896
+ d: "M30.7367 9.77239C29.9301 7.86586 28.7772 6.15721 27.3084 4.68831C25.8397 3.21941 24.1275 2.06636 22.225 1.2596C20.2502 0.422405 18.1574 0 15.9962 0C13.8388 0 11.7422 0.422405 9.76742 1.2596C7.86112 2.06636 6.15268 3.21941 4.68395 4.68831C3.21522 6.15721 2.06231 7.86966 1.25565 9.77239C0.422354 11.7436 0 13.8404 0 15.9981C0 18.1558 0.422354 20.2526 1.25945 22.2276C2.06611 24.1341 3.21903 25.8428 4.68775 27.3117C6.15648 28.7806 7.86873 29.9336 9.77122 30.7404C11.746 31.5738 13.8388 32 16 32C18.1574 32 20.254 31.5776 22.2288 30.7404C24.1351 29.9336 25.8435 28.7806 27.3122 27.3117C28.781 25.8428 29.9339 24.1303 30.7405 22.2276C31.5738 20.2526 32 18.1596 32 15.9981C31.9962 13.8404 31.57 11.7436 30.7367 9.77239ZM10.6844 14.4949C11.3503 11.9377 13.679 10.0464 16.4452 10.0464H27.552C28.2673 11.4278 28.7239 12.9309 28.9027 14.4949H10.6844ZM28.9027 17.5012C28.7239 19.0653 28.2635 20.5684 27.552 21.9498H16.4452C13.6828 21.9498 11.3541 20.0585 10.6844 17.5012H28.9027ZM6.81094 6.81175C9.26516 4.35724 12.526 3.0063 15.9962 3.0063C19.4663 3.0063 22.7272 4.35724 25.1815 6.81175C25.2576 6.88786 25.3298 6.96397 25.4021 7.04008H16.4452C14.0518 7.04008 11.8031 7.97241 10.1099 9.66583C8.77812 10.9977 7.91819 12.6759 7.60999 14.4988H3.09346C3.42449 11.5952 4.71439 8.90855 6.81094 6.81175ZM15.9962 28.9937C12.526 28.9937 9.26516 27.6428 6.81094 25.1883C4.71439 23.0915 3.42449 20.4048 3.09346 17.5051H7.60999C7.91439 19.3279 8.77812 21.0061 10.1099 22.338C11.8031 24.0314 14.0518 24.9637 16.4452 24.9637H25.4059C25.3337 25.0398 25.2576 25.1159 25.1853 25.1921C22.731 27.639 19.4663 28.9937 15.9962 28.9937Z",
1897
+ fill: "currentColor"
1773
1898
  }
1774
1899
  ) });
1775
1900
  var WorldcoinIcon_default = WorldcoinIcon;
@@ -1890,8 +2015,8 @@ var QRPlaceholderIcon_default = QRPlaceholderIcon;
1890
2015
  var import_jsx_runtime12 = require("react/jsx-runtime");
1891
2016
  var QRState = ({ qrData, showQR, setShowQR }) => {
1892
2017
  const media = useMedia_default();
1893
- const [copiedLink, setCopiedLink] = (0, import_react4.useState)(false);
1894
- const copyLink = (0, import_react4.useCallback)(() => {
2018
+ const [copiedLink, setCopiedLink] = (0, import_react6.useState)(false);
2019
+ const copyLink = (0, import_react6.useCallback)(() => {
1895
2020
  (0, import_copy_to_clipboard.default)(qrData ?? "");
1896
2021
  setCopiedLink(true);
1897
2022
  setTimeout(() => setCopiedLink(false), 2e3);
@@ -1979,10 +2104,10 @@ var QRState = ({ qrData, showQR, setShowQR }) => {
1979
2104
  },
1980
2105
  "copied"
1981
2106
  ) }),
1982
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "relative inline-flex items-center justify-center rounded-2xl border border-f1f5f8 p-2 dark:border-f1f5f8/10", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "text-29343f dark:text-white", children: qrData ? (
2107
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "relative inline-flex items-center justify-center rounded-2xl border border-f1f5f8 p-3 dark:border-f1f5f8/10", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "text-29343f dark:text-white", children: qrData ? (
1983
2108
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
1984
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { onClick: copyLink, className: "cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(QRCode_default, { data: qrData, size: 244 }) })
1985
- ) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex size-[244px] items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(QRPlaceholderIcon_default, { className: "size-[244px] animate-pulse" }) }) }) })
2109
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { onClick: copyLink, className: "cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(QRCode_default, { data: qrData, size: 200 }) })
2110
+ ) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex size-[200px] items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(QRPlaceholderIcon_default, { className: "size-[200px] animate-pulse" }) }) }) })
1986
2111
  ] })
1987
2112
  ] });
1988
2113
  };
@@ -1990,15 +2115,15 @@ var QRState_default = QRState;
1990
2115
 
1991
2116
  // src/components/IDKitWidget/States/WorldIDState.tsx
1992
2117
  var import_shallow2 = require("zustand/shallow");
1993
- var import_react6 = require("react");
2118
+ var import_react8 = require("react");
1994
2119
 
1995
2120
  // src/services/wld-bridge.ts
1996
- var import_react5 = require("react");
2121
+ var import_react7 = require("react");
1997
2122
  var import_idkit_core3 = require("@worldcoin/idkit-core");
1998
2123
  var useWorldBridge = (app_id, action, signal, bridge_url, verification_level, action_description, partner) => {
1999
- const ref_verification_level = (0, import_react5.useRef)(verification_level);
2124
+ const ref_verification_level = (0, import_react7.useRef)(verification_level);
2000
2125
  const { reset, result, connectorURI, createClient, pollForUpdates, verificationState, errorCode } = (0, import_idkit_core3.useWorldBridgeStore)();
2001
- (0, import_react5.useEffect)(() => {
2126
+ (0, import_react7.useEffect)(() => {
2002
2127
  if (!connectorURI) {
2003
2128
  void createClient({
2004
2129
  app_id,
@@ -2021,7 +2146,7 @@ var useWorldBridge = (app_id, action, signal, bridge_url, verification_level, ac
2021
2146
  connectorURI,
2022
2147
  partner
2023
2148
  ]);
2024
- (0, import_react5.useEffect)(() => {
2149
+ (0, import_react7.useEffect)(() => {
2025
2150
  if (!connectorURI || result || errorCode) return;
2026
2151
  const interval = setInterval(() => void pollForUpdates(), 3e3);
2027
2152
  return () => clearInterval(interval);
@@ -2070,7 +2195,7 @@ var getOptions = (store) => ({
2070
2195
  });
2071
2196
  var WorldIDState = (props) => {
2072
2197
  const media = useMedia_default();
2073
- const [showQR, setShowQR] = (0, import_react6.useState)(false);
2198
+ const [showQR, setShowQR] = (0, import_react8.useState)(false);
2074
2199
  const {
2075
2200
  app_id,
2076
2201
  action,
@@ -2092,8 +2217,8 @@ var WorldIDState = (props) => {
2092
2217
  action_description,
2093
2218
  partner
2094
2219
  );
2095
- (0, import_react6.useEffect)(() => reset, [reset]);
2096
- (0, import_react6.useEffect)(() => {
2220
+ (0, import_react8.useEffect)(() => reset, [reset]);
2221
+ (0, import_react8.useEffect)(() => {
2097
2222
  if (verificationState === import_idkit_core4.VerificationState.Failed) {
2098
2223
  setStage("ERROR" /* ERROR */);
2099
2224
  setErrorState({ code: errorCode ?? import_idkit_core4.AppErrorCodes.GenericError });
@@ -2118,22 +2243,16 @@ var WorldIDState = (props) => {
2118
2243
  ),
2119
2244
  children: [
2120
2245
  /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: clsx_default(!show_modal ? "hidden" : ""), children: [
2121
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "mb-4 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(WorldcoinIcon_default, { className: "h-10 text-0d151d dark:text-white" }) }),
2122
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "font-sora text-2xl font-semibold text-gray-900 dark:text-white", children: __("Verify with World ID") }),
2123
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("p", { className: clsx_default("mt-3 text-657080 dark:text-9eafc0 md:mt-2", { hidden: media === "mobile" }), children: [
2124
- "Use your camera to scan the QR code. ",
2125
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("br", {}),
2126
- " ",
2127
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-red-500", children: "Keep this window open after scanning." })
2128
- ] })
2246
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "mb-4 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "flex size-14 items-center justify-center rounded-full border-[1.2px] border-solid border-[#EBECEF]", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(WorldcoinIcon_default, { className: "size-8 text-0d151d dark:text-white" }) }) }),
2247
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "text-2xl font-semibold text-gray-900 dark:text-white", children: __("Connect your World ID") }),
2248
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: clsx_default("mt-3 text-657080 dark:text-9eafc0 md:mt-2", { hidden: media === "mobile" }), children: __("Use phone camera to scan the QR code") })
2129
2249
  ] }),
2130
2250
  /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "relative w-full", children: [
2131
2251
  verificationState === import_idkit_core4.VerificationState.WaitingForApp && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "absolute inset-0 flex flex-col items-center justify-center space-y-6", children: [
2132
2252
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(LoadingIcon_default, { className: "size-6" }),
2133
2253
  /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { children: [
2134
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "font-bold text-657080", children: "Verifying" }),
2135
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "text-sm text-657080", children: "Please continue in app" }),
2136
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: clsx_default(show_modal ? "" : "hidden", "mt-2 text-sm font-bold text-red-500"), children: "Don't close this window" })
2254
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "font-medium text-657080", children: __("Connecting...") }),
2255
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "text-sm font-light text-657080", children: __("Please continue in app") })
2137
2256
  ] })
2138
2257
  ] }),
2139
2258
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
@@ -2155,7 +2274,7 @@ var WorldIDState_default = WorldIDState;
2155
2274
 
2156
2275
  // src/components/IDKitWidget/BaseWidget.tsx
2157
2276
  var Dialog = __toESM(require("@radix-ui/react-dialog"), 1);
2158
- var import_react7 = require("react");
2277
+ var import_react9 = require("react");
2159
2278
  var import_framer_motion2 = require("framer-motion");
2160
2279
 
2161
2280
  // src/components/IDKitWidget/States/HostAppVerificationState.tsx
@@ -2170,11 +2289,12 @@ var HostAppVerificationState_default = HostAppVerificationState;
2170
2289
 
2171
2290
  // src/components/IDKitWidget/BaseWidget.tsx
2172
2291
  var import_jsx_runtime16 = require("react/jsx-runtime");
2173
- var getParams2 = ({ open, processing, onOpenChange, stage, setStage, setOptions }) => ({
2292
+ var getParams2 = ({ open, processing, onOpenChange, stage, setStage, setOptions, setErrorState }) => ({
2174
2293
  stage,
2175
2294
  setStage,
2176
2295
  processing,
2177
2296
  setOptions,
2297
+ setErrorState,
2178
2298
  isOpen: open,
2179
2299
  onOpenChange
2180
2300
  });
@@ -2186,14 +2306,14 @@ var IDKitWidget = ({
2186
2306
  ...config
2187
2307
  }) => {
2188
2308
  const media = useMedia_default();
2189
- const { isOpen, onOpenChange, stage, setOptions } = idkit_default(getParams2, import_shallow3.shallow);
2190
- (0, import_react7.useEffect)(() => {
2309
+ const { isOpen, onOpenChange, stage, setStage, setOptions, setErrorState } = idkit_default(getParams2, import_shallow3.shallow);
2310
+ (0, import_react9.useEffect)(() => {
2191
2311
  if (config.action === "") {
2192
2312
  throw new Error(__("Action cannot be an empty string."));
2193
2313
  }
2194
2314
  setOptions(config, "props" /* PROPS */);
2195
2315
  }, [config, setOptions]);
2196
- const StageContent = (0, import_react7.useMemo)(() => {
2316
+ const StageContent = (0, import_react9.useMemo)(() => {
2197
2317
  switch (stage) {
2198
2318
  case "WORLD_ID" /* WORLD_ID */:
2199
2319
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(WorldIDState_default, { show_modal });
@@ -2207,7 +2327,7 @@ var IDKitWidget = ({
2207
2327
  throw new Error(__("Invalid IDKitStage :stage.", { stage }));
2208
2328
  }
2209
2329
  }, [stage, show_modal]);
2210
- const widgetContent = /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react_shadow.default.div, { mode: "open", id: "idkit-widget", children: [
2330
+ const widgetContent = /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(ShadowHost, { mode: "open", id: "idkit-widget", children: [
2211
2331
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Styles_default, {}),
2212
2332
  /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Toast.Provider, { children: [
2213
2333
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Toast.Viewport, { className: "flex justify-center" }),
@@ -2224,7 +2344,7 @@ var IDKitWidget = ({
2224
2344
  if (!show_modal && container_id) {
2225
2345
  const containerElement = document.getElementById(container_id);
2226
2346
  if (containerElement) {
2227
- return (0, import_react_dom.createPortal)(widgetContent, containerElement);
2347
+ return (0, import_react_dom2.createPortal)(widgetContent, containerElement);
2228
2348
  }
2229
2349
  console.warn(`Container element with id "${container_id}" not found. Rendering widget inline.`);
2230
2350
  }
@@ -2235,7 +2355,7 @@ var IDKitWidget = ({
2235
2355
  };
2236
2356
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Dialog.Root, { open: isOpen, onOpenChange, children: [
2237
2357
  children?.({ open: () => onOpenChange(true) }),
2238
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Dialog.Portal, { forceMount: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react7.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_framer_motion2.AnimatePresence, { children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react_shadow.default.div, { mode: "open", id: "idkit-widget", children: [
2358
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Dialog.Portal, { forceMount: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react9.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_framer_motion2.AnimatePresence, { children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(ShadowHost, { mode: "open", id: "idkit-widget", children: [
2239
2359
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Styles_default, {}),
2240
2360
  /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { id: "modal", className: "fixed z-[9999] font-sans", children: [
2241
2361
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Dialog.Overlay, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
@@ -2269,10 +2389,10 @@ var IDKitWidget = ({
2269
2389
  animateMob: { translateY: 0 }
2270
2390
  },
2271
2391
  transition: { layout: { duration: 0.15 } },
2272
- className: "relative z-50 flex min-h-screen w-full flex-col bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 dark:bg-0d151d md:min-h-[35rem] md:max-w-md md:rounded-2xl",
2392
+ className: "relative z-50 flex min-h-screen w-full flex-col bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 dark:bg-0d151d md:min-h-[35rem] md:max-w-md md:rounded-[24px]",
2273
2393
  children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Toast.Provider, { children: [
2274
2394
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Toast.Viewport, { className: "flex justify-center" }),
2275
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "mx-6 mb-12 flex items-center justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Dialog.Close, { className: "flex size-11 items-center justify-center rounded-full text-black dark:text-white", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(XMarkIcon_default, { className: "size-5" }) }) }),
2395
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "mx-6 flex items-center justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Dialog.Close, { className: "flex size-8 items-center justify-center rounded-full border-[1.2px] border-solid border-[#EBECEF] text-black dark:text-white", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(XMarkIcon_default, { className: "size-4" }) }) }),
2276
2396
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "relative mx-6 mb-6 flex flex-1 flex-col items-center justify-center", children: StageContent }),
2277
2397
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "flex items-center justify-center border-t border-f5f5f7 p-7 md:rounded-b-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2278
2398
  "a",
@@ -2297,7 +2417,7 @@ var IDKitWidget = ({
2297
2417
  var BaseWidget_default = IDKitWidget;
2298
2418
 
2299
2419
  // src/components/IDKitWidget/index.tsx
2300
- var IDKitWidget_default = (0, import_react8.memo)(BaseWidget_default);
2420
+ var IDKitWidget_default = (0, import_react10.memo)(BaseWidget_default);
2301
2421
 
2302
2422
  // src/index.ts
2303
2423
  var import_hashing = require("@worldcoin/idkit-core/hashing");
@@ -2305,7 +2425,7 @@ var import_backend = require("@worldcoin/idkit-core/backend");
2305
2425
  var import_idkit_core7 = require("@worldcoin/idkit-core");
2306
2426
 
2307
2427
  // src/hooks/useSession.ts
2308
- var import_react9 = require("react");
2428
+ var import_react11 = require("react");
2309
2429
  var import_shallow4 = require("zustand/react/shallow");
2310
2430
  var import_idkit_core5 = require("@worldcoin/idkit-core");
2311
2431
  var import_idkit_core6 = require("@worldcoin/idkit-core");
@@ -2322,12 +2442,12 @@ function useSession(config) {
2322
2442
  errorCode: state.errorCode
2323
2443
  }))
2324
2444
  );
2325
- (0, import_react9.useEffect)(() => {
2445
+ (0, import_react11.useEffect)(() => {
2326
2446
  if (verificationState === import_idkit_core5.VerificationState.PreparingClient && !connectorURI) {
2327
2447
  void createClient(config);
2328
2448
  }
2329
2449
  }, [verificationState, connectorURI, createClient, config]);
2330
- (0, import_react9.useEffect)(() => {
2450
+ (0, import_react11.useEffect)(() => {
2331
2451
  if (TERMINAL_STATES.includes(verificationState)) return;
2332
2452
  const interval = setInterval(() => {
2333
2453
  void pollForUpdates();