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