@domino-sdk/relay 0.15.0 → 0.17.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.
@@ -2,8 +2,8 @@ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import * as zod from 'zod';
4
4
  import { z } from 'zod';
5
- import { QuestView, QuestController, ProgressObservation, questExperienceSchema, ProgressObserver, ExchangeInput, PhotoSubmission, QuizSubmission, ClaimSubmission, SubmissionDraft } from '../index.js';
6
- import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, i as walletProofSchema, j as AuthProvider, k as AccountConnection, l as referralSummarySchema, m as LeaderboardPage } from '../settings-e0nHA0JA.js';
5
+ import { QuestView, QuestController, ProgressObservation, questExperienceSchema, ProgressObserver, ExchangeInput, PhotoSubmission, QuizSubmission, ClaimSubmission, ValueSubmission, SubmissionDraft } from '../index.js';
6
+ import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, l as walletProofSchema, m as AuthProvider, n as AccountConnection, q as referralSummarySchema, t as LeaderboardPage } from '../submission-input-Cktvl71b.js';
7
7
  import { SubmitInput, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema } from '../schema.js';
8
8
  import { createBrowserRelayClient } from '../browser.js';
9
9
 
@@ -346,6 +346,23 @@ declare function useRelay(): {
346
346
  };
347
347
  connections: ("discord" | "google" | "apple" | "x")[];
