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