@worldcoin/idkit 2.2.2 → 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.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  QRCode_default,
3
3
  __,
4
4
  idkit_default
5
- } from "./chunk-5OWPJUHG.js";
5
+ } from "./chunk-3HCETHXP.js";
6
6
 
7
7
  // src/hooks/useIDKit.ts
8
8
  import { useEffect } from "react";
@@ -52,13 +52,78 @@ var useMedia_default = useMedia;
52
52
  import { createPortal } from "react-dom";
53
53
 
54
54
  // src/styles/styles.css
55
- var styles_default = `/* TODO: Use an alternative to avoid the extra request to Google (e.g. hosting ourselves, or local file) */
56
- @import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;600;700&family=Sora:wght@600&display=swap');
57
- /* ! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com */
55
+ var styles_default = `/* Remote TWK Lausanne font definitions */
56
+ @font-face {
57
+ font-family: 'TWK Lausanne';
58
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-200.woff2') format('woff2');
59
+ font-weight: 200;
60
+ font-style: normal;
61
+ font-display: swap;
62
+ }
63
+
64
+ @font-face {
65
+ font-family: 'TWK Lausanne';
66
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-300.woff2') format('woff2');
67
+ font-weight: 300;
68
+ font-style: normal;
69
+ font-display: swap;
70
+ }
71
+
72
+ @font-face {
73
+ font-family: 'TWK Lausanne';
74
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-350.woff2') format('woff2');
75
+ font-weight: 350;
76
+ font-style: normal;
77
+ font-display: swap;
78
+ }
79
+
80
+ @font-face {
81
+ font-family: 'TWK Lausanne';
82
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-400.woff2') format('woff2');
83
+ font-weight: 400;
84
+ font-style: normal;
85
+ font-display: swap;
86
+ }
87
+
88
+ @font-face {
89
+ font-family: 'TWK Lausanne';
90
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-450.woff2') format('woff2');
91
+ font-weight: 450;
92
+ font-style: normal;
93
+ font-display: swap;
94
+ }
95
+
96
+ @font-face {
97
+ font-family: 'TWK Lausanne';
98
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-500.woff2') format('woff2');
99
+ font-weight: 500;
100
+ font-style: normal;
101
+ font-display: swap;
102
+ }
103
+
104
+ @font-face {
105
+ font-family: 'TWK Lausanne';
106
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-550.woff2') format('woff2');
107
+ font-weight: 550;
108
+ font-style: normal;
109
+ font-display: swap;
110
+ }
111
+
112
+ @font-face {
113
+ font-family: 'TWK Lausanne';
114
+ src: url('https://world-id-assets.com/fonts/TWKLausanne-600.woff2') format('woff2');
115
+ font-weight: 600;
116
+ font-style: normal;
117
+ font-display: swap;
118
+ }
119
+
120
+ /* ! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com */
121
+
58
122
  /*
59
123
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
60
124
  2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
61
125
  */
126
+
62
127
  *,
63
128
  ::before,