348
348
  trigger: {
349
+ kind: "manual";
350
+ input: "text";
351
+ constraints: {
352
+ required: boolean;
353
+ minLength: number;
354
+ maxLength: number;
355
+ };
356
+ actor?: "member" | "staff" | undefined;
357
+ } | {
358
+ kind: "manual";
359
+ input: "url";
360
+ constraints: {
361
+ required: boolean;
362
+ allowedHosts?: string[] | undefined;
363
+ };
364
+ actor?: "member" | "staff" | undefined;
365
+ } | {
349
366
  kind: "manual";
350
367
  input: "quiz" | "photo" | "none";
351
368
  actor?: "member" | "staff" | undefined;
@@ -358,7 +375,7 @@ declare function useRelay(): {
358
375
  };
359
376
  availability: {
360
377
  kind: "available";
361
- input: "quiz" | "photo" | "none";
378
+ input: "url" | "text" | "quiz" | "photo" | "none";
362
379
  } | {
363
380
  kind: "completed";
364
381
  } | {
@@ -441,6 +458,12 @@ declare function useRelay(): {
441
458
  })[] | null;
442
459
  createdAt: number;
443
460
  input?: {
461
+ kind: "text";
462
+ value: string;
463
+ } | {
464
+ kind: "url";
465
+ value: string;
466
+ } | {
444
467
  kind: "quiz";
445
468
  answers: {
446
469
  [k: string]: string;
@@ -449,7 +472,7 @@ declare function useRelay(): {
449
472
  } | undefined;
450
473
  } | null;
451
474
  release: string;
452
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
475
+ interaction: "url" | "text" | "quiz" | "staff" | "photo" | "automatic" | "claim";
453
476
  lifecycle: "paused" | "active" | "archived";
454
477
  rewards: {
455
478
  label: string;
@@ -526,6 +549,12 @@ declare function useRelay(): {
526
549
  })[] | null;
527
550
  createdAt: number;
528
551
  input?: {
552
+ kind: "text";
553
+ value: string;
554
+ } | {
555
+ kind: "url";
556
+ value: string;
557
+ } | {
529
558
  kind: "quiz";
530
559
  answers: {
531
560
  [k: string]: string;
@@ -560,6 +589,23 @@ declare function useRelay(): {
560
589
  };
561
590
  connections: ("discord" | "google" | "apple" | "x")[];
562
591
  trigger: {
592
+ kind: "manual";
593
+ input: "text";
594
+ constraints: {
595
+ required: boolean;
596
+ minLength: number;
597
+ maxLength: number;
598
+ };
599
+ actor?: "member" | "staff" | undefined;
600
+ } | {
601
+ kind: "manual";
602
+ input: "url";
603
+ constraints: {
604
+ required: boolean;
605
+ allowedHosts?: string[] | undefined;
606
+ };
607
+ actor?: "member" | "staff" | undefined;
608
+ } | {
563
609
  kind: "manual";
564
610
  input: "quiz" | "photo" | "none";
565
611
  actor?: "member" | "staff" | undefined;
@@ -572,7 +618,7 @@ declare function useRelay(): {
572
618
  };
573
619
  availability: {
574
620
  kind: "available";
575
- input: "quiz" | "photo" | "none";
621
+ input: "url" | "text" | "quiz" | "photo" | "none";
576
622
  } | {
577
623
  kind: "completed";
578
624
  } | {
@@ -655,6 +701,12 @@ declare function useRelay(): {
655
701
  })[] | null;
656
702
  createdAt: number;
657
703
  input?: {
704
+ kind: "text";
705
+ value: string;
706
+ } | {
707
+ kind: "url";
708
+ value: string;
709
+ } | {
658
710
  kind: "quiz";
659
711
  answers: {
660
712
  [k: string]: string;
@@ -663,7 +715,7 @@ declare function useRelay(): {
663
715
  } | undefined;
664
716
  } | null;
665
717
  release: string;
666
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
718
+ interaction: "url" | "text" | "quiz" | "staff" | "photo" | "automatic" | "claim";
667
719
  lifecycle: "paused" | "active" | "archived";
668
720
  rewards: {
669
721
  label: string;
@@ -728,6 +780,23 @@ declare function useRelay(): {
728
780
  };
729
781
  connections: ("discord" | "google" | "apple" | "x")[];
730
782
  trigger: {
783
+ kind: "manual";
784
+ input: "text";
785
+ constraints: {
786
+ required: boolean;
787
+ minLength: number;
788
+ maxLength: number;
789
+ };
790
+ actor?: "member" | "staff" | undefined;
791
+ } | {
792
+ kind: "manual";
793
+ input: "url";
794
+ constraints: {
795
+ required: boolean;
796
+ allowedHosts?: string[] | undefined;
797
+ };
798
+ actor?: "member" | "staff" | undefined;
799
+ } | {
731
800
  kind: "manual";
732
801
  input: "quiz" | "photo" | "none";
733
802
  actor?: "member" | "staff" | undefined;
@@ -740,7 +809,7 @@ declare function useRelay(): {
740
809
  };
741
810
  availability: {
742
811
  kind: "available";
743
- input: "quiz" | "photo" | "none";
812
+ input: "url" | "text" | "quiz" | "photo" | "none";
744
813
  } | {
745
814
  kind: "completed";
746
815
  } | {
@@ -823,6 +892,12 @@ declare function useRelay(): {
823
892
  })[] | null;
824
893
  createdAt: number;
825
894
  input?: {
895
+ kind: "text";
896
+ value: string;
897
+ } | {
898
+ kind: "url";
899
+ value: string;
900
+ } | {
826
901
  kind: "quiz";
827
902
  answers: {
828
903
  [k: string]: string;
@@ -831,7 +906,7 @@ declare function useRelay(): {
831
906
  } | undefined;
832
907
  } | null;
833
908
  release: string;
834
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
909
+ interaction: "url" | "text" | "quiz" | "staff" | "photo" | "automatic" | "claim";
835
910
  lifecycle: "paused" | "active" | "archived";
836
911
  rewards: {
837
912
  label: string;
@@ -899,6 +974,23 @@ declare function useRelay(): {
899
974
  };
900
975
  connections: ("discord" | "google" | "apple" | "x")[];
901
976
  trigger: {
977
+ kind: "manual";
978
+ input: "text";
979
+ constraints: {
980
+ required: boolean;
981
+ minLength: number;
982
+ maxLength: number;
983
+ };
984
+ actor?: "member" | "staff" | undefined;
985
+ } | {
986
+ kind: "manual";
987
+ input: "url";
988
+ constraints: {
989
+ required: boolean;
990
+ allowedHosts?: string[] | undefined;
991
+ };
992
+ actor?: "member" | "staff" | undefined;
993
+ } | {
902
994
  kind: "manual";
903
995
  input: "quiz" | "photo" | "none";
904
996
  actor?: "member" | "staff" | undefined;
@@ -911,7 +1003,7 @@ declare function useRelay(): {
911
1003
  };
912
1004
  availability: {
913
1005
  kind: "available";
914
- input: "quiz" | "photo" | "none";
1006
+ input: "url" | "text" | "quiz" | "photo" | "none";
915
1007
  } | {
916
1008
  kind: "completed";
917
1009
  } | {
@@ -994,6 +1086,12 @@ declare function useRelay(): {
994
1086
  })[] | null;
995
1087
  createdAt: number;
996
1088
  input?: {
1089
+ kind: "text";
1090
+ value: string;
1091
+ } | {
1092
+ kind: "url";
1093
+ value: string;
1094
+ } | {
997
1095
  kind: "quiz";
998
1096
  answers: {
999
1097
  [k: string]: string;
@@ -1002,7 +1100,7 @@ declare function useRelay(): {
1002
1100
  } | undefined;
1003
1101
  } | null;
1004
1102
  release: string;
1005
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
1103
+ interaction: "url" | "text" | "quiz" | "staff" | "photo" | "automatic" | "claim";
1006
1104
  lifecycle: "paused" | "active" | "archived";
1007
1105
  rewards: {
1008
1106
  label: string;
@@ -1180,6 +1278,12 @@ declare function useRelay(): {
1180
1278
  recoverPrevious?: boolean;
1181
1279
  repeatable?: boolean;
1182
1280
  }): Promise<ClaimSubmission>;
1281
+ (quest: string, options: {
1282
+ input: "text" | "url";
1283
+ release?: string;
1284
+ recoverPrevious?: boolean;
1285
+ repeatable?: boolean;
1286
+ }): Promise<ValueSubmission>;
1183
1287
  };
1184
1288
  collectionPass: (entitlement: string, session: string) => Promise<{
1185
1289
  code: string;
@@ -1226,6 +1330,12 @@ declare function useRelay(): {
1226
1330
  })[] | null;
1227
1331
  createdAt: number;
1228
1332
  input?: {
1333
+ kind: "text";
1334
+ value: string;
1335
+ } | {
1336
+ kind: "url";
1337
+ value: string;
1338
+ } | {
1229
1339
  kind: "quiz";
1230
1340
  answers: {
1231
1341
  [k: string]: string;
@@ -1260,6 +1370,23 @@ declare function useRelay(): {
1260
1370
  };
1261
1371
  connections: ("discord" | "google" | "apple" | "x")[];
1262
1372
  trigger: {
1373
+ kind: "manual";
1374
+ input: "text";
1375
+ constraints: {
1376
+ required: boolean;
1377
+ minLength: number;
1378
+ maxLength: number;
1379
+ };
1380
+ actor?: "member" | "staff" | undefined;
1381
+ } | {
1382
+ kind: "manual";
1383
+ input: "url";
1384
+ constraints: {
1385
+ required: boolean;
1386
+ allowedHosts?: string[] | undefined;
1387
+ };
1388
+ actor?: "member" | "staff" | undefined;
1389
+ } | {
1263
1390
  kind: "manual";
1264
1391
  input: "quiz" | "photo" | "none";
1265
1392
  actor?: "member" | "staff" | undefined;
@@ -1272,7 +1399,7 @@ declare function useRelay(): {
1272
1399
  };
1273
1400
  availability: {
1274
1401
  kind: "available";
1275
- input: "quiz" | "photo" | "none";
1402
+ input: "url" | "text" | "quiz" | "photo" | "none";
1276
1403
  } | {
1277
1404
  kind: "completed";
1278
1405
  } | {
@@ -1355,6 +1482,12 @@ declare function useRelay(): {
1355
1482
  })[] | null;
1356
1483
  createdAt: number;
1357
1484
  input?: {
1485
+ kind: "text";
1486
+ value: string;
1487
+ } | {
1488
+ kind: "url";
1489
+ value: string;
1490
+ } | {
1358
1491
  kind: "quiz";
1359
1492
  answers: {
1360
1493
  [k: string]: string;
@@ -1532,6 +1665,12 @@ declare function useRelay(): {
1532
1665
  })[] | null;
1533
1666
  createdAt: number;
1534
1667
  input?: {
1668
+ kind: "text";
1669
+ value: string;
1670
+ } | {
1671
+ kind: "url";
1672
+ value: string;
1673
+ } | {
1535
1674
  kind: "quiz";
1536
1675
  answers: {
1537
1676
  [k: string]: string;
@@ -1591,6 +1730,12 @@ declare function useRelay(): {
1591
1730
  })[] | null;
1592
1731
  createdAt: number;
1593
1732
  input?: {
1733
+ kind: "text";
1734
+ value: string;
1735
+ } | {
1736
+ kind: "url";
1737
+ value: string;
1738
+ } | {
1594
1739
  kind: "quiz";
1595
1740
  answers: {
1596
1741
  [k: string]: string;
@@ -1760,6 +1905,23 @@ declare function useRelay(): {
1760
1905
  })[];
1761
1906
  humanReview: boolean;
1762
1907
  trigger: {
1908
+ kind: "manual";
1909
+ input: "text";
1910
+ constraints: {
1911
+ required: boolean;
1912
+ minLength: number;
1913
+ maxLength: number;
1914
+ };
1915
+ actor?: "member" | "staff" | undefined;
1916
+ } | {
1917
+ kind: "manual";
1918
+ input: "url";
1919
+ constraints: {
1920
+ required: boolean;
1921
+ allowedHosts?: string[] | undefined;
1922
+ };
1923
+ actor?: "member" | "staff" | undefined;
1924
+ } | {
1763
1925
  kind: "manual";
1764
1926
  input: "quiz" | "photo" | "none";
1765
1927
  actor?: "member" | "staff" | undefined;
@@ -1927,6 +2089,23 @@ declare function useRelay(): {
1927
2089
  })[];
1928
2090
  humanReview: boolean;
1929
2091
  trigger: {
2092
+ kind: "manual";
2093
+ input: "text";
2094
+ constraints: {
2095
+ required: boolean;
2096
+ minLength: number;
2097
+ maxLength: number;
2098
+ };
2099
+ actor?: "member" | "staff" | undefined;
2100
+ } | {
2101
+ kind: "manual";
2102
+ input: "url";
2103
+ constraints: {
2104
+ required: boolean;
2105
+ allowedHosts?: string[] | undefined;
2106
+ };
2107
+ actor?: "member" | "staff" | undefined;
2108
+ } | {
1930
2109
  kind: "manual";
1931
2110
  input: "quiz" | "photo" | "none";
1932
2111
  actor?: "member" | "staff" | undefined;
@@ -2093,6 +2272,23 @@ declare function useRelay(): {
2093
2272
  })[];
2094
2273
  humanReview: boolean;
2095
2274
  trigger: {
2275
+ kind: "manual";
2276
+ input: "text";
2277
+ constraints: {
2278
+ required: boolean;
2279
+ minLength: number;
2280
+ maxLength: number;
2281
+ };
2282
+ actor?: "member" | "staff" | undefined;
2283
+ } | {
2284
+ kind: "manual";
2285
+ input: "url";
2286
+ constraints: {
2287
+ required: boolean;
2288
+ allowedHosts?: string[] | undefined;
2289
+ };
2290
+ actor?: "member" | "staff" | undefined;
2291
+ } | {
2096
2292
  kind: "manual";
2097
2293
  input: "quiz" | "photo" | "none";
2098
2294
  actor?: "member" | "staff" | undefined;
@@ -2281,6 +2477,12 @@ declare function useRelay(): {
2281
2477
  })[] | null;
2282
2478
  createdAt: number;
2283
2479
  input?: {
2480
+ kind: "text";
2481
+ value: string;
2482
+ } | {
2483
+ kind: "url";
2484
+ value: string;
2485
+ } | {
2284
2486
  kind: "quiz";
2285
2487
  answers: {
2286
2488
  [k: string]: string;
@@ -2434,6 +2636,23 @@ declare function useRelay(): {
2434
2636
  })[];
2435
2637
  humanReview: boolean;
2436
2638
  trigger: {
2639
+ kind: "manual";
2640
+ input: "text";
2641
+ constraints: {
2642
+ required: boolean;
2643
+ minLength: number;
2644
+ maxLength: number;
2645
+ };
2646
+ actor?: "member" | "staff" | undefined;
2647
+ } | {
2648
+ kind: "manual";
2649
+ input: "url";
2650
+ constraints: {
2651
+ required: boolean;
2652
+ allowedHosts?: string[] | undefined;
2653
+ };
2654
+ actor?: "member" | "staff" | undefined;
2655
+ } | {
2437
2656
  kind: "manual";
2438
2657
  input: "quiz" | "photo" | "none";
2439
2658
  actor?: "member" | "staff" | undefined;
@@ -2629,6 +2848,23 @@ declare function useRelay(): {
2629
2848
  })[];
2630
2849
  humanReview: boolean;
2631
2850
  trigger: {
2851
+ kind: "manual";
2852
+ input: "text";
2853
+ constraints: {
2854
+ required: boolean;
2855
+ minLength: number;
2856
+ maxLength: number;
2857
+ };
2858
+ actor?: "member" | "staff" | undefined;
2859
+ } | {
2860
+ kind: "manual";
2861
+ input: "url";
2862
+ constraints: {
2863
+ required: boolean;
2864
+ allowedHosts?: string[] | undefined;
2865
+ };
2866
+ actor?: "member" | "staff" | undefined;
2867
+ } | {
2632
2868
  kind: "manual";
2633
2869
  input: "quiz" | "photo" | "none";
2634
2870
  actor?: "member" | "staff" | undefined;
@@ -2721,6 +2957,23 @@ declare function useRelay(): {
2721
2957
  };
2722
2958
  connections: ("discord" | "google" | "apple" | "x")[];
2723
2959
  trigger: {
2960
+ kind: "manual";
2961
+ input: "text";
2962
+ constraints: {
2963
+ required: boolean;
2964
+ minLength: number;
2965
+ maxLength: number;
2966
+ };
2967
+ actor?: "member" | "staff" | undefined;
2968
+ } | {
2969
+ kind: "manual";
2970
+ input: "url";
2971
+ constraints: {
2972
+ required: boolean;
2973
+ allowedHosts?: string[] | undefined;
2974
+ };
2975
+ actor?: "member" | "staff" | undefined;
2976
+ } | {
2724
2977
  kind: "manual";
2725
2978
  input: "quiz" | "photo" | "none";
2726
2979
  actor?: "member" | "staff" | undefined;
@@ -2733,7 +2986,7 @@ declare function useRelay(): {
2733
2986
  };
2734
2987
  availability: {
2735
2988
  kind: "available";
2736
- input: "quiz" | "photo" | "none";
2989
+ input: "url" | "text" | "quiz" | "photo" | "none";
2737
2990
  } | {
2738
2991
  kind: "completed";
2739
2992
  } | {
@@ -2816,6 +3069,12 @@ declare function useRelay(): {
2816
3069
  })[] | null;
2817
3070
  createdAt: number;
2818
3071
  input?: {
3072
+ kind: "text";
3073
+ value: string;
3074
+ } | {
3075
+ kind: "url";
3076
+ value: string;
3077
+ } | {
2819
3078
  kind: "quiz";
2820
3079
  answers: {
2821
3080
  [k: string]: string;
@@ -3137,6 +3396,12 @@ declare function useRelay(): {
3137
3396
  })[] | null;
3138
3397
  createdAt: number;
3139
3398
  input?: {
3399
+ kind: "text";
3400
+ value: string;
3401
+ } | {
3402
+ kind: "url";
3403
+ value: string;
3404
+ } | {
3140
3405
  kind: "quiz";
3141
3406
  answers: {
3142
3407
  [k: string]: string;
@@ -3184,6 +3449,12 @@ declare function useRelay(): {
3184
3449
  })[] | null;
3185
3450
  createdAt: number;
3186
3451
  input?: {
3452
+ kind: "text";
3453
+ value: string;
3454
+ } | {
3455
+ kind: "url";
3456
+ value: string;
3457
+ } | {
3187
3458
  kind: "quiz";
3188
3459
  answers: {
3189
3460
  [k: string]: string;
@@ -3236,6 +3507,12 @@ declare function useRelay(): {
3236
3507
  })[] | null;
3237
3508
  createdAt: number;
3238
3509
  input?: {
3510
+ kind: "text";
3511
+ value: string;
3512
+ } | {
3513
+ kind: "url";
3514
+ value: string;
3515
+ } | {
3239
3516
  kind: "quiz";
3240
3517
  answers: {
3241
3518
  [k: string]: string;
@@ -3343,6 +3620,9 @@ type ExperienceContext = {
3343
3620
  declare function useExperience(): ExperienceContext;
3344
3621
 
3345
3622
  type QuestInput = {
3623
+ kind: "text" | "url";
3624
+ value: string;
3625
+ } | {
3346
3626
  kind: "claim";
3347
3627
  } | {
3348
3628
  kind: "quiz";
@@ -3391,6 +3671,23 @@ declare function useQuest(observed: QuestView): {
3391
3671
  };
3392
3672
  connections: ("discord" | "google" | "apple" | "x")[];
3393
3673
  trigger: {
3674
+ kind: "manual";
3675
+ input: "text";
3676
+ constraints: {
3677
+ required: boolean;
3678
+ minLength: number;
3679
+ maxLength: number;
3680
+ };
3681
+ actor?: "member" | "staff" | undefined;
3682
+ } | {
3683
+ kind: "manual";
3684
+ input: "url";
3685
+ constraints: {
3686
+ required: boolean;
3687
+ allowedHosts?: string[] | undefined;
3688
+ };
3689
+ actor?: "member" | "staff" | undefined;
3690
+ } | {
3394
3691
  kind: "manual";
3395
3692
  input: "quiz" | "photo" | "none";
3396
3693
  actor?: "member" | "staff" | undefined;
@@ -3403,7 +3700,7 @@ declare function useQuest(observed: QuestView): {
3403
3700
  };
3404
3701
  availability: {
3405
3702
  kind: "available";
3406
- input: "quiz" | "photo" | "none";
3703
+ input: "url" | "text" | "quiz" | "photo" | "none";
3407
3704
  } | {
3408
3705
  kind: "completed";
3409
3706
  } | {
@@ -3486,6 +3783,12 @@ declare function useQuest(observed: QuestView): {
3486
3783
  })[] | null;
3487
3784
  createdAt: number;
3488
3785
  input?: {
3786
+ kind: "text";
3787
+ value: string;
3788
+ } | {
3789
+ kind: "url";
3790
+ value: string;
3791
+ } | {
3489
3792
  kind: "quiz";
3490
3793
  answers: {
3491
3794
  [k: string]: string;
@@ -3494,7 +3797,7 @@ declare function useQuest(observed: QuestView): {
3494
3797
  } | undefined;
3495
3798
  } | null;
3496
3799
  release: string;
3497
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
3800
+ interaction: "url" | "text" | "quiz" | "staff" | "photo" | "automatic" | "claim";
3498
3801
  lifecycle: "paused" | "active" | "archived";
3499
3802
  rewards: {
3500
3803
  label: string;
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  createBrowserRelayClient
3
- } from "../chunk-CQ5YSQQE.js";
3
+ } from "../chunk-MK2E36HR.js";
4
4
  import {
5
5
  RelayError
6
- } from "../chunk-YZJOZL4V.js";
7
- import "../chunk-CJARNIVP.js";
8
- import "../chunk-I2CCMGN6.js";
9
- import "../chunk-FUQYKTOJ.js";
6
+ } from "../chunk-TI22MU2X.js";
7
+ import "../chunk-XNS25KST.js";
8
+ import "../chunk-GEJK7LMK.js";
9
+ import "../chunk-YUAE6PFY.js";
10
10
 
11
11
  // src/react/provider.tsx
12
12
  import { useState as useState3 } from "react";
@@ -498,6 +498,9 @@ function useQuest(observed) {
498
498
  }
499
499
  }
500
500
  const controller = await relay.quests.open(view);
501
+ if ((controller.kind === "text" || controller.kind === "url") && input.kind === controller.kind) {
502
+ return controller.submit(input.value);
503
+ }
501
504
  if (controller.kind === "claim" && input.kind === "claim") {
502
505
  return controller.submit();
503
506
  }