@voxket-ai/events-sdk 1.0.27 → 1.0.29
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/dist/api/ApiClient.d.ts +1 -0
- package/dist/components/CustomQrPayment.d.ts +21 -0
- package/dist/components/DynamicForm.d.ts +1 -1
- package/dist/components/FieldControl.d.ts +13 -0
- package/dist/events-sdk.js +1100 -794
- package/dist/events-sdk.umd.cjs +4 -4
- package/dist/utils/formUtils.d.ts +3 -0
- package/package.json +1 -1
package/dist/events-sdk.js
CHANGED
|
@@ -94,6 +94,16 @@ var g = class {
|
|
|
94
94
|
})
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
|
+
async submitCustomQrPayment(e, t) {
|
|
98
|
+
return this.fetchApi("/api/payments/custom-qr/", {
|
|
99
|
+
method: "POST",
|
|
100
|
+
body: JSON.stringify({
|
|
101
|
+
slug: this.slug,
|
|
102
|
+
registration_number: e,
|
|
103
|
+
answers: t
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
}
|
|
97
107
|
async trackProgress(e) {
|
|
98
108
|
return this.fetchApi(`/api/public/events/${this.slug}/track/`, {
|
|
99
109
|
method: "POST",
|
|
@@ -454,7 +464,7 @@ var M = {
|
|
|
454
464
|
}]]
|
|
455
465
|
};
|
|
456
466
|
M.node;
|
|
457
|
-
var te = j(M),
|
|
467
|
+
var te = j(M), N = {
|
|
458
468
|
name: "arrow-right",
|
|
459
469
|
size: 24,
|
|
460
470
|
node: [["path", {
|
|
@@ -465,8 +475,8 @@ var te = j(M), ne = {
|
|
|
465
475
|
key: "xquz4c"
|
|
466
476
|
}]]
|
|
467
477
|
};
|
|
468
|
-
|
|
469
|
-
var
|
|
478
|
+
N.node;
|
|
479
|
+
var ne = j(N), re = {
|
|
470
480
|
name: "briefcase",
|
|
471
481
|
size: 24,
|
|
472
482
|
node: [["path", {
|
|
@@ -481,8 +491,8 @@ var re = j(ne), N = {
|
|
|
481
491
|
key: "i6l2r4"
|
|
482
492
|
}]]
|
|
483
493
|
};
|
|
484
|
-
|
|
485
|
-
var
|
|
494
|
+
re.node;
|
|
495
|
+
var P = j(re), ie = {
|
|
486
496
|
name: "building-complex",
|
|
487
497
|
size: 24,
|
|
488
498
|
node: [
|
|
@@ -509,8 +519,8 @@ var ie = j(N), P = {
|
|
|
509
519
|
],
|
|
510
520
|
aliases: ["building-2"]
|
|
511
521
|
};
|
|
512
|
-
|
|
513
|
-
var ae = j(
|
|
522
|
+
ie.node;
|
|
523
|
+
var ae = j(ie), oe = {
|
|
514
524
|
name: "check",
|
|
515
525
|
size: 24,
|
|
516
526
|
node: [["path", {
|
|
@@ -556,7 +566,7 @@ var le = j(ce), ue = {
|
|
|
556
566
|
aliases: ["alert-circle"]
|
|
557
567
|
};
|
|
558
568
|
ue.node;
|
|
559
|
-
var
|
|
569
|
+
var F = j(ue), I = {
|
|
560
570
|
name: "circle-check-big",
|
|
561
571
|
size: 24,
|
|
562
572
|
node: [["path", {
|
|
@@ -568,8 +578,8 @@ var de = j(ue), fe = {
|
|
|
568
578
|
}]],
|
|
569
579
|
aliases: ["check-circle"]
|
|
570
580
|
};
|
|
571
|
-
|
|
572
|
-
var
|
|
581
|
+
I.node;
|
|
582
|
+
var de = j(I), fe = {
|
|
573
583
|
name: "clipboard-list",
|
|
574
584
|
size: 24,
|
|
575
585
|
node: [
|
|
@@ -604,8 +614,8 @@ var F = j(fe), I = {
|
|
|
604
614
|
}]
|
|
605
615
|
]
|
|
606
616
|
};
|
|
607
|
-
|
|
608
|
-
var pe = j(
|
|
617
|
+
fe.node;
|
|
618
|
+
var pe = j(fe), me = {
|
|
609
619
|
name: "clock",
|
|
610
620
|
size: 24,
|
|
611
621
|
node: [["circle", {
|
|
@@ -618,8 +628,8 @@ var pe = j(I), L = {
|
|
|
618
628
|
key: "mmk7yg"
|
|
619
629
|
}]]
|
|
620
630
|
};
|
|
621
|
-
|
|
622
|
-
var
|
|
631
|
+
me.node;
|
|
632
|
+
var he = j(me), ge = {
|
|
623
633
|
name: "copy",
|
|
624
634
|
size: 24,
|
|
625
635
|
node: [["rect", {
|
|
@@ -635,8 +645,8 @@ var me = j(L), R = {
|
|
|
635
645
|
key: "zix9uf"
|
|
636
646
|
}]]
|
|
637
647
|
};
|
|
638
|
-
|
|
639
|
-
var
|
|
648
|
+
ge.node;
|
|
649
|
+
var _e = j(ge), L = {
|
|
640
650
|
name: "credit-card",
|
|
641
651
|
size: 24,
|
|
642
652
|
node: [
|
|
@@ -661,8 +671,8 @@ var he = j(R), ge = {
|
|
|
661
671
|
}]
|
|
662
672
|
]
|
|
663
673
|
};
|
|
664
|
-
|
|
665
|
-
var
|
|
674
|
+
L.node;
|
|
675
|
+
var ve = j(L), ye = {
|
|
666
676
|
name: "download",
|
|
667
677
|
size: 24,
|
|
668
678
|
node: [
|
|
@@ -680,8 +690,8 @@ var _e = j(ge), z = {
|
|
|
680
690
|
}]
|
|
681
691
|
]
|
|
682
692
|
};
|
|
683
|
-
|
|
684
|
-
var
|
|
693
|
+
ye.node;
|
|
694
|
+
var be = j(ye), R = {
|
|
685
695
|
name: "external-link",
|
|
686
696
|
size: 24,
|
|
687
697
|
node: [
|
|
@@ -699,8 +709,8 @@ var ve = j(z), ye = {
|
|
|
699
709
|
}]
|
|
700
710
|
]
|
|
701
711
|
};
|
|
702
|
-
|
|
703
|
-
var
|
|
712
|
+
R.node;
|
|
713
|
+
var xe = j(R), Se = {
|
|
704
714
|
name: "file-text",
|
|
705
715
|
size: 24,
|
|
706
716
|
node: [
|
|
@@ -726,8 +736,8 @@ var be = j(ye), B = {
|
|
|
726
736
|
}]
|
|
727
737
|
]
|
|
728
738
|
};
|
|
729
|
-
|
|
730
|
-
var
|
|
739
|
+
Se.node;
|
|
740
|
+
var Ce = j(Se), z = {
|
|
731
741
|
name: "folder-open",
|
|
732
742
|
size: 24,
|
|
733
743
|
node: [["path", {
|
|
@@ -735,8 +745,8 @@ var xe = j(B), Se = {
|
|
|
735
745
|
key: "usdka0"
|
|
736
746
|
}]]
|
|
737
747
|
};
|
|
738
|
-
|
|
739
|
-
var
|
|
748
|
+
z.node;
|
|
749
|
+
var we = j(z), Te = {
|
|
740
750
|
name: "graduation-cap",
|
|
741
751
|
size: 24,
|
|
742
752
|
node: [
|
|
@@ -754,8 +764,8 @@ var Ce = j(Se), we = {
|
|
|
754
764
|
}]
|
|
755
765
|
]
|
|
756
766
|
};
|
|
757
|
-
|
|
758
|
-
var
|
|
767
|
+
Te.node;
|
|
768
|
+
var Ee = j(Te), B = {
|
|
759
769
|
name: "id-card",
|
|
760
770
|
size: 24,
|
|
761
771
|
node: [
|
|
@@ -787,8 +797,8 @@ var V = j(we), H = {
|
|
|
787
797
|
}]
|
|
788
798
|
]
|
|
789
799
|
};
|
|
790
|
-
|
|
791
|
-
var
|
|
800
|
+
B.node;
|
|
801
|
+
var De = j(B), Oe = {
|
|
792
802
|
name: "info",
|
|
793
803
|
size: 24,
|
|
794
804
|
node: [
|
|
@@ -808,8 +818,8 @@ var U = j(H), W = {
|
|
|
808
818
|
}]
|
|
809
819
|
]
|
|
810
820
|
};
|
|
811
|
-
|
|
812
|
-
var
|
|
821
|
+
Oe.node;
|
|
822
|
+
var ke = j(Oe), Ae = {
|
|
813
823
|
name: "key-round",
|
|
814
824
|
size: 24,
|
|
815
825
|
node: [["path", {
|
|
@@ -823,8 +833,8 @@ var G = j(W), Te = {
|
|
|
823
833
|
key: "w0ekpg"
|
|
824
834
|
}]]
|
|
825
835
|
};
|
|
826
|
-
|
|
827
|
-
var
|
|
836
|
+
Ae.node;
|
|
837
|
+
var V = j(Ae), H = {
|
|
828
838
|
name: "key",
|
|
829
839
|
size: 24,
|
|
830
840
|
node: [
|
|
@@ -844,8 +854,18 @@ var Ee = j(Te), K = {
|
|
|
844
854
|
}]
|
|
845
855
|
]
|
|
846
856
|
};
|
|
847
|
-
|
|
848
|
-
var
|
|
857
|
+
H.node;
|
|
858
|
+
var U = j(H), W = {
|
|
859
|
+
name: "loader-circle",
|
|
860
|
+
size: 24,
|
|
861
|
+
node: [["path", {
|
|
862
|
+
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
863
|
+
key: "13zald"
|
|
864
|
+
}]],
|
|
865
|
+
aliases: ["loader-2"]
|
|
866
|
+
};
|
|
867
|
+
W.node;
|
|
868
|
+
var G = j(W), je = {
|
|
849
869
|
name: "lock",
|
|
850
870
|
size: 24,
|
|
851
871
|
node: [["rect", {
|
|
@@ -861,8 +881,8 @@ var q = j(K), J = {
|
|
|
861
881
|
key: "fwvmzm"
|
|
862
882
|
}]]
|
|
863
883
|
};
|
|
864
|
-
|
|
865
|
-
var
|
|
884
|
+
je.node;
|
|
885
|
+
var Me = j(je), K = {
|
|
866
886
|
name: "log-in",
|
|
867
887
|
size: 24,
|
|
868
888
|
node: [
|
|
@@ -880,8 +900,8 @@ var De = j(J), Y = {
|
|
|
880
900
|
}]
|
|
881
901
|
]
|
|
882
902
|
};
|
|
883
|
-
|
|
884
|
-
var
|
|
903
|
+
K.node;
|
|
904
|
+
var Ne = j(K), q = {
|
|
885
905
|
name: "log-out",
|
|
886
906
|
size: 24,
|
|
887
907
|
node: [
|
|
@@ -899,8 +919,8 @@ var Oe = j(Y), X = {
|
|
|
899
919
|
}]
|
|
900
920
|
]
|
|
901
921
|
};
|
|
902
|
-
|
|
903
|
-
var
|
|
922
|
+
q.node;
|
|
923
|
+
var J = j(q), Pe = {
|
|
904
924
|
name: "mail",
|
|
905
925
|
size: 24,
|
|
906
926
|
node: [["path", {
|
|
@@ -915,8 +935,8 @@ var ke = j(X), Ae = {
|
|
|
915
935
|
key: "izxlao"
|
|
916
936
|
}]]
|
|
917
937
|
};
|
|
918
|
-
|
|
919
|
-
var
|
|
938
|
+
Pe.node;
|
|
939
|
+
var Y = j(Pe), X = {
|
|
920
940
|
name: "map-pin",
|
|
921
941
|
size: 24,
|
|
922
942
|
node: [["path", {
|
|
@@ -929,8 +949,8 @@ var je = j(Ae), Me = {
|
|
|
929
949
|
key: "ilqhr7"
|
|
930
950
|
}]]
|
|
931
951
|
};
|
|
932
|
-
|
|
933
|
-
var
|
|
952
|
+
X.node;
|
|
953
|
+
var Fe = j(X), Ie = {
|
|
934
954
|
name: "maximize-2",
|
|
935
955
|
size: 24,
|
|
936
956
|
node: [
|
|
@@ -952,8 +972,8 @@ var Ne = j(Me), Pe = {
|
|
|
952
972
|
}]
|
|
953
973
|
]
|
|
954
974
|
};
|
|
955
|
-
|
|
956
|
-
var
|
|
975
|
+
Ie.node;
|
|
976
|
+
var Le = j(Ie), Re = {
|
|
957
977
|
name: "minimize-2",
|
|
958
978
|
size: 24,
|
|
959
979
|
node: [
|
|
@@ -975,8 +995,8 @@ var Fe = j(Pe), Ie = {
|
|
|
975
995
|
}]
|
|
976
996
|
]
|
|
977
997
|
};
|
|
978
|
-
|
|
979
|
-
var
|
|
998
|
+
Re.node;
|
|
999
|
+
var ze = j(Re), Be = {
|
|
980
1000
|
name: "move",
|
|
981
1001
|
size: 24,
|
|
982
1002
|
node: [
|
|
@@ -1006,8 +1026,8 @@ var Le = j(Ie), Re = {
|
|
|
1006
1026
|
}]
|
|
1007
1027
|
]
|
|
1008
1028
|
};
|
|
1009
|
-
|
|
1010
|
-
var
|
|
1029
|
+
Be.node;
|
|
1030
|
+
var Ve = j(Be), He = {
|
|
1011
1031
|
name: "package-check",
|
|
1012
1032
|
size: 24,
|
|
1013
1033
|
node: [
|
|
@@ -1033,8 +1053,8 @@ var ze = j(Re), Be = {
|
|
|
1033
1053
|
}]
|
|
1034
1054
|
]
|
|
1035
1055
|
};
|
|
1036
|
-
|
|
1037
|
-
var
|
|
1056
|
+
He.node;
|
|
1057
|
+
var Ue = j(He), We = {
|
|
1038
1058
|
name: "phone",
|
|
1039
1059
|
size: 24,
|
|
1040
1060
|
node: [["path", {
|
|
@@ -1042,8 +1062,8 @@ var Z = j(Be), Q = {
|
|
|
1042
1062
|
key: "9njp5v"
|
|
1043
1063
|
}]]
|
|
1044
1064
|
};
|
|
1045
|
-
|
|
1046
|
-
var
|
|
1065
|
+
We.node;
|
|
1066
|
+
var Ge = j(We), Ke = {
|
|
1047
1067
|
name: "receipt",
|
|
1048
1068
|
size: 24,
|
|
1049
1069
|
node: [
|
|
@@ -1061,8 +1081,8 @@ var Ve = j(Q), He = {
|
|
|
1061
1081
|
}]
|
|
1062
1082
|
]
|
|
1063
1083
|
};
|
|
1064
|
-
|
|
1065
|
-
var
|
|
1084
|
+
Ke.node;
|
|
1085
|
+
var qe = j(Ke), Je = {
|
|
1066
1086
|
name: "search",
|
|
1067
1087
|
size: 24,
|
|
1068
1088
|
node: [["path", {
|
|
@@ -1075,8 +1095,8 @@ var Ue = j(He), We = {
|
|
|
1075
1095
|
key: "4ej97u"
|
|
1076
1096
|
}]]
|
|
1077
1097
|
};
|
|
1078
|
-
|
|
1079
|
-
var
|
|
1098
|
+
Je.node;
|
|
1099
|
+
var Ye = j(Je), Z = {
|
|
1080
1100
|
name: "sparkles",
|
|
1081
1101
|
size: 24,
|
|
1082
1102
|
node: [
|
|
@@ -1101,8 +1121,8 @@ var Ge = j(We), Ke = {
|
|
|
1101
1121
|
],
|
|
1102
1122
|
aliases: ["stars"]
|
|
1103
1123
|
};
|
|
1104
|
-
|
|
1105
|
-
var
|
|
1124
|
+
Z.node;
|
|
1125
|
+
var Xe = j(Z), Ze = {
|
|
1106
1126
|
name: "ticket",
|
|
1107
1127
|
size: 24,
|
|
1108
1128
|
node: [
|
|
@@ -1124,8 +1144,8 @@ var qe = j(Ke), Je = {
|
|
|
1124
1144
|
}]
|
|
1125
1145
|
]
|
|
1126
1146
|
};
|
|
1127
|
-
|
|
1128
|
-
var
|
|
1147
|
+
Ze.node;
|
|
1148
|
+
var Qe = j(Ze), $e = {
|
|
1129
1149
|
name: "trash",
|
|
1130
1150
|
size: 24,
|
|
1131
1151
|
node: [
|
|
@@ -1152,8 +1172,8 @@ var Ye = j(Je), Xe = {
|
|
|
1152
1172
|
],
|
|
1153
1173
|
aliases: ["trash-2"]
|
|
1154
1174
|
};
|
|
1155
|
-
|
|
1156
|
-
var
|
|
1175
|
+
$e.node;
|
|
1176
|
+
var et = j($e), Q = {
|
|
1157
1177
|
name: "upload",
|
|
1158
1178
|
size: 24,
|
|
1159
1179
|
node: [
|
|
@@ -1171,8 +1191,8 @@ var Ze = j(Xe), Qe = {
|
|
|
1171
1191
|
}]
|
|
1172
1192
|
]
|
|
1173
1193
|
};
|
|
1174
|
-
|
|
1175
|
-
var
|
|
1194
|
+
Q.node;
|
|
1195
|
+
var tt = j(Q), nt = {
|
|
1176
1196
|
name: "user-plus",
|
|
1177
1197
|
size: 24,
|
|
1178
1198
|
node: [
|
|
@@ -1202,8 +1222,8 @@ var $e = j(Qe), et = {
|
|
|
1202
1222
|
}]
|
|
1203
1223
|
]
|
|
1204
1224
|
};
|
|
1205
|
-
|
|
1206
|
-
var
|
|
1225
|
+
nt.node;
|
|
1226
|
+
var rt = j(nt), it = {
|
|
1207
1227
|
name: "user",
|
|
1208
1228
|
size: 24,
|
|
1209
1229
|
node: [["path", {
|
|
@@ -1216,8 +1236,8 @@ var tt = j(et), nt = {
|
|
|
1216
1236
|
key: "17ys0d"
|
|
1217
1237
|
}]]
|
|
1218
1238
|
};
|
|
1219
|
-
|
|
1220
|
-
var
|
|
1239
|
+
it.node;
|
|
1240
|
+
var at = j(it), ot = {
|
|
1221
1241
|
name: "users",
|
|
1222
1242
|
size: 24,
|
|
1223
1243
|
node: [
|
|
@@ -1241,8 +1261,8 @@ var rt = j(nt), it = {
|
|
|
1241
1261
|
}]
|
|
1242
1262
|
]
|
|
1243
1263
|
};
|
|
1244
|
-
|
|
1245
|
-
var
|
|
1264
|
+
ot.node;
|
|
1265
|
+
var st = j(ot), ct = {
|
|
1246
1266
|
name: "x",
|
|
1247
1267
|
size: 24,
|
|
1248
1268
|
node: [["path", {
|
|
@@ -1253,13 +1273,13 @@ var at = j(it), ot = {
|
|
|
1253
1273
|
key: "d8bk6v"
|
|
1254
1274
|
}]]
|
|
1255
1275
|
};
|
|
1256
|
-
|
|
1257
|
-
var
|
|
1258
|
-
function
|
|
1276
|
+
ct.node;
|
|
1277
|
+
var lt = j(ct), $ = { fontFamily: "var(--vx-font-heading)" }, ut = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i;
|
|
1278
|
+
function dt(e) {
|
|
1259
1279
|
let t = e, n = typeof e == "string" ? e : t?.serve_url || t?.url || t?.id || "";
|
|
1260
|
-
return String(n || "").match(
|
|
1280
|
+
return String(n || "").match(ut)?.[0] || "";
|
|
1261
1281
|
}
|
|
1262
|
-
function
|
|
1282
|
+
function ft(e, t) {
|
|
1263
1283
|
if (!e) return "";
|
|
1264
1284
|
if (/^field_\d+/i.test(e) && t && typeof t == "string") {
|
|
1265
1285
|
let e = t.trim().toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
|
|
@@ -1267,25 +1287,117 @@ function ut(e, t) {
|
|
|
1267
1287
|
}
|
|
1268
1288
|
return e;
|
|
1269
1289
|
}
|
|
1270
|
-
function
|
|
1290
|
+
function pt(e, t = "") {
|
|
1271
1291
|
if (e && typeof e == "string") {
|
|
1272
1292
|
let t = e.trim().toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
|
|
1273
1293
|
if (t) return t;
|
|
1274
1294
|
}
|
|
1275
|
-
return
|
|
1295
|
+
return ft(t, e) || t;
|
|
1296
|
+
}
|
|
1297
|
+
function mt(e) {
|
|
1298
|
+
let t = (e || "").trim();
|
|
1299
|
+
return t ? t.split(/\s+/).length : 0;
|
|
1300
|
+
}
|
|
1301
|
+
function ht(e, t) {
|
|
1302
|
+
for (let n of e || []) {
|
|
1303
|
+
if (n.type === "file") continue;
|
|
1304
|
+
let e = String(t(n) ?? "").trim(), r = n.label || "This field";
|
|
1305
|
+
if (n.required && !e) return `${r} is required.`;
|
|
1306
|
+
let i = Number(n.word_limit) || 0;
|
|
1307
|
+
if (n.type === "textarea" && i && mt(e) > i) return `${r} is over the ${i}-word limit.`;
|
|
1308
|
+
}
|
|
1309
|
+
return null;
|
|
1276
1310
|
}
|
|
1277
1311
|
//#endregion
|
|
1278
|
-
//#region src/widget/components/
|
|
1279
|
-
var
|
|
1312
|
+
//#region src/widget/components/FieldControl.tsx
|
|
1313
|
+
var gt = {
|
|
1314
|
+
email: "email",
|
|
1315
|
+
phone: "tel",
|
|
1316
|
+
number: "number",
|
|
1317
|
+
date: "date",
|
|
1318
|
+
url: "url"
|
|
1319
|
+
}, _t = ({ field: e, value: t, onChange: n, className: r, isDark: i, id: a, part: o = "input", disabled: s, placeholder: c }) => {
|
|
1320
|
+
let l = t == null ? "" : String(t), u = c ?? e.placeholder ?? "", d = i ? "bg-zinc-900 text-white" : "bg-white text-slate-900";
|
|
1321
|
+
if (e.type === "select") return /* @__PURE__ */ m("div", {
|
|
1322
|
+
className: "relative",
|
|
1323
|
+
children: [/* @__PURE__ */ m("select", {
|
|
1324
|
+
part: `${o} select`,
|
|
1325
|
+
id: a,
|
|
1326
|
+
required: e.required,
|
|
1327
|
+
disabled: s,
|
|
1328
|
+
value: l,
|
|
1329
|
+
onChange: (e) => n(e.target.value),
|
|
1330
|
+
className: `${r} pr-10 appearance-none cursor-pointer`,
|
|
1331
|
+
children: [/* @__PURE__ */ p("option", {
|
|
1332
|
+
value: "",
|
|
1333
|
+
className: d,
|
|
1334
|
+
children: e.placeholder || `Select ${e.label || "an option"}...`
|
|
1335
|
+
}), (e.options || []).map((e, t) => /* @__PURE__ */ p("option", {
|
|
1336
|
+
value: e,
|
|
1337
|
+
className: d,
|
|
1338
|
+
children: e
|
|
1339
|
+
}, `${t}-${e}`))]
|
|
1340
|
+
}), /* @__PURE__ */ p("div", {
|
|
1341
|
+
className: `absolute inset-y-0 right-0 flex items-center pr-3.5 pointer-events-none ${i ? "text-zinc-400" : "text-slate-400"}`,
|
|
1342
|
+
children: /* @__PURE__ */ p(le, { size: 16 })
|
|
1343
|
+
})]
|
|
1344
|
+
});
|
|
1345
|
+
if (e.type === "checkbox") return /* @__PURE__ */ m("label", {
|
|
1346
|
+
className: `flex items-start gap-2.5 text-sm cursor-pointer ${s ? "opacity-60 cursor-not-allowed" : ""} ${i ? "text-zinc-200" : "text-slate-700"}`,
|
|
1347
|
+
children: [/* @__PURE__ */ p("input", {
|
|
1348
|
+
part: `${o} checkbox`,
|
|
1349
|
+
id: a,
|
|
1350
|
+
type: "checkbox",
|
|
1351
|
+
required: e.required,
|
|
1352
|
+
disabled: s,
|
|
1353
|
+
checked: l === "Yes" || l === "true",
|
|
1354
|
+
onChange: (e) => n(e.target.checked ? "Yes" : ""),
|
|
1355
|
+
className: "mt-0.5 w-4 h-4 shrink-0 cursor-pointer accent-(--vx-accent)"
|
|
1356
|
+
}), /* @__PURE__ */ p("span", { children: e.placeholder || e.label })]
|
|
1357
|
+
});
|
|
1358
|
+
if (e.type === "textarea") {
|
|
1359
|
+
let t = Number(e.word_limit) || 0, c = mt(l);
|
|
1360
|
+
return /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("textarea", {
|
|
1361
|
+
part: `${o} textarea`,
|
|
1362
|
+
id: a,
|
|
1363
|
+
rows: 4,
|
|
1364
|
+
required: e.required,
|
|
1365
|
+
disabled: s,
|
|
1366
|
+
value: l,
|
|
1367
|
+
placeholder: u,
|
|
1368
|
+
onChange: (e) => n(e.target.value),
|
|
1369
|
+
className: `${r} resize-y`
|
|
1370
|
+
}), t > 0 && /* @__PURE__ */ m("div", {
|
|
1371
|
+
className: `text-2xs font-medium mt-1 text-right ${c > t ? "text-red-500" : i ? "text-zinc-500" : "text-slate-500"}`,
|
|
1372
|
+
children: [
|
|
1373
|
+
c,
|
|
1374
|
+
" / ",
|
|
1375
|
+
t,
|
|
1376
|
+
" words"
|
|
1377
|
+
]
|
|
1378
|
+
})] });
|
|
1379
|
+
}
|
|
1380
|
+
return /* @__PURE__ */ p("input", {
|
|
1381
|
+
part: o,
|
|
1382
|
+
id: a,
|
|
1383
|
+
type: gt[e.type] || "text",
|
|
1384
|
+
required: e.required,
|
|
1385
|
+
disabled: s,
|
|
1386
|
+
value: l,
|
|
1387
|
+
placeholder: e.type === "url" && !u ? "https://" : u,
|
|
1388
|
+
onChange: (e) => n(e.target.value),
|
|
1389
|
+
className: r
|
|
1390
|
+
});
|
|
1391
|
+
}, vt = /* @__PURE__ */ new Set([
|
|
1280
1392
|
"salutation",
|
|
1281
1393
|
"name",
|
|
1282
1394
|
"email",
|
|
1283
1395
|
"phone"
|
|
1284
|
-
]),
|
|
1285
|
-
let [
|
|
1396
|
+
]), yt = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpanded: a, onToggleExpand: o, onClose: c, onChange: l, initialValues: u, fileAnswers: h, isDark: g = !1, apiClient: _, onError: v, onEvent: y, backgroundStyle: b, ticketType: x, showReviewFields: S = !1 }) => {
|
|
1397
|
+
let [C, w] = d(u || {}), [T, E] = d(null), [D, O] = d(null), [ee, k] = d({}), [A, j] = d({}), [M, N] = d(null), [re, P] = d(null), [ie, ae] = d({}), [oe, ce] = d({}), [le, ue] = d({}), F = r?.primaryColor || "#c026d3";
|
|
1286
1398
|
s(() => {
|
|
1287
1399
|
if (u && Object.keys(u).length > 0) {
|
|
1288
|
-
|
|
1400
|
+
w((e) => ({
|
|
1289
1401
|
...u,
|
|
1290
1402
|
...e
|
|
1291
1403
|
}));
|
|
@@ -1293,26 +1405,26 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1293
1405
|
r.forEach((e) => {
|
|
1294
1406
|
if (e.type === "file") {
|
|
1295
1407
|
let r = u[e.id];
|
|
1296
|
-
r && (String(r).startsWith("http://") || String(r).startsWith("https://") ? (n[e.id] = String(r),
|
|
1408
|
+
r && (String(r).startsWith("http://") || String(r).startsWith("https://") ? (n[e.id] = String(r), dt(r) && (t[e.id] = dt(r))) : t[e.id] = String(r));
|
|
1297
1409
|
}
|
|
1298
|
-
}), Object.keys(t).length > 0 &&
|
|
1410
|
+
}), Object.keys(t).length > 0 && k((e) => ({
|
|
1299
1411
|
...t,
|
|
1300
1412
|
...e
|
|
1301
|
-
})), Object.keys(n).length > 0 &&
|
|
1413
|
+
})), Object.keys(n).length > 0 && j((e) => ({
|
|
1302
1414
|
...n,
|
|
1303
1415
|
...e
|
|
1304
1416
|
})), r.forEach((e) => {
|
|
1305
1417
|
let t = h?.[e.id];
|
|
1306
|
-
t?.text ? (
|
|
1418
|
+
t?.text ? (ue((n) => ({
|
|
1307
1419
|
[e.id]: t.text,
|
|
1308
1420
|
...n
|
|
1309
|
-
})),
|
|
1421
|
+
})), ce((n) => ({
|
|
1310
1422
|
[e.id]: t.text,
|
|
1311
1423
|
...n
|
|
1312
|
-
})),
|
|
1424
|
+
})), ae((t) => ({
|
|
1313
1425
|
[e.id]: "text",
|
|
1314
1426
|
...t
|
|
1315
|
-
}))) : t?.serve_url &&
|
|
1427
|
+
}))) : t?.serve_url && j((n) => ({
|
|
1316
1428
|
[e.id]: t.serve_url,
|
|
1317
1429
|
...n
|
|
1318
1430
|
}));
|
|
@@ -1323,8 +1435,8 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1323
1435
|
e,
|
|
1324
1436
|
h
|
|
1325
1437
|
]);
|
|
1326
|
-
let I = (e, t) => {
|
|
1327
|
-
|
|
1438
|
+
let [I, de] = d(null), fe = (e, t) => {
|
|
1439
|
+
w((n) => {
|
|
1328
1440
|
let r = {
|
|
1329
1441
|
...n,
|
|
1330
1442
|
[e]: t
|
|
@@ -1333,67 +1445,67 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1333
1445
|
});
|
|
1334
1446
|
}, pe = async (t, n) => {
|
|
1335
1447
|
if (!_) return;
|
|
1336
|
-
|
|
1337
|
-
let r =
|
|
1448
|
+
E(t), N(null), P(null);
|
|
1449
|
+
let r = ee[t], i = (e?.fields || []).find((e) => e.id === t);
|
|
1338
1450
|
try {
|
|
1339
|
-
let e = await _.uploadFile(n,
|
|
1340
|
-
if (!
|
|
1341
|
-
let
|
|
1342
|
-
if (
|
|
1451
|
+
let e = await _.uploadFile(n, null, _e(), i?.label), a = e?.data?.asset_id || e?.asset_id, o = e?.data?.serve_url || e?.serve_url;
|
|
1452
|
+
if (!a && !o) throw Error("Upload response missing asset_id");
|
|
1453
|
+
let s = String(a || dt(o)), c = String(o || "");
|
|
1454
|
+
if (k((e) => ({
|
|
1343
1455
|
...e,
|
|
1344
|
-
[t]:
|
|
1345
|
-
})),
|
|
1456
|
+
[t]: s
|
|
1457
|
+
})), c && j((e) => ({
|
|
1346
1458
|
...e,
|
|
1347
|
-
[t]:
|
|
1348
|
-
})),
|
|
1459
|
+
[t]: c
|
|
1460
|
+
})), w((e) => {
|
|
1349
1461
|
let n = {
|
|
1350
1462
|
...e,
|
|
1351
|
-
[t]:
|
|
1463
|
+
[t]: c || s
|
|
1352
1464
|
};
|
|
1353
1465
|
return l?.(n), n;
|
|
1354
|
-
}),
|
|
1466
|
+
}), y?.("file_uploaded", {
|
|
1355
1467
|
fieldId: t,
|
|
1356
|
-
assetId:
|
|
1357
|
-
serveUrl:
|
|
1358
|
-
}),
|
|
1359
|
-
await _.deleteFile(
|
|
1468
|
+
assetId: s,
|
|
1469
|
+
serveUrl: c
|
|
1470
|
+
}), r && r !== s) try {
|
|
1471
|
+
await _.deleteFile(dt(r) || r, null, _e()), y?.("file_deleted", {
|
|
1360
1472
|
fieldId: t,
|
|
1361
|
-
assetId:
|
|
1473
|
+
assetId: r
|
|
1362
1474
|
});
|
|
1363
1475
|
} catch (e) {
|
|
1364
1476
|
console.warn("[DynamicForm] Could not delete old file", e);
|
|
1365
1477
|
}
|
|
1366
1478
|
} catch (e) {
|
|
1367
1479
|
let n = e?.message || "File upload failed. Please try again.";
|
|
1368
|
-
N(n), P(t),
|
|
1480
|
+
N(n), P(t), v?.({
|
|
1369
1481
|
type: "file_upload_error",
|
|
1370
1482
|
message: n,
|
|
1371
1483
|
error: e
|
|
1372
1484
|
});
|
|
1373
1485
|
} finally {
|
|
1374
|
-
|
|
1486
|
+
E(null);
|
|
1375
1487
|
}
|
|
1376
|
-
},
|
|
1488
|
+
}, me = async (e) => {
|
|
1377
1489
|
if (!_) return;
|
|
1378
|
-
let t =
|
|
1379
|
-
|
|
1490
|
+
let t = ee[e] || C[e], n = dt(t) || t;
|
|
1491
|
+
O(e), N(null), P(null);
|
|
1380
1492
|
try {
|
|
1381
|
-
|
|
1493
|
+
n && (await _.deleteFile(n, null, _e()), y?.("file_deleted", {
|
|
1382
1494
|
fieldId: e,
|
|
1383
|
-
assetId:
|
|
1384
|
-
})),
|
|
1495
|
+
assetId: n
|
|
1496
|
+
})), k((t) => {
|
|
1385
1497
|
let n = { ...t };
|
|
1386
1498
|
return delete n[e], n;
|
|
1387
|
-
}),
|
|
1499
|
+
}), j((t) => {
|
|
1388
1500
|
let n = { ...t };
|
|
1389
1501
|
return delete n[e], n;
|
|
1390
|
-
}),
|
|
1502
|
+
}), ue((t) => {
|
|
1391
1503
|
let n = { ...t };
|
|
1392
1504
|
return delete n[e], n;
|
|
1393
|
-
}),
|
|
1505
|
+
}), ce((t) => {
|
|
1394
1506
|
let n = { ...t };
|
|
1395
1507
|
return delete n[e], n;
|
|
1396
|
-
}),
|
|
1508
|
+
}), w((t) => {
|
|
1397
1509
|
let n = {
|
|
1398
1510
|
...t,
|
|
1399
1511
|
[e]: ""
|
|
@@ -1402,147 +1514,143 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1402
1514
|
});
|
|
1403
1515
|
} catch (t) {
|
|
1404
1516
|
let n = t?.message || "Failed to delete file. Please try again.";
|
|
1405
|
-
N(n), P(e),
|
|
1517
|
+
N(n), P(e), v?.({
|
|
1406
1518
|
type: "file_delete_error",
|
|
1407
1519
|
message: n,
|
|
1408
1520
|
error: t
|
|
1409
1521
|
});
|
|
1410
1522
|
} finally {
|
|
1411
|
-
|
|
1523
|
+
O(null);
|
|
1412
1524
|
}
|
|
1413
|
-
},
|
|
1525
|
+
}, he = async (t, n) => {
|
|
1414
1526
|
if (!_ || !n.trim()) return;
|
|
1415
|
-
|
|
1416
|
-
let r =
|
|
1527
|
+
E(t), N(null), P(null);
|
|
1528
|
+
let r = ee[t], i = (e?.fields || []).find((e) => e.id === t);
|
|
1417
1529
|
try {
|
|
1418
|
-
let e = await _.submitTextAnswer(n.trim(),
|
|
1419
|
-
if (!
|
|
1420
|
-
let
|
|
1421
|
-
if (
|
|
1530
|
+
let e = await _.submitTextAnswer(n.trim(), null, _e(), i?.label), a = e?.data?.asset_id || e?.asset_id;
|
|
1531
|
+
if (!a) throw Error("Submission response missing asset_id");
|
|
1532
|
+
let o = String(a);
|
|
1533
|
+
if (k((e) => ({
|
|
1422
1534
|
...e,
|
|
1423
|
-
[t]:
|
|
1424
|
-
})),
|
|
1535
|
+
[t]: o
|
|
1536
|
+
})), j((e) => {
|
|
1425
1537
|
let n = { ...e };
|
|
1426
1538
|
return delete n[t], n;
|
|
1427
|
-
}),
|
|
1539
|
+
}), ue((e) => ({
|
|
1428
1540
|
...e,
|
|
1429
1541
|
[t]: n.trim()
|
|
1430
|
-
})),
|
|
1542
|
+
})), w((e) => {
|
|
1431
1543
|
let n = {
|
|
1432
1544
|
...e,
|
|
1433
|
-
[t]:
|
|
1545
|
+
[t]: o
|
|
1434
1546
|
};
|
|
1435
1547
|
return l?.(n), n;
|
|
1436
|
-
}),
|
|
1548
|
+
}), y?.("file_uploaded", {
|
|
1437
1549
|
fieldId: t,
|
|
1438
|
-
assetId:
|
|
1550
|
+
assetId: o,
|
|
1439
1551
|
isText: !0
|
|
1440
|
-
}),
|
|
1441
|
-
await _.deleteFile(
|
|
1552
|
+
}), r && r !== o) try {
|
|
1553
|
+
await _.deleteFile(dt(r) || r, null, _e()), y?.("file_deleted", {
|
|
1442
1554
|
fieldId: t,
|
|
1443
|
-
assetId:
|
|
1555
|
+
assetId: r
|
|
1444
1556
|
});
|
|
1445
1557
|
} catch (e) {
|
|
1446
1558
|
console.warn("[DynamicForm] Could not delete old file", e);
|
|
1447
1559
|
}
|
|
1448
1560
|
} catch (e) {
|
|
1449
1561
|
let n = e?.message || "Could not submit your answer. Please try again.";
|
|
1450
|
-
N(n), P(t),
|
|
1562
|
+
N(n), P(t), v?.({
|
|
1451
1563
|
type: "file_upload_error",
|
|
1452
1564
|
message: n,
|
|
1453
1565
|
error: e
|
|
1454
1566
|
});
|
|
1455
1567
|
} finally {
|
|
1456
|
-
|
|
1568
|
+
E(null);
|
|
1457
1569
|
}
|
|
1458
|
-
},
|
|
1570
|
+
}, ge = () => {
|
|
1459
1571
|
let t = (e?.fields || []).find((e) => e.type === "email" || (e.label || e.id || "").toLowerCase().includes("email"));
|
|
1460
|
-
return String(t &&
|
|
1461
|
-
},
|
|
1462
|
-
|
|
1572
|
+
return String(t && C[t.id] || C.email || "").trim();
|
|
1573
|
+
}, _e = () => S && ge() || null, L = e?.fields || [], ve = Array.isArray(x?.items) ? x.items.filter((e) => e?.name) : [], ye = ve.filter((e) => e.mode === "optional"), be = ve.filter((e) => e.mode === "group"), R = ve.filter((e) => e.mode !== "optional" && e.mode !== "group"), Se = be.flatMap((e) => e.options || []), z = Array.isArray(C.selected_items) ? C.selected_items : [], Te = (e, t = z) => (e.options || []).filter((e) => t.includes(e.name)).length, Ee = (e, t) => {
|
|
1574
|
+
w((n) => {
|
|
1463
1575
|
let r = Array.isArray(n.selected_items) ? n.selected_items : [], i = r.includes(e), a = Number(t?.max) || 0;
|
|
1464
|
-
if (!i && a &&
|
|
1576
|
+
if (!i && a && Te(t, r) >= a) return n;
|
|
1465
1577
|
let o = {
|
|
1466
1578
|
...n,
|
|
1467
1579
|
selected_items: i ? r.filter((t) => t !== e) : [...r, e]
|
|
1468
1580
|
};
|
|
1469
1581
|
return l?.(o), o;
|
|
1470
1582
|
});
|
|
1471
|
-
},
|
|
1472
|
-
|
|
1583
|
+
}, B = S ? null : x?.accompany_form_schema || null, De = B?.fields || [], Oe = Number(B?.price) || 0, Ae = Number(B?.max) || 0, V = Array.isArray(C.accompanying) ? C.accompanying : [], H = !Ae || V.length < Ae, U = (e) => {
|
|
1584
|
+
w((t) => {
|
|
1473
1585
|
let n = Array.isArray(t.accompanying) ? t.accompanying : [], r = {
|
|
1474
1586
|
...t,
|
|
1475
1587
|
accompanying: e(n)
|
|
1476
1588
|
};
|
|
1477
1589
|
return l?.(r), r;
|
|
1478
1590
|
});
|
|
1479
|
-
},
|
|
1591
|
+
}, W = () => U((e) => [...e, {
|
|
1480
1592
|
salutation: "",
|
|
1481
1593
|
name: "",
|
|
1482
1594
|
email: "",
|
|
1483
1595
|
phone: "",
|
|
1484
1596
|
custom_data: {}
|
|
1485
|
-
}]),
|
|
1597
|
+
}]), G = (e) => U((t) => t.filter((t, n) => n !== e)), je = (e) => vt.has(e.id) ? e.id : ft(e.id, e.label), Me = (e, t) => (vt.has(t.id) ? e[t.id] : (e.custom_data || {})[je(t)]) ?? "", K = (e, t, n) => U((r) => r.map((r, i) => i === e ? vt.has(t.id) ? {
|
|
1486
1598
|
...r,
|
|
1487
1599
|
[t.id]: n
|
|
1488
1600
|
} : {
|
|
1489
1601
|
...r,
|
|
1490
1602
|
custom_data: {
|
|
1491
1603
|
...r.custom_data || {},
|
|
1492
|
-
[
|
|
1604
|
+
[je(t)]: n
|
|
1493
1605
|
}
|
|
1494
|
-
} : r)),
|
|
1606
|
+
} : r)), Ne = (e, t) => `guest:${e}:${t.id}`, q = async (e, t, n) => {
|
|
1495
1607
|
if (!_) return;
|
|
1496
|
-
let r =
|
|
1497
|
-
|
|
1608
|
+
let r = Ne(e, t);
|
|
1609
|
+
E(r), N(null), P(null);
|
|
1498
1610
|
try {
|
|
1499
|
-
let i =
|
|
1500
|
-
if (!
|
|
1501
|
-
|
|
1611
|
+
let i = await _.uploadFile(n, null, _e(), t.label), a = i?.data?.serve_url || i?.serve_url || "", o = i?.data?.asset_id || i?.asset_id || "";
|
|
1612
|
+
if (!a && !o) throw Error("Upload response missing asset_id");
|
|
1613
|
+
K(e, t, String(a || o)), y?.("file_uploaded", {
|
|
1502
1614
|
fieldId: r,
|
|
1503
|
-
assetId:
|
|
1504
|
-
serveUrl:
|
|
1615
|
+
assetId: o,
|
|
1616
|
+
serveUrl: a
|
|
1505
1617
|
});
|
|
1506
1618
|
} catch (e) {
|
|
1507
1619
|
let t = e?.message || "File upload failed. Please try again.";
|
|
1508
|
-
N(t), P(r),
|
|
1620
|
+
N(t), P(r), v?.({
|
|
1509
1621
|
type: "file_upload_error",
|
|
1510
1622
|
message: t,
|
|
1511
1623
|
error: e
|
|
1512
1624
|
});
|
|
1513
1625
|
} finally {
|
|
1514
|
-
|
|
1626
|
+
E(null);
|
|
1515
1627
|
}
|
|
1516
|
-
},
|
|
1628
|
+
}, J = async (e, t) => {
|
|
1517
1629
|
if (!_) return;
|
|
1518
|
-
let n =
|
|
1519
|
-
|
|
1630
|
+
let n = Ne(e, t), r = Me(V[e] || {}, t), i = dt(r) || r;
|
|
1631
|
+
O(n), N(null), P(null);
|
|
1520
1632
|
try {
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
assetId: i
|
|
1526
|
-
});
|
|
1527
|
-
}
|
|
1528
|
-
Oe(e, t, "");
|
|
1633
|
+
i && (await _.deleteFile(i, null, _e()), y?.("file_deleted", {
|
|
1634
|
+
fieldId: n,
|
|
1635
|
+
assetId: i
|
|
1636
|
+
})), K(e, t, "");
|
|
1529
1637
|
} catch (e) {
|
|
1530
1638
|
let t = e?.message || "Failed to delete file. Please try again.";
|
|
1531
|
-
N(t), P(n),
|
|
1639
|
+
N(t), P(n), v?.({
|
|
1532
1640
|
type: "file_delete_error",
|
|
1533
1641
|
message: t,
|
|
1534
1642
|
error: e
|
|
1535
1643
|
});
|
|
1536
1644
|
} finally {
|
|
1537
|
-
|
|
1645
|
+
O(null);
|
|
1538
1646
|
}
|
|
1539
|
-
},
|
|
1647
|
+
}, Pe = (e) => {
|
|
1540
1648
|
if (e.description) return e.description;
|
|
1541
1649
|
if (e.helperText) return e.helperText;
|
|
1542
1650
|
let t = (e.label || e.id || "").toLowerCase(), n = e.type;
|
|
1543
|
-
return n === "email"
|
|
1544
|
-
},
|
|
1545
|
-
let t =
|
|
1651
|
+
return n === "email" ? S ? "Please enter a valid email address. Your abstract acknowledgement, review updates, and final communication will be sent to this mailbox." : "Please enter a valid email address. Your registration confirmation and event updates will be sent to this mailbox." : n === "phone" ? "Please enter a valid mobile number for SMS confirmations and important notifications." : n === "text" && (t.includes("council") || t.includes("registration no") || t.includes("mci")) ? "Enter your State Medical Council or National Medical Commission registration number." : n === "file" ? S ? "Upload your document, or answer with text instead." : "Upload your document for registration review and verification, or answer with text instead." : e.id === "salutation" ? "Choose your professional title or academic prefix." : null;
|
|
1652
|
+
}, Y = (e) => {
|
|
1653
|
+
let t = A[e.id] || (C[e.id] && String(C[e.id]).startsWith("http") ? C[e.id] : ""), n = le[e.id], r = ie[e.id] || "file", i = T === e.id || D === e.id, a = oe[e.id] || "", o = a.trim() ? a.trim().split(/\s+/).length : 0, s = !!e.word_limit && o > e.word_limit;
|
|
1546
1654
|
return /* @__PURE__ */ p("div", {
|
|
1547
1655
|
className: "space-y-2 mt-2",
|
|
1548
1656
|
children: /* @__PURE__ */ m("div", {
|
|
@@ -1560,7 +1668,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1560
1668
|
borderColor: g ? "rgba(255,255,255,0.12)" : `color-mix(in srgb, ${F} 25%, white)`,
|
|
1561
1669
|
color: F
|
|
1562
1670
|
},
|
|
1563
|
-
children: /* @__PURE__ */ p(
|
|
1671
|
+
children: /* @__PURE__ */ p(we, { size: 18 })
|
|
1564
1672
|
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
|
|
1565
1673
|
className: `text-xs font-bold ${g ? "text-zinc-200" : "text-gray-900"}`,
|
|
1566
1674
|
children: e.label
|
|
@@ -1571,7 +1679,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1571
1679
|
}), /* @__PURE__ */ p("button", {
|
|
1572
1680
|
type: "button",
|
|
1573
1681
|
disabled: i,
|
|
1574
|
-
onClick: () =>
|
|
1682
|
+
onClick: () => ae((t) => ({
|
|
1575
1683
|
...t,
|
|
1576
1684
|
[e.id]: r === "file" ? "text" : "file"
|
|
1577
1685
|
})),
|
|
@@ -1580,7 +1688,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1580
1688
|
color: F,
|
|
1581
1689
|
borderColor: `color-mix(in srgb, ${F} 35%, transparent)`
|
|
1582
1690
|
},
|
|
1583
|
-
children: r === "file" ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(
|
|
1691
|
+
children: r === "file" ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(Ce, { size: 11 }), " Send text only"] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(tt, { size: 11 }), " Send file"] })
|
|
1584
1692
|
})]
|
|
1585
1693
|
}),
|
|
1586
1694
|
r === "file" ? /* @__PURE__ */ m("div", {
|
|
@@ -1599,10 +1707,10 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1599
1707
|
}
|
|
1600
1708
|
}), /* @__PURE__ */ m("div", {
|
|
1601
1709
|
className: `flex items-center gap-1.5 py-2 px-3.5 rounded-xl text-xs font-semibold border transition-all shadow-2xs ${g ? "border-zinc-700 hover:border-zinc-600 text-zinc-200 bg-zinc-800 hover:bg-zinc-750" : "border-slate-200 hover:border-slate-300 text-slate-700 bg-white hover:bg-slate-50"}`,
|
|
1602
|
-
children: [/* @__PURE__ */ p(
|
|
1710
|
+
children: [/* @__PURE__ */ p(tt, {
|
|
1603
1711
|
size: 14,
|
|
1604
1712
|
style: { color: F }
|
|
1605
|
-
}), /* @__PURE__ */ p("span", { children:
|
|
1713
|
+
}), /* @__PURE__ */ p("span", { children: T === e.id ? "Uploading..." : t ? "Replace File" : "Choose File" })]
|
|
1606
1714
|
})]
|
|
1607
1715
|
}), t && typeof t == "string" && t.trim() !== "" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("button", {
|
|
1608
1716
|
type: "button",
|
|
@@ -1611,17 +1719,17 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1611
1719
|
style: { backgroundColor: F },
|
|
1612
1720
|
title: "Open file in new tab",
|
|
1613
1721
|
children: [
|
|
1614
|
-
/* @__PURE__ */ p(
|
|
1722
|
+
/* @__PURE__ */ p(Ce, { size: 13 }),
|
|
1615
1723
|
/* @__PURE__ */ p("span", { children: "View" }),
|
|
1616
|
-
/* @__PURE__ */ p(
|
|
1724
|
+
/* @__PURE__ */ p(xe, { size: 11 })
|
|
1617
1725
|
]
|
|
1618
1726
|
}), /* @__PURE__ */ m("button", {
|
|
1619
1727
|
type: "button",
|
|
1620
|
-
disabled:
|
|
1621
|
-
onClick: () =>
|
|
1728
|
+
disabled: D === e.id || T === e.id,
|
|
1729
|
+
onClick: () => me(e.id),
|
|
1622
1730
|
className: `flex items-center gap-1 py-2 px-3 rounded-xl text-xs font-semibold border transition-colors cursor-pointer ${g ? "border-red-900/60 bg-red-950/50 text-red-400 hover:bg-red-900/60" : "border-red-200 bg-red-50 text-red-600 hover:bg-red-100"}`,
|
|
1623
1731
|
title: "Delete uploaded file",
|
|
1624
|
-
children: [/* @__PURE__ */ p(
|
|
1732
|
+
children: [/* @__PURE__ */ p(et, { size: 13 }), /* @__PURE__ */ p("span", { children: D === e.id ? "Deleting..." : "Delete" })]
|
|
1625
1733
|
})] })]
|
|
1626
1734
|
}) : /* @__PURE__ */ m("div", {
|
|
1627
1735
|
className: `mt-3 pt-3 border-t space-y-2 ${g ? "border-zinc-800" : "border-slate-200"}`,
|
|
@@ -1630,7 +1738,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1630
1738
|
rows: 3,
|
|
1631
1739
|
disabled: i || !!n,
|
|
1632
1740
|
value: n ?? a,
|
|
1633
|
-
onChange: (t) =>
|
|
1741
|
+
onChange: (t) => ce((n) => ({
|
|
1634
1742
|
...n,
|
|
1635
1743
|
[e.id]: t.target.value
|
|
1636
1744
|
})),
|
|
@@ -1649,16 +1757,16 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1649
1757
|
}) : /* @__PURE__ */ p("span", {}), n ? /* @__PURE__ */ m("button", {
|
|
1650
1758
|
type: "button",
|
|
1651
1759
|
disabled: i,
|
|
1652
|
-
onClick: () =>
|
|
1760
|
+
onClick: () => me(e.id),
|
|
1653
1761
|
className: `flex items-center gap-1 py-2 px-3 rounded-xl text-xs font-semibold border transition-colors cursor-pointer ${g ? "border-red-900/60 bg-red-950/50 text-red-400 hover:bg-red-900/60" : "border-red-200 bg-red-50 text-red-600 hover:bg-red-100"}`,
|
|
1654
|
-
children: [/* @__PURE__ */ p(
|
|
1762
|
+
children: [/* @__PURE__ */ p(et, { size: 13 }), /* @__PURE__ */ p("span", { children: D === e.id ? "Clearing..." : "Clear & Re-enter" })]
|
|
1655
1763
|
}) : /* @__PURE__ */ m("button", {
|
|
1656
1764
|
type: "button",
|
|
1657
1765
|
disabled: i || !a.trim(),
|
|
1658
|
-
onClick: () =>
|
|
1766
|
+
onClick: () => he(e.id, a),
|
|
1659
1767
|
style: { backgroundColor: F },
|
|
1660
1768
|
className: "flex items-center gap-1.5 px-4 py-2 rounded-xl text-xs font-bold text-white shadow-sm hover:opacity-90 transition-all cursor-pointer disabled:opacity-50",
|
|
1661
|
-
children: [/* @__PURE__ */ p(
|
|
1769
|
+
children: [/* @__PURE__ */ p(tt, { size: 13 }), /* @__PURE__ */ p("span", { children: T === e.id ? "Submitting..." : "Submit Text" })]
|
|
1662
1770
|
})]
|
|
1663
1771
|
})]
|
|
1664
1772
|
}),
|
|
@@ -1672,16 +1780,16 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1672
1780
|
children: ["Attached: ", t]
|
|
1673
1781
|
})]
|
|
1674
1782
|
}),
|
|
1675
|
-
|
|
1783
|
+
M && re === e.id && /* @__PURE__ */ p("div", {
|
|
1676
1784
|
className: "text-xs text-red-500 mt-2 font-medium",
|
|
1677
|
-
children:
|
|
1785
|
+
children: M
|
|
1678
1786
|
})
|
|
1679
1787
|
]
|
|
1680
1788
|
})
|
|
1681
1789
|
});
|
|
1682
|
-
},
|
|
1790
|
+
}, X = (e) => {
|
|
1683
1791
|
if (!e) return null;
|
|
1684
|
-
let t =
|
|
1792
|
+
let t = C[e.id] ?? "", n = Pe(e), r = e.type === "email", i = e.id === "name", a = `vx-field-${e.id}`, o = `w-full px-4 py-3 text-[15px] font-medium rounded-xl border transition-all focus:outline-none ${g ? "bg-zinc-900 border-zinc-700 text-white placeholder:text-zinc-500 hover:border-zinc-600 focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_20%,transparent)]" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400 hover:border-slate-300 shadow-[0_1px_2px_rgba(15,23,42,0.04)] focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_15%,transparent)]"}`;
|
|
1685
1793
|
return /* @__PURE__ */ m("div", {
|
|
1686
1794
|
part: "field",
|
|
1687
1795
|
className: "px-5 sm:px-8 py-5 sm:py-6",
|
|
@@ -1704,46 +1812,23 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1704
1812
|
children: n
|
|
1705
1813
|
}),
|
|
1706
1814
|
!n && /* @__PURE__ */ p("div", { className: "h-1.5" }),
|
|
1707
|
-
e.type === "
|
|
1708
|
-
|
|
1709
|
-
children: [/* @__PURE__ */ m("select", {
|
|
1710
|
-
part: "input select",
|
|
1711
|
-
id: a,
|
|
1712
|
-
required: e.required,
|
|
1713
|
-
value: t,
|
|
1714
|
-
onChange: (t) => I(e.id, t.target.value),
|
|
1715
|
-
className: `${o} pr-10 appearance-none cursor-pointer`,
|
|
1716
|
-
children: [/* @__PURE__ */ p("option", {
|
|
1717
|
-
value: "",
|
|
1718
|
-
className: g ? "bg-zinc-900 text-white" : "bg-white text-slate-900",
|
|
1719
|
-
children: e.placeholder || `Select ${e.label}...`
|
|
1720
|
-
}), (e.options || []).map((e) => /* @__PURE__ */ p("option", {
|
|
1721
|
-
value: e,
|
|
1722
|
-
className: g ? "bg-zinc-900 text-white" : "bg-white text-slate-900",
|
|
1723
|
-
children: e
|
|
1724
|
-
}, e))]
|
|
1725
|
-
}), /* @__PURE__ */ p("div", {
|
|
1726
|
-
className: `absolute inset-y-0 right-0 flex items-center pr-3.5 pointer-events-none ${g ? "text-zinc-400" : "text-slate-400"}`,
|
|
1727
|
-
children: /* @__PURE__ */ p(le, { size: 16 })
|
|
1728
|
-
})]
|
|
1729
|
-
}) : e.type === "file" ? Me(e) : /* @__PURE__ */ p("input", {
|
|
1730
|
-
part: "input",
|
|
1815
|
+
e.type === "file" ? Y(e) : /* @__PURE__ */ p(_t, {
|
|
1816
|
+
field: e,
|
|
1731
1817
|
id: a,
|
|
1732
|
-
type: e.type === "phone" ? "tel" : e.type === "email" ? "email" : e.type === "number" ? "number" : "text",
|
|
1733
|
-
required: e.required,
|
|
1734
1818
|
value: t,
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1819
|
+
onChange: (t) => fe(e.id, t),
|
|
1820
|
+
className: o,
|
|
1821
|
+
isDark: g,
|
|
1822
|
+
placeholder: e.placeholder || (r ? "Enter your email address" : i ? "Your full name" : `Enter your ${(e.label || "").toLowerCase()}`)
|
|
1738
1823
|
})
|
|
1739
1824
|
]
|
|
1740
1825
|
}, e.id);
|
|
1741
|
-
},
|
|
1742
|
-
let r =
|
|
1826
|
+
}, Fe = (e, t, n) => {
|
|
1827
|
+
let r = Ne(t, e), i = T === r || D === r;
|
|
1743
1828
|
return /* @__PURE__ */ m("div", { children: [n ? /* @__PURE__ */ m("div", {
|
|
1744
1829
|
className: `flex items-center gap-2 px-3 py-2.5 rounded-xl border ${g ? "border-zinc-700 bg-zinc-900" : "border-slate-200 bg-white"}`,
|
|
1745
1830
|
children: [
|
|
1746
|
-
/* @__PURE__ */ p(
|
|
1831
|
+
/* @__PURE__ */ p(Ce, {
|
|
1747
1832
|
size: 15,
|
|
1748
1833
|
className: "shrink-0",
|
|
1749
1834
|
style: { color: F }
|
|
@@ -1758,32 +1843,32 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1758
1843
|
/* @__PURE__ */ p("button", {
|
|
1759
1844
|
type: "button",
|
|
1760
1845
|
disabled: i,
|
|
1761
|
-
onClick: () =>
|
|
1846
|
+
onClick: () => J(t, e),
|
|
1762
1847
|
title: "Remove file",
|
|
1763
1848
|
className: `shrink-0 p-1 rounded-lg cursor-pointer disabled:opacity-40 ${g ? "text-zinc-500 hover:text-red-400" : "text-slate-400 hover:text-red-500"}`,
|
|
1764
|
-
children: /* @__PURE__ */ p(
|
|
1849
|
+
children: /* @__PURE__ */ p(et, { size: 14 })
|
|
1765
1850
|
})
|
|
1766
1851
|
]
|
|
1767
1852
|
}) : /* @__PURE__ */ m("label", {
|
|
1768
1853
|
className: `flex items-center justify-center gap-2 px-3 py-2.5 rounded-xl border border-dashed cursor-pointer text-xs font-semibold transition-opacity hover:opacity-80 ${g ? "border-zinc-700 text-zinc-300" : "border-slate-300 text-slate-600"} ${i ? "opacity-50 pointer-events-none" : ""}`,
|
|
1769
1854
|
children: [
|
|
1770
|
-
/* @__PURE__ */ p(
|
|
1855
|
+
/* @__PURE__ */ p(tt, { size: 14 }),
|
|
1771
1856
|
i ? "Uploading..." : "Choose file",
|
|
1772
1857
|
/* @__PURE__ */ p("input", {
|
|
1773
1858
|
type: "file",
|
|
1774
1859
|
className: "hidden",
|
|
1775
1860
|
onChange: (n) => {
|
|
1776
1861
|
let r = n.target.files?.[0];
|
|
1777
|
-
r &&
|
|
1862
|
+
r && q(t, e, r), n.target.value = "";
|
|
1778
1863
|
}
|
|
1779
1864
|
})
|
|
1780
1865
|
]
|
|
1781
|
-
}),
|
|
1866
|
+
}), M && re === r && /* @__PURE__ */ p("div", {
|
|
1782
1867
|
className: "text-xs text-red-500 mt-1.5 font-medium",
|
|
1783
|
-
children:
|
|
1868
|
+
children: M
|
|
1784
1869
|
})] });
|
|
1785
1870
|
}, Ie = (e, t, n) => {
|
|
1786
|
-
let r =
|
|
1871
|
+
let r = Me(t, e), i = `w-full px-3.5 py-2.5 text-sm font-medium rounded-xl border transition-all focus:outline-none ${g ? "bg-zinc-900 border-zinc-700 text-white placeholder:text-zinc-500 focus:border-(--vx-accent)" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400 focus:border-(--vx-accent)"}`;
|
|
1787
1872
|
return /* @__PURE__ */ m("label", {
|
|
1788
1873
|
part: "field",
|
|
1789
1874
|
className: "block",
|
|
@@ -1793,58 +1878,39 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1793
1878
|
className: "text-red-500 ml-0.5",
|
|
1794
1879
|
children: "*"
|
|
1795
1880
|
})]
|
|
1796
|
-
}), e.type === "file" ?
|
|
1797
|
-
|
|
1798
|
-
value: r,
|
|
1799
|
-
required: e.required,
|
|
1800
|
-
onChange: (t) => Oe(n, e, t.target.value),
|
|
1801
|
-
className: `${i} cursor-pointer`,
|
|
1802
|
-
children: [/* @__PURE__ */ p("option", {
|
|
1803
|
-
value: "",
|
|
1804
|
-
children: e.placeholder || `Select ${e.label}...`
|
|
1805
|
-
}), (e.options || []).map((e) => /* @__PURE__ */ p("option", {
|
|
1806
|
-
value: e,
|
|
1807
|
-
className: g ? "bg-zinc-900 text-white" : "bg-white text-slate-900",
|
|
1808
|
-
children: e
|
|
1809
|
-
}, e))]
|
|
1810
|
-
}) : e.type === "textarea" ? /* @__PURE__ */ p("textarea", {
|
|
1811
|
-
part: "input",
|
|
1812
|
-
rows: 3,
|
|
1813
|
-
value: r,
|
|
1814
|
-
required: e.required,
|
|
1815
|
-
placeholder: e.placeholder || "",
|
|
1816
|
-
onChange: (t) => Oe(n, e, t.target.value),
|
|
1817
|
-
className: i
|
|
1818
|
-
}) : /* @__PURE__ */ p("input", {
|
|
1819
|
-
part: "input",
|
|
1820
|
-
type: e.type === "phone" ? "tel" : [
|
|
1821
|
-
"email",
|
|
1822
|
-
"number",
|
|
1823
|
-
"date"
|
|
1824
|
-
].includes(e.type) ? e.type : "text",
|
|
1881
|
+
}), e.type === "file" ? Fe(e, n, String(r || "")) : /* @__PURE__ */ p(_t, {
|
|
1882
|
+
field: e,
|
|
1825
1883
|
value: r,
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
className: i
|
|
1884
|
+
onChange: (t) => K(n, e, t),
|
|
1885
|
+
className: i,
|
|
1886
|
+
isDark: g
|
|
1830
1887
|
})]
|
|
1831
1888
|
}, e.id);
|
|
1832
1889
|
}, Re = (e) => {
|
|
1833
|
-
e.preventDefault();
|
|
1834
|
-
for (let e of
|
|
1890
|
+
e.preventDefault(), de(null);
|
|
1891
|
+
for (let e of L) if (e.type === "file" && e.required && !C[e.id]) {
|
|
1835
1892
|
N(`Please upload ${e.label || "a file"}`), P(e.id);
|
|
1836
1893
|
return;
|
|
1837
1894
|
}
|
|
1838
|
-
for (let e = 0; e <
|
|
1839
|
-
N(`Please upload ${t.label || "a file"} for guest ${e + 1}`), P(
|
|
1895
|
+
for (let e = 0; e < V.length; e++) for (let t of De) if (t.type === "file" && t.required && !Me(V[e], t)) {
|
|
1896
|
+
N(`Please upload ${t.label || "a file"} for guest ${e + 1}`), P(Ne(e, t));
|
|
1840
1897
|
return;
|
|
1841
1898
|
}
|
|
1842
|
-
|
|
1843
|
-
|
|
1899
|
+
let n = ht(L, (e) => C[e.id]);
|
|
1900
|
+
for (let e = 0; !n && e < V.length; e++) {
|
|
1901
|
+
let t = ht(De, (t) => Me(V[e], t));
|
|
1902
|
+
t && (n = `Guest ${e + 1}: ${t}`);
|
|
1903
|
+
}
|
|
1904
|
+
if (n) {
|
|
1905
|
+
de(n);
|
|
1906
|
+
return;
|
|
1907
|
+
}
|
|
1908
|
+
t(C);
|
|
1909
|
+
}, Be = x?.type || x?.name || x?.label || (S ? "Abstract Submission Form" : "Registration Form"), Ve = (e) => [x?.currency, e.toLocaleString()].filter(Boolean).join(" "), He = [...ye, ...Se].filter((e) => z.includes(e.name)).reduce((e, t) => e + (Number(t.price) || 0), 0), Ue = (Number(x?.price) || 0) + He + Oe * V.length, We = x ? Ue > 0 ? Ve(Ue) : "Free" : null;
|
|
1844
1910
|
return /* @__PURE__ */ m("div", {
|
|
1845
1911
|
part: "form-page",
|
|
1846
1912
|
className: `w-full flex-1 flex flex-col relative ${g ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"}`,
|
|
1847
|
-
style:
|
|
1913
|
+
style: b,
|
|
1848
1914
|
children: [/* @__PURE__ */ p("div", {
|
|
1849
1915
|
part: "form-header",
|
|
1850
1916
|
className: `sticky top-0 z-30 px-4 sm:px-6 py-3 border-b backdrop-blur-xl transition-colors ${g ? "bg-zinc-900/85 border-zinc-800" : "bg-white/85 border-slate-200/80"}`,
|
|
@@ -1858,30 +1924,30 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1858
1924
|
children: [/* @__PURE__ */ p(te, { size: 16 }), /* @__PURE__ */ p("span", { children: "All forms" })]
|
|
1859
1925
|
}), /* @__PURE__ */ m("div", {
|
|
1860
1926
|
className: "flex items-center gap-2 min-w-0",
|
|
1861
|
-
children: [
|
|
1927
|
+
children: [x && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
|
|
1862
1928
|
part: "form-type-name",
|
|
1863
|
-
title:
|
|
1929
|
+
title: Be,
|
|
1864
1930
|
className: `hidden sm:inline-block truncate max-w-[16rem] text-xs font-semibold px-3 py-1.5 rounded-full ${g ? "bg-zinc-800 text-zinc-200" : "bg-slate-100 text-slate-700"}`,
|
|
1865
|
-
children:
|
|
1866
|
-
}), !
|
|
1931
|
+
children: Be
|
|
1932
|
+
}), !S && /* @__PURE__ */ p("span", {
|
|
1867
1933
|
part: "form-type-price",
|
|
1868
1934
|
className: "shrink-0 text-xs font-bold px-3 py-1.5 rounded-full tabular-nums",
|
|
1869
1935
|
style: {
|
|
1870
1936
|
backgroundColor: `color-mix(in srgb, ${F} 12%, transparent)`,
|
|
1871
1937
|
color: F
|
|
1872
1938
|
},
|
|
1873
|
-
children:
|
|
1939
|
+
children: We
|
|
1874
1940
|
})] }), i === "popup" && /* @__PURE__ */ m("div", {
|
|
1875
1941
|
className: `flex items-center gap-1.5 ml-2 border-l pl-2 ${g ? "border-zinc-700" : "border-slate-200"}`,
|
|
1876
1942
|
children: [/* @__PURE__ */ p("button", {
|
|
1877
1943
|
onClick: o,
|
|
1878
1944
|
className: "p-1.5 opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
|
|
1879
1945
|
title: a ? "Minimize" : "Expand",
|
|
1880
|
-
children: p(a ?
|
|
1946
|
+
children: p(a ? ze : Le, { size: 16 })
|
|
1881
1947
|
}), /* @__PURE__ */ p("button", {
|
|
1882
1948
|
onClick: c,
|
|
1883
1949
|
className: "p-1.5 opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
|
|
1884
|
-
children: /* @__PURE__ */ p(
|
|
1950
|
+
children: /* @__PURE__ */ p(lt, { size: 18 })
|
|
1885
1951
|
})]
|
|
1886
1952
|
})]
|
|
1887
1953
|
})]
|
|
@@ -1899,12 +1965,12 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1899
1965
|
children: [/* @__PURE__ */ p("p", {
|
|
1900
1966
|
className: "text-xs font-semibold uppercase tracking-wider",
|
|
1901
1967
|
style: { color: F },
|
|
1902
|
-
children:
|
|
1968
|
+
children: S ? "Abstract submission" : "Registration form"
|
|
1903
1969
|
}), /* @__PURE__ */ p("h2", {
|
|
1904
1970
|
part: "form-title",
|
|
1905
1971
|
className: `mt-1.5 text-2xl sm:text-3xl font-bold tracking-tight ${g ? "text-white" : "text-slate-900"}`,
|
|
1906
1972
|
style: $,
|
|
1907
|
-
children:
|
|
1973
|
+
children: Be
|
|
1908
1974
|
})]
|
|
1909
1975
|
}),
|
|
1910
1976
|
u && Object.keys(u).length > 0 && /* @__PURE__ */ m("div", {
|
|
@@ -1927,7 +1993,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1927
1993
|
children: [/* @__PURE__ */ p("div", {
|
|
1928
1994
|
className: "shrink-0 mt-0.5",
|
|
1929
1995
|
style: { color: F },
|
|
1930
|
-
children: /* @__PURE__ */ p(
|
|
1996
|
+
children: /* @__PURE__ */ p(ke, { size: 18 })
|
|
1931
1997
|
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
|
|
1932
1998
|
part: "notice-title",
|
|
1933
1999
|
className: "text-xs font-bold uppercase tracking-wider",
|
|
@@ -1948,9 +2014,9 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1948
2014
|
/* @__PURE__ */ p("div", {
|
|
1949
2015
|
part: "form-card",
|
|
1950
2016
|
className: `rounded-3xl border overflow-hidden divide-y ${g ? "bg-zinc-900 border-zinc-800 divide-zinc-800" : "bg-white border-slate-200/80 divide-slate-100 shadow-[0_1px_2px_rgba(15,23,42,0.04),0_12px_32px_-16px_rgba(15,23,42,0.12)]"}`,
|
|
1951
|
-
children:
|
|
2017
|
+
children: L.map((e) => X(e))
|
|
1952
2018
|
}),
|
|
1953
|
-
!
|
|
2019
|
+
!S && ve.length > 0 && /* @__PURE__ */ m("div", {
|
|
1954
2020
|
part: "addons-card",
|
|
1955
2021
|
className: `rounded-3xl border overflow-hidden ${g ? "bg-zinc-900 border-zinc-800" : "bg-white border-slate-200/80 shadow-[0_1px_2px_rgba(15,23,42,0.04),0_12px_32px_-16px_rgba(15,23,42,0.12)]"}`,
|
|
1956
2022
|
children: [
|
|
@@ -1962,7 +2028,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1962
2028
|
backgroundColor: `color-mix(in srgb, ${F} 12%, transparent)`,
|
|
1963
2029
|
color: F
|
|
1964
2030
|
},
|
|
1965
|
-
children: /* @__PURE__ */ p(
|
|
2031
|
+
children: /* @__PURE__ */ p(Qe, { size: 17 })
|
|
1966
2032
|
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h3", {
|
|
1967
2033
|
part: "addons-title",
|
|
1968
2034
|
className: `text-sm font-semibold ${g ? "text-zinc-100" : "text-slate-900"}`,
|
|
@@ -1970,14 +2036,14 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1970
2036
|
children: "Add-ons"
|
|
1971
2037
|
}), /* @__PURE__ */ p("p", {
|
|
1972
2038
|
className: `text-xs ${g ? "text-zinc-400" : "text-slate-500"}`,
|
|
1973
|
-
children:
|
|
2039
|
+
children: ye.length > 0 || be.length > 0 ? "Optional extras — charges are added to your total." : "Included with this registration."
|
|
1974
2040
|
})] })]
|
|
1975
2041
|
}),
|
|
1976
2042
|
/* @__PURE__ */ m("div", {
|
|
1977
2043
|
className: "px-5 sm:px-8 pb-5 sm:pb-6 space-y-2",
|
|
1978
2044
|
children: [
|
|
1979
|
-
|
|
1980
|
-
let t =
|
|
2045
|
+
ye.map((e) => {
|
|
2046
|
+
let t = z.includes(e.name);
|
|
1981
2047
|
return /* @__PURE__ */ m("label", {
|
|
1982
2048
|
part: t ? "addon addon-selected" : "addon",
|
|
1983
2049
|
className: `p-3.5 rounded-2xl border flex items-center gap-3 cursor-pointer transition-all ${t ? "" : g ? "border-zinc-800 bg-zinc-900 hover:border-zinc-700" : "border-slate-200 bg-white hover:border-slate-300"}`,
|
|
@@ -1989,7 +2055,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
1989
2055
|
/* @__PURE__ */ p("input", {
|
|
1990
2056
|
type: "checkbox",
|
|
1991
2057
|
checked: t,
|
|
1992
|
-
onChange: () =>
|
|
2058
|
+
onChange: () => Ee(e.name),
|
|
1993
2059
|
className: "w-4 h-4 rounded cursor-pointer shrink-0",
|
|
1994
2060
|
style: { accentColor: F }
|
|
1995
2061
|
}),
|
|
@@ -2000,13 +2066,13 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2000
2066
|
/* @__PURE__ */ p("span", {
|
|
2001
2067
|
className: "shrink-0 text-[13px] font-bold tabular-nums",
|
|
2002
2068
|
style: { color: F },
|
|
2003
|
-
children: Number(e.price) > 0 ? `+ ${
|
|
2069
|
+
children: Number(e.price) > 0 ? `+ ${Ve(Number(e.price))}` : "Free"
|
|
2004
2070
|
})
|
|
2005
2071
|
]
|
|
2006
2072
|
}, e.name);
|
|
2007
2073
|
}),
|
|
2008
|
-
|
|
2009
|
-
let t = Number(e.max) || 0, n =
|
|
2074
|
+
be.map((e) => {
|
|
2075
|
+
let t = Number(e.max) || 0, n = Te(e), r = t > 0 && n >= t;
|
|
2010
2076
|
return /* @__PURE__ */ m("div", {
|
|
2011
2077
|
part: "addon-group",
|
|
2012
2078
|
className: "pt-1",
|
|
@@ -2027,7 +2093,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2027
2093
|
}), /* @__PURE__ */ p("div", {
|
|
2028
2094
|
className: "space-y-2",
|
|
2029
2095
|
children: (e.options || []).map((t) => {
|
|
2030
|
-
let n =
|
|
2096
|
+
let n = z.includes(t.name), i = r && !n;
|
|
2031
2097
|
return /* @__PURE__ */ m("label", {
|
|
2032
2098
|
part: n ? "addon addon-selected" : "addon",
|
|
2033
2099
|
className: `p-3.5 rounded-2xl border flex items-center gap-3 transition-all ${i ? "opacity-50 cursor-not-allowed" : "cursor-pointer"} ${n ? "" : g ? "border-zinc-800 bg-zinc-900 hover:border-zinc-700" : "border-slate-200 bg-white hover:border-slate-300"}`,
|
|
@@ -2040,7 +2106,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2040
2106
|
type: "checkbox",
|
|
2041
2107
|
checked: n,
|
|
2042
2108
|
disabled: i,
|
|
2043
|
-
onChange: () =>
|
|
2109
|
+
onChange: () => Ee(t.name, e),
|
|
2044
2110
|
className: "w-4 h-4 rounded cursor-pointer shrink-0 disabled:cursor-not-allowed",
|
|
2045
2111
|
style: { accentColor: F }
|
|
2046
2112
|
}),
|
|
@@ -2051,7 +2117,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2051
2117
|
/* @__PURE__ */ p("span", {
|
|
2052
2118
|
className: "shrink-0 text-[13px] font-bold tabular-nums",
|
|
2053
2119
|
style: { color: F },
|
|
2054
|
-
children: Number(t.price) > 0 ? `+ ${
|
|
2120
|
+
children: Number(t.price) > 0 ? `+ ${Ve(Number(t.price))}` : "Free"
|
|
2055
2121
|
})
|
|
2056
2122
|
]
|
|
2057
2123
|
}, t.name);
|
|
@@ -2059,7 +2125,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2059
2125
|
})]
|
|
2060
2126
|
}, e.name);
|
|
2061
2127
|
}),
|
|
2062
|
-
|
|
2128
|
+
R.map((e) => /* @__PURE__ */ m("div", {
|
|
2063
2129
|
part: "addon addon-included",
|
|
2064
2130
|
className: `p-3.5 rounded-2xl border flex items-center gap-3 ${g ? "border-zinc-800 bg-zinc-950/60" : "border-slate-200 bg-slate-50"}`,
|
|
2065
2131
|
children: [
|
|
@@ -2079,7 +2145,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2079
2145
|
}, e.name))
|
|
2080
2146
|
]
|
|
2081
2147
|
}),
|
|
2082
|
-
|
|
2148
|
+
Ue > 0 && /* @__PURE__ */ m("div", {
|
|
2083
2149
|
className: `px-5 sm:px-8 py-4 border-t flex items-center justify-between gap-3 ${g ? "border-zinc-800 bg-zinc-950/40" : "border-slate-100 bg-slate-50/70"}`,
|
|
2084
2150
|
children: [/* @__PURE__ */ p("span", {
|
|
2085
2151
|
className: `text-sm font-semibold ${g ? "text-zinc-300" : "text-slate-600"}`,
|
|
@@ -2087,12 +2153,12 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2087
2153
|
}), /* @__PURE__ */ p("span", {
|
|
2088
2154
|
className: "text-base font-bold tabular-nums",
|
|
2089
2155
|
style: { color: F },
|
|
2090
|
-
children:
|
|
2156
|
+
children: Ve(Ue)
|
|
2091
2157
|
})]
|
|
2092
2158
|
})
|
|
2093
2159
|
]
|
|
2094
2160
|
}),
|
|
2095
|
-
|
|
2161
|
+
B && /* @__PURE__ */ m("div", {
|
|
2096
2162
|
part: "accompany-card",
|
|
2097
2163
|
className: `rounded-3xl border overflow-hidden ${g ? "bg-zinc-900 border-zinc-800" : "bg-white border-slate-200/80 shadow-[0_1px_2px_rgba(15,23,42,0.04),0_12px_32px_-16px_rgba(15,23,42,0.12)]"}`,
|
|
2098
2164
|
children: [/* @__PURE__ */ m("div", {
|
|
@@ -2103,7 +2169,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2103
2169
|
backgroundColor: `color-mix(in srgb, ${F} 12%, transparent)`,
|
|
2104
2170
|
color: F
|
|
2105
2171
|
},
|
|
2106
|
-
children: /* @__PURE__ */ p(
|
|
2172
|
+
children: /* @__PURE__ */ p(st, { size: 17 })
|
|
2107
2173
|
}), /* @__PURE__ */ m("div", {
|
|
2108
2174
|
className: "min-w-0",
|
|
2109
2175
|
children: [/* @__PURE__ */ p("h3", {
|
|
@@ -2113,12 +2179,12 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2113
2179
|
children: "Accompanying people"
|
|
2114
2180
|
}), /* @__PURE__ */ m("p", {
|
|
2115
2181
|
className: `text-xs ${g ? "text-zinc-400" : "text-slate-500"}`,
|
|
2116
|
-
children: [
|
|
2182
|
+
children: [Oe > 0 ? `${Ve(Oe)} per guest` : "No extra charge", Ae ? ` · up to ${Ae}` : ""]
|
|
2117
2183
|
})]
|
|
2118
2184
|
})]
|
|
2119
2185
|
}), /* @__PURE__ */ m("div", {
|
|
2120
2186
|
className: "px-5 sm:px-8 pb-5 sm:pb-6 space-y-3",
|
|
2121
|
-
children: [
|
|
2187
|
+
children: [V.map((e, t) => /* @__PURE__ */ m("div", {
|
|
2122
2188
|
part: "accompany-guest",
|
|
2123
2189
|
className: `rounded-2xl border p-4 ${g ? "border-zinc-800 bg-zinc-950/60" : "border-slate-200 bg-slate-50/70"}`,
|
|
2124
2190
|
children: [/* @__PURE__ */ m("div", {
|
|
@@ -2128,68 +2194,209 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2128
2194
|
children: ["Guest ", t + 1]
|
|
2129
2195
|
}), /* @__PURE__ */ p("button", {
|
|
2130
2196
|
type: "button",
|
|
2131
|
-
onClick: () =>
|
|
2197
|
+
onClick: () => G(t),
|
|
2132
2198
|
title: "Remove guest",
|
|
2133
2199
|
className: `shrink-0 p-1.5 rounded-lg cursor-pointer transition-colors ${g ? "text-zinc-500 hover:text-red-400" : "text-slate-400 hover:text-red-500"}`,
|
|
2134
|
-
children: /* @__PURE__ */ p(
|
|
2200
|
+
children: /* @__PURE__ */ p(et, { size: 15 })
|
|
2135
2201
|
})]
|
|
2136
2202
|
}), /* @__PURE__ */ p("div", {
|
|
2137
2203
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
|
|
2138
|
-
children:
|
|
2204
|
+
children: De.map((n) => Ie(n, e, t))
|
|
2139
2205
|
})]
|
|
2140
2206
|
}, t)), /* @__PURE__ */ m("button", {
|
|
2141
2207
|
type: "button",
|
|
2142
|
-
onClick:
|
|
2143
|
-
disabled: !
|
|
2208
|
+
onClick: W,
|
|
2209
|
+
disabled: !H,
|
|
2144
2210
|
style: {
|
|
2145
2211
|
borderColor: F,
|
|
2146
2212
|
color: F
|
|
2147
2213
|
},
|
|
2148
2214
|
className: "w-full h-12 rounded-2xl border border-dashed text-sm font-semibold flex items-center justify-center gap-2 transition-opacity hover:opacity-80 cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",
|
|
2149
|
-
children: [/* @__PURE__ */ p(
|
|
2215
|
+
children: [/* @__PURE__ */ p(rt, { size: 16 }), H ? "Add guest" : `Limit of ${Ae} reached`]
|
|
2150
2216
|
})]
|
|
2151
2217
|
})]
|
|
2152
2218
|
}),
|
|
2153
2219
|
/* @__PURE__ */ m("div", {
|
|
2154
2220
|
className: "pt-2 pb-10",
|
|
2155
|
-
children: [
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2221
|
+
children: [
|
|
2222
|
+
I && /* @__PURE__ */ p("div", {
|
|
2223
|
+
part: "form-error",
|
|
2224
|
+
role: "alert",
|
|
2225
|
+
className: "mb-3 text-sm font-medium text-red-500 text-center",
|
|
2226
|
+
children: I
|
|
2227
|
+
}),
|
|
2228
|
+
/* @__PURE__ */ m("button", {
|
|
2229
|
+
part: "button button-primary submit-button",
|
|
2230
|
+
type: "submit",
|
|
2231
|
+
disabled: T !== null || D !== null,
|
|
2232
|
+
style: {
|
|
2233
|
+
background: `linear-gradient(135deg, ${F}, color-mix(in srgb, ${F} 80%, black))`,
|
|
2234
|
+
boxShadow: `0 12px 28px -12px color-mix(in srgb, ${F} 70%, transparent)`
|
|
2235
|
+
},
|
|
2236
|
+
className: "group w-full h-14 px-8 text-base font-semibold text-white rounded-2xl hover:brightness-110 active:scale-[0.99] transition-all cursor-pointer flex items-center justify-center gap-2.5 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
2237
|
+
children: [/* @__PURE__ */ p("span", { children: S ? "Submit Abstract" : "Complete Registration" }), /* @__PURE__ */ p(ne, {
|
|
2238
|
+
size: 18,
|
|
2239
|
+
className: "transition-transform group-hover:translate-x-0.5"
|
|
2240
|
+
})]
|
|
2241
|
+
}),
|
|
2242
|
+
/* @__PURE__ */ p("p", {
|
|
2243
|
+
className: `mt-3 text-center text-xs ${g ? "text-zinc-500" : "text-slate-400"}`,
|
|
2244
|
+
children: "Please review your details before submitting."
|
|
2245
|
+
})
|
|
2246
|
+
]
|
|
2172
2247
|
})
|
|
2173
2248
|
]
|
|
2174
2249
|
})
|
|
2175
2250
|
})]
|
|
2176
2251
|
});
|
|
2177
|
-
},
|
|
2252
|
+
}, bt = ({ qrUrl: e, schema: t, amount: n, currency: r, registrationNumber: i, apiClient: a, primaryColor: o, isDark: s, onSubmitted: c }) => {
|
|
2253
|
+
let [l, u] = d({}), [f, h] = d({}), [g, _] = d(null), [v, y] = d(!1), [b, x] = d(null), S = `w-full px-3 py-2.5 rounded-lg border text-sm outline-none transition-colors ${s ? "bg-zinc-900 border-zinc-700 text-white placeholder-zinc-500 focus:border-zinc-500" : "bg-white border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500"}`, C = async (e, t) => {
|
|
2254
|
+
_(e.id), x(null);
|
|
2255
|
+
try {
|
|
2256
|
+
let n = await a.uploadFile(t, null, null, e.label), r = n?.data?.asset_id || n?.asset_id;
|
|
2257
|
+
if (!r) throw Error("Upload response missing asset_id");
|
|
2258
|
+
u((t) => ({
|
|
2259
|
+
...t,
|
|
2260
|
+
[e.id]: r
|
|
2261
|
+
})), h((n) => ({
|
|
2262
|
+
...n,
|
|
2263
|
+
[e.id]: t.name
|
|
2264
|
+
}));
|
|
2265
|
+
} catch (e) {
|
|
2266
|
+
x(e?.message || "File upload failed. Please try again.");
|
|
2267
|
+
} finally {
|
|
2268
|
+
_(null);
|
|
2269
|
+
}
|
|
2270
|
+
};
|
|
2271
|
+
return /* @__PURE__ */ m("div", {
|
|
2272
|
+
part: "custom-qr",
|
|
2273
|
+
className: "w-full max-w-sm text-left",
|
|
2274
|
+
children: [
|
|
2275
|
+
e && /* @__PURE__ */ m("div", {
|
|
2276
|
+
className: `flex flex-col items-center p-4 mb-5 rounded-xl border ${s ? "bg-zinc-900 border-zinc-700" : "bg-gray-50 border-gray-200"}`,
|
|
2277
|
+
children: [
|
|
2278
|
+
/* @__PURE__ */ p("img", {
|
|
2279
|
+
part: "custom-qr-image",
|
|
2280
|
+
src: e,
|
|
2281
|
+
alt: "Payment QR code",
|
|
2282
|
+
className: "w-44 h-44 object-contain rounded-lg bg-white p-2"
|
|
2283
|
+
}),
|
|
2284
|
+
n && /* @__PURE__ */ m("p", {
|
|
2285
|
+
className: `mt-3 text-lg font-bold ${s ? "text-white" : "text-gray-900"}`,
|
|
2286
|
+
style: $,
|
|
2287
|
+
children: [
|
|
2288
|
+
r,
|
|
2289
|
+
" ",
|
|
2290
|
+
n
|
|
2291
|
+
]
|
|
2292
|
+
}),
|
|
2293
|
+
/* @__PURE__ */ p("p", {
|
|
2294
|
+
className: `mt-1 text-xs text-center ${s ? "text-zinc-400" : "text-gray-500"}`,
|
|
2295
|
+
children: "Scan the code to pay, then fill in the details below."
|
|
2296
|
+
})
|
|
2297
|
+
]
|
|
2298
|
+
}),
|
|
2299
|
+
/* @__PURE__ */ p("div", {
|
|
2300
|
+
className: "space-y-4",
|
|
2301
|
+
children: t.map((e) => /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
|
|
2302
|
+
className: `block text-xs font-bold mb-1.5 ${s ? "text-zinc-300" : "text-gray-700"}`,
|
|
2303
|
+
children: [e.label, e.is_required && /* @__PURE__ */ p("span", {
|
|
2304
|
+
className: "text-red-500 ml-1",
|
|
2305
|
+
children: "*"
|
|
2306
|
+
})]
|
|
2307
|
+
}), e.type === "file" ? /* @__PURE__ */ m("label", {
|
|
2308
|
+
part: "custom-qr-file",
|
|
2309
|
+
className: `flex items-center gap-2 px-3 py-2.5 rounded-lg border border-dashed cursor-pointer text-sm transition-colors ${s ? "border-zinc-700 text-zinc-300 hover:border-zinc-500" : "border-gray-300 text-gray-600 hover:border-gray-500"}`,
|
|
2310
|
+
children: [
|
|
2311
|
+
g === e.id ? /* @__PURE__ */ p(G, {
|
|
2312
|
+
size: 15,
|
|
2313
|
+
className: "animate-spin shrink-0"
|
|
2314
|
+
}) : l[e.id] ? /* @__PURE__ */ p(se, {
|
|
2315
|
+
size: 15,
|
|
2316
|
+
className: "shrink-0",
|
|
2317
|
+
style: { color: o }
|
|
2318
|
+
}) : /* @__PURE__ */ p(tt, {
|
|
2319
|
+
size: 15,
|
|
2320
|
+
className: "shrink-0"
|
|
2321
|
+
}),
|
|
2322
|
+
/* @__PURE__ */ p("span", {
|
|
2323
|
+
className: "truncate",
|
|
2324
|
+
children: g === e.id ? "Uploading…" : f[e.id] || "Choose a file"
|
|
2325
|
+
}),
|
|
2326
|
+
/* @__PURE__ */ p("input", {
|
|
2327
|
+
type: "file",
|
|
2328
|
+
className: "hidden",
|
|
2329
|
+
disabled: g === e.id || v,
|
|
2330
|
+
onChange: (t) => {
|
|
2331
|
+
let n = t.target.files?.[0];
|
|
2332
|
+
n && C(e, n);
|
|
2333
|
+
}
|
|
2334
|
+
})
|
|
2335
|
+
]
|
|
2336
|
+
}) : /* @__PURE__ */ p("input", {
|
|
2337
|
+
type: e.type === "number" ? "number" : "text",
|
|
2338
|
+
className: S,
|
|
2339
|
+
value: l[e.id] ?? "",
|
|
2340
|
+
disabled: v,
|
|
2341
|
+
onChange: (t) => u((n) => ({
|
|
2342
|
+
...n,
|
|
2343
|
+
[e.id]: t.target.value
|
|
2344
|
+
}))
|
|
2345
|
+
})] }, e.id))
|
|
2346
|
+
}),
|
|
2347
|
+
b && /* @__PURE__ */ p("p", {
|
|
2348
|
+
part: "custom-qr-error",
|
|
2349
|
+
className: "mt-3 text-sm text-red-500",
|
|
2350
|
+
children: b
|
|
2351
|
+
}),
|
|
2352
|
+
/* @__PURE__ */ m("button", {
|
|
2353
|
+
part: "button button-primary",
|
|
2354
|
+
type: "button",
|
|
2355
|
+
onClick: async () => {
|
|
2356
|
+
let e = t.find((e) => e.is_required && !String(l[e.id] ?? "").trim());
|
|
2357
|
+
if (e) {
|
|
2358
|
+
x(`${e.label} is required.`);
|
|
2359
|
+
return;
|
|
2360
|
+
}
|
|
2361
|
+
if (!i) {
|
|
2362
|
+
x("Registration number missing — please reload and try again.");
|
|
2363
|
+
return;
|
|
2364
|
+
}
|
|
2365
|
+
y(!0), x(null);
|
|
2366
|
+
try {
|
|
2367
|
+
await a.submitCustomQrPayment(i, l), c(l);
|
|
2368
|
+
} catch (e) {
|
|
2369
|
+
x(e?.message || "Could not submit your payment details. Please try again.");
|
|
2370
|
+
} finally {
|
|
2371
|
+
y(!1);
|
|
2372
|
+
}
|
|
2373
|
+
},
|
|
2374
|
+
disabled: v || !!g,
|
|
2375
|
+
style: { backgroundColor: o },
|
|
2376
|
+
className: "mt-5 w-full flex items-center justify-center gap-2 font-bold px-5 py-3 rounded-lg text-white shadow-md transition-opacity hover:opacity-90 disabled:opacity-60 disabled:cursor-not-allowed cursor-pointer",
|
|
2377
|
+
children: [v && /* @__PURE__ */ p(G, {
|
|
2378
|
+
size: 16,
|
|
2379
|
+
className: "animate-spin"
|
|
2380
|
+
}), /* @__PURE__ */ p("span", { children: v ? "Submitting…" : "I have paid" })]
|
|
2381
|
+
})
|
|
2382
|
+
]
|
|
2383
|
+
});
|
|
2384
|
+
}, xt = /* @__PURE__ */ new Set([
|
|
2178
2385
|
"salutation",
|
|
2179
2386
|
"name",
|
|
2180
2387
|
"email",
|
|
2181
2388
|
"phone"
|
|
2182
|
-
]),
|
|
2183
|
-
let [l, u] = d(() => t.getToken() ? "profile" : "login"), [h, g] = d(!1), [_, v] = d(!1), [y, b] = d(null), [x, S] = d(null), [C, w] = d(null), [T, E] = d(""), [D, O] = d(""), [ee, k] = d(""), [A, j] = d(""), [M,
|
|
2389
|
+
]), St = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1, isWidgetPage: a = !1, onEvent: o, onError: c }) => {
|
|
2390
|
+
let [l, u] = d(() => t.getToken() ? "profile" : "login"), [h, g] = d(!1), [_, v] = d(!1), [y, b] = d(null), [x, S] = d(null), [C, w] = d(null), [T, E] = d(""), [D, O] = d(""), [ee, k] = d(""), [A, j] = d(""), [M, N] = d(""), [re, ie] = d(""), [oe, ce] = d(""), [le, ue] = d(!1), [I, fe] = d(null), [pe, me] = d({}), [he, ge] = d([]), [_e, L] = d({}), [ye, R] = d(null), [Se, z] = d(null), [Te, B] = d(null), [Oe, ke] = d(!1), [Ae, H] = d(!1), [W, G] = d({}), [je, K] = d(!1), [q, Pe] = d(null), [X, Ie] = d({}), [Le, Re] = d({}), [ze, Be] = d(null), [Ve, He] = d("details"), [We, Ke] = d({}), [Je, Ye] = d(!1);
|
|
2184
2391
|
s(() => {
|
|
2185
2392
|
let e = t.getToken();
|
|
2186
|
-
e &&
|
|
2393
|
+
e && Z(e);
|
|
2187
2394
|
}, []);
|
|
2188
|
-
let
|
|
2395
|
+
let Z = async (r) => {
|
|
2189
2396
|
g(!0), S(null);
|
|
2190
2397
|
try {
|
|
2191
2398
|
let i = await e.portalGetProfile(r), a = i?.data || i || {};
|
|
2192
|
-
|
|
2399
|
+
fe(a);
|
|
2193
2400
|
let s = a.registration || {}, c = s.custom_data || {}, l = s.email || a.email || "", d = null;
|
|
2194
2401
|
if (l) try {
|
|
2195
2402
|
let t = await e.getDraftByEmail(l);
|
|
@@ -2207,7 +2414,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2207
2414
|
let f = d?.custom_data || {};
|
|
2208
2415
|
s.name ? k(s.name) : d?.name ? k(d.name) : a.name && k(a.name);
|
|
2209
2416
|
let p = 0, m = {}, h = [...a.editable_fields || []];
|
|
2210
|
-
|
|
2417
|
+
fe({
|
|
2211
2418
|
...a,
|
|
2212
2419
|
editable_fields: h
|
|
2213
2420
|
});
|
|
@@ -2217,13 +2424,13 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2217
2424
|
let t = s[`${e.id}_asset_id`] || c[`${e.id}_asset_id`] || s.asset_id || c.asset_id || a.asset_id;
|
|
2218
2425
|
t && (g[e.id] = String(t));
|
|
2219
2426
|
}
|
|
2220
|
-
}),
|
|
2427
|
+
}), L((e) => ({
|
|
2221
2428
|
...g,
|
|
2222
2429
|
...e
|
|
2223
2430
|
}));
|
|
2224
2431
|
let _ = s.asset_id || s.photo_id || c.asset_id || c.photo_id || a.asset_id;
|
|
2225
|
-
_ &&
|
|
2226
|
-
let t = e.label || e.name || e.id, n =
|
|
2432
|
+
_ && R(String(_)), h.length > 0 ? h.forEach((e) => {
|
|
2433
|
+
let t = e.label || e.name || e.id, n = ft(e.id, e.label), r = pt(e.label, e.id), i = "";
|
|
2227
2434
|
if (t && s[t] !== void 0 && s[t] !== null && s[t] !== "" ? i = s[t] : s[r] !== void 0 && s[r] !== null && s[r] !== "" ? i = s[r] : s[n] !== void 0 && s[n] !== null && s[n] !== "" ? i = s[n] : s[e.id] !== void 0 && s[e.id] !== null && s[e.id] !== "" ? i = s[e.id] : t && c[t] !== void 0 && c[t] !== null && c[t] !== "" ? i = c[t] : c[r] !== void 0 && c[r] !== null && c[r] !== "" ? i = c[r] : c[n] !== void 0 && c[n] !== null && c[n] !== "" ? i = c[n] : c[e.id] !== void 0 && c[e.id] !== null && c[e.id] !== "" && (i = c[e.id]), d) {
|
|
2228
2435
|
let t = d[n] ?? d[e.id] ?? f[n] ?? f[e.id] ?? (e.id === "salutation" ? d.salutation || d.title : void 0) ?? (e.id === "name" ? d.name || d.fullName || d.full_name : void 0) ?? (e.id === "email" ? d.email : void 0) ?? (e.id === "phone" ? d.phone || d.mobile || d.phoneNumber : void 0);
|
|
2229
2436
|
t != null && t !== "" && (i = t, p++);
|
|
@@ -2231,12 +2438,12 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2231
2438
|
m[e.id] = i;
|
|
2232
2439
|
}) : Object.entries(a).forEach(([e, t]) => {
|
|
2233
2440
|
e.toLowerCase() !== "token" && (m[e] = t);
|
|
2234
|
-
}), me(m), p > 0 &&
|
|
2441
|
+
}), me(m), p > 0 && ke(!0);
|
|
2235
2442
|
let v = (a.addons?.items || []).filter((e) => e.purchased).map((e) => e.name);
|
|
2236
2443
|
d?.selected_items && Array.isArray(d.selected_items) && d.selected_items.forEach((e) => {
|
|
2237
2444
|
let t = typeof e == "string" ? e : e?.name;
|
|
2238
2445
|
t && !v.includes(t) && v.push(t);
|
|
2239
|
-
}),
|
|
2446
|
+
}), ge(v), u("profile"), o?.("attendee_profile_loaded", {
|
|
2240
2447
|
profile: a,
|
|
2241
2448
|
draft: d
|
|
2242
2449
|
});
|
|
@@ -2245,7 +2452,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2245
2452
|
} finally {
|
|
2246
2453
|
g(!1);
|
|
2247
2454
|
}
|
|
2248
|
-
},
|
|
2455
|
+
}, Ze = async (r) => {
|
|
2249
2456
|
if (r.preventDefault(), !T.trim() || !D) {
|
|
2250
2457
|
S("Please enter both your identifier and password.");
|
|
2251
2458
|
return;
|
|
@@ -2260,7 +2467,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2260
2467
|
(n?.data?.name || n?.name) && k(n.data?.name || n.name), t.setToken(r), o?.("attendee_logged_in", {
|
|
2261
2468
|
identifier: T,
|
|
2262
2469
|
response: n
|
|
2263
|
-
}), await
|
|
2470
|
+
}), await Z(r);
|
|
2264
2471
|
} catch (e) {
|
|
2265
2472
|
n.error("Login failed", e);
|
|
2266
2473
|
let t = e.message || "Login failed. Please check your credentials.";
|
|
@@ -2272,14 +2479,14 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2272
2479
|
} finally {
|
|
2273
2480
|
g(!1);
|
|
2274
2481
|
}
|
|
2275
|
-
},
|
|
2482
|
+
}, $e = async (t) => {
|
|
2276
2483
|
t.preventDefault();
|
|
2277
2484
|
let r = (A || T).trim();
|
|
2278
2485
|
if (!r) {
|
|
2279
2486
|
S("Please enter your registration number or email to receive a code.");
|
|
2280
2487
|
return;
|
|
2281
2488
|
}
|
|
2282
|
-
|
|
2489
|
+
ue(!0), S(null), w(null);
|
|
2283
2490
|
try {
|
|
2284
2491
|
await e.portalRequestPasswordReset(r), w("A verification code has been sent to your registered email."), o?.("password_reset_code_requested", { identifier: r }), u("reset");
|
|
2285
2492
|
} catch (e) {
|
|
@@ -2291,9 +2498,9 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2291
2498
|
error: e
|
|
2292
2499
|
});
|
|
2293
2500
|
} finally {
|
|
2294
|
-
|
|
2501
|
+
ue(!1);
|
|
2295
2502
|
}
|
|
2296
|
-
},
|
|
2503
|
+
}, Q = async (r) => {
|
|
2297
2504
|
r.preventDefault();
|
|
2298
2505
|
let i = (A || T).trim();
|
|
2299
2506
|
if (!i) {
|
|
@@ -2304,11 +2511,11 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2304
2511
|
S("Please enter the verification code sent to your email.");
|
|
2305
2512
|
return;
|
|
2306
2513
|
}
|
|
2307
|
-
if (!
|
|
2514
|
+
if (!re) {
|
|
2308
2515
|
S("Please enter a new password.");
|
|
2309
2516
|
return;
|
|
2310
2517
|
}
|
|
2311
|
-
if (
|
|
2518
|
+
if (re !== oe) {
|
|
2312
2519
|
S("New password and confirm password do not match.");
|
|
2313
2520
|
return;
|
|
2314
2521
|
}
|
|
@@ -2317,12 +2524,12 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2317
2524
|
let n = await e.portalConfirmPasswordReset({
|
|
2318
2525
|
identifier: i,
|
|
2319
2526
|
code: M.trim(),
|
|
2320
|
-
new_password:
|
|
2527
|
+
new_password: re
|
|
2321
2528
|
}), r = n?.data?.token || n?.token;
|
|
2322
2529
|
(n?.data?.name || n?.name) && k(n.data?.name || n.name), o?.("password_reset_success", {
|
|
2323
2530
|
identifier: i,
|
|
2324
2531
|
response: n
|
|
2325
|
-
}), r ? (t.setToken(r),
|
|
2532
|
+
}), r ? (t.setToken(r), N(""), ie(""), ce(""), await Z(r)) : (E(i), O(""), N(""), ie(""), ce(""), u("login"), w("Password updated successfully! Please login with your new password."));
|
|
2326
2533
|
} catch (e) {
|
|
2327
2534
|
n.error("Password reset failed", e);
|
|
2328
2535
|
let t = e.message || "Failed to update password. Please check the code.";
|
|
@@ -2334,9 +2541,9 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2334
2541
|
} finally {
|
|
2335
2542
|
g(!1);
|
|
2336
2543
|
}
|
|
2337
|
-
},
|
|
2338
|
-
t.clearToken(),
|
|
2339
|
-
},
|
|
2544
|
+
}, nt = () => {
|
|
2545
|
+
t.clearToken(), fe(null), me({}), ge([]), L({}), R(null), B(null), k(""), O(""), u("login"), w("Logged out successfully."), o?.("attendee_logged_out", {});
|
|
2546
|
+
}, rt = async (r, i) => {
|
|
2340
2547
|
let a = t.getToken();
|
|
2341
2548
|
if (!a) {
|
|
2342
2549
|
S("Session expired. Please log in again.");
|
|
@@ -2349,10 +2556,10 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2349
2556
|
n && me((e) => ({
|
|
2350
2557
|
...e,
|
|
2351
2558
|
[r]: n
|
|
2352
|
-
})), s && (
|
|
2559
|
+
})), s && (L((e) => ({
|
|
2353
2560
|
...e,
|
|
2354
2561
|
[r]: String(s)
|
|
2355
|
-
})),
|
|
2562
|
+
})), R(String(s))), w(`File "${i.name}" uploaded successfully!`), o?.("portal_file_uploaded", {
|
|
2356
2563
|
fieldId: r,
|
|
2357
2564
|
serveUrl: n,
|
|
2358
2565
|
assetId: s,
|
|
@@ -2375,8 +2582,8 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2375
2582
|
S("Session expired. Please log in again.");
|
|
2376
2583
|
return;
|
|
2377
2584
|
}
|
|
2378
|
-
let a =
|
|
2379
|
-
|
|
2585
|
+
let a = pe[r], s = dt(a) || _e[r] || ye;
|
|
2586
|
+
z(r), S(null), w(null);
|
|
2380
2587
|
try {
|
|
2381
2588
|
s && (n.log(`Deleting asset ${s} for field ${r}...`), await e.portalDeleteFile(i, s), n.log(`Asset ${s} deleted successfully.`), o?.("portal_file_deleted", {
|
|
2382
2589
|
assetId: s,
|
|
@@ -2384,10 +2591,10 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2384
2591
|
})), me((e) => ({
|
|
2385
2592
|
...e,
|
|
2386
2593
|
[r]: ""
|
|
2387
|
-
})),
|
|
2594
|
+
})), L((e) => {
|
|
2388
2595
|
let t = { ...e };
|
|
2389
2596
|
return delete t[r], t;
|
|
2390
|
-
}), ye === s &&
|
|
2597
|
+
}), ye === s && R(null), w("File removed successfully.");
|
|
2391
2598
|
} catch (e) {
|
|
2392
2599
|
n.error("Failed to delete file", e);
|
|
2393
2600
|
let t = e.message || "Failed to delete file. Please try again.";
|
|
@@ -2397,27 +2604,32 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2397
2604
|
error: e
|
|
2398
2605
|
});
|
|
2399
2606
|
} finally {
|
|
2400
|
-
|
|
2607
|
+
z(null);
|
|
2401
2608
|
}
|
|
2402
2609
|
}, ot = (e, t) => {
|
|
2403
|
-
t ||
|
|
2404
|
-
},
|
|
2610
|
+
t || ge((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
|
|
2611
|
+
}, ct = async (r) => {
|
|
2405
2612
|
r.preventDefault();
|
|
2406
2613
|
let i = t.getToken();
|
|
2407
2614
|
if (!i) {
|
|
2408
2615
|
S("Session expired. Please log in again.");
|
|
2409
2616
|
return;
|
|
2410
2617
|
}
|
|
2618
|
+
let a = I?.locked_fields || [], s = ht((I?.editable_fields || []).filter((e) => !a.includes(e.id) && !a.includes(ft(e.id, e.label))), (e) => pe[e.id]);
|
|
2619
|
+
if (s) {
|
|
2620
|
+
w(null), S(s);
|
|
2621
|
+
return;
|
|
2622
|
+
}
|
|
2411
2623
|
v(!0), S(null), w(null);
|
|
2412
2624
|
try {
|
|
2413
2625
|
let t = I?.editable_fields || [], n = { ...I?.registration?.custom_data || {} }, r = {};
|
|
2414
2626
|
t.forEach((e) => {
|
|
2415
|
-
let t =
|
|
2627
|
+
let t = pe[e.id], i = e.label || e.name || e.id, a = pt(e.label, e.id), o = ft(e.id, e.label);
|
|
2416
2628
|
if (e.type === "file") {
|
|
2417
2629
|
let s = typeof t == "string" ? t : t?.serve_url || t?.url || "";
|
|
2418
2630
|
delete n[i], delete n[a], n[o] = s, r[o] = s, o !== e.id && (r[e.id] = s);
|
|
2419
2631
|
} else e.builtin ? (r[o] = t, o !== e.id && (r[e.id] = t)) : (n[o] = t, r[o] = t, o !== e.id && (n[e.id] = t, r[e.id] = t));
|
|
2420
|
-
}), r.custom_data = n, r.addons =
|
|
2632
|
+
}), r.custom_data = n, r.addons = he;
|
|
2421
2633
|
let a = await e.portalUpdateProfile(i, r);
|
|
2422
2634
|
o?.("attendee_profile_updated", {
|
|
2423
2635
|
payload: r,
|
|
@@ -2425,10 +2637,10 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2425
2637
|
});
|
|
2426
2638
|
let s = a?.data?.addon_checkout?.payment_url || a?.addon_checkout?.payment_url || a?.data?.payment_url || a?.payment_url;
|
|
2427
2639
|
if (s && typeof s == "string" && s.trim() !== "") {
|
|
2428
|
-
|
|
2640
|
+
B(s), w("Add-ons updated! Opening payment page in a new tab..."), o?.("addon_payment_opened", { payment_url: s }), window.open(s, "_blank", "noopener,noreferrer"), await Z(i);
|
|
2429
2641
|
return;
|
|
2430
2642
|
}
|
|
2431
|
-
w("Profile updated successfully!"), await
|
|
2643
|
+
w("Profile updated successfully!"), await Z(i);
|
|
2432
2644
|
} catch (e) {
|
|
2433
2645
|
n.error("Failed to update profile", e);
|
|
2434
2646
|
let t = e.message || "Failed to update profile. Please try again.";
|
|
@@ -2440,25 +2652,25 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2440
2652
|
} finally {
|
|
2441
2653
|
v(!1);
|
|
2442
2654
|
}
|
|
2443
|
-
},
|
|
2655
|
+
}, lt = () => {
|
|
2444
2656
|
let e = I?.review_submission;
|
|
2445
2657
|
if (!e) return;
|
|
2446
2658
|
let t = e.custom_data || {}, n = {}, r = {};
|
|
2447
2659
|
(e.editable_fields || []).forEach((i) => {
|
|
2448
|
-
i.id === "name" ? n[i.id] = e.name || "" : i.id === "phone" ? n[i.id] = e.phone || "" : i.id === "registration_type" ? n[i.id] = e.registration_type || "" : n[i.id] = t[i.id] ?? t[
|
|
2449
|
-
}),
|
|
2450
|
-
},
|
|
2451
|
-
if (
|
|
2660
|
+
i.id === "name" ? n[i.id] = e.name || "" : i.id === "phone" ? n[i.id] = e.phone || "" : i.id === "registration_type" ? n[i.id] = e.registration_type || "" : n[i.id] = t[i.id] ?? t[ft(i.id, i.label)] ?? "", i.type === "file" && (r[i.id] = i.current_file?.text || "");
|
|
2661
|
+
}), G(n), Re(r), Ie({}), H(!0);
|
|
2662
|
+
}, ut = (e) => {
|
|
2663
|
+
if (X[e.id]) return X[e.id];
|
|
2452
2664
|
let t = e.current_file;
|
|
2453
2665
|
return t && !t.serve_url && t.text ? "text" : "file";
|
|
2454
|
-
},
|
|
2666
|
+
}, mt = async (r, i) => {
|
|
2455
2667
|
let a = t.getToken();
|
|
2456
2668
|
if (!a) {
|
|
2457
2669
|
S("Session expired. Please log in again.");
|
|
2458
2670
|
return;
|
|
2459
2671
|
}
|
|
2460
2672
|
let s = (I?.review_submission?.editable_fields || []).find((e) => e.id === r), l = s?.current_file?.id;
|
|
2461
|
-
|
|
2673
|
+
Pe(r), S(null), w(null);
|
|
2462
2674
|
try {
|
|
2463
2675
|
if (l) try {
|
|
2464
2676
|
await e.deleteFile(l, a);
|
|
@@ -2467,7 +2679,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2467
2679
|
}
|
|
2468
2680
|
let t = await e.uploadFile(i, a, null, s?.label), c = t?.data?.asset_id || t?.asset_id;
|
|
2469
2681
|
if (!c) throw Error("Upload response missing asset_id");
|
|
2470
|
-
|
|
2682
|
+
G((e) => ({
|
|
2471
2683
|
...e,
|
|
2472
2684
|
[r]: String(c)
|
|
2473
2685
|
})), w(`File "${i.name}" uploaded successfully!`), o?.("portal_submission_file_uploaded", {
|
|
@@ -2484,25 +2696,25 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2484
2696
|
error: e
|
|
2485
2697
|
});
|
|
2486
2698
|
} finally {
|
|
2487
|
-
|
|
2699
|
+
Pe(null);
|
|
2488
2700
|
}
|
|
2489
|
-
},
|
|
2701
|
+
}, gt = async (r) => {
|
|
2490
2702
|
let i = t.getToken();
|
|
2491
2703
|
if (!i) {
|
|
2492
2704
|
S("Session expired. Please log in again.");
|
|
2493
2705
|
return;
|
|
2494
2706
|
}
|
|
2495
|
-
let a = (
|
|
2707
|
+
let a = (Le[r] || "").trim();
|
|
2496
2708
|
if (a) {
|
|
2497
|
-
|
|
2709
|
+
Pe(r), S(null), w(null);
|
|
2498
2710
|
try {
|
|
2499
2711
|
let t = await e.portalUpdateSubmission(i, { [r]: { text: a } }), n = t?.data || t;
|
|
2500
|
-
|
|
2712
|
+
fe((e) => ({
|
|
2501
2713
|
...e,
|
|
2502
2714
|
review_submission: n
|
|
2503
2715
|
}));
|
|
2504
2716
|
let s = (n?.editable_fields || []).find((e) => e.id === r)?.current_file?.id;
|
|
2505
|
-
s &&
|
|
2717
|
+
s && G((e) => ({
|
|
2506
2718
|
...e,
|
|
2507
2719
|
[r]: String(s)
|
|
2508
2720
|
})), w("Text answer saved!"), o?.("portal_submission_text_saved", { fieldId: r });
|
|
@@ -2515,24 +2727,29 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2515
2727
|
error: e
|
|
2516
2728
|
});
|
|
2517
2729
|
} finally {
|
|
2518
|
-
|
|
2730
|
+
Pe(null);
|
|
2519
2731
|
}
|
|
2520
2732
|
}
|
|
2521
|
-
},
|
|
2733
|
+
}, vt = async (r) => {
|
|
2522
2734
|
r.preventDefault();
|
|
2523
2735
|
let i = t.getToken();
|
|
2524
2736
|
if (!i) {
|
|
2525
2737
|
S("Session expired. Please log in again.");
|
|
2526
2738
|
return;
|
|
2527
2739
|
}
|
|
2528
|
-
|
|
2740
|
+
let a = ht((I?.review_submission?.editable_fields || []).filter((e) => e.id !== "registration_type"), (e) => W[e.id]);
|
|
2741
|
+
if (a) {
|
|
2742
|
+
w(null), S(a);
|
|
2743
|
+
return;
|
|
2744
|
+
}
|
|
2745
|
+
K(!0), S(null), w(null);
|
|
2529
2746
|
try {
|
|
2530
|
-
let t = await e.portalUpdateSubmission(i,
|
|
2531
|
-
|
|
2747
|
+
let t = await e.portalUpdateSubmission(i, W), n = t?.data || t;
|
|
2748
|
+
fe((e) => ({
|
|
2532
2749
|
...e,
|
|
2533
2750
|
review_submission: n
|
|
2534
|
-
})),
|
|
2535
|
-
payload:
|
|
2751
|
+
})), H(!1), w("Your submission was updated successfully!"), o?.("attendee_submission_updated", {
|
|
2752
|
+
payload: W,
|
|
2536
2753
|
response: t
|
|
2537
2754
|
});
|
|
2538
2755
|
} catch (e) {
|
|
@@ -2544,19 +2761,19 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2544
2761
|
error: e
|
|
2545
2762
|
});
|
|
2546
2763
|
} finally {
|
|
2547
|
-
|
|
2764
|
+
K(!1);
|
|
2548
2765
|
}
|
|
2549
|
-
},
|
|
2766
|
+
}, yt = (e) => xt.has(e.id) ? e.id : ft(e.id, e.label), bt = (e, t) => (xt.has(t.id) ? e[t.id] : (e.custom_data || {})[yt(t)]) ?? "", St = (e, t) => Ke((n) => xt.has(e.id) ? {
|
|
2550
2767
|
...n,
|
|
2551
2768
|
[e.id]: t
|
|
2552
2769
|
} : {
|
|
2553
2770
|
...n,
|
|
2554
2771
|
custom_data: {
|
|
2555
2772
|
...n.custom_data || {},
|
|
2556
|
-
[
|
|
2773
|
+
[yt(e)]: t
|
|
2557
2774
|
}
|
|
2558
|
-
}),
|
|
2559
|
-
|
|
2775
|
+
}), Ct = (e) => {
|
|
2776
|
+
Be(e.id), S(null), Ke({
|
|
2560
2777
|
id: e.id,
|
|
2561
2778
|
salutation: e.salutation || "",
|
|
2562
2779
|
name: e.name || "",
|
|
@@ -2564,19 +2781,24 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2564
2781
|
phone: e.phone || "",
|
|
2565
2782
|
custom_data: { ...e.custom_data || {} }
|
|
2566
2783
|
});
|
|
2567
|
-
},
|
|
2784
|
+
}, wt = async () => {
|
|
2568
2785
|
let r = t.getToken();
|
|
2569
2786
|
if (!r) {
|
|
2570
2787
|
S("Session expired. Please log in again.");
|
|
2571
2788
|
return;
|
|
2572
2789
|
}
|
|
2573
|
-
|
|
2790
|
+
let i = ht(I?.accompany_fields || [], (e) => bt(We, e));
|
|
2791
|
+
if (i) {
|
|
2792
|
+
w(null), S(i);
|
|
2793
|
+
return;
|
|
2794
|
+
}
|
|
2795
|
+
Ye(!0), S(null), w(null);
|
|
2574
2796
|
try {
|
|
2575
|
-
let t = await e.portalUpdateProfile(r, { accompanying: [
|
|
2576
|
-
|
|
2577
|
-
payload:
|
|
2797
|
+
let t = await e.portalUpdateProfile(r, { accompanying: [We] });
|
|
2798
|
+
Be(null), w("Accompanying person updated."), o?.("attendee_accompanying_updated", {
|
|
2799
|
+
payload: We,
|
|
2578
2800
|
response: t
|
|
2579
|
-
}), await
|
|
2801
|
+
}), await Z(r);
|
|
2580
2802
|
} catch (e) {
|
|
2581
2803
|
n.error("Failed to update accompanying person", e);
|
|
2582
2804
|
let t = e.message || "Could not update this person. Please try again.";
|
|
@@ -2586,9 +2808,9 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2586
2808
|
error: e
|
|
2587
2809
|
});
|
|
2588
2810
|
} finally {
|
|
2589
|
-
|
|
2811
|
+
Ye(!1);
|
|
2590
2812
|
}
|
|
2591
|
-
},
|
|
2813
|
+
}, Tt = () => /* @__PURE__ */ m("div", {
|
|
2592
2814
|
className: "absolute inset-0 pointer-events-none overflow-hidden z-0 select-none",
|
|
2593
2815
|
children: [
|
|
2594
2816
|
/* @__PURE__ */ p("div", {
|
|
@@ -2615,29 +2837,29 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2615
2837
|
}
|
|
2616
2838
|
})
|
|
2617
2839
|
]
|
|
2618
|
-
}),
|
|
2840
|
+
}), Et = (e) => {
|
|
2619
2841
|
let t = (e.label || e.id || "").toLowerCase(), n = e.type;
|
|
2620
|
-
return n === "email" || t.includes("email") || t.includes("mail") ? /* @__PURE__ */ p(
|
|
2842
|
+
return n === "email" || t.includes("email") || t.includes("mail") ? /* @__PURE__ */ p(Y, {
|
|
2621
2843
|
size: 13,
|
|
2622
2844
|
className: "shrink-0",
|
|
2623
2845
|
style: { color: r }
|
|
2624
|
-
}) : n === "phone" || t.includes("phone") || t.includes("mobile") || t.includes("contact") ? /* @__PURE__ */ p(
|
|
2846
|
+
}) : n === "phone" || t.includes("phone") || t.includes("mobile") || t.includes("contact") ? /* @__PURE__ */ p(Ge, {
|
|
2625
2847
|
size: 13,
|
|
2626
2848
|
className: "shrink-0",
|
|
2627
2849
|
style: { color: r }
|
|
2628
|
-
}) : t.includes("salutation") || t.includes("title") || t.includes("prefix") ? /* @__PURE__ */ p(
|
|
2850
|
+
}) : t.includes("salutation") || t.includes("title") || t.includes("prefix") ? /* @__PURE__ */ p(Xe, {
|
|
2629
2851
|
size: 13,
|
|
2630
2852
|
className: "shrink-0",
|
|
2631
2853
|
style: { color: r }
|
|
2632
|
-
}) : t.includes("name") || t.includes("attendee") ? /* @__PURE__ */ p(
|
|
2854
|
+
}) : t.includes("name") || t.includes("attendee") ? /* @__PURE__ */ p(at, {
|
|
2633
2855
|
size: 13,
|
|
2634
2856
|
className: "shrink-0",
|
|
2635
2857
|
style: { color: r }
|
|
2636
|
-
}) : t.includes("designat") || t.includes("role") || t.includes("position") || t.includes("profession") ? /* @__PURE__ */ p(
|
|
2858
|
+
}) : t.includes("designat") || t.includes("role") || t.includes("position") || t.includes("profession") ? /* @__PURE__ */ p(P, {
|
|
2637
2859
|
size: 13,
|
|
2638
2860
|
className: "shrink-0",
|
|
2639
2861
|
style: { color: r }
|
|
2640
|
-
}) : t.includes("specialis") || t.includes("specializ") || t.includes("department") || t.includes("degree") ? /* @__PURE__ */ p(
|
|
2862
|
+
}) : t.includes("specialis") || t.includes("specializ") || t.includes("department") || t.includes("degree") ? /* @__PURE__ */ p(Ee, {
|
|
2641
2863
|
size: 13,
|
|
2642
2864
|
className: "shrink-0",
|
|
2643
2865
|
style: { color: r }
|
|
@@ -2645,18 +2867,18 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2645
2867
|
size: 13,
|
|
2646
2868
|
className: "shrink-0",
|
|
2647
2869
|
style: { color: r }
|
|
2648
|
-
}) : t.includes("city") || t.includes("state") || t.includes("country") || t.includes("address") ? /* @__PURE__ */ p(
|
|
2870
|
+
}) : t.includes("city") || t.includes("state") || t.includes("country") || t.includes("address") ? /* @__PURE__ */ p(Fe, {
|
|
2649
2871
|
size: 13,
|
|
2650
2872
|
className: "shrink-0",
|
|
2651
2873
|
style: { color: r }
|
|
2652
|
-
}) : p(n === "file" ?
|
|
2874
|
+
}) : p(n === "file" ? we : Ce, {
|
|
2653
2875
|
size: 13,
|
|
2654
2876
|
className: "shrink-0",
|
|
2655
2877
|
style: { color: r }
|
|
2656
2878
|
});
|
|
2657
|
-
},
|
|
2879
|
+
}, Dt = (e, t = "w-full", n = []) => {
|
|
2658
2880
|
if (!e) return null;
|
|
2659
|
-
let r = n.includes(e.id) || n.includes(
|
|
2881
|
+
let r = n.includes(e.id) || n.includes(ft(e.id, e.label)), a = pe[e.id] ?? "", o = `vx-profile-${e.id}`, s = `w-full min-h-11 px-3.5 py-2.5 text-sm font-medium rounded-xl border transition-all focus:outline-none ${r ? i ? "bg-zinc-800/60 text-zinc-500 border-zinc-800 cursor-not-allowed" : "bg-slate-50 text-slate-500 border-slate-200 cursor-not-allowed" : i ? "bg-zinc-950 border-zinc-700 text-white placeholder:text-zinc-500 hover:border-zinc-600 focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_20%,transparent)]" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400 hover:border-slate-300 shadow-[0_1px_2px_rgba(15,23,42,0.04)] focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_15%,transparent)]"}`;
|
|
2660
2882
|
return /* @__PURE__ */ m("div", {
|
|
2661
2883
|
className: `${t} px-2 mb-4`,
|
|
2662
2884
|
children: [/* @__PURE__ */ m("div", {
|
|
@@ -2668,7 +2890,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2668
2890
|
children: [
|
|
2669
2891
|
/* @__PURE__ */ p("span", {
|
|
2670
2892
|
className: i ? "text-zinc-500" : "text-slate-400",
|
|
2671
|
-
children:
|
|
2893
|
+
children: Et(e)
|
|
2672
2894
|
}),
|
|
2673
2895
|
/* @__PURE__ */ p("span", { children: e.label }),
|
|
2674
2896
|
e.required && /* @__PURE__ */ p("span", {
|
|
@@ -2678,52 +2900,23 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2678
2900
|
]
|
|
2679
2901
|
}), r ? /* @__PURE__ */ m("span", {
|
|
2680
2902
|
className: `flex items-center gap-1 text-[10px] font-semibold px-2 py-0.5 rounded-full ${i ? "text-zinc-400 bg-zinc-800" : "text-slate-500 bg-slate-100"}`,
|
|
2681
|
-
children: [/* @__PURE__ */ p(
|
|
2903
|
+
children: [/* @__PURE__ */ p(Me, { size: 10 }), " Locked"]
|
|
2682
2904
|
}) : null]
|
|
2683
|
-
}), e.type === "
|
|
2684
|
-
|
|
2685
|
-
children: [/* @__PURE__ */ m("select", {
|
|
2686
|
-
part: "input select",
|
|
2687
|
-
id: o,
|
|
2688
|
-
disabled: r,
|
|
2689
|
-
value: a,
|
|
2690
|
-
onChange: (t) => me({
|
|
2691
|
-
...L,
|
|
2692
|
-
[e.id]: t.target.value
|
|
2693
|
-
}),
|
|
2694
|
-
className: `${s} pr-9 appearance-none cursor-pointer flex items-center`,
|
|
2695
|
-
children: [/* @__PURE__ */ m("option", {
|
|
2696
|
-
value: "",
|
|
2697
|
-
className: i ? "bg-zinc-900 text-white" : "bg-white text-slate-900",
|
|
2698
|
-
children: [
|
|
2699
|
-
"Select ",
|
|
2700
|
-
e.label,
|
|
2701
|
-
"..."
|
|
2702
|
-
]
|
|
2703
|
-
}), (e.options || []).map((e) => /* @__PURE__ */ p("option", {
|
|
2704
|
-
value: e,
|
|
2705
|
-
className: i ? "bg-zinc-900 text-white" : "bg-white text-slate-900",
|
|
2706
|
-
children: e
|
|
2707
|
-
}, e))]
|
|
2708
|
-
}), /* @__PURE__ */ p("div", {
|
|
2709
|
-
className: `absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none ${i ? "text-zinc-400" : "text-slate-400"}`,
|
|
2710
|
-
children: /* @__PURE__ */ p(le, { size: 15 })
|
|
2711
|
-
})]
|
|
2712
|
-
}) : e.type === "file" ? Tt(e, r, a) : /* @__PURE__ */ p("input", {
|
|
2713
|
-
part: "input",
|
|
2905
|
+
}), e.type === "file" ? Ot(e, r, a) : /* @__PURE__ */ p(_t, {
|
|
2906
|
+
field: e,
|
|
2714
2907
|
id: o,
|
|
2715
|
-
type: e.type === "phone" ? "tel" : e.type === "email" ? "email" : "text",
|
|
2716
|
-
disabled: r,
|
|
2717
2908
|
value: a,
|
|
2718
|
-
|
|
2909
|
+
disabled: r,
|
|
2719
2910
|
onChange: (t) => me({
|
|
2720
|
-
...
|
|
2721
|
-
[e.id]: t
|
|
2911
|
+
...pe,
|
|
2912
|
+
[e.id]: t
|
|
2722
2913
|
}),
|
|
2723
|
-
className: s
|
|
2914
|
+
className: s,
|
|
2915
|
+
isDark: i,
|
|
2916
|
+
placeholder: e.placeholder || `Enter ${(e.label || "").toLowerCase()}`
|
|
2724
2917
|
})]
|
|
2725
2918
|
}, e.id);
|
|
2726
|
-
},
|
|
2919
|
+
}, Ot = (e, t, n) => {
|
|
2727
2920
|
let a = y === e.id, o = e.label || e.name || e.id, s = I?.file_answers?.[e.id], c = typeof n == "string" ? /^https?:\/\//i.test(n) ? n : "" : n?.serve_url || n?.url || "", l = s?.serve_url || c, u = s?.text || "", d = s?.file_name || (typeof n == "string" ? l : n?.file_name || l);
|
|
2728
2921
|
return /* @__PURE__ */ p("div", {
|
|
2729
2922
|
className: "space-y-2",
|
|
@@ -2742,7 +2935,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2742
2935
|
borderColor: i ? "rgba(255,255,255,0.12)" : `color-mix(in srgb, ${r} 20%, white)`,
|
|
2743
2936
|
color: r
|
|
2744
2937
|
},
|
|
2745
|
-
children: /* @__PURE__ */ p(
|
|
2938
|
+
children: /* @__PURE__ */ p(we, { size: 16 })
|
|
2746
2939
|
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
|
|
2747
2940
|
className: `text-xs font-bold ${i ? "text-zinc-200" : "text-gray-900"}`,
|
|
2748
2941
|
children: o
|
|
@@ -2760,9 +2953,9 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2760
2953
|
style: { backgroundColor: r },
|
|
2761
2954
|
title: "Open file in new tab",
|
|
2762
2955
|
children: [
|
|
2763
|
-
/* @__PURE__ */ p(
|
|
2956
|
+
/* @__PURE__ */ p(Ce, { size: 13 }),
|
|
2764
2957
|
/* @__PURE__ */ p("span", { children: "View" }),
|
|
2765
|
-
/* @__PURE__ */ p(
|
|
2958
|
+
/* @__PURE__ */ p(xe, { size: 11 })
|
|
2766
2959
|
]
|
|
2767
2960
|
}), !t && /* @__PURE__ */ m("button", {
|
|
2768
2961
|
type: "button",
|
|
@@ -2770,14 +2963,14 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2770
2963
|
onClick: () => it(e.id),
|
|
2771
2964
|
className: `flex items-center gap-1 py-1.5 px-2.5 rounded-lg text-xs font-semibold border backdrop-blur-sm transition-colors cursor-pointer ${i ? "border-red-900/60 bg-red-950/50 text-red-400 hover:bg-red-900/60" : "border-red-200 bg-red-50/80 text-red-600 hover:bg-red-100"}`,
|
|
2772
2965
|
title: "Remove file",
|
|
2773
|
-
children: [/* @__PURE__ */ p(
|
|
2966
|
+
children: [/* @__PURE__ */ p(et, { size: 13 }), /* @__PURE__ */ p("span", { children: Se === e.id ? "Deleting..." : "Delete" })]
|
|
2774
2967
|
})] })
|
|
2775
2968
|
})]
|
|
2776
2969
|
}),
|
|
2777
2970
|
u ? /* @__PURE__ */ p("div", {
|
|
2778
2971
|
className: `mt-2 pt-2 border-t ${i ? "border-zinc-800" : "border-gray-200"}`,
|
|
2779
2972
|
children: /* @__PURE__ */ p("p", {
|
|
2780
|
-
className: `text-2xs whitespace-pre-wrap break-words m-0 ${i ? "text-zinc-300" : "text-gray-700"}`,
|
|
2973
|
+
className: `text-2xs whitespace-pre-wrap break-words m-0 max-h-48 overflow-y-auto ${i ? "text-zinc-300" : "text-gray-700"}`,
|
|
2781
2974
|
children: u
|
|
2782
2975
|
})
|
|
2783
2976
|
}) : n ? /* @__PURE__ */ m("div", {
|
|
@@ -2802,11 +2995,11 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2802
2995
|
disabled: a,
|
|
2803
2996
|
onChange: (t) => {
|
|
2804
2997
|
let n = t.target.files?.[0];
|
|
2805
|
-
n &&
|
|
2998
|
+
n && rt(e.id, n), t.target.value = "";
|
|
2806
2999
|
}
|
|
2807
3000
|
}), /* @__PURE__ */ m("div", {
|
|
2808
3001
|
className: `inline-flex items-center gap-1.5 py-1.5 px-3 rounded-lg text-xs font-semibold border transition-all shadow-2xs ${i ? "border-zinc-700 hover:border-zinc-600 text-zinc-200 bg-zinc-800 hover:bg-zinc-750" : "border-gray-300 hover:border-gray-400 text-gray-800 bg-white hover:bg-gray-50"}`,
|
|
2809
|
-
children: [/* @__PURE__ */ p(
|
|
3002
|
+
children: [/* @__PURE__ */ p(tt, {
|
|
2810
3003
|
size: 13,
|
|
2811
3004
|
style: { color: r }
|
|
2812
3005
|
}), /* @__PURE__ */ p("span", { children: a ? "Uploading..." : n ? "Replace File" : "Choose File" })]
|
|
@@ -2829,7 +3022,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2829
3022
|
className: "sr-only",
|
|
2830
3023
|
children: "Loading your profile…"
|
|
2831
3024
|
}),
|
|
2832
|
-
|
|
3025
|
+
Tt(),
|
|
2833
3026
|
/* @__PURE__ */ m("div", {
|
|
2834
3027
|
className: `max-w-3xl mx-auto w-full px-4 sm:px-6 ${a ? "py-8 sm:py-10" : "py-5"} space-y-5 relative z-10`,
|
|
2835
3028
|
children: [/* @__PURE__ */ m("div", {
|
|
@@ -2871,7 +3064,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2871
3064
|
});
|
|
2872
3065
|
}
|
|
2873
3066
|
if (l === "profile") {
|
|
2874
|
-
let e = I?.registration || {}, t = I?.editable_fields || [], n = I?.locked_fields || [], o = Array.isArray(I?.payment) ? I.payment : I?.payment ? [I.payment] : [], s = o.filter((e) => e.state !== "not_required"), c = o[0], l = I?.addons?.items || [], u = I?.badge || null, d = I?.accompanying || [], h = I?.accompany_fields || [], g = `w-full px-3.5 py-2.5 text-sm font-medium rounded-xl border transition-all focus:outline-none ${i ? "bg-zinc-900 border-zinc-700 text-white placeholder:text-zinc-500" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400"}`, v = I?.review_submission || null, b = ee || "Attendee",
|
|
3067
|
+
let e = I?.registration || {}, t = I?.editable_fields || [], n = I?.locked_fields || [], o = Array.isArray(I?.payment) ? I.payment : I?.payment ? [I.payment] : [], s = o.filter((e) => e.state !== "not_required"), c = o[0], l = I?.addons?.items || [], u = I?.badge || null, d = I?.accompanying || [], h = I?.accompany_fields || [], g = `w-full px-3.5 py-2.5 text-sm font-medium rounded-xl border transition-all focus:outline-none ${i ? "bg-zinc-900 border-zinc-700 text-white placeholder:text-zinc-500" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400"}`, v = I?.review_submission || null, b = ee || "Attendee", T = b.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase()).join("") || "A", E = `rounded-3xl border p-5 sm:p-6 ${i ? "bg-zinc-900 border-zinc-800 text-white" : "bg-white border-slate-200/80 text-slate-900 shadow-[0_1px_2px_rgba(15,23,42,0.04),0_12px_32px_-16px_rgba(15,23,42,0.12)]"}`, D = i ? "text-zinc-400" : "text-slate-500", O = `text-base font-semibold tracking-tight ${i ? "text-white" : "text-slate-900"}`, k = [
|
|
2875
3068
|
{
|
|
2876
3069
|
label: "Registration no.",
|
|
2877
3070
|
value: e.registration_number || "N/A",
|
|
@@ -2886,21 +3079,60 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2886
3079
|
value: `${c.state}${c.amount ? ` · ${[c.currency, c.amount].filter(Boolean).join(" ")}` : ""}`,
|
|
2887
3080
|
capitalize: !0
|
|
2888
3081
|
}] : []
|
|
2889
|
-
]
|
|
3082
|
+
], A = [
|
|
3083
|
+
{
|
|
3084
|
+
key: "details",
|
|
3085
|
+
label: "Details",
|
|
3086
|
+
icon: at,
|
|
3087
|
+
count: 0
|
|
3088
|
+
},
|
|
3089
|
+
...l.length > 0 ? [{
|
|
3090
|
+
key: "addons",
|
|
3091
|
+
label: "Add-ons",
|
|
3092
|
+
icon: Qe,
|
|
3093
|
+
count: l.length
|
|
3094
|
+
}] : [],
|
|
3095
|
+
...u ? [{
|
|
3096
|
+
key: "badge",
|
|
3097
|
+
label: "Badge",
|
|
3098
|
+
icon: De,
|
|
3099
|
+
count: 0
|
|
3100
|
+
}] : [],
|
|
3101
|
+
...d.length > 0 ? [{
|
|
3102
|
+
key: "guests",
|
|
3103
|
+
label: "Guests",
|
|
3104
|
+
icon: st,
|
|
3105
|
+
count: d.length
|
|
3106
|
+
}] : [],
|
|
3107
|
+
...s.length > 0 ? [{
|
|
3108
|
+
key: "payments",
|
|
3109
|
+
label: "Payments",
|
|
3110
|
+
icon: qe,
|
|
3111
|
+
count: s.length
|
|
3112
|
+
}] : [],
|
|
3113
|
+
...v ? [{
|
|
3114
|
+
key: "submission",
|
|
3115
|
+
label: "Submission",
|
|
3116
|
+
icon: Ce,
|
|
3117
|
+
count: 0
|
|
3118
|
+
}] : []
|
|
3119
|
+
], j = A.some((e) => e.key === Ve) ? Ve : "details", M = (e) => {
|
|
3120
|
+
He(e), S(null), w(null);
|
|
3121
|
+
};
|
|
2890
3122
|
return /* @__PURE__ */ m("div", {
|
|
2891
3123
|
className: `flex flex-col ${a ? "w-full flex-1" : "h-full overflow-hidden min-h-0"} relative bg-transparent ${i ? "text-white" : "text-slate-900"}`,
|
|
2892
3124
|
style: a ? void 0 : { overflow: "clip" },
|
|
2893
3125
|
onScroll: a ? void 0 : (e) => {
|
|
2894
3126
|
e.currentTarget.scrollTop !== 0 && (e.currentTarget.scrollTop = 0), e.currentTarget.scrollLeft !== 0 && (e.currentTarget.scrollLeft = 0);
|
|
2895
3127
|
},
|
|
2896
|
-
children: [
|
|
3128
|
+
children: [Tt(), /* @__PURE__ */ p("div", {
|
|
2897
3129
|
className: `${a ? "w-full flex-1" : "flex-1 overflow-y-auto min-h-0 overscroll-contain"} relative z-10`,
|
|
2898
3130
|
children: /* @__PURE__ */ m("div", {
|
|
2899
3131
|
className: `max-w-3xl mx-auto w-full px-4 sm:px-6 ${a ? "py-8 sm:py-10" : "py-5"} space-y-5`,
|
|
2900
3132
|
children: [
|
|
2901
3133
|
/* @__PURE__ */ m("div", {
|
|
2902
3134
|
part: "portal-card profile-card",
|
|
2903
|
-
className:
|
|
3135
|
+
className: E,
|
|
2904
3136
|
children: [/* @__PURE__ */ m("div", {
|
|
2905
3137
|
className: "flex items-start justify-between gap-3",
|
|
2906
3138
|
children: [/* @__PURE__ */ m("div", {
|
|
@@ -2909,7 +3141,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2909
3141
|
className: "w-12 h-12 sm:w-14 sm:h-14 rounded-2xl flex items-center justify-center shrink-0 text-base sm:text-lg font-bold text-white",
|
|
2910
3142
|
style: { background: `linear-gradient(135deg, ${r}, color-mix(in srgb, ${r} 75%, black))` },
|
|
2911
3143
|
"aria-hidden": "true",
|
|
2912
|
-
children:
|
|
3144
|
+
children: T
|
|
2913
3145
|
}), /* @__PURE__ */ m("div", {
|
|
2914
3146
|
className: "min-w-0",
|
|
2915
3147
|
children: [/* @__PURE__ */ m("div", {
|
|
@@ -2924,24 +3156,24 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2924
3156
|
children: e.status
|
|
2925
3157
|
})]
|
|
2926
3158
|
}), /* @__PURE__ */ p("p", {
|
|
2927
|
-
className: `text-[13px] mt-0.5 ${
|
|
3159
|
+
className: `text-[13px] mt-0.5 ${D}`,
|
|
2928
3160
|
children: "Manage your registration and details"
|
|
2929
3161
|
})]
|
|
2930
3162
|
})]
|
|
2931
3163
|
}), /* @__PURE__ */ m("button", {
|
|
2932
3164
|
part: "button button-secondary logout-button",
|
|
2933
|
-
onClick:
|
|
3165
|
+
onClick: nt,
|
|
2934
3166
|
className: `shrink-0 inline-flex items-center justify-center gap-1.5 h-9 w-9 sm:w-auto sm:px-3.5 text-[13px] font-semibold rounded-full border transition-colors cursor-pointer ${i ? "text-zinc-300 border-zinc-700 hover:bg-zinc-800 hover:text-red-300" : "text-slate-600 border-slate-200 bg-white hover:bg-red-50 hover:text-red-600 hover:border-red-200"}`,
|
|
2935
3167
|
title: "Logout",
|
|
2936
3168
|
"aria-label": "Logout",
|
|
2937
|
-
children: [/* @__PURE__ */ p(
|
|
3169
|
+
children: [/* @__PURE__ */ p(J, { size: 14 }), /* @__PURE__ */ p("span", {
|
|
2938
3170
|
className: "hidden sm:inline",
|
|
2939
3171
|
children: "Logout"
|
|
2940
3172
|
})]
|
|
2941
3173
|
})]
|
|
2942
3174
|
}), /* @__PURE__ */ p("dl", {
|
|
2943
|
-
className: `mt-5 pt-5 border-t grid grid-cols-2 ${
|
|
2944
|
-
children:
|
|
3175
|
+
className: `mt-5 pt-5 border-t grid grid-cols-2 ${k.length === 3 ? "sm:grid-cols-3" : "sm:grid-cols-2"} gap-4 ${i ? "border-zinc-800" : "border-slate-100"}`,
|
|
3176
|
+
children: k.map((e) => /* @__PURE__ */ m("div", {
|
|
2945
3177
|
className: "min-w-0",
|
|
2946
3178
|
children: [/* @__PURE__ */ p("dt", {
|
|
2947
3179
|
className: `text-[11px] font-semibold uppercase tracking-wider ${i ? "text-zinc-500" : "text-slate-400"}`,
|
|
@@ -2953,37 +3185,63 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2953
3185
|
}, e.label))
|
|
2954
3186
|
})]
|
|
2955
3187
|
}),
|
|
2956
|
-
/* @__PURE__ */
|
|
2957
|
-
|
|
3188
|
+
A.length > 1 && /* @__PURE__ */ p("div", {
|
|
3189
|
+
part: "portal-tabs",
|
|
3190
|
+
role: "tablist",
|
|
3191
|
+
className: `${a ? "" : "sticky top-0"} z-20 flex gap-1 p-1 rounded-2xl border overflow-x-auto backdrop-blur-xl ${i ? "bg-zinc-900/90 border-zinc-800" : "bg-white/90 border-slate-200/80 shadow-[0_1px_2px_rgba(15,23,42,0.04),0_8px_24px_-14px_rgba(15,23,42,0.18)]"}`,
|
|
3192
|
+
style: { scrollbarWidth: "none" },
|
|
3193
|
+
children: A.map((e) => {
|
|
3194
|
+
let t = e.icon, n = e.key === j;
|
|
3195
|
+
return /* @__PURE__ */ m("button", {
|
|
3196
|
+
type: "button",
|
|
3197
|
+
role: "tab",
|
|
3198
|
+
"aria-selected": n,
|
|
3199
|
+
part: `portal-tab${n ? " portal-tab-active" : ""}`,
|
|
3200
|
+
onClick: () => M(e.key),
|
|
3201
|
+
className: `flex-1 min-w-fit inline-flex items-center justify-center gap-1.5 h-10 px-3.5 rounded-xl text-[13px] font-semibold whitespace-nowrap transition-all cursor-pointer ${n ? "text-white shadow-sm" : i ? "text-zinc-400 hover:text-white hover:bg-zinc-800" : "text-slate-500 hover:text-slate-900 hover:bg-slate-100"}`,
|
|
3202
|
+
style: n ? { background: `linear-gradient(135deg, ${r}, color-mix(in srgb, ${r} 80%, black))` } : void 0,
|
|
3203
|
+
children: [
|
|
3204
|
+
/* @__PURE__ */ p(t, { size: 15 }),
|
|
3205
|
+
/* @__PURE__ */ p("span", { children: e.label }),
|
|
3206
|
+
e.count > 0 && /* @__PURE__ */ p("span", {
|
|
3207
|
+
className: `min-w-[18px] h-[18px] px-1 rounded-full text-[10.5px] font-bold inline-flex items-center justify-center tabular-nums ${n ? "bg-white/25 text-white" : i ? "bg-zinc-800 text-zinc-300" : "bg-slate-100 text-slate-600"}`,
|
|
3208
|
+
children: e.count
|
|
3209
|
+
})
|
|
3210
|
+
]
|
|
3211
|
+
}, e.key);
|
|
3212
|
+
})
|
|
3213
|
+
}),
|
|
3214
|
+
(j === "details" || j === "addons") && /* @__PURE__ */ m("form", {
|
|
3215
|
+
onSubmit: ct,
|
|
2958
3216
|
className: "space-y-5",
|
|
2959
3217
|
children: [
|
|
2960
|
-
t.length === 0 ? /* @__PURE__ */ p("div", {
|
|
2961
|
-
className: `${
|
|
3218
|
+
j === "details" && (t.length === 0 ? /* @__PURE__ */ p("div", {
|
|
3219
|
+
className: `${E} text-center text-sm ${D}`,
|
|
2962
3220
|
children: "No editable fields configured."
|
|
2963
3221
|
}) : /* @__PURE__ */ m("div", {
|
|
2964
3222
|
part: "portal-card details-card",
|
|
2965
|
-
className:
|
|
3223
|
+
className: E,
|
|
2966
3224
|
children: [/* @__PURE__ */ m("div", {
|
|
2967
3225
|
className: "flex items-start justify-between gap-3 mb-5",
|
|
2968
3226
|
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
|
|
2969
|
-
className:
|
|
3227
|
+
className: O,
|
|
2970
3228
|
style: $,
|
|
2971
3229
|
children: "Your details"
|
|
2972
3230
|
}), /* @__PURE__ */ p("p", {
|
|
2973
|
-
className: `text-[13px] mt-0.5 ${
|
|
3231
|
+
className: `text-[13px] mt-0.5 ${D}`,
|
|
2974
3232
|
children: "Keep your information up to date."
|
|
2975
|
-
})] }),
|
|
3233
|
+
})] }), Oe && /* @__PURE__ */ m("span", {
|
|
2976
3234
|
className: `inline-flex items-center gap-1 text-[11px] font-semibold px-2.5 py-1 rounded-full shrink-0 ${i ? "bg-emerald-950/60 text-emerald-300" : "bg-emerald-50 text-emerald-700"}`,
|
|
2977
3235
|
children: [/* @__PURE__ */ p(se, { size: 11 }), " Draft restored"]
|
|
2978
3236
|
})]
|
|
2979
3237
|
}), /* @__PURE__ */ p("div", {
|
|
2980
3238
|
className: "flex flex-wrap -mx-2 -mb-4",
|
|
2981
|
-
children: t.map((e) =>
|
|
3239
|
+
children: t.map((e) => Dt(e, e.type === "file" || e.width === "full" ? "w-full" : "w-full md:w-1/2", n))
|
|
2982
3240
|
})]
|
|
2983
|
-
}),
|
|
2984
|
-
l.length > 0 && /* @__PURE__ */ m("div", {
|
|
3241
|
+
})),
|
|
3242
|
+
j === "addons" && l.length > 0 && /* @__PURE__ */ m("div", {
|
|
2985
3243
|
part: "portal-card addons-card",
|
|
2986
|
-
className:
|
|
3244
|
+
className: E,
|
|
2987
3245
|
children: [/* @__PURE__ */ p("div", {
|
|
2988
3246
|
className: "flex items-start justify-between gap-3 mb-4",
|
|
2989
3247
|
children: /* @__PURE__ */ m("div", {
|
|
@@ -2994,20 +3252,20 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
2994
3252
|
backgroundColor: `color-mix(in srgb, ${r} 12%, transparent)`,
|
|
2995
3253
|
color: r
|
|
2996
3254
|
},
|
|
2997
|
-
children: /* @__PURE__ */ p(
|
|
3255
|
+
children: /* @__PURE__ */ p(Qe, { size: 17 })
|
|
2998
3256
|
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
|
|
2999
|
-
className:
|
|
3257
|
+
className: O,
|
|
3000
3258
|
style: $,
|
|
3001
3259
|
children: "Add-ons"
|
|
3002
3260
|
}), /* @__PURE__ */ p("p", {
|
|
3003
|
-
className: `text-[13px] ${
|
|
3261
|
+
className: `text-[13px] ${D}`,
|
|
3004
3262
|
children: "Select items to add to your registration"
|
|
3005
3263
|
})] })]
|
|
3006
3264
|
})
|
|
3007
3265
|
}), /* @__PURE__ */ p("div", {
|
|
3008
3266
|
className: "space-y-2",
|
|
3009
3267
|
children: l.map((e) => {
|
|
3010
|
-
let t = !!e.purchased, n =
|
|
3268
|
+
let t = !!e.purchased, n = he.includes(e.name);
|
|
3011
3269
|
return /* @__PURE__ */ m("label", {
|
|
3012
3270
|
className: `p-3.5 rounded-2xl border flex items-center gap-3 transition-all ${t ? i ? "bg-zinc-950/60 border-zinc-800 cursor-default" : "bg-slate-50 border-slate-200 cursor-default" : n ? "cursor-pointer" : i ? "border-zinc-800 bg-zinc-900 hover:border-zinc-700 cursor-pointer" : "border-slate-200 bg-white hover:border-slate-300 cursor-pointer"}`,
|
|
3013
3271
|
style: n && !t ? {
|
|
@@ -3075,14 +3333,14 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3075
3333
|
fill: "currentColor",
|
|
3076
3334
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
3077
3335
|
})]
|
|
3078
|
-
}), /* @__PURE__ */ p("span", { children: "Saving..." })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(
|
|
3336
|
+
}), /* @__PURE__ */ p("span", { children: "Saving..." })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(Ue, { size: 16 }), /* @__PURE__ */ p("span", { children: j === "addons" ? "Update add-ons" : "Save changes" })] })
|
|
3079
3337
|
})
|
|
3080
3338
|
})
|
|
3081
3339
|
]
|
|
3082
3340
|
}),
|
|
3083
|
-
u && /* @__PURE__ */ m("div", {
|
|
3341
|
+
j === "badge" && u && /* @__PURE__ */ m("div", {
|
|
3084
3342
|
part: "portal-card badge-card",
|
|
3085
|
-
className:
|
|
3343
|
+
className: E,
|
|
3086
3344
|
children: [
|
|
3087
3345
|
/* @__PURE__ */ m("div", {
|
|
3088
3346
|
className: "flex items-center gap-3 mb-4",
|
|
@@ -3092,13 +3350,13 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3092
3350
|
backgroundColor: `color-mix(in srgb, ${r} 12%, transparent)`,
|
|
3093
3351
|
color: r
|
|
3094
3352
|
},
|
|
3095
|
-
children: /* @__PURE__ */ p(
|
|
3353
|
+
children: /* @__PURE__ */ p(De, { size: 17 })
|
|
3096
3354
|
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
|
|
3097
|
-
className:
|
|
3355
|
+
className: O,
|
|
3098
3356
|
style: $,
|
|
3099
3357
|
children: "Your badge"
|
|
3100
3358
|
}), /* @__PURE__ */ p("p", {
|
|
3101
|
-
className: `text-[13px] ${
|
|
3359
|
+
className: `text-[13px] ${D}`,
|
|
3102
3360
|
children: "View or download your event badge."
|
|
3103
3361
|
})] })]
|
|
3104
3362
|
}),
|
|
@@ -3117,7 +3375,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3117
3375
|
target: "_blank",
|
|
3118
3376
|
rel: "noopener noreferrer",
|
|
3119
3377
|
className: `inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold border transition-colors ${i ? "text-zinc-200 border-zinc-700 hover:bg-zinc-800" : "text-slate-700 border-slate-200 bg-white hover:bg-slate-50"}`,
|
|
3120
|
-
children: [/* @__PURE__ */ p(
|
|
3378
|
+
children: [/* @__PURE__ */ p(xe, { size: 13 }), /* @__PURE__ */ p("span", { children: "View badge" })]
|
|
3121
3379
|
}), /* @__PURE__ */ m("a", {
|
|
3122
3380
|
href: u,
|
|
3123
3381
|
download: !0,
|
|
@@ -3125,14 +3383,14 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3125
3383
|
rel: "noopener noreferrer",
|
|
3126
3384
|
className: "inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold text-white",
|
|
3127
3385
|
style: { backgroundColor: r },
|
|
3128
|
-
children: [/* @__PURE__ */ p(
|
|
3386
|
+
children: [/* @__PURE__ */ p(be, { size: 13 }), /* @__PURE__ */ p("span", { children: "Download badge" })]
|
|
3129
3387
|
})]
|
|
3130
3388
|
})
|
|
3131
3389
|
]
|
|
3132
3390
|
}),
|
|
3133
|
-
d.length > 0 && /* @__PURE__ */ m("div", {
|
|
3391
|
+
j === "guests" && d.length > 0 && /* @__PURE__ */ m("div", {
|
|
3134
3392
|
part: "portal-card accompanying-card",
|
|
3135
|
-
className:
|
|
3393
|
+
className: E,
|
|
3136
3394
|
children: [/* @__PURE__ */ m("div", {
|
|
3137
3395
|
className: "flex items-center gap-3 mb-4",
|
|
3138
3396
|
children: [/* @__PURE__ */ p("div", {
|
|
@@ -3141,13 +3399,13 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3141
3399
|
backgroundColor: `color-mix(in srgb, ${r} 12%, transparent)`,
|
|
3142
3400
|
color: r
|
|
3143
3401
|
},
|
|
3144
|
-
children: /* @__PURE__ */ p(
|
|
3402
|
+
children: /* @__PURE__ */ p(st, { size: 17 })
|
|
3145
3403
|
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
|
|
3146
|
-
className:
|
|
3404
|
+
className: O,
|
|
3147
3405
|
style: $,
|
|
3148
3406
|
children: "Accompanying people"
|
|
3149
3407
|
}), /* @__PURE__ */ m("p", {
|
|
3150
|
-
className: `text-[13px] ${
|
|
3408
|
+
className: `text-[13px] ${D}`,
|
|
3151
3409
|
children: [d.length, " registered with you, each with their own badge."]
|
|
3152
3410
|
})] })]
|
|
3153
3411
|
}), /* @__PURE__ */ p("div", {
|
|
@@ -3164,7 +3422,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3164
3422
|
className: `text-sm font-semibold ${i ? "text-white" : "text-slate-900"}`,
|
|
3165
3423
|
children: [e.salutation, e.name].filter(Boolean).join(" ")
|
|
3166
3424
|
}), /* @__PURE__ */ p("div", {
|
|
3167
|
-
className: `text-xs mt-0.5 truncate ${
|
|
3425
|
+
className: `text-xs mt-0.5 truncate ${D}`,
|
|
3168
3426
|
children: [e.registration_number, e.email].filter(Boolean).join(" · ")
|
|
3169
3427
|
})]
|
|
3170
3428
|
}), /* @__PURE__ */ m("div", {
|
|
@@ -3172,18 +3430,18 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3172
3430
|
children: [/* @__PURE__ */ p("span", {
|
|
3173
3431
|
className: `text-[11px] font-semibold px-2.5 py-1 rounded-full ${e.status === "confirmed" ? "bg-emerald-100 text-emerald-700" : i ? "bg-zinc-800 text-zinc-300" : "bg-slate-200 text-slate-600"}`,
|
|
3174
3432
|
children: e.status
|
|
3175
|
-
}), h.length > 0 &&
|
|
3433
|
+
}), h.length > 0 && ze !== e.id && /* @__PURE__ */ m("button", {
|
|
3176
3434
|
type: "button",
|
|
3177
|
-
onClick: () =>
|
|
3435
|
+
onClick: () => Ct(e),
|
|
3178
3436
|
className: `inline-flex items-center gap-1.5 h-8 px-3 rounded-full text-xs font-semibold border transition-colors ${i ? "text-zinc-200 border-zinc-700 hover:bg-zinc-800" : "text-slate-700 border-slate-200 bg-white hover:bg-slate-50"}`,
|
|
3179
|
-
children: [/* @__PURE__ */ p(
|
|
3437
|
+
children: [/* @__PURE__ */ p(at, { size: 12 }), /* @__PURE__ */ p("span", { children: "Edit" })]
|
|
3180
3438
|
})]
|
|
3181
3439
|
})]
|
|
3182
3440
|
}),
|
|
3183
|
-
|
|
3441
|
+
ze === e.id && /* @__PURE__ */ m("div", {
|
|
3184
3442
|
className: "mt-4 space-y-3",
|
|
3185
3443
|
children: [h.map((t) => {
|
|
3186
|
-
let n = e.file_answers?.[
|
|
3444
|
+
let n = e.file_answers?.[yt(t)];
|
|
3187
3445
|
return /* @__PURE__ */ m("label", {
|
|
3188
3446
|
className: "block",
|
|
3189
3447
|
children: [/* @__PURE__ */ m("span", {
|
|
@@ -3193,7 +3451,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3193
3451
|
children: "*"
|
|
3194
3452
|
})]
|
|
3195
3453
|
}), t.type === "file" ? /* @__PURE__ */ p("p", {
|
|
3196
|
-
className: `text-[13px] m-0 whitespace-pre-wrap break-words ${
|
|
3454
|
+
className: `text-[13px] m-0 whitespace-pre-wrap break-words max-h-48 overflow-y-auto ${D}`,
|
|
3197
3455
|
children: n?.serve_url ? /* @__PURE__ */ p("a", {
|
|
3198
3456
|
href: n.serve_url,
|
|
3199
3457
|
target: "_blank",
|
|
@@ -3201,49 +3459,27 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3201
3459
|
style: { color: r },
|
|
3202
3460
|
children: n.file_name || "View file"
|
|
3203
3461
|
}) : n?.text || "—"
|
|
3204
|
-
}) :
|
|
3205
|
-
|
|
3206
|
-
|
|
3462
|
+
}) : /* @__PURE__ */ p(_t, {
|
|
3463
|
+
field: t,
|
|
3464
|
+
value: bt(We, t),
|
|
3465
|
+
onChange: (e) => St(t, e),
|
|
3207
3466
|
className: g,
|
|
3208
|
-
|
|
3209
|
-
value: "",
|
|
3210
|
-
children: t.placeholder || `Select ${t.label}...`
|
|
3211
|
-
}), (t.options || []).map((e) => /* @__PURE__ */ p("option", {
|
|
3212
|
-
value: e,
|
|
3213
|
-
className: i ? "bg-zinc-900 text-white" : "bg-white text-slate-900",
|
|
3214
|
-
children: e
|
|
3215
|
-
}, e))]
|
|
3216
|
-
}) : t.type === "textarea" ? /* @__PURE__ */ p("textarea", {
|
|
3217
|
-
rows: 3,
|
|
3218
|
-
value: vt(He, t),
|
|
3219
|
-
onChange: (e) => yt(t, e.target.value),
|
|
3220
|
-
placeholder: t.placeholder || "",
|
|
3221
|
-
className: g
|
|
3222
|
-
}) : /* @__PURE__ */ p("input", {
|
|
3223
|
-
type: t.type === "phone" ? "tel" : [
|
|
3224
|
-
"email",
|
|
3225
|
-
"number",
|
|
3226
|
-
"date"
|
|
3227
|
-
].includes(t.type) ? t.type : "text",
|
|
3228
|
-
value: vt(He, t),
|
|
3229
|
-
onChange: (e) => yt(t, e.target.value),
|
|
3230
|
-
placeholder: t.placeholder || "",
|
|
3231
|
-
className: g
|
|
3467
|
+
isDark: i
|
|
3232
3468
|
})]
|
|
3233
3469
|
}, t.id);
|
|
3234
3470
|
}), /* @__PURE__ */ m("div", {
|
|
3235
3471
|
className: "flex flex-wrap gap-2.5 pt-1",
|
|
3236
3472
|
children: [/* @__PURE__ */ m("button", {
|
|
3237
3473
|
type: "button",
|
|
3238
|
-
disabled:
|
|
3239
|
-
onClick:
|
|
3474
|
+
disabled: Je,
|
|
3475
|
+
onClick: wt,
|
|
3240
3476
|
className: "inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold text-white disabled:opacity-60",
|
|
3241
3477
|
style: { backgroundColor: r },
|
|
3242
|
-
children: [/* @__PURE__ */ p(se, { size: 13 }), /* @__PURE__ */ p("span", { children:
|
|
3478
|
+
children: [/* @__PURE__ */ p(se, { size: 13 }), /* @__PURE__ */ p("span", { children: Je ? "Saving..." : "Save changes" })]
|
|
3243
3479
|
}), /* @__PURE__ */ p("button", {
|
|
3244
3480
|
type: "button",
|
|
3245
|
-
disabled:
|
|
3246
|
-
onClick: () =>
|
|
3481
|
+
disabled: Je,
|
|
3482
|
+
onClick: () => Be(null),
|
|
3247
3483
|
className: `inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold border transition-colors ${i ? "text-zinc-200 border-zinc-700 hover:bg-zinc-800" : "text-slate-700 border-slate-200 bg-white hover:bg-slate-50"}`,
|
|
3248
3484
|
children: "Cancel"
|
|
3249
3485
|
})]
|
|
@@ -3263,7 +3499,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3263
3499
|
target: "_blank",
|
|
3264
3500
|
rel: "noopener noreferrer",
|
|
3265
3501
|
className: `inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold border transition-colors ${i ? "text-zinc-200 border-zinc-700 hover:bg-zinc-800" : "text-slate-700 border-slate-200 bg-white hover:bg-slate-50"}`,
|
|
3266
|
-
children: [/* @__PURE__ */ p(
|
|
3502
|
+
children: [/* @__PURE__ */ p(xe, { size: 13 }), /* @__PURE__ */ p("span", { children: "View badge" })]
|
|
3267
3503
|
}), /* @__PURE__ */ m("a", {
|
|
3268
3504
|
href: e.badge,
|
|
3269
3505
|
download: !0,
|
|
@@ -3271,16 +3507,16 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3271
3507
|
rel: "noopener noreferrer",
|
|
3272
3508
|
className: "inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold text-white",
|
|
3273
3509
|
style: { backgroundColor: r },
|
|
3274
|
-
children: [/* @__PURE__ */ p(
|
|
3510
|
+
children: [/* @__PURE__ */ p(be, { size: 13 }), /* @__PURE__ */ p("span", { children: "Download badge" })]
|
|
3275
3511
|
})]
|
|
3276
3512
|
})] })
|
|
3277
3513
|
]
|
|
3278
3514
|
}, e.id))
|
|
3279
3515
|
})]
|
|
3280
3516
|
}),
|
|
3281
|
-
s.length > 0 && /* @__PURE__ */ m("div", {
|
|
3517
|
+
j === "payments" && s.length > 0 && /* @__PURE__ */ m("div", {
|
|
3282
3518
|
part: "portal-card payments-card",
|
|
3283
|
-
className:
|
|
3519
|
+
className: E,
|
|
3284
3520
|
children: [/* @__PURE__ */ m("div", {
|
|
3285
3521
|
className: "flex items-center gap-3 mb-4",
|
|
3286
3522
|
children: [/* @__PURE__ */ p("div", {
|
|
@@ -3289,13 +3525,13 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3289
3525
|
backgroundColor: `color-mix(in srgb, ${r} 12%, transparent)`,
|
|
3290
3526
|
color: r
|
|
3291
3527
|
},
|
|
3292
|
-
children: /* @__PURE__ */ p(
|
|
3528
|
+
children: /* @__PURE__ */ p(qe, { size: 17 })
|
|
3293
3529
|
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
|
|
3294
|
-
className:
|
|
3530
|
+
className: O,
|
|
3295
3531
|
style: $,
|
|
3296
3532
|
children: "Payments"
|
|
3297
3533
|
}), /* @__PURE__ */ p("p", {
|
|
3298
|
-
className: `text-[13px] ${
|
|
3534
|
+
className: `text-[13px] ${D}`,
|
|
3299
3535
|
children: "Every order on your registration, with receipts."
|
|
3300
3536
|
})] })]
|
|
3301
3537
|
}), /* @__PURE__ */ p("div", {
|
|
@@ -3326,16 +3562,16 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3326
3562
|
rel: "noopener noreferrer",
|
|
3327
3563
|
className: "inline-flex items-center gap-1 text-[12.5px] font-semibold hover:underline underline-offset-4 shrink-0",
|
|
3328
3564
|
style: { color: r },
|
|
3329
|
-
children: [/* @__PURE__ */ p("span", { children: "Receipt" }), /* @__PURE__ */ p(
|
|
3565
|
+
children: [/* @__PURE__ */ p("span", { children: "Receipt" }), /* @__PURE__ */ p(xe, { size: 11 })]
|
|
3330
3566
|
})
|
|
3331
3567
|
]
|
|
3332
3568
|
}, e.order_number || t);
|
|
3333
3569
|
})
|
|
3334
3570
|
})]
|
|
3335
3571
|
}),
|
|
3336
|
-
v && /* @__PURE__ */ m("div", {
|
|
3572
|
+
j === "submission" && v && /* @__PURE__ */ m("div", {
|
|
3337
3573
|
part: "portal-card submission-card",
|
|
3338
|
-
className:
|
|
3574
|
+
className: E,
|
|
3339
3575
|
children: [
|
|
3340
3576
|
/* @__PURE__ */ m("div", {
|
|
3341
3577
|
className: "flex items-center gap-3 mb-4",
|
|
@@ -3346,16 +3582,16 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3346
3582
|
backgroundColor: `color-mix(in srgb, ${r} 12%, transparent)`,
|
|
3347
3583
|
color: r
|
|
3348
3584
|
},
|
|
3349
|
-
children: /* @__PURE__ */ p(
|
|
3585
|
+
children: /* @__PURE__ */ p(Ce, { size: 17 })
|
|
3350
3586
|
}),
|
|
3351
3587
|
/* @__PURE__ */ m("div", {
|
|
3352
3588
|
className: "flex-1 min-w-0",
|
|
3353
3589
|
children: [/* @__PURE__ */ p("h4", {
|
|
3354
|
-
className:
|
|
3590
|
+
className: O,
|
|
3355
3591
|
style: $,
|
|
3356
3592
|
children: "Your submission"
|
|
3357
3593
|
}), /* @__PURE__ */ p("p", {
|
|
3358
|
-
className: `text-[13px] ${
|
|
3594
|
+
className: `text-[13px] ${D}`,
|
|
3359
3595
|
children: v.registration_type_label || "Abstract submission"
|
|
3360
3596
|
})]
|
|
3361
3597
|
}),
|
|
@@ -3381,8 +3617,8 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3381
3617
|
children: v.status
|
|
3382
3618
|
})] })]
|
|
3383
3619
|
}),
|
|
3384
|
-
|
|
3385
|
-
onSubmit:
|
|
3620
|
+
Ae ? /* @__PURE__ */ m("form", {
|
|
3621
|
+
onSubmit: vt,
|
|
3386
3622
|
className: `mt-4 pt-4 border-t space-y-3.5 ${i ? "border-zinc-800" : "border-slate-100"}`,
|
|
3387
3623
|
children: [(v.editable_fields || []).map((e) => /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
|
|
3388
3624
|
className: `block text-[13px] font-semibold mb-1.5 ${i ? "text-zinc-200" : "text-slate-800"}`,
|
|
@@ -3392,14 +3628,14 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3392
3628
|
})]
|
|
3393
3629
|
}), e.type === "file" ? /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("button", {
|
|
3394
3630
|
type: "button",
|
|
3395
|
-
disabled:
|
|
3396
|
-
onClick: () =>
|
|
3631
|
+
disabled: q === e.id,
|
|
3632
|
+
onClick: () => Ie((t) => ({
|
|
3397
3633
|
...t,
|
|
3398
|
-
[e.id]:
|
|
3634
|
+
[e.id]: ut(e) === "file" ? "text" : "file"
|
|
3399
3635
|
})),
|
|
3400
3636
|
className: `mb-1.5 text-[12px] font-semibold underline disabled:opacity-50 ${i ? "text-zinc-400" : "text-slate-500"}`,
|
|
3401
|
-
children:
|
|
3402
|
-
}),
|
|
3637
|
+
children: ut(e) === "file" ? "Send text instead" : "Send file instead"
|
|
3638
|
+
}), ut(e) === "file" ? /* @__PURE__ */ m("div", { children: [
|
|
3403
3639
|
e.current_file?.serve_url && /* @__PURE__ */ p("a", {
|
|
3404
3640
|
href: e.current_file.serve_url,
|
|
3405
3641
|
target: "_blank",
|
|
@@ -3409,38 +3645,39 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3409
3645
|
}),
|
|
3410
3646
|
/* @__PURE__ */ p("input", {
|
|
3411
3647
|
type: "file",
|
|
3412
|
-
disabled:
|
|
3648
|
+
disabled: q === e.id,
|
|
3413
3649
|
onChange: (t) => {
|
|
3414
3650
|
let n = t.target.files?.[0];
|
|
3415
|
-
n &&
|
|
3651
|
+
n && mt(e.id, n);
|
|
3416
3652
|
},
|
|
3417
|
-
className: `w-full text-[13px] ${
|
|
3653
|
+
className: `w-full text-[13px] ${D}`
|
|
3418
3654
|
}),
|
|
3419
|
-
|
|
3420
|
-
className: `mt-1 text-[12.5px] ${
|
|
3655
|
+
q === e.id && /* @__PURE__ */ p("p", {
|
|
3656
|
+
className: `mt-1 text-[12.5px] ${D}`,
|
|
3421
3657
|
children: "Uploading…"
|
|
3422
3658
|
})
|
|
3423
3659
|
] }) : /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("textarea", {
|
|
3424
3660
|
rows: 4,
|
|
3425
|
-
disabled:
|
|
3426
|
-
value:
|
|
3661
|
+
disabled: q === e.id,
|
|
3662
|
+
value: Le[e.id] ?? "",
|
|
3427
3663
|
placeholder: "Enter your answer...",
|
|
3428
|
-
onChange: (t) =>
|
|
3429
|
-
...
|
|
3664
|
+
onChange: (t) => Re({
|
|
3665
|
+
...Le,
|
|
3430
3666
|
[e.id]: t.target.value
|
|
3431
3667
|
}),
|
|
3432
3668
|
className: `w-full px-3.5 py-2.5 text-sm font-medium rounded-xl border transition-all focus:outline-none resize-y ${i ? "bg-zinc-950 border-zinc-700 text-white placeholder:text-zinc-500" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400"}`
|
|
3433
3669
|
}), /* @__PURE__ */ p("button", {
|
|
3434
3670
|
type: "button",
|
|
3435
|
-
disabled:
|
|
3436
|
-
onClick: () =>
|
|
3671
|
+
disabled: q === e.id || !(Le[e.id] || "").trim(),
|
|
3672
|
+
onClick: () => gt(e.id),
|
|
3437
3673
|
className: "mt-1.5 inline-flex items-center h-8 px-3.5 rounded-full text-[12.5px] font-semibold text-white disabled:opacity-50 cursor-pointer",
|
|
3438
3674
|
style: { backgroundColor: r },
|
|
3439
|
-
children:
|
|
3675
|
+
children: q === e.id ? "Saving…" : "Save text answer"
|
|
3440
3676
|
})] })] }) : e.id === "registration_type" ? /* @__PURE__ */ m("select", {
|
|
3441
|
-
value:
|
|
3442
|
-
|
|
3443
|
-
|
|
3677
|
+
value: W[e.id] ?? "",
|
|
3678
|
+
required: e.required,
|
|
3679
|
+
onChange: (t) => G({
|
|
3680
|
+
...W,
|
|
3444
3681
|
[e.id]: t.target.value
|
|
3445
3682
|
}),
|
|
3446
3683
|
className: `w-full h-11 px-3.5 text-sm font-medium rounded-xl border transition-all focus:outline-none ${i ? "bg-zinc-950 border-zinc-700 text-white" : "bg-white border-slate-200 text-slate-900"}`,
|
|
@@ -3455,45 +3692,28 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3455
3692
|
value: e.id,
|
|
3456
3693
|
children: e.label
|
|
3457
3694
|
}, e.id))]
|
|
3458
|
-
}) :
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3695
|
+
}) : /* @__PURE__ */ p(_t, {
|
|
3696
|
+
field: e,
|
|
3697
|
+
value: W[e.id] ?? "",
|
|
3698
|
+
onChange: (t) => G({
|
|
3699
|
+
...W,
|
|
3700
|
+
[e.id]: t
|
|
3463
3701
|
}),
|
|
3464
|
-
className: `w-full h-11 px-3.5 text-sm font-medium rounded-xl border transition-all focus:outline-none ${i ? "bg-zinc-950 border-zinc-700 text-white" : "bg-white border-slate-200 text-slate-900"}`,
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
children: [
|
|
3468
|
-
"Select ",
|
|
3469
|
-
e.label,
|
|
3470
|
-
"..."
|
|
3471
|
-
]
|
|
3472
|
-
}), (e.options || []).map((e) => /* @__PURE__ */ p("option", {
|
|
3473
|
-
value: e,
|
|
3474
|
-
children: e
|
|
3475
|
-
}, e))]
|
|
3476
|
-
}) : /* @__PURE__ */ p("textarea", {
|
|
3477
|
-
rows: e.id === "name" || e.id === "phone" ? 1 : 4,
|
|
3478
|
-
value: Y[e.id] ?? "",
|
|
3479
|
-
placeholder: e.placeholder || `Enter ${e.label.toLowerCase()}`,
|
|
3480
|
-
onChange: (t) => X({
|
|
3481
|
-
...Y,
|
|
3482
|
-
[e.id]: t.target.value
|
|
3483
|
-
}),
|
|
3484
|
-
className: `w-full px-3.5 py-2.5 text-sm font-medium rounded-xl border transition-all focus:outline-none resize-y ${i ? "bg-zinc-950 border-zinc-700 text-white placeholder:text-zinc-500" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400"}`
|
|
3702
|
+
className: `w-full min-h-11 px-3.5 py-2.5 text-sm font-medium rounded-xl border transition-all focus:outline-none ${i ? "bg-zinc-950 border-zinc-700 text-white placeholder:text-zinc-500" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400"}`,
|
|
3703
|
+
isDark: i,
|
|
3704
|
+
placeholder: e.placeholder || `Enter ${(e.label || "").toLowerCase()}`
|
|
3485
3705
|
})] }, e.id)), /* @__PURE__ */ m("div", {
|
|
3486
3706
|
className: "flex items-center gap-2.5 pt-1",
|
|
3487
3707
|
children: [/* @__PURE__ */ p("button", {
|
|
3488
3708
|
type: "submit",
|
|
3489
|
-
disabled:
|
|
3709
|
+
disabled: je,
|
|
3490
3710
|
className: "inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold text-white shrink-0 cursor-pointer disabled:opacity-60",
|
|
3491
3711
|
style: { backgroundColor: r },
|
|
3492
|
-
children:
|
|
3712
|
+
children: je ? "Saving..." : "Save changes"
|
|
3493
3713
|
}), /* @__PURE__ */ p("button", {
|
|
3494
3714
|
type: "button",
|
|
3495
|
-
disabled:
|
|
3496
|
-
onClick: () =>
|
|
3715
|
+
disabled: je,
|
|
3716
|
+
onClick: () => H(!1),
|
|
3497
3717
|
className: `inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold border transition-colors cursor-pointer ${i ? "text-zinc-300 border-zinc-700 hover:bg-zinc-800" : "text-slate-600 border-slate-200 bg-white hover:bg-slate-50"}`,
|
|
3498
3718
|
children: "Cancel"
|
|
3499
3719
|
})]
|
|
@@ -3501,11 +3721,11 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3501
3721
|
}) : /* @__PURE__ */ m("div", {
|
|
3502
3722
|
className: `mt-4 pt-4 border-t flex items-center justify-between gap-3 flex-wrap ${i ? "border-zinc-800" : "border-slate-100"}`,
|
|
3503
3723
|
children: [/* @__PURE__ */ p("p", {
|
|
3504
|
-
className: `text-[13px] ${
|
|
3724
|
+
className: `text-[13px] ${D}`,
|
|
3505
3725
|
children: v.editable ? "You can still edit your answers until a reviewer picks this up." : "This submission has been assigned to a reviewer and can no longer be edited."
|
|
3506
3726
|
}), v.editable && /* @__PURE__ */ p("button", {
|
|
3507
3727
|
type: "button",
|
|
3508
|
-
onClick:
|
|
3728
|
+
onClick: lt,
|
|
3509
3729
|
className: "inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold text-white shrink-0 cursor-pointer",
|
|
3510
3730
|
style: { backgroundColor: r },
|
|
3511
3731
|
children: "Edit submission"
|
|
@@ -3513,7 +3733,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3513
3733
|
})
|
|
3514
3734
|
]
|
|
3515
3735
|
}),
|
|
3516
|
-
|
|
3736
|
+
Te && /* @__PURE__ */ m("div", {
|
|
3517
3737
|
className: "p-4 rounded-2xl flex flex-wrap items-center justify-between gap-3 text-sm",
|
|
3518
3738
|
style: {
|
|
3519
3739
|
backgroundColor: `color-mix(in srgb, ${r} ${i ? 14 : 7}%, transparent)`,
|
|
@@ -3521,24 +3741,24 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3521
3741
|
},
|
|
3522
3742
|
children: [/* @__PURE__ */ m("div", {
|
|
3523
3743
|
className: `flex items-center gap-2.5 ${i ? "text-zinc-200" : "text-slate-700"}`,
|
|
3524
|
-
children: [/* @__PURE__ */ p(
|
|
3744
|
+
children: [/* @__PURE__ */ p(ve, {
|
|
3525
3745
|
size: 17,
|
|
3526
3746
|
className: "shrink-0",
|
|
3527
3747
|
style: { color: r }
|
|
3528
3748
|
}), /* @__PURE__ */ p("span", { children: "Payment page opened in a new tab. If it didn't open:" })]
|
|
3529
3749
|
}), /* @__PURE__ */ m("a", {
|
|
3530
|
-
href:
|
|
3750
|
+
href: Te,
|
|
3531
3751
|
target: "_blank",
|
|
3532
3752
|
rel: "noopener noreferrer",
|
|
3533
3753
|
className: "inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold text-white shrink-0",
|
|
3534
3754
|
style: { backgroundColor: r },
|
|
3535
|
-
children: [/* @__PURE__ */ p("span", { children: "Complete payment" }), /* @__PURE__ */ p(
|
|
3755
|
+
children: [/* @__PURE__ */ p("span", { children: "Complete payment" }), /* @__PURE__ */ p(xe, { size: 12 })]
|
|
3536
3756
|
})]
|
|
3537
3757
|
}),
|
|
3538
3758
|
x && /* @__PURE__ */ m("div", {
|
|
3539
3759
|
role: "alert",
|
|
3540
3760
|
className: `p-3.5 rounded-xl flex items-start gap-2.5 text-sm ${i ? "bg-red-950/50 text-red-300 ring-1 ring-inset ring-red-900" : "bg-red-50 text-red-700 ring-1 ring-inset ring-red-200/80"}`,
|
|
3541
|
-
children: [/* @__PURE__ */ p(
|
|
3761
|
+
children: [/* @__PURE__ */ p(F, {
|
|
3542
3762
|
size: 17,
|
|
3543
3763
|
className: "shrink-0 mt-0.5"
|
|
3544
3764
|
}), /* @__PURE__ */ p("span", { children: x })]
|
|
@@ -3546,7 +3766,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3546
3766
|
C && /* @__PURE__ */ m("div", {
|
|
3547
3767
|
role: "status",
|
|
3548
3768
|
className: `p-3.5 rounded-xl flex items-start gap-2.5 text-sm ${i ? "bg-emerald-950/50 text-emerald-300 ring-1 ring-inset ring-emerald-900" : "bg-emerald-50 text-emerald-700 ring-1 ring-inset ring-emerald-200/80"}`,
|
|
3549
|
-
children: [/* @__PURE__ */ p(
|
|
3769
|
+
children: [/* @__PURE__ */ p(de, {
|
|
3550
3770
|
size: 17,
|
|
3551
3771
|
className: "shrink-0 mt-0.5"
|
|
3552
3772
|
}), /* @__PURE__ */ p("span", { children: C })]
|
|
@@ -3556,7 +3776,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3556
3776
|
})]
|
|
3557
3777
|
});
|
|
3558
3778
|
}
|
|
3559
|
-
let
|
|
3779
|
+
let kt = `w-full h-11 pl-10 pr-3.5 text-sm font-medium rounded-xl border transition-all focus:outline-none ${i ? "bg-zinc-950 border-zinc-700 text-white placeholder:text-zinc-500 hover:border-zinc-600 focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_20%,transparent)]" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400 hover:border-slate-300 shadow-[0_1px_2px_rgba(15,23,42,0.04)] focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_15%,transparent)]"}`, At = /* @__PURE__ */ m("svg", {
|
|
3560
3780
|
className: "animate-spin h-4 w-4 text-white",
|
|
3561
3781
|
fill: "none",
|
|
3562
3782
|
viewBox: "0 0 24 24",
|
|
@@ -3573,9 +3793,9 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3573
3793
|
fill: "currentColor",
|
|
3574
3794
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
3575
3795
|
})]
|
|
3576
|
-
}),
|
|
3796
|
+
}), jt = (e) => {
|
|
3577
3797
|
u(e), S(null), w(null);
|
|
3578
|
-
},
|
|
3798
|
+
}, Mt = ({ id: e, label: t, icon: n, type: r = "text", value: a, onChange: o, placeholder: s, autoComplete: c, aside: l }) => /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("div", {
|
|
3579
3799
|
className: "flex items-center justify-between gap-2 mb-1.5",
|
|
3580
3800
|
children: [/* @__PURE__ */ p("label", {
|
|
3581
3801
|
part: "field-label",
|
|
@@ -3597,23 +3817,23 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3597
3817
|
autoComplete: c,
|
|
3598
3818
|
onChange: (e) => o(e.target.value),
|
|
3599
3819
|
placeholder: s,
|
|
3600
|
-
className:
|
|
3820
|
+
className: kt
|
|
3601
3821
|
})]
|
|
3602
|
-
})] }),
|
|
3822
|
+
})] }), Nt = () => /* @__PURE__ */ m(f, { children: [x && /* @__PURE__ */ m("div", {
|
|
3603
3823
|
role: "alert",
|
|
3604
3824
|
className: `p-3.5 rounded-xl flex items-start gap-2.5 text-sm ${i ? "bg-red-950/50 text-red-300 ring-1 ring-inset ring-red-900" : "bg-red-50 text-red-700 ring-1 ring-inset ring-red-200/80"}`,
|
|
3605
|
-
children: [/* @__PURE__ */ p(
|
|
3825
|
+
children: [/* @__PURE__ */ p(F, {
|
|
3606
3826
|
size: 17,
|
|
3607
3827
|
className: "shrink-0 mt-0.5"
|
|
3608
3828
|
}), /* @__PURE__ */ p("span", { children: x })]
|
|
3609
3829
|
}), C && /* @__PURE__ */ m("div", {
|
|
3610
3830
|
role: "status",
|
|
3611
3831
|
className: `p-3.5 rounded-xl flex items-start gap-2.5 text-sm ${i ? "bg-emerald-950/50 text-emerald-300 ring-1 ring-inset ring-emerald-900" : "bg-emerald-50 text-emerald-700 ring-1 ring-inset ring-emerald-200/80"}`,
|
|
3612
|
-
children: [/* @__PURE__ */ p(
|
|
3832
|
+
children: [/* @__PURE__ */ p(de, {
|
|
3613
3833
|
size: 17,
|
|
3614
3834
|
className: "shrink-0 mt-0.5"
|
|
3615
3835
|
}), /* @__PURE__ */ p("span", { children: C })]
|
|
3616
|
-
})] }),
|
|
3836
|
+
})] }), Pt = (e, t, n) => /* @__PURE__ */ p("button", {
|
|
3617
3837
|
part: "button button-primary submit-button",
|
|
3618
3838
|
type: "submit",
|
|
3619
3839
|
disabled: e,
|
|
@@ -3622,13 +3842,13 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3622
3842
|
boxShadow: `0 10px 24px -12px color-mix(in srgb, ${r} 70%, transparent)`
|
|
3623
3843
|
},
|
|
3624
3844
|
className: "group w-full h-11 px-4 text-white text-sm font-semibold rounded-xl hover:brightness-110 active:scale-[0.99] transition-all flex items-center justify-center gap-2 cursor-pointer disabled:opacity-60 disabled:cursor-not-allowed",
|
|
3625
|
-
children: e ? /* @__PURE__ */ m(f, { children: [
|
|
3845
|
+
children: e ? /* @__PURE__ */ m(f, { children: [At, /* @__PURE__ */ p("span", { children: n })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", { children: t }), /* @__PURE__ */ p(ne, {
|
|
3626
3846
|
size: 16,
|
|
3627
3847
|
className: "transition-transform group-hover:translate-x-0.5"
|
|
3628
3848
|
})] })
|
|
3629
|
-
}),
|
|
3849
|
+
}), Ft = ({ icon: e, title: t, subtitle: n, onBack: o, children: s }) => /* @__PURE__ */ m("div", {
|
|
3630
3850
|
className: `flex flex-col ${a ? "w-full flex-1" : "h-full overflow-y-auto"} relative bg-transparent ${i ? "text-white" : "text-slate-900"}`,
|
|
3631
|
-
children: [
|
|
3851
|
+
children: [Tt(), /* @__PURE__ */ m("div", {
|
|
3632
3852
|
className: `px-4 sm:px-6 ${a ? "py-8 sm:py-10" : "py-5"} flex-1 max-w-[400px] mx-auto w-full flex flex-col justify-center relative z-10`,
|
|
3633
3853
|
children: [o && /* @__PURE__ */ m("button", {
|
|
3634
3854
|
part: "button button-link back-button",
|
|
@@ -3660,25 +3880,25 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3660
3880
|
children: n
|
|
3661
3881
|
})
|
|
3662
3882
|
] }),
|
|
3663
|
-
|
|
3883
|
+
Nt(),
|
|
3664
3884
|
s
|
|
3665
3885
|
]
|
|
3666
3886
|
})]
|
|
3667
3887
|
})]
|
|
3668
|
-
}),
|
|
3669
|
-
return
|
|
3670
|
-
icon:
|
|
3888
|
+
}), It = "font-semibold hover:underline underline-offset-4 cursor-pointer";
|
|
3889
|
+
return Ft(l === "request_code" ? {
|
|
3890
|
+
icon: Y,
|
|
3671
3891
|
title: "Get verification code",
|
|
3672
3892
|
subtitle: "We will email a verification code to your registered address.",
|
|
3673
|
-
onBack: () =>
|
|
3893
|
+
onBack: () => jt("login"),
|
|
3674
3894
|
children: /* @__PURE__ */ m("form", {
|
|
3675
|
-
onSubmit:
|
|
3895
|
+
onSubmit: $e,
|
|
3676
3896
|
className: "space-y-4",
|
|
3677
3897
|
children: [
|
|
3678
|
-
|
|
3898
|
+
Mt({
|
|
3679
3899
|
id: "vx-portal-code-identifier",
|
|
3680
3900
|
label: "Registration number or email",
|
|
3681
|
-
icon:
|
|
3901
|
+
icon: Y,
|
|
3682
3902
|
value: A || T,
|
|
3683
3903
|
onChange: (e) => {
|
|
3684
3904
|
j(e), E(e);
|
|
@@ -3686,7 +3906,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3686
3906
|
placeholder: "e.g. attendee@example.com or REG12345",
|
|
3687
3907
|
autoComplete: "username"
|
|
3688
3908
|
}),
|
|
3689
|
-
|
|
3909
|
+
Pt(le, "Send verification code", "Sending code..."),
|
|
3690
3910
|
/* @__PURE__ */ m("p", {
|
|
3691
3911
|
className: `text-center text-[13px] ${i ? "text-zinc-400" : "text-slate-500"}`,
|
|
3692
3912
|
children: [
|
|
@@ -3694,8 +3914,8 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3694
3914
|
" ",
|
|
3695
3915
|
/* @__PURE__ */ p("button", {
|
|
3696
3916
|
type: "button",
|
|
3697
|
-
onClick: () =>
|
|
3698
|
-
className:
|
|
3917
|
+
onClick: () => jt("reset"),
|
|
3918
|
+
className: It,
|
|
3699
3919
|
style: { color: r },
|
|
3700
3920
|
children: "Set your password"
|
|
3701
3921
|
})
|
|
@@ -3704,18 +3924,18 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3704
3924
|
]
|
|
3705
3925
|
})
|
|
3706
3926
|
} : l === "reset" ? {
|
|
3707
|
-
icon:
|
|
3927
|
+
icon: V,
|
|
3708
3928
|
title: "Set your password",
|
|
3709
3929
|
subtitle: "Enter the code from your email and choose a new password.",
|
|
3710
|
-
onBack: () =>
|
|
3930
|
+
onBack: () => jt("login"),
|
|
3711
3931
|
children: /* @__PURE__ */ m("form", {
|
|
3712
|
-
onSubmit:
|
|
3932
|
+
onSubmit: Q,
|
|
3713
3933
|
className: "space-y-4",
|
|
3714
3934
|
children: [
|
|
3715
|
-
|
|
3935
|
+
Mt({
|
|
3716
3936
|
id: "vx-portal-reset-identifier",
|
|
3717
3937
|
label: "Registration number or email",
|
|
3718
|
-
icon:
|
|
3938
|
+
icon: Y,
|
|
3719
3939
|
value: A || T,
|
|
3720
3940
|
onChange: (e) => {
|
|
3721
3941
|
j(e), E(e);
|
|
@@ -3723,68 +3943,68 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3723
3943
|
placeholder: "e.g. attendee@example.com or REG12345",
|
|
3724
3944
|
autoComplete: "username"
|
|
3725
3945
|
}),
|
|
3726
|
-
|
|
3946
|
+
Mt({
|
|
3727
3947
|
id: "vx-portal-reset-code",
|
|
3728
3948
|
label: "Verification code",
|
|
3729
|
-
icon:
|
|
3949
|
+
icon: U,
|
|
3730
3950
|
value: M,
|
|
3731
|
-
onChange:
|
|
3951
|
+
onChange: N,
|
|
3732
3952
|
placeholder: "Enter code from email",
|
|
3733
3953
|
autoComplete: "one-time-code",
|
|
3734
3954
|
aside: /* @__PURE__ */ p("button", {
|
|
3735
3955
|
type: "button",
|
|
3736
3956
|
onClick: () => {
|
|
3737
|
-
j(A || T),
|
|
3957
|
+
j(A || T), jt("request_code");
|
|
3738
3958
|
},
|
|
3739
3959
|
className: "text-xs font-semibold hover:underline underline-offset-4 cursor-pointer",
|
|
3740
3960
|
style: { color: r },
|
|
3741
3961
|
children: "Get code on email"
|
|
3742
3962
|
})
|
|
3743
3963
|
}),
|
|
3744
|
-
|
|
3964
|
+
Mt({
|
|
3745
3965
|
id: "vx-portal-reset-password",
|
|
3746
3966
|
label: "New password",
|
|
3747
|
-
icon:
|
|
3967
|
+
icon: Me,
|
|
3748
3968
|
type: "password",
|
|
3749
|
-
value:
|
|
3750
|
-
onChange:
|
|
3969
|
+
value: re,
|
|
3970
|
+
onChange: ie,
|
|
3751
3971
|
placeholder: "Enter new password",
|
|
3752
3972
|
autoComplete: "new-password"
|
|
3753
3973
|
}),
|
|
3754
|
-
|
|
3974
|
+
Mt({
|
|
3755
3975
|
id: "vx-portal-reset-confirm",
|
|
3756
3976
|
label: "Confirm password",
|
|
3757
|
-
icon:
|
|
3977
|
+
icon: Me,
|
|
3758
3978
|
type: "password",
|
|
3759
3979
|
value: oe,
|
|
3760
3980
|
onChange: ce,
|
|
3761
3981
|
placeholder: "Re-enter new password",
|
|
3762
3982
|
autoComplete: "new-password"
|
|
3763
3983
|
}),
|
|
3764
|
-
|
|
3984
|
+
Pt(h, "Set new password", "Updating password...")
|
|
3765
3985
|
]
|
|
3766
3986
|
})
|
|
3767
3987
|
} : {
|
|
3768
|
-
icon:
|
|
3988
|
+
icon: Ne,
|
|
3769
3989
|
title: "Attendee login",
|
|
3770
3990
|
subtitle: "Sign in with your email or registration number.",
|
|
3771
3991
|
children: /* @__PURE__ */ m("form", {
|
|
3772
|
-
onSubmit:
|
|
3992
|
+
onSubmit: Ze,
|
|
3773
3993
|
className: "space-y-4",
|
|
3774
3994
|
children: [
|
|
3775
|
-
|
|
3995
|
+
Mt({
|
|
3776
3996
|
id: "vx-portal-login-identifier",
|
|
3777
3997
|
label: "Email or registration number",
|
|
3778
|
-
icon:
|
|
3998
|
+
icon: Y,
|
|
3779
3999
|
value: T,
|
|
3780
4000
|
onChange: E,
|
|
3781
4001
|
placeholder: "Enter email or registration number",
|
|
3782
4002
|
autoComplete: "username"
|
|
3783
4003
|
}),
|
|
3784
|
-
|
|
4004
|
+
Mt({
|
|
3785
4005
|
id: "vx-portal-login-password",
|
|
3786
4006
|
label: "Password",
|
|
3787
|
-
icon:
|
|
4007
|
+
icon: Me,
|
|
3788
4008
|
type: "password",
|
|
3789
4009
|
value: D,
|
|
3790
4010
|
onChange: O,
|
|
@@ -3793,14 +4013,14 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3793
4013
|
aside: /* @__PURE__ */ p("button", {
|
|
3794
4014
|
type: "button",
|
|
3795
4015
|
onClick: () => {
|
|
3796
|
-
j(T),
|
|
4016
|
+
j(T), jt("reset");
|
|
3797
4017
|
},
|
|
3798
4018
|
className: "text-xs font-semibold hover:underline underline-offset-4 cursor-pointer",
|
|
3799
4019
|
style: { color: r },
|
|
3800
4020
|
children: "Forgot password?"
|
|
3801
4021
|
})
|
|
3802
4022
|
}),
|
|
3803
|
-
|
|
4023
|
+
Pt(h, "Login", "Logging in..."),
|
|
3804
4024
|
/* @__PURE__ */ m("p", {
|
|
3805
4025
|
className: `pt-4 border-t text-center text-[13px] ${i ? "border-zinc-800 text-zinc-400" : "border-slate-100 text-slate-500"}`,
|
|
3806
4026
|
children: [
|
|
@@ -3809,9 +4029,9 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3809
4029
|
/* @__PURE__ */ p("button", {
|
|
3810
4030
|
type: "button",
|
|
3811
4031
|
onClick: () => {
|
|
3812
|
-
j(T),
|
|
4032
|
+
j(T), jt("request_code");
|
|
3813
4033
|
},
|
|
3814
|
-
className:
|
|
4034
|
+
className: It,
|
|
3815
4035
|
style: { color: r },
|
|
3816
4036
|
children: "Get code"
|
|
3817
4037
|
}),
|
|
@@ -3821,9 +4041,9 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3821
4041
|
/* @__PURE__ */ p("button", {
|
|
3822
4042
|
type: "button",
|
|
3823
4043
|
onClick: () => {
|
|
3824
|
-
j(T),
|
|
4044
|
+
j(T), jt("reset");
|
|
3825
4045
|
},
|
|
3826
|
-
className:
|
|
4046
|
+
className: It,
|
|
3827
4047
|
style: { color: r },
|
|
3828
4048
|
children: "generate password"
|
|
3829
4049
|
})
|
|
@@ -3835,7 +4055,7 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
3835
4055
|
};
|
|
3836
4056
|
//#endregion
|
|
3837
4057
|
//#region src/widget/utils/backgroundUtils.ts
|
|
3838
|
-
function
|
|
4058
|
+
function Ct(e, t, n) {
|
|
3839
4059
|
if (!e) return;
|
|
3840
4060
|
let r = t ? "rgba(9,9,11,0.88)" : "rgba(248,250,252,0.88)";
|
|
3841
4061
|
return {
|
|
@@ -3848,7 +4068,7 @@ function gt(e, t, n) {
|
|
|
3848
4068
|
}
|
|
3849
4069
|
//#endregion
|
|
3850
4070
|
//#region src/widget/components/EventWidgetReact.tsx
|
|
3851
|
-
function
|
|
4071
|
+
function wt(e) {
|
|
3852
4072
|
if (!e) return "bottom-right";
|
|
3853
4073
|
switch (e) {
|
|
3854
4074
|
case "bottom-left":
|
|
@@ -3860,7 +4080,7 @@ function _t(e) {
|
|
|
3860
4080
|
default: return "bottom-right";
|
|
3861
4081
|
}
|
|
3862
4082
|
}
|
|
3863
|
-
var
|
|
4083
|
+
var Tt = (e) => {
|
|
3864
4084
|
switch (e) {
|
|
3865
4085
|
case "bottom-left": return {
|
|
3866
4086
|
bottom: "20px",
|
|
@@ -3887,23 +4107,26 @@ var vt = (e) => {
|
|
|
3887
4107
|
left: "auto"
|
|
3888
4108
|
};
|
|
3889
4109
|
}
|
|
3890
|
-
},
|
|
4110
|
+
}, Et = (e) => {
|
|
3891
4111
|
switch (e) {
|
|
3892
4112
|
case "bottom-left": return "bottom-5 left-5";
|
|
3893
4113
|
case "top-right": return "top-5 right-5";
|
|
3894
4114
|
case "top-left": return "top-5 left-5";
|
|
3895
4115
|
default: return "bottom-5 right-5";
|
|
3896
4116
|
}
|
|
3897
|
-
},
|
|
4117
|
+
}, Dt = ({ config: e }) => {
|
|
3898
4118
|
let [t, n] = d("registration"), [r, i] = d(!1);
|
|
3899
4119
|
s(() => {
|
|
3900
4120
|
t === "attendee" && i(!0);
|
|
3901
4121
|
}, [t]);
|
|
3902
|
-
let [o] = d(() => typeof window < "u" ? new URLSearchParams(window.location.search).get("rn") : null), [c, h] = d(e.displayMode !== "popup" || !!o), [y, b] = d(!1), [x, S] = d([]), [C, w] = d(""), [T, E] = d(null), [D, O] = d(null), ee = l(() => D && { fields: D.fields.filter((e) => e.id !== "registration_type") }, [D]), [k, A] = d(!0), [j, M] = d(""), [te,
|
|
4122
|
+
let [o] = d(() => typeof window < "u" ? new URLSearchParams(window.location.search).get("rn") : null), [c, h] = d(e.displayMode !== "popup" || !!o), [y, b] = d(!1), [x, S] = d([]), [C, w] = d(""), [T, E] = d(null), [D, O] = d(null), ee = l(() => D && { fields: D.fields.filter((e) => e.id !== "registration_type") }, [D]), [k, A] = d(!0), [j, M] = d(""), [te, N] = d(null), [re, P] = d(!!o), [ie, ae] = d(null), [oe, ce] = d(null), [le, ue] = d(o), [F, I] = d(null), [de, fe] = d(null), [me, ge] = d(!1), [L, ve] = d({
|
|
4123
|
+
amount: null,
|
|
4124
|
+
currency: null
|
|
4125
|
+
}), [ye, be] = d(!1), [R, Se] = d(() => wt(e.position)), [z, we] = d(null), [Te, Ee] = d(null), [B, De] = d(!1), [Oe, ke] = d(!1), Ae = u(null), V = u(null), H = u(!1);
|
|
3903
4126
|
s(() => {
|
|
3904
|
-
e.position &&
|
|
4127
|
+
e.position && Se(wt(e.position));
|
|
3905
4128
|
}, [e.position]);
|
|
3906
|
-
let U = e.themeMode === "dark" || e.theme?.mode === "dark", W = e.theme?.primaryColor || "#2563eb", G = !!e.isAbstract,
|
|
4129
|
+
let U = e.themeMode === "dark" || e.theme?.mode === "dark", W = e.theme?.primaryColor || "#2563eb", G = !!e.isAbstract, je = e.headerBannerImage, Me = e.backgroundImage, K = l(() => new g(e.debug), [e.debug]), q = l(() => new _(e.baseUrl, e.eventSlug, K, e.timeoutMs ?? 12e4), [
|
|
3907
4130
|
e.baseUrl,
|
|
3908
4131
|
e.eventSlug,
|
|
3909
4132
|
K,
|
|
@@ -3915,12 +4138,12 @@ var vt = (e) => {
|
|
|
3915
4138
|
return q.verifyPayment(o).then((n) => {
|
|
3916
4139
|
if (t) return;
|
|
3917
4140
|
let r = !!(n?.data?.confirmed ?? n?.confirmed);
|
|
3918
|
-
|
|
4141
|
+
I(r), e.onEvent?.("payment_verified", {
|
|
3919
4142
|
registration_number: o,
|
|
3920
4143
|
confirmed: r
|
|
3921
4144
|
});
|
|
3922
4145
|
}).catch((e) => {
|
|
3923
|
-
t ||
|
|
4146
|
+
t || I(!1), K.error("Payment verification failed", e);
|
|
3924
4147
|
}), () => {
|
|
3925
4148
|
t = !0;
|
|
3926
4149
|
};
|
|
@@ -3930,15 +4153,27 @@ var vt = (e) => {
|
|
|
3930
4153
|
K,
|
|
3931
4154
|
e
|
|
3932
4155
|
]);
|
|
3933
|
-
let
|
|
4156
|
+
let Pe = u(e.displayMode), Y = u(null), [X, Fe] = d(null), Ie = u(null);
|
|
3934
4157
|
s(() => {
|
|
4158
|
+
if (e.displayMode !== "widget") return;
|
|
4159
|
+
let t = Ie.current;
|
|
4160
|
+
t && t.getBoundingClientRect().top < 0 && t.scrollIntoView({
|
|
4161
|
+
behavior: "smooth",
|
|
4162
|
+
block: "start"
|
|
4163
|
+
});
|
|
4164
|
+
}, [
|
|
4165
|
+
e.displayMode,
|
|
4166
|
+
re,
|
|
4167
|
+
k,
|
|
4168
|
+
T
|
|
4169
|
+
]), s(() => {
|
|
3935
4170
|
J.getXrefId();
|
|
3936
4171
|
}, [J]), s(() => {
|
|
3937
4172
|
if (!c) return;
|
|
3938
4173
|
let t = J.getXrefId();
|
|
3939
4174
|
t && (G ? q.getReviewDraft(t) : q.getDraft(t)).then((t) => {
|
|
3940
4175
|
let n = t?.data || t;
|
|
3941
|
-
n && n.registration_type && (
|
|
4176
|
+
n && n.registration_type && (Fe(n), e.onEvent?.("draft_loaded", n));
|
|
3942
4177
|
}).catch((e) => {
|
|
3943
4178
|
K.log("No draft found for this session", e);
|
|
3944
4179
|
});
|
|
@@ -3949,7 +4184,7 @@ var vt = (e) => {
|
|
|
3949
4184
|
K,
|
|
3950
4185
|
G
|
|
3951
4186
|
]);
|
|
3952
|
-
let
|
|
4187
|
+
let Re = l(() => {
|
|
3953
4188
|
if (!X || !T || String(X.registration_type) !== String(T.id)) return {};
|
|
3954
4189
|
let e = { ...X.custom_data || {} };
|
|
3955
4190
|
if (Array.isArray(X.accompanying) && (e.accompanying = X.accompanying), X.salutation && (e.salutation = X.salutation, e.title = X.salutation), X.name) {
|
|
@@ -3958,7 +4193,7 @@ var vt = (e) => {
|
|
|
3958
4193
|
t.length > 0 && !e.first_name && (e.first_name = t[0]), t.length > 1 && !e.last_name && (e.last_name = t.slice(1).join(" "));
|
|
3959
4194
|
}
|
|
3960
4195
|
return X.email && (e.email = X.email), X.phone && (e.phone = X.phone, e.mobile = X.phone, e.phoneNumber = X.phone), ((G ? D?.fields : T?.form_schema?.fields) || []).forEach((t) => {
|
|
3961
|
-
let n =
|
|
4196
|
+
let n = ft(t.id, t.label);
|
|
3962
4197
|
e[t.id] === void 0 && e[n] !== void 0 && (e[t.id] = e[n]);
|
|
3963
4198
|
}), e;
|
|
3964
4199
|
}, [
|
|
@@ -3970,7 +4205,7 @@ var vt = (e) => {
|
|
|
3970
4205
|
s(() => () => {
|
|
3971
4206
|
Y.current && clearTimeout(Y.current);
|
|
3972
4207
|
}, []);
|
|
3973
|
-
let
|
|
4208
|
+
let Be = a((t) => {
|
|
3974
4209
|
Y.current && clearTimeout(Y.current), Y.current = setTimeout(async () => {
|
|
3975
4210
|
if (!Object.values(t).some((e) => e !== "" && e != null)) return;
|
|
3976
4211
|
let n = /* @__PURE__ */ new Set([
|
|
@@ -3992,7 +4227,7 @@ var vt = (e) => {
|
|
|
3992
4227
|
r.forEach((e) => i.set(e.id, e));
|
|
3993
4228
|
let a = { ...t.custom_data || {} };
|
|
3994
4229
|
for (let [e, r] of Object.entries(t)) if (!n.has(e)) {
|
|
3995
|
-
let t =
|
|
4230
|
+
let t = ft(e, i.get(e)?.label);
|
|
3996
4231
|
a[t] = r;
|
|
3997
4232
|
}
|
|
3998
4233
|
let o = {
|
|
@@ -4022,7 +4257,7 @@ var vt = (e) => {
|
|
|
4022
4257
|
D
|
|
4023
4258
|
]);
|
|
4024
4259
|
s(() => {
|
|
4025
|
-
|
|
4260
|
+
Pe.current !== e.displayMode && (Pe.current = e.displayMode, h(e.displayMode !== "popup"), b(!1));
|
|
4026
4261
|
}, [e.displayMode]), s(() => {
|
|
4027
4262
|
(G ? q.getReviewFormSchema() : q.getFormSchema()).then((t) => {
|
|
4028
4263
|
S(t?.data?.types || []), G && O({ fields: t?.data?.fields || [] }), (t?.data?.event_name || t?.data?.title || t?.data?.name) && w(t.data.event_name || t.data.title || t.data.name), e.onEvent?.("form_loaded", t?.data);
|
|
@@ -4036,7 +4271,7 @@ var vt = (e) => {
|
|
|
4036
4271
|
e.onEvent?.("error", n), e.onError?.(n);
|
|
4037
4272
|
}).finally(() => A(!1));
|
|
4038
4273
|
}, [q, G]);
|
|
4039
|
-
let
|
|
4274
|
+
let He = async (t) => {
|
|
4040
4275
|
Y.current && clearTimeout(Y.current), A(!0), ae(null);
|
|
4041
4276
|
let n = J.getXrefId(), r = /* @__PURE__ */ new Set([
|
|
4042
4277
|
"salutation",
|
|
@@ -4059,7 +4294,7 @@ var vt = (e) => {
|
|
|
4059
4294
|
i.forEach((e) => a.set(e.id, e));
|
|
4060
4295
|
let o = { ...t.custom_data || {} };
|
|
4061
4296
|
for (let [e, n] of Object.entries(t)) if (!r.has(e)) {
|
|
4062
|
-
let t =
|
|
4297
|
+
let t = ft(e, a.get(e)?.label);
|
|
4063
4298
|
o[t] = n;
|
|
4064
4299
|
}
|
|
4065
4300
|
let s = {
|
|
@@ -4075,18 +4310,23 @@ var vt = (e) => {
|
|
|
4075
4310
|
};
|
|
4076
4311
|
try {
|
|
4077
4312
|
let t = G ? await q.submitReview(s) : await q.submitRegistration(s);
|
|
4078
|
-
J.updateXrefId(),
|
|
4313
|
+
J.updateXrefId(), Fe(null);
|
|
4079
4314
|
let n = G ? null : t?.data?.payment_url || t?.payment_url || null;
|
|
4080
4315
|
ce(n);
|
|
4081
|
-
let r =
|
|
4082
|
-
|
|
4083
|
-
|
|
4316
|
+
let r = G ? null : t?.data?.custom_qr || t?.custom_qr || null;
|
|
4317
|
+
fe(r), ge(!1), ve({
|
|
4318
|
+
amount: t?.data?.amount ?? null,
|
|
4319
|
+
currency: t?.data?.currency ?? null
|
|
4320
|
+
});
|
|
4321
|
+
let i = t?.data?.submission_number || t?.submission_number || t?.data?.registration_number || t?.registration_number || t?.data?.registration?.registration_number || t?.registration?.registration_number || null;
|
|
4322
|
+
ue(i ? String(i) : null), be(!1), n && typeof n == "string" && n.trim() !== "" && window.open(n, "_blank", "noopener,noreferrer"), P(!0);
|
|
4323
|
+
let a = {
|
|
4084
4324
|
registrationType: T.id,
|
|
4085
4325
|
payload: s,
|
|
4086
4326
|
response: t,
|
|
4087
4327
|
paymentUrl: n
|
|
4088
4328
|
};
|
|
4089
|
-
e.onEvent?.("submitted",
|
|
4329
|
+
e.onEvent?.("submitted", a), e.onRegister?.(a), e.onRegistered?.(a);
|
|
4090
4330
|
} catch (t) {
|
|
4091
4331
|
K.error("Submission failed", t);
|
|
4092
4332
|
let n = t?.message || (G ? "Submission failed. Please check your information and try again." : "Registration failed. Please check your information and try again."), r = {
|
|
@@ -4098,53 +4338,53 @@ var vt = (e) => {
|
|
|
4098
4338
|
} finally {
|
|
4099
4339
|
A(!1);
|
|
4100
4340
|
}
|
|
4101
|
-
},
|
|
4102
|
-
if (
|
|
4341
|
+
}, Ue = () => {
|
|
4342
|
+
if (P(!1), ae(null), ce(null), fe(null), ge(!1), ue(null), be(!1), E(null), Fe(null), typeof window < "u" && new URLSearchParams(window.location.search).has("rn")) {
|
|
4103
4343
|
let e = new URL(window.location.href);
|
|
4104
4344
|
e.searchParams.delete("rn"), window.history.replaceState(window.history.state, "", e.toString());
|
|
4105
4345
|
}
|
|
4106
|
-
},
|
|
4107
|
-
if (e.stopPropagation(), e.button !== 0 || !
|
|
4108
|
-
let t =
|
|
4346
|
+
}, We = a((e) => {
|
|
4347
|
+
if (e.stopPropagation(), e.button !== 0 || !Ae.current) return;
|
|
4348
|
+
let t = Ae.current.getBoundingClientRect();
|
|
4109
4349
|
V.current = {
|
|
4110
4350
|
startX: e.clientX,
|
|
4111
4351
|
startY: e.clientY,
|
|
4112
4352
|
rect: t,
|
|
4113
|
-
corner:
|
|
4114
|
-
}, H.current = !1,
|
|
4115
|
-
}, [
|
|
4353
|
+
corner: R
|
|
4354
|
+
}, H.current = !1, De(!0);
|
|
4355
|
+
}, [R]);
|
|
4116
4356
|
s(() => {
|
|
4117
|
-
if (!
|
|
4357
|
+
if (!B) return;
|
|
4118
4358
|
let t = (e) => {
|
|
4119
4359
|
if (!V.current) return;
|
|
4120
4360
|
let t = e.clientX - V.current.startX, n = e.clientY - V.current.startY;
|
|
4121
|
-
H.current || Math.hypot(t, n) > 5 && (H.current = !0), H.current &&
|
|
4361
|
+
H.current || Math.hypot(t, n) > 5 && (H.current = !0), H.current && we({
|
|
4122
4362
|
x: t,
|
|
4123
4363
|
y: n
|
|
4124
4364
|
});
|
|
4125
4365
|
}, n = (t) => {
|
|
4126
4366
|
if (!V.current) {
|
|
4127
|
-
|
|
4367
|
+
De(!1), we(null), H.current = !1;
|
|
4128
4368
|
return;
|
|
4129
4369
|
}
|
|
4130
4370
|
let { rect: n, startX: r, startY: i } = V.current, a = t.clientX - r, o = t.clientY - i, s = H.current;
|
|
4131
|
-
if (V.current = null,
|
|
4371
|
+
if (V.current = null, De(!1), setTimeout(() => {
|
|
4132
4372
|
H.current = !1;
|
|
4133
4373
|
}, 100), !s) {
|
|
4134
|
-
|
|
4374
|
+
we(null);
|
|
4135
4375
|
return;
|
|
4136
4376
|
}
|
|
4137
4377
|
let c = n.left + a, l = n.top + o, u = c + n.width / 2, d = l + n.height / 2, f = typeof window < "u" ? window.innerWidth : 1024, p = typeof window < "u" ? window.innerHeight : 768, m = u >= f / 2, h = d >= p / 2, g = h ? m ? "bottom-right" : "bottom-left" : m ? "top-right" : "top-left", _ = m ? f - n.width - 20 : 20, v = h ? p - n.height - 20 : 20, y = c - _, b = l - v;
|
|
4138
|
-
|
|
4378
|
+
Ee({
|
|
4139
4379
|
transform: `translate3d(${y}px, ${b}px, 0)`,
|
|
4140
4380
|
transition: "none"
|
|
4141
|
-
}),
|
|
4381
|
+
}), we(null), Se(g), e.onEvent?.("position_changed", { position: g }), requestAnimationFrame(() => {
|
|
4142
4382
|
requestAnimationFrame(() => {
|
|
4143
|
-
|
|
4383
|
+
Ee({
|
|
4144
4384
|
transform: "translate3d(0, 0, 0)",
|
|
4145
4385
|
transition: "transform 0.35s cubic-bezier(0.16, 1, 0.3, 1)"
|
|
4146
4386
|
}), setTimeout(() => {
|
|
4147
|
-
|
|
4387
|
+
Ee(null);
|
|
4148
4388
|
}, 360);
|
|
4149
4389
|
});
|
|
4150
4390
|
});
|
|
@@ -4152,8 +4392,8 @@ var vt = (e) => {
|
|
|
4152
4392
|
return window.addEventListener("pointermove", t), window.addEventListener("pointerup", n), window.addEventListener("pointercancel", n), () => {
|
|
4153
4393
|
window.removeEventListener("pointermove", t), window.removeEventListener("pointerup", n), window.removeEventListener("pointercancel", n);
|
|
4154
4394
|
};
|
|
4155
|
-
}, [
|
|
4156
|
-
let
|
|
4395
|
+
}, [B, e]);
|
|
4396
|
+
let Ge = async () => {
|
|
4157
4397
|
if (le) {
|
|
4158
4398
|
try {
|
|
4159
4399
|
await navigator.clipboard.writeText(le);
|
|
@@ -4161,9 +4401,9 @@ var vt = (e) => {
|
|
|
4161
4401
|
let e = document.createElement("textarea");
|
|
4162
4402
|
e.value = le, document.body.appendChild(e), e.select(), document.execCommand("copy"), document.body.removeChild(e);
|
|
4163
4403
|
}
|
|
4164
|
-
|
|
4404
|
+
be(!0), setTimeout(() => be(!1), 2e3);
|
|
4165
4405
|
}
|
|
4166
|
-
},
|
|
4406
|
+
}, Ke = (t) => !t || /^https?:\/\//i.test(t) ? t : `${e.baseUrl.replace(/\/$/, "")}${t}`, qe = () => le ? /* @__PURE__ */ m("div", {
|
|
4167
4407
|
className: "w-full max-w-xs mb-6",
|
|
4168
4408
|
children: [/* @__PURE__ */ p("p", {
|
|
4169
4409
|
className: `text-2xs font-bold uppercase tracking-wider mb-1.5 ${U ? "text-zinc-400" : "text-gray-500"}`,
|
|
@@ -4177,37 +4417,37 @@ var vt = (e) => {
|
|
|
4177
4417
|
}), /* @__PURE__ */ m("button", {
|
|
4178
4418
|
part: "copy-button",
|
|
4179
4419
|
type: "button",
|
|
4180
|
-
onClick:
|
|
4420
|
+
onClick: Ge,
|
|
4181
4421
|
className: "flex items-center gap-1 px-3 py-1.5 rounded-lg text-xs font-bold text-white shrink-0 cursor-pointer hover:opacity-90 transition-opacity",
|
|
4182
4422
|
style: { backgroundColor: W },
|
|
4183
4423
|
title: "Copy registration number",
|
|
4184
|
-
children: [p(
|
|
4424
|
+
children: [p(ye ? se : _e, { size: 13 }), /* @__PURE__ */ p("span", { children: ye ? "Copied" : "Copy" })]
|
|
4185
4425
|
})]
|
|
4186
4426
|
})]
|
|
4187
4427
|
}) : null;
|
|
4188
4428
|
if (!c && e.displayMode === "popup") {
|
|
4189
4429
|
let e = {
|
|
4190
|
-
...
|
|
4191
|
-
...
|
|
4192
|
-
transform: `translate3d(${
|
|
4430
|
+
...Tt(R),
|
|
4431
|
+
...z ? {
|
|
4432
|
+
transform: `translate3d(${z.x}px, ${z.y}px, 0) scale(1.05)`,
|
|
4193
4433
|
transition: "none",
|
|
4194
4434
|
userSelect: "none"
|
|
4195
|
-
} :
|
|
4196
|
-
transform:
|
|
4197
|
-
transition:
|
|
4435
|
+
} : Te ? {
|
|
4436
|
+
transform: Te.transform,
|
|
4437
|
+
transition: Te.transition
|
|
4198
4438
|
} : { transition: "all 0.3s cubic-bezier(0.16, 1, 0.3, 1)" }
|
|
4199
|
-
}, t =
|
|
4439
|
+
}, t = Oe || B;
|
|
4200
4440
|
return /* @__PURE__ */ m("div", {
|
|
4201
|
-
ref:
|
|
4202
|
-
onMouseEnter: () =>
|
|
4203
|
-
onMouseLeave: () =>
|
|
4204
|
-
className: `fixed ${
|
|
4441
|
+
ref: Ae,
|
|
4442
|
+
onMouseEnter: () => ke(!0),
|
|
4443
|
+
onMouseLeave: () => ke(!1),
|
|
4444
|
+
className: `fixed ${Et(R)} z-50 select-none group`,
|
|
4205
4445
|
style: e,
|
|
4206
4446
|
children: [/* @__PURE__ */ p("div", {
|
|
4207
|
-
onPointerDown:
|
|
4447
|
+
onPointerDown: We,
|
|
4208
4448
|
className: `absolute -top-1.5 -left-1.5 w-7 h-7 rounded-full bg-slate-900 text-white shadow-lg border-2 border-white flex items-center justify-center cursor-grab active:cursor-grabbing hover:bg-black hover:scale-110 active:scale-95 transition-all duration-200 z-10 touch-none ${t ? "opacity-100 scale-100 pointer-events-auto" : "opacity-0 scale-75 pointer-events-none group-hover:opacity-100 group-hover:scale-100 group-hover:pointer-events-auto"}`,
|
|
4209
4449
|
title: "Hold and drag to change position",
|
|
4210
|
-
children: /* @__PURE__ */ p(
|
|
4450
|
+
children: /* @__PURE__ */ p(Ve, {
|
|
4211
4451
|
size: 13,
|
|
4212
4452
|
className: "pointer-events-none text-white"
|
|
4213
4453
|
})
|
|
@@ -4215,7 +4455,7 @@ var vt = (e) => {
|
|
|
4215
4455
|
part: "launcher",
|
|
4216
4456
|
type: "button",
|
|
4217
4457
|
onClick: (e) => {
|
|
4218
|
-
e.stopPropagation(), !
|
|
4458
|
+
e.stopPropagation(), !B && h(!0);
|
|
4219
4459
|
},
|
|
4220
4460
|
className: "w-16 h-16 rounded-full text-white shadow-xl flex items-center justify-center cursor-pointer hover:scale-105 active:scale-95 transition-transform",
|
|
4221
4461
|
style: { backgroundColor: W },
|
|
@@ -4227,9 +4467,9 @@ var vt = (e) => {
|
|
|
4227
4467
|
})]
|
|
4228
4468
|
});
|
|
4229
4469
|
}
|
|
4230
|
-
let
|
|
4231
|
-
|
|
4232
|
-
let
|
|
4470
|
+
let Je = e.displayMode === "fullscreen" || e.displayMode === "popup" && y, Z = e.displayMode === "widget", Ze = Ct(Me, U, Z), $e = `${U ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"} flex flex-col transition-all duration-300 ease-in-out `, et = e.theme?.fontFamily, Q = !et || et === "inherit" ? {} : { fontFamily: `var(--vx-font-family, ${et})` };
|
|
4471
|
+
Q["--vx-accent"] = W, Je ? $e += "fixed inset-0 z-[9999] rounded-none overflow-hidden " : e.displayMode === "popup" ? ($e += `fixed ${Et(R)} z-50 rounded-xl shadow-2xl border ${U ? "border-zinc-800" : "border-gray-200"} overflow-hidden `, Q.width = e.width || "400px", Q.height = e.height || "700px", Q.maxHeight = "90vh", Q.maxWidth = "calc(100vw - 32px)", Object.assign(Q, Tt(R))) : ($e += "relative w-full min-h-screen border-none shadow-none rounded-none ", Q.width = "100%", Q.minHeight = "100vh");
|
|
4472
|
+
let tt = G ? "Abstract Submission" : t === "registration" ? C || "Registration" : "Attendee Portal", nt = j.trim().toLowerCase(), rt = nt ? x.filter((e) => [
|
|
4233
4473
|
e.type,
|
|
4234
4474
|
e.name,
|
|
4235
4475
|
e.category,
|
|
@@ -4238,12 +4478,12 @@ var vt = (e) => {
|
|
|
4238
4478
|
e.price,
|
|
4239
4479
|
e.tax_info,
|
|
4240
4480
|
...Array.isArray(e.items) ? e.items.map((e) => e?.name).filter(Boolean) : []
|
|
4241
|
-
].filter((e) => e != null && e !== "").join(" ").toLowerCase().includes(
|
|
4481
|
+
].filter((e) => e != null && e !== "").join(" ").toLowerCase().includes(nt)) : x, it = `max-w-2xl mx-auto w-full rounded-3xl border overflow-hidden ${U ? "bg-zinc-900 border-zinc-800 shadow-[0_24px_48px_-24px_rgba(0,0,0,0.8)]" : "bg-white border-slate-200/80 shadow-[0_1px_2px_rgba(15,23,42,0.04),0_24px_48px_-24px_rgba(15,23,42,0.16)]"}`, at = () => {
|
|
4242
4482
|
if (x.length === 0) return null;
|
|
4243
4483
|
let e = x.find((e) => String(e.id) === te) || (x.length === 1 ? x[0] : null), t = e ? e.type || e.name || e.label : "";
|
|
4244
4484
|
return /* @__PURE__ */ m("div", {
|
|
4245
4485
|
part: "category-panel",
|
|
4246
|
-
className:
|
|
4486
|
+
className: it,
|
|
4247
4487
|
children: [
|
|
4248
4488
|
/* @__PURE__ */ m("div", {
|
|
4249
4489
|
className: "px-5 sm:px-7 pt-6 sm:pt-7 pb-5 flex items-center gap-3.5",
|
|
@@ -4253,7 +4493,7 @@ var vt = (e) => {
|
|
|
4253
4493
|
backgroundColor: `color-mix(in srgb, ${W} 12%, transparent)`,
|
|
4254
4494
|
color: W
|
|
4255
4495
|
},
|
|
4256
|
-
children: /* @__PURE__ */ p(
|
|
4496
|
+
children: /* @__PURE__ */ p(Ce, { size: 20 })
|
|
4257
4497
|
}), /* @__PURE__ */ p("div", {
|
|
4258
4498
|
className: "min-w-0",
|
|
4259
4499
|
children: /* @__PURE__ */ p("h3", {
|
|
@@ -4275,7 +4515,7 @@ var vt = (e) => {
|
|
|
4275
4515
|
type: "button",
|
|
4276
4516
|
role: "radio",
|
|
4277
4517
|
"aria-checked": r,
|
|
4278
|
-
onClick: () =>
|
|
4518
|
+
onClick: () => N(String(t.id)),
|
|
4279
4519
|
className: `group w-full flex items-center gap-4 px-5 sm:px-7 py-4 text-left transition-colors cursor-pointer outline-none focus-visible:bg-[color-mix(in_srgb,var(--vx-accent)_8%,transparent)] ${r ? "" : U ? "hover:bg-zinc-800/60" : "hover:bg-slate-50"}`,
|
|
4280
4520
|
style: r ? { backgroundColor: `color-mix(in srgb, ${W} ${U ? 14 : 6}%, transparent)` } : void 0,
|
|
4281
4521
|
children: [
|
|
@@ -4302,7 +4542,7 @@ var vt = (e) => {
|
|
|
4302
4542
|
className: `hidden sm:inline-block text-[10px] font-semibold uppercase tracking-wider px-2.5 py-1 rounded-full shrink-0 ${U ? "bg-zinc-800 text-zinc-300" : "bg-slate-100 text-slate-600"}`,
|
|
4303
4543
|
children: t.category
|
|
4304
4544
|
}),
|
|
4305
|
-
/* @__PURE__ */ p(
|
|
4545
|
+
/* @__PURE__ */ p(ne, {
|
|
4306
4546
|
size: 16,
|
|
4307
4547
|
className: `shrink-0 transition-all ${r ? "translate-x-0.5" : `${U ? "text-zinc-600" : "text-slate-300"} group-hover:translate-x-0.5`}`,
|
|
4308
4548
|
style: r ? { color: W } : void 0
|
|
@@ -4329,7 +4569,7 @@ var vt = (e) => {
|
|
|
4329
4569
|
boxShadow: e ? `0 10px 24px -12px color-mix(in srgb, ${W} 70%, transparent)` : void 0
|
|
4330
4570
|
},
|
|
4331
4571
|
className: "group shrink-0 inline-flex items-center justify-center gap-2 h-11 px-5 rounded-xl text-sm font-semibold text-white transition-all hover:brightness-110 active:scale-[0.99] cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:brightness-100",
|
|
4332
|
-
children: [/* @__PURE__ */ p("span", { children: "Continue to submission" }), /* @__PURE__ */ p(
|
|
4572
|
+
children: [/* @__PURE__ */ p("span", { children: "Continue to submission" }), /* @__PURE__ */ p(ne, {
|
|
4333
4573
|
size: 16,
|
|
4334
4574
|
className: "transition-transform group-hover:translate-x-0.5"
|
|
4335
4575
|
})]
|
|
@@ -4337,9 +4577,9 @@ var vt = (e) => {
|
|
|
4337
4577
|
})
|
|
4338
4578
|
]
|
|
4339
4579
|
});
|
|
4340
|
-
},
|
|
4580
|
+
}, ot = (e) => /* @__PURE__ */ m("div", {
|
|
4341
4581
|
part: "category-panel",
|
|
4342
|
-
className:
|
|
4582
|
+
className: it,
|
|
4343
4583
|
children: [
|
|
4344
4584
|
/* @__PURE__ */ m("div", {
|
|
4345
4585
|
className: "px-5 sm:px-7 pt-6 sm:pt-7 pb-5 flex items-center gap-3.5",
|
|
@@ -4373,7 +4613,7 @@ var vt = (e) => {
|
|
|
4373
4613
|
children: /* @__PURE__ */ p("div", { className: `${e} h-11 w-52` })
|
|
4374
4614
|
})
|
|
4375
4615
|
]
|
|
4376
|
-
}),
|
|
4616
|
+
}), st = () => {
|
|
4377
4617
|
let e = "vx-skeleton rounded-full", t = Z ? 6 : 3;
|
|
4378
4618
|
return /* @__PURE__ */ m("div", {
|
|
4379
4619
|
part: "page",
|
|
@@ -4412,10 +4652,10 @@ var vt = (e) => {
|
|
|
4412
4652
|
/* @__PURE__ */ p("div", {
|
|
4413
4653
|
part: "list",
|
|
4414
4654
|
className: `${Z ? "w-full flex-1" : "overflow-hidden flex-1 min-h-0"} relative ${U ? "bg-zinc-950" : "bg-slate-50"}`,
|
|
4415
|
-
style:
|
|
4655
|
+
style: Ze,
|
|
4416
4656
|
children: /* @__PURE__ */ p("div", {
|
|
4417
4657
|
className: "max-w-6xl mx-auto w-full px-4 sm:px-6 py-6 sm:py-8 space-y-5",
|
|
4418
|
-
children: G ?
|
|
4658
|
+
children: G ? ot(e) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", {
|
|
4419
4659
|
part: "search",
|
|
4420
4660
|
className: "flex flex-col sm:flex-row sm:items-end sm:justify-between gap-3",
|
|
4421
4661
|
children: [/* @__PURE__ */ m("div", {
|
|
@@ -4467,15 +4707,15 @@ var vt = (e) => {
|
|
|
4467
4707
|
})
|
|
4468
4708
|
]
|
|
4469
4709
|
});
|
|
4470
|
-
},
|
|
4471
|
-
let e = !!T, t = G ?
|
|
4710
|
+
}, ct = () => {
|
|
4711
|
+
let e = !!T, t = G ? Ce : Qe, n = e ? G ? "Submitting your abstract" : "Submitting your registration" : "Loading your registration", r = T ? T.type || T.name || T.label : "", i = !G && T && T.price !== void 0 && T.price !== null && T.price !== "" ? Number(T.price) > 0 ? [T.currency, Number(T.price).toLocaleString()].filter(Boolean).join(" ") : "Free" : "";
|
|
4472
4712
|
return /* @__PURE__ */ p("div", {
|
|
4473
4713
|
part: "screen screen-submitting",
|
|
4474
4714
|
role: "status",
|
|
4475
4715
|
"aria-live": "polite",
|
|
4476
4716
|
"aria-busy": "true",
|
|
4477
4717
|
className: `flex-1 flex items-center justify-center px-4 py-16 ${Z ? "min-h-[70vh]" : "h-full"} ${U ? "bg-zinc-950" : "bg-slate-50"}`,
|
|
4478
|
-
style:
|
|
4718
|
+
style: Ze,
|
|
4479
4719
|
children: /* @__PURE__ */ m("div", {
|
|
4480
4720
|
part: "portal-card",
|
|
4481
4721
|
className: `w-full max-w-sm rounded-3xl border p-8 text-center ${U ? "bg-zinc-900 border-zinc-800 shadow-[0_24px_48px_-24px_rgba(0,0,0,0.8)]" : "bg-white border-slate-200/80 shadow-[0_1px_2px_rgba(15,23,42,0.04),0_24px_48px_-24px_rgba(15,23,42,0.18)]"}`,
|
|
@@ -4543,16 +4783,77 @@ var vt = (e) => {
|
|
|
4543
4783
|
});
|
|
4544
4784
|
};
|
|
4545
4785
|
return /* @__PURE__ */ p("div", {
|
|
4786
|
+
ref: Ie,
|
|
4546
4787
|
part: "widget",
|
|
4547
|
-
className:
|
|
4788
|
+
className: $e,
|
|
4548
4789
|
style: {
|
|
4549
|
-
...
|
|
4550
|
-
overflow: Z ? "visible" : "clip"
|
|
4790
|
+
...Q,
|
|
4791
|
+
overflow: Z ? "visible" : "clip",
|
|
4792
|
+
scrollMarginTop: Z ? 96 : void 0
|
|
4551
4793
|
},
|
|
4552
4794
|
onScroll: (e) => {
|
|
4553
4795
|
Z || (e.currentTarget.scrollTop !== 0 && (e.currentTarget.scrollTop = 0), e.currentTarget.scrollLeft !== 0 && (e.currentTarget.scrollLeft = 0));
|
|
4554
4796
|
},
|
|
4555
|
-
children: k && !T && !
|
|
4797
|
+
children: k && !T && !re ? st() : k ? ct() : re ? de && !me ? /* @__PURE__ */ m("div", {
|
|
4798
|
+
part: "screen screen-custom-qr",
|
|
4799
|
+
className: `flex flex-col h-full relative overflow-y-auto ${U ? "bg-black text-white" : "bg-white text-gray-900"}`,
|
|
4800
|
+
children: [/* @__PURE__ */ m("div", {
|
|
4801
|
+
part: "screen-header",
|
|
4802
|
+
className: "p-4 shadow-sm flex justify-between items-center z-10",
|
|
4803
|
+
style: {
|
|
4804
|
+
backgroundColor: W,
|
|
4805
|
+
color: "white"
|
|
4806
|
+
},
|
|
4807
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
|
|
4808
|
+
part: "screen-header-title",
|
|
4809
|
+
className: "text-xl font-bold",
|
|
4810
|
+
style: $,
|
|
4811
|
+
children: "Complete Payment"
|
|
4812
|
+
}), /* @__PURE__ */ p("p", {
|
|
4813
|
+
className: "text-xs opacity-90 mt-0.5",
|
|
4814
|
+
children: "Registration Submitted"
|
|
4815
|
+
})] }), /* @__PURE__ */ p("div", {
|
|
4816
|
+
className: "flex items-center gap-3",
|
|
4817
|
+
children: e.displayMode === "popup" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("button", {
|
|
4818
|
+
onClick: () => b(!y),
|
|
4819
|
+
title: y ? "Minimize" : "Expand",
|
|
4820
|
+
className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
|
|
4821
|
+
children: p(y ? ze : Le, { size: 18 })
|
|
4822
|
+
}), /* @__PURE__ */ p("button", {
|
|
4823
|
+
onClick: () => h(!1),
|
|
4824
|
+
className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
|
|
4825
|
+
children: /* @__PURE__ */ p(lt, { size: 24 })
|
|
4826
|
+
})] })
|
|
4827
|
+
})]
|
|
4828
|
+
}), /* @__PURE__ */ m("div", {
|
|
4829
|
+
className: "flex-1 flex flex-col items-center p-6 text-center",
|
|
4830
|
+
children: [
|
|
4831
|
+
qe(),
|
|
4832
|
+
/* @__PURE__ */ p(bt, {
|
|
4833
|
+
qrUrl: Ke(de.qr_url),
|
|
4834
|
+
schema: de.schema || [],
|
|
4835
|
+
amount: L.amount,
|
|
4836
|
+
currency: L.currency,
|
|
4837
|
+
registrationNumber: le,
|
|
4838
|
+
apiClient: q,
|
|
4839
|
+
primaryColor: W,
|
|
4840
|
+
isDark: U,
|
|
4841
|
+
onSubmitted: (t) => {
|
|
4842
|
+
ge(!0), e.onEvent?.("custom_qr_submitted", {
|
|
4843
|
+
registration_number: le,
|
|
4844
|
+
answers: t
|
|
4845
|
+
});
|
|
4846
|
+
}
|
|
4847
|
+
}),
|
|
4848
|
+
/* @__PURE__ */ p("button", {
|
|
4849
|
+
part: "button button-link",
|
|
4850
|
+
onClick: Ue,
|
|
4851
|
+
className: `mt-4 w-full max-w-sm py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${U ? "text-zinc-400 hover:text-white" : "text-gray-500 hover:text-gray-900"}`,
|
|
4852
|
+
children: "Register Another Person"
|
|
4853
|
+
})
|
|
4854
|
+
]
|
|
4855
|
+
})]
|
|
4856
|
+
}) : oe ? /* @__PURE__ */ m("div", {
|
|
4556
4857
|
part: "screen screen-payment",
|
|
4557
4858
|
className: `flex flex-col h-full relative overflow-y-auto ${U ? "bg-black text-white" : "bg-white text-gray-900"}`,
|
|
4558
4859
|
children: [/* @__PURE__ */ m("div", {
|
|
@@ -4576,11 +4877,11 @@ var vt = (e) => {
|
|
|
4576
4877
|
onClick: () => b(!y),
|
|
4577
4878
|
title: y ? "Minimize" : "Expand",
|
|
4578
4879
|
className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
|
|
4579
|
-
children: p(y ?
|
|
4880
|
+
children: p(y ? ze : Le, { size: 18 })
|
|
4580
4881
|
}), /* @__PURE__ */ p("button", {
|
|
4581
4882
|
onClick: () => h(!1),
|
|
4582
4883
|
className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
|
|
4583
|
-
children: /* @__PURE__ */ p(
|
|
4884
|
+
children: /* @__PURE__ */ p(lt, { size: 24 })
|
|
4584
4885
|
})] })
|
|
4585
4886
|
})]
|
|
4586
4887
|
}), /* @__PURE__ */ m("div", {
|
|
@@ -4605,7 +4906,7 @@ var vt = (e) => {
|
|
|
4605
4906
|
className: `text-sm mb-6 max-w-xs leading-relaxed ${U ? "text-zinc-300" : "text-gray-600"}`,
|
|
4606
4907
|
children: "Please complete your payment in the new tab to confirm your booking and finalize your registration."
|
|
4607
4908
|
}),
|
|
4608
|
-
|
|
4909
|
+
qe(),
|
|
4609
4910
|
/* @__PURE__ */ m("div", {
|
|
4610
4911
|
className: "w-full max-w-xs space-y-3",
|
|
4611
4912
|
children: [/* @__PURE__ */ m("a", {
|
|
@@ -4615,10 +4916,10 @@ var vt = (e) => {
|
|
|
4615
4916
|
rel: "noopener noreferrer",
|
|
4616
4917
|
className: "flex items-center justify-center gap-2 font-bold px-5 py-3 rounded-lg transition-opacity hover:opacity-90 text-white shadow-md w-full",
|
|
4617
4918
|
style: { backgroundColor: W },
|
|
4618
|
-
children: [/* @__PURE__ */ p("span", { children: "Open Payment Page" }), /* @__PURE__ */ p(
|
|
4919
|
+
children: [/* @__PURE__ */ p("span", { children: "Open Payment Page" }), /* @__PURE__ */ p(xe, { size: 16 })]
|
|
4619
4920
|
}), /* @__PURE__ */ p("button", {
|
|
4620
4921
|
part: "button button-link",
|
|
4621
|
-
onClick:
|
|
4922
|
+
onClick: Ue,
|
|
4622
4923
|
className: `w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${U ? "text-zinc-400 hover:text-white" : "text-gray-500 hover:text-gray-900"}`,
|
|
4623
4924
|
children: "Register Another Person"
|
|
4624
4925
|
})]
|
|
@@ -4634,7 +4935,7 @@ var vt = (e) => {
|
|
|
4634
4935
|
children: /* @__PURE__ */ p("button", {
|
|
4635
4936
|
onClick: () => h(!1),
|
|
4636
4937
|
className: `cursor-pointer ${U ? "text-zinc-400 hover:text-white" : "text-gray-400 hover:text-gray-900"}`,
|
|
4637
|
-
children: /* @__PURE__ */ p(
|
|
4938
|
+
children: /* @__PURE__ */ p(lt, { size: 24 })
|
|
4638
4939
|
})
|
|
4639
4940
|
}),
|
|
4640
4941
|
/* @__PURE__ */ p("div", {
|
|
@@ -4656,21 +4957,26 @@ var vt = (e) => {
|
|
|
4656
4957
|
className: `mb-6 ${U ? "text-zinc-300" : "text-gray-600"}`,
|
|
4657
4958
|
children: G ? "Your reference submission number is below." : "Your registration has been successfully received."
|
|
4658
4959
|
}),
|
|
4659
|
-
|
|
4660
|
-
|
|
4960
|
+
qe(),
|
|
4961
|
+
me && /* @__PURE__ */ p("p", {
|
|
4661
4962
|
part: "payment-status",
|
|
4662
4963
|
className: `text-sm mb-6 max-w-xs leading-relaxed ${U ? "text-zinc-300" : "text-gray-600"}`,
|
|
4663
|
-
children:
|
|
4964
|
+
children: "We have your payment details. Your registration is confirmed once the transfer is verified."
|
|
4965
|
+
}),
|
|
4966
|
+
F !== null && /* @__PURE__ */ p("p", {
|
|
4967
|
+
part: "payment-status",
|
|
4968
|
+
className: `text-sm mb-6 max-w-xs leading-relaxed ${U ? "text-zinc-300" : "text-gray-600"}`,
|
|
4969
|
+
children: F ? "Your payment is confirmed." : "We haven't received your payment yet. If you have just paid, it will be confirmed shortly."
|
|
4664
4970
|
}),
|
|
4665
4971
|
/* @__PURE__ */ p("button", {
|
|
4666
4972
|
part: "button button-primary",
|
|
4667
|
-
onClick:
|
|
4973
|
+
onClick: Ue,
|
|
4668
4974
|
style: { backgroundColor: W },
|
|
4669
4975
|
className: "text-white font-bold py-3 px-8 rounded-md hover:opacity-90 transition-opacity shadow-md cursor-pointer",
|
|
4670
4976
|
children: "Back"
|
|
4671
4977
|
})
|
|
4672
4978
|
]
|
|
4673
|
-
}) :
|
|
4979
|
+
}) : ie ? /* @__PURE__ */ m("div", {
|
|
4674
4980
|
part: "screen screen-error",
|
|
4675
4981
|
className: `flex flex-col h-full relative overflow-y-auto ${U ? "bg-black text-white" : "bg-white text-gray-900"}`,
|
|
4676
4982
|
children: [/* @__PURE__ */ m("div", {
|
|
@@ -4689,7 +4995,7 @@ var vt = (e) => {
|
|
|
4689
4995
|
children: e.displayMode === "popup" && /* @__PURE__ */ p("button", {
|
|
4690
4996
|
onClick: () => h(!1),
|
|
4691
4997
|
className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
|
|
4692
|
-
children: /* @__PURE__ */ p(
|
|
4998
|
+
children: /* @__PURE__ */ p(lt, { size: 24 })
|
|
4693
4999
|
})
|
|
4694
5000
|
})]
|
|
4695
5001
|
}), /* @__PURE__ */ m("div", {
|
|
@@ -4708,7 +5014,7 @@ var vt = (e) => {
|
|
|
4708
5014
|
/* @__PURE__ */ p("p", {
|
|
4709
5015
|
part: "screen-message",
|
|
4710
5016
|
className: `text-sm mb-6 max-w-xs leading-relaxed ${U ? "text-zinc-300" : "text-gray-600"}`,
|
|
4711
|
-
children:
|
|
5017
|
+
children: ie
|
|
4712
5018
|
}),
|
|
4713
5019
|
/* @__PURE__ */ m("div", {
|
|
4714
5020
|
className: "w-full max-w-xs space-y-3",
|
|
@@ -4729,18 +5035,18 @@ var vt = (e) => {
|
|
|
4729
5035
|
})
|
|
4730
5036
|
]
|
|
4731
5037
|
})]
|
|
4732
|
-
}) : T ? /* @__PURE__ */ p(
|
|
5038
|
+
}) : T ? /* @__PURE__ */ p(yt, {
|
|
4733
5039
|
schema: G ? ee : T.form_schema,
|
|
4734
5040
|
ticketType: T,
|
|
4735
5041
|
theme: e.theme,
|
|
4736
5042
|
displayMode: e.displayMode,
|
|
4737
|
-
backgroundStyle:
|
|
5043
|
+
backgroundStyle: Ze,
|
|
4738
5044
|
isExpanded: y,
|
|
4739
5045
|
onToggleExpand: () => b(!y),
|
|
4740
5046
|
onClose: () => h(!1),
|
|
4741
|
-
onSubmit:
|
|
4742
|
-
onChange:
|
|
4743
|
-
initialValues:
|
|
5047
|
+
onSubmit: He,
|
|
5048
|
+
onChange: Be,
|
|
5049
|
+
initialValues: Re,
|
|
4744
5050
|
fileAnswers: X?.file_answers,
|
|
4745
5051
|
isDark: U,
|
|
4746
5052
|
apiClient: q,
|
|
@@ -4776,10 +5082,10 @@ var vt = (e) => {
|
|
|
4776
5082
|
"aria-hidden": "true",
|
|
4777
5083
|
className: "pointer-events-none absolute -top-24 -right-10 h-64 w-64 rounded-full bg-white/15 blur-3xl"
|
|
4778
5084
|
}),
|
|
4779
|
-
|
|
5085
|
+
je && /* @__PURE__ */ m("div", {
|
|
4780
5086
|
className: "absolute inset-y-0 right-0 flex max-w-[65%] pointer-events-none select-none",
|
|
4781
5087
|
children: [/* @__PURE__ */ p("img", {
|
|
4782
|
-
src:
|
|
5088
|
+
src: je,
|
|
4783
5089
|
alt: "",
|
|
4784
5090
|
"aria-hidden": "true",
|
|
4785
5091
|
className: "h-full w-auto object-cover object-right"
|
|
@@ -4794,7 +5100,7 @@ var vt = (e) => {
|
|
|
4794
5100
|
className: "flex items-center gap-3.5 min-w-0",
|
|
4795
5101
|
children: [/* @__PURE__ */ p("div", {
|
|
4796
5102
|
className: "w-11 h-11 rounded-2xl bg-white/15 ring-1 ring-inset ring-white/30 flex items-center justify-center shrink-0 shadow-[inset_0_1px_0_rgba(255,255,255,0.25)]",
|
|
4797
|
-
children: /* @__PURE__ */ p(
|
|
5103
|
+
children: /* @__PURE__ */ p(Xe, {
|
|
4798
5104
|
size: 20,
|
|
4799
5105
|
className: "text-white"
|
|
4800
5106
|
})
|
|
@@ -4806,7 +5112,7 @@ var vt = (e) => {
|
|
|
4806
5112
|
part: "header-title",
|
|
4807
5113
|
className: "text-lg sm:text-2xl font-bold tracking-tight leading-tight break-words",
|
|
4808
5114
|
style: $,
|
|
4809
|
-
children:
|
|
5115
|
+
children: tt
|
|
4810
5116
|
}), /* @__PURE__ */ m("span", {
|
|
4811
5117
|
className: "hidden sm:inline-flex shrink-0 items-center gap-1.5 text-[10px] font-semibold px-2 py-0.5 rounded-full bg-white/15 ring-1 ring-inset ring-white/25 uppercase tracking-wider",
|
|
4812
5118
|
children: [/* @__PURE__ */ p("span", { className: "h-1.5 w-1.5 rounded-full bg-emerald-300" }), "Official Portal"]
|
|
@@ -4823,11 +5129,11 @@ var vt = (e) => {
|
|
|
4823
5129
|
onClick: () => b(!y),
|
|
4824
5130
|
title: y ? "Minimize" : "Expand",
|
|
4825
5131
|
className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer p-1",
|
|
4826
|
-
children: p(y ?
|
|
5132
|
+
children: p(y ? ze : Le, { size: 18 })
|
|
4827
5133
|
}), /* @__PURE__ */ p("button", {
|
|
4828
5134
|
onClick: () => h(!1),
|
|
4829
5135
|
className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer p-1",
|
|
4830
|
-
children: /* @__PURE__ */ p(
|
|
5136
|
+
children: /* @__PURE__ */ p(lt, { size: 22 })
|
|
4831
5137
|
})] })
|
|
4832
5138
|
})]
|
|
4833
5139
|
})
|
|
@@ -4848,7 +5154,7 @@ var vt = (e) => {
|
|
|
4848
5154
|
}, {
|
|
4849
5155
|
key: "attendee",
|
|
4850
5156
|
label: "Attendee Login",
|
|
4851
|
-
Icon:
|
|
5157
|
+
Icon: Ne
|
|
4852
5158
|
}].map(({ key: e, label: r, Icon: i }) => {
|
|
4853
5159
|
let a = t === e;
|
|
4854
5160
|
return /* @__PURE__ */ m("button", {
|
|
@@ -4874,10 +5180,10 @@ var vt = (e) => {
|
|
|
4874
5180
|
(G || t === "registration") && /* @__PURE__ */ p("div", {
|
|
4875
5181
|
part: "list",
|
|
4876
5182
|
className: `${Z ? "w-full flex-1" : "overflow-y-auto flex-1 min-h-0 overscroll-contain"} relative ${U ? "bg-zinc-950" : "bg-slate-50"}`,
|
|
4877
|
-
style:
|
|
5183
|
+
style: Ze,
|
|
4878
5184
|
children: /* @__PURE__ */ p("div", {
|
|
4879
5185
|
className: "max-w-6xl mx-auto w-full px-4 sm:px-6 py-6 sm:py-8 space-y-5",
|
|
4880
|
-
children: G ?
|
|
5186
|
+
children: G ? at() : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", {
|
|
4881
5187
|
part: "search",
|
|
4882
5188
|
className: "flex flex-col sm:flex-row sm:items-end sm:justify-between gap-3",
|
|
4883
5189
|
children: [/* @__PURE__ */ m("div", {
|
|
@@ -4890,7 +5196,7 @@ var vt = (e) => {
|
|
|
4890
5196
|
}), x.length > 0 && /* @__PURE__ */ p("p", {
|
|
4891
5197
|
part: "list-count",
|
|
4892
5198
|
className: `text-xs mt-0.5 ${U ? "text-zinc-400" : "text-slate-500"}`,
|
|
4893
|
-
children:
|
|
5199
|
+
children: nt ? `${rt.length} of ${x.length} options` : `${x.length} ${x.length === 1 ? "option" : "options"} available`
|
|
4894
5200
|
})]
|
|
4895
5201
|
}), /* @__PURE__ */ m("div", {
|
|
4896
5202
|
className: "relative w-full sm:w-72",
|
|
@@ -4906,7 +5212,7 @@ var vt = (e) => {
|
|
|
4906
5212
|
}),
|
|
4907
5213
|
/* @__PURE__ */ p("div", {
|
|
4908
5214
|
className: `absolute inset-y-0 left-3 flex items-center pointer-events-none ${U ? "text-zinc-500" : "text-slate-400"}`,
|
|
4909
|
-
children: /* @__PURE__ */ p(
|
|
5215
|
+
children: /* @__PURE__ */ p(Ye, {
|
|
4910
5216
|
size: 15,
|
|
4911
5217
|
className: "block"
|
|
4912
5218
|
})
|
|
@@ -4916,17 +5222,17 @@ var vt = (e) => {
|
|
|
4916
5222
|
onClick: () => M(""),
|
|
4917
5223
|
"aria-label": "Clear search",
|
|
4918
5224
|
className: `absolute inset-y-0 right-2.5 flex items-center cursor-pointer ${U ? "text-zinc-500 hover:text-zinc-300" : "text-slate-400 hover:text-slate-600"}`,
|
|
4919
|
-
children: /* @__PURE__ */ p(
|
|
5225
|
+
children: /* @__PURE__ */ p(lt, { size: 14 })
|
|
4920
5226
|
})
|
|
4921
5227
|
]
|
|
4922
5228
|
})]
|
|
4923
|
-
}), x.length === 0 ? null :
|
|
5229
|
+
}), x.length === 0 ? null : rt.length === 0 ? /* @__PURE__ */ m("div", {
|
|
4924
5230
|
part: "empty-state",
|
|
4925
5231
|
className: `flex flex-col items-center text-center py-16 px-6 rounded-3xl border border-dashed ${U ? "bg-zinc-900/60 border-zinc-800 text-zinc-400" : "bg-white/70 border-slate-300 text-slate-500"}`,
|
|
4926
5232
|
children: [
|
|
4927
5233
|
/* @__PURE__ */ p("div", {
|
|
4928
5234
|
className: `w-12 h-12 rounded-2xl flex items-center justify-center mb-4 ${U ? "bg-zinc-800" : "bg-slate-100"}`,
|
|
4929
|
-
children: /* @__PURE__ */ p(
|
|
5235
|
+
children: /* @__PURE__ */ p(Ye, { size: 20 })
|
|
4930
5236
|
}),
|
|
4931
5237
|
/* @__PURE__ */ m("p", {
|
|
4932
5238
|
className: `text-base font-semibold ${U ? "text-white" : "text-slate-900"}`,
|
|
@@ -4950,8 +5256,8 @@ var vt = (e) => {
|
|
|
4950
5256
|
}) : /* @__PURE__ */ p("div", {
|
|
4951
5257
|
part: "card-grid",
|
|
4952
5258
|
className: Z ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5" : "space-y-3",
|
|
4953
|
-
children:
|
|
4954
|
-
let t = e.type || e.name || e.label, n = e.price !== void 0 && e.price !== null && e.price !== "", r = n && (Number(e.price) === 0 || String(e.price).toLowerCase() === "free"), i = (Array.isArray(e.items) ? e.items : []).filter((e) => e?.name).map((t) => t.mode === "optional" && Number(t.price) > 0 ? `${t.name} (+ ${[e.currency, Number(t.price).toLocaleString()].filter(Boolean).join(" ")})` : t.name), a = G ?
|
|
5259
|
+
children: rt.map((e) => {
|
|
5260
|
+
let t = e.type || e.name || e.label, n = e.price !== void 0 && e.price !== null && e.price !== "", r = n && (Number(e.price) === 0 || String(e.price).toLowerCase() === "free"), i = (Array.isArray(e.items) ? e.items : []).filter((e) => e?.name).map((t) => t.mode === "optional" && Number(t.price) > 0 ? `${t.name} (+ ${[e.currency, Number(t.price).toLocaleString()].filter(Boolean).join(" ")})` : t.name), a = G ? Ce : Qe;
|
|
4955
5261
|
return /* @__PURE__ */ m("div", {
|
|
4956
5262
|
part: "card",
|
|
4957
5263
|
role: "button",
|
|
@@ -4986,7 +5292,7 @@ var vt = (e) => {
|
|
|
4986
5292
|
}), e.seats_left && /* @__PURE__ */ m("span", {
|
|
4987
5293
|
part: "card-seats",
|
|
4988
5294
|
className: `text-[10px] font-semibold px-2.5 py-1 rounded-full flex items-center gap-1 ${U ? "bg-amber-950/60 text-amber-300" : "bg-amber-50 text-amber-700"}`,
|
|
4989
|
-
children: [/* @__PURE__ */ p(
|
|
5295
|
+
children: [/* @__PURE__ */ p(he, { size: 10 }), /* @__PURE__ */ p("span", { children: e.seats_left })]
|
|
4990
5296
|
})]
|
|
4991
5297
|
})]
|
|
4992
5298
|
}),
|
|
@@ -5050,7 +5356,7 @@ var vt = (e) => {
|
|
|
5050
5356
|
style: { backgroundColor: W },
|
|
5051
5357
|
children: [G ? "Submit" : "Register", /* @__PURE__ */ p("span", {
|
|
5052
5358
|
className: "w-7 h-7 rounded-full bg-white/20 flex items-center justify-center transition-transform duration-300 group-hover:translate-x-0.5",
|
|
5053
|
-
children: /* @__PURE__ */ p(
|
|
5359
|
+
children: /* @__PURE__ */ p(ne, { size: 14 })
|
|
5054
5360
|
})]
|
|
5055
5361
|
})]
|
|
5056
5362
|
})
|
|
@@ -5065,12 +5371,12 @@ var vt = (e) => {
|
|
|
5065
5371
|
className: `${t === "attendee" ? "flex" : "hidden"} flex-col ${Z ? "w-full flex-1" : "flex-1 overflow-hidden min-h-0"}`,
|
|
5066
5372
|
style: {
|
|
5067
5373
|
...Z ? {} : { overflow: "clip" },
|
|
5068
|
-
...
|
|
5374
|
+
...Ze
|
|
5069
5375
|
},
|
|
5070
5376
|
onScroll: Z ? void 0 : (e) => {
|
|
5071
5377
|
e.currentTarget.scrollTop !== 0 && (e.currentTarget.scrollTop = 0), e.currentTarget.scrollLeft !== 0 && (e.currentTarget.scrollLeft = 0);
|
|
5072
5378
|
},
|
|
5073
|
-
children: /* @__PURE__ */ p(
|
|
5379
|
+
children: /* @__PURE__ */ p(St, {
|
|
5074
5380
|
apiClient: q,
|
|
5075
5381
|
storage: J,
|
|
5076
5382
|
logger: K,
|
|
@@ -5084,7 +5390,7 @@ var vt = (e) => {
|
|
|
5084
5390
|
]
|
|
5085
5391
|
})
|
|
5086
5392
|
});
|
|
5087
|
-
}, xt = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-950:oklch(27.9% .077 45.635);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-indigo-400:oklch(67.3% .182 276.935);--color-fuchsia-100:oklch(95.2% .037 318.852);--color-fuchsia-200:oklch(90.3% .076 319.62);--color-fuchsia-300:oklch(83.3% .145 321.434);--color-fuchsia-500:oklch(66.7% .295 322.15);--color-fuchsia-600:oklch(59.1% .293 322.896);--color-fuchsia-700:oklch(51.8% .253 323.949);--color-fuchsia-800:oklch(45.2% .211 324.591);--color-fuchsia-950:oklch(29.3% .136 325.661);--color-pink-100:oklch(94.8% .028 342.258);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-900:oklch(21% .006 285.885);--color-zinc-950:oklch(14.1% .005 285.823);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--blur-sm:8px;--blur-md:12px;--blur-xl:24px;--blur-3xl:64px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-\\[10px\\]{inset:10px}.inset-x-8{inset-inline:calc(var(--spacing) * 8)}.inset-y-0{inset-block:0}.-top-1\\.5{top:calc(var(--spacing) * -1.5)}.-top-16{top:calc(var(--spacing) * -16)}.-top-24{top:calc(var(--spacing) * -24)}.top-0{top:0}.top-1\\/2{top:50%}.top-1\\/3{top:33.3333%}.top-4{top:calc(var(--spacing) * 4)}.top-5{top:calc(var(--spacing) * 5)}.top-18{top:calc(var(--spacing) * 18)}.-right-10{right:calc(var(--spacing) * -10)}.-right-16{right:calc(var(--spacing) * -16)}.right-0{right:0}.right-1\\/4{right:25%}.right-2\\.5{right:calc(var(--spacing) * 2.5)}.right-4{right:calc(var(--spacing) * 4)}.right-5{right:calc(var(--spacing) * 5)}.-bottom-10{bottom:calc(var(--spacing) * -10)}.bottom-5{bottom:calc(var(--spacing) * 5)}.-left-1\\.5{left:calc(var(--spacing) * -1.5)}.-left-20{left:calc(var(--spacing) * -20)}.left-0{left:0}.left-2\\.5{left:calc(var(--spacing) * 2.5)}.left-3{left:calc(var(--spacing) * 3)}.left-5{left:calc(var(--spacing) * 5)}.z-0{z-index:0}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1\\]{z-index:1}.z-\\[9999\\]{z-index:9999}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.mx-auto{margin-inline:auto}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.-mb-4{margin-bottom:calc(var(--spacing) * -4)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-0\\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.h-1{height:var(--spacing)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-64{height:calc(var(--spacing) * 64)}.h-72{height:calc(var(--spacing) * 72)}.h-80{height:calc(var(--spacing) * 80)}.h-\\[3px\\]{height:3px}.h-full{height:100%}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-96{max-height:calc(var(--spacing) * 96)}.min-h-0{min-height:0}.min-h-\\[70vh\\]{min-height:70vh}.min-h-screen{min-height:100vh}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-1\\/2{width:50%}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-2\\/5{width:40%}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-3\\/4{width:75%}.w-3\\/5{width:60%}.w-4{width:calc(var(--spacing) * 4)}.w-4\\/5{width:80%}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-28{width:calc(var(--spacing) * 28)}.w-32{width:calc(var(--spacing) * 32)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-auto{width:auto}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\\[16rem\\]{max-width:16rem}.max-w-\\[60vw\\]{max-width:60vw}.max-w-\\[65\\%\\]{max-width:65%}.max-w-\\[400px\\]{max-width:400px}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.translate-x-0\\.5{--tw-translate-x:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize-y{resize:vertical}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-slate-100>:not(:last-child)){border-color:var(--color-slate-100)}:where(.divide-zinc-800>:not(:last-child)){border-color:var(--color-zinc-800)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:0}.rounded-xl{border-radius:var(--radius-xl)}.rounded-b-full{border-bottom-right-radius:2147483647px;border-bottom-left-radius:2147483647px}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-emerald-700{border-color:var(--color-emerald-700)}.border-fuchsia-200{border-color:var(--color-fuchsia-200)}.border-fuchsia-500{border-color:var(--color-fuchsia-500)}.border-fuchsia-600{border-color:var(--color-fuchsia-600)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-200\\/80{border-color:#e5e7ebcc}@supports (color:color-mix(in lab, red, red)){.border-gray-200\\/80{border-color:color-mix(in oklab, var(--color-gray-200) 80%, transparent)}}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-900{border-color:var(--color-gray-900)}.border-pink-100{border-color:var(--color-pink-100)}.border-pink-100\\/90{border-color:#fce7f3e6}@supports (color:color-mix(in lab, red, red)){.border-pink-100\\/90{border-color:color-mix(in oklab, var(--color-pink-100) 90%, transparent)}}.border-red-200{border-color:var(--color-red-200)}.border-red-700{border-color:var(--color-red-700)}.border-red-900{border-color:var(--color-red-900)}.border-red-900\\/60{border-color:#82181a99}@supports (color:color-mix(in lab, red, red)){.border-red-900\\/60{border-color:color-mix(in oklab, var(--color-red-900) 60%, transparent)}}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-200\\/80{border-color:#e2e8f0cc}@supports (color:color-mix(in lab, red, red)){.border-slate-200\\/80{border-color:color-mix(in oklab, var(--color-slate-200) 80%, transparent)}}.border-slate-300{border-color:var(--color-slate-300)}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-zinc-600{border-color:var(--color-zinc-600)}.border-zinc-700{border-color:var(--color-zinc-700)}.border-zinc-800{border-color:var(--color-zinc-800)}.bg-\\[\\#fbf7f9\\]{background-color:#fbf7f9}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-950\\/60{background-color:#46190199}@supports (color:color-mix(in lab, red, red)){.bg-amber-950\\/60{background-color:color-mix(in oklab, var(--color-amber-950) 60%, transparent)}}.bg-black{background-color:var(--color-black)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-300{background-color:var(--color-emerald-300)}.bg-emerald-950\\/50{background-color:#002c2280}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/50{background-color:color-mix(in oklab, var(--color-emerald-950) 50%, transparent)}}.bg-emerald-950\\/60{background-color:#002c2299}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/60{background-color:color-mix(in oklab, var(--color-emerald-950) 60%, transparent)}}.bg-emerald-950\\/70{background-color:#002c22b3}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/70{background-color:color-mix(in oklab, var(--color-emerald-950) 70%, transparent)}}.bg-emerald-950\\/95{background-color:#002c22f2}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/95{background-color:color-mix(in oklab, var(--color-emerald-950) 95%, transparent)}}.bg-fuchsia-100{background-color:var(--color-fuchsia-100)}.bg-fuchsia-600{background-color:var(--color-fuchsia-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-50\\/80{background-color:#f9fafbcc}@supports (color:color-mix(in lab, red, red)){.bg-gray-50\\/80{background-color:color-mix(in oklab, var(--color-gray-50) 80%, transparent)}}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-50\\/80{background-color:#fef2f2cc}@supports (color:color-mix(in lab, red, red)){.bg-red-50\\/80{background-color:color-mix(in oklab, var(--color-red-50) 80%, transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-red-950\\/50{background-color:#46080980}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/50{background-color:color-mix(in oklab, var(--color-red-950) 50%, transparent)}}.bg-red-950\\/60{background-color:#46080999}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/60{background-color:color-mix(in oklab, var(--color-red-950) 60%, transparent)}}.bg-red-950\\/95{background-color:#460809f2}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/95{background-color:color-mix(in oklab, var(--color-red-950) 95%, transparent)}}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-50\\/70{background-color:#f8fafcb3}@supports (color:color-mix(in lab, red, red)){.bg-slate-50\\/70{background-color:color-mix(in oklab, var(--color-slate-50) 70%, transparent)}}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/15{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.bg-white\\/15{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.bg-white\\/20{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.bg-white\\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.bg-white\\/70{background-color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.bg-white\\/85{background-color:#ffffffd9}@supports (color:color-mix(in lab, red, red)){.bg-white\\/85{background-color:color-mix(in oklab, var(--color-white) 85%, transparent)}}.bg-white\\/95{background-color:#fffffff2}@supports (color:color-mix(in lab, red, red)){.bg-white\\/95{background-color:color-mix(in oklab, var(--color-white) 95%, transparent)}}.bg-zinc-800{background-color:var(--color-zinc-800)}.bg-zinc-800\\/60{background-color:#27272a99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-800\\/60{background-color:color-mix(in oklab, var(--color-zinc-800) 60%, transparent)}}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-zinc-900\\/60{background-color:#18181b99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/60{background-color:color-mix(in oklab, var(--color-zinc-900) 60%, transparent)}}.bg-zinc-900\\/85{background-color:#18181bd9}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/85{background-color:color-mix(in oklab, var(--color-zinc-900) 85%, transparent)}}.bg-zinc-900\\/90{background-color:#18181be6}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/90{background-color:color-mix(in oklab, var(--color-zinc-900) 90%, transparent)}}.bg-zinc-900\\/95{background-color:#18181bf2}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/95{background-color:color-mix(in oklab, var(--color-zinc-900) 95%, transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.bg-zinc-950\\/40{background-color:#09090b66}@supports (color:color-mix(in lab, red, red)){.bg-zinc-950\\/40{background-color:color-mix(in oklab, var(--color-zinc-950) 40%, transparent)}}.bg-zinc-950\\/60{background-color:#09090b99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-950\\/60{background-color:color-mix(in oklab, var(--color-zinc-950) 60%, transparent)}}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-right{object-position:right}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-3\\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pr-1\\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2\\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-3\\.5{padding-right:calc(var(--spacing) * 3.5)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-9{padding-right:calc(var(--spacing) * 9)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3\\.5{padding-left:calc(var(--spacing) * 3.5)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-10{padding-left:calc(var(--spacing) * 10)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12\\.5px\\]{font-size:12.5px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[15px\\]{font-size:15px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-300{color:var(--color-amber-300)}.text-amber-500{color:var(--color-amber-500)}.text-amber-700{color:var(--color-amber-700)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-700{color:var(--color-emerald-700)}.text-emerald-800{color:var(--color-emerald-800)}.text-fuchsia-600{color:var(--color-fuchsia-600)}.text-fuchsia-700{color:var(--color-fuchsia-700)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-indigo-400{color:var(--color-indigo-400)}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.text-white\\/60{color:#fff9}@supports (color:color-mix(in lab, red, red)){.text-white\\/60{color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.text-white\\/80{color:#fffc}@supports (color:color-mix(in lab, red, red)){.text-white\\/80{color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.text-zinc-100{color:var(--color-zinc-100)}.text-zinc-200{color:var(--color-zinc-200)}.text-zinc-300{color:var(--color-zinc-300)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.placeholder-zinc-500::placeholder{color:var(--color-zinc-500)}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.opacity-100{opacity:1}.opacity-\\[0\\.03\\]{opacity:.03}.opacity-\\[0\\.14\\]{opacity:.14}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_1px_2px_rgba\\(15\\,23\\,42\\,0\\.04\\)\\,0_12px_32px_-16px_rgba\\(15\\,23\\,42\\,0\\.12\\)\\]{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0f172a0a), 0 12px 32px -16px var(--tw-shadow-color,#0f172a1f);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_1px_2px_rgba\\(15\\,23\\,42\\,0\\.04\\)\\,0_24px_48px_-24px_rgba\\(15\\,23\\,42\\,0\\.16\\)\\]{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0f172a0a), 0 24px 48px -24px var(--tw-shadow-color,#0f172a29);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_1px_2px_rgba\\(15\\,23\\,42\\,0\\.04\\)\\,0_24px_48px_-24px_rgba\\(15\\,23\\,42\\,0\\.18\\)\\]{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0f172a0a), 0 24px 48px -24px var(--tw-shadow-color,#0f172a2e);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_1px_2px_rgba\\(15\\,23\\,42\\,0\\.04\\)\\]{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0f172a0a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_24px_48px_-24px_rgba\\(0\\,0\\,0\\,0\\.8\\)\\]{--tw-shadow:0 24px 48px -24px var(--tw-shadow-color,#000c);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[inset_0_1px_0_rgba\\(255\\,255\\,255\\,0\\.25\\)\\]{--tw-shadow:inset 0 1px 0 var(--tw-shadow-color,#ffffff40);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-emerald-200\\/80{--tw-ring-color:#a4f4cfcc}@supports (color:color-mix(in lab, red, red)){.ring-emerald-200\\/80{--tw-ring-color:color-mix(in oklab, var(--color-emerald-200) 80%, transparent)}}.ring-emerald-900{--tw-ring-color:var(--color-emerald-900)}.ring-red-200\\/80{--tw-ring-color:#ffcacacc}@supports (color:color-mix(in lab, red, red)){.ring-red-200\\/80{--tw-ring-color:color-mix(in oklab, var(--color-red-200) 80%, transparent)}}.ring-red-900{--tw-ring-color:var(--color-red-900)}.ring-slate-200\\/70{--tw-ring-color:#e2e8f0b3}@supports (color:color-mix(in lab, red, red)){.ring-slate-200\\/70{--tw-ring-color:color-mix(in oklab, var(--color-slate-200) 70%, transparent)}}.ring-white\\/25{--tw-ring-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.ring-white\\/25{--tw-ring-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.ring-white\\/30{--tw-ring-color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.ring-white\\/30{--tw-ring-color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.blur-3xl{--tw-blur:blur(var(--blur-3xl));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,)}.contrast-200{--tw-contrast:contrast(200%);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,)}.invert{--tw-invert:invert(100%);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,)}.filter{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,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-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,);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,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-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,);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,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-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,);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,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\\:pointer-events-auto:is(:where(.group):hover *){pointer-events:auto}.group-hover\\:translate-x-0\\.5:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-hover\\:scale-100:is(:where(.group):hover *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\\:shadow-\\[0_8px_20px_-6px_color-mix\\(in_srgb\\,var\\(--vx-accent\\)_70\\%\\,transparent\\)\\]:is(:where(.group):hover *){--tw-shadow:0 8px 20px -6px var(--tw-shadow-color,var(--vx-accent))}@supports (color:color-mix(in lab, red, red)){.group-hover\\:shadow-\\[0_8px_20px_-6px_color-mix\\(in_srgb\\,var\\(--vx-accent\\)_70\\%\\,transparent\\)\\]:is(:where(.group):hover *){--tw-shadow:0 8px 20px -6px var(--tw-shadow-color,color-mix(in srgb,var(--vx-accent) 70%,transparent))}}.group-hover\\:shadow-\\[0_8px_20px_-6px_color-mix\\(in_srgb\\,var\\(--vx-accent\\)_70\\%\\,transparent\\)\\]:is(:where(.group):hover *){box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.placeholder\\:text-slate-400::placeholder{color:var(--color-slate-400)}.placeholder\\:text-zinc-500::placeholder{color:var(--color-zinc-500)}@media (hover:hover){.hover\\:-translate-y-1:hover{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:border-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_35\\%\\,transparent\\)\\]:hover{border-color:var(--vx-accent)}@supports (color:color-mix(in lab, red, red)){.hover\\:border-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_35\\%\\,transparent\\)\\]:hover{border-color:color-mix(in srgb,var(--vx-accent) 35%,transparent)}}.hover\\:border-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_45\\%\\,transparent\\)\\]:hover{border-color:var(--vx-accent)}@supports (color:color-mix(in lab, red, red)){.hover\\:border-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_45\\%\\,transparent\\)\\]:hover{border-color:color-mix(in srgb,var(--vx-accent) 45%,transparent)}}.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:border-red-200:hover{border-color:var(--color-red-200)}.hover\\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\\:border-zinc-600:hover{border-color:var(--color-zinc-600)}.hover\\:border-zinc-700:hover{border-color:var(--color-zinc-700)}.hover\\:bg-black:hover{background-color:var(--color-black)}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\\:bg-red-900\\/60:hover{background-color:#82181a99}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-red-900\\/60:hover{background-color:color-mix(in oklab, var(--color-red-900) 60%, transparent)}}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-white\\/50:hover{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/50:hover{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.hover\\:bg-zinc-700:hover{background-color:var(--color-zinc-700)}.hover\\:bg-zinc-800:hover{background-color:var(--color-zinc-800)}.hover\\:bg-zinc-800\\/60:hover{background-color:#27272a99}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-zinc-800\\/60:hover{background-color:color-mix(in oklab, var(--color-zinc-800) 60%, transparent)}}.hover\\:text-gray-900:hover{color:var(--color-gray-900)}.hover\\:text-red-300:hover{color:var(--color-red-300)}.hover\\:text-red-400:hover{color:var(--color-red-400)}.hover\\:text-red-500:hover{color:var(--color-red-500)}.hover\\:text-red-600:hover{color:var(--color-red-600)}.hover\\:text-slate-600:hover{color:var(--color-slate-600)}.hover\\:text-slate-800:hover{color:var(--color-slate-800)}.hover\\:text-slate-900:hover{color:var(--color-slate-900)}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:text-zinc-200:hover{color:var(--color-zinc-200)}.hover\\:text-zinc-300:hover{color:var(--color-zinc-300)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-90:hover{opacity:.9}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-\\[0_24px_48px_-24px_color-mix\\(in_srgb\\,var\\(--vx-accent\\)_45\\%\\,transparent\\)\\]:hover{--tw-shadow:0 24px 48px -24px var(--tw-shadow-color,var(--vx-accent))}@supports (color:color-mix(in lab, red, red)){.hover\\:shadow-\\[0_24px_48px_-24px_color-mix\\(in_srgb\\,var\\(--vx-accent\\)_45\\%\\,transparent\\)\\]:hover{--tw-shadow:0 24px 48px -24px var(--tw-shadow-color,color-mix(in srgb,var(--vx-accent) 45%,transparent))}}.hover\\:shadow-\\[0_24px_48px_-24px_color-mix\\(in_srgb\\,var\\(--vx-accent\\)_45\\%\\,transparent\\)\\]:hover{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:shadow-\\[0_24px_48px_-24px_rgba\\(0\\,0\\,0\\,0\\.8\\)\\]:hover{--tw-shadow:0 24px 48px -24px var(--tw-shadow-color,#000c);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:brightness-110:hover{--tw-brightness:brightness(110%);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,)}}.focus\\:border-\\(--vx-accent\\):focus{border-color:var(--vx-accent)}.focus\\:ring-4:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_15\\%\\,transparent\\)\\]:focus{--tw-ring-color:var(--vx-accent)}@supports (color:color-mix(in lab, red, red)){.focus\\:ring-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_15\\%\\,transparent\\)\\]:focus{--tw-ring-color:color-mix(in srgb,var(--vx-accent) 15%,transparent)}}.focus\\:ring-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_20\\%\\,transparent\\)\\]:focus{--tw-ring-color:var(--vx-accent)}@supports (color:color-mix(in lab, red, red)){.focus\\:ring-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_20\\%\\,transparent\\)\\]:focus{--tw-ring-color:color-mix(in srgb,var(--vx-accent) 20%,transparent)}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:bg-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_8\\%\\,transparent\\)\\]:focus-visible{background-color:var(--vx-accent)}@supports (color:color-mix(in lab, red, red)){.focus-visible\\:bg-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_8\\%\\,transparent\\)\\]:focus-visible{background-color:color-mix(in srgb,var(--vx-accent) 8%,transparent)}}.focus-visible\\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_25\\%\\,transparent\\)\\]:focus-visible{--tw-ring-color:var(--vx-accent)}@supports (color:color-mix(in lab, red, red)){.focus-visible\\:ring-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_25\\%\\,transparent\\)\\]:focus-visible{--tw-ring-color:color-mix(in srgb,var(--vx-accent) 25%,transparent)}}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:scale-\\[0\\.99\\]:active{scale:.99}.active\\:cursor-grabbing:active{cursor:grabbing}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:opacity-60:disabled{opacity:.6}.disabled\\:opacity-70:disabled{opacity:.7}@media (hover:hover){.disabled\\:hover\\:brightness-100:disabled:hover{--tw-brightness:brightness(100%);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,)}}@media (prefers-reduced-motion:no-preference){.motion-safe\\:animate-spin{animation:var(--animate-spin)}}@media (width>=40rem){.sm\\:block{display:block}.sm\\:inline{display:inline}.sm\\:inline-block{display:inline-block}.sm\\:inline-flex{display:inline-flex}.sm\\:h-14{height:calc(var(--spacing) * 14)}.sm\\:w-14{width:calc(var(--spacing) * 14)}.sm\\:w-72{width:calc(var(--spacing) * 72)}.sm\\:w-auto{width:auto}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-center{align-items:center}.sm\\:items-end{align-items:flex-end}.sm\\:justify-between{justify-content:space-between}.sm\\:gap-2{gap:calc(var(--spacing) * 2)}.sm\\:gap-4{gap:calc(var(--spacing) * 4)}.sm\\:p-5{padding:calc(var(--spacing) * 5)}.sm\\:p-6{padding:calc(var(--spacing) * 6)}.sm\\:p-7{padding:calc(var(--spacing) * 7)}.sm\\:px-3{padding-inline:calc(var(--spacing) * 3)}.sm\\:px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.sm\\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\\:px-7{padding-inline:calc(var(--spacing) * 7)}.sm\\:px-8{padding-inline:calc(var(--spacing) * 8)}.sm\\:py-6{padding-block:calc(var(--spacing) * 6)}.sm\\:py-8{padding-block:calc(var(--spacing) * 8)}.sm\\:py-10{padding-block:calc(var(--spacing) * 10)}.sm\\:pt-6{padding-top:calc(var(--spacing) * 6)}.sm\\:pt-7{padding-top:calc(var(--spacing) * 7)}.sm\\:pb-6{padding-bottom:calc(var(--spacing) * 6)}.sm\\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.sm\\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.sm\\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media (width>=48rem){.md\\:block{display:block}.md\\:w-1\\/2{width:50%}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=64rem){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (prefers-color-scheme:dark){.dark\\:border-fuchsia-800{border-color:var(--color-fuchsia-800)}.dark\\:border-zinc-700{border-color:var(--color-zinc-700)}.dark\\:border-zinc-800{border-color:var(--color-zinc-800)}.dark\\:bg-fuchsia-950\\/80{background-color:#4b004fcc}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-fuchsia-950\\/80{background-color:color-mix(in oklab, var(--color-fuchsia-950) 80%, transparent)}}.dark\\:bg-white{background-color:var(--color-white)}.dark\\:bg-zinc-800{background-color:var(--color-zinc-800)}.dark\\:bg-zinc-900{background-color:var(--color-zinc-900)}.dark\\:text-fuchsia-300{color:var(--color-fuchsia-300)}.dark\\:text-gray-900{color:var(--color-gray-900)}.dark\\:text-white{color:var(--color-white)}.dark\\:text-zinc-200{color:var(--color-zinc-200)}.dark\\:text-zinc-300{color:var(--color-zinc-300)}.dark\\:text-zinc-400{color:var(--color-zinc-400)}@media (hover:hover){.dark\\:hover\\:bg-zinc-800:hover{background-color:var(--color-zinc-800)}.dark\\:hover\\:bg-zinc-900\\/50:hover{background-color:#18181b80}@supports (color:color-mix(in lab, red, red)){.dark\\:hover\\:bg-zinc-900\\/50:hover{background-color:color-mix(in oklab, var(--color-zinc-900) 50%, transparent)}}.dark\\:hover\\:text-white:hover{color:var(--color-white)}}}}:host{all:initial;font-family:inherit}.vx-skeleton{background-image:linear-gradient(90deg,currentColor 0% 50%,currentColor 100%)}@supports (color:color-mix(in lab, red, red)){.vx-skeleton{background-image:linear-gradient(90deg, color-mix(in srgb, currentColor 7%, transparent) 0%, color-mix(in srgb, currentColor 14%, transparent) 50%, color-mix(in srgb, currentColor 7%, transparent) 100%)}}.vx-skeleton{background-size:200% 100%;animation:1.4s ease-in-out infinite vx-skeleton-sweep}@keyframes vx-skeleton-sweep{0%{background-position:100% 0}to{background-position:-100% 0}}.vx-progress-bar{animation:1.3s ease-in-out infinite vx-progress-slide}@keyframes vx-progress-slide{0%{transform:translate(-100%)}to{transform:translate(250%)}}@media (prefers-reduced-motion:reduce){.vx-skeleton,.vx-progress-bar{animation:none}}@supports (appearance:base-select){select[part~=select]{appearance:base-select}select[part~=select]::picker(select){appearance:base-select}select[part~=select]::picker-icon{display:none}select[part~=select]::picker(select){border:1px solid;margin-block:6px;padding:6px}@supports (color:color-mix(in lab, red, red)){select[part~=select]::picker(select){border:1px solid color-mix(in srgb, currentColor 12%, transparent)}}select[part~=select]::picker(select){background-color:inherit;color:inherit;opacity:0;max-height:min(320px,60vh);transition:opacity .15s ease, translate .15s ease, display .15s allow-discrete, overlay .15s allow-discrete;border-radius:14px;translate:0 -4px;box-shadow:0 18px 40px -12px #0f172a38,0 4px 12px -4px #0f172a14}select[part~=select]:open::picker(select){opacity:1;translate:0}@starting-style{select[part~=select]:open::picker(select){opacity:0;translate:0 -4px}}select[part~=select] option{color:inherit;cursor:pointer;background-color:#0000;border-radius:10px;align-items:center;gap:8px;padding:10px 12px;font-size:14px;font-weight:500;display:flex}select[part~=select] option:hover,select[part~=select] option:focus-visible{background-color:var(--vx-accent,#2563eb)}@supports (color:color-mix(in lab, red, red)){select[part~=select] option:hover,select[part~=select] option:focus-visible{background-color:color-mix(in srgb, var(--vx-accent,#2563eb) 8%, transparent)}}select[part~=select] option:hover,select[part~=select] option:focus-visible{outline:none}select[part~=select] option:checked{background-color:var(--vx-accent,#2563eb)}@supports (color:color-mix(in lab, red, red)){select[part~=select] option:checked{background-color:color-mix(in srgb, var(--vx-accent,#2563eb) 12%, transparent)}}select[part~=select] option:checked{color:var(--vx-accent,#2563eb);font-weight:600}select[part~=select] option::checkmark{color:var(--vx-accent,#2563eb);order:1;margin-inline-start:auto}select[part~=select] option[value=\"\"],select[part~=select] option[value=\"\"]:checked{color:currentColor;background-color:#0000}@supports (color:color-mix(in lab, red, red)){select[part~=select] option[value=\"\"],select[part~=select] option[value=\"\"]:checked{color:color-mix(in srgb, currentColor 55%, transparent)}}select[part~=select] option[value=\"\"],select[part~=select] option[value=\"\"]:checked{font-weight:500}select[part~=select] option[value=\"\"]::checkmark{display:none}}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}", St = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif", Ct = ({ children: e, useShadow: t = !0, inheritFont: n = !1 }) => {
|
|
5393
|
+
}, Ot = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-950:oklch(27.9% .077 45.635);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-indigo-400:oklch(67.3% .182 276.935);--color-fuchsia-100:oklch(95.2% .037 318.852);--color-fuchsia-200:oklch(90.3% .076 319.62);--color-fuchsia-300:oklch(83.3% .145 321.434);--color-fuchsia-500:oklch(66.7% .295 322.15);--color-fuchsia-600:oklch(59.1% .293 322.896);--color-fuchsia-700:oklch(51.8% .253 323.949);--color-fuchsia-800:oklch(45.2% .211 324.591);--color-fuchsia-950:oklch(29.3% .136 325.661);--color-pink-100:oklch(94.8% .028 342.258);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-900:oklch(21% .006 285.885);--color-zinc-950:oklch(14.1% .005 285.823);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--blur-sm:8px;--blur-md:12px;--blur-xl:24px;--blur-3xl:64px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-\\[10px\\]{inset:10px}.inset-x-8{inset-inline:calc(var(--spacing) * 8)}.inset-y-0{inset-block:0}.-top-1\\.5{top:calc(var(--spacing) * -1.5)}.-top-16{top:calc(var(--spacing) * -16)}.-top-24{top:calc(var(--spacing) * -24)}.top-0{top:0}.top-1\\/2{top:50%}.top-1\\/3{top:33.3333%}.top-4{top:calc(var(--spacing) * 4)}.top-5{top:calc(var(--spacing) * 5)}.top-18{top:calc(var(--spacing) * 18)}.-right-10{right:calc(var(--spacing) * -10)}.-right-16{right:calc(var(--spacing) * -16)}.right-0{right:0}.right-1\\/4{right:25%}.right-2\\.5{right:calc(var(--spacing) * 2.5)}.right-4{right:calc(var(--spacing) * 4)}.right-5{right:calc(var(--spacing) * 5)}.-bottom-10{bottom:calc(var(--spacing) * -10)}.bottom-5{bottom:calc(var(--spacing) * 5)}.-left-1\\.5{left:calc(var(--spacing) * -1.5)}.-left-20{left:calc(var(--spacing) * -20)}.left-0{left:0}.left-2\\.5{left:calc(var(--spacing) * 2.5)}.left-3{left:calc(var(--spacing) * 3)}.left-5{left:calc(var(--spacing) * 5)}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1\\]{z-index:1}.z-\\[9999\\]{z-index:9999}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.mx-auto{margin-inline:auto}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.-mb-4{margin-bottom:calc(var(--spacing) * -4)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-0\\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.h-1{height:var(--spacing)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-44{height:calc(var(--spacing) * 44)}.h-64{height:calc(var(--spacing) * 64)}.h-72{height:calc(var(--spacing) * 72)}.h-80{height:calc(var(--spacing) * 80)}.h-\\[3px\\]{height:3px}.h-\\[18px\\]{height:18px}.h-full{height:100%}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-96{max-height:calc(var(--spacing) * 96)}.min-h-0{min-height:0}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\\[70vh\\]{min-height:70vh}.min-h-screen{min-height:100vh}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-1\\/2{width:50%}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-2\\/5{width:40%}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-3\\/4{width:75%}.w-3\\/5{width:60%}.w-4{width:calc(var(--spacing) * 4)}.w-4\\/5{width:80%}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-28{width:calc(var(--spacing) * 28)}.w-32{width:calc(var(--spacing) * 32)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-auto{width:auto}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\\[16rem\\]{max-width:16rem}.max-w-\\[60vw\\]{max-width:60vw}.max-w-\\[65\\%\\]{max-width:65%}.max-w-\\[400px\\]{max-width:400px}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:0}.min-w-\\[18px\\]{min-width:18px}.min-w-fit{min-width:fit-content}.flex-1{flex:1}.shrink-0{flex-shrink:0}.translate-x-0\\.5{--tw-translate-x:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize-y{resize:vertical}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-slate-100>:not(:last-child)){border-color:var(--color-slate-100)}:where(.divide-zinc-800>:not(:last-child)){border-color:var(--color-zinc-800)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:0}.rounded-xl{border-radius:var(--radius-xl)}.rounded-b-full{border-bottom-right-radius:2147483647px;border-bottom-left-radius:2147483647px}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-emerald-700{border-color:var(--color-emerald-700)}.border-fuchsia-200{border-color:var(--color-fuchsia-200)}.border-fuchsia-500{border-color:var(--color-fuchsia-500)}.border-fuchsia-600{border-color:var(--color-fuchsia-600)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-200\\/80{border-color:#e5e7ebcc}@supports (color:color-mix(in lab, red, red)){.border-gray-200\\/80{border-color:color-mix(in oklab, var(--color-gray-200) 80%, transparent)}}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-900{border-color:var(--color-gray-900)}.border-pink-100{border-color:var(--color-pink-100)}.border-pink-100\\/90{border-color:#fce7f3e6}@supports (color:color-mix(in lab, red, red)){.border-pink-100\\/90{border-color:color-mix(in oklab, var(--color-pink-100) 90%, transparent)}}.border-red-200{border-color:var(--color-red-200)}.border-red-700{border-color:var(--color-red-700)}.border-red-900{border-color:var(--color-red-900)}.border-red-900\\/60{border-color:#82181a99}@supports (color:color-mix(in lab, red, red)){.border-red-900\\/60{border-color:color-mix(in oklab, var(--color-red-900) 60%, transparent)}}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-200\\/80{border-color:#e2e8f0cc}@supports (color:color-mix(in lab, red, red)){.border-slate-200\\/80{border-color:color-mix(in oklab, var(--color-slate-200) 80%, transparent)}}.border-slate-300{border-color:var(--color-slate-300)}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-zinc-600{border-color:var(--color-zinc-600)}.border-zinc-700{border-color:var(--color-zinc-700)}.border-zinc-800{border-color:var(--color-zinc-800)}.bg-\\[\\#fbf7f9\\]{background-color:#fbf7f9}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-950\\/60{background-color:#46190199}@supports (color:color-mix(in lab, red, red)){.bg-amber-950\\/60{background-color:color-mix(in oklab, var(--color-amber-950) 60%, transparent)}}.bg-black{background-color:var(--color-black)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-300{background-color:var(--color-emerald-300)}.bg-emerald-950\\/50{background-color:#002c2280}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/50{background-color:color-mix(in oklab, var(--color-emerald-950) 50%, transparent)}}.bg-emerald-950\\/60{background-color:#002c2299}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/60{background-color:color-mix(in oklab, var(--color-emerald-950) 60%, transparent)}}.bg-emerald-950\\/70{background-color:#002c22b3}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/70{background-color:color-mix(in oklab, var(--color-emerald-950) 70%, transparent)}}.bg-emerald-950\\/95{background-color:#002c22f2}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/95{background-color:color-mix(in oklab, var(--color-emerald-950) 95%, transparent)}}.bg-fuchsia-100{background-color:var(--color-fuchsia-100)}.bg-fuchsia-600{background-color:var(--color-fuchsia-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-50\\/80{background-color:#f9fafbcc}@supports (color:color-mix(in lab, red, red)){.bg-gray-50\\/80{background-color:color-mix(in oklab, var(--color-gray-50) 80%, transparent)}}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-50\\/80{background-color:#fef2f2cc}@supports (color:color-mix(in lab, red, red)){.bg-red-50\\/80{background-color:color-mix(in oklab, var(--color-red-50) 80%, transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-red-950\\/50{background-color:#46080980}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/50{background-color:color-mix(in oklab, var(--color-red-950) 50%, transparent)}}.bg-red-950\\/60{background-color:#46080999}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/60{background-color:color-mix(in oklab, var(--color-red-950) 60%, transparent)}}.bg-red-950\\/95{background-color:#460809f2}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/95{background-color:color-mix(in oklab, var(--color-red-950) 95%, transparent)}}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-50\\/70{background-color:#f8fafcb3}@supports (color:color-mix(in lab, red, red)){.bg-slate-50\\/70{background-color:color-mix(in oklab, var(--color-slate-50) 70%, transparent)}}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/15{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.bg-white\\/15{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.bg-white\\/20{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.bg-white\\/25{background-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.bg-white\\/25{background-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.bg-white\\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.bg-white\\/70{background-color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.bg-white\\/85{background-color:#ffffffd9}@supports (color:color-mix(in lab, red, red)){.bg-white\\/85{background-color:color-mix(in oklab, var(--color-white) 85%, transparent)}}.bg-white\\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.bg-white\\/90{background-color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.bg-white\\/95{background-color:#fffffff2}@supports (color:color-mix(in lab, red, red)){.bg-white\\/95{background-color:color-mix(in oklab, var(--color-white) 95%, transparent)}}.bg-zinc-800{background-color:var(--color-zinc-800)}.bg-zinc-800\\/60{background-color:#27272a99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-800\\/60{background-color:color-mix(in oklab, var(--color-zinc-800) 60%, transparent)}}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-zinc-900\\/60{background-color:#18181b99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/60{background-color:color-mix(in oklab, var(--color-zinc-900) 60%, transparent)}}.bg-zinc-900\\/85{background-color:#18181bd9}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/85{background-color:color-mix(in oklab, var(--color-zinc-900) 85%, transparent)}}.bg-zinc-900\\/90{background-color:#18181be6}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/90{background-color:color-mix(in oklab, var(--color-zinc-900) 90%, transparent)}}.bg-zinc-900\\/95{background-color:#18181bf2}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/95{background-color:color-mix(in oklab, var(--color-zinc-900) 95%, transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.bg-zinc-950\\/40{background-color:#09090b66}@supports (color:color-mix(in lab, red, red)){.bg-zinc-950\\/40{background-color:color-mix(in oklab, var(--color-zinc-950) 40%, transparent)}}.bg-zinc-950\\/60{background-color:#09090b99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-950\\/60{background-color:color-mix(in oklab, var(--color-zinc-950) 60%, transparent)}}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-right{object-position:right}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-3\\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pr-1\\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2\\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3\\.5{padding-right:calc(var(--spacing) * 3.5)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3\\.5{padding-left:calc(var(--spacing) * 3.5)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-10{padding-left:calc(var(--spacing) * 10)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10\\.5px\\]{font-size:10.5px}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12\\.5px\\]{font-size:12.5px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[15px\\]{font-size:15px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-300{color:var(--color-amber-300)}.text-amber-500{color:var(--color-amber-500)}.text-amber-700{color:var(--color-amber-700)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-700{color:var(--color-emerald-700)}.text-emerald-800{color:var(--color-emerald-800)}.text-fuchsia-600{color:var(--color-fuchsia-600)}.text-fuchsia-700{color:var(--color-fuchsia-700)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-indigo-400{color:var(--color-indigo-400)}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.text-white\\/60{color:#fff9}@supports (color:color-mix(in lab, red, red)){.text-white\\/60{color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.text-white\\/80{color:#fffc}@supports (color:color-mix(in lab, red, red)){.text-white\\/80{color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.text-zinc-100{color:var(--color-zinc-100)}.text-zinc-200{color:var(--color-zinc-200)}.text-zinc-300{color:var(--color-zinc-300)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.placeholder-gray-400::placeholder{color:var(--color-gray-400)}.placeholder-zinc-500::placeholder{color:var(--color-zinc-500)}.accent-\\(--vx-accent\\){accent-color:var(--vx-accent)}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.opacity-100{opacity:1}.opacity-\\[0\\.03\\]{opacity:.03}.opacity-\\[0\\.14\\]{opacity:.14}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_1px_2px_rgba\\(15\\,23\\,42\\,0\\.04\\)\\,0_8px_24px_-14px_rgba\\(15\\,23\\,42\\,0\\.18\\)\\]{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0f172a0a), 0 8px 24px -14px var(--tw-shadow-color,#0f172a2e);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_1px_2px_rgba\\(15\\,23\\,42\\,0\\.04\\)\\,0_12px_32px_-16px_rgba\\(15\\,23\\,42\\,0\\.12\\)\\]{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0f172a0a), 0 12px 32px -16px var(--tw-shadow-color,#0f172a1f);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_1px_2px_rgba\\(15\\,23\\,42\\,0\\.04\\)\\,0_24px_48px_-24px_rgba\\(15\\,23\\,42\\,0\\.16\\)\\]{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0f172a0a), 0 24px 48px -24px var(--tw-shadow-color,#0f172a29);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_1px_2px_rgba\\(15\\,23\\,42\\,0\\.04\\)\\,0_24px_48px_-24px_rgba\\(15\\,23\\,42\\,0\\.18\\)\\]{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0f172a0a), 0 24px 48px -24px var(--tw-shadow-color,#0f172a2e);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_1px_2px_rgba\\(15\\,23\\,42\\,0\\.04\\)\\]{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0f172a0a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_24px_48px_-24px_rgba\\(0\\,0\\,0\\,0\\.8\\)\\]{--tw-shadow:0 24px 48px -24px var(--tw-shadow-color,#000c);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[inset_0_1px_0_rgba\\(255\\,255\\,255\\,0\\.25\\)\\]{--tw-shadow:inset 0 1px 0 var(--tw-shadow-color,#ffffff40);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-emerald-200\\/80{--tw-ring-color:#a4f4cfcc}@supports (color:color-mix(in lab, red, red)){.ring-emerald-200\\/80{--tw-ring-color:color-mix(in oklab, var(--color-emerald-200) 80%, transparent)}}.ring-emerald-900{--tw-ring-color:var(--color-emerald-900)}.ring-red-200\\/80{--tw-ring-color:#ffcacacc}@supports (color:color-mix(in lab, red, red)){.ring-red-200\\/80{--tw-ring-color:color-mix(in oklab, var(--color-red-200) 80%, transparent)}}.ring-red-900{--tw-ring-color:var(--color-red-900)}.ring-slate-200\\/70{--tw-ring-color:#e2e8f0b3}@supports (color:color-mix(in lab, red, red)){.ring-slate-200\\/70{--tw-ring-color:color-mix(in oklab, var(--color-slate-200) 70%, transparent)}}.ring-white\\/25{--tw-ring-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.ring-white\\/25{--tw-ring-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.ring-white\\/30{--tw-ring-color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.ring-white\\/30{--tw-ring-color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.blur-3xl{--tw-blur:blur(var(--blur-3xl));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,)}.contrast-200{--tw-contrast:contrast(200%);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,)}.invert{--tw-invert:invert(100%);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,)}.filter{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,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-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,);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,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-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,);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,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-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,);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,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\\:pointer-events-auto:is(:where(.group):hover *){pointer-events:auto}.group-hover\\:translate-x-0\\.5:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-hover\\:scale-100:is(:where(.group):hover *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\\:shadow-\\[0_8px_20px_-6px_color-mix\\(in_srgb\\,var\\(--vx-accent\\)_70\\%\\,transparent\\)\\]:is(:where(.group):hover *){--tw-shadow:0 8px 20px -6px var(--tw-shadow-color,var(--vx-accent))}@supports (color:color-mix(in lab, red, red)){.group-hover\\:shadow-\\[0_8px_20px_-6px_color-mix\\(in_srgb\\,var\\(--vx-accent\\)_70\\%\\,transparent\\)\\]:is(:where(.group):hover *){--tw-shadow:0 8px 20px -6px var(--tw-shadow-color,color-mix(in srgb,var(--vx-accent) 70%,transparent))}}.group-hover\\:shadow-\\[0_8px_20px_-6px_color-mix\\(in_srgb\\,var\\(--vx-accent\\)_70\\%\\,transparent\\)\\]:is(:where(.group):hover *){box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.placeholder\\:text-slate-400::placeholder{color:var(--color-slate-400)}.placeholder\\:text-zinc-500::placeholder{color:var(--color-zinc-500)}@media (hover:hover){.hover\\:-translate-y-1:hover{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:border-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_35\\%\\,transparent\\)\\]:hover{border-color:var(--vx-accent)}@supports (color:color-mix(in lab, red, red)){.hover\\:border-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_35\\%\\,transparent\\)\\]:hover{border-color:color-mix(in srgb,var(--vx-accent) 35%,transparent)}}.hover\\:border-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_45\\%\\,transparent\\)\\]:hover{border-color:var(--vx-accent)}@supports (color:color-mix(in lab, red, red)){.hover\\:border-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_45\\%\\,transparent\\)\\]:hover{border-color:color-mix(in srgb,var(--vx-accent) 45%,transparent)}}.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:border-gray-500:hover{border-color:var(--color-gray-500)}.hover\\:border-red-200:hover{border-color:var(--color-red-200)}.hover\\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\\:border-zinc-500:hover{border-color:var(--color-zinc-500)}.hover\\:border-zinc-600:hover{border-color:var(--color-zinc-600)}.hover\\:border-zinc-700:hover{border-color:var(--color-zinc-700)}.hover\\:bg-black:hover{background-color:var(--color-black)}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\\:bg-red-900\\/60:hover{background-color:#82181a99}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-red-900\\/60:hover{background-color:color-mix(in oklab, var(--color-red-900) 60%, transparent)}}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:bg-white\\/50:hover{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/50:hover{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.hover\\:bg-zinc-700:hover{background-color:var(--color-zinc-700)}.hover\\:bg-zinc-800:hover{background-color:var(--color-zinc-800)}.hover\\:bg-zinc-800\\/60:hover{background-color:#27272a99}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-zinc-800\\/60:hover{background-color:color-mix(in oklab, var(--color-zinc-800) 60%, transparent)}}.hover\\:text-gray-900:hover{color:var(--color-gray-900)}.hover\\:text-red-300:hover{color:var(--color-red-300)}.hover\\:text-red-400:hover{color:var(--color-red-400)}.hover\\:text-red-500:hover{color:var(--color-red-500)}.hover\\:text-red-600:hover{color:var(--color-red-600)}.hover\\:text-slate-600:hover{color:var(--color-slate-600)}.hover\\:text-slate-800:hover{color:var(--color-slate-800)}.hover\\:text-slate-900:hover{color:var(--color-slate-900)}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:text-zinc-200:hover{color:var(--color-zinc-200)}.hover\\:text-zinc-300:hover{color:var(--color-zinc-300)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-90:hover{opacity:.9}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-\\[0_24px_48px_-24px_color-mix\\(in_srgb\\,var\\(--vx-accent\\)_45\\%\\,transparent\\)\\]:hover{--tw-shadow:0 24px 48px -24px var(--tw-shadow-color,var(--vx-accent))}@supports (color:color-mix(in lab, red, red)){.hover\\:shadow-\\[0_24px_48px_-24px_color-mix\\(in_srgb\\,var\\(--vx-accent\\)_45\\%\\,transparent\\)\\]:hover{--tw-shadow:0 24px 48px -24px var(--tw-shadow-color,color-mix(in srgb,var(--vx-accent) 45%,transparent))}}.hover\\:shadow-\\[0_24px_48px_-24px_color-mix\\(in_srgb\\,var\\(--vx-accent\\)_45\\%\\,transparent\\)\\]:hover{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:shadow-\\[0_24px_48px_-24px_rgba\\(0\\,0\\,0\\,0\\.8\\)\\]:hover{--tw-shadow:0 24px 48px -24px var(--tw-shadow-color,#000c);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:brightness-110:hover{--tw-brightness:brightness(110%);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,)}}.focus\\:border-\\(--vx-accent\\):focus{border-color:var(--vx-accent)}.focus\\:border-gray-500:focus{border-color:var(--color-gray-500)}.focus\\:border-zinc-500:focus{border-color:var(--color-zinc-500)}.focus\\:ring-4:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_15\\%\\,transparent\\)\\]:focus{--tw-ring-color:var(--vx-accent)}@supports (color:color-mix(in lab, red, red)){.focus\\:ring-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_15\\%\\,transparent\\)\\]:focus{--tw-ring-color:color-mix(in srgb,var(--vx-accent) 15%,transparent)}}.focus\\:ring-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_20\\%\\,transparent\\)\\]:focus{--tw-ring-color:var(--vx-accent)}@supports (color:color-mix(in lab, red, red)){.focus\\:ring-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_20\\%\\,transparent\\)\\]:focus{--tw-ring-color:color-mix(in srgb,var(--vx-accent) 20%,transparent)}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:bg-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_8\\%\\,transparent\\)\\]:focus-visible{background-color:var(--vx-accent)}@supports (color:color-mix(in lab, red, red)){.focus-visible\\:bg-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_8\\%\\,transparent\\)\\]:focus-visible{background-color:color-mix(in srgb,var(--vx-accent) 8%,transparent)}}.focus-visible\\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_25\\%\\,transparent\\)\\]:focus-visible{--tw-ring-color:var(--vx-accent)}@supports (color:color-mix(in lab, red, red)){.focus-visible\\:ring-\\[color-mix\\(in_srgb\\,var\\(--vx-accent\\)_25\\%\\,transparent\\)\\]:focus-visible{--tw-ring-color:color-mix(in srgb,var(--vx-accent) 25%,transparent)}}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:scale-\\[0\\.99\\]:active{scale:.99}.active\\:cursor-grabbing:active{cursor:grabbing}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:opacity-60:disabled{opacity:.6}.disabled\\:opacity-70:disabled{opacity:.7}@media (hover:hover){.disabled\\:hover\\:brightness-100:disabled:hover{--tw-brightness:brightness(100%);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,)}}@media (prefers-reduced-motion:no-preference){.motion-safe\\:animate-spin{animation:var(--animate-spin)}}@media (width>=40rem){.sm\\:block{display:block}.sm\\:inline{display:inline}.sm\\:inline-block{display:inline-block}.sm\\:inline-flex{display:inline-flex}.sm\\:h-14{height:calc(var(--spacing) * 14)}.sm\\:w-14{width:calc(var(--spacing) * 14)}.sm\\:w-72{width:calc(var(--spacing) * 72)}.sm\\:w-auto{width:auto}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-center{align-items:center}.sm\\:items-end{align-items:flex-end}.sm\\:justify-between{justify-content:space-between}.sm\\:gap-2{gap:calc(var(--spacing) * 2)}.sm\\:gap-4{gap:calc(var(--spacing) * 4)}.sm\\:p-5{padding:calc(var(--spacing) * 5)}.sm\\:p-6{padding:calc(var(--spacing) * 6)}.sm\\:p-7{padding:calc(var(--spacing) * 7)}.sm\\:px-3{padding-inline:calc(var(--spacing) * 3)}.sm\\:px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.sm\\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\\:px-7{padding-inline:calc(var(--spacing) * 7)}.sm\\:px-8{padding-inline:calc(var(--spacing) * 8)}.sm\\:py-6{padding-block:calc(var(--spacing) * 6)}.sm\\:py-8{padding-block:calc(var(--spacing) * 8)}.sm\\:py-10{padding-block:calc(var(--spacing) * 10)}.sm\\:pt-6{padding-top:calc(var(--spacing) * 6)}.sm\\:pt-7{padding-top:calc(var(--spacing) * 7)}.sm\\:pb-6{padding-bottom:calc(var(--spacing) * 6)}.sm\\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.sm\\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.sm\\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media (width>=48rem){.md\\:block{display:block}.md\\:w-1\\/2{width:50%}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=64rem){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (prefers-color-scheme:dark){.dark\\:border-fuchsia-800{border-color:var(--color-fuchsia-800)}.dark\\:border-zinc-700{border-color:var(--color-zinc-700)}.dark\\:border-zinc-800{border-color:var(--color-zinc-800)}.dark\\:bg-fuchsia-950\\/80{background-color:#4b004fcc}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-fuchsia-950\\/80{background-color:color-mix(in oklab, var(--color-fuchsia-950) 80%, transparent)}}.dark\\:bg-white{background-color:var(--color-white)}.dark\\:bg-zinc-800{background-color:var(--color-zinc-800)}.dark\\:bg-zinc-900{background-color:var(--color-zinc-900)}.dark\\:text-fuchsia-300{color:var(--color-fuchsia-300)}.dark\\:text-gray-900{color:var(--color-gray-900)}.dark\\:text-white{color:var(--color-white)}.dark\\:text-zinc-200{color:var(--color-zinc-200)}.dark\\:text-zinc-300{color:var(--color-zinc-300)}.dark\\:text-zinc-400{color:var(--color-zinc-400)}@media (hover:hover){.dark\\:hover\\:bg-zinc-800:hover{background-color:var(--color-zinc-800)}.dark\\:hover\\:bg-zinc-900\\/50:hover{background-color:#18181b80}@supports (color:color-mix(in lab, red, red)){.dark\\:hover\\:bg-zinc-900\\/50:hover{background-color:color-mix(in oklab, var(--color-zinc-900) 50%, transparent)}}.dark\\:hover\\:text-white:hover{color:var(--color-white)}}}}:host{all:initial;font-family:inherit}.vx-skeleton{background-image:linear-gradient(90deg,currentColor 0% 50%,currentColor 100%)}@supports (color:color-mix(in lab, red, red)){.vx-skeleton{background-image:linear-gradient(90deg, color-mix(in srgb, currentColor 7%, transparent) 0%, color-mix(in srgb, currentColor 14%, transparent) 50%, color-mix(in srgb, currentColor 7%, transparent) 100%)}}.vx-skeleton{background-size:200% 100%;animation:1.4s ease-in-out infinite vx-skeleton-sweep}@keyframes vx-skeleton-sweep{0%{background-position:100% 0}to{background-position:-100% 0}}.vx-progress-bar{animation:1.3s ease-in-out infinite vx-progress-slide}@keyframes vx-progress-slide{0%{transform:translate(-100%)}to{transform:translate(250%)}}@media (prefers-reduced-motion:reduce){.vx-skeleton,.vx-progress-bar{animation:none}}@supports (appearance:base-select){select[part~=select]{appearance:base-select}select[part~=select]::picker(select){appearance:base-select}select[part~=select]::picker-icon{display:none}select[part~=select]::picker(select){border:1px solid;margin-block:6px;padding:6px}@supports (color:color-mix(in lab, red, red)){select[part~=select]::picker(select){border:1px solid color-mix(in srgb, currentColor 12%, transparent)}}select[part~=select]::picker(select){background-color:inherit;color:inherit;opacity:0;max-height:min(320px,60vh);transition:opacity .15s ease, translate .15s ease, display .15s allow-discrete, overlay .15s allow-discrete;border-radius:14px;translate:0 -4px;box-shadow:0 18px 40px -12px #0f172a38,0 4px 12px -4px #0f172a14}select[part~=select]:open::picker(select){opacity:1;translate:0}@starting-style{select[part~=select]:open::picker(select){opacity:0;translate:0 -4px}}select[part~=select] option{color:inherit;cursor:pointer;background-color:#0000;border-radius:10px;align-items:center;gap:8px;padding:10px 12px;font-size:14px;font-weight:500;display:flex}select[part~=select] option:hover,select[part~=select] option:focus-visible{background-color:var(--vx-accent,#2563eb)}@supports (color:color-mix(in lab, red, red)){select[part~=select] option:hover,select[part~=select] option:focus-visible{background-color:color-mix(in srgb, var(--vx-accent,#2563eb) 8%, transparent)}}select[part~=select] option:hover,select[part~=select] option:focus-visible{outline:none}select[part~=select] option:checked{background-color:var(--vx-accent,#2563eb)}@supports (color:color-mix(in lab, red, red)){select[part~=select] option:checked{background-color:color-mix(in srgb, var(--vx-accent,#2563eb) 12%, transparent)}}select[part~=select] option:checked{color:var(--vx-accent,#2563eb);font-weight:600}select[part~=select] option::checkmark{color:var(--vx-accent,#2563eb);order:1;margin-inline-start:auto}select[part~=select] option[value=\"\"],select[part~=select] option[value=\"\"]:checked{color:currentColor;background-color:#0000}@supports (color:color-mix(in lab, red, red)){select[part~=select] option[value=\"\"],select[part~=select] option[value=\"\"]:checked{color:color-mix(in srgb, currentColor 55%, transparent)}}select[part~=select] option[value=\"\"],select[part~=select] option[value=\"\"]:checked{font-weight:500}select[part~=select] option[value=\"\"]::checkmark{display:none}}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}", kt = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif", At = ({ children: e, useShadow: t = !0, inheritFont: n = !1 }) => {
|
|
5088
5394
|
let r = u(null), [i, a] = d(null);
|
|
5089
5395
|
return c(() => {
|
|
5090
5396
|
if (typeof document > "u" || !r.current || !t) return;
|
|
@@ -5095,20 +5401,20 @@ var vt = (e) => {
|
|
|
5095
5401
|
let t = document.createElement("style");
|
|
5096
5402
|
t.innerText = ":host, *, *::before, *::after, ::backdrop {\n --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate-x: initial;\n --tw-rotate-y: initial; --tw-rotate-z: initial; --tw-skew-x: initial;\n --tw-skew-y: initial; --tw-space-y-reverse: 0; --tw-space-x-reverse: 0;\n --tw-border-style: solid; --tw-shadow: 0 0 #0000;\n --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff;\n }", e.appendChild(t);
|
|
5097
5403
|
let i = document.createElement("style");
|
|
5098
|
-
i.textContent =
|
|
5404
|
+
i.textContent = Ot, e.appendChild(i), n = document.createElement("div"), n.className = "voxket-widget-root", n.style.cssText = "\n all: initial;\n box-sizing: border-box !important;\n font-size: 14px !important;\n color: #1a1a1a !important; \n position: relative !important;\n width: 100% !important;\n min-height: 100% !important;\n display: block !important;\n background-color: transparent !important;\n ", e.appendChild(n);
|
|
5099
5405
|
}
|
|
5100
5406
|
n && a(n);
|
|
5101
5407
|
}, [t]), c(() => {
|
|
5102
|
-
i && i.style.setProperty("font-family", n ? "var(--vx-font-family)" : `var(--vx-font-family, ${
|
|
5408
|
+
i && i.style.setProperty("font-family", n ? "var(--vx-font-family)" : `var(--vx-font-family, ${kt})`, "important");
|
|
5103
5409
|
}, [i, n]), t ? /* @__PURE__ */ p("div", {
|
|
5104
5410
|
ref: r,
|
|
5105
5411
|
className: "w-full h-full",
|
|
5106
5412
|
children: i && e ? h(e, i) : null
|
|
5107
5413
|
}) : /* @__PURE__ */ p(f, { children: e });
|
|
5108
|
-
},
|
|
5414
|
+
}, jt = ({ config: e }) => t.createElement(At, {
|
|
5109
5415
|
useShadow: !0,
|
|
5110
5416
|
inheritFont: !e.theme?.fontFamily || e.theme.fontFamily === "inherit"
|
|
5111
|
-
}, t.createElement(
|
|
5417
|
+
}, t.createElement(Dt, { config: e })), Mt = class {
|
|
5112
5418
|
config;
|
|
5113
5419
|
container = null;
|
|
5114
5420
|
root = null;
|
|
@@ -5117,16 +5423,16 @@ var vt = (e) => {
|
|
|
5117
5423
|
}
|
|
5118
5424
|
mount(n) {
|
|
5119
5425
|
if (this.container = typeof n == "string" ? document.getElementById(n) : n, !this.container) throw Error("EventWidget: Mount container not found.");
|
|
5120
|
-
this.root ||= e(this.container), this.root.render(t.createElement(
|
|
5426
|
+
this.root ||= e(this.container), this.root.render(t.createElement(jt, { config: this.config }));
|
|
5121
5427
|
}
|
|
5122
5428
|
updateConfig(e) {
|
|
5123
5429
|
this.config = {
|
|
5124
5430
|
...this.config,
|
|
5125
5431
|
...e
|
|
5126
|
-
}, this.root && this.root.render(t.createElement(
|
|
5432
|
+
}, this.root && this.root.render(t.createElement(jt, { config: this.config }));
|
|
5127
5433
|
}
|
|
5128
5434
|
setConfig(e) {
|
|
5129
|
-
this.config = e, this.root && this.root.render(t.createElement(
|
|
5435
|
+
this.config = e, this.root && this.root.render(t.createElement(jt, { config: this.config }));
|
|
5130
5436
|
}
|
|
5131
5437
|
unmount() {
|
|
5132
5438
|
if (this.root) {
|
|
@@ -5136,4 +5442,4 @@ var vt = (e) => {
|
|
|
5136
5442
|
}
|
|
5137
5443
|
};
|
|
5138
5444
|
//#endregion
|
|
5139
|
-
export {
|
|
5445
|
+
export { jt as EventWidget, Mt as EventWidgetClient };
|