64
129
  ::after {
@@ -67,10 +132,12 @@ var styles_default = `/* TODO: Use an alternative to avoid the extra request to
67
132
  border-style: solid; /* 2 */
68
133
  border-color: #e5e7eb; /* 2 */
69
134
  }
135
+
70
136
  ::before,
71
137
  ::after {
72
138
  --tw-content: '';
73
139
  }
140
+
74
141
  /*
75
142
  1. Use a consistent sensible line-height in all browsers.
76
143
  2. Prevent adjustments of font size after orientation changes in iOS.
@@ -80,6 +147,7 @@ var styles_default = `/* TODO: Use an alternative to avoid the extra request to
80
147
  6. Use the user's configured \`sans\` font-variation-settings by default.
81
148
  7. Disable tap highlights on iOS
82
149
  */
150
+
83
151
  html,
84
152
  :host {
85
153
  line-height: 1.5; /* 1 */
@@ -87,39 +155,47 @@ html,
87
155
  -moz-tab-size: 4; /* 3 */
88
156
  -o-tab-size: 4;
89
157
  tab-size: 4; /* 3 */
90
- font-family: Rubik, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
158
+ font-family: TWK Lausanne, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
91
159
  font-feature-settings: normal; /* 5 */
92
160
  font-variation-settings: normal; /* 6 */
93
161
  -webkit-tap-highlight-color: transparent; /* 7 */
94
162
  }
163
+
95
164
  /*
96
165
  1. Remove the margin in all browsers.
97
166
  2. Inherit line-height from \`html\` so users can set them as a class directly on the \`html\` element.
98
167
  */
168
+
99
169
  body {
100
170
  margin: 0; /* 1 */
101
171
  line-height: inherit; /* 2 */
102
172
  }
173
+
103
174
  /*
104
175
  1. Add the correct height in Firefox.
105
176
  2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
106
177
  3. Ensure horizontal rules are visible by default.
107
178
  */
179
+
108
180
  hr {
109
181
  height: 0; /* 1 */
110
182
  color: inherit; /* 2 */
111
183
  border-top-width: 1px; /* 3 */
112
184
  }
185
+
113
186
  /*
114
187
  Add the correct text decoration in Chrome, Edge, and Safari.
115
188
  */
189
+
116
190
  abbr:where([title]) {
117
191
  -webkit-text-decoration: underline dotted;
118
192
  text-decoration: underline dotted;
119
193
  }
194
+
120
195
  /*
121
196
  Remove the default font size and weight for headings.
122
197
  */
198
+
123
199
  h1,
124
200
  h2,
125
201
  h3,
@@ -129,26 +205,32 @@ h6 {
129
205
  font-size: inherit;
130
206
  font-weight: inherit;
131
207
  }
208
+
132
209
  /*
133
210
  Reset links to optimize for opt-in styling instead of opt-out.
134
211
  */
212
+
135
213
  a {
136
214
  color: inherit;
137
215
  text-decoration: inherit;
138
216
  }
217
+
139
218
  /*
140
219
  Add the correct font weight in Edge and Safari.
141
220
  */
221
+
142
222
  b,
143
223
  strong {
144
224
  font-weight: bolder;
145
225
  }
226
+
146
227
  /*
147
228
  1. Use the user's configured \`mono\` font-family by default.
148
229
  2. Use the user's configured \`mono\` font-feature-settings by default.
149
230
  3. Use the user's configured \`mono\` font-variation-settings by default.
150
231
  4. Correct the odd \`em\` font sizing in all browsers.
151
232
  */
233
+
152
234
  code,
153
235
  kbd,
154
236
  samp,
@@ -158,15 +240,19 @@ pre {
158
240
  font-variation-settings: normal; /* 3 */
159
241
  font-size: 1em; /* 4 */
160
242
  }
243
+
161
244
  /*
162
245
  Add the correct font size in all browsers.
163
246
  */
247
+
164
248
  small {
165
249
  font-size: 80%;
166
250
  }
251
+
167
252
  /*
168
253
  Prevent \`sub\` and \`sup\` elements from affecting the line height in all browsers.
169
254
  */
255
+
170
256
  sub,
171
257
  sup {
172
258
  font-size: 75%;
@@ -174,27 +260,33 @@ sup {
174
260
  position: relative;
175
261
  vertical-align: baseline;
176
262
  }
263
+
177
264
  sub {
178
265
  bottom: -0.25em;
179
266
  }
267
+
180
268
  sup {
181
269
  top: -0.5em;
182
270
  }
271
+
183
272
  /*
184
273
  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)
185
274
  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)
186
275
  3. Remove gaps between table borders by default.
187
276
  */
277
+
188
278
  table {
189
279
  text-indent: 0; /* 1 */
190
280
  border-color: inherit; /* 2 */
191
281
  border-collapse: collapse; /* 3 */
192
282
  }
283
+
193
284
  /*
194
285
  1. Change the font styles in all browsers.
195
286
  2. Remove the margin in Firefox and Safari.
196
287
  3. Remove default padding in all browsers.
197
288
  */
289
+
198
290
  button,
199
291
  input,
200
292
  optgroup,
@@ -211,17 +303,21 @@ textarea {
211
303
  margin: 0; /* 2 */
212
304
  padding: 0; /* 3 */
213
305
  }
306
+
214
307
  /*
215
308
  Remove the inheritance of text transform in Edge and Firefox.
216
309
  */
310
+
217
311
  button,
218
312
  select {
219
313
  text-transform: none;
220
314
  }
315
+
221
316
  /*
222
317
  1. Correct the inability to style clickable types in iOS and Safari.
223
318
  2. Remove default button styles.
224
319
  */
320
+
225
321
  button,
226
322
  input:where([type='button']),
227
323
  input:where([type='reset']),
@@ -230,62 +326,80 @@ input:where([type='submit']) {
230
326
  background-color: transparent; /* 2 */
231
327
  background-image: none; /* 2 */
232
328
  }
329
+
233
330
  /*
234
331
  Use the modern Firefox focus style for all focusable elements.
235
332
  */
333
+
236
334
  :-moz-focusring {
237
335
  outline: auto;
238
336
  }
337
+
239
338
  /*
240
339
  Remove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
241
340
  */
341
+
242
342
  :-moz-ui-invalid {
243
343
  box-shadow: none;
244
344
  }
345
+
245
346
  /*
246
347
  Add the correct vertical alignment in Chrome and Firefox.
247
348
  */
349
+
248
350
  progress {
249
351
  vertical-align: baseline;
250
352
  }
353
+
251
354
  /*
252
355
  Correct the cursor style of increment and decrement buttons in Safari.
253
356
  */
357
+
254
358
  ::-webkit-inner-spin-button,
255
359
  ::-webkit-outer-spin-button {
256
360
  height: auto;
257
361
  }
362
+
258
363
  /*
259
364
  1. Correct the odd appearance in Chrome and Safari.
260
365
  2. Correct the outline style in Safari.
261
366
  */
367
+
262
368
  [type='search'] {
263
369
  -webkit-appearance: textfield; /* 1 */
264
370
  outline-offset: -2px; /* 2 */
265
371
  }
372
+
266
373
  /*
267
374
  Remove the inner padding in Chrome and Safari on macOS.
268
375
  */
376
+
269
377
  ::-webkit-search-decoration {
270
378
  -webkit-appearance: none;
271
379
  }
380
+
272
381
  /*
273
382
  1. Correct the inability to style clickable types in iOS and Safari.
274
383
  2. Change font properties to \`inherit\` in Safari.
275
384
  */
385
+
276
386
  ::-webkit-file-upload-button {
277
387
  -webkit-appearance: button; /* 1 */
278
388
  font: inherit; /* 2 */
279
389
  }
390
+
280
391
  /*
281
392
  Add the correct display in Chrome and Safari.
282
393
  */
394
+
283
395
  summary {
284
396
  display: list-item;
285
397
  }
398
+
286
399
  /*
287
400
  Removes the default spacing and border for appropriate elements.
288
401
  */
402
+
289
403
  blockquote,
290
404
  dl,
291
405
  dd,
@@ -301,13 +415,16 @@ p,
301
415
  pre {
302
416
  margin: 0;
303
417
  }
418
+
304
419
  fieldset {
305
420
  margin: 0;
306
421
  padding: 0;
307
422
  }
423
+
308
424
  legend {
309
425
  padding: 0;
310
426
  }
427
+
311
428
  ol,
312
429
  ul,
313
430
  menu {
@@ -315,49 +432,62 @@ menu {
315
432
  margin: 0;
316
433
  padding: 0;
317
434
  }
435
+
318
436
  /*
319
437
  Reset default styling for dialogs.
320
438
  */
439
+
321
440
  dialog {
322
441
  padding: 0;
323
442
  }
443
+
324
444
  /*
325
445
  Prevent resizing textareas horizontally by default.
326
446
  */
447
+
327
448
  textarea {
328
449
  resize: vertical;
329
450
  }
451
+
330
452
  /*
331
453
  1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
332
454
  2. Set the default placeholder color to the user's configured gray 400 color.
333
455
  */
456
+
334
457
  input::-moz-placeholder, textarea::-moz-placeholder {
335
458
  opacity: 1; /* 1 */
336
459
  color: #9ca3af; /* 2 */
337
460
  }
461
+
338
462
  input::placeholder,
339
463
  textarea::placeholder {
340
464
  opacity: 1; /* 1 */
341
465
  color: #9ca3af; /* 2 */
342
466
  }
467
+
343
468
  /*
344
469
  Set the default cursor for buttons.
345
470
  */
471
+
346
472
  button,
347
473
  [role="button"] {
348
474
  cursor: pointer;
349
475
  }
476
+
350
477
  /*
351
478
  Make sure disabled buttons don't get the pointer cursor.
352
479
  */
480
+
353
481
  :disabled {
354
482
  cursor: default;
355
483
  }
484
+
356
485
  /*
357
486
  1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
358
487
  2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
359
488
  This can trigger a poorly considered lint error in some tools but is included by design.
360
489
  */
490
+
361
491
  img,
362
492
  svg,
363
493
  video,
@@ -369,19 +499,24 @@ object {
369
499
  display: block; /* 1 */
370
500
  vertical-align: middle; /* 2 */
371
501
  }
502
+
372
503
  /*
373
504
  Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
374
505
  */
506
+
375
507
  img,
376
508
  video {
377
509
  max-width: 100%;
378
510
  height: auto;
379
511
  }
512
+
380
513
  /* Make elements with the HTML hidden attribute stay hidden by default */
514
+
381
515
  [hidden] {
382
516
  display: none;
383
517
  }
384
- [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{
518
+
519
+ [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 {
385
520
  -webkit-appearance: none;
386
521
  -moz-appearance: none;
387
522
  appearance: none;
@@ -397,7 +532,8 @@ video {
397
532
  line-height: 1.5rem;
398
533
  --tw-shadow: 0 0 #0000;
399
534
  }
400
- [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{
535
+
536
+ [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 {
401
537
  outline: 2px solid transparent;
402
538
  outline-offset: 2px;
403
539
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
@@ -409,29 +545,36 @@ video {
409
545
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
410
546
  border-color: #2563eb;
411
547
  }
412
- input::-moz-placeholder, textarea::-moz-placeholder{
548
+
549
+ input::-moz-placeholder, textarea::-moz-placeholder {
413
550
  color: #6b7280;
414
551
  opacity: 1;
415
552
  }
416
- input::placeholder,textarea::placeholder{
553
+
554
+ input::placeholder,textarea::placeholder {
417
555
  color: #6b7280;
418
556
  opacity: 1;
419
557
  }
420
- ::-webkit-datetime-edit-fields-wrapper{
558
+
559
+ ::-webkit-datetime-edit-fields-wrapper {
421
560
  padding: 0;
422
561
  }
423
- ::-webkit-date-and-time-value{
562
+
563
+ ::-webkit-date-and-time-value {
424
564
  min-height: 1.5em;
425
565
  text-align: inherit;
426
566
  }
427
- ::-webkit-datetime-edit{
567
+
568
+ ::-webkit-datetime-edit {
428
569
  display: inline-flex;
429
570
  }
430
- ::-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{
571
+
572
+ ::-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 {
431
573
  padding-top: 0;
432
574
  padding-bottom: 0;
433
575
  }
434
- select{
576
+
577
+ select {
435
578
  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");
436
579
  background-position: right 0.5rem center;
437
580
  background-repeat: no-repeat;
@@ -440,7 +583,8 @@ select{
440
583
  -webkit-print-color-adjust: exact;
441
584
  print-color-adjust: exact;
442
585
  }
443
- [multiple],[size]:where(select:not([size="1"])){
586
+
587
+ [multiple],[size]:where(select:not([size="1"])) {
444
588
  background-image: initial;
445
589
  background-position: initial;
446
590
  background-repeat: unset;
@@ -449,7 +593,8 @@ select{
449
593
  -webkit-print-color-adjust: unset;
450
594
  print-color-adjust: unset;
451
595
  }
452
- [type='checkbox'],[type='radio']{
596
+
597
+ [type='checkbox'],[type='radio'] {
453
598
  -webkit-appearance: none;
454
599
  -moz-appearance: none;
455
600
  appearance: none;
@@ -471,13 +616,16 @@ select{
471
616
  border-width: 1px;
472
617
  --tw-shadow: 0 0 #0000;
473
618
  }
474
- [type='checkbox']{
619
+
620
+ [type='checkbox'] {
475
621
  border-radius: 0px;
476
622
  }
477
- [type='radio']{
623
+
624
+ [type='radio'] {
478
625
  border-radius: 100%;
479
626
  }
480
- [type='checkbox']:focus,[type='radio']:focus{
627
+
628
+ [type='checkbox']:focus,[type='radio']:focus {
481
629
  outline: 2px solid transparent;
482
630
  outline-offset: 2px;
483
631
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
@@ -488,38 +636,45 @@ select{
488
636
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
489
637
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
490
638
  }
491
- [type='checkbox']:checked,[type='radio']:checked{
639
+
640
+ [type='checkbox']:checked,[type='radio']:checked {
492
641
  border-color: transparent;
493
642
  background-color: currentColor;
494
643
  background-size: 100% 100%;
495
644
  background-position: center;
496
645
  background-repeat: no-repeat;
497
646
  }
498
- [type='checkbox']:checked{
647
+
648
+ [type='checkbox']:checked {
499
649
  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");
500
650
  }
501
- @media (forced-colors: active) {
502
- [type='checkbox']:checked{
651
+
652
+ @media (forced-colors: active) {
653
+ [type='checkbox']:checked {
503
654
  -webkit-appearance: auto;
504
655
  -moz-appearance: auto;
505
656
  appearance: auto;
506
657
  }
507
658
  }
508
- [type='radio']:checked{
659
+
660
+ [type='radio']:checked {
509
661
  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");
510
662
  }
511
- @media (forced-colors: active) {
512
- [type='radio']:checked{
663
+
664
+ @media (forced-colors: active) {
665
+ [type='radio']:checked {
513
666
  -webkit-appearance: auto;
514
667
  -moz-appearance: auto;
515
668
  appearance: auto;
516
669
  }
517
670
  }
518
- [type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus{
671
+
672
+ [type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus {
519
673
  border-color: transparent;
520
674
  background-color: currentColor;
521
675
  }
522
- [type='checkbox']:indeterminate{
676
+
677
+ [type='checkbox']:indeterminate {
523
678
  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");
524
679
  border-color: transparent;
525
680
  background-color: currentColor;
@@ -527,18 +682,21 @@ select{
527
682
  background-position: center;
528
683
  background-repeat: no-repeat;
529
684
  }
530
- @media (forced-colors: active) {
531
- [type='checkbox']:indeterminate{
685
+
686
+ @media (forced-colors: active) {
687
+ [type='checkbox']:indeterminate {
532
688
  -webkit-appearance: auto;
533
689
  -moz-appearance: auto;
534
690
  appearance: auto;
535
691
  }
536
692
  }
537
- [type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus{
693
+
694
+ [type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus {
538
695
  border-color: transparent;
539
696
  background-color: currentColor;
540
697
  }
541
- [type='file']{
698
+
699
+ [type='file'] {
542
700
  background: unset;
543
701
  border-color: inherit;
544
702
  border-width: 0;
@@ -547,11 +705,13 @@ select{
547
705
  font-size: unset;
548
706
  line-height: inherit;
549
707
  }
550
- [type='file']:focus{
708
+
709
+ [type='file']:focus {
551
710
  outline: 1px solid ButtonText;
552
711
  outline: 1px auto -webkit-focus-ring-color;
553
712
  }
554
- *, ::before, ::after{
713
+
714
+ *, ::before, ::after {
555
715
  --tw-border-spacing-x: 0;
556
716
  --tw-border-spacing-y: 0;
557
717
  --tw-translate-x: 0;
@@ -604,7 +764,8 @@ select{
604
764
  --tw-contain-paint: ;
605
765
  --tw-contain-style: ;
606
766
  }
607
- ::backdrop{
767
+
768
+ ::backdrop {
608
769
  --tw-border-spacing-x: 0;
609
770
  --tw-border-spacing-y: 0;
610
771
  --tw-translate-x: 0;
@@ -657,523 +818,525 @@ select{
657
818
  --tw-contain-paint: ;
658
819
  --tw-contain-style: ;
659
820
  }
660
- .container{
821
+ .container {
661
822
  width: 100%;
662
823
  }
663
- @media (min-width: 414px){
664
- .container{
824
+ @media (min-width: 414px) {
825
+ .container {
665
826
  max-width: 414px;
666
827
  }
667
828
  }
668
- @media (min-width: 640px){
669
- .container{
829
+ @media (min-width: 640px) {
830
+ .container {
670
831
  max-width: 640px;
671
832
  }
672
833
  }
673
- @media (min-width: 768px){
674
- .container{
834
+ @media (min-width: 768px) {
835
+ .container {
675
836
  max-width: 768px;
676
837
  }
677
838
  }
678
- @media (min-width: 1024px){
679
- .container{
839
+ @media (min-width: 1024px) {
840
+ .container {
680
841
  max-width: 1024px;
681
842
  }
682
843
  }
683
- @media (min-width: 1280px){
684
- .container{
844
+ @media (min-width: 1280px) {
845
+ .container {
685
846
  max-width: 1280px;
686
847
  }
687
848
  }
688
- @media (min-width: 1536px){
689
- .container{
849
+ @media (min-width: 1536px) {
850
+ .container {
690
851
  max-width: 1536px;
691
852
  }
692
853
  }
693
- .visible{
854
+ .visible {
694
855
  visibility: visible;
695
856
  }
696
- .fixed{
857
+ .fixed {
697
858
  position: fixed;
698
859
  }
699
- .absolute{
860
+ .absolute {
700
861
  position: absolute;
701
862
  }
702
- .relative{
863
+ .relative {
703
864
  position: relative;
704
865
  }
705
- .inset-0{
866
+ .inset-0 {
706
867
  inset: 0;
707
868
  }
708
- .z-50{
869
+ .z-50 {
709
870
  z-index: 50;
710
871
  }
711
- .z-\\[9999\\]{
872
+ .z-\\[9999\\] {
712
873
  z-index: 9999;
713
874
  }
714
- .mx-6{
875
+ .mx-6 {
715
876
  margin-left: 24px;
716
877
  margin-right: 24px;
717
878
  }
718
- .mx-auto{
879
+ .mx-auto {
719
880
  margin-left: auto;
720
881
  margin-right: auto;
721
882
  }
722
- .-mt-5{
883
+ .-mt-5 {
723
884
  margin-top: -20px;
724
885
  }
725
- .-mt-6{
886
+ .-mt-6 {
726
887
  margin-top: -24px;
727
888
  }
728
- .mb-10{
889
+ .mb-10 {
729
890
  margin-bottom: 40px;
730
891
  }
731
- .mb-12{
732
- margin-bottom: 48px;
733
- }
734
- .mb-3{
892
+ .mb-3 {
735
893
  margin-bottom: 12px;
736
894
  }
737
- .mb-4{
895
+ .mb-4 {
738
896
  margin-bottom: 16px;
739
897
  }
740
- .mb-6{
898
+ .mb-6 {
741
899
  margin-bottom: 24px;
742
900
  }
743
- .mr-1{
744
- margin-right: 4px;
745
- }
746
- .mr-1\\.5{
747
- margin-right: 6px;
748
- }
749
- .mt-2{
901
+ .mt-2 {
750
902
  margin-top: 8px;
751
903
  }
752
- .mt-3{
904
+ .mt-3 {
753
905
  margin-top: 12px;
754
906
  }
755
- .mt-4{
907
+ .mt-4 {
756
908
  margin-top: 16px;
757
909
  }
758
- .inline{
910
+ .inline {
759
911
  display: inline;
760
912
  }
761
- .flex{
913
+ .flex {
762
914
  display: flex;
763
915
  }
764
- .inline-flex{
916
+ .inline-flex {
765
917
  display: inline-flex;
766
918
  }
767
- .hidden{
919
+ .hidden {
768
920
  display: none;
769
921
  }
770
- .size-11{
771
- width: 44px;
772
- height: 44px;
922
+ .size-14 {
923
+ width: 56px;
924
+ height: 56px;
773
925
  }
774
- .size-24{
926
+ .size-24 {
775
927
  width: 96px;
776
928
  height: 96px;
777
929
  }
778
- .size-5{
930
+ .size-4 {
931
+ width: 16px;
932
+ height: 16px;
933
+ }
934
+ .size-5 {
779
935
  width: 20px;
780
936
  height: 20px;
781
937
  }
782
- .size-6{
938
+ .size-6 {
783
939
  width: 24px;
784
940
  height: 24px;
785
941
  }
786
- .size-\\[244px\\]{
787
- width: 244px;
788
- height: 244px;
942
+ .size-8 {
943
+ width: 32px;
944
+ height: 32px;
789
945
  }
790
- .h-10{
791
- height: 40px;
946
+ .size-\\[200px\\] {
947
+ width: 200px;
948
+ height: 200px;
792
949
  }
793
- .min-h-full{
950
+ .min-h-full {
794
951
  min-height: 100%;
795
952
  }
796
- .min-h-screen{
953
+ .min-h-screen {
797
954
  min-height: 100vh;
798
955
  }
799
- .w-24{
956
+ .w-24 {
800
957
  width: 96px;
801
958
  }
802
- .w-full{
959
+ .w-full {
803
960
  width: 100%;
804
961
  }
805
- .max-w-\\[224px\\]{
962
+ .max-w-\\[224px\\] {
806
963
  max-width: 224px;
807
964
  }
808
- .flex-1{
965
+ .max-w-\\[260px\\] {
966
+ max-width: 260px;
967
+ }
968
+ .flex-1 {
809
969
  flex: 1 1 0%;
810
970
  }
811
- @keyframes pulse{
812
- 50%{
971
+ @keyframes pulse {
972
+ 50% {
813
973
  opacity: .5;
814
974
  }
815
975
  }
816
- .animate-pulse{
976
+ .animate-pulse {
817
977
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
818
978
  }
819
- @keyframes spin{
820
- to{
979
+ @keyframes spin {
980
+ to {
821
981
  transform: rotate(360deg);
822
982
  }
823
983
  }
824
- .animate-spin{
984
+ .animate-spin {
825
985
  animation: spin 1s linear infinite;
826
986
  }
827
- .cursor-pointer{
987
+ .cursor-pointer {
828
988
  cursor: pointer;
829
989
  }
830
- .flex-col{
990
+ .flex-col {
831
991
  flex-direction: column;
832
992
  }
833
- .items-end{
993
+ .items-end {
834
994
  align-items: flex-end;
835
995
  }
836
- .items-center{
996
+ .items-center {
837
997
  align-items: center;
838
998
  }
839
- .justify-center{
840
- justify-content: center;
999
+ .justify-end {
1000
+ justify-content: flex-end;
841
1001
  }
842
- .justify-between{
843
- justify-content: space-between;
1002
+ .justify-center {
1003
+ justify-content: center;
844
1004
  }
845
- .space-x-2 > :not([hidden]) ~ :not([hidden]){
1005
+ .space-x-2 > :not([hidden]) ~ :not([hidden]) {
846
1006
  --tw-space-x-reverse: 0;
847
1007
  margin-right: calc(8px * var(--tw-space-x-reverse));
848
1008
  margin-left: calc(8px * calc(1 - var(--tw-space-x-reverse)));
849
1009
  }
850
- .space-x-4 > :not([hidden]) ~ :not([hidden]){
1010
+ .space-x-4 > :not([hidden]) ~ :not([hidden]) {
851
1011
  --tw-space-x-reverse: 0;
852
1012
  margin-right: calc(16px * var(--tw-space-x-reverse));
853
1013
  margin-left: calc(16px * calc(1 - var(--tw-space-x-reverse)));
854
1014
  }
855
- .space-y-10 > :not([hidden]) ~ :not([hidden]){
1015
+ .space-y-10 > :not([hidden]) ~ :not([hidden]) {
856
1016
  --tw-space-y-reverse: 0;
857
1017
  margin-top: calc(40px * calc(1 - var(--tw-space-y-reverse)));
858
1018
  margin-bottom: calc(40px * var(--tw-space-y-reverse));
859
1019
  }
860
- .space-y-4 > :not([hidden]) ~ :not([hidden]){
1020
+ .space-y-4 > :not([hidden]) ~ :not([hidden]) {
861
1021
  --tw-space-y-reverse: 0;
862
1022
  margin-top: calc(16px * calc(1 - var(--tw-space-y-reverse)));
863
1023
  margin-bottom: calc(16px * var(--tw-space-y-reverse));
864
1024
  }
865
- .space-y-5 > :not([hidden]) ~ :not([hidden]){
1025
+ .space-y-5 > :not([hidden]) ~ :not([hidden]) {
866
1026
  --tw-space-y-reverse: 0;
867
1027
  margin-top: calc(20px * calc(1 - var(--tw-space-y-reverse)));
868
1028
  margin-bottom: calc(20px * var(--tw-space-y-reverse));
869
1029
  }
870
- .space-y-6 > :not([hidden]) ~ :not([hidden]){
1030
+ .space-y-6 > :not([hidden]) ~ :not([hidden]) {
871
1031
  --tw-space-y-reverse: 0;
872
1032
  margin-top: calc(24px * calc(1 - var(--tw-space-y-reverse)));
873
1033
  margin-bottom: calc(24px * var(--tw-space-y-reverse));
874
1034
  }
875
- .space-y-8 > :not([hidden]) ~ :not([hidden]){
1035
+ .space-y-8 > :not([hidden]) ~ :not([hidden]) {
876
1036
  --tw-space-y-reverse: 0;
877
1037
  margin-top: calc(32px * calc(1 - var(--tw-space-y-reverse)));
878
1038
  margin-bottom: calc(32px * var(--tw-space-y-reverse));
879
1039
  }
880
- .overflow-y-hidden{
1040
+ .overflow-y-hidden {
881
1041
  overflow-y: hidden;
882
1042
  }
883
- .rounded-2xl{
1043
+ .rounded-2xl {
884
1044
  border-radius: 1rem;
885
1045
  }
886
- .rounded-full{
1046
+ .rounded-full {
887
1047
  border-radius: 9999px;
888
1048
  }
889
- .rounded-lg{
1049
+ .rounded-lg {
890
1050
  border-radius: 0.5rem;
891
1051
  }
892
- .border{
1052
+ .border {
893
1053
  border-width: 1px;
894
1054
  }
895
- .border-t{
1055
+ .border-\\[1\\.2px\\] {
1056
+ border-width: 1.2px;
1057
+ }
1058
+ .border-t {
896
1059
  border-top-width: 1px;
897
1060
  }
898
- .border-ebecef{
1061
+ .border-solid {
1062
+ border-style: solid;
1063
+ }
1064
+ .border-\\[\\#EBECEF\\] {
1065
+ --tw-border-opacity: 1;
1066
+ border-color: rgb(235 236 239 / var(--tw-border-opacity));
1067
+ }
1068
+ .border-ebecef {
899
1069
  --tw-border-opacity: 1;
900
1070
  border-color: rgb(235 236 239 / var(--tw-border-opacity));
901
1071
  }
902
- .border-f1f5f8{
1072
+ .border-f1f5f8 {
903
1073
  --tw-border-opacity: 1;
904
1074
  border-color: rgb(241 245 248 / var(--tw-border-opacity));
905
1075
  }
906
- .border-f5f5f7{
1076
+ .border-f5f5f7 {
907
1077
  --tw-border-opacity: 1;
908
1078
  border-color: rgb(245 245 247 / var(--tw-border-opacity));
909
1079
  }
910
- .border-transparent{
1080
+ .border-transparent {
911
1081
  border-color: transparent;
912
1082
  }
913
- .bg-0d151d{
1083
+ .bg-0d151d {
914
1084
  --tw-bg-opacity: 1;
915
1085
  background-color: rgb(13 21 29 / var(--tw-bg-opacity));
916
1086
  }
917
- .bg-black\\/50{
1087
+ .bg-black\\/50 {
918
1088
  background-color: rgb(0 0 0 / 0.5);
919
1089
  }
920
- .bg-transparent{
1090
+ .bg-transparent {
921
1091
  background-color: transparent;
922
1092
  }
923
- .bg-white{
1093
+ .bg-white {
924
1094
  --tw-bg-opacity: 1;
925
1095
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
926
1096
  }
927
- .p-2{
928
- padding: 8px;
1097
+ .p-3 {
1098
+ padding: 12px;
929
1099
  }
930
- .p-4{
1100
+ .p-4 {
931
1101
  padding: 16px;
932
1102
  }
933
- .p-7{
1103
+ .p-7 {
934
1104
  padding: 28px;
935
1105
  }
936
- .px-2{
1106
+ .px-2 {
937
1107
  padding-left: 8px;
938
1108
  padding-right: 8px;
939
1109
  }
940
- .px-8{
1110
+ .px-8 {
941
1111
  padding-left: 32px;
942
1112
  padding-right: 32px;
943
1113
  }
944
- .py-1{
1114
+ .py-1 {
945
1115
  padding-top: 4px;
946
1116
  padding-bottom: 4px;
947
1117
  }
948
- .py-3{
1118
+ .py-3 {
949
1119
  padding-top: 12px;
950
1120
  padding-bottom: 12px;
951
1121
  }
952
- .pt-6{
1122
+ .pt-6 {
953
1123
  padding-top: 24px;
954
1124
  }
955
- .text-center{
1125
+ .text-center {
956
1126
  text-align: center;
957
1127
  }
958
- .font-sans{
959
- font-family: Rubik, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
960
- }
961
- .font-sora{
962
- font-family: Sora, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
1128
+ .font-sans {
1129
+ font-family: TWK Lausanne, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
963
1130
  }
964
- .text-2xl{
1131
+ .text-2xl {
965
1132
  font-size: 24px;
966
1133
  line-height: 32px;
967
1134
  }
968
- .text-lg{
1135
+ .text-lg {
969
1136
  font-size: 18px;
970
1137
  line-height: 28px;
971
1138
  }
972
- .text-sm{
1139
+ .text-sm {
973
1140
  font-size: 14px;
974
1141
  line-height: 20px;
975
1142
  }
976
- .text-xs{
1143
+ .text-xs {
977
1144
  font-size: 12px;
978
1145
  line-height: 16px;
979
1146
  }
980
- .font-bold{
981
- font-weight: 700;
1147
+ .font-light {
1148
+ font-weight: 300;
982
1149
  }
983
- .font-medium{
1150
+ .font-medium {
984
1151
  font-weight: 500;
985
1152
  }
986
- .font-semibold{
1153
+ .font-semibold {
987
1154
  font-weight: 600;
988
1155
  }
989
- .text-0d151d{
1156
+ .text-0d151d {
990
1157
  --tw-text-opacity: 1;
991
1158
  color: rgb(13 21 29 / var(--tw-text-opacity));
992
1159
  }
993
- .text-29343f{
1160
+ .text-29343f {
994
1161
  --tw-text-opacity: 1;
995
1162
  color: rgb(41 52 63 / var(--tw-text-opacity));
996
1163
  }
997
- .text-3c424b{
1164
+ .text-3c424b {
998
1165
  --tw-text-opacity: 1;
999
1166
  color: rgb(60 66 75 / var(--tw-text-opacity));
1000
1167
  }
1001
- .text-657080{
1168
+ .text-657080 {
1002
1169
  --tw-text-opacity: 1;
1003
1170
  color: rgb(101 112 128 / var(--tw-text-opacity));
1004
1171
  }
1005
- .text-70868f{
1172
+ .text-70868f {
1006
1173
  --tw-text-opacity: 1;
1007
1174
  color: rgb(112 134 143 / var(--tw-text-opacity));
1008
1175
  }
1009
- .text-9ba3ae{
1176
+ .text-9ba3ae {
1010
1177
  --tw-text-opacity: 1;
1011
1178
  color: rgb(155 163 174 / var(--tw-text-opacity));
1012
1179
  }
1013
- .text-9eafc0{
1180
+ .text-9eafc0 {
1014
1181
  --tw-text-opacity: 1;
1015
1182
  color: rgb(158 175 192 / var(--tw-text-opacity));
1016
1183
  }
1017
- .text-black{
1184
+ .text-black {
1018
1185
  --tw-text-opacity: 1;
1019
1186
  color: rgb(0 0 0 / var(--tw-text-opacity));
1020
1187
  }
1021
- .text-gray-900{
1188
+ .text-gray-900 {
1022
1189
  --tw-text-opacity: 1;
1023
1190
  color: rgb(17 24 39 / var(--tw-text-opacity));
1024
1191
  }
1025
- .text-red-500{
1026
- --tw-text-opacity: 1;
1027
- color: rgb(239 68 68 / var(--tw-text-opacity));
1028
- }
1029
- .text-white{
1192
+ .text-white {
1030
1193
  --tw-text-opacity: 1;
1031
1194
  color: rgb(255 255 255 / var(--tw-text-opacity));
1032
1195
  }
1033
- .opacity-40{
1196
+ .opacity-40 {
1034
1197
  opacity: 0.4;
1035
1198
  }
1036
- .shadow{
1199
+ .shadow {
1037
1200
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
1038
1201
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
1039
1202
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1040
1203
  }
1041
- .shadow-sm{
1204
+ .shadow-sm {
1042
1205
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
1043
1206
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
1044
1207
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1045
1208
  }
1046
- .blur-lg{
1209
+ .blur-lg {
1047
1210
  --tw-blur: blur(16px);
1048
1211
  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);
1049
1212
  }
1050
- .filter{
1213
+ .filter {
1051
1214
  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);
1052
1215
  }
1053
- .backdrop-blur-lg{
1216
+ .backdrop-blur-lg {
1054
1217
  --tw-backdrop-blur: blur(16px);
1055
1218
  -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);
1056
1219
  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);
1057
1220
  }
1058
- .transition{
1221
+ .transition {
1059
1222
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
1060
1223
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
1061
1224
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
1062
1225
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1063
1226
  transition-duration: 150ms;
1064
1227
  }
1065
- .duration-300{
1228
+ .duration-300 {
1066
1229
  transition-duration: 300ms;
1067
1230
  }
1068
- .duration-500{
1231
+ .duration-500 {
1069
1232
  transition-duration: 500ms;
1070
1233
  }
1071
- .ease-in-out{
1234
+ .ease-in-out {
1072
1235
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1073
1236
  }
1074
1237
  input[type='number']::-webkit-inner-spin-button,
1075
- input[type='number']::-webkit-outer-spin-button{
1238
+ input[type='number']::-webkit-outer-spin-button {
1076
1239
  -webkit-appearance: none;
1077
1240
  appearance: none;
1078
1241
  }
1079
- .hover\\:underline:hover{
1242
+ .hover\\:underline:hover {
1080
1243
  text-decoration-line: underline;
1081
1244
  }
1082
- .hover\\:shadow:hover{
1245
+ .hover\\:shadow:hover {
1083
1246
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
1084
1247
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
1085
1248
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1086
1249
  }
1087
- .focus\\:outline-none:focus{
1250
+ .focus\\:outline-none:focus {
1088
1251
  outline: 2px solid transparent;
1089
1252
  outline-offset: 2px;
1090
1253
  }
1091
- .focus\\:ring-2:focus{
1254
+ .focus\\:ring-2:focus {
1092
1255
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1093
1256
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1094
1257
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1095
1258
  }
1096
- .focus\\:ring-indigo-500:focus{
1259
+ .focus\\:ring-indigo-500:focus {
1097
1260
  --tw-ring-opacity: 1;
1098
1261
  --tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity));
1099
1262
  }
1100
- .focus\\:ring-offset-2:focus{
1263
+ .focus\\:ring-offset-2:focus {
1101
1264
  --tw-ring-offset-width: 2px;
1102
1265
  }
1103
- .focus-visible\\:ring:focus-visible{
1266
+ .focus-visible\\:ring:focus-visible {
1104
1267
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1105
1268
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1106
1269
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1107
1270
  }
1108
- .focus-visible\\:ring-purple-500\\/75:focus-visible{
1271
+ .focus-visible\\:ring-purple-500\\/75:focus-visible {
1109
1272
  --tw-ring-color: rgb(168 85 247 / 0.75);
1110
1273
  }
1111
- .disabled\\:cursor-not-allowed:disabled{
1274
+ .disabled\\:cursor-not-allowed:disabled {
1112
1275
  cursor: not-allowed;
1113
1276
  }
1114
- .disabled\\:opacity-40:disabled{
1277
+ .disabled\\:opacity-40:disabled {
1115
1278
  opacity: 0.4;
1116
1279
  }
1117
- @media (prefers-reduced-motion: reduce){
1118
- @keyframes spin{
1119
- to{
1280
+ @media (prefers-reduced-motion: reduce) {
1281
+ @keyframes spin {
1282
+ to {
1120
1283
  transform: rotate(360deg);
1121
1284
  }
1122
1285
  }
1123
- .motion-reduce\\:animate-\\[spin_1\\.5s_linear_infinite\\]{
1286
+ .motion-reduce\\:animate-\\[spin_1\\.5s_linear_infinite\\] {
1124
1287
  animation: spin 1.5s linear infinite;
1125
1288
  }
1126
1289
  }
1127
- .dark\\:border-f1f5f8\\/10:is(.dark *){
1290
+ .dark\\:border-f1f5f8\\/10:is(.dark *) {
1128
1291
  border-color: rgb(241 245 248 / 0.1);
1129
1292
  }
1130
- .dark\\:bg-0d151d:is(.dark *){
1293
+ .dark\\:bg-0d151d:is(.dark *) {
1131
1294
  --tw-bg-opacity: 1;
1132
1295
  background-color: rgb(13 21 29 / var(--tw-bg-opacity));
1133
1296
  }
1134
- .dark\\:bg-white:is(.dark *){
1297
+ .dark\\:bg-white:is(.dark *) {
1135
1298
  --tw-bg-opacity: 1;
1136
1299
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
1137
1300
  }
1138
- .dark\\:text-0d151d:is(.dark *){
1301
+ .dark\\:text-0d151d:is(.dark *) {
1139
1302
  --tw-text-opacity: 1;
1140
1303
  color: rgb(13 21 29 / var(--tw-text-opacity));
1141
1304
  }
1142
- .dark\\:text-9eafc0:is(.dark *){
1305
+ .dark\\:text-9eafc0:is(.dark *) {
1143
1306
  --tw-text-opacity: 1;
1144
1307
  color: rgb(158 175 192 / var(--tw-text-opacity));
1145
1308
  }
1146
- .dark\\:text-white:is(.dark *){
1309
+ .dark\\:text-white:is(.dark *) {
1147
1310
  --tw-text-opacity: 1;
1148
1311
  color: rgb(255 255 255 / var(--tw-text-opacity));
1149
1312
  }
1150
- @media (min-width: 768px){
1151
- .md\\:mt-2{
1313
+ @media (min-width: 768px) {
1314
+ .md\\:mt-2 {
1152
1315
  margin-top: 8px;
1153
1316
  }
1154
- .md\\:hidden{
1317
+ .md\\:hidden {
1155
1318
  display: none;
1156
1319
  }
1157
- .md\\:min-h-\\[35rem\\]{
1320
+ .md\\:min-h-\\[35rem\\] {
1158
1321
  min-height: 35rem;
1159
1322
  }
1160
- .md\\:max-w-md{
1323
+ .md\\:max-w-md {
1161
1324
  max-width: 448px;
1162
1325
  }
1163
- .md\\:items-center{
1326
+ .md\\:items-center {
1164
1327
  align-items: center;
1165
1328
  }
1166
- .md\\:overflow-y-auto{
1329
+ .md\\:overflow-y-auto {
1167
1330
  overflow-y: auto;
1168
1331
  }
1169
- .md\\:rounded-2xl{
1170
- border-radius: 1rem;
1332
+ .md\\:rounded-\\[24px\\] {
1333
+ border-radius: 24px;
1171
1334
  }
1172
- .md\\:rounded-b-2xl{
1335
+ .md\\:rounded-b-2xl {
1173
1336
  border-bottom-right-radius: 1rem;
1174
1337
  border-bottom-left-radius: 1rem;
1175
1338
  }
1176
- .md\\:p-4{
1339
+ .md\\:p-4 {
1177
1340
  padding: 16px;
1178
1341
  }
1179
1342
  }
@@ -1235,51 +1398,51 @@ function clsx() {
1235
1398
  }
1236
1399
  var clsx_default = clsx;
1237
1400
 
1401
+ // src/components/IDKitWidget/States/ErrorState.tsx
1402
+ import { useEffect as useEffect4 } from "react";
1403
+
1238
1404
  // src/components/Icons/ErrorIcon.tsx
1239
1405
  import { jsx as jsx4, jsxs } from "react/jsx-runtime";
1240
- var ErrorIcon = (props) => /* @__PURE__ */ jsxs("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 100 100", children: [
1241
- /* @__PURE__ */ jsx4("circle", { cx: "50", cy: "50", r: "49.375", fill: "url(#a)", fillOpacity: ".65", stroke: "url(#b)", strokeWidth: "1.25" }),
1242
- /* @__PURE__ */ jsxs("g", { filter: "url(#c)", children: [
1243
- /* @__PURE__ */ jsx4("circle", { cx: "50", cy: "50", r: "35", fill: "#fff" }),
1244
- /* @__PURE__ */ jsx4("circle", { cx: "50", cy: "50", r: "34.432", stroke: "#FFC9AD", strokeWidth: "1.136" })
1245
- ] }),
1406
+ var ErrorIcon = (props) => /* @__PURE__ */ jsxs("svg", { width: "88", height: "88", viewBox: "0 0 88 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1407
+ /* @__PURE__ */ jsx4("rect", { width: "88", height: "88", rx: "44", fill: "#9BA3AE" }),
1408
+ /* @__PURE__ */ jsx4("rect", { opacity: "0.2", width: "88", height: "88", rx: "44", fill: "url(#paint0_radial_117706_3198)" }),
1409
+ /* @__PURE__ */ jsx4("rect", { x: "0.5", y: "0.5", width: "87", height: "87", rx: "43.5", stroke: "url(#paint1_linear_117706_3198)" }),
1246
1410
  /* @__PURE__ */ jsx4(
1247
1411
  "path",
1248
1412
  {
1249
- stroke: "#FF4732",
1250
- strokeLinecap: "round",
1251
- strokeLinejoin: "round",
1252
- strokeWidth: "3.75",
1253
- d: "m57.5 42.5-15 14.999m15 .001-15-14.999"
1413
+ 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",
1414
+ stroke: "white",
1415
+ strokeWidth: "3"
1254
1416
  }
1255
1417
  ),
1256
1418
  /* @__PURE__ */ jsxs("defs", { children: [
1257
- /* @__PURE__ */ jsxs("linearGradient", { id: "a", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
1258
- /* @__PURE__ */ jsx4("stop", { stopColor: "#FFA483" }),
1259
- /* @__PURE__ */ jsx4("stop", { offset: "1", stopColor: "#FFA483", stopOpacity: "0" })
1260
- ] }),
1261
- /* @__PURE__ */ jsxs("linearGradient", { id: "b", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
1262
- /* @__PURE__ */ jsx4("stop", { stopColor: "#FFA483" }),
1263
- /* @__PURE__ */ jsx4("stop", { offset: ".713", stopColor: "#FFA483", stopOpacity: "0" })
1264
- ] }),
1265
1419
  /* @__PURE__ */ jsxs(
1266
- "filter",
1420
+ "radialGradient",
1267
1421
  {
1268
- id: "c",
1269
- width: "77.5",
1270
- height: "77.5",
1271
- x: "11.25",
1272
- y: "13.125",
1273
- colorInterpolationFilters: "sRGB",
1274
- filterUnits: "userSpaceOnUse",
1422
+ id: "paint0_radial_117706_3198",
1423
+ cx: "0",
1424
+ cy: "0",
1425
+ r: "1",
1426
+ gradientUnits: "userSpaceOnUse",
1427
+ gradientTransform: "translate(20 -1.6729e-06) rotate(63.4349) scale(98.387 97.9627)",
1275
1428
  children: [
1276
- /* @__PURE__ */ jsx4("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
1277
- /* @__PURE__ */ jsx4("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" }),
1278
- /* @__PURE__ */ jsx4("feOffset", { dy: "1.875" }),
1279
- /* @__PURE__ */ jsx4("feGaussianBlur", { stdDeviation: "1.875" }),
1280
- /* @__PURE__ */ jsx4("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" }),
1281
- /* @__PURE__ */ jsx4("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_39_740" }),
1282
- /* @__PURE__ */ jsx4("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_39_740", result: "shape" })
1429
+ /* @__PURE__ */ jsx4("stop", { stopColor: "white" }),
1430
+ /* @__PURE__ */ jsx4("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
1431
+ ]
1432
+ }
1433
+ ),
1434
+ /* @__PURE__ */ jsxs(
1435
+ "linearGradient",
1436
+ {
1437
+ id: "paint1_linear_117706_3198",
1438
+ x1: "44",
1439
+ y1: "0",
1440
+ x2: "44",
1441
+ y2: "88",
1442
+ gradientUnits: "userSpaceOnUse",
1443
+ children: [
1444
+ /* @__PURE__ */ jsx4("stop", { stopColor: "white", stopOpacity: "0.3" }),
1445
+ /* @__PURE__ */ jsx4("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
1283
1446
  ]
1284
1447
  }
1285
1448
  )
@@ -1290,75 +1453,47 @@ var ErrorIcon_default = ErrorIcon;
1290
1453
  // src/components/IDKitWidget/States/ErrorState.tsx
1291
1454
  import { AppErrorCodes } from "@worldcoin/idkit-core";
1292
1455
 
1293
- // src/components/Icons/ReloadIcon.tsx
1294
- import { jsx as jsx5 } from "react/jsx-runtime";
1295
- var ReloadIcon = (props) => /* @__PURE__ */ jsx5("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx5(
1296
- "path",
1297
- {
1298
- 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",
1299
- stroke: "#3C424B",
1300
- strokeWidth: "1.5",
1301
- strokeLinecap: "round",
1302
- strokeLinejoin: "round"
1303
- }
1304
- ) });
1305
- var ReloadIcon_default = ReloadIcon;
1306
-
1307
1456
  // src/components/Icons/WarningIcon.tsx
1308
- import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
1309
- var WarningIcon = (props) => /* @__PURE__ */ jsxs2("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 100 100", ...props, children: [
1310
- /* @__PURE__ */ jsx6(
1311
- "circle",
1312
- {
1313
- cx: "50",
1314
- cy: "50",
1315
- r: "49.375",
1316
- fill: "url(#warning-a)",
1317
- fillOpacity: ".65",
1318
- stroke: "url(#warning-b)",
1319
- strokeWidth: "1.25"
1320
- }
1321
- ),
1322
- /* @__PURE__ */ jsxs2("g", { filter: "url(#warning-c)", children: [
1323
- /* @__PURE__ */ jsx6("circle", { cx: "50", cy: "50", r: "35", fill: "#fff" }),
1324
- /* @__PURE__ */ jsx6("circle", { cx: "50", cy: "50", r: "34.432", stroke: "#FFE999", strokeWidth: "1.136" })
1325
- ] }),
1326
- /* @__PURE__ */ jsx6(
1457
+ import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
1458
+ var WarningIcon = (props) => /* @__PURE__ */ jsxs2("svg", { width: "88", height: "88", viewBox: "0 0 88 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1459
+ /* @__PURE__ */ jsx5("rect", { width: "88", height: "88", rx: "44", fill: "#FFAE00" }),
1460
+ /* @__PURE__ */ jsx5("rect", { opacity: "0.2", width: "88", height: "88", rx: "44", fill: "url(#paint0_radial_117706_3182)" }),
1461
+ /* @__PURE__ */ jsx5("rect", { x: "0.5", y: "0.5", width: "87", height: "87", rx: "43.5", stroke: "url(#paint1_linear_117706_3182)" }),
1462
+ /* @__PURE__ */ jsx5(
1327
1463
  "path",
1328
1464
  {
1329
- fill: "#FFB200",
1330
- fillRule: "evenodd",
1331
- 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",
1332
- clipRule: "evenodd"
1465
+ 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",
1466
+ fill: "white"
1333
1467
  }
1334
1468
  ),
1335
1469
  /* @__PURE__ */ jsxs2("defs", { children: [
1336
- /* @__PURE__ */ jsxs2("linearGradient", { id: "warning-a", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
1337
- /* @__PURE__ */ jsx6("stop", { stopColor: "#FFDA66" }),
1338
- /* @__PURE__ */ jsx6("stop", { offset: "1", stopColor: "#FFDA66", stopOpacity: "0" })
1339
- ] }),
1340
- /* @__PURE__ */ jsxs2("linearGradient", { id: "warning-b", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
1341
- /* @__PURE__ */ jsx6("stop", { stopColor: "#FFDA66" }),
1342
- /* @__PURE__ */ jsx6("stop", { offset: ".713", stopColor: "#FFDA66", stopOpacity: "0" })
1343
- ] }),
1344
1470
  /* @__PURE__ */ jsxs2(
1345
- "filter",
1471
+ "radialGradient",
1472
+ {
1473
+ id: "paint0_radial_117706_3182",
1474
+ cx: "0",
1475
+ cy: "0",
1476
+ r: "1",
1477
+ gradientUnits: "userSpaceOnUse",
1478
+ gradientTransform: "translate(20 -1.6729e-06) rotate(63.4349) scale(98.387 97.9627)",
1479
+ children: [
1480
+ /* @__PURE__ */ jsx5("stop", { stopColor: "white" }),
1481
+ /* @__PURE__ */ jsx5("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
1482
+ ]
1483
+ }
1484
+ ),
1485
+ /* @__PURE__ */ jsxs2(
1486
+ "linearGradient",
1346
1487
  {
1347
- id: "warning-c",
1348
- width: "77.5",
1349
- height: "77.5",
1350
- x: "11.25",
1351
- y: "13.125",
1352
- colorInterpolationFilters: "sRGB",
1353
- filterUnits: "userSpaceOnUse",
1488
+ id: "paint1_linear_117706_3182",
1489
+ x1: "44",
1490
+ y1: "0",
1491
+ x2: "44",
1492
+ y2: "88",
1493
+ gradientUnits: "userSpaceOnUse",
1354
1494
  children: [
1355
- /* @__PURE__ */ jsx6("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
1356
- /* @__PURE__ */ jsx6("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" }),
1357
- /* @__PURE__ */ jsx6("feOffset", { dy: "1.875" }),
1358
- /* @__PURE__ */ jsx6("feGaussianBlur", { stdDeviation: "1.875" }),
1359
- /* @__PURE__ */ jsx6("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" }),
1360
- /* @__PURE__ */ jsx6("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_39_758" }),
1361
- /* @__PURE__ */ jsx6("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_39_758", result: "shape" })
1495
+ /* @__PURE__ */ jsx5("stop", { stopColor: "white", stopOpacity: "0.3" }),
1496
+ /* @__PURE__ */ jsx5("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
1362
1497
  ]
1363
1498
  }
1364
1499
  )
@@ -1367,7 +1502,7 @@ var WarningIcon = (props) => /* @__PURE__ */ jsxs2("svg", { xmlns: "http://www.w
1367
1502
  var WarningIcon_default = WarningIcon;
1368
1503
 
1369
1504
  // src/components/IDKitWidget/States/ErrorState.tsx
1370
- import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
1505
+ import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
1371
1506
  var getParams = ({ retryFlow, errorState }) => ({ retryFlow, errorState });
1372
1507
  var ERROR_TITLES = {
1373
1508
  [AppErrorCodes.GenericError]: __("Something went wrong"),
@@ -1381,39 +1516,35 @@ var ERROR_MESSAGES = {
1381
1516
  "You have already verified the maximum number of times for this action."
1382
1517
  ),
1383
1518
  [AppErrorCodes.CredentialUnavailable]: __("It seems you do not have the verification level required by this app."),
1384
- [AppErrorCodes.MalformedRequest]: __(
1385
- "There was a problem with this request. Please try again or contact the app owner."
1386
- ),
1387
1519
  [AppErrorCodes.InvalidNetwork]: __(
1388
1520
  "Invalid network. If you are the app owner, visit docs.world.org/test for details."
1389
1521
  ),
1390
- [AppErrorCodes.InclusionProofFailed]: __("There was an issue fetching your credential. Please try again."),
1391
1522
  [AppErrorCodes.InclusionProofPending]: __(
1392
1523
  "Your identity is still being registered. Please wait a few minutes and try again."
1393
1524
  ),
1394
- [AppErrorCodes.GenericError]: __("Something unexpected went wrong. Please try again."),
1395
- [AppErrorCodes.UnexpectedResponse]: __("Unexpected response from your wallet. Please try again."),
1396
- [AppErrorCodes.FailedByHostApp]: __("Verification failed by the app. Please contact the app owner for details.")
1525
+ [AppErrorCodes.GenericError]: __("We couldn't complete your request. Please try again.")
1397
1526
  };
1398
1527
  var ErrorState = (props) => {
1399
1528
  const { retryFlow, errorState } = idkit_default(getParams);
1400
1529
  const { show_modal } = props;
1530
+ useEffect4(() => {
1531
+ if (errorState) {
1532
+ console.error(`Error state: `, errorState);
1533
+ }
1534
+ }, [errorState]);
1401
1535
  return /* @__PURE__ */ jsxs3("div", { className: "space-y-8", children: [
1402
- /* @__PURE__ */ jsx7("div", { className: clsx_default("flex items-center justify-center", show_modal ? "-mt-5" : ""), children: errorState?.code == AppErrorCodes.VerificationRejected ? /* @__PURE__ */ jsx7(WarningIcon_default, { className: "w-24" }) : /* @__PURE__ */ jsx7(ErrorIcon_default, { className: "w-24" }) }),
1536
+ /* @__PURE__ */ jsx6("div", { className: clsx_default("flex items-center justify-center", show_modal ? "-mt-5" : ""), children: errorState?.code == AppErrorCodes.VerificationRejected ? /* @__PURE__ */ jsx6(WarningIcon_default, { className: "w-24" }) : /* @__PURE__ */ jsx6(ErrorIcon_default, { className: "w-24" }) }),
1403
1537
  /* @__PURE__ */ jsxs3("div", { children: [
1404
- /* @__PURE__ */ jsx7("p", { className: "text-center text-2xl font-semibold text-gray-900 dark:text-white", children: (errorState?.code && ERROR_TITLES[errorState.code]) ?? ERROR_TITLES[AppErrorCodes.GenericError] }),
1405
- /* @__PURE__ */ jsx7("p", { className: "mx-auto mt-2 max-w-[224px] text-center text-657080", children: errorState?.message ?? ERROR_MESSAGES[errorState?.code ?? AppErrorCodes.GenericError] })
1538
+ /* @__PURE__ */ jsx6("p", { className: "text-center text-2xl font-semibold text-gray-900 dark:text-white", children: (errorState?.code && ERROR_TITLES[errorState.code]) ?? ERROR_TITLES[AppErrorCodes.GenericError] }),
1539
+ /* @__PURE__ */ jsx6("p", { className: "mx-auto mt-2 max-w-[224px] text-center text-657080", children: (errorState?.code && ERROR_MESSAGES[errorState.code]) ?? ERROR_MESSAGES[AppErrorCodes.GenericError] })
1406
1540
  ] }),
1407
- /* @__PURE__ */ jsx7("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxs3(
1541
+ /* @__PURE__ */ jsx6("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx6(
1408
1542
  "button",
1409
1543
  {
1410
1544
  type: "button",
1411
1545
  onClick: retryFlow,
1412
- 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",
1413
- children: [
1414
- /* @__PURE__ */ jsx7(ReloadIcon_default, { className: "mr-1.5 size-5" }),
1415
- __("Try Again")
1416
- ]
1546
+ 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",
1547
+ children: __("Try Again")
1417
1548
  }
1418
1549
  ) })
1419
1550
  ] });
@@ -1424,61 +1555,40 @@ var ErrorState_default = ErrorState;
1424
1555
  import * as Toast from "@radix-ui/react-toast";
1425
1556
 
1426
1557
  // src/components/Icons/CheckIcon.tsx
1427
- import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
1428
- var CheckIcon = (props) => /* @__PURE__ */ jsxs4("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 100 100", ...props, children: [
1429
- /* @__PURE__ */ jsx8(
1430
- "circle",
1431
- {
1432
- cx: "50",
1433
- cy: "50",
1434
- r: "49.375",
1435
- fill: "url(#success-a)",
1436
- fillOpacity: ".65",
1437
- stroke: "url(#success-b)",
1438
- strokeWidth: "1.25"
1439
- }
1440
- ),
1441
- /* @__PURE__ */ jsxs4("g", { filter: "url(#success-c)", children: [
1442
- /* @__PURE__ */ jsx8("circle", { cx: "50", cy: "50", r: "35", fill: "#fff" }),
1443
- /* @__PURE__ */ jsx8("circle", { cx: "50", cy: "50", r: "34.432", stroke: "#CCEBCC", strokeWidth: "1.136" })
1444
- ] }),
1445
- /* @__PURE__ */ jsx8(
1446
- "path",
1447
- {
1448
- stroke: "#090",
1449
- strokeLinecap: "round",
1450
- strokeLinejoin: "round",
1451
- strokeWidth: "3.75",
1452
- d: "m41.25 52.5 4.375 4.375 13.125-13.75"
1453
- }
1454
- ),
1558
+ import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
1559
+ var CheckIcon = (props) => /* @__PURE__ */ jsxs4("svg", { width: "88", height: "88", viewBox: "0 0 88 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1560
+ /* @__PURE__ */ jsx7("rect", { width: "88", height: "88", rx: "44", fill: "#00C230" }),
1561
+ /* @__PURE__ */ jsx7("rect", { opacity: "0.2", width: "88", height: "88", rx: "44", fill: "url(#paint0_radial_117706_3174)" }),
1562
+ /* @__PURE__ */ jsx7("rect", { x: "0.5", y: "0.5", width: "87", height: "87", rx: "43.5", stroke: "url(#paint1_linear_117706_3174)" }),
1563
+ /* @__PURE__ */ jsx7("path", { d: "M29.5 45.5L37.5 53.5L57.5 33.5", stroke: "white", strokeWidth: "3" }),
1455
1564
  /* @__PURE__ */ jsxs4("defs", { children: [
1456
- /* @__PURE__ */ jsxs4("linearGradient", { id: "success-a", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
1457
- /* @__PURE__ */ jsx8("stop", { stopColor: "#99D699" }),
1458
- /* @__PURE__ */ jsx8("stop", { offset: "1", stopColor: "#99D699", stopOpacity: "0" })
1459
- ] }),
1460
- /* @__PURE__ */ jsxs4("linearGradient", { id: "success-b", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
1461
- /* @__PURE__ */ jsx8("stop", { stopColor: "#99D699" }),
1462
- /* @__PURE__ */ jsx8("stop", { offset: ".713", stopColor: "#99D699", stopOpacity: "0" })
1463
- ] }),
1464
1565
  /* @__PURE__ */ jsxs4(
1465
- "filter",
1566
+ "radialGradient",
1466
1567
  {
1467
- id: "success-c",
1468
- width: "77.5",
1469
- height: "77.5",
1470
- x: "11.25",
1471
- y: "13.125",
1472
- colorInterpolationFilters: "sRGB",
1473
- filterUnits: "userSpaceOnUse",
1568
+ id: "paint0_radial_117706_3174",
1569
+ cx: "0",
1570
+ cy: "0",
1571
+ r: "1",
1572
+ gradientUnits: "userSpaceOnUse",
1573
+ gradientTransform: "translate(20 -1.6729e-06) rotate(63.4349) scale(98.387 97.9627)",
1474
1574
  children: [
1475
- /* @__PURE__ */ jsx8("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
1476
- /* @__PURE__ */ jsx8("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" }),
1477
- /* @__PURE__ */ jsx8("feOffset", { dy: "1.875" }),
1478
- /* @__PURE__ */ jsx8("feGaussianBlur", { stdDeviation: "1.875" }),
1479
- /* @__PURE__ */ jsx8("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" }),
1480
- /* @__PURE__ */ jsx8("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_39_712" }),
1481
- /* @__PURE__ */ jsx8("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_39_712", result: "shape" })
1575
+ /* @__PURE__ */ jsx7("stop", { stopColor: "white" }),
1576
+ /* @__PURE__ */ jsx7("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
1577
+ ]
1578
+ }
1579
+ ),
1580
+ /* @__PURE__ */ jsxs4(
1581
+ "linearGradient",
1582
+ {
1583
+ id: "paint1_linear_117706_3174",
1584
+ x1: "44",
1585
+ y1: "0",
1586
+ x2: "44",
1587
+ y2: "88",
1588
+ gradientUnits: "userSpaceOnUse",
1589
+ children: [
1590
+ /* @__PURE__ */ jsx7("stop", { stopColor: "white", stopOpacity: "0.3" }),
1591
+ /* @__PURE__ */ jsx7("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
1482
1592
  ]
1483
1593
  }
1484
1594
  )
@@ -1487,13 +1597,13 @@ var CheckIcon = (props) => /* @__PURE__ */ jsxs4("svg", { xmlns: "http://www.w3.
1487
1597
  var CheckIcon_default = CheckIcon;
1488
1598
 
1489
1599
  // src/components/IDKitWidget/States/SuccessState.tsx
1490
- import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
1600
+ import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
1491
1601
  var SuccessState = (props) => {
1492
1602
  return /* @__PURE__ */ jsxs5("div", { className: "space-y-6", children: [
1493
- /* @__PURE__ */ jsx9("div", { className: clsx_default("flex items-center justify-center", props.show_modal ? "-mt-5" : ""), children: /* @__PURE__ */ jsx9(CheckIcon_default, { className: "w-24 text-white" }) }),
1603
+ /* @__PURE__ */ jsx8("div", { className: clsx_default("flex items-center justify-center", props.show_modal ? "-mt-5" : ""), children: /* @__PURE__ */ jsx8(CheckIcon_default, { className: "w-24 text-white" }) }),
1494
1604
  /* @__PURE__ */ jsxs5("div", { children: [
1495
- /* @__PURE__ */ jsx9("p", { className: "text-center text-2xl font-semibold text-gray-900 dark:text-white", children: __("Successfully verified") }),
1496
- /* @__PURE__ */ jsx9("p", { className: "mx-auto mt-2 max-w-[224px] text-center text-lg text-657080", children: __("Your World ID verification was successful") })
1605
+ /* @__PURE__ */ jsx8("p", { className: "text-center text-2xl font-semibold text-gray-900 dark:text-white", children: __("All set!") }),
1606
+ /* @__PURE__ */ jsx8("p", { className: "mx-auto mt-2 max-w-[260px] text-center text-lg text-657080", children: __("Your World ID is now connected") })
1497
1607
  ] })
1498
1608
  ] });
1499
1609
  };
@@ -1505,20 +1615,20 @@ import { useCallback as useCallback2, useState as useState3 } from "react";
1505
1615
  import { AnimatePresence, motion } from "framer-motion";
1506
1616
 
1507
1617
  // src/components/Icons/WorldcoinIcon.tsx
1508
- import { jsx as jsx10 } from "react/jsx-runtime";
1509
- var WorldcoinIcon = (props) => /* @__PURE__ */ jsx10("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 33 32", children: /* @__PURE__ */ jsx10(
1618
+ import { jsx as jsx9 } from "react/jsx-runtime";
1619
+ var WorldcoinIcon = (props) => /* @__PURE__ */ jsx9("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", ...props, children: /* @__PURE__ */ jsx9(
1510
1620
  "path",
1511
1621
  {
1512
- fill: "currentColor",
1513
- 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"
1622
+ 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",
1623
+ fill: "currentColor"
1514
1624
  }
1515
1625
  ) });
1516
1626
  var WorldcoinIcon_default = WorldcoinIcon;
1517
1627
 
1518
1628
  // src/components/Icons/QRPlaceholderIcon.tsx
1519
- import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
1629
+ import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
1520
1630
  var QRPlaceholderIcon = (props) => /* @__PURE__ */ jsxs6("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 200 200", children: [
1521
- /* @__PURE__ */ jsx11(
1631
+ /* @__PURE__ */ jsx10(
1522
1632
  "path",
1523
1633
  {
1524
1634
  fill: "#EBECEF",
@@ -1527,14 +1637,14 @@ var QRPlaceholderIcon = (props) => /* @__PURE__ */ jsxs6("svg", { ...props, xmln
1527
1637
  clipRule: "evenodd"
1528
1638
  }
1529
1639
  ),
1530
- /* @__PURE__ */ jsx11(
1640
+ /* @__PURE__ */ jsx10(
1531
1641
  "path",
1532
1642
  {
1533
1643
  fill: "#EBECEF",
1534
1644
  d: "M197.026 200c.789 0 1.545-.309 2.103-.86.558-.55.871-1.297.871-2.076v-17.616c0-.778-.313-1.525-.871-2.076a2.996 2.996 0 0 0-2.103-.86h-5.948c-.789 0-1.545.31-2.103.86a2.918 2.918 0 0 0-.871 2.076v8.808h-11.897v-11.744h-11.896v-23.487h11.896v8.808c0 .778.314 1.525.872 2.076.557.55 1.314.86 2.102.86h5.949c.788 0 1.545-.31 2.103-.86a2.922 2.922 0 0 0 .871-2.076v-8.808h8.922c.789 0 1.545-.309 2.103-.86a2.916 2.916 0 0 0 .871-2.076v-5.872c0-.779-.313-1.525-.871-2.076a2.992 2.992 0 0 0-2.103-.86h-29.741c-.789 0-1.545.309-2.103.86a2.916 2.916 0 0 0-.871 2.076v8.808h-23.792v-11.744h8.922c.789 0 1.545-.309 2.103-.86.558-.55.871-1.297.871-2.076v-5.872c0-.778-.313-1.525-.871-2.076a2.996 2.996 0 0 0-2.103-.86h-5.948c-.789 0-1.546.31-2.103.86a2.918 2.918 0 0 0-.871 2.076v8.808H119.7c-.789 0-1.545.309-2.103.86a2.916 2.916 0 0 0-.871 2.076v5.872c0 .779.313 1.525.871 2.076.558.551 1.314.86 2.103.86h20.819v8.808c0 .778.313 1.525.871 2.076.557.55 1.314.86 2.103.86h8.922v8.808c0 .778.313 1.525.871 2.076.558.55 1.314.859 2.103.859h8.922v11.744h-20.818c-.789 0-1.546.31-2.103.86a2.916 2.916 0 0 0-.871 2.076v5.872c0 .779.313 1.526.871 2.076a2.99 2.99 0 0 0 2.103.86h17.844c.789 0 1.545-.309 2.103-.86.558-.55.871-1.297.871-2.076v-8.808h11.896v8.808c0 .779.314 1.526.872 2.076a2.99 2.99 0 0 0 2.102.86h17.845Z"
1535
1645
  }
1536
1646
  ),
1537
- /* @__PURE__ */ jsx11(
1647
+ /* @__PURE__ */ jsx10(
1538
1648
  "path",
1539
1649
  {
1540
1650
  fill: "#EBECEF",
@@ -1543,14 +1653,14 @@ var QRPlaceholderIcon = (props) => /* @__PURE__ */ jsxs6("svg", { ...props, xmln
1543
1653
  clipRule: "evenodd"
1544
1654
  }
1545
1655
  ),
1546
- /* @__PURE__ */ jsx11(
1656
+ /* @__PURE__ */ jsx10(
1547
1657
  "path",
1548
1658
  {
1549
1659
  fill: "#EBECEF",
1550
1660
  d: "M6.05 89.68A6.05 6.05 0 0 0 0 95.73v9.252a6.05 6.05 0 0 0 6.05 6.05h9.253a6.05 6.05 0 0 0 6.05-6.05V95.73c0-.678-.112-1.33-.318-1.94.445.105.908.16 1.385.16h27.758a6.05 6.05 0 0 0 6.05-6.05v-9.252a6.05 6.05 0 0 0-6.05-6.05H22.42a6.05 6.05 0 0 0-6.05 6.05V87.9c0 .678.112 1.33.317 1.939a6.065 6.065 0 0 0-1.385-.16H6.05Zm102.135-40.926a6.05 6.05 0 0 1 6.05-6.05h9.253a6.05 6.05 0 0 1 6.049 6.05v9.253a6.05 6.05 0 0 1-6.049 6.05h-9.253a6.05 6.05 0 0 1-6.05-6.05v-9.253ZM67.616 184.698a6.05 6.05 0 0 1 6.05-6.05h9.252c.678 0 1.33.111 1.939.317a6.064 6.064 0 0 1-.16-1.385v-9.253a6.05 6.05 0 0 1 6.05-6.049H100a6.05 6.05 0 0 1 6.05 6.049v9.253a6.05 6.05 0 0 1-6.05 6.05h-9.253c-.678 0-1.33-.112-1.938-.317.104.444.159.908.159 1.385v9.252a6.05 6.05 0 0 1-6.05 6.05h-9.253a6.05 6.05 0 0 1-6.05-6.05v-9.252Zm78.291-120.285a6.05 6.05 0 0 1 6.05-6.05h41.993a6.05 6.05 0 0 1 6.05 6.05v9.252a6.05 6.05 0 0 1-6.05 6.05h-41.993a6.05 6.05 0 0 1-6.05-6.05v-9.252ZM95.018 0a6.05 6.05 0 0 0-6.05 6.05v17.082a6.05 6.05 0 0 0 6.05 6.05h9.252a6.05 6.05 0 0 0 6.05-6.05V6.05A6.05 6.05 0 0 0 104.27 0h-9.252Z"
1551
1661
  }
1552
1662
  ),
1553
- /* @__PURE__ */ jsx11(
1663
+ /* @__PURE__ */ jsx10(
1554
1664
  "path",
1555
1665
  {
1556
1666
  fill: "url(#a)",
@@ -1559,14 +1669,14 @@ var QRPlaceholderIcon = (props) => /* @__PURE__ */ jsxs6("svg", { ...props, xmln
1559
1669
  clipRule: "evenodd"
1560
1670
  }
1561
1671
  ),
1562
- /* @__PURE__ */ jsx11(
1672
+ /* @__PURE__ */ jsx10(
1563
1673
  "path",
1564
1674
  {
1565
1675
  fill: "url(#a)",
1566
1676
  d: "M197.026 200c.789 0 1.545-.309 2.103-.86.558-.55.871-1.297.871-2.076v-17.616c0-.778-.313-1.525-.871-2.076a2.996 2.996 0 0 0-2.103-.86h-5.948c-.789 0-1.545.31-2.103.86a2.918 2.918 0 0 0-.871 2.076v8.808h-11.897v-11.744h-11.896v-23.487h11.896v8.808c0 .778.314 1.525.872 2.076.557.55 1.314.86 2.102.86h5.949c.788 0 1.545-.31 2.103-.86a2.922 2.922 0 0 0 .871-2.076v-8.808h8.922c.789 0 1.545-.309 2.103-.86a2.916 2.916 0 0 0 .871-2.076v-5.872c0-.779-.313-1.525-.871-2.076a2.992 2.992 0 0 0-2.103-.86h-29.741c-.789 0-1.545.309-2.103.86a2.916 2.916 0 0 0-.871 2.076v8.808h-23.792v-11.744h8.922c.789 0 1.545-.309 2.103-.86.558-.55.871-1.297.871-2.076v-5.872c0-.778-.313-1.525-.871-2.076a2.996 2.996 0 0 0-2.103-.86h-5.948c-.789 0-1.546.31-2.103.86a2.918 2.918 0 0 0-.871 2.076v8.808H119.7c-.789 0-1.545.309-2.103.86a2.916 2.916 0 0 0-.871 2.076v5.872c0 .779.313 1.525.871 2.076.558.551 1.314.86 2.103.86h20.819v8.808c0 .778.313 1.525.871 2.076.557.55 1.314.86 2.103.86h8.922v8.808c0 .778.313 1.525.871 2.076.558.55 1.314.859 2.103.859h8.922v11.744h-20.818c-.789 0-1.546.31-2.103.86a2.916 2.916 0 0 0-.871 2.076v5.872c0 .779.313 1.526.871 2.076a2.99 2.99 0 0 0 2.103.86h17.844c.789 0 1.545-.309 2.103-.86.558-.55.871-1.297.871-2.076v-8.808h11.896v8.808c0 .779.314 1.526.872 2.076a2.99 2.99 0 0 0 2.102.86h17.845Z"
1567
1677
  }
1568
1678
  ),
1569
- /* @__PURE__ */ jsx11(
1679
+ /* @__PURE__ */ jsx10(
1570
1680
  "path",
1571
1681
  {
1572
1682
  fill: "url(#a)",
@@ -1575,7 +1685,7 @@ var QRPlaceholderIcon = (props) => /* @__PURE__ */ jsxs6("svg", { ...props, xmln
1575
1685
  clipRule: "evenodd"
1576
1686
  }
1577
1687
  ),
1578
- /* @__PURE__ */ jsx11(
1688
+ /* @__PURE__ */ jsx10(
1579
1689
  "path",
1580
1690
  {
1581
1691
  fill: "url(#a)",
@@ -1584,51 +1694,51 @@ var QRPlaceholderIcon = (props) => /* @__PURE__ */ jsxs6("svg", { ...props, xmln
1584
1694
  clipRule: "evenodd"
1585
1695
  }
1586
1696
  ),
1587
- /* @__PURE__ */ jsx11(
1697
+ /* @__PURE__ */ jsx10(
1588
1698
  "path",
1589
1699
  {
1590
1700
  fill: "url(#a)",
1591
1701
  d: "M6.05 89.68A6.05 6.05 0 0 0 0 95.73v9.252a6.05 6.05 0 0 0 6.05 6.05h9.253a6.05 6.05 0 0 0 6.05-6.05V95.73c0-.678-.112-1.33-.318-1.94.445.105.908.16 1.385.16h27.758a6.05 6.05 0 0 0 6.05-6.05v-9.252a6.05 6.05 0 0 0-6.05-6.05H22.42a6.05 6.05 0 0 0-6.05 6.05V87.9c0 .678.112 1.33.317 1.939a6.065 6.065 0 0 0-1.385-.16H6.05Z"
1592
1702
  }
1593
1703
  ),
1594
- /* @__PURE__ */ jsx11(
1704
+ /* @__PURE__ */ jsx10(
1595
1705
  "path",
1596
1706
  {
1597
1707
  fill: "url(#a)",
1598
1708
  d: "M108.185 48.754a6.05 6.05 0 0 1 6.05-6.05h9.253a6.05 6.05 0 0 1 6.049 6.05v9.253a6.05 6.05 0 0 1-6.049 6.05h-9.253a6.05 6.05 0 0 1-6.05-6.05v-9.253Z"
1599
1709
  }
1600
1710
  ),
1601
- /* @__PURE__ */ jsx11(
1711
+ /* @__PURE__ */ jsx10(
1602
1712
  "path",
1603
1713
  {
1604
1714
  fill: "url(#a)",
1605
1715
  d: "M67.616 184.698a6.05 6.05 0 0 1 6.05-6.05h9.252c.678 0 1.33.111 1.939.317a6.064 6.064 0 0 1-.16-1.385v-9.253a6.05 6.05 0 0 1 6.05-6.049H100a6.05 6.05 0 0 1 6.05 6.049v9.253a6.05 6.05 0 0 1-6.05 6.05h-9.253c-.678 0-1.33-.112-1.938-.317.104.444.159.908.159 1.385v9.252a6.05 6.05 0 0 1-6.05 6.05h-9.253a6.05 6.05 0 0 1-6.05-6.05v-9.252Z"
1606
1716
  }
1607
1717
  ),
1608
- /* @__PURE__ */ jsx11(
1718
+ /* @__PURE__ */ jsx10(
1609
1719
  "path",
1610
1720
  {
1611
1721
  fill: "url(#a)",
1612
1722
  d: "M145.907 64.413a6.05 6.05 0 0 1 6.05-6.05h41.993a6.05 6.05 0 0 1 6.05 6.05v9.252a6.05 6.05 0 0 1-6.05 6.05h-41.993a6.05 6.05 0 0 1-6.05-6.05v-9.252Z"
1613
1723
  }
1614
1724
  ),
1615
- /* @__PURE__ */ jsx11(
1725
+ /* @__PURE__ */ jsx10(
1616
1726
  "path",
1617
1727
  {
1618
1728
  fill: "url(#a)",
1619
1729
  d: "M95.018 0a6.05 6.05 0 0 0-6.05 6.05v17.082a6.05 6.05 0 0 0 6.05 6.05h9.252a6.05 6.05 0 0 0 6.05-6.05V6.05A6.05 6.05 0 0 0 104.27 0h-9.252Z"
1620
1730
  }
1621
1731
  ),
1622
- /* @__PURE__ */ jsx11("defs", { children: /* @__PURE__ */ jsxs6("linearGradient", { id: "a", x1: "0", x2: "200", y1: "0", y2: "200", gradientUnits: "userSpaceOnUse", children: [
1623
- /* @__PURE__ */ jsx11("stop", { offset: ".37", stopColor: "#fff", stopOpacity: "0" }),
1624
- /* @__PURE__ */ jsx11("stop", { offset: ".5", stopColor: "#fff", stopOpacity: ".85" }),
1625
- /* @__PURE__ */ jsx11("stop", { offset: ".63", stopColor: "#fff", stopOpacity: "0" })
1732
+ /* @__PURE__ */ jsx10("defs", { children: /* @__PURE__ */ jsxs6("linearGradient", { id: "a", x1: "0", x2: "200", y1: "0", y2: "200", gradientUnits: "userSpaceOnUse", children: [
1733
+ /* @__PURE__ */ jsx10("stop", { offset: ".37", stopColor: "#fff", stopOpacity: "0" }),
1734
+ /* @__PURE__ */ jsx10("stop", { offset: ".5", stopColor: "#fff", stopOpacity: ".85" }),
1735
+ /* @__PURE__ */ jsx10("stop", { offset: ".63", stopColor: "#fff", stopOpacity: "0" })
1626
1736
  ] }) })
1627
1737
  ] });
1628
1738
  var QRPlaceholderIcon_default = QRPlaceholderIcon;
1629
1739
 
1630
1740
  // src/components/IDKitWidget/States/WorldID/QRState.tsx
1631
- import { Fragment, jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
1741
+ import { Fragment, jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
1632
1742
  var QRState = ({ qrData, showQR, setShowQR }) => {
1633
1743
  const media = useMedia_default();
1634
1744
  const [copiedLink, setCopiedLink] = useState3(false);
@@ -1653,8 +1763,8 @@ var QRState = ({ qrData, showQR, setShowQR }) => {
1653
1763
  { hidden: showQR }
1654
1764
  ),
1655
1765
  children: [
1656
- /* @__PURE__ */ jsx12(WorldcoinIcon_default, { className: "size-5" }),
1657
- /* @__PURE__ */ jsx12(
1766
+ /* @__PURE__ */ jsx11(WorldcoinIcon_default, { className: "size-5" }),
1767
+ /* @__PURE__ */ jsx11(
1658
1768
  motion.span,
1659
1769
  {
1660
1770
  className: "flex-1 text-center",
@@ -1668,11 +1778,11 @@ var QRState = ({ qrData, showQR, setShowQR }) => {
1668
1778
  ),
1669
1779
  /* @__PURE__ */ jsxs7("div", { className: clsx_default("mb-3", { "space-y-4": !showQR, hidden: media === "mobile" }), children: [
1670
1780
  /* @__PURE__ */ jsxs7("div", { className: clsx_default("flex items-center space-x-4 ", { hidden: showQR }), children: [
1671
- /* @__PURE__ */ jsx12("hr", { className: "flex-1" }),
1672
- /* @__PURE__ */ jsx12("span", { className: "text-xs font-medium text-9ba3ae", children: "or" }),
1673
- /* @__PURE__ */ jsx12("hr", { className: "flex-1" })
1781
+ /* @__PURE__ */ jsx11("hr", { className: "flex-1" }),
1782
+ /* @__PURE__ */ jsx11("span", { className: "text-xs font-medium text-9ba3ae", children: "or" }),
1783
+ /* @__PURE__ */ jsx11("hr", { className: "flex-1" })
1674
1784
  ] }),
1675
- /* @__PURE__ */ jsx12(
1785
+ /* @__PURE__ */ jsx11(
1676
1786
  motion.button,
1677
1787
  {
1678
1788
  className: "w-full rounded-2xl border border-ebecef p-4 text-lg font-medium text-3c424b",
@@ -1683,7 +1793,7 @@ var QRState = ({ qrData, showQR, setShowQR }) => {
1683
1793
  ] })
1684
1794
  ] }),
1685
1795
  (media == "desktop" || showQR) && /* @__PURE__ */ jsxs7(Fragment, { children: [
1686
- /* @__PURE__ */ jsx12(AnimatePresence, { children: copiedLink && /* @__PURE__ */ jsx12(
1796
+ /* @__PURE__ */ jsx11(AnimatePresence, { children: copiedLink && /* @__PURE__ */ jsx11(
1687
1797
  motion.div,
1688
1798
  {
1689
1799
  className: "text-sm text-9eafc0",
@@ -1716,14 +1826,14 @@ var QRState = ({ qrData, showQR, setShowQR }) => {
1716
1826
  }
1717
1827
  }
1718
1828
  },
1719
- children: /* @__PURE__ */ jsx12("span", { className: "rounded-lg border border-f1f5f8 px-2 py-1 text-sm", children: __("QR Code copied") })
1829
+ children: /* @__PURE__ */ jsx11("span", { className: "rounded-lg border border-f1f5f8 px-2 py-1 text-sm", children: __("QR Code copied") })
1720
1830
  },
1721
1831
  "copied"
1722
1832
  ) }),
1723
- /* @__PURE__ */ jsx12("div", { className: "relative inline-flex items-center justify-center rounded-2xl border border-f1f5f8 p-2 dark:border-f1f5f8/10", children: /* @__PURE__ */ jsx12("div", { className: "text-29343f dark:text-white", children: qrData ? (
1833
+ /* @__PURE__ */ jsx11("div", { className: "relative inline-flex items-center justify-center rounded-2xl border border-f1f5f8 p-3 dark:border-f1f5f8/10", children: /* @__PURE__ */ jsx11("div", { className: "text-29343f dark:text-white", children: qrData ? (
1724
1834
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
1725
- /* @__PURE__ */ jsx12("div", { onClick: copyLink, className: "cursor-pointer", children: /* @__PURE__ */ jsx12(QRCode_default, { data: qrData, size: 244 }) })
1726
- ) : /* @__PURE__ */ jsx12("div", { className: "flex size-[244px] items-center justify-center", children: /* @__PURE__ */ jsx12(QRPlaceholderIcon_default, { className: "size-[244px] animate-pulse" }) }) }) })
1835
+ /* @__PURE__ */ jsx11("div", { onClick: copyLink, className: "cursor-pointer", children: /* @__PURE__ */ jsx11(QRCode_default, { data: qrData, size: 200 }) })
1836
+ ) : /* @__PURE__ */ jsx11("div", { className: "flex size-[200px] items-center justify-center", children: /* @__PURE__ */ jsx11(QRPlaceholderIcon_default, { className: "size-[200px] animate-pulse" }) }) }) })
1727
1837
  ] })
1728
1838
  ] });
1729
1839
  };
@@ -1731,15 +1841,15 @@ var QRState_default = QRState;
1731
1841
 
1732
1842
  // src/components/IDKitWidget/States/WorldIDState.tsx
1733
1843
  import { shallow } from "zustand/shallow";
1734
- import { useEffect as useEffect5, useState as useState4 } from "react";
1844
+ import { useEffect as useEffect6, useState as useState4 } from "react";
1735
1845
 
1736
1846
  // src/services/wld-bridge.ts
1737
- import { useEffect as useEffect4, useRef as useRef2 } from "react";
1847
+ import { useEffect as useEffect5, useRef as useRef2 } from "react";
1738
1848
  import { useWorldBridgeStore } from "@worldcoin/idkit-core";
1739
1849
  var useWorldBridge = (app_id, action, signal, bridge_url, verification_level, action_description, partner) => {
1740
1850
  const ref_verification_level = useRef2(verification_level);
1741
1851
  const { reset, result, connectorURI, createClient, pollForUpdates, verificationState, errorCode } = useWorldBridgeStore();
1742
- useEffect4(() => {
1852
+ useEffect5(() => {
1743
1853
  if (!connectorURI) {
1744
1854
  void createClient({
1745
1855
  app_id,
@@ -1762,7 +1872,7 @@ var useWorldBridge = (app_id, action, signal, bridge_url, verification_level, ac
1762
1872
  connectorURI,
1763
1873
  partner
1764
1874
  ]);
1765
- useEffect4(() => {
1875
+ useEffect5(() => {
1766
1876
  if (!connectorURI || result || errorCode) return;
1767
1877
  const interval = setInterval(() => void pollForUpdates(), 3e3);
1768
1878
  return () => clearInterval(interval);
@@ -1771,7 +1881,7 @@ var useWorldBridge = (app_id, action, signal, bridge_url, verification_level, ac
1771
1881
  };
1772
1882
 
1773
1883
  // src/components/Icons/LoadingIcon.tsx
1774
- import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
1884
+ import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
1775
1885
  var LoadingIcon = ({ className, ...props }) => /* @__PURE__ */ jsxs8(
1776
1886
  "svg",
1777
1887
  {
@@ -1781,8 +1891,8 @@ var LoadingIcon = ({ className, ...props }) => /* @__PURE__ */ jsxs8(
1781
1891
  className: `animate-spin motion-reduce:animate-[spin_1.5s_linear_infinite] ${className}`,
1782
1892
  ...props,
1783
1893
  children: [
1784
- /* @__PURE__ */ jsx13("circle", { cx: "12", cy: "12", r: "10.75", stroke: "#191C20", strokeOpacity: ".16", strokeWidth: "2.5" }),
1785
- /* @__PURE__ */ jsx13(
1894
+ /* @__PURE__ */ jsx12("circle", { cx: "12", cy: "12", r: "10.75", stroke: "#191C20", strokeOpacity: ".16", strokeWidth: "2.5" }),
1895
+ /* @__PURE__ */ jsx12(
1786
1896
  "path",
1787
1897
  {
1788
1898
  fill: "#191C20",
@@ -1796,7 +1906,7 @@ var LoadingIcon_default = LoadingIcon;
1796
1906
 
1797
1907
  // src/components/IDKitWidget/States/WorldIDState.tsx
1798
1908
  import { AppErrorCodes as AppErrorCodes2, VerificationState, VerificationLevel } from "@worldcoin/idkit-core";
1799
- import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
1909
+ import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
1800
1910
  var getOptions = (store) => ({
1801
1911
  signal: store.signal,
1802
1912
  app_id: store.app_id,
@@ -1833,8 +1943,8 @@ var WorldIDState = (props) => {
1833
1943
  action_description,
1834
1944
  partner
1835
1945
  );
1836
- useEffect5(() => reset, [reset]);
1837
- useEffect5(() => {
1946
+ useEffect6(() => reset, [reset]);
1947
+ useEffect6(() => {
1838
1948
  if (verificationState === VerificationState.Failed) {
1839
1949
  setStage("ERROR" /* ERROR */);
1840
1950
  setErrorState({ code: errorCode ?? AppErrorCodes2.GenericError });
@@ -1859,32 +1969,26 @@ var WorldIDState = (props) => {
1859
1969
  ),
1860
1970
  children: [
1861
1971
  /* @__PURE__ */ jsxs9("div", { className: clsx_default(!show_modal ? "hidden" : ""), children: [
1862
- /* @__PURE__ */ jsx14("div", { className: "mb-4 flex items-center justify-center", children: /* @__PURE__ */ jsx14(WorldcoinIcon_default, { className: "h-10 text-0d151d dark:text-white" }) }),
1863
- /* @__PURE__ */ jsx14("p", { className: "font-sora text-2xl font-semibold text-gray-900 dark:text-white", children: __("Verify with World ID") }),
1864
- /* @__PURE__ */ jsxs9("p", { className: clsx_default("mt-3 text-657080 dark:text-9eafc0 md:mt-2", { hidden: media === "mobile" }), children: [
1865
- "Use your camera to scan the QR code. ",
1866
- /* @__PURE__ */ jsx14("br", {}),
1867
- " ",
1868
- /* @__PURE__ */ jsx14("span", { className: "text-red-500", children: "Keep this window open after scanning." })
1869
- ] })
1972
+ /* @__PURE__ */ jsx13("div", { className: "mb-4 flex items-center justify-center", children: /* @__PURE__ */ jsx13("div", { className: "flex size-14 items-center justify-center rounded-full border-[1.2px] border-solid border-[#EBECEF]", children: /* @__PURE__ */ jsx13(WorldcoinIcon_default, { className: "size-8 text-0d151d dark:text-white" }) }) }),
1973
+ /* @__PURE__ */ jsx13("p", { className: "text-2xl font-semibold text-gray-900 dark:text-white", children: __("Connect your World ID") }),
1974
+ /* @__PURE__ */ jsx13("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") })
1870
1975
  ] }),
1871
1976
  /* @__PURE__ */ jsxs9("div", { className: "relative w-full", children: [
1872
1977
  verificationState === VerificationState.WaitingForApp && /* @__PURE__ */ jsxs9("div", { className: "absolute inset-0 flex flex-col items-center justify-center space-y-6", children: [
1873
- /* @__PURE__ */ jsx14(LoadingIcon_default, { className: "size-6" }),
1978
+ /* @__PURE__ */ jsx13(LoadingIcon_default, { className: "size-6" }),
1874
1979
  /* @__PURE__ */ jsxs9("div", { children: [
1875
- /* @__PURE__ */ jsx14("p", { className: "font-bold text-657080", children: "Verifying" }),
1876
- /* @__PURE__ */ jsx14("p", { className: "text-sm text-657080", children: "Please continue in app" }),
1877
- /* @__PURE__ */ jsx14("p", { className: clsx_default(show_modal ? "" : "hidden", "mt-2 text-sm font-bold text-red-500"), children: "Don't close this window" })
1980
+ /* @__PURE__ */ jsx13("p", { className: "font-medium text-657080", children: __("Connecting...") }),
1981
+ /* @__PURE__ */ jsx13("p", { className: "text-sm font-light text-657080", children: __("Please continue in app") })
1878
1982
  ] })
1879
1983
  ] }),
1880
- /* @__PURE__ */ jsx14(
1984
+ /* @__PURE__ */ jsx13(
1881
1985
  "div",
1882
1986
  {
1883
1987
  className: clsx_default(
1884
1988
  "transition duration-500 ease-in-out",
1885
1989
  verificationState === VerificationState.WaitingForApp && "opacity-40 blur-lg"
1886
1990
  ),
1887
- children: /* @__PURE__ */ jsx14("div", { className: "mx-auto", children: /* @__PURE__ */ jsx14(QRState_default, { showQR, setShowQR, qrData: connectorURI }) })
1991
+ children: /* @__PURE__ */ jsx13("div", { className: "mx-auto", children: /* @__PURE__ */ jsx13(QRState_default, { showQR, setShowQR, qrData: connectorURI }) })
1888
1992
  }
1889
1993
  )
1890
1994
  ] })
@@ -1896,26 +2000,27 @@ var WorldIDState_default = WorldIDState;
1896
2000
 
1897
2001
  // src/components/IDKitWidget/BaseWidget.tsx
1898
2002
  import * as Dialog from "@radix-ui/react-dialog";
1899
- import { Fragment as Fragment2, useEffect as useEffect6, useMemo } from "react";
2003
+ import { Fragment as Fragment2, useEffect as useEffect7, useMemo } from "react";
1900
2004
  import { AnimatePresence as AnimatePresence2, motion as motion2 } from "framer-motion";
1901
2005
 
1902
2006
  // src/components/IDKitWidget/States/HostAppVerificationState.tsx
1903
- import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
2007
+ import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
1904
2008
  var HostAppVerificationState = () => {
1905
2009
  return /* @__PURE__ */ jsxs10("div", { className: "space-y-6", children: [
1906
- /* @__PURE__ */ jsx15("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx15(LoadingIcon_default, { className: "size-24" }) }),
1907
- /* @__PURE__ */ jsx15("div", { className: "mt-4 text-70868f", children: __("Transmitting verification to host app. Please wait...") })
2010
+ /* @__PURE__ */ jsx14("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx14(LoadingIcon_default, { className: "size-24" }) }),
2011
+ /* @__PURE__ */ jsx14("div", { className: "mt-4 text-70868f", children: __("Transmitting verification to host app. Please wait...") })
1908
2012
  ] });
1909
2013
  };
1910
2014
  var HostAppVerificationState_default = HostAppVerificationState;
1911
2015
 
1912
2016
  // src/components/IDKitWidget/BaseWidget.tsx
1913
- import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
1914
- var getParams2 = ({ open, processing, onOpenChange, stage, setStage, setOptions }) => ({
2017
+ import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
2018
+ var getParams2 = ({ open, processing, onOpenChange, stage, setStage, setOptions, setErrorState }) => ({
1915
2019
  stage,
1916
2020
  setStage,
1917
2021
  processing,
1918
2022
  setOptions,
2023
+ setErrorState,
1919
2024
  isOpen: open,
1920
2025
  onOpenChange
1921
2026
  });
@@ -1927,8 +2032,8 @@ var IDKitWidget = ({
1927
2032
  ...config
1928
2033
  }) => {
1929
2034
  const media = useMedia_default();
1930
- const { isOpen, onOpenChange, stage, setOptions } = idkit_default(getParams2, shallow2);
1931
- useEffect6(() => {
2035
+ const { isOpen, onOpenChange, stage, setStage, setOptions, setErrorState } = idkit_default(getParams2, shallow2);
2036
+ useEffect7(() => {
1932
2037
  if (config.action === "") {
1933
2038
  throw new Error(__("Action cannot be an empty string."));
1934
2039
  }
@@ -1937,22 +2042,22 @@ var IDKitWidget = ({
1937
2042
  const StageContent = useMemo(() => {
1938
2043
  switch (stage) {
1939
2044
  case "WORLD_ID" /* WORLD_ID */:
1940
- return /* @__PURE__ */ jsx16(WorldIDState_default, { show_modal });
2045
+ return /* @__PURE__ */ jsx15(WorldIDState_default, { show_modal });
1941
2046
  case "SUCCESS" /* SUCCESS */:
1942
- return /* @__PURE__ */ jsx16(SuccessState_default, {});
2047
+ return /* @__PURE__ */ jsx15(SuccessState_default, {});
1943
2048
  case "ERROR" /* ERROR */:
1944
- return /* @__PURE__ */ jsx16(ErrorState_default, {});
2049
+ return /* @__PURE__ */ jsx15(ErrorState_default, {});
1945
2050
  case "HOST_APP_VERIFICATION" /* HOST_APP_VERIFICATION */:
1946
- return /* @__PURE__ */ jsx16(HostAppVerificationState_default, {});
2051
+ return /* @__PURE__ */ jsx15(HostAppVerificationState_default, {});
1947
2052
  default:
1948
2053
  throw new Error(__("Invalid IDKitStage :stage.", { stage }));
1949
2054
  }
1950
2055
  }, [stage, show_modal]);
1951
2056
  const widgetContent = /* @__PURE__ */ jsxs11(ShadowHost, { mode: "open", id: "idkit-widget", children: [
1952
- /* @__PURE__ */ jsx16(Styles_default, {}),
2057
+ /* @__PURE__ */ jsx15(Styles_default, {}),
1953
2058
  /* @__PURE__ */ jsxs11(Toast.Provider, { children: [
1954
- /* @__PURE__ */ jsx16(Toast.Viewport, { className: "flex justify-center" }),
1955
- /* @__PURE__ */ jsx16(
2059
+ /* @__PURE__ */ jsx15(Toast.Viewport, { className: "flex justify-center" }),
2060
+ /* @__PURE__ */ jsx15(
1956
2061
  "div",
1957
2062
  {
1958
2063
  id: "widget-content-inline",
@@ -1976,10 +2081,10 @@ var IDKitWidget = ({
1976
2081
  };
1977
2082
  return /* @__PURE__ */ jsxs11(Dialog.Root, { open: isOpen, onOpenChange, children: [
1978
2083
  children?.({ open: () => onOpenChange(true) }),
1979
- /* @__PURE__ */ jsx16(Dialog.Portal, { forceMount: true, children: /* @__PURE__ */ jsx16(Fragment2, { children: /* @__PURE__ */ jsx16(AnimatePresence2, { children: isOpen && /* @__PURE__ */ jsxs11(ShadowHost, { mode: "open", id: "idkit-widget", children: [
1980
- /* @__PURE__ */ jsx16(Styles_default, {}),
2084
+ /* @__PURE__ */ jsx15(Dialog.Portal, { forceMount: true, children: /* @__PURE__ */ jsx15(Fragment2, { children: /* @__PURE__ */ jsx15(AnimatePresence2, { children: isOpen && /* @__PURE__ */ jsxs11(ShadowHost, { mode: "open", id: "idkit-widget", children: [
2085
+ /* @__PURE__ */ jsx15(Styles_default, {}),
1981
2086
  /* @__PURE__ */ jsxs11("div", { id: "modal", className: "fixed z-[9999] font-sans", children: [
1982
- /* @__PURE__ */ jsx16(Dialog.Overlay, { asChild: true, children: /* @__PURE__ */ jsx16(
2087
+ /* @__PURE__ */ jsx15(Dialog.Overlay, { asChild: true, children: /* @__PURE__ */ jsx15(
1983
2088
  motion2.div,
1984
2089
  {
1985
2090
  initial: { opacity: 0 },
@@ -1988,15 +2093,15 @@ var IDKitWidget = ({
1988
2093
  className: "fixed inset-0 bg-black/50 backdrop-blur-lg"
1989
2094
  }
1990
2095
  ) }),
1991
- /* @__PURE__ */ jsx16("div", { className: "fixed inset-0 z-[9999] overflow-y-hidden md:overflow-y-auto", children: /* @__PURE__ */ jsxs11("div", { className: "flex min-h-full items-end justify-center text-center md:items-center md:p-4", children: [
1992
- /* @__PURE__ */ jsx16(Dialog.Title, {}),
1993
- /* @__PURE__ */ jsx16(
2096
+ /* @__PURE__ */ jsx15("div", { className: "fixed inset-0 z-[9999] overflow-y-hidden md:overflow-y-auto", children: /* @__PURE__ */ jsxs11("div", { className: "flex min-h-full items-end justify-center text-center md:items-center md:p-4", children: [
2097
+ /* @__PURE__ */ jsx15(Dialog.Title, {}),
2098
+ /* @__PURE__ */ jsx15(
1994
2099
  Dialog.Content,
1995
2100
  {
1996
2101
  asChild: true,
1997
2102
  onPointerDownOutside: avoidDefaultDomBehavior,
1998
2103
  onInteractOutside: avoidDefaultDomBehavior,
1999
- children: /* @__PURE__ */ jsx16(
2104
+ children: /* @__PURE__ */ jsx15(
2000
2105
  motion2.div,
2001
2106
  {
2002
2107
  layout: media == "mobile" ? "position" : true,
@@ -2010,12 +2115,12 @@ var IDKitWidget = ({
2010
2115
  animateMob: { translateY: 0 }
2011
2116
  },
2012
2117
  transition: { layout: { duration: 0.15 } },
2013
- 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",
2118
+ 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]",
2014
2119
  children: /* @__PURE__ */ jsxs11(Toast.Provider, { children: [
2015
- /* @__PURE__ */ jsx16(Toast.Viewport, { className: "flex justify-center" }),
2016
- /* @__PURE__ */ jsx16("div", { className: "mx-6 mb-12 flex items-center justify-between", children: /* @__PURE__ */ jsx16(Dialog.Close, { className: "flex size-11 items-center justify-center rounded-full text-black dark:text-white", children: /* @__PURE__ */ jsx16(XMarkIcon_default, { className: "size-5" }) }) }),
2017
- /* @__PURE__ */ jsx16("div", { className: "relative mx-6 mb-6 flex flex-1 flex-col items-center justify-center", children: StageContent }),
2018
- /* @__PURE__ */ jsx16("div", { className: "flex items-center justify-center border-t border-f5f5f7 p-7 md:rounded-b-2xl", children: /* @__PURE__ */ jsx16(
2120
+ /* @__PURE__ */ jsx15(Toast.Viewport, { className: "flex justify-center" }),
2121
+ /* @__PURE__ */ jsx15("div", { className: "mx-6 flex items-center justify-end", children: /* @__PURE__ */ jsx15(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__ */ jsx15(XMarkIcon_default, { className: "size-4" }) }) }),
2122
+ /* @__PURE__ */ jsx15("div", { className: "relative mx-6 mb-6 flex flex-1 flex-col items-center justify-center", children: StageContent }),
2123
+ /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center border-t border-f5f5f7 p-7 md:rounded-b-2xl", children: /* @__PURE__ */ jsx15(
2019
2124
  "a",
2020
2125
  {
2021
2126
  href: "https://developer.worldcoin.org/privacy-statement",
@@ -2046,7 +2151,7 @@ import { verifyCloudProof } from "@worldcoin/idkit-core/backend";
2046
2151
  import { VerificationLevel as VerificationLevel2, VerificationState as VerificationState3 } from "@worldcoin/idkit-core";
2047
2152
 
2048
2153
  // src/hooks/useSession.ts
2049
- import { useEffect as useEffect7 } from "react";
2154
+ import { useEffect as useEffect8 } from "react";
2050
2155
  import { useShallow } from "zustand/react/shallow";
2051
2156
  import { VerificationState as VerificationState2 } from "@worldcoin/idkit-core";
2052
2157
  import { useWorldBridgeStore as useWorldBridgeStore2 } from "@worldcoin/idkit-core";
@@ -2063,12 +2168,12 @@ function useSession(config) {
2063
2168
  errorCode: state.errorCode
2064
2169
  }))
2065
2170
  );
2066
- useEffect7(() => {
2171
+ useEffect8(() => {
2067
2172
  if (verificationState === VerificationState2.PreparingClient && !connectorURI) {
2068
2173
  void createClient(config);
2069
2174
  }
2070
2175
  }, [verificationState, connectorURI, createClient, config]);
2071
- useEffect7(() => {
2176
+ useEffect8(() => {
2072
2177
  if (TERMINAL_STATES.includes(verificationState)) return;
2073
2178
  const interval = setInterval(() => {
2074
2179
  void pollForUpdates();