@voxket-ai/events-sdk 1.0.26 → 1.0.27

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.
@@ -85,6 +85,15 @@ var g = class {
85
85
  body: JSON.stringify(e)
86
86
  });
87
87
  }
88
+ async verifyPayment(e) {
89
+ return this.fetchApi("/api/payments/verify/", {
90
+ method: "POST",
91
+ body: JSON.stringify({
92
+ slug: this.slug,
93
+ registration_number: e
94
+ })
95
+ });
96
+ }
88
97
  async trackProgress(e) {
89
98
  return this.fetchApi(`/api/public/events/${this.slug}/track/`, {
90
99
  method: "POST",
@@ -396,15 +405,15 @@ function D(e, t = {}) {
396
405
  }
397
406
  //#endregion
398
407
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
399
- var ee = (e) => {
408
+ var O = (e) => {
400
409
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
401
410
  return !1;
402
- }, te = n({}), O = () => o(te), k = i(({ color: e, size: t, width: n, height: i, strokeWidth: a, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
411
+ }, ee = n({}), k = () => o(ee), A = i(({ color: e, size: t, width: n, height: i, strokeWidth: a, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
403
412
  node: u,
404
413
  aliases: [],
405
414
  size: 24
406
415
  }, ...f }, p) => {
407
- let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = O() ?? {}, b = !!l || ee(f), [x, S, w = []] = D(d, {
416
+ let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = k() ?? {}, b = !!l || O(f), [x, S, w = []] = D(d, {
408
417
  color: e ?? v,
409
418
  width: n ?? t ?? m,
410
419
  height: i ?? t ?? m,
@@ -422,8 +431,8 @@ var ee = (e) => {
422
431
  });
423
432
  //#endregion
424
433
  //#region node_modules/lucide-react/dist/esm/createLucideIcon.mjs
425
- function A(e, t = [], n = []) {
426
- let a = typeof e == "string" ? b(e, t, n) : e, o = i(({ className: e, ...t }, n) => r(k, {
434
+ function j(e, t = [], n = []) {
435
+ let a = typeof e == "string" ? b(e, t, n) : e, o = i(({ className: e, ...t }, n) => r(A, {
427
436
  ref: n,
428
437
  icon: a,
429
438
  className: e,
@@ -433,7 +442,7 @@ function A(e, t = [], n = []) {
433
442
  }
434
443
  //#endregion
435
444
  //#region node_modules/lucide-react/dist/esm/icons/arrow-left.mjs
436
- var j = {
445
+ var M = {
437
446
  name: "arrow-left",
438
447
  size: 24,
439
448
  node: [["path", {
@@ -444,8 +453,8 @@ var j = {
444
453
  key: "x3x0zl"
445
454
  }]]
446
455
  };
447
- j.node;
448
- var ne = A(j), re = {
456
+ M.node;
457
+ var te = j(M), ne = {
449
458
  name: "arrow-right",
450
459
  size: 24,
451
460
  node: [["path", {
@@ -456,8 +465,8 @@ var ne = A(j), re = {
456
465
  key: "xquz4c"
457
466
  }]]
458
467
  };
459
- re.node;
460
- var ie = A(re), M = {
468
+ ne.node;
469
+ var re = j(ne), N = {
461
470
  name: "briefcase",
462
471
  size: 24,
463
472
  node: [["path", {
@@ -472,8 +481,8 @@ var ie = A(re), M = {
472
481
  key: "i6l2r4"
473
482
  }]]
474
483
  };
475
- M.node;
476
- var ae = A(M), N = {
484
+ N.node;
485
+ var ie = j(N), P = {
477
486
  name: "building-complex",
478
487
  size: 24,
479
488
  node: [
@@ -500,8 +509,8 @@ var ae = A(M), N = {
500
509
  ],
501
510
  aliases: ["building-2"]
502
511
  };
503
- N.node;
504
- var oe = A(N), se = {
512
+ P.node;
513
+ var ae = j(P), oe = {
505
514
  name: "check",
506
515
  size: 24,
507
516
  node: [["path", {
@@ -509,8 +518,8 @@ var oe = A(N), se = {
509
518
  key: "1gmf2c"
510
519
  }]]
511
520
  };
512
- se.node;
513
- var ce = A(se), le = {
521
+ oe.node;
522
+ var se = j(oe), ce = {
514
523
  name: "chevron-down",
515
524
  size: 24,
516
525
  node: [["path", {
@@ -518,8 +527,8 @@ var ce = A(se), le = {
518
527
  key: "qrunsl"
519
528
  }]]
520
529
  };
521
- le.node;
522
- var ue = A(le), de = {
530
+ ce.node;
531
+ var le = j(ce), ue = {
523
532
  name: "circle-alert",
524
533
  size: 24,
525
534
  node: [
@@ -546,8 +555,8 @@ var ue = A(le), de = {
546
555
  ],
547
556
  aliases: ["alert-circle"]
548
557
  };
549
- de.node;
550
- var fe = A(de), pe = {
558
+ ue.node;
559
+ var de = j(ue), fe = {
551
560
  name: "circle-check-big",
552
561
  size: 24,
553
562
  node: [["path", {
@@ -559,8 +568,8 @@ var fe = A(de), pe = {
559
568
  }]],
560
569
  aliases: ["check-circle"]
561
570
  };
562
- pe.node;
563
- var P = A(pe), F = {
571
+ fe.node;
572
+ var F = j(fe), I = {
564
573
  name: "clipboard-list",
565
574
  size: 24,
566
575
  node: [
@@ -595,8 +604,8 @@ var P = A(pe), F = {
595
604
  }]
596
605
  ]
597
606
  };
598
- F.node;
599
- var me = A(F), I = {
607
+ I.node;
608
+ var pe = j(I), L = {
600
609
  name: "clock",
601
610
  size: 24,
602
611
  node: [["circle", {
@@ -609,8 +618,8 @@ var me = A(F), I = {
609
618
  key: "mmk7yg"
610
619
  }]]
611
620
  };
612
- I.node;
613
- var he = A(I), L = {
621
+ L.node;
622
+ var me = j(L), R = {
614
623
  name: "copy",
615
624
  size: 24,
616
625
  node: [["rect", {
@@ -626,8 +635,8 @@ var he = A(I), L = {
626
635
  key: "zix9uf"
627
636
  }]]
628
637
  };
629
- L.node;
630
- var ge = A(L), _e = {
638
+ R.node;
639
+ var he = j(R), ge = {
631
640
  name: "credit-card",
632
641
  size: 24,
633
642
  node: [
@@ -652,8 +661,8 @@ var ge = A(L), _e = {
652
661
  }]
653
662
  ]
654
663
  };
655
- _e.node;
656
- var ve = A(_e), R = {
664
+ ge.node;
665
+ var _e = j(ge), z = {
657
666
  name: "download",
658
667
  size: 24,
659
668
  node: [
@@ -671,8 +680,8 @@ var ve = A(_e), R = {
671
680
  }]
672
681
  ]
673
682
  };
674
- R.node;
675
- var ye = A(R), be = {
683
+ z.node;
684
+ var ve = j(z), ye = {
676
685
  name: "external-link",
677
686
  size: 24,
678
687
  node: [
@@ -690,8 +699,8 @@ var ye = A(R), be = {
690
699
  }]
691
700
  ]
692
701
  };
693
- be.node;
694
- var xe = A(be), z = {
702
+ ye.node;
703
+ var be = j(ye), B = {
695
704
  name: "file-text",
696
705
  size: 24,
697
706
  node: [
@@ -717,8 +726,8 @@ var xe = A(be), z = {
717
726
  }]
718
727
  ]
719
728
  };
720
- z.node;
721
- var Se = A(z), Ce = {
729
+ B.node;
730
+ var xe = j(B), Se = {
722
731
  name: "folder-open",
723
732
  size: 24,
724
733
  node: [["path", {
@@ -726,8 +735,8 @@ var Se = A(z), Ce = {
726
735
  key: "usdka0"
727
736
  }]]
728
737
  };
729
- Ce.node;
730
- var we = A(Ce), B = {
738
+ Se.node;
739
+ var Ce = j(Se), we = {
731
740
  name: "graduation-cap",
732
741
  size: 24,
733
742
  node: [
@@ -745,8 +754,8 @@ var we = A(Ce), B = {
745
754
  }]
746
755
  ]
747
756
  };
748
- B.node;
749
- var V = A(B), H = {
757
+ we.node;
758
+ var V = j(we), H = {
750
759
  name: "id-card",
751
760
  size: 24,
752
761
  node: [
@@ -779,7 +788,7 @@ var V = A(B), H = {
779
788
  ]
780
789
  };
781
790
  H.node;
782
- var U = A(H), Te = {
791
+ var U = j(H), W = {
783
792
  name: "info",
784
793
  size: 24,
785
794
  node: [
@@ -799,8 +808,8 @@ var U = A(H), Te = {
799
808
  }]
800
809
  ]
801
810
  };
802
- Te.node;
803
- var Ee = A(Te), W = {
811
+ W.node;
812
+ var G = j(W), Te = {
804
813
  name: "key-round",
805
814
  size: 24,
806
815
  node: [["path", {
@@ -814,8 +823,8 @@ var Ee = A(Te), W = {
814
823
  key: "w0ekpg"
815
824
  }]]
816
825
  };
817
- W.node;
818
- var G = A(W), K = {
826
+ Te.node;
827
+ var Ee = j(Te), K = {
819
828
  name: "key",
820
829
  size: 24,
821
830
  node: [
@@ -836,7 +845,7 @@ var G = A(W), K = {
836
845
  ]
837
846
  };
838
847
  K.node;
839
- var De = A(K), q = {
848
+ var q = j(K), J = {
840
849
  name: "lock",
841
850
  size: 24,
842
851
  node: [["rect", {
@@ -852,8 +861,8 @@ var De = A(K), q = {
852
861
  key: "fwvmzm"
853
862
  }]]
854
863
  };
855
- q.node;
856
- var J = A(q), Y = {
864
+ J.node;
865
+ var De = j(J), Y = {
857
866
  name: "log-in",
858
867
  size: 24,
859
868
  node: [
@@ -872,7 +881,7 @@ var J = A(q), Y = {
872
881
  ]
873
882
  };
874
883
  Y.node;
875
- var Oe = A(Y), X = {
884
+ var Oe = j(Y), X = {
876
885
  name: "log-out",
877
886
  size: 24,
878
887
  node: [
@@ -891,7 +900,7 @@ var Oe = A(Y), X = {
891
900
  ]
892
901
  };
893
902
  X.node;
894
- var ke = A(X), Ae = {
903
+ var ke = j(X), Ae = {
895
904
  name: "mail",
896
905
  size: 24,
897
906
  node: [["path", {
@@ -907,7 +916,7 @@ var ke = A(X), Ae = {
907
916
  }]]
908
917
  };
909
918
  Ae.node;
910
- var je = A(Ae), Me = {
919
+ var je = j(Ae), Me = {
911
920
  name: "map-pin",
912
921
  size: 24,
913
922
  node: [["path", {
@@ -921,7 +930,7 @@ var je = A(Ae), Me = {
921
930
  }]]
922
931
  };
923
932
  Me.node;
924
- var Ne = A(Me), Pe = {
933
+ var Ne = j(Me), Pe = {
925
934
  name: "maximize-2",
926
935
  size: 24,
927
936
  node: [
@@ -944,7 +953,7 @@ var Ne = A(Me), Pe = {
944
953
  ]
945
954
  };
946
955
  Pe.node;
947
- var Fe = A(Pe), Ie = {
956
+ var Fe = j(Pe), Ie = {
948
957
  name: "minimize-2",
949
958
  size: 24,
950
959
  node: [
@@ -967,7 +976,7 @@ var Fe = A(Pe), Ie = {
967
976
  ]
968
977
  };
969
978
  Ie.node;
970
- var Le = A(Ie), Z = {
979
+ var Le = j(Ie), Re = {
971
980
  name: "move",
972
981
  size: 24,
973
982
  node: [
@@ -997,8 +1006,8 @@ var Le = A(Ie), Z = {
997
1006
  }]
998
1007
  ]
999
1008
  };
1000
- Z.node;
1001
- var Re = A(Z), Q = {
1009
+ Re.node;
1010
+ var ze = j(Re), Be = {
1002
1011
  name: "package-check",
1003
1012
  size: 24,
1004
1013
  node: [
@@ -1024,8 +1033,8 @@ var Re = A(Z), Q = {
1024
1033
  }]
1025
1034
  ]
1026
1035
  };
1027
- Q.node;
1028
- var ze = A(Q), Be = {
1036
+ Be.node;
1037
+ var Z = j(Be), Q = {
1029
1038
  name: "phone",
1030
1039
  size: 24,
1031
1040
  node: [["path", {
@@ -1033,8 +1042,8 @@ var ze = A(Q), Be = {
1033
1042
  key: "9njp5v"
1034
1043
  }]]
1035
1044
  };
1036
- Be.node;
1037
- var Ve = A(Be), He = {
1045
+ Q.node;
1046
+ var Ve = j(Q), He = {
1038
1047
  name: "receipt",
1039
1048
  size: 24,
1040
1049
  node: [
@@ -1053,7 +1062,7 @@ var Ve = A(Be), He = {
1053
1062
  ]
1054
1063
  };
1055
1064
  He.node;
1056
- var Ue = A(He), We = {
1065
+ var Ue = j(He), We = {
1057
1066
  name: "search",
1058
1067
  size: 24,
1059
1068
  node: [["path", {
@@ -1067,7 +1076,7 @@ var Ue = A(He), We = {
1067
1076
  }]]
1068
1077
  };
1069
1078
  We.node;
1070
- var Ge = A(We), Ke = {
1079
+ var Ge = j(We), Ke = {
1071
1080
  name: "sparkles",
1072
1081
  size: 24,
1073
1082
  node: [
@@ -1093,7 +1102,7 @@ var Ge = A(We), Ke = {
1093
1102
  aliases: ["stars"]
1094
1103
  };
1095
1104
  Ke.node;
1096
- var qe = A(Ke), Je = {
1105
+ var qe = j(Ke), Je = {
1097
1106
  name: "ticket",
1098
1107
  size: 24,
1099
1108
  node: [
@@ -1116,7 +1125,7 @@ var qe = A(Ke), Je = {
1116
1125
  ]
1117
1126
  };
1118
1127
  Je.node;
1119
- var Ye = A(Je), Xe = {
1128
+ var Ye = j(Je), Xe = {
1120
1129
  name: "trash",
1121
1130
  size: 24,
1122
1131
  node: [
@@ -1144,7 +1153,7 @@ var Ye = A(Je), Xe = {
1144
1153
  aliases: ["trash-2"]
1145
1154
  };
1146
1155
  Xe.node;
1147
- var Ze = A(Xe), Qe = {
1156
+ var Ze = j(Xe), Qe = {
1148
1157
  name: "upload",
1149
1158
  size: 24,
1150
1159
  node: [
@@ -1163,7 +1172,7 @@ var Ze = A(Xe), Qe = {
1163
1172
  ]
1164
1173
  };
1165
1174
  Qe.node;
1166
- var $e = A(Qe), et = {
1175
+ var $e = j(Qe), et = {
1167
1176
  name: "user-plus",
1168
1177
  size: 24,
1169
1178
  node: [
@@ -1194,7 +1203,7 @@ var $e = A(Qe), et = {
1194
1203
  ]
1195
1204
  };
1196
1205
  et.node;
1197
- var tt = A(et), nt = {
1206
+ var tt = j(et), nt = {
1198
1207
  name: "user",
1199
1208
  size: 24,
1200
1209
  node: [["path", {
@@ -1208,7 +1217,7 @@ var tt = A(et), nt = {
1208
1217
  }]]
1209
1218
  };
1210
1219
  nt.node;
1211
- var rt = A(nt), it = {
1220
+ var rt = j(nt), it = {
1212
1221
  name: "users",
1213
1222
  size: 24,
1214
1223
  node: [
@@ -1233,7 +1242,7 @@ var rt = A(nt), it = {
1233
1242
  ]
1234
1243
  };
1235
1244
  it.node;
1236
- var at = A(it), ot = {
1245
+ var at = j(it), ot = {
1237
1246
  name: "x",
1238
1247
  size: 24,
1239
1248
  node: [["path", {
@@ -1245,7 +1254,7 @@ var at = A(it), ot = {
1245
1254
  }]]
1246
1255
  };
1247
1256
  ot.node;
1248
- var st = A(ot), $ = { fontFamily: "var(--vx-font-heading)" }, ct = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i;
1257
+ var st = j(ot), $ = { fontFamily: "var(--vx-font-heading)" }, ct = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i;
1249
1258
  function lt(e) {
1250
1259
  let t = e, n = typeof e == "string" ? e : t?.serve_url || t?.url || t?.id || "";
1251
1260
  return String(n || "").match(ct)?.[0] || "";
@@ -1273,7 +1282,7 @@ var ft = /* @__PURE__ */ new Set([
1273
1282
  "email",
1274
1283
  "phone"
1275
1284
  ]), pt = ({ 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: _, storage: v, onError: y, onEvent: b, backgroundStyle: x, ticketType: S, showReviewFields: C = !1 }) => {
1276
- let [w, T] = d(u || {}), [E, D] = d(null), [ee, te] = d(null), [O, k] = d({}), [A, j] = d({}), [re, M] = d(null), [ae, N] = d(null), [oe, se] = d({}), [le, de] = d({}), [fe, pe] = d({}), P = r?.primaryColor || "#c026d3";
1285
+ let [w, T] = d(u || {}), [E, D] = d(null), [O, ee] = d(null), [k, A] = d({}), [j, M] = d({}), [ne, N] = d(null), [ie, P] = d(null), [ae, oe] = d({}), [ce, ue] = d({}), [de, fe] = d({}), F = r?.primaryColor || "#c026d3";
1277
1286
  s(() => {
1278
1287
  if (u && Object.keys(u).length > 0) {
1279
1288
  T((e) => ({
@@ -1286,24 +1295,24 @@ var ft = /* @__PURE__ */ new Set([
1286
1295
  let r = u[e.id];
1287
1296
  r && (String(r).startsWith("http://") || String(r).startsWith("https://") ? (n[e.id] = String(r), lt(r) && (t[e.id] = lt(r))) : t[e.id] = String(r));
1288
1297
  }
1289
- }), Object.keys(t).length > 0 && k((e) => ({
1298
+ }), Object.keys(t).length > 0 && A((e) => ({
1290
1299
  ...t,
1291
1300
  ...e
1292
- })), Object.keys(n).length > 0 && j((e) => ({
1301
+ })), Object.keys(n).length > 0 && M((e) => ({
1293
1302
  ...n,
1294
1303
  ...e
1295
1304
  })), r.forEach((e) => {
1296
1305
  let t = h?.[e.id];
1297
- t?.text ? (pe((n) => ({
1306
+ t?.text ? (fe((n) => ({
1298
1307
  [e.id]: t.text,
1299
1308
  ...n
1300
- })), de((n) => ({
1309
+ })), ue((n) => ({
1301
1310
  [e.id]: t.text,
1302
1311
  ...n
1303
- })), se((t) => ({
1312
+ })), oe((t) => ({
1304
1313
  [e.id]: "text",
1305
1314
  ...t
1306
- }))) : t?.serve_url && j((n) => ({
1315
+ }))) : t?.serve_url && M((n) => ({
1307
1316
  [e.id]: t.serve_url,
1308
1317
  ...n
1309
1318
  }));
@@ -1314,7 +1323,7 @@ var ft = /* @__PURE__ */ new Set([
1314
1323
  e,
1315
1324
  h
1316
1325
  ]);
1317
- let F = (e, t) => {
1326
+ let I = (e, t) => {
1318
1327
  T((n) => {
1319
1328
  let r = {
1320
1329
  ...n,
@@ -1322,18 +1331,18 @@ var ft = /* @__PURE__ */ new Set([
1322
1331
  };
1323
1332
  return l?.(r), r;
1324
1333
  });
1325
- }, me = async (t, n) => {
1334
+ }, pe = async (t, n) => {
1326
1335
  if (!_) return;
1327
- D(t), M(null), N(null);
1328
- let r = v?.getToken?.() || null, i = O[t], a = (e?.fields || []).find((e) => e.id === t);
1336
+ D(t), N(null), P(null);
1337
+ let r = v?.getToken?.() || null, i = k[t], a = (e?.fields || []).find((e) => e.id === t);
1329
1338
  try {
1330
- let e = await _.uploadFile(n, r, r ? null : L(), a?.label), o = e?.data?.asset_id || e?.asset_id, s = e?.data?.serve_url || e?.serve_url;
1339
+ let e = await _.uploadFile(n, r, r ? null : R(), a?.label), o = e?.data?.asset_id || e?.asset_id, s = e?.data?.serve_url || e?.serve_url;
1331
1340
  if (!o && !s) throw Error("Upload response missing asset_id");
1332
1341
  let c = String(o || lt(s)), u = String(s || "");
1333
- if (k((e) => ({
1342
+ if (A((e) => ({
1334
1343
  ...e,
1335
1344
  [t]: c
1336
- })), u && j((e) => ({
1345
+ })), u && M((e) => ({
1337
1346
  ...e,
1338
1347
  [t]: u
1339
1348
  })), T((e) => {
@@ -1347,7 +1356,7 @@ var ft = /* @__PURE__ */ new Set([
1347
1356
  assetId: c,
1348
1357
  serveUrl: u
1349
1358
  }), i && i !== c) try {
1350
- await _.deleteFile(lt(i) || i, r, r ? null : L()), b?.("file_deleted", {
1359
+ await _.deleteFile(lt(i) || i, r, r ? null : R()), b?.("file_deleted", {
1351
1360
  fieldId: t,
1352
1361
  assetId: i
1353
1362
  });
@@ -1356,7 +1365,7 @@ var ft = /* @__PURE__ */ new Set([
1356
1365
  }
1357
1366
  } catch (e) {
1358
1367
  let n = e?.message || "File upload failed. Please try again.";
1359
- M(n), N(t), y?.({
1368
+ N(n), P(t), y?.({
1360
1369
  type: "file_upload_error",
1361
1370
  message: n,
1362
1371
  error: e
@@ -1364,24 +1373,24 @@ var ft = /* @__PURE__ */ new Set([
1364
1373
  } finally {
1365
1374
  D(null);
1366
1375
  }
1367
- }, I = async (e) => {
1376
+ }, L = async (e) => {
1368
1377
  if (!_) return;
1369
- let t = v?.getToken?.() || null, n = O[e] || w[e], r = lt(n) || n;
1370
- te(e), M(null), N(null);
1378
+ let t = v?.getToken?.() || null, n = k[e] || w[e], r = lt(n) || n;
1379
+ ee(e), N(null), P(null);
1371
1380
  try {
1372
- r && (await _.deleteFile(r, t, t ? null : L()), b?.("file_deleted", {
1381
+ r && (await _.deleteFile(r, t, t ? null : R()), b?.("file_deleted", {
1373
1382
  fieldId: e,
1374
1383
  assetId: r
1375
- })), k((t) => {
1384
+ })), A((t) => {
1376
1385
  let n = { ...t };
1377
1386
  return delete n[e], n;
1378
- }), j((t) => {
1387
+ }), M((t) => {
1379
1388
  let n = { ...t };
1380
1389
  return delete n[e], n;
1381
- }), pe((t) => {
1390
+ }), fe((t) => {
1382
1391
  let n = { ...t };
1383
1392
  return delete n[e], n;
1384
- }), de((t) => {
1393
+ }), ue((t) => {
1385
1394
  let n = { ...t };
1386
1395
  return delete n[e], n;
1387
1396
  }), T((t) => {
@@ -1393,29 +1402,29 @@ var ft = /* @__PURE__ */ new Set([
1393
1402
  });
1394
1403
  } catch (t) {
1395
1404
  let n = t?.message || "Failed to delete file. Please try again.";
1396
- M(n), N(e), y?.({
1405
+ N(n), P(e), y?.({
1397
1406
  type: "file_delete_error",
1398
1407
  message: n,
1399
1408
  error: t
1400
1409
  });
1401
1410
  } finally {
1402
- te(null);
1411
+ ee(null);
1403
1412
  }
1404
- }, he = async (t, n) => {
1413
+ }, me = async (t, n) => {
1405
1414
  if (!_ || !n.trim()) return;
1406
- D(t), M(null), N(null);
1407
- let r = v?.getToken?.() || null, i = O[t], a = (e?.fields || []).find((e) => e.id === t);
1415
+ D(t), N(null), P(null);
1416
+ let r = v?.getToken?.() || null, i = k[t], a = (e?.fields || []).find((e) => e.id === t);
1408
1417
  try {
1409
- let e = await _.submitTextAnswer(n.trim(), r, r ? null : L(), a?.label), o = e?.data?.asset_id || e?.asset_id;
1418
+ let e = await _.submitTextAnswer(n.trim(), r, r ? null : R(), a?.label), o = e?.data?.asset_id || e?.asset_id;
1410
1419
  if (!o) throw Error("Submission response missing asset_id");
1411
1420
  let s = String(o);
1412
- if (k((e) => ({
1421
+ if (A((e) => ({
1413
1422
  ...e,
1414
1423
  [t]: s
1415
- })), j((e) => {
1424
+ })), M((e) => {
1416
1425
  let n = { ...e };
1417
1426
  return delete n[t], n;
1418
- }), pe((e) => ({
1427
+ }), fe((e) => ({
1419
1428
  ...e,
1420
1429
  [t]: n.trim()
1421
1430
  })), T((e) => {
@@ -1429,7 +1438,7 @@ var ft = /* @__PURE__ */ new Set([
1429
1438
  assetId: s,
1430
1439
  isText: !0
1431
1440
  }), i && i !== s) try {
1432
- await _.deleteFile(lt(i) || i, r, r ? null : L()), b?.("file_deleted", {
1441
+ await _.deleteFile(lt(i) || i, r, r ? null : R()), b?.("file_deleted", {
1433
1442
  fieldId: t,
1434
1443
  assetId: i
1435
1444
  });
@@ -1438,7 +1447,7 @@ var ft = /* @__PURE__ */ new Set([
1438
1447
  }
1439
1448
  } catch (e) {
1440
1449
  let n = e?.message || "Could not submit your answer. Please try again.";
1441
- M(n), N(t), y?.({
1450
+ N(n), P(t), y?.({
1442
1451
  type: "file_upload_error",
1443
1452
  message: n,
1444
1453
  error: e
@@ -1446,20 +1455,20 @@ var ft = /* @__PURE__ */ new Set([
1446
1455
  } finally {
1447
1456
  D(null);
1448
1457
  }
1449
- }, L = () => {
1458
+ }, R = () => {
1450
1459
  let t = (e?.fields || []).find((e) => e.type === "email" || (e.label || e.id || "").toLowerCase().includes("email"));
1451
1460
  return String(t && w[t.id] || w.email || "").trim();
1452
- }, ge = e?.fields || [], _e = Array.isArray(S?.items) ? S.items.filter((e) => e?.name) : [], ve = _e.filter((e) => e.mode === "optional"), R = _e.filter((e) => e.mode === "group"), ye = _e.filter((e) => e.mode !== "optional" && e.mode !== "group"), be = R.flatMap((e) => e.options || []), z = Array.isArray(w.selected_items) ? w.selected_items : [], Ce = (e, t = z) => (e.options || []).filter((e) => t.includes(e.name)).length, B = (e, t) => {
1461
+ }, he = e?.fields || [], ge = Array.isArray(S?.items) ? S.items.filter((e) => e?.name) : [], _e = ge.filter((e) => e.mode === "optional"), z = ge.filter((e) => e.mode === "group"), ve = ge.filter((e) => e.mode !== "optional" && e.mode !== "group"), ye = z.flatMap((e) => e.options || []), B = Array.isArray(w.selected_items) ? w.selected_items : [], Se = (e, t = B) => (e.options || []).filter((e) => t.includes(e.name)).length, we = (e, t) => {
1453
1462
  T((n) => {
1454
1463
  let r = Array.isArray(n.selected_items) ? n.selected_items : [], i = r.includes(e), a = Number(t?.max) || 0;
1455
- if (!i && a && Ce(t, r) >= a) return n;
1464
+ if (!i && a && Se(t, r) >= a) return n;
1456
1465
  let o = {
1457
1466
  ...n,
1458
1467
  selected_items: i ? r.filter((t) => t !== e) : [...r, e]
1459
1468
  };
1460
1469
  return l?.(o), o;
1461
1470
  });
1462
- }, V = C ? null : S?.accompany_form_schema || null, H = V?.fields || [], U = Number(V?.price) || 0, Te = Number(V?.max) || 0, W = Array.isArray(w.accompanying) ? w.accompanying : [], G = !Te || W.length < Te, K = (e) => {
1471
+ }, V = C ? null : S?.accompany_form_schema || null, H = V?.fields || [], U = Number(V?.price) || 0, W = Number(V?.max) || 0, Te = Array.isArray(w.accompanying) ? w.accompanying : [], Ee = !W || Te.length < W, K = (e) => {
1463
1472
  T((t) => {
1464
1473
  let n = Array.isArray(t.accompanying) ? t.accompanying : [], r = {
1465
1474
  ...t,
@@ -1467,27 +1476,27 @@ var ft = /* @__PURE__ */ new Set([
1467
1476
  };
1468
1477
  return l?.(r), r;
1469
1478
  });
1470
- }, De = () => K((e) => [...e, {
1479
+ }, q = () => K((e) => [...e, {
1471
1480
  salutation: "",
1472
1481
  name: "",
1473
1482
  email: "",
1474
1483
  phone: "",
1475
1484
  custom_data: {}
1476
- }]), q = (e) => K((t) => t.filter((t, n) => n !== e)), J = (e) => ft.has(e.id) ? e.id : ut(e.id, e.label), Y = (e, t) => (ft.has(t.id) ? e[t.id] : (e.custom_data || {})[J(t)]) ?? "", Oe = (e, t, n) => K((r) => r.map((r, i) => i === e ? ft.has(t.id) ? {
1485
+ }]), J = (e) => K((t) => t.filter((t, n) => n !== e)), De = (e) => ft.has(e.id) ? e.id : ut(e.id, e.label), Y = (e, t) => (ft.has(t.id) ? e[t.id] : (e.custom_data || {})[De(t)]) ?? "", Oe = (e, t, n) => K((r) => r.map((r, i) => i === e ? ft.has(t.id) ? {
1477
1486
  ...r,
1478
1487
  [t.id]: n
1479
1488
  } : {
1480
1489
  ...r,
1481
1490
  custom_data: {
1482
1491
  ...r.custom_data || {},
1483
- [J(t)]: n
1492
+ [De(t)]: n
1484
1493
  }
1485
1494
  } : r)), X = (e, t) => `guest:${e}:${t.id}`, ke = async (e, t, n) => {
1486
1495
  if (!_) return;
1487
1496
  let r = X(e, t);
1488
- D(r), M(null), N(null);
1497
+ D(r), N(null), P(null);
1489
1498
  try {
1490
- let i = v?.getToken?.() || null, a = await _.uploadFile(n, i, i ? null : L(), t.label), o = a?.data?.serve_url || a?.serve_url || "", s = a?.data?.asset_id || a?.asset_id || "";
1499
+ let i = v?.getToken?.() || null, a = await _.uploadFile(n, i, i ? null : R(), t.label), o = a?.data?.serve_url || a?.serve_url || "", s = a?.data?.asset_id || a?.asset_id || "";
1491
1500
  if (!o && !s) throw Error("Upload response missing asset_id");
1492
1501
  Oe(e, t, String(o || s)), b?.("file_uploaded", {
1493
1502
  fieldId: r,
@@ -1496,7 +1505,7 @@ var ft = /* @__PURE__ */ new Set([
1496
1505
  });
1497
1506
  } catch (e) {
1498
1507
  let t = e?.message || "File upload failed. Please try again.";
1499
- M(t), N(r), y?.({
1508
+ N(t), P(r), y?.({
1500
1509
  type: "file_upload_error",
1501
1510
  message: t,
1502
1511
  error: e
@@ -1506,12 +1515,12 @@ var ft = /* @__PURE__ */ new Set([
1506
1515
  }
1507
1516
  }, Ae = async (e, t) => {
1508
1517
  if (!_) return;
1509
- let n = X(e, t), r = Y(W[e] || {}, t), i = lt(r) || r;
1510
- te(n), M(null), N(null);
1518
+ let n = X(e, t), r = Y(Te[e] || {}, t), i = lt(r) || r;
1519
+ ee(n), N(null), P(null);
1511
1520
  try {
1512
1521
  if (i) {
1513
1522
  let e = v?.getToken?.() || null;
1514
- await _.deleteFile(i, e, e ? null : L()), b?.("file_deleted", {
1523
+ await _.deleteFile(i, e, e ? null : R()), b?.("file_deleted", {
1515
1524
  fieldId: n,
1516
1525
  assetId: i
1517
1526
  });
@@ -1519,13 +1528,13 @@ var ft = /* @__PURE__ */ new Set([
1519
1528
  Oe(e, t, "");
1520
1529
  } catch (e) {
1521
1530
  let t = e?.message || "Failed to delete file. Please try again.";
1522
- M(t), N(n), y?.({
1531
+ N(t), P(n), y?.({
1523
1532
  type: "file_delete_error",
1524
1533
  message: t,
1525
1534
  error: e
1526
1535
  });
1527
1536
  } finally {
1528
- te(null);
1537
+ ee(null);
1529
1538
  }
1530
1539
  }, je = (e) => {
1531
1540
  if (e.description) return e.description;
@@ -1533,7 +1542,7 @@ var ft = /* @__PURE__ */ new Set([
1533
1542
  let t = (e.label || e.id || "").toLowerCase(), n = e.type;
1534
1543
  return n === "email" || t.includes("email") || t.includes("mail") ? "Please enter a valid email address. Your abstract acknowledgement, review updates, and final communication will be sent to this mailbox." : n === "phone" || t.includes("phone") || t.includes("mobile") || t.includes("contact") ? "Please enter a valid mobile number for SMS confirmations and important notifications." : t.includes("council") || t.includes("registration no") || t.includes("mci") ? "Enter your State Medical Council or National Medical Commission registration number." : n === "file" || t.includes("file") || t.includes("upload") || t.includes("bonafide") || t.includes("abstract") ? "Upload your document (PDF, JPG, PNG up to 10MB) for registration review and verification." : t.includes("salutation") || t.includes("title") ? "Choose your professional title or academic prefix." : null;
1535
1544
  }, Me = (e) => {
1536
- let t = A[e.id] || (w[e.id] && String(w[e.id]).startsWith("http") ? w[e.id] : ""), n = fe[e.id], r = oe[e.id] || "file", i = E === e.id || ee === e.id, a = le[e.id] || "", o = a.trim() ? a.trim().split(/\s+/).length : 0, s = !!e.word_limit && o > e.word_limit;
1545
+ let t = j[e.id] || (w[e.id] && String(w[e.id]).startsWith("http") ? w[e.id] : ""), n = de[e.id], r = ae[e.id] || "file", i = E === e.id || O === e.id, a = ce[e.id] || "", o = a.trim() ? a.trim().split(/\s+/).length : 0, s = !!e.word_limit && o > e.word_limit;
1537
1546
  return /* @__PURE__ */ p("div", {
1538
1547
  className: "space-y-2 mt-2",
1539
1548
  children: /* @__PURE__ */ m("div", {
@@ -1547,11 +1556,11 @@ var ft = /* @__PURE__ */ new Set([
1547
1556
  children: [/* @__PURE__ */ p("div", {
1548
1557
  className: "w-10 h-10 rounded-xl flex items-center justify-center shrink-0 border",
1549
1558
  style: {
1550
- backgroundColor: g ? "rgba(255,255,255,0.06)" : `color-mix(in srgb, ${P} 10%, white)`,
1551
- borderColor: g ? "rgba(255,255,255,0.12)" : `color-mix(in srgb, ${P} 25%, white)`,
1552
- color: P
1559
+ backgroundColor: g ? "rgba(255,255,255,0.06)" : `color-mix(in srgb, ${F} 10%, white)`,
1560
+ borderColor: g ? "rgba(255,255,255,0.12)" : `color-mix(in srgb, ${F} 25%, white)`,
1561
+ color: F
1553
1562
  },
1554
- children: /* @__PURE__ */ p(we, { size: 18 })
1563
+ children: /* @__PURE__ */ p(Ce, { size: 18 })
1555
1564
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
1556
1565
  className: `text-xs font-bold ${g ? "text-zinc-200" : "text-gray-900"}`,
1557
1566
  children: e.label
@@ -1562,16 +1571,16 @@ var ft = /* @__PURE__ */ new Set([
1562
1571
  }), /* @__PURE__ */ p("button", {
1563
1572
  type: "button",
1564
1573
  disabled: i,
1565
- onClick: () => se((t) => ({
1574
+ onClick: () => oe((t) => ({
1566
1575
  ...t,
1567
1576
  [e.id]: r === "file" ? "text" : "file"
1568
1577
  })),
1569
1578
  className: "flex items-center gap-1 text-2xs font-semibold px-2.5 py-1 rounded-lg border cursor-pointer transition-colors hover:opacity-80 disabled:opacity-50 shrink-0",
1570
1579
  style: {
1571
- color: P,
1572
- borderColor: `color-mix(in srgb, ${P} 35%, transparent)`
1580
+ color: F,
1581
+ borderColor: `color-mix(in srgb, ${F} 35%, transparent)`
1573
1582
  },
1574
- children: r === "file" ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(Se, { size: 11 }), " Send text only"] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p($e, { size: 11 }), " Send file"] })
1583
+ children: r === "file" ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(xe, { size: 11 }), " Send text only"] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p($e, { size: 11 }), " Send file"] })
1575
1584
  })]
1576
1585
  }),
1577
1586
  r === "file" ? /* @__PURE__ */ m("div", {
@@ -1586,33 +1595,33 @@ var ft = /* @__PURE__ */ new Set([
1586
1595
  disabled: i,
1587
1596
  onChange: (t) => {
1588
1597
  let n = t.target.files?.[0];
1589
- n && me(e.id, n), t.target.value = "";
1598
+ n && pe(e.id, n), t.target.value = "";
1590
1599
  }
1591
1600
  }), /* @__PURE__ */ m("div", {
1592
1601
  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"}`,
1593
1602
  children: [/* @__PURE__ */ p($e, {
1594
1603
  size: 14,
1595
- style: { color: P }
1604
+ style: { color: F }
1596
1605
  }), /* @__PURE__ */ p("span", { children: E === e.id ? "Uploading..." : t ? "Replace File" : "Choose File" })]
1597
1606
  })]
1598
1607
  }), t && typeof t == "string" && t.trim() !== "" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("button", {
1599
1608
  type: "button",
1600
1609
  onClick: () => window.open(t, "_blank", "noopener,noreferrer"),
1601
1610
  className: "flex items-center gap-1.5 py-2 px-3.5 rounded-xl text-xs font-semibold text-white shadow-xs transition-opacity hover:opacity-90 shrink-0 cursor-pointer",
1602
- style: { backgroundColor: P },
1611
+ style: { backgroundColor: F },
1603
1612
  title: "Open file in new tab",
1604
1613
  children: [
1605
- /* @__PURE__ */ p(Se, { size: 13 }),
1614
+ /* @__PURE__ */ p(xe, { size: 13 }),
1606
1615
  /* @__PURE__ */ p("span", { children: "View" }),
1607
- /* @__PURE__ */ p(xe, { size: 11 })
1616
+ /* @__PURE__ */ p(be, { size: 11 })
1608
1617
  ]
1609
1618
  }), /* @__PURE__ */ m("button", {
1610
1619
  type: "button",
1611
- disabled: ee === e.id || E === e.id,
1612
- onClick: () => I(e.id),
1620
+ disabled: O === e.id || E === e.id,
1621
+ onClick: () => L(e.id),
1613
1622
  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"}`,
1614
1623
  title: "Delete uploaded file",
1615
- children: [/* @__PURE__ */ p(Ze, { size: 13 }), /* @__PURE__ */ p("span", { children: ee === e.id ? "Deleting..." : "Delete" })]
1624
+ children: [/* @__PURE__ */ p(Ze, { size: 13 }), /* @__PURE__ */ p("span", { children: O === e.id ? "Deleting..." : "Delete" })]
1616
1625
  })] })]
1617
1626
  }) : /* @__PURE__ */ m("div", {
1618
1627
  className: `mt-3 pt-3 border-t space-y-2 ${g ? "border-zinc-800" : "border-slate-200"}`,
@@ -1621,7 +1630,7 @@ var ft = /* @__PURE__ */ new Set([
1621
1630
  rows: 3,
1622
1631
  disabled: i || !!n,
1623
1632
  value: n ?? a,
1624
- onChange: (t) => de((n) => ({
1633
+ onChange: (t) => ue((n) => ({
1625
1634
  ...n,
1626
1635
  [e.id]: t.target.value
1627
1636
  })),
@@ -1640,14 +1649,14 @@ var ft = /* @__PURE__ */ new Set([
1640
1649
  }) : /* @__PURE__ */ p("span", {}), n ? /* @__PURE__ */ m("button", {
1641
1650
  type: "button",
1642
1651
  disabled: i,
1643
- onClick: () => I(e.id),
1652
+ onClick: () => L(e.id),
1644
1653
  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"}`,
1645
- children: [/* @__PURE__ */ p(Ze, { size: 13 }), /* @__PURE__ */ p("span", { children: ee === e.id ? "Clearing..." : "Clear & Re-enter" })]
1654
+ children: [/* @__PURE__ */ p(Ze, { size: 13 }), /* @__PURE__ */ p("span", { children: O === e.id ? "Clearing..." : "Clear & Re-enter" })]
1646
1655
  }) : /* @__PURE__ */ m("button", {
1647
1656
  type: "button",
1648
1657
  disabled: i || !a.trim(),
1649
- onClick: () => he(e.id, a),
1650
- style: { backgroundColor: P },
1658
+ onClick: () => me(e.id, a),
1659
+ style: { backgroundColor: F },
1651
1660
  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",
1652
1661
  children: [/* @__PURE__ */ p($e, { size: 13 }), /* @__PURE__ */ p("span", { children: E === e.id ? "Submitting..." : "Submit Text" })]
1653
1662
  })]
@@ -1655,7 +1664,7 @@ var ft = /* @__PURE__ */ new Set([
1655
1664
  }),
1656
1665
  t && /* @__PURE__ */ m("div", {
1657
1666
  className: `mt-2.5 pt-2 border-t text-2xs truncate flex items-center gap-1.5 ${g ? "border-zinc-800 text-zinc-300" : "border-gray-200 text-gray-700 font-medium"}`,
1658
- children: [/* @__PURE__ */ p(ce, {
1667
+ children: [/* @__PURE__ */ p(se, {
1659
1668
  size: 12,
1660
1669
  className: "text-emerald-500 shrink-0"
1661
1670
  }), /* @__PURE__ */ m("span", {
@@ -1663,9 +1672,9 @@ var ft = /* @__PURE__ */ new Set([
1663
1672
  children: ["Attached: ", t]
1664
1673
  })]
1665
1674
  }),
1666
- re && ae === e.id && /* @__PURE__ */ p("div", {
1675
+ ne && ie === e.id && /* @__PURE__ */ p("div", {
1667
1676
  className: "text-xs text-red-500 mt-2 font-medium",
1668
- children: re
1677
+ children: ne
1669
1678
  })
1670
1679
  ]
1671
1680
  })
@@ -1702,7 +1711,7 @@ var ft = /* @__PURE__ */ new Set([
1702
1711
  id: a,
1703
1712
  required: e.required,
1704
1713
  value: t,
1705
- onChange: (t) => F(e.id, t.target.value),
1714
+ onChange: (t) => I(e.id, t.target.value),
1706
1715
  className: `${o} pr-10 appearance-none cursor-pointer`,
1707
1716
  children: [/* @__PURE__ */ p("option", {
1708
1717
  value: "",
@@ -1715,7 +1724,7 @@ var ft = /* @__PURE__ */ new Set([
1715
1724
  }, e))]
1716
1725
  }), /* @__PURE__ */ p("div", {
1717
1726
  className: `absolute inset-y-0 right-0 flex items-center pr-3.5 pointer-events-none ${g ? "text-zinc-400" : "text-slate-400"}`,
1718
- children: /* @__PURE__ */ p(ue, { size: 16 })
1727
+ children: /* @__PURE__ */ p(le, { size: 16 })
1719
1728
  })]
1720
1729
  }) : e.type === "file" ? Me(e) : /* @__PURE__ */ p("input", {
1721
1730
  part: "input",
@@ -1724,20 +1733,20 @@ var ft = /* @__PURE__ */ new Set([
1724
1733
  required: e.required,
1725
1734
  value: t,
1726
1735
  placeholder: e.placeholder || (r ? "Enter your email address" : i ? "Your full name" : `Enter your ${e.label.toLowerCase()}`),
1727
- onChange: (t) => F(e.id, t.target.value),
1736
+ onChange: (t) => I(e.id, t.target.value),
1728
1737
  className: o
1729
1738
  })
1730
1739
  ]
1731
1740
  }, e.id);
1732
1741
  }, Pe = (e, t, n) => {
1733
- let r = X(t, e), i = E === r || ee === r;
1742
+ let r = X(t, e), i = E === r || O === r;
1734
1743
  return /* @__PURE__ */ m("div", { children: [n ? /* @__PURE__ */ m("div", {
1735
1744
  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"}`,
1736
1745
  children: [
1737
- /* @__PURE__ */ p(Se, {
1746
+ /* @__PURE__ */ p(xe, {
1738
1747
  size: 15,
1739
1748
  className: "shrink-0",
1740
- style: { color: P }
1749
+ style: { color: F }
1741
1750
  }),
1742
1751
  /* @__PURE__ */ p("a", {
1743
1752
  href: n,
@@ -1769,9 +1778,9 @@ var ft = /* @__PURE__ */ new Set([
1769
1778
  }
1770
1779
  })
1771
1780
  ]
1772
- }), re && ae === r && /* @__PURE__ */ p("div", {
1781
+ }), ne && ie === r && /* @__PURE__ */ p("div", {
1773
1782
  className: "text-xs text-red-500 mt-1.5 font-medium",
1774
- children: re
1783
+ children: ne
1775
1784
  })] });
1776
1785
  }, Ie = (e, t, n) => {
1777
1786
  let r = Y(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)"}`;
@@ -1820,18 +1829,18 @@ var ft = /* @__PURE__ */ new Set([
1820
1829
  className: i
1821
1830
  })]
1822
1831
  }, e.id);
1823
- }, Z = (e) => {
1832
+ }, Re = (e) => {
1824
1833
  e.preventDefault();
1825
- for (let e of ge) if (e.type === "file" && e.required && !w[e.id]) {
1826
- M(`Please upload ${e.label || "a file"}`), N(e.id);
1834
+ for (let e of he) if (e.type === "file" && e.required && !w[e.id]) {
1835
+ N(`Please upload ${e.label || "a file"}`), P(e.id);
1827
1836
  return;
1828
1837
  }
1829
- for (let e = 0; e < W.length; e++) for (let t of H) if (t.type === "file" && t.required && !Y(W[e], t)) {
1830
- M(`Please upload ${t.label || "a file"} for guest ${e + 1}`), N(X(e, t));
1838
+ for (let e = 0; e < Te.length; e++) for (let t of H) if (t.type === "file" && t.required && !Y(Te[e], t)) {
1839
+ N(`Please upload ${t.label || "a file"} for guest ${e + 1}`), P(X(e, t));
1831
1840
  return;
1832
1841
  }
1833
1842
  t(w);
1834
- }, Re = S?.type || S?.name || S?.label || (C ? "Abstract Submission Form" : "Registration Form"), Q = (e) => [S?.currency, e.toLocaleString()].filter(Boolean).join(" "), ze = [...ve, ...be].filter((e) => z.includes(e.name)).reduce((e, t) => e + (Number(t.price) || 0), 0), Be = (Number(S?.price) || 0) + ze + U * W.length, Ve = S ? Be > 0 ? Q(Be) : "Free" : null;
1843
+ }, ze = S?.type || S?.name || S?.label || (C ? "Abstract Submission Form" : "Registration Form"), Be = (e) => [S?.currency, e.toLocaleString()].filter(Boolean).join(" "), Z = [..._e, ...ye].filter((e) => B.includes(e.name)).reduce((e, t) => e + (Number(t.price) || 0), 0), Q = (Number(S?.price) || 0) + Z + U * Te.length, Ve = S ? Q > 0 ? Be(Q) : "Free" : null;
1835
1844
  return /* @__PURE__ */ m("div", {
1836
1845
  part: "form-page",
1837
1846
  className: `w-full flex-1 flex flex-col relative ${g ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"}`,
@@ -1846,20 +1855,20 @@ var ft = /* @__PURE__ */ new Set([
1846
1855
  type: "button",
1847
1856
  onClick: n,
1848
1857
  className: `inline-flex items-center gap-2 text-sm font-semibold rounded-full pl-2.5 pr-4 py-2 border transition-colors cursor-pointer ${g ? "bg-zinc-800 border-zinc-700 hover:bg-zinc-700 text-zinc-200" : "bg-white border-slate-200 hover:bg-slate-50 text-slate-700 shadow-[0_1px_2px_rgba(15,23,42,0.04)]"}`,
1849
- children: [/* @__PURE__ */ p(ne, { size: 16 }), /* @__PURE__ */ p("span", { children: "All forms" })]
1858
+ children: [/* @__PURE__ */ p(te, { size: 16 }), /* @__PURE__ */ p("span", { children: "All forms" })]
1850
1859
  }), /* @__PURE__ */ m("div", {
1851
1860
  className: "flex items-center gap-2 min-w-0",
1852
1861
  children: [S && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
1853
1862
  part: "form-type-name",
1854
- title: Re,
1863
+ title: ze,
1855
1864
  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"}`,
1856
- children: Re
1865
+ children: ze
1857
1866
  }), !C && /* @__PURE__ */ p("span", {
1858
1867
  part: "form-type-price",
1859
1868
  className: "shrink-0 text-xs font-bold px-3 py-1.5 rounded-full tabular-nums",
1860
1869
  style: {
1861
- backgroundColor: `color-mix(in srgb, ${P} 12%, transparent)`,
1862
- color: P
1870
+ backgroundColor: `color-mix(in srgb, ${F} 12%, transparent)`,
1871
+ color: F
1863
1872
  },
1864
1873
  children: Ve
1865
1874
  })] }), i === "popup" && /* @__PURE__ */ m("div", {
@@ -1881,7 +1890,7 @@ var ft = /* @__PURE__ */ new Set([
1881
1890
  className: "w-full flex-1 overflow-y-auto",
1882
1891
  children: /* @__PURE__ */ m("form", {
1883
1892
  part: "form",
1884
- onSubmit: Z,
1893
+ onSubmit: Re,
1885
1894
  className: "max-w-3xl mx-auto w-full px-4 sm:px-6 py-8 sm:py-10 space-y-5",
1886
1895
  children: [
1887
1896
  /* @__PURE__ */ m("div", {
@@ -1889,18 +1898,18 @@ var ft = /* @__PURE__ */ new Set([
1889
1898
  className: "px-1",
1890
1899
  children: [/* @__PURE__ */ p("p", {
1891
1900
  className: "text-xs font-semibold uppercase tracking-wider",
1892
- style: { color: P },
1901
+ style: { color: F },
1893
1902
  children: C ? "Abstract submission" : "Registration form"
1894
1903
  }), /* @__PURE__ */ p("h2", {
1895
1904
  part: "form-title",
1896
1905
  className: `mt-1.5 text-2xl sm:text-3xl font-bold tracking-tight ${g ? "text-white" : "text-slate-900"}`,
1897
1906
  style: $,
1898
- children: Re
1907
+ children: ze
1899
1908
  })]
1900
1909
  }),
1901
1910
  u && Object.keys(u).length > 0 && /* @__PURE__ */ m("div", {
1902
1911
  className: `text-sm px-4 py-3 rounded-2xl flex items-center gap-2.5 ${g ? "bg-emerald-950/50 text-emerald-300 ring-1 ring-inset ring-emerald-900" : "bg-emerald-50 text-emerald-800 ring-1 ring-inset ring-emerald-200/80"}`,
1903
- children: [/* @__PURE__ */ p(ce, {
1912
+ children: [/* @__PURE__ */ p(se, {
1904
1913
  size: 16,
1905
1914
  className: "shrink-0"
1906
1915
  }), /* @__PURE__ */ p("span", {
@@ -1912,17 +1921,17 @@ var ft = /* @__PURE__ */ new Set([
1912
1921
  part: "notice",
1913
1922
  className: "rounded-2xl p-4 flex items-start gap-3",
1914
1923
  style: {
1915
- backgroundColor: `color-mix(in srgb, ${P} ${g ? 14 : 7}%, transparent)`,
1916
- boxShadow: `inset 0 0 0 1px color-mix(in srgb, ${P} 20%, transparent)`
1924
+ backgroundColor: `color-mix(in srgb, ${F} ${g ? 14 : 7}%, transparent)`,
1925
+ boxShadow: `inset 0 0 0 1px color-mix(in srgb, ${F} 20%, transparent)`
1917
1926
  },
1918
1927
  children: [/* @__PURE__ */ p("div", {
1919
1928
  className: "shrink-0 mt-0.5",
1920
- style: { color: P },
1921
- children: /* @__PURE__ */ p(Ee, { size: 18 })
1929
+ style: { color: F },
1930
+ children: /* @__PURE__ */ p(G, { size: 18 })
1922
1931
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
1923
1932
  part: "notice-title",
1924
1933
  className: "text-xs font-bold uppercase tracking-wider",
1925
- style: { color: P },
1934
+ style: { color: F },
1926
1935
  children: "Before you submit"
1927
1936
  }), /* @__PURE__ */ m("p", {
1928
1937
  className: `text-sm mt-0.5 leading-relaxed ${g ? "text-zinc-300" : "text-slate-600"}`,
@@ -1939,9 +1948,9 @@ var ft = /* @__PURE__ */ new Set([
1939
1948
  /* @__PURE__ */ p("div", {
1940
1949
  part: "form-card",
1941
1950
  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)]"}`,
1942
- children: ge.map((e) => Ne(e))
1951
+ children: he.map((e) => Ne(e))
1943
1952
  }),
1944
- !C && _e.length > 0 && /* @__PURE__ */ m("div", {
1953
+ !C && ge.length > 0 && /* @__PURE__ */ m("div", {
1945
1954
  part: "addons-card",
1946
1955
  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)]"}`,
1947
1956
  children: [
@@ -1950,8 +1959,8 @@ var ft = /* @__PURE__ */ new Set([
1950
1959
  children: [/* @__PURE__ */ p("div", {
1951
1960
  className: "w-9 h-9 rounded-xl flex items-center justify-center shrink-0",
1952
1961
  style: {
1953
- backgroundColor: `color-mix(in srgb, ${P} 12%, transparent)`,
1954
- color: P
1962
+ backgroundColor: `color-mix(in srgb, ${F} 12%, transparent)`,
1963
+ color: F
1955
1964
  },
1956
1965
  children: /* @__PURE__ */ p(Ye, { size: 17 })
1957
1966
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h3", {
@@ -1961,28 +1970,28 @@ var ft = /* @__PURE__ */ new Set([
1961
1970
  children: "Add-ons"
1962
1971
  }), /* @__PURE__ */ p("p", {
1963
1972
  className: `text-xs ${g ? "text-zinc-400" : "text-slate-500"}`,
1964
- children: ve.length > 0 || R.length > 0 ? "Optional extras — charges are added to your total." : "Included with this registration."
1973
+ children: _e.length > 0 || z.length > 0 ? "Optional extras — charges are added to your total." : "Included with this registration."
1965
1974
  })] })]
1966
1975
  }),
1967
1976
  /* @__PURE__ */ m("div", {
1968
1977
  className: "px-5 sm:px-8 pb-5 sm:pb-6 space-y-2",
1969
1978
  children: [
1970
- ve.map((e) => {
1971
- let t = z.includes(e.name);
1979
+ _e.map((e) => {
1980
+ let t = B.includes(e.name);
1972
1981
  return /* @__PURE__ */ m("label", {
1973
1982
  part: t ? "addon addon-selected" : "addon",
1974
1983
  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"}`,
1975
1984
  style: t ? {
1976
- borderColor: P,
1977
- backgroundColor: `color-mix(in srgb, ${P} ${g ? 16 : 6}%, transparent)`
1985
+ borderColor: F,
1986
+ backgroundColor: `color-mix(in srgb, ${F} ${g ? 16 : 6}%, transparent)`
1978
1987
  } : void 0,
1979
1988
  children: [
1980
1989
  /* @__PURE__ */ p("input", {
1981
1990
  type: "checkbox",
1982
1991
  checked: t,
1983
- onChange: () => B(e.name),
1992
+ onChange: () => we(e.name),
1984
1993
  className: "w-4 h-4 rounded cursor-pointer shrink-0",
1985
- style: { accentColor: P }
1994
+ style: { accentColor: F }
1986
1995
  }),
1987
1996
  /* @__PURE__ */ p("span", {
1988
1997
  className: `flex-1 min-w-0 text-sm font-semibold leading-snug ${g ? "text-white" : "text-slate-900"}`,
@@ -1990,14 +1999,14 @@ var ft = /* @__PURE__ */ new Set([
1990
1999
  }),
1991
2000
  /* @__PURE__ */ p("span", {
1992
2001
  className: "shrink-0 text-[13px] font-bold tabular-nums",
1993
- style: { color: P },
1994
- children: Number(e.price) > 0 ? `+ ${Q(Number(e.price))}` : "Free"
2002
+ style: { color: F },
2003
+ children: Number(e.price) > 0 ? `+ ${Be(Number(e.price))}` : "Free"
1995
2004
  })
1996
2005
  ]
1997
2006
  }, e.name);
1998
2007
  }),
1999
- R.map((e) => {
2000
- let t = Number(e.max) || 0, n = Ce(e), r = t > 0 && n >= t;
2008
+ z.map((e) => {
2009
+ let t = Number(e.max) || 0, n = Se(e), r = t > 0 && n >= t;
2001
2010
  return /* @__PURE__ */ m("div", {
2002
2011
  part: "addon-group",
2003
2012
  className: "pt-1",
@@ -2018,22 +2027,22 @@ var ft = /* @__PURE__ */ new Set([
2018
2027
  }), /* @__PURE__ */ p("div", {
2019
2028
  className: "space-y-2",
2020
2029
  children: (e.options || []).map((t) => {
2021
- let n = z.includes(t.name), i = r && !n;
2030
+ let n = B.includes(t.name), i = r && !n;
2022
2031
  return /* @__PURE__ */ m("label", {
2023
2032
  part: n ? "addon addon-selected" : "addon",
2024
2033
  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"}`,
2025
2034
  style: n ? {
2026
- borderColor: P,
2027
- backgroundColor: `color-mix(in srgb, ${P} ${g ? 16 : 6}%, transparent)`
2035
+ borderColor: F,
2036
+ backgroundColor: `color-mix(in srgb, ${F} ${g ? 16 : 6}%, transparent)`
2028
2037
  } : void 0,
2029
2038
  children: [
2030
2039
  /* @__PURE__ */ p("input", {
2031
2040
  type: "checkbox",
2032
2041
  checked: n,
2033
2042
  disabled: i,
2034
- onChange: () => B(t.name, e),
2043
+ onChange: () => we(t.name, e),
2035
2044
  className: "w-4 h-4 rounded cursor-pointer shrink-0 disabled:cursor-not-allowed",
2036
- style: { accentColor: P }
2045
+ style: { accentColor: F }
2037
2046
  }),
2038
2047
  /* @__PURE__ */ p("span", {
2039
2048
  className: `flex-1 min-w-0 text-sm font-semibold leading-snug ${g ? "text-white" : "text-slate-900"}`,
@@ -2041,8 +2050,8 @@ var ft = /* @__PURE__ */ new Set([
2041
2050
  }),
2042
2051
  /* @__PURE__ */ p("span", {
2043
2052
  className: "shrink-0 text-[13px] font-bold tabular-nums",
2044
- style: { color: P },
2045
- children: Number(t.price) > 0 ? `+ ${Q(Number(t.price))}` : "Free"
2053
+ style: { color: F },
2054
+ children: Number(t.price) > 0 ? `+ ${Be(Number(t.price))}` : "Free"
2046
2055
  })
2047
2056
  ]
2048
2057
  }, t.name);
@@ -2050,11 +2059,11 @@ var ft = /* @__PURE__ */ new Set([
2050
2059
  })]
2051
2060
  }, e.name);
2052
2061
  }),
2053
- ye.map((e) => /* @__PURE__ */ m("div", {
2062
+ ve.map((e) => /* @__PURE__ */ m("div", {
2054
2063
  part: "addon addon-included",
2055
2064
  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"}`,
2056
2065
  children: [
2057
- /* @__PURE__ */ p(ce, {
2066
+ /* @__PURE__ */ p(se, {
2058
2067
  size: 16,
2059
2068
  className: "text-emerald-500 shrink-0"
2060
2069
  }),
@@ -2070,15 +2079,15 @@ var ft = /* @__PURE__ */ new Set([
2070
2079
  }, e.name))
2071
2080
  ]
2072
2081
  }),
2073
- Be > 0 && /* @__PURE__ */ m("div", {
2082
+ Q > 0 && /* @__PURE__ */ m("div", {
2074
2083
  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"}`,
2075
2084
  children: [/* @__PURE__ */ p("span", {
2076
2085
  className: `text-sm font-semibold ${g ? "text-zinc-300" : "text-slate-600"}`,
2077
2086
  children: "Total payable"
2078
2087
  }), /* @__PURE__ */ p("span", {
2079
2088
  className: "text-base font-bold tabular-nums",
2080
- style: { color: P },
2081
- children: Q(Be)
2089
+ style: { color: F },
2090
+ children: Be(Q)
2082
2091
  })]
2083
2092
  })
2084
2093
  ]
@@ -2091,8 +2100,8 @@ var ft = /* @__PURE__ */ new Set([
2091
2100
  children: [/* @__PURE__ */ p("div", {
2092
2101
  className: "w-9 h-9 rounded-xl flex items-center justify-center shrink-0",
2093
2102
  style: {
2094
- backgroundColor: `color-mix(in srgb, ${P} 12%, transparent)`,
2095
- color: P
2103
+ backgroundColor: `color-mix(in srgb, ${F} 12%, transparent)`,
2104
+ color: F
2096
2105
  },
2097
2106
  children: /* @__PURE__ */ p(at, { size: 17 })
2098
2107
  }), /* @__PURE__ */ m("div", {
@@ -2104,12 +2113,12 @@ var ft = /* @__PURE__ */ new Set([
2104
2113
  children: "Accompanying people"
2105
2114
  }), /* @__PURE__ */ m("p", {
2106
2115
  className: `text-xs ${g ? "text-zinc-400" : "text-slate-500"}`,
2107
- children: [U > 0 ? `${Q(U)} per guest` : "No extra charge", Te ? ` · up to ${Te}` : ""]
2116
+ children: [U > 0 ? `${Be(U)} per guest` : "No extra charge", W ? ` · up to ${W}` : ""]
2108
2117
  })]
2109
2118
  })]
2110
2119
  }), /* @__PURE__ */ m("div", {
2111
2120
  className: "px-5 sm:px-8 pb-5 sm:pb-6 space-y-3",
2112
- children: [W.map((e, t) => /* @__PURE__ */ m("div", {
2121
+ children: [Te.map((e, t) => /* @__PURE__ */ m("div", {
2113
2122
  part: "accompany-guest",
2114
2123
  className: `rounded-2xl border p-4 ${g ? "border-zinc-800 bg-zinc-950/60" : "border-slate-200 bg-slate-50/70"}`,
2115
2124
  children: [/* @__PURE__ */ m("div", {
@@ -2119,7 +2128,7 @@ var ft = /* @__PURE__ */ new Set([
2119
2128
  children: ["Guest ", t + 1]
2120
2129
  }), /* @__PURE__ */ p("button", {
2121
2130
  type: "button",
2122
- onClick: () => q(t),
2131
+ onClick: () => J(t),
2123
2132
  title: "Remove guest",
2124
2133
  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"}`,
2125
2134
  children: /* @__PURE__ */ p(Ze, { size: 15 })
@@ -2130,14 +2139,14 @@ var ft = /* @__PURE__ */ new Set([
2130
2139
  })]
2131
2140
  }, t)), /* @__PURE__ */ m("button", {
2132
2141
  type: "button",
2133
- onClick: De,
2134
- disabled: !G,
2142
+ onClick: q,
2143
+ disabled: !Ee,
2135
2144
  style: {
2136
- borderColor: P,
2137
- color: P
2145
+ borderColor: F,
2146
+ color: F
2138
2147
  },
2139
2148
  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",
2140
- children: [/* @__PURE__ */ p(tt, { size: 16 }), G ? "Add guest" : `Limit of ${Te} reached`]
2149
+ children: [/* @__PURE__ */ p(tt, { size: 16 }), Ee ? "Add guest" : `Limit of ${W} reached`]
2141
2150
  })]
2142
2151
  })]
2143
2152
  }),
@@ -2146,13 +2155,13 @@ var ft = /* @__PURE__ */ new Set([
2146
2155
  children: [/* @__PURE__ */ m("button", {
2147
2156
  part: "button button-primary submit-button",
2148
2157
  type: "submit",
2149
- disabled: E !== null || ee !== null,
2158
+ disabled: E !== null || O !== null,
2150
2159
  style: {
2151
- background: `linear-gradient(135deg, ${P}, color-mix(in srgb, ${P} 80%, black))`,
2152
- boxShadow: `0 12px 28px -12px color-mix(in srgb, ${P} 70%, transparent)`
2160
+ background: `linear-gradient(135deg, ${F}, color-mix(in srgb, ${F} 80%, black))`,
2161
+ boxShadow: `0 12px 28px -12px color-mix(in srgb, ${F} 70%, transparent)`
2153
2162
  },
2154
2163
  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",
2155
- children: [/* @__PURE__ */ p("span", { children: C ? "Submit Abstract" : "Complete Registration" }), /* @__PURE__ */ p(ie, {
2164
+ children: [/* @__PURE__ */ p("span", { children: C ? "Submit Abstract" : "Complete Registration" }), /* @__PURE__ */ p(re, {
2156
2165
  size: 18,
2157
2166
  className: "transition-transform group-hover:translate-x-0.5"
2158
2167
  })]
@@ -2171,7 +2180,7 @@ var ft = /* @__PURE__ */ new Set([
2171
2180
  "email",
2172
2181
  "phone"
2173
2182
  ]), ht = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1, isWidgetPage: a = !1, onEvent: o, onError: c }) => {
2174
- 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, ee] = d(""), [te, O] = d(""), [k, A] = d(""), [j, re] = d(""), [M, N] = d(""), [se, le] = d(""), [de, pe] = d(!1), [F, me] = d(null), [I, he] = d({}), [L, ge] = d([]), [_e, R] = d({}), [be, z] = d(null), [Ce, B] = d(null), [H, Te] = d(null), [Ee, W] = d(!1), [K, q] = d(!1), [Y, X] = d({}), [Ae, Me] = d(!1), [Pe, Fe] = d(null), [Ie, Le] = d({}), [Z, Re] = d({}), [Q, Be] = d(null), [He, We] = d({}), [Ge, Ke] = d(!1);
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, ne] = d(""), [N, P] = d(""), [oe, ce] = d(""), [ue, fe] = d(!1), [I, pe] = d(null), [L, me] = d({}), [R, he] = d([]), [ge, z] = d({}), [ye, B] = d(null), [Se, we] = d(null), [H, W] = d(null), [G, Te] = d(!1), [K, J] = d(!1), [Y, X] = d({}), [Ae, Me] = d(!1), [Pe, Fe] = d(null), [Ie, Le] = d({}), [Re, ze] = d({}), [Be, Q] = d(null), [He, We] = d({}), [Ge, Ke] = d(!1);
2175
2184
  s(() => {
2176
2185
  let e = t.getToken();
2177
2186
  e && Je(e);
@@ -2180,7 +2189,7 @@ var ft = /* @__PURE__ */ new Set([
2180
2189
  g(!0), S(null);
2181
2190
  try {
2182
2191
  let i = await e.portalGetProfile(r), a = i?.data || i || {};
2183
- me(a);
2192
+ pe(a);
2184
2193
  let s = a.registration || {}, c = s.custom_data || {}, l = s.email || a.email || "", d = null;
2185
2194
  if (l) try {
2186
2195
  let t = await e.getDraftByEmail(l);
@@ -2196,9 +2205,9 @@ var ft = /* @__PURE__ */ new Set([
2196
2205
  } catch {}
2197
2206
  }
2198
2207
  let f = d?.custom_data || {};
2199
- s.name ? O(s.name) : d?.name ? O(d.name) : a.name && O(a.name);
2208
+ s.name ? k(s.name) : d?.name ? k(d.name) : a.name && k(a.name);
2200
2209
  let p = 0, m = {}, h = [...a.editable_fields || []];
2201
- me({
2210
+ pe({
2202
2211
  ...a,
2203
2212
  editable_fields: h
2204
2213
  });
@@ -2208,12 +2217,12 @@ var ft = /* @__PURE__ */ new Set([
2208
2217
  let t = s[`${e.id}_asset_id`] || c[`${e.id}_asset_id`] || s.asset_id || c.asset_id || a.asset_id;
2209
2218
  t && (g[e.id] = String(t));
2210
2219
  }
2211
- }), R((e) => ({
2220
+ }), z((e) => ({
2212
2221
  ...g,
2213
2222
  ...e
2214
2223
  }));
2215
2224
  let _ = s.asset_id || s.photo_id || c.asset_id || c.photo_id || a.asset_id;
2216
- _ && z(String(_)), h.length > 0 ? h.forEach((e) => {
2225
+ _ && B(String(_)), h.length > 0 ? h.forEach((e) => {
2217
2226
  let t = e.label || e.name || e.id, n = ut(e.id, e.label), r = dt(e.label, e.id), i = "";
2218
2227
  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) {
2219
2228
  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);
@@ -2222,12 +2231,12 @@ var ft = /* @__PURE__ */ new Set([
2222
2231
  m[e.id] = i;
2223
2232
  }) : Object.entries(a).forEach(([e, t]) => {
2224
2233
  e.toLowerCase() !== "token" && (m[e] = t);
2225
- }), he(m), p > 0 && W(!0);
2234
+ }), me(m), p > 0 && Te(!0);
2226
2235
  let v = (a.addons?.items || []).filter((e) => e.purchased).map((e) => e.name);
2227
2236
  d?.selected_items && Array.isArray(d.selected_items) && d.selected_items.forEach((e) => {
2228
2237
  let t = typeof e == "string" ? e : e?.name;
2229
2238
  t && !v.includes(t) && v.push(t);
2230
- }), ge(v), u("profile"), o?.("attendee_profile_loaded", {
2239
+ }), he(v), u("profile"), o?.("attendee_profile_loaded", {
2231
2240
  profile: a,
2232
2241
  draft: d
2233
2242
  });
@@ -2248,7 +2257,7 @@ var ft = /* @__PURE__ */ new Set([
2248
2257
  password: D
2249
2258
  }), r = n?.data?.token || n?.token;
2250
2259
  if (!r) throw Error(n?.message || "No authentication token received.");
2251
- (n?.data?.name || n?.name) && O(n.data?.name || n.name), t.setToken(r), o?.("attendee_logged_in", {
2260
+ (n?.data?.name || n?.name) && k(n.data?.name || n.name), t.setToken(r), o?.("attendee_logged_in", {
2252
2261
  identifier: T,
2253
2262
  response: n
2254
2263
  }), await Je(r);
@@ -2265,12 +2274,12 @@ var ft = /* @__PURE__ */ new Set([
2265
2274
  }
2266
2275
  }, Qe = async (t) => {
2267
2276
  t.preventDefault();
2268
- let r = (k || T).trim();
2277
+ let r = (A || T).trim();
2269
2278
  if (!r) {
2270
2279
  S("Please enter your registration number or email to receive a code.");
2271
2280
  return;
2272
2281
  }
2273
- pe(!0), S(null), w(null);
2282
+ fe(!0), S(null), w(null);
2274
2283
  try {
2275
2284
  await e.portalRequestPasswordReset(r), w("A verification code has been sent to your registered email."), o?.("password_reset_code_requested", { identifier: r }), u("reset");
2276
2285
  } catch (e) {
@@ -2282,24 +2291,24 @@ var ft = /* @__PURE__ */ new Set([
2282
2291
  error: e
2283
2292
  });
2284
2293
  } finally {
2285
- pe(!1);
2294
+ fe(!1);
2286
2295
  }
2287
2296
  }, et = async (r) => {
2288
2297
  r.preventDefault();
2289
- let i = (k || T).trim();
2298
+ let i = (A || T).trim();
2290
2299
  if (!i) {
2291
2300
  S("Please enter your registration number or email.");
2292
2301
  return;
2293
2302
  }
2294
- if (!j.trim()) {
2303
+ if (!M.trim()) {
2295
2304
  S("Please enter the verification code sent to your email.");
2296
2305
  return;
2297
2306
  }
2298
- if (!M) {
2307
+ if (!N) {
2299
2308
  S("Please enter a new password.");
2300
2309
  return;
2301
2310
  }
2302
- if (M !== se) {
2311
+ if (N !== oe) {
2303
2312
  S("New password and confirm password do not match.");
2304
2313
  return;
2305
2314
  }
@@ -2307,13 +2316,13 @@ var ft = /* @__PURE__ */ new Set([
2307
2316
  try {
2308
2317
  let n = await e.portalConfirmPasswordReset({
2309
2318
  identifier: i,
2310
- code: j.trim(),
2311
- new_password: M
2319
+ code: M.trim(),
2320
+ new_password: N
2312
2321
  }), r = n?.data?.token || n?.token;
2313
- (n?.data?.name || n?.name) && O(n.data?.name || n.name), o?.("password_reset_success", {
2322
+ (n?.data?.name || n?.name) && k(n.data?.name || n.name), o?.("password_reset_success", {
2314
2323
  identifier: i,
2315
2324
  response: n
2316
- }), r ? (t.setToken(r), re(""), N(""), le(""), await Je(r)) : (E(i), ee(""), re(""), N(""), le(""), u("login"), w("Password updated successfully! Please login with your new password."));
2325
+ }), r ? (t.setToken(r), ne(""), P(""), ce(""), await Je(r)) : (E(i), O(""), ne(""), P(""), ce(""), u("login"), w("Password updated successfully! Please login with your new password."));
2317
2326
  } catch (e) {
2318
2327
  n.error("Password reset failed", e);
2319
2328
  let t = e.message || "Failed to update password. Please check the code.";
@@ -2326,7 +2335,7 @@ var ft = /* @__PURE__ */ new Set([
2326
2335
  g(!1);
2327
2336
  }
2328
2337
  }, tt = () => {
2329
- t.clearToken(), me(null), he({}), ge([]), R({}), z(null), Te(null), O(""), ee(""), u("login"), w("Logged out successfully."), o?.("attendee_logged_out", {});
2338
+ t.clearToken(), pe(null), me({}), he([]), z({}), B(null), W(null), k(""), O(""), u("login"), w("Logged out successfully."), o?.("attendee_logged_out", {});
2330
2339
  }, nt = async (r, i) => {
2331
2340
  let a = t.getToken();
2332
2341
  if (!a) {
@@ -2337,13 +2346,13 @@ var ft = /* @__PURE__ */ new Set([
2337
2346
  try {
2338
2347
  let t = await e.uploadFile(i, a), n = t?.data?.serve_url || t?.serve_url || "", s = t?.data?.asset_id || t?.asset_id;
2339
2348
  if (!s && !n) throw Error("Upload response missing asset_id");
2340
- n && he((e) => ({
2349
+ n && me((e) => ({
2341
2350
  ...e,
2342
2351
  [r]: n
2343
- })), s && (R((e) => ({
2352
+ })), s && (z((e) => ({
2344
2353
  ...e,
2345
2354
  [r]: String(s)
2346
- })), z(String(s))), w(`File "${i.name}" uploaded successfully!`), o?.("portal_file_uploaded", {
2355
+ })), B(String(s))), w(`File "${i.name}" uploaded successfully!`), o?.("portal_file_uploaded", {
2347
2356
  fieldId: r,
2348
2357
  serveUrl: n,
2349
2358
  assetId: s,
@@ -2366,19 +2375,19 @@ var ft = /* @__PURE__ */ new Set([
2366
2375
  S("Session expired. Please log in again.");
2367
2376
  return;
2368
2377
  }
2369
- let a = I[r], s = lt(a) || _e[r] || be;
2370
- B(r), S(null), w(null);
2378
+ let a = L[r], s = lt(a) || ge[r] || ye;
2379
+ we(r), S(null), w(null);
2371
2380
  try {
2372
2381
  s && (n.log(`Deleting asset ${s} for field ${r}...`), await e.portalDeleteFile(i, s), n.log(`Asset ${s} deleted successfully.`), o?.("portal_file_deleted", {
2373
2382
  assetId: s,
2374
2383
  fieldId: r
2375
- })), he((e) => ({
2384
+ })), me((e) => ({
2376
2385
  ...e,
2377
2386
  [r]: ""
2378
- })), R((e) => {
2387
+ })), z((e) => {
2379
2388
  let t = { ...e };
2380
2389
  return delete t[r], t;
2381
- }), be === s && z(null), w("File removed successfully.");
2390
+ }), ye === s && B(null), w("File removed successfully.");
2382
2391
  } catch (e) {
2383
2392
  n.error("Failed to delete file", e);
2384
2393
  let t = e.message || "Failed to delete file. Please try again.";
@@ -2388,10 +2397,10 @@ var ft = /* @__PURE__ */ new Set([
2388
2397
  error: e
2389
2398
  });
2390
2399
  } finally {
2391
- B(null);
2400
+ we(null);
2392
2401
  }
2393
2402
  }, ot = (e, t) => {
2394
- t || ge((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
2403
+ t || he((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
2395
2404
  }, st = async (r) => {
2396
2405
  r.preventDefault();
2397
2406
  let i = t.getToken();
@@ -2401,14 +2410,14 @@ var ft = /* @__PURE__ */ new Set([
2401
2410
  }
2402
2411
  v(!0), S(null), w(null);
2403
2412
  try {
2404
- let t = F?.editable_fields || [], n = { ...F?.registration?.custom_data || {} }, r = {};
2413
+ let t = I?.editable_fields || [], n = { ...I?.registration?.custom_data || {} }, r = {};
2405
2414
  t.forEach((e) => {
2406
- let t = I[e.id], i = e.label || e.name || e.id, a = dt(e.label, e.id), o = ut(e.id, e.label);
2415
+ let t = L[e.id], i = e.label || e.name || e.id, a = dt(e.label, e.id), o = ut(e.id, e.label);
2407
2416
  if (e.type === "file") {
2408
2417
  let s = typeof t == "string" ? t : t?.serve_url || t?.url || "";
2409
2418
  delete n[i], delete n[a], n[o] = s, r[o] = s, o !== e.id && (r[e.id] = s);
2410
2419
  } 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));
2411
- }), r.custom_data = n, r.addons = L;
2420
+ }), r.custom_data = n, r.addons = R;
2412
2421
  let a = await e.portalUpdateProfile(i, r);
2413
2422
  o?.("attendee_profile_updated", {
2414
2423
  payload: r,
@@ -2416,7 +2425,7 @@ var ft = /* @__PURE__ */ new Set([
2416
2425
  });
2417
2426
  let s = a?.data?.addon_checkout?.payment_url || a?.addon_checkout?.payment_url || a?.data?.payment_url || a?.payment_url;
2418
2427
  if (s && typeof s == "string" && s.trim() !== "") {
2419
- Te(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 Je(i);
2428
+ W(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 Je(i);
2420
2429
  return;
2421
2430
  }
2422
2431
  w("Profile updated successfully!"), await Je(i);
@@ -2432,12 +2441,12 @@ var ft = /* @__PURE__ */ new Set([
2432
2441
  v(!1);
2433
2442
  }
2434
2443
  }, ct = () => {
2435
- let e = F?.review_submission;
2444
+ let e = I?.review_submission;
2436
2445
  if (!e) return;
2437
2446
  let t = e.custom_data || {}, n = {}, r = {};
2438
2447
  (e.editable_fields || []).forEach((i) => {
2439
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[ut(i.id, i.label)] ?? "", i.type === "file" && (r[i.id] = i.current_file?.text || "");
2440
- }), X(n), Re(r), Le({}), q(!0);
2449
+ }), X(n), ze(r), Le({}), J(!0);
2441
2450
  }, ft = (e) => {
2442
2451
  if (Ie[e.id]) return Ie[e.id];
2443
2452
  let t = e.current_file;
@@ -2448,7 +2457,7 @@ var ft = /* @__PURE__ */ new Set([
2448
2457
  S("Session expired. Please log in again.");
2449
2458
  return;
2450
2459
  }
2451
- let s = (F?.review_submission?.editable_fields || []).find((e) => e.id === r), l = s?.current_file?.id;
2460
+ let s = (I?.review_submission?.editable_fields || []).find((e) => e.id === r), l = s?.current_file?.id;
2452
2461
  Fe(r), S(null), w(null);
2453
2462
  try {
2454
2463
  if (l) try {
@@ -2483,12 +2492,12 @@ var ft = /* @__PURE__ */ new Set([
2483
2492
  S("Session expired. Please log in again.");
2484
2493
  return;
2485
2494
  }
2486
- let a = (Z[r] || "").trim();
2495
+ let a = (Re[r] || "").trim();
2487
2496
  if (a) {
2488
2497
  Fe(r), S(null), w(null);
2489
2498
  try {
2490
2499
  let t = await e.portalUpdateSubmission(i, { [r]: { text: a } }), n = t?.data || t;
2491
- me((e) => ({
2500
+ pe((e) => ({
2492
2501
  ...e,
2493
2502
  review_submission: n
2494
2503
  }));
@@ -2519,10 +2528,10 @@ var ft = /* @__PURE__ */ new Set([
2519
2528
  Me(!0), S(null), w(null);
2520
2529
  try {
2521
2530
  let t = await e.portalUpdateSubmission(i, Y), n = t?.data || t;
2522
- me((e) => ({
2531
+ pe((e) => ({
2523
2532
  ...e,
2524
2533
  review_submission: n
2525
- })), q(!1), w("Your submission was updated successfully!"), o?.("attendee_submission_updated", {
2534
+ })), J(!1), w("Your submission was updated successfully!"), o?.("attendee_submission_updated", {
2526
2535
  payload: Y,
2527
2536
  response: t
2528
2537
  });
@@ -2547,7 +2556,7 @@ var ft = /* @__PURE__ */ new Set([
2547
2556
  [_t(e)]: t
2548
2557
  }
2549
2558
  }), bt = (e) => {
2550
- Be(e.id), S(null), We({
2559
+ Q(e.id), S(null), We({
2551
2560
  id: e.id,
2552
2561
  salutation: e.salutation || "",
2553
2562
  name: e.name || "",
@@ -2564,7 +2573,7 @@ var ft = /* @__PURE__ */ new Set([
2564
2573
  Ke(!0), S(null), w(null);
2565
2574
  try {
2566
2575
  let t = await e.portalUpdateProfile(r, { accompanying: [He] });
2567
- Be(null), w("Accompanying person updated."), o?.("attendee_accompanying_updated", {
2576
+ Q(null), w("Accompanying person updated."), o?.("attendee_accompanying_updated", {
2568
2577
  payload: He,
2569
2578
  response: t
2570
2579
  }), await Je(r);
@@ -2624,7 +2633,7 @@ var ft = /* @__PURE__ */ new Set([
2624
2633
  size: 13,
2625
2634
  className: "shrink-0",
2626
2635
  style: { color: r }
2627
- }) : t.includes("designat") || t.includes("role") || t.includes("position") || t.includes("profession") ? /* @__PURE__ */ p(ae, {
2636
+ }) : t.includes("designat") || t.includes("role") || t.includes("position") || t.includes("profession") ? /* @__PURE__ */ p(ie, {
2628
2637
  size: 13,
2629
2638
  className: "shrink-0",
2630
2639
  style: { color: r }
@@ -2632,7 +2641,7 @@ var ft = /* @__PURE__ */ new Set([
2632
2641
  size: 13,
2633
2642
  className: "shrink-0",
2634
2643
  style: { color: r }
2635
- }) : t.includes("organi") || t.includes("institute") || t.includes("hospital") || t.includes("company") || t.includes("college") ? /* @__PURE__ */ p(oe, {
2644
+ }) : t.includes("organi") || t.includes("institute") || t.includes("hospital") || t.includes("company") || t.includes("college") ? /* @__PURE__ */ p(ae, {
2636
2645
  size: 13,
2637
2646
  className: "shrink-0",
2638
2647
  style: { color: r }
@@ -2640,14 +2649,14 @@ var ft = /* @__PURE__ */ new Set([
2640
2649
  size: 13,
2641
2650
  className: "shrink-0",
2642
2651
  style: { color: r }
2643
- }) : p(n === "file" ? we : Se, {
2652
+ }) : p(n === "file" ? Ce : xe, {
2644
2653
  size: 13,
2645
2654
  className: "shrink-0",
2646
2655
  style: { color: r }
2647
2656
  });
2648
2657
  }, wt = (e, t = "w-full", n = []) => {
2649
2658
  if (!e) return null;
2650
- let r = n.includes(e.id) || n.includes(ut(e.id, e.label)), a = I[e.id] ?? "", o = `vx-profile-${e.id}`, s = `w-full h-11 px-3.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)]"}`;
2659
+ let r = n.includes(e.id) || n.includes(ut(e.id, e.label)), a = L[e.id] ?? "", o = `vx-profile-${e.id}`, s = `w-full h-11 px-3.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)]"}`;
2651
2660
  return /* @__PURE__ */ m("div", {
2652
2661
  className: `${t} px-2 mb-4`,
2653
2662
  children: [/* @__PURE__ */ m("div", {
@@ -2669,7 +2678,7 @@ var ft = /* @__PURE__ */ new Set([
2669
2678
  ]
2670
2679
  }), r ? /* @__PURE__ */ m("span", {
2671
2680
  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"}`,
2672
- children: [/* @__PURE__ */ p(J, { size: 10 }), " Locked"]
2681
+ children: [/* @__PURE__ */ p(De, { size: 10 }), " Locked"]
2673
2682
  }) : null]
2674
2683
  }), e.type === "select" ? /* @__PURE__ */ m("div", {
2675
2684
  className: "relative",
@@ -2678,8 +2687,8 @@ var ft = /* @__PURE__ */ new Set([
2678
2687
  id: o,
2679
2688
  disabled: r,
2680
2689
  value: a,
2681
- onChange: (t) => he({
2682
- ...I,
2690
+ onChange: (t) => me({
2691
+ ...L,
2683
2692
  [e.id]: t.target.value
2684
2693
  }),
2685
2694
  className: `${s} pr-9 appearance-none cursor-pointer flex items-center`,
@@ -2698,7 +2707,7 @@ var ft = /* @__PURE__ */ new Set([
2698
2707
  }, e))]
2699
2708
  }), /* @__PURE__ */ p("div", {
2700
2709
  className: `absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none ${i ? "text-zinc-400" : "text-slate-400"}`,
2701
- children: /* @__PURE__ */ p(ue, { size: 15 })
2710
+ children: /* @__PURE__ */ p(le, { size: 15 })
2702
2711
  })]
2703
2712
  }) : e.type === "file" ? Tt(e, r, a) : /* @__PURE__ */ p("input", {
2704
2713
  part: "input",
@@ -2707,15 +2716,15 @@ var ft = /* @__PURE__ */ new Set([
2707
2716
  disabled: r,
2708
2717
  value: a,
2709
2718
  placeholder: e.placeholder || `Enter ${e.label.toLowerCase()}`,
2710
- onChange: (t) => he({
2711
- ...I,
2719
+ onChange: (t) => me({
2720
+ ...L,
2712
2721
  [e.id]: t.target.value
2713
2722
  }),
2714
2723
  className: s
2715
2724
  })]
2716
2725
  }, e.id);
2717
2726
  }, Tt = (e, t, n) => {
2718
- let a = y === e.id, o = e.label || e.name || e.id, s = F?.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);
2727
+ 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);
2719
2728
  return /* @__PURE__ */ p("div", {
2720
2729
  className: "space-y-2",
2721
2730
  children: /* @__PURE__ */ m("div", {
@@ -2733,7 +2742,7 @@ var ft = /* @__PURE__ */ new Set([
2733
2742
  borderColor: i ? "rgba(255,255,255,0.12)" : `color-mix(in srgb, ${r} 20%, white)`,
2734
2743
  color: r
2735
2744
  },
2736
- children: /* @__PURE__ */ p(we, { size: 16 })
2745
+ children: /* @__PURE__ */ p(Ce, { size: 16 })
2737
2746
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
2738
2747
  className: `text-xs font-bold ${i ? "text-zinc-200" : "text-gray-900"}`,
2739
2748
  children: o
@@ -2751,17 +2760,17 @@ var ft = /* @__PURE__ */ new Set([
2751
2760
  style: { backgroundColor: r },
2752
2761
  title: "Open file in new tab",
2753
2762
  children: [
2754
- /* @__PURE__ */ p(Se, { size: 13 }),
2763
+ /* @__PURE__ */ p(xe, { size: 13 }),
2755
2764
  /* @__PURE__ */ p("span", { children: "View" }),
2756
- /* @__PURE__ */ p(xe, { size: 11 })
2765
+ /* @__PURE__ */ p(be, { size: 11 })
2757
2766
  ]
2758
2767
  }), !t && /* @__PURE__ */ m("button", {
2759
2768
  type: "button",
2760
- disabled: Ce === e.id || a,
2769
+ disabled: Se === e.id || a,
2761
2770
  onClick: () => it(e.id),
2762
2771
  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"}`,
2763
2772
  title: "Remove file",
2764
- children: [/* @__PURE__ */ p(Ze, { size: 13 }), /* @__PURE__ */ p("span", { children: Ce === e.id ? "Deleting..." : "Delete" })]
2773
+ children: [/* @__PURE__ */ p(Ze, { size: 13 }), /* @__PURE__ */ p("span", { children: Se === e.id ? "Deleting..." : "Delete" })]
2765
2774
  })] })
2766
2775
  })]
2767
2776
  }),
@@ -2773,7 +2782,7 @@ var ft = /* @__PURE__ */ new Set([
2773
2782
  })
2774
2783
  }) : n ? /* @__PURE__ */ m("div", {
2775
2784
  className: `mt-2 pt-2 border-t text-2xs truncate flex items-center gap-1.5 ${i ? "border-zinc-800 text-zinc-300" : "border-gray-200 text-gray-700 font-medium"}`,
2776
- children: [/* @__PURE__ */ p(ce, {
2785
+ children: [/* @__PURE__ */ p(se, {
2777
2786
  size: 12,
2778
2787
  className: "text-emerald-500 shrink-0"
2779
2788
  }), /* @__PURE__ */ m("span", {
@@ -2808,7 +2817,7 @@ var ft = /* @__PURE__ */ new Set([
2808
2817
  })
2809
2818
  });
2810
2819
  };
2811
- if (l === "profile" && !F) {
2820
+ if (l === "profile" && !I) {
2812
2821
  let e = "vx-skeleton rounded-full", t = `rounded-3xl border p-5 sm:p-6 ${i ? "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)]"}`;
2813
2822
  return /* @__PURE__ */ m("div", {
2814
2823
  role: "status",
@@ -2862,7 +2871,7 @@ var ft = /* @__PURE__ */ new Set([
2862
2871
  });
2863
2872
  }
2864
2873
  if (l === "profile") {
2865
- let e = F?.registration || {}, t = F?.editable_fields || [], n = F?.locked_fields || [], o = Array.isArray(F?.payment) ? F.payment : F?.payment ? [F.payment] : [], s = o.filter((e) => e.state !== "not_required"), c = o[0], l = F?.addons?.items || [], u = F?.badge || null, d = F?.accompanying || [], h = F?.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 = F?.review_submission || null, b = te || "Attendee", S = b.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase()).join("") || "A", w = `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)]"}`, T = i ? "text-zinc-400" : "text-slate-500", E = `text-base font-semibold tracking-tight ${i ? "text-white" : "text-slate-900"}`, D = [
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", S = b.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase()).join("") || "A", w = `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)]"}`, T = i ? "text-zinc-400" : "text-slate-500", E = `text-base font-semibold tracking-tight ${i ? "text-white" : "text-slate-900"}`, D = [
2866
2875
  {
2867
2876
  label: "Registration no.",
2868
2877
  value: e.registration_number || "N/A",
@@ -2963,9 +2972,9 @@ var ft = /* @__PURE__ */ new Set([
2963
2972
  }), /* @__PURE__ */ p("p", {
2964
2973
  className: `text-[13px] mt-0.5 ${T}`,
2965
2974
  children: "Keep your information up to date."
2966
- })] }), Ee && /* @__PURE__ */ m("span", {
2975
+ })] }), G && /* @__PURE__ */ m("span", {
2967
2976
  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"}`,
2968
- children: [/* @__PURE__ */ p(ce, { size: 11 }), " Draft restored"]
2977
+ children: [/* @__PURE__ */ p(se, { size: 11 }), " Draft restored"]
2969
2978
  })]
2970
2979
  }), /* @__PURE__ */ p("div", {
2971
2980
  className: "flex flex-wrap -mx-2 -mb-4",
@@ -2998,7 +3007,7 @@ var ft = /* @__PURE__ */ new Set([
2998
3007
  }), /* @__PURE__ */ p("div", {
2999
3008
  className: "space-y-2",
3000
3009
  children: l.map((e) => {
3001
- let t = !!e.purchased, n = L.includes(e.name);
3010
+ let t = !!e.purchased, n = R.includes(e.name);
3002
3011
  return /* @__PURE__ */ m("label", {
3003
3012
  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"}`,
3004
3013
  style: n && !t ? {
@@ -3031,7 +3040,7 @@ var ft = /* @__PURE__ */ new Set([
3031
3040
  }),
3032
3041
  t && /* @__PURE__ */ m("span", {
3033
3042
  className: `px-2.5 py-1 rounded-full text-[11px] font-semibold flex items-center gap-1 shrink-0 ${i ? "bg-emerald-950/70 text-emerald-300" : "bg-emerald-50 text-emerald-700"}`,
3034
- children: [/* @__PURE__ */ p(ce, { size: 12 }), " Purchased"]
3043
+ children: [/* @__PURE__ */ p(se, { size: 12 }), " Purchased"]
3035
3044
  })
3036
3045
  ]
3037
3046
  }, e.name);
@@ -3066,7 +3075,7 @@ var ft = /* @__PURE__ */ new Set([
3066
3075
  fill: "currentColor",
3067
3076
  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"
3068
3077
  })]
3069
- }), /* @__PURE__ */ p("span", { children: "Saving..." })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(ze, { size: 16 }), /* @__PURE__ */ p("span", { children: "Save changes" })] })
3078
+ }), /* @__PURE__ */ p("span", { children: "Saving..." })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(Z, { size: 16 }), /* @__PURE__ */ p("span", { children: "Save changes" })] })
3070
3079
  })
3071
3080
  })
3072
3081
  ]
@@ -3108,7 +3117,7 @@ var ft = /* @__PURE__ */ new Set([
3108
3117
  target: "_blank",
3109
3118
  rel: "noopener noreferrer",
3110
3119
  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"}`,
3111
- children: [/* @__PURE__ */ p(xe, { size: 13 }), /* @__PURE__ */ p("span", { children: "View badge" })]
3120
+ children: [/* @__PURE__ */ p(be, { size: 13 }), /* @__PURE__ */ p("span", { children: "View badge" })]
3112
3121
  }), /* @__PURE__ */ m("a", {
3113
3122
  href: u,
3114
3123
  download: !0,
@@ -3116,7 +3125,7 @@ var ft = /* @__PURE__ */ new Set([
3116
3125
  rel: "noopener noreferrer",
3117
3126
  className: "inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold text-white",
3118
3127
  style: { backgroundColor: r },
3119
- children: [/* @__PURE__ */ p(ye, { size: 13 }), /* @__PURE__ */ p("span", { children: "Download badge" })]
3128
+ children: [/* @__PURE__ */ p(ve, { size: 13 }), /* @__PURE__ */ p("span", { children: "Download badge" })]
3120
3129
  })]
3121
3130
  })
3122
3131
  ]
@@ -3163,7 +3172,7 @@ var ft = /* @__PURE__ */ new Set([
3163
3172
  children: [/* @__PURE__ */ p("span", {
3164
3173
  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"}`,
3165
3174
  children: e.status
3166
- }), h.length > 0 && Q !== e.id && /* @__PURE__ */ m("button", {
3175
+ }), h.length > 0 && Be !== e.id && /* @__PURE__ */ m("button", {
3167
3176
  type: "button",
3168
3177
  onClick: () => bt(e),
3169
3178
  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"}`,
@@ -3171,7 +3180,7 @@ var ft = /* @__PURE__ */ new Set([
3171
3180
  })]
3172
3181
  })]
3173
3182
  }),
3174
- Q === e.id && /* @__PURE__ */ m("div", {
3183
+ Be === e.id && /* @__PURE__ */ m("div", {
3175
3184
  className: "mt-4 space-y-3",
3176
3185
  children: [h.map((t) => {
3177
3186
  let n = e.file_answers?.[_t(t)];
@@ -3230,11 +3239,11 @@ var ft = /* @__PURE__ */ new Set([
3230
3239
  onClick: xt,
3231
3240
  className: "inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold text-white disabled:opacity-60",
3232
3241
  style: { backgroundColor: r },
3233
- children: [/* @__PURE__ */ p(ce, { size: 13 }), /* @__PURE__ */ p("span", { children: Ge ? "Saving..." : "Save changes" })]
3242
+ children: [/* @__PURE__ */ p(se, { size: 13 }), /* @__PURE__ */ p("span", { children: Ge ? "Saving..." : "Save changes" })]
3234
3243
  }), /* @__PURE__ */ p("button", {
3235
3244
  type: "button",
3236
3245
  disabled: Ge,
3237
- onClick: () => Be(null),
3246
+ onClick: () => Q(null),
3238
3247
  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"}`,
3239
3248
  children: "Cancel"
3240
3249
  })]
@@ -3254,7 +3263,7 @@ var ft = /* @__PURE__ */ new Set([
3254
3263
  target: "_blank",
3255
3264
  rel: "noopener noreferrer",
3256
3265
  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"}`,
3257
- children: [/* @__PURE__ */ p(xe, { size: 13 }), /* @__PURE__ */ p("span", { children: "View badge" })]
3266
+ children: [/* @__PURE__ */ p(be, { size: 13 }), /* @__PURE__ */ p("span", { children: "View badge" })]
3258
3267
  }), /* @__PURE__ */ m("a", {
3259
3268
  href: e.badge,
3260
3269
  download: !0,
@@ -3262,7 +3271,7 @@ var ft = /* @__PURE__ */ new Set([
3262
3271
  rel: "noopener noreferrer",
3263
3272
  className: "inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold text-white",
3264
3273
  style: { backgroundColor: r },
3265
- children: [/* @__PURE__ */ p(ye, { size: 13 }), /* @__PURE__ */ p("span", { children: "Download badge" })]
3274
+ children: [/* @__PURE__ */ p(ve, { size: 13 }), /* @__PURE__ */ p("span", { children: "Download badge" })]
3266
3275
  })]
3267
3276
  })] })
3268
3277
  ]
@@ -3317,7 +3326,7 @@ var ft = /* @__PURE__ */ new Set([
3317
3326
  rel: "noopener noreferrer",
3318
3327
  className: "inline-flex items-center gap-1 text-[12.5px] font-semibold hover:underline underline-offset-4 shrink-0",
3319
3328
  style: { color: r },
3320
- children: [/* @__PURE__ */ p("span", { children: "Receipt" }), /* @__PURE__ */ p(xe, { size: 11 })]
3329
+ children: [/* @__PURE__ */ p("span", { children: "Receipt" }), /* @__PURE__ */ p(be, { size: 11 })]
3321
3330
  })
3322
3331
  ]
3323
3332
  }, e.order_number || t);
@@ -3337,7 +3346,7 @@ var ft = /* @__PURE__ */ new Set([
3337
3346
  backgroundColor: `color-mix(in srgb, ${r} 12%, transparent)`,
3338
3347
  color: r
3339
3348
  },
3340
- children: /* @__PURE__ */ p(Se, { size: 17 })
3349
+ children: /* @__PURE__ */ p(xe, { size: 17 })
3341
3350
  }),
3342
3351
  /* @__PURE__ */ m("div", {
3343
3352
  className: "flex-1 min-w-0",
@@ -3414,16 +3423,16 @@ var ft = /* @__PURE__ */ new Set([
3414
3423
  ] }) : /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("textarea", {
3415
3424
  rows: 4,
3416
3425
  disabled: Pe === e.id,
3417
- value: Z[e.id] ?? "",
3426
+ value: Re[e.id] ?? "",
3418
3427
  placeholder: "Enter your answer...",
3419
- onChange: (t) => Re({
3420
- ...Z,
3428
+ onChange: (t) => ze({
3429
+ ...Re,
3421
3430
  [e.id]: t.target.value
3422
3431
  }),
3423
3432
  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"}`
3424
3433
  }), /* @__PURE__ */ p("button", {
3425
3434
  type: "button",
3426
- disabled: Pe === e.id || !(Z[e.id] || "").trim(),
3435
+ disabled: Pe === e.id || !(Re[e.id] || "").trim(),
3427
3436
  onClick: () => ht(e.id),
3428
3437
  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",
3429
3438
  style: { backgroundColor: r },
@@ -3484,7 +3493,7 @@ var ft = /* @__PURE__ */ new Set([
3484
3493
  }), /* @__PURE__ */ p("button", {
3485
3494
  type: "button",
3486
3495
  disabled: Ae,
3487
- onClick: () => q(!1),
3496
+ onClick: () => J(!1),
3488
3497
  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"}`,
3489
3498
  children: "Cancel"
3490
3499
  })]
@@ -3512,7 +3521,7 @@ var ft = /* @__PURE__ */ new Set([
3512
3521
  },
3513
3522
  children: [/* @__PURE__ */ m("div", {
3514
3523
  className: `flex items-center gap-2.5 ${i ? "text-zinc-200" : "text-slate-700"}`,
3515
- children: [/* @__PURE__ */ p(ve, {
3524
+ children: [/* @__PURE__ */ p(_e, {
3516
3525
  size: 17,
3517
3526
  className: "shrink-0",
3518
3527
  style: { color: r }
@@ -3523,13 +3532,13 @@ var ft = /* @__PURE__ */ new Set([
3523
3532
  rel: "noopener noreferrer",
3524
3533
  className: "inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold text-white shrink-0",
3525
3534
  style: { backgroundColor: r },
3526
- children: [/* @__PURE__ */ p("span", { children: "Complete payment" }), /* @__PURE__ */ p(xe, { size: 12 })]
3535
+ children: [/* @__PURE__ */ p("span", { children: "Complete payment" }), /* @__PURE__ */ p(be, { size: 12 })]
3527
3536
  })]
3528
3537
  }),
3529
3538
  x && /* @__PURE__ */ m("div", {
3530
3539
  role: "alert",
3531
3540
  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"}`,
3532
- children: [/* @__PURE__ */ p(fe, {
3541
+ children: [/* @__PURE__ */ p(de, {
3533
3542
  size: 17,
3534
3543
  className: "shrink-0 mt-0.5"
3535
3544
  }), /* @__PURE__ */ p("span", { children: x })]
@@ -3537,7 +3546,7 @@ var ft = /* @__PURE__ */ new Set([
3537
3546
  C && /* @__PURE__ */ m("div", {
3538
3547
  role: "status",
3539
3548
  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"}`,
3540
- children: [/* @__PURE__ */ p(P, {
3549
+ children: [/* @__PURE__ */ p(F, {
3541
3550
  size: 17,
3542
3551
  className: "shrink-0 mt-0.5"
3543
3552
  }), /* @__PURE__ */ p("span", { children: C })]
@@ -3593,14 +3602,14 @@ var ft = /* @__PURE__ */ new Set([
3593
3602
  })] }), At = () => /* @__PURE__ */ m(f, { children: [x && /* @__PURE__ */ m("div", {
3594
3603
  role: "alert",
3595
3604
  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"}`,
3596
- children: [/* @__PURE__ */ p(fe, {
3605
+ children: [/* @__PURE__ */ p(de, {
3597
3606
  size: 17,
3598
3607
  className: "shrink-0 mt-0.5"
3599
3608
  }), /* @__PURE__ */ p("span", { children: x })]
3600
3609
  }), C && /* @__PURE__ */ m("div", {
3601
3610
  role: "status",
3602
3611
  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"}`,
3603
- children: [/* @__PURE__ */ p(P, {
3612
+ children: [/* @__PURE__ */ p(F, {
3604
3613
  size: 17,
3605
3614
  className: "shrink-0 mt-0.5"
3606
3615
  }), /* @__PURE__ */ p("span", { children: C })]
@@ -3613,7 +3622,7 @@ var ft = /* @__PURE__ */ new Set([
3613
3622
  boxShadow: `0 10px 24px -12px color-mix(in srgb, ${r} 70%, transparent)`
3614
3623
  },
3615
3624
  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",
3616
- children: e ? /* @__PURE__ */ m(f, { children: [Dt, /* @__PURE__ */ p("span", { children: n })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", { children: t }), /* @__PURE__ */ p(ie, {
3625
+ children: e ? /* @__PURE__ */ m(f, { children: [Dt, /* @__PURE__ */ p("span", { children: n })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", { children: t }), /* @__PURE__ */ p(re, {
3617
3626
  size: 16,
3618
3627
  className: "transition-transform group-hover:translate-x-0.5"
3619
3628
  })] })
@@ -3626,7 +3635,7 @@ var ft = /* @__PURE__ */ new Set([
3626
3635
  type: "button",
3627
3636
  onClick: o,
3628
3637
  className: `self-start inline-flex items-center gap-1.5 mb-4 text-sm font-semibold transition-colors cursor-pointer ${i ? "text-zinc-400 hover:text-white" : "text-slate-500 hover:text-slate-900"}`,
3629
- children: [/* @__PURE__ */ p(ne, { size: 16 }), /* @__PURE__ */ p("span", { children: "Back to login" })]
3638
+ children: [/* @__PURE__ */ p(te, { size: 16 }), /* @__PURE__ */ p("span", { children: "Back to login" })]
3630
3639
  }), /* @__PURE__ */ m("div", {
3631
3640
  part: "portal-card",
3632
3641
  className: `p-6 sm:p-7 rounded-3xl border space-y-5 ${i ? "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)]"}`,
@@ -3670,14 +3679,14 @@ var ft = /* @__PURE__ */ new Set([
3670
3679
  id: "vx-portal-code-identifier",
3671
3680
  label: "Registration number or email",
3672
3681
  icon: je,
3673
- value: k || T,
3682
+ value: A || T,
3674
3683
  onChange: (e) => {
3675
- A(e), E(e);
3684
+ j(e), E(e);
3676
3685
  },
3677
3686
  placeholder: "e.g. attendee@example.com or REG12345",
3678
3687
  autoComplete: "username"
3679
3688
  }),
3680
- jt(de, "Send verification code", "Sending code..."),
3689
+ jt(ue, "Send verification code", "Sending code..."),
3681
3690
  /* @__PURE__ */ m("p", {
3682
3691
  className: `text-center text-[13px] ${i ? "text-zinc-400" : "text-slate-500"}`,
3683
3692
  children: [
@@ -3695,7 +3704,7 @@ var ft = /* @__PURE__ */ new Set([
3695
3704
  ]
3696
3705
  })
3697
3706
  } : l === "reset" ? {
3698
- icon: G,
3707
+ icon: Ee,
3699
3708
  title: "Set your password",
3700
3709
  subtitle: "Enter the code from your email and choose a new password.",
3701
3710
  onBack: () => Ot("login"),
@@ -3707,9 +3716,9 @@ var ft = /* @__PURE__ */ new Set([
3707
3716
  id: "vx-portal-reset-identifier",
3708
3717
  label: "Registration number or email",
3709
3718
  icon: je,
3710
- value: k || T,
3719
+ value: A || T,
3711
3720
  onChange: (e) => {
3712
- A(e), E(e);
3721
+ j(e), E(e);
3713
3722
  },
3714
3723
  placeholder: "e.g. attendee@example.com or REG12345",
3715
3724
  autoComplete: "username"
@@ -3717,15 +3726,15 @@ var ft = /* @__PURE__ */ new Set([
3717
3726
  kt({
3718
3727
  id: "vx-portal-reset-code",
3719
3728
  label: "Verification code",
3720
- icon: De,
3721
- value: j,
3722
- onChange: re,
3729
+ icon: q,
3730
+ value: M,
3731
+ onChange: ne,
3723
3732
  placeholder: "Enter code from email",
3724
3733
  autoComplete: "one-time-code",
3725
3734
  aside: /* @__PURE__ */ p("button", {
3726
3735
  type: "button",
3727
3736
  onClick: () => {
3728
- A(k || T), Ot("request_code");
3737
+ j(A || T), Ot("request_code");
3729
3738
  },
3730
3739
  className: "text-xs font-semibold hover:underline underline-offset-4 cursor-pointer",
3731
3740
  style: { color: r },
@@ -3735,20 +3744,20 @@ var ft = /* @__PURE__ */ new Set([
3735
3744
  kt({
3736
3745
  id: "vx-portal-reset-password",
3737
3746
  label: "New password",
3738
- icon: J,
3747
+ icon: De,
3739
3748
  type: "password",
3740
- value: M,
3741
- onChange: N,
3749
+ value: N,
3750
+ onChange: P,
3742
3751
  placeholder: "Enter new password",
3743
3752
  autoComplete: "new-password"
3744
3753
  }),
3745
3754
  kt({
3746
3755
  id: "vx-portal-reset-confirm",
3747
3756
  label: "Confirm password",
3748
- icon: J,
3757
+ icon: De,
3749
3758
  type: "password",
3750
- value: se,
3751
- onChange: le,
3759
+ value: oe,
3760
+ onChange: ce,
3752
3761
  placeholder: "Re-enter new password",
3753
3762
  autoComplete: "new-password"
3754
3763
  }),
@@ -3775,16 +3784,16 @@ var ft = /* @__PURE__ */ new Set([
3775
3784
  kt({
3776
3785
  id: "vx-portal-login-password",
3777
3786
  label: "Password",
3778
- icon: J,
3787
+ icon: De,
3779
3788
  type: "password",
3780
3789
  value: D,
3781
- onChange: ee,
3790
+ onChange: O,
3782
3791
  placeholder: "Enter password",
3783
3792
  autoComplete: "current-password",
3784
3793
  aside: /* @__PURE__ */ p("button", {
3785
3794
  type: "button",
3786
3795
  onClick: () => {
3787
- A(T), Ot("reset");
3796
+ j(T), Ot("reset");
3788
3797
  },
3789
3798
  className: "text-xs font-semibold hover:underline underline-offset-4 cursor-pointer",
3790
3799
  style: { color: r },
@@ -3800,7 +3809,7 @@ var ft = /* @__PURE__ */ new Set([
3800
3809
  /* @__PURE__ */ p("button", {
3801
3810
  type: "button",
3802
3811
  onClick: () => {
3803
- A(T), Ot("request_code");
3812
+ j(T), Ot("request_code");
3804
3813
  },
3805
3814
  className: Nt,
3806
3815
  style: { color: r },
@@ -3812,7 +3821,7 @@ var ft = /* @__PURE__ */ new Set([
3812
3821
  /* @__PURE__ */ p("button", {
3813
3822
  type: "button",
3814
3823
  onClick: () => {
3815
- A(T), Ot("reset");
3824
+ j(T), Ot("reset");
3816
3825
  },
3817
3826
  className: Nt,
3818
3827
  style: { color: r },
@@ -3890,57 +3899,79 @@ var vt = (e) => {
3890
3899
  s(() => {
3891
3900
  t === "attendee" && i(!0);
3892
3901
  }, [t]);
3893
- 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, ee] = d(null), te = l(() => D && { fields: D.fields.filter((e) => e.id !== "registration_type") }, [D]), [O, k] = d(!0), [A, j] = d(""), [ne, re] = d(null), [M, ae] = d(!!o), [N, oe] = d(null), [se, le] = d(null), [ue, de] = d(o), [fe, pe] = d(!1), [P, F] = d(() => _t(e.position)), [I, L] = d(null), [_e, ve] = d(null), [R, ye] = d(!1), [be, z] = d(!1), Ce = u(null), we = u(null), B = u(!1);
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, ne] = d(null), [N, ie] = d(!!o), [P, ae] = d(null), [oe, ce] = d(null), [le, ue] = d(o), [de, fe] = d(null), [F, I] = d(!1), [L, R] = d(() => _t(e.position)), [ge, _e] = d(null), [z, ve] = d(null), [ye, B] = d(!1), [Se, Ce] = d(!1), we = u(null), V = u(null), H = u(!1);
3894
3903
  s(() => {
3895
- e.position && F(_t(e.position));
3904
+ e.position && R(_t(e.position));
3896
3905
  }, [e.position]);
3897
- let V = e.themeMode === "dark" || e.theme?.mode === "dark", H = e.theme?.primaryColor || "#2563eb", U = !!e.isAbstract, Te = e.headerBannerImage, Ee = e.backgroundImage, W = l(() => new g(e.debug), [e.debug]), G = l(() => new _(e.baseUrl, e.eventSlug, W, e.timeoutMs ?? 12e4), [
3906
+ let U = e.themeMode === "dark" || e.theme?.mode === "dark", W = e.theme?.primaryColor || "#2563eb", G = !!e.isAbstract, Te = e.headerBannerImage, Ee = e.backgroundImage, K = l(() => new g(e.debug), [e.debug]), q = l(() => new _(e.baseUrl, e.eventSlug, K, e.timeoutMs ?? 12e4), [
3898
3907
  e.baseUrl,
3899
3908
  e.eventSlug,
3900
- W,
3909
+ K,
3901
3910
  e.timeoutMs
3902
- ]), K = l(() => new v(e.eventSlug), [e.eventSlug]), De = u(e.displayMode), q = u(null), [J, Y] = d(null);
3911
+ ]), J = l(() => new v(e.eventSlug), [e.eventSlug]);
3912
+ s(() => {
3913
+ if (!o) return;
3914
+ let t = !1;
3915
+ return q.verifyPayment(o).then((n) => {
3916
+ if (t) return;
3917
+ let r = !!(n?.data?.confirmed ?? n?.confirmed);
3918
+ fe(r), e.onEvent?.("payment_verified", {
3919
+ registration_number: o,
3920
+ confirmed: r
3921
+ });
3922
+ }).catch((e) => {
3923
+ t || fe(!1), K.error("Payment verification failed", e);
3924
+ }), () => {
3925
+ t = !0;
3926
+ };
3927
+ }, [
3928
+ o,
3929
+ q,
3930
+ K,
3931
+ e
3932
+ ]);
3933
+ let De = u(e.displayMode), Y = u(null), [X, ke] = d(null);
3903
3934
  s(() => {
3904
- K.getXrefId();
3905
- }, [K]), s(() => {
3935
+ J.getXrefId();
3936
+ }, [J]), s(() => {
3906
3937
  if (!c) return;
3907
- let t = K.getXrefId();
3908
- t && (U ? G.getReviewDraft(t) : G.getDraft(t)).then((t) => {
3938
+ let t = J.getXrefId();
3939
+ t && (G ? q.getReviewDraft(t) : q.getDraft(t)).then((t) => {
3909
3940
  let n = t?.data || t;
3910
- n && n.registration_type && (Y(n), e.onEvent?.("draft_loaded", n));
3941
+ n && n.registration_type && (ke(n), e.onEvent?.("draft_loaded", n));
3911
3942
  }).catch((e) => {
3912
- W.log("No draft found for this session", e);
3943
+ K.log("No draft found for this session", e);
3913
3944
  });
3914
3945
  }, [
3915
3946
  c,
3916
- G,
3947
+ q,
3948
+ J,
3917
3949
  K,
3918
- W,
3919
- U
3950
+ G
3920
3951
  ]);
3921
- let X = l(() => {
3922
- if (!J || !T || String(J.registration_type) !== String(T.id)) return {};
3923
- let e = { ...J.custom_data || {} };
3924
- if (Array.isArray(J.accompanying) && (e.accompanying = J.accompanying), J.salutation && (e.salutation = J.salutation, e.title = J.salutation), J.name) {
3925
- e.name = J.name, e.full_name = J.name, e.fullName = J.name;
3926
- let t = J.name.trim().split(/\s+/);
3952
+ let Ae = l(() => {
3953
+ if (!X || !T || String(X.registration_type) !== String(T.id)) return {};
3954
+ let e = { ...X.custom_data || {} };
3955
+ if (Array.isArray(X.accompanying) && (e.accompanying = X.accompanying), X.salutation && (e.salutation = X.salutation, e.title = X.salutation), X.name) {
3956
+ e.name = X.name, e.full_name = X.name, e.fullName = X.name;
3957
+ let t = X.name.trim().split(/\s+/);
3927
3958
  t.length > 0 && !e.first_name && (e.first_name = t[0]), t.length > 1 && !e.last_name && (e.last_name = t.slice(1).join(" "));
3928
3959
  }
3929
- return J.email && (e.email = J.email), J.phone && (e.phone = J.phone, e.mobile = J.phone, e.phoneNumber = J.phone), ((U ? D?.fields : T?.form_schema?.fields) || []).forEach((t) => {
3960
+ 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) => {
3930
3961
  let n = ut(t.id, t.label);
3931
3962
  e[t.id] === void 0 && e[n] !== void 0 && (e[t.id] = e[n]);
3932
3963
  }), e;
3933
3964
  }, [
3934
- J,
3965
+ X,
3935
3966
  T,
3936
- U,
3967
+ G,
3937
3968
  D
3938
3969
  ]);
3939
3970
  s(() => () => {
3940
- q.current && clearTimeout(q.current);
3971
+ Y.current && clearTimeout(Y.current);
3941
3972
  }, []);
3942
- let ke = a((t) => {
3943
- q.current && clearTimeout(q.current), q.current = setTimeout(async () => {
3973
+ let je = a((t) => {
3974
+ Y.current && clearTimeout(Y.current), Y.current = setTimeout(async () => {
3944
3975
  if (!Object.values(t).some((e) => e !== "" && e != null)) return;
3945
3976
  let n = /* @__PURE__ */ new Set([
3946
3977
  "salutation",
@@ -3957,7 +3988,7 @@ var vt = (e) => {
3957
3988
  "selected_items",
3958
3989
  "custom_data",
3959
3990
  "accompanying"
3960
- ]), r = (U ? D?.fields : T?.form_schema?.fields) || [], i = /* @__PURE__ */ new Map();
3991
+ ]), r = (G ? D?.fields : T?.form_schema?.fields) || [], i = /* @__PURE__ */ new Map();
3961
3992
  r.forEach((e) => i.set(e.id, e));
3962
3993
  let a = { ...t.custom_data || {} };
3963
3994
  for (let [e, r] of Object.entries(t)) if (!n.has(e)) {
@@ -3965,7 +3996,7 @@ var vt = (e) => {
3965
3996
  a[t] = r;
3966
3997
  }
3967
3998
  let o = {
3968
- xref_id: K.getXrefId(),
3999
+ xref_id: J.getXrefId(),
3969
4000
  salutation: t.salutation || t.title || "",
3970
4001
  name: t.name || t.fullName || t.full_name || [t.firstName, t.lastName].filter(Boolean).join(" ") || "",
3971
4002
  email: t.email || "",
@@ -3976,38 +4007,38 @@ var vt = (e) => {
3976
4007
  accompanying: t.accompanying || []
3977
4008
  };
3978
4009
  try {
3979
- U ? await G.trackReviewProgress(o) : await G.trackProgress(o), e.onEvent?.("draft_saved", o);
4010
+ G ? await q.trackReviewProgress(o) : await q.trackProgress(o), e.onEvent?.("draft_saved", o);
3980
4011
  } catch (e) {
3981
- W.error("Failed to save draft progress", e);
4012
+ K.error("Failed to save draft progress", e);
3982
4013
  }
3983
4014
  }, 600);
3984
4015
  }, [
3985
- K,
3986
- G,
4016
+ J,
4017
+ q,
3987
4018
  T,
3988
4019
  e,
3989
- W,
3990
- U,
4020
+ K,
4021
+ G,
3991
4022
  D
3992
4023
  ]);
3993
4024
  s(() => {
3994
4025
  De.current !== e.displayMode && (De.current = e.displayMode, h(e.displayMode !== "popup"), b(!1));
3995
4026
  }, [e.displayMode]), s(() => {
3996
- (U ? G.getReviewFormSchema() : G.getFormSchema()).then((t) => {
3997
- S(t?.data?.types || []), U && ee({ 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);
4027
+ (G ? q.getReviewFormSchema() : q.getFormSchema()).then((t) => {
4028
+ 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);
3998
4029
  }).catch((t) => {
3999
- W.error("Failed to load schema", t), S([]);
4030
+ K.error("Failed to load schema", t), S([]);
4000
4031
  let n = {
4001
4032
  type: "schema_load",
4002
4033
  message: t?.message || "Failed to load event schema",
4003
4034
  error: t
4004
4035
  };
4005
4036
  e.onEvent?.("error", n), e.onError?.(n);
4006
- }).finally(() => k(!1));
4007
- }, [G, U]);
4008
- let Ae = async (t) => {
4009
- q.current && clearTimeout(q.current), k(!0), oe(null);
4010
- let n = K.getXrefId(), r = /* @__PURE__ */ new Set([
4037
+ }).finally(() => A(!1));
4038
+ }, [q, G]);
4039
+ let Me = async (t) => {
4040
+ Y.current && clearTimeout(Y.current), A(!0), ae(null);
4041
+ let n = J.getXrefId(), r = /* @__PURE__ */ new Set([
4011
4042
  "salutation",
4012
4043
  "title",
4013
4044
  "name",
@@ -4024,7 +4055,7 @@ var vt = (e) => {
4024
4055
  "custom_data",
4025
4056
  "xref_id",
4026
4057
  "accompanying"
4027
- ]), i = (U ? D?.fields : T?.form_schema?.fields) || [], a = /* @__PURE__ */ new Map();
4058
+ ]), i = (G ? D?.fields : T?.form_schema?.fields) || [], a = /* @__PURE__ */ new Map();
4028
4059
  i.forEach((e) => a.set(e.id, e));
4029
4060
  let o = { ...t.custom_data || {} };
4030
4061
  for (let [e, n] of Object.entries(t)) if (!r.has(e)) {
@@ -4043,12 +4074,12 @@ var vt = (e) => {
4043
4074
  accompanying: t.accompanying || []
4044
4075
  };
4045
4076
  try {
4046
- let t = U ? await G.submitReview(s) : await G.submitRegistration(s);
4047
- K.updateXrefId(), Y(null);
4048
- let n = U ? null : t?.data?.payment_url || t?.payment_url || null;
4049
- le(n);
4077
+ let t = G ? await q.submitReview(s) : await q.submitRegistration(s);
4078
+ J.updateXrefId(), ke(null);
4079
+ let n = G ? null : t?.data?.payment_url || t?.payment_url || null;
4080
+ ce(n);
4050
4081
  let r = t?.data?.submission_number || t?.submission_number || t?.data?.registration_number || t?.registration_number || t?.data?.registration?.registration_number || t?.registration?.registration_number || null;
4051
- de(r ? String(r) : null), pe(!1), n && typeof n == "string" && n.trim() !== "" && window.open(n, "_blank", "noopener,noreferrer"), ae(!0);
4082
+ ue(r ? String(r) : null), I(!1), n && typeof n == "string" && n.trim() !== "" && window.open(n, "_blank", "noopener,noreferrer"), ie(!0);
4052
4083
  let i = {
4053
4084
  registrationType: T.id,
4054
4085
  payload: s,
@@ -4057,57 +4088,57 @@ var vt = (e) => {
4057
4088
  };
4058
4089
  e.onEvent?.("submitted", i), e.onRegister?.(i), e.onRegistered?.(i);
4059
4090
  } catch (t) {
4060
- W.error("Submission failed", t);
4061
- let n = t?.message || (U ? "Submission failed. Please check your information and try again." : "Registration failed. Please check your information and try again."), r = {
4091
+ K.error("Submission failed", t);
4092
+ let n = t?.message || (G ? "Submission failed. Please check your information and try again." : "Registration failed. Please check your information and try again."), r = {
4062
4093
  type: "submit_error",
4063
4094
  message: n,
4064
4095
  error: t
4065
4096
  };
4066
- e.onEvent?.("error", r), e.onError?.(r), oe(n);
4097
+ e.onEvent?.("error", r), e.onError?.(r), ae(n);
4067
4098
  } finally {
4068
- k(!1);
4099
+ A(!1);
4069
4100
  }
4070
- }, je = () => {
4071
- if (ae(!1), oe(null), le(null), de(null), pe(!1), E(null), Y(null), typeof window < "u" && new URLSearchParams(window.location.search).has("rn")) {
4101
+ }, Ne = () => {
4102
+ if (ie(!1), ae(null), ce(null), ue(null), I(!1), E(null), ke(null), typeof window < "u" && new URLSearchParams(window.location.search).has("rn")) {
4072
4103
  let e = new URL(window.location.href);
4073
4104
  e.searchParams.delete("rn"), window.history.replaceState(window.history.state, "", e.toString());
4074
4105
  }
4075
- }, Me = a((e) => {
4076
- if (e.stopPropagation(), e.button !== 0 || !Ce.current) return;
4077
- let t = Ce.current.getBoundingClientRect();
4078
- we.current = {
4106
+ }, Pe = a((e) => {
4107
+ if (e.stopPropagation(), e.button !== 0 || !we.current) return;
4108
+ let t = we.current.getBoundingClientRect();
4109
+ V.current = {
4079
4110
  startX: e.clientX,
4080
4111
  startY: e.clientY,
4081
4112
  rect: t,
4082
- corner: P
4083
- }, B.current = !1, ye(!0);
4084
- }, [P]);
4113
+ corner: L
4114
+ }, H.current = !1, B(!0);
4115
+ }, [L]);
4085
4116
  s(() => {
4086
- if (!R) return;
4117
+ if (!ye) return;
4087
4118
  let t = (e) => {
4088
- if (!we.current) return;
4089
- let t = e.clientX - we.current.startX, n = e.clientY - we.current.startY;
4090
- B.current || Math.hypot(t, n) > 5 && (B.current = !0), B.current && L({
4119
+ if (!V.current) return;
4120
+ 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 && _e({
4091
4122
  x: t,
4092
4123
  y: n
4093
4124
  });
4094
4125
  }, n = (t) => {
4095
- if (!we.current) {
4096
- ye(!1), L(null), B.current = !1;
4126
+ if (!V.current) {
4127
+ B(!1), _e(null), H.current = !1;
4097
4128
  return;
4098
4129
  }
4099
- let { rect: n, startX: r, startY: i } = we.current, a = t.clientX - r, o = t.clientY - i, s = B.current;
4100
- if (we.current = null, ye(!1), setTimeout(() => {
4101
- B.current = !1;
4130
+ 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, B(!1), setTimeout(() => {
4132
+ H.current = !1;
4102
4133
  }, 100), !s) {
4103
- L(null);
4134
+ _e(null);
4104
4135
  return;
4105
4136
  }
4106
4137
  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;
4107
4138
  ve({
4108
4139
  transform: `translate3d(${y}px, ${b}px, 0)`,
4109
4140
  transition: "none"
4110
- }), L(null), F(g), e.onEvent?.("position_changed", { position: g }), requestAnimationFrame(() => {
4141
+ }), _e(null), R(g), e.onEvent?.("position_changed", { position: g }), requestAnimationFrame(() => {
4111
4142
  requestAnimationFrame(() => {
4112
4143
  ve({
4113
4144
  transform: "translate3d(0, 0, 0)",
@@ -4121,62 +4152,62 @@ var vt = (e) => {
4121
4152
  return window.addEventListener("pointermove", t), window.addEventListener("pointerup", n), window.addEventListener("pointercancel", n), () => {
4122
4153
  window.removeEventListener("pointermove", t), window.removeEventListener("pointerup", n), window.removeEventListener("pointercancel", n);
4123
4154
  };
4124
- }, [R, e]);
4125
- let Ne = async () => {
4126
- if (ue) {
4155
+ }, [ye, e]);
4156
+ let Ie = async () => {
4157
+ if (le) {
4127
4158
  try {
4128
- await navigator.clipboard.writeText(ue);
4159
+ await navigator.clipboard.writeText(le);
4129
4160
  } catch {
4130
4161
  let e = document.createElement("textarea");
4131
- e.value = ue, document.body.appendChild(e), e.select(), document.execCommand("copy"), document.body.removeChild(e);
4162
+ e.value = le, document.body.appendChild(e), e.select(), document.execCommand("copy"), document.body.removeChild(e);
4132
4163
  }
4133
- pe(!0), setTimeout(() => pe(!1), 2e3);
4164
+ I(!0), setTimeout(() => I(!1), 2e3);
4134
4165
  }
4135
- }, Pe = () => ue ? /* @__PURE__ */ m("div", {
4166
+ }, Re = () => le ? /* @__PURE__ */ m("div", {
4136
4167
  className: "w-full max-w-xs mb-6",
4137
4168
  children: [/* @__PURE__ */ p("p", {
4138
- className: `text-2xs font-bold uppercase tracking-wider mb-1.5 ${V ? "text-zinc-400" : "text-gray-500"}`,
4139
- children: U ? "Submission Number" : "Registration Number"
4169
+ className: `text-2xs font-bold uppercase tracking-wider mb-1.5 ${U ? "text-zinc-400" : "text-gray-500"}`,
4170
+ children: G ? "Submission Number" : "Registration Number"
4140
4171
  }), /* @__PURE__ */ m("div", {
4141
4172
  part: "registration-number",
4142
- className: `flex items-center gap-2 pl-4 pr-1.5 py-1.5 rounded-xl border ${V ? "bg-zinc-900 border-zinc-700" : "bg-gray-50 border-gray-200"}`,
4173
+ className: `flex items-center gap-2 pl-4 pr-1.5 py-1.5 rounded-xl border ${U ? "bg-zinc-900 border-zinc-700" : "bg-gray-50 border-gray-200"}`,
4143
4174
  children: [/* @__PURE__ */ p("span", {
4144
4175
  className: "flex-1 text-left font-mono font-bold text-base select-all break-all",
4145
- children: ue
4176
+ children: le
4146
4177
  }), /* @__PURE__ */ m("button", {
4147
4178
  part: "copy-button",
4148
4179
  type: "button",
4149
- onClick: Ne,
4180
+ onClick: Ie,
4150
4181
  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",
4151
- style: { backgroundColor: H },
4182
+ style: { backgroundColor: W },
4152
4183
  title: "Copy registration number",
4153
- children: [p(fe ? ce : ge, { size: 13 }), /* @__PURE__ */ p("span", { children: fe ? "Copied" : "Copy" })]
4184
+ children: [p(F ? se : he, { size: 13 }), /* @__PURE__ */ p("span", { children: F ? "Copied" : "Copy" })]
4154
4185
  })]
4155
4186
  })]
4156
4187
  }) : null;
4157
4188
  if (!c && e.displayMode === "popup") {
4158
4189
  let e = {
4159
- ...vt(P),
4160
- ...I ? {
4161
- transform: `translate3d(${I.x}px, ${I.y}px, 0) scale(1.05)`,
4190
+ ...vt(L),
4191
+ ...ge ? {
4192
+ transform: `translate3d(${ge.x}px, ${ge.y}px, 0) scale(1.05)`,
4162
4193
  transition: "none",
4163
4194
  userSelect: "none"
4164
- } : _e ? {
4165
- transform: _e.transform,
4166
- transition: _e.transition
4195
+ } : z ? {
4196
+ transform: z.transform,
4197
+ transition: z.transition
4167
4198
  } : { transition: "all 0.3s cubic-bezier(0.16, 1, 0.3, 1)" }
4168
- }, t = be || R;
4199
+ }, t = Se || ye;
4169
4200
  return /* @__PURE__ */ m("div", {
4170
- ref: Ce,
4171
- onMouseEnter: () => z(!0),
4172
- onMouseLeave: () => z(!1),
4173
- className: `fixed ${yt(P)} z-50 select-none group`,
4201
+ ref: we,
4202
+ onMouseEnter: () => Ce(!0),
4203
+ onMouseLeave: () => Ce(!1),
4204
+ className: `fixed ${yt(L)} z-50 select-none group`,
4174
4205
  style: e,
4175
4206
  children: [/* @__PURE__ */ p("div", {
4176
- onPointerDown: Me,
4207
+ onPointerDown: Pe,
4177
4208
  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"}`,
4178
4209
  title: "Hold and drag to change position",
4179
- children: /* @__PURE__ */ p(Re, {
4210
+ children: /* @__PURE__ */ p(ze, {
4180
4211
  size: 13,
4181
4212
  className: "pointer-events-none text-white"
4182
4213
  })
@@ -4184,10 +4215,10 @@ var vt = (e) => {
4184
4215
  part: "launcher",
4185
4216
  type: "button",
4186
4217
  onClick: (e) => {
4187
- e.stopPropagation(), !R && h(!0);
4218
+ e.stopPropagation(), !ye && h(!0);
4188
4219
  },
4189
4220
  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",
4190
- style: { backgroundColor: H },
4221
+ style: { backgroundColor: W },
4191
4222
  title: "Click to open registration",
4192
4223
  children: /* @__PURE__ */ p("span", {
4193
4224
  className: "font-bold text-sm tracking-wide pointer-events-none",
@@ -4196,9 +4227,9 @@ var vt = (e) => {
4196
4227
  })]
4197
4228
  });
4198
4229
  }
4199
- let Ie = e.displayMode === "fullscreen" || e.displayMode === "popup" && y, Z = e.displayMode === "widget", Q = gt(Ee, V, Z), ze = `${V ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"} flex flex-col transition-all duration-300 ease-in-out `, Be = e.theme?.fontFamily, Ve = !Be || Be === "inherit" ? {} : { fontFamily: `var(--vx-font-family, ${Be})` };
4200
- Ve["--vx-accent"] = H, Ie ? ze += "fixed inset-0 z-[9999] rounded-none overflow-hidden " : e.displayMode === "popup" ? (ze += `fixed ${yt(P)} z-50 rounded-xl shadow-2xl border ${V ? "border-zinc-800" : "border-gray-200"} overflow-hidden `, Ve.width = e.width || "400px", Ve.height = e.height || "700px", Ve.maxHeight = "90vh", Ve.maxWidth = "calc(100vw - 32px)", Object.assign(Ve, vt(P))) : (ze += "relative w-full min-h-screen border-none shadow-none rounded-none ", Ve.width = "100%", Ve.minHeight = "100vh");
4201
- let He = U ? "Abstract Submission" : t === "registration" ? C || "Registration" : "Attendee Portal", Ue = A.trim().toLowerCase(), We = Ue ? x.filter((e) => [
4230
+ let Be = e.displayMode === "fullscreen" || e.displayMode === "popup" && y, Z = e.displayMode === "widget", Q = gt(Ee, U, Z), Ve = `${U ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"} flex flex-col transition-all duration-300 ease-in-out `, He = e.theme?.fontFamily, Ue = !He || He === "inherit" ? {} : { fontFamily: `var(--vx-font-family, ${He})` };
4231
+ Ue["--vx-accent"] = W, Be ? Ve += "fixed inset-0 z-[9999] rounded-none overflow-hidden " : e.displayMode === "popup" ? (Ve += `fixed ${yt(L)} z-50 rounded-xl shadow-2xl border ${U ? "border-zinc-800" : "border-gray-200"} overflow-hidden `, Ue.width = e.width || "400px", Ue.height = e.height || "700px", Ue.maxHeight = "90vh", Ue.maxWidth = "calc(100vw - 32px)", Object.assign(Ue, vt(L))) : (Ve += "relative w-full min-h-screen border-none shadow-none rounded-none ", Ue.width = "100%", Ue.minHeight = "100vh");
4232
+ let We = G ? "Abstract Submission" : t === "registration" ? C || "Registration" : "Attendee Portal", Ke = j.trim().toLowerCase(), Je = Ke ? x.filter((e) => [
4202
4233
  e.type,
4203
4234
  e.name,
4204
4235
  e.category,
@@ -4207,27 +4238,27 @@ var vt = (e) => {
4207
4238
  e.price,
4208
4239
  e.tax_info,
4209
4240
  ...Array.isArray(e.items) ? e.items.map((e) => e?.name).filter(Boolean) : []
4210
- ].filter((e) => e != null && e !== "").join(" ").toLowerCase().includes(Ue)) : x, Ke = `max-w-2xl mx-auto w-full rounded-3xl border overflow-hidden ${V ? "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)]"}`, Je = () => {
4241
+ ].filter((e) => e != null && e !== "").join(" ").toLowerCase().includes(Ke)) : x, Xe = `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)]"}`, Ze = () => {
4211
4242
  if (x.length === 0) return null;
4212
- let e = x.find((e) => String(e.id) === ne) || (x.length === 1 ? x[0] : null), t = e ? e.type || e.name || e.label : "";
4243
+ let e = x.find((e) => String(e.id) === te) || (x.length === 1 ? x[0] : null), t = e ? e.type || e.name || e.label : "";
4213
4244
  return /* @__PURE__ */ m("div", {
4214
4245
  part: "category-panel",
4215
- className: Ke,
4246
+ className: Xe,
4216
4247
  children: [
4217
4248
  /* @__PURE__ */ m("div", {
4218
4249
  className: "px-5 sm:px-7 pt-6 sm:pt-7 pb-5 flex items-center gap-3.5",
4219
4250
  children: [/* @__PURE__ */ p("div", {
4220
4251
  className: "w-11 h-11 rounded-xl flex items-center justify-center shrink-0",
4221
4252
  style: {
4222
- backgroundColor: `color-mix(in srgb, ${H} 12%, transparent)`,
4223
- color: H
4253
+ backgroundColor: `color-mix(in srgb, ${W} 12%, transparent)`,
4254
+ color: W
4224
4255
  },
4225
- children: /* @__PURE__ */ p(Se, { size: 20 })
4256
+ children: /* @__PURE__ */ p(xe, { size: 20 })
4226
4257
  }), /* @__PURE__ */ p("div", {
4227
4258
  className: "min-w-0",
4228
4259
  children: /* @__PURE__ */ p("h3", {
4229
4260
  part: "list-title",
4230
- className: `text-lg sm:text-xl font-semibold tracking-tight ${V ? "text-white" : "text-slate-900"}`,
4261
+ className: `text-lg sm:text-xl font-semibold tracking-tight ${U ? "text-white" : "text-slate-900"}`,
4231
4262
  style: $,
4232
4263
  children: "Choose a submission category"
4233
4264
  })
@@ -4236,7 +4267,7 @@ var vt = (e) => {
4236
4267
  /* @__PURE__ */ p("div", {
4237
4268
  role: "radiogroup",
4238
4269
  "aria-label": "Submission category",
4239
- className: `border-t divide-y ${V ? "border-zinc-800 divide-zinc-800" : "border-slate-100 divide-slate-100"}`,
4270
+ className: `border-t divide-y ${U ? "border-zinc-800 divide-zinc-800" : "border-slate-100 divide-slate-100"}`,
4240
4271
  children: x.map((t) => {
4241
4272
  let n = t.type || t.name || t.label, r = !!e && String(e.id) === String(t.id);
4242
4273
  return /* @__PURE__ */ m("button", {
@@ -4244,48 +4275,48 @@ var vt = (e) => {
4244
4275
  type: "button",
4245
4276
  role: "radio",
4246
4277
  "aria-checked": r,
4247
- onClick: () => re(String(t.id)),
4248
- 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 ? "" : V ? "hover:bg-zinc-800/60" : "hover:bg-slate-50"}`,
4249
- style: r ? { backgroundColor: `color-mix(in srgb, ${H} ${V ? 14 : 6}%, transparent)` } : void 0,
4278
+ onClick: () => ne(String(t.id)),
4279
+ 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
+ style: r ? { backgroundColor: `color-mix(in srgb, ${W} ${U ? 14 : 6}%, transparent)` } : void 0,
4250
4281
  children: [
4251
4282
  /* @__PURE__ */ p("span", {
4252
4283
  "aria-hidden": "true",
4253
- className: `w-5 h-5 rounded-full border-2 flex items-center justify-center shrink-0 transition-colors ${r ? "" : V ? "border-zinc-600" : "border-slate-300"}`,
4254
- style: r ? { borderColor: H } : void 0,
4284
+ className: `w-5 h-5 rounded-full border-2 flex items-center justify-center shrink-0 transition-colors ${r ? "" : U ? "border-zinc-600" : "border-slate-300"}`,
4285
+ style: r ? { borderColor: W } : void 0,
4255
4286
  children: r && /* @__PURE__ */ p("span", {
4256
4287
  className: "w-2.5 h-2.5 rounded-full",
4257
- style: { backgroundColor: H }
4288
+ style: { backgroundColor: W }
4258
4289
  })
4259
4290
  }),
4260
4291
  /* @__PURE__ */ m("span", {
4261
4292
  className: "flex-1 min-w-0",
4262
4293
  children: [/* @__PURE__ */ p("span", {
4263
- className: `block text-[15px] font-semibold leading-snug ${V ? "text-white" : "text-slate-900"}`,
4294
+ className: `block text-[15px] font-semibold leading-snug ${U ? "text-white" : "text-slate-900"}`,
4264
4295
  children: n
4265
4296
  }), t.description && /* @__PURE__ */ p("span", {
4266
- className: `block text-[13px] mt-0.5 line-clamp-1 ${V ? "text-zinc-400" : "text-slate-500"}`,
4297
+ className: `block text-[13px] mt-0.5 line-clamp-1 ${U ? "text-zinc-400" : "text-slate-500"}`,
4267
4298
  children: t.description
4268
4299
  })]
4269
4300
  }),
4270
4301
  t.category && /* @__PURE__ */ p("span", {
4271
- className: `hidden sm:inline-block text-[10px] font-semibold uppercase tracking-wider px-2.5 py-1 rounded-full shrink-0 ${V ? "bg-zinc-800 text-zinc-300" : "bg-slate-100 text-slate-600"}`,
4302
+ 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"}`,
4272
4303
  children: t.category
4273
4304
  }),
4274
- /* @__PURE__ */ p(ie, {
4305
+ /* @__PURE__ */ p(re, {
4275
4306
  size: 16,
4276
- className: `shrink-0 transition-all ${r ? "translate-x-0.5" : `${V ? "text-zinc-600" : "text-slate-300"} group-hover:translate-x-0.5`}`,
4277
- style: r ? { color: H } : void 0
4307
+ className: `shrink-0 transition-all ${r ? "translate-x-0.5" : `${U ? "text-zinc-600" : "text-slate-300"} group-hover:translate-x-0.5`}`,
4308
+ style: r ? { color: W } : void 0
4278
4309
  })
4279
4310
  ]
4280
4311
  }, t.id);
4281
4312
  })
4282
4313
  }),
4283
4314
  /* @__PURE__ */ m("div", {
4284
- className: `px-5 sm:px-7 py-5 border-t flex flex-col-reverse sm:flex-row sm:items-center sm:justify-between gap-3 ${V ? "border-zinc-800" : "border-slate-100"}`,
4315
+ className: `px-5 sm:px-7 py-5 border-t flex flex-col-reverse sm:flex-row sm:items-center sm:justify-between gap-3 ${U ? "border-zinc-800" : "border-slate-100"}`,
4285
4316
  children: [/* @__PURE__ */ p("p", {
4286
- className: `text-[13px] truncate ${V ? "text-zinc-400" : "text-slate-500"}`,
4317
+ className: `text-[13px] truncate ${U ? "text-zinc-400" : "text-slate-500"}`,
4287
4318
  children: e ? /* @__PURE__ */ m(f, { children: ["Selected: ", /* @__PURE__ */ p("span", {
4288
- className: `font-semibold ${V ? "text-zinc-200" : "text-slate-700"}`,
4319
+ className: `font-semibold ${U ? "text-zinc-200" : "text-slate-700"}`,
4289
4320
  children: t
4290
4321
  })] }) : "Select a category to continue"
4291
4322
  }), /* @__PURE__ */ m("button", {
@@ -4294,11 +4325,11 @@ var vt = (e) => {
4294
4325
  disabled: !e,
4295
4326
  onClick: () => e && E(e),
4296
4327
  style: {
4297
- background: `linear-gradient(135deg, ${H}, color-mix(in srgb, ${H} 80%, black))`,
4298
- boxShadow: e ? `0 10px 24px -12px color-mix(in srgb, ${H} 70%, transparent)` : void 0
4328
+ background: `linear-gradient(135deg, ${W}, color-mix(in srgb, ${W} 80%, black))`,
4329
+ boxShadow: e ? `0 10px 24px -12px color-mix(in srgb, ${W} 70%, transparent)` : void 0
4299
4330
  },
4300
4331
  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",
4301
- children: [/* @__PURE__ */ p("span", { children: "Continue to submission" }), /* @__PURE__ */ p(ie, {
4332
+ children: [/* @__PURE__ */ p("span", { children: "Continue to submission" }), /* @__PURE__ */ p(re, {
4302
4333
  size: 16,
4303
4334
  className: "transition-transform group-hover:translate-x-0.5"
4304
4335
  })]
@@ -4306,16 +4337,16 @@ var vt = (e) => {
4306
4337
  })
4307
4338
  ]
4308
4339
  });
4309
- }, Xe = (e) => /* @__PURE__ */ m("div", {
4340
+ }, Qe = (e) => /* @__PURE__ */ m("div", {
4310
4341
  part: "category-panel",
4311
- className: Ke,
4342
+ className: Xe,
4312
4343
  children: [
4313
4344
  /* @__PURE__ */ m("div", {
4314
4345
  className: "px-5 sm:px-7 pt-6 sm:pt-7 pb-5 flex items-center gap-3.5",
4315
4346
  children: [/* @__PURE__ */ p("div", { className: "vx-skeleton w-11 h-11 rounded-xl" }), /* @__PURE__ */ p("div", { className: `${e} h-4 w-56` })]
4316
4347
  }),
4317
4348
  /* @__PURE__ */ p("div", {
4318
- className: `border-t divide-y ${V ? "border-zinc-800 divide-zinc-800" : "border-slate-100 divide-slate-100"}`,
4349
+ className: `border-t divide-y ${U ? "border-zinc-800 divide-zinc-800" : "border-slate-100 divide-slate-100"}`,
4319
4350
  children: [
4320
4351
  0,
4321
4352
  1,
@@ -4338,18 +4369,18 @@ var vt = (e) => {
4338
4369
  }, t))
4339
4370
  }),
4340
4371
  /* @__PURE__ */ p("div", {
4341
- className: `px-5 sm:px-7 py-5 border-t flex justify-end ${V ? "border-zinc-800" : "border-slate-100"}`,
4372
+ className: `px-5 sm:px-7 py-5 border-t flex justify-end ${U ? "border-zinc-800" : "border-slate-100"}`,
4342
4373
  children: /* @__PURE__ */ p("div", { className: `${e} h-11 w-52` })
4343
4374
  })
4344
4375
  ]
4345
- }), Ze = () => {
4376
+ }), $e = () => {
4346
4377
  let e = "vx-skeleton rounded-full", t = Z ? 6 : 3;
4347
4378
  return /* @__PURE__ */ m("div", {
4348
4379
  part: "page",
4349
4380
  role: "status",
4350
4381
  "aria-live": "polite",
4351
4382
  "aria-busy": "true",
4352
- className: `flex flex-col ${Z ? "w-full flex-1" : "h-full min-h-0"} ${V ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"}`,
4383
+ className: `flex flex-col ${Z ? "w-full flex-1" : "h-full min-h-0"} ${U ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"}`,
4353
4384
  children: [
4354
4385
  /* @__PURE__ */ p("span", {
4355
4386
  className: "sr-only",
@@ -4358,7 +4389,7 @@ var vt = (e) => {
4358
4389
  /* @__PURE__ */ p("div", {
4359
4390
  part: "header",
4360
4391
  className: "relative overflow-hidden z-10 shrink-0 text-white",
4361
- style: { background: `linear-gradient(135deg, ${H} 0%, color-mix(in srgb, ${H} 76%, black) 100%)` },
4392
+ style: { background: `linear-gradient(135deg, ${W} 0%, color-mix(in srgb, ${W} 76%, black) 100%)` },
4362
4393
  children: /* @__PURE__ */ m("div", {
4363
4394
  className: "max-w-6xl mx-auto w-full px-4 sm:px-6 py-5 sm:py-6 flex items-center gap-3.5",
4364
4395
  children: [/* @__PURE__ */ p("div", { className: "w-11 h-11 rounded-2xl bg-white/15 ring-1 ring-inset ring-white/30 shrink-0" }), /* @__PURE__ */ m("div", {
@@ -4367,30 +4398,30 @@ var vt = (e) => {
4367
4398
  })]
4368
4399
  })
4369
4400
  }),
4370
- !U && /* @__PURE__ */ p("div", {
4401
+ !G && /* @__PURE__ */ p("div", {
4371
4402
  part: "tabs",
4372
- className: `shrink-0 border-b ${V ? "border-zinc-800 bg-zinc-900" : "border-slate-200 bg-white"}`,
4403
+ className: `shrink-0 border-b ${U ? "border-zinc-800 bg-zinc-900" : "border-slate-200 bg-white"}`,
4373
4404
  children: /* @__PURE__ */ p("div", {
4374
4405
  className: "max-w-6xl mx-auto w-full px-4 sm:px-6 py-3",
4375
4406
  children: /* @__PURE__ */ m("div", {
4376
- className: `grid grid-cols-2 gap-1 p-1 rounded-xl max-w-md ${V ? "bg-zinc-800" : "bg-slate-100"}`,
4377
- children: [/* @__PURE__ */ p("div", { className: `h-9 rounded-lg ${V ? "bg-zinc-950" : "bg-white shadow-sm"}` }), /* @__PURE__ */ p("div", { className: "h-9" })]
4407
+ className: `grid grid-cols-2 gap-1 p-1 rounded-xl max-w-md ${U ? "bg-zinc-800" : "bg-slate-100"}`,
4408
+ children: [/* @__PURE__ */ p("div", { className: `h-9 rounded-lg ${U ? "bg-zinc-950" : "bg-white shadow-sm"}` }), /* @__PURE__ */ p("div", { className: "h-9" })]
4378
4409
  })
4379
4410
  })
4380
4411
  }),
4381
4412
  /* @__PURE__ */ p("div", {
4382
4413
  part: "list",
4383
- className: `${Z ? "w-full flex-1" : "overflow-hidden flex-1 min-h-0"} relative ${V ? "bg-zinc-950" : "bg-slate-50"}`,
4414
+ className: `${Z ? "w-full flex-1" : "overflow-hidden flex-1 min-h-0"} relative ${U ? "bg-zinc-950" : "bg-slate-50"}`,
4384
4415
  style: Q,
4385
4416
  children: /* @__PURE__ */ p("div", {
4386
4417
  className: "max-w-6xl mx-auto w-full px-4 sm:px-6 py-6 sm:py-8 space-y-5",
4387
- children: U ? Xe(e) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", {
4418
+ children: G ? Qe(e) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", {
4388
4419
  part: "search",
4389
4420
  className: "flex flex-col sm:flex-row sm:items-end sm:justify-between gap-3",
4390
4421
  children: [/* @__PURE__ */ m("div", {
4391
4422
  className: "space-y-2",
4392
4423
  children: [/* @__PURE__ */ p("div", { className: `${e} h-4 w-56` }), /* @__PURE__ */ p("div", { className: `${e} h-3 w-28` })]
4393
- }), /* @__PURE__ */ p("div", { className: `h-10 w-full sm:w-72 rounded-xl border ${V ? "bg-zinc-900 border-zinc-800" : "bg-white border-slate-200"}` })]
4424
+ }), /* @__PURE__ */ p("div", { className: `h-10 w-full sm:w-72 rounded-xl border ${U ? "bg-zinc-900 border-zinc-800" : "bg-white border-slate-200"}` })]
4394
4425
  }), /* @__PURE__ */ p("div", {
4395
4426
  part: "card-grid",
4396
4427
  className: Z ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5" : "space-y-3",
@@ -4398,7 +4429,7 @@ var vt = (e) => {
4398
4429
  let r = { animationDelay: `${n * 90}ms` };
4399
4430
  return /* @__PURE__ */ m("div", {
4400
4431
  part: "card",
4401
- className: `rounded-2xl border p-5 sm:p-6 flex flex-col ${V ? "bg-zinc-900 border-zinc-800" : "bg-white border-slate-200/80 shadow-[0_1px_2px_rgba(15,23,42,0.04)]"}`,
4432
+ className: `rounded-2xl border p-5 sm:p-6 flex flex-col ${U ? "bg-zinc-900 border-zinc-800" : "bg-white border-slate-200/80 shadow-[0_1px_2px_rgba(15,23,42,0.04)]"}`,
4402
4433
  children: [
4403
4434
  /* @__PURE__ */ p("div", {
4404
4435
  className: "vx-skeleton w-11 h-11 rounded-xl",
@@ -4413,7 +4444,7 @@ var vt = (e) => {
4413
4444
  style: r
4414
4445
  }),
4415
4446
  /* @__PURE__ */ m("div", {
4416
- className: `mt-6 pt-5 border-t border-dashed flex items-end justify-between gap-3 ${V ? "border-zinc-800" : "border-slate-200"}`,
4447
+ className: `mt-6 pt-5 border-t border-dashed flex items-end justify-between gap-3 ${U ? "border-zinc-800" : "border-slate-200"}`,
4417
4448
  children: [/* @__PURE__ */ m("div", {
4418
4449
  className: "space-y-2",
4419
4450
  children: [/* @__PURE__ */ p("div", {
@@ -4436,30 +4467,30 @@ var vt = (e) => {
4436
4467
  })
4437
4468
  ]
4438
4469
  });
4439
- }, Qe = () => {
4440
- let e = !!T, t = U ? Se : Ye, n = e ? U ? "Submitting your abstract" : "Submitting your registration" : "Loading your registration", r = T ? T.type || T.name || T.label : "", i = !U && T && T.price !== void 0 && T.price !== null && T.price !== "" ? Number(T.price) > 0 ? [T.currency, Number(T.price).toLocaleString()].filter(Boolean).join(" ") : "Free" : "";
4470
+ }, et = () => {
4471
+ let e = !!T, t = G ? xe : Ye, 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" : "";
4441
4472
  return /* @__PURE__ */ p("div", {
4442
4473
  part: "screen screen-submitting",
4443
4474
  role: "status",
4444
4475
  "aria-live": "polite",
4445
4476
  "aria-busy": "true",
4446
- className: `flex-1 flex items-center justify-center px-4 py-16 ${Z ? "min-h-[70vh]" : "h-full"} ${V ? "bg-zinc-950" : "bg-slate-50"}`,
4477
+ 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"}`,
4447
4478
  style: Q,
4448
4479
  children: /* @__PURE__ */ m("div", {
4449
4480
  part: "portal-card",
4450
- className: `w-full max-w-sm rounded-3xl border p-8 text-center ${V ? "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)]"}`,
4481
+ 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)]"}`,
4451
4482
  children: [
4452
4483
  /* @__PURE__ */ m("div", {
4453
4484
  className: "relative mx-auto w-16 h-16",
4454
4485
  children: [
4455
4486
  /* @__PURE__ */ p("div", {
4456
4487
  className: "absolute inset-0 rounded-full",
4457
- style: { boxShadow: `inset 0 0 0 4px color-mix(in srgb, ${H} 14%, transparent)` }
4488
+ style: { boxShadow: `inset 0 0 0 4px color-mix(in srgb, ${W} 14%, transparent)` }
4458
4489
  }),
4459
4490
  /* @__PURE__ */ p("div", {
4460
4491
  className: "absolute inset-0 rounded-full motion-safe:animate-spin",
4461
4492
  style: {
4462
- background: `conic-gradient(from 0deg, transparent 0deg, ${H} 300deg, transparent 360deg)`,
4493
+ background: `conic-gradient(from 0deg, transparent 0deg, ${W} 300deg, transparent 360deg)`,
4463
4494
  mask: "radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px))",
4464
4495
  WebkitMask: "radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px))"
4465
4496
  }
@@ -4467,8 +4498,8 @@ var vt = (e) => {
4467
4498
  /* @__PURE__ */ p("div", {
4468
4499
  className: "absolute inset-[10px] rounded-full flex items-center justify-center",
4469
4500
  style: {
4470
- backgroundColor: `color-mix(in srgb, ${H} 12%, transparent)`,
4471
- color: H
4501
+ backgroundColor: `color-mix(in srgb, ${W} 12%, transparent)`,
4502
+ color: W
4472
4503
  },
4473
4504
  children: /* @__PURE__ */ p(t, { size: 20 })
4474
4505
  })
@@ -4476,35 +4507,35 @@ var vt = (e) => {
4476
4507
  }),
4477
4508
  /* @__PURE__ */ p("h3", {
4478
4509
  part: "screen-title",
4479
- className: `mt-6 text-xl font-bold tracking-tight ${V ? "text-white" : "text-slate-900"}`,
4510
+ className: `mt-6 text-xl font-bold tracking-tight ${U ? "text-white" : "text-slate-900"}`,
4480
4511
  style: $,
4481
4512
  children: n
4482
4513
  }),
4483
4514
  /* @__PURE__ */ p("p", {
4484
4515
  part: "screen-message",
4485
- className: `mt-1.5 text-[13px] leading-relaxed text-balance ${V ? "text-zinc-400" : "text-slate-500"}`,
4516
+ className: `mt-1.5 text-[13px] leading-relaxed text-balance ${U ? "text-zinc-400" : "text-slate-500"}`,
4486
4517
  children: "This usually takes a few seconds. Please keep this page open."
4487
4518
  }),
4488
4519
  r && /* @__PURE__ */ m("div", {
4489
- className: `mt-5 inline-flex max-w-full items-center gap-2 rounded-full px-3 py-1.5 text-xs font-semibold ${V ? "bg-zinc-800 text-zinc-200" : "bg-slate-100 text-slate-700"}`,
4520
+ className: `mt-5 inline-flex max-w-full items-center gap-2 rounded-full px-3 py-1.5 text-xs font-semibold ${U ? "bg-zinc-800 text-zinc-200" : "bg-slate-100 text-slate-700"}`,
4490
4521
  children: [/* @__PURE__ */ p("span", {
4491
4522
  className: "truncate",
4492
4523
  children: r
4493
4524
  }), i && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
4494
4525
  "aria-hidden": "true",
4495
- className: V ? "text-zinc-600" : "text-slate-300",
4526
+ className: U ? "text-zinc-600" : "text-slate-300",
4496
4527
  children: "•"
4497
4528
  }), /* @__PURE__ */ p("span", {
4498
4529
  className: "shrink-0 tabular-nums",
4499
- style: { color: H },
4530
+ style: { color: W },
4500
4531
  children: i
4501
4532
  })] })]
4502
4533
  }),
4503
4534
  /* @__PURE__ */ p("div", {
4504
- className: `mt-6 h-1 w-full overflow-hidden rounded-full ${V ? "bg-zinc-800" : "bg-slate-100"}`,
4535
+ className: `mt-6 h-1 w-full overflow-hidden rounded-full ${U ? "bg-zinc-800" : "bg-slate-100"}`,
4505
4536
  children: /* @__PURE__ */ p("div", {
4506
4537
  className: "vx-progress-bar h-full w-2/5 rounded-full",
4507
- style: { backgroundColor: H }
4538
+ style: { backgroundColor: W }
4508
4539
  })
4509
4540
  })
4510
4541
  ]
@@ -4513,22 +4544,22 @@ var vt = (e) => {
4513
4544
  };
4514
4545
  return /* @__PURE__ */ p("div", {
4515
4546
  part: "widget",
4516
- className: ze,
4547
+ className: Ve,
4517
4548
  style: {
4518
- ...Ve,
4549
+ ...Ue,
4519
4550
  overflow: Z ? "visible" : "clip"
4520
4551
  },
4521
4552
  onScroll: (e) => {
4522
4553
  Z || (e.currentTarget.scrollTop !== 0 && (e.currentTarget.scrollTop = 0), e.currentTarget.scrollLeft !== 0 && (e.currentTarget.scrollLeft = 0));
4523
4554
  },
4524
- children: O && !T && !M ? Ze() : O ? Qe() : M ? se ? /* @__PURE__ */ m("div", {
4555
+ children: k && !T && !N ? $e() : k ? et() : N ? oe ? /* @__PURE__ */ m("div", {
4525
4556
  part: "screen screen-payment",
4526
- className: `flex flex-col h-full relative overflow-y-auto ${V ? "bg-black text-white" : "bg-white text-gray-900"}`,
4557
+ className: `flex flex-col h-full relative overflow-y-auto ${U ? "bg-black text-white" : "bg-white text-gray-900"}`,
4527
4558
  children: [/* @__PURE__ */ m("div", {
4528
4559
  part: "screen-header",
4529
4560
  className: "p-4 shadow-sm flex justify-between items-center z-10",
4530
4561
  style: {
4531
- backgroundColor: H,
4562
+ backgroundColor: W,
4532
4563
  color: "white"
4533
4564
  },
4534
4565
  children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
@@ -4558,37 +4589,37 @@ var vt = (e) => {
4558
4589
  /* @__PURE__ */ p("div", {
4559
4590
  className: "w-16 h-16 rounded-full flex items-center justify-center mb-4 text-2xl shadow-md",
4560
4591
  style: {
4561
- backgroundColor: `color-mix(in srgb, ${H} 12%, transparent)`,
4562
- color: H
4592
+ backgroundColor: `color-mix(in srgb, ${W} 12%, transparent)`,
4593
+ color: W
4563
4594
  },
4564
4595
  children: "💳"
4565
4596
  }),
4566
4597
  /* @__PURE__ */ p("h3", {
4567
4598
  part: "screen-title",
4568
- className: `text-2xl font-bold mb-2 ${V ? "text-white" : "text-gray-900"}`,
4599
+ className: `text-2xl font-bold mb-2 ${U ? "text-white" : "text-gray-900"}`,
4569
4600
  style: $,
4570
4601
  children: "Done Your Payment First"
4571
4602
  }),
4572
4603
  /* @__PURE__ */ p("p", {
4573
4604
  part: "screen-message",
4574
- className: `text-sm mb-6 max-w-xs leading-relaxed ${V ? "text-zinc-300" : "text-gray-600"}`,
4605
+ className: `text-sm mb-6 max-w-xs leading-relaxed ${U ? "text-zinc-300" : "text-gray-600"}`,
4575
4606
  children: "Please complete your payment in the new tab to confirm your booking and finalize your registration."
4576
4607
  }),
4577
- Pe(),
4608
+ Re(),
4578
4609
  /* @__PURE__ */ m("div", {
4579
4610
  className: "w-full max-w-xs space-y-3",
4580
4611
  children: [/* @__PURE__ */ m("a", {
4581
4612
  part: "button button-primary",
4582
- href: se,
4613
+ href: oe,
4583
4614
  target: "_blank",
4584
4615
  rel: "noopener noreferrer",
4585
4616
  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",
4586
- style: { backgroundColor: H },
4587
- children: [/* @__PURE__ */ p("span", { children: "Open Payment Page" }), /* @__PURE__ */ p(xe, { size: 16 })]
4617
+ style: { backgroundColor: W },
4618
+ children: [/* @__PURE__ */ p("span", { children: "Open Payment Page" }), /* @__PURE__ */ p(be, { size: 16 })]
4588
4619
  }), /* @__PURE__ */ p("button", {
4589
4620
  part: "button button-link",
4590
- onClick: je,
4591
- className: `w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${V ? "text-zinc-400 hover:text-white" : "text-gray-500 hover:text-gray-900"}`,
4621
+ onClick: Ne,
4622
+ 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"}`,
4592
4623
  children: "Register Another Person"
4593
4624
  })]
4594
4625
  })
@@ -4596,47 +4627,52 @@ var vt = (e) => {
4596
4627
  })]
4597
4628
  }) : /* @__PURE__ */ m("div", {
4598
4629
  part: "screen screen-success",
4599
- className: `flex flex-col h-full items-center justify-center p-8 text-center relative ${V ? "bg-black text-white" : "bg-white text-gray-900"}`,
4630
+ className: `flex flex-col h-full items-center justify-center p-8 text-center relative ${U ? "bg-black text-white" : "bg-white text-gray-900"}`,
4600
4631
  children: [
4601
4632
  e.displayMode === "popup" && /* @__PURE__ */ p("div", {
4602
4633
  className: "absolute top-4 right-4 flex items-center gap-2",
4603
4634
  children: /* @__PURE__ */ p("button", {
4604
4635
  onClick: () => h(!1),
4605
- className: `cursor-pointer ${V ? "text-zinc-400 hover:text-white" : "text-gray-400 hover:text-gray-900"}`,
4636
+ className: `cursor-pointer ${U ? "text-zinc-400 hover:text-white" : "text-gray-400 hover:text-gray-900"}`,
4606
4637
  children: /* @__PURE__ */ p(st, { size: 24 })
4607
4638
  })
4608
4639
  }),
4609
4640
  /* @__PURE__ */ p("div", {
4610
4641
  className: "w-20 h-20 rounded-full flex items-center justify-center mb-6 text-4xl shadow-md",
4611
4642
  style: {
4612
- backgroundColor: H,
4643
+ backgroundColor: W,
4613
4644
  color: "white"
4614
4645
  },
4615
4646
  children: "✓"
4616
4647
  }),
4617
4648
  /* @__PURE__ */ p("h2", {
4618
4649
  part: "screen-title",
4619
- className: `text-3xl font-bold mb-3 ${V ? "text-white" : "text-gray-900"}`,
4650
+ className: `text-3xl font-bold mb-3 ${U ? "text-white" : "text-gray-900"}`,
4620
4651
  style: $,
4621
- children: U ? "Abstract Submitted Successfully" : "Thank You!"
4652
+ children: G ? "Abstract Submitted Successfully" : "Thank You!"
4622
4653
  }),
4623
4654
  /* @__PURE__ */ p("p", {
4624
4655
  part: "screen-message",
4625
- className: `mb-6 ${V ? "text-zinc-300" : "text-gray-600"}`,
4626
- children: U ? "Your reference submission number is below." : "Your registration has been successfully received."
4656
+ className: `mb-6 ${U ? "text-zinc-300" : "text-gray-600"}`,
4657
+ children: G ? "Your reference submission number is below." : "Your registration has been successfully received."
4658
+ }),
4659
+ Re(),
4660
+ de !== null && /* @__PURE__ */ p("p", {
4661
+ part: "payment-status",
4662
+ className: `text-sm mb-6 max-w-xs leading-relaxed ${U ? "text-zinc-300" : "text-gray-600"}`,
4663
+ children: de ? "Your payment is confirmed." : "We haven't received your payment yet. If you have just paid, it will be confirmed shortly."
4627
4664
  }),
4628
- Pe(),
4629
4665
  /* @__PURE__ */ p("button", {
4630
4666
  part: "button button-primary",
4631
- onClick: je,
4632
- style: { backgroundColor: H },
4667
+ onClick: Ne,
4668
+ style: { backgroundColor: W },
4633
4669
  className: "text-white font-bold py-3 px-8 rounded-md hover:opacity-90 transition-opacity shadow-md cursor-pointer",
4634
4670
  children: "Back"
4635
4671
  })
4636
4672
  ]
4637
- }) : N ? /* @__PURE__ */ m("div", {
4673
+ }) : P ? /* @__PURE__ */ m("div", {
4638
4674
  part: "screen screen-error",
4639
- className: `flex flex-col h-full relative overflow-y-auto ${V ? "bg-black text-white" : "bg-white text-gray-900"}`,
4675
+ className: `flex flex-col h-full relative overflow-y-auto ${U ? "bg-black text-white" : "bg-white text-gray-900"}`,
4640
4676
  children: [/* @__PURE__ */ m("div", {
4641
4677
  part: "screen-header",
4642
4678
  className: "p-4 shadow-sm flex justify-between items-center z-10 bg-red-600 text-white",
@@ -4644,7 +4680,7 @@ var vt = (e) => {
4644
4680
  part: "screen-header-title",
4645
4681
  className: "text-xl font-bold",
4646
4682
  style: $,
4647
- children: U ? "Submission Failed" : "Registration Failed"
4683
+ children: G ? "Submission Failed" : "Registration Failed"
4648
4684
  }), /* @__PURE__ */ p("p", {
4649
4685
  className: "text-xs opacity-90 mt-0.5",
4650
4686
  children: "Please try again"
@@ -4660,41 +4696,41 @@ var vt = (e) => {
4660
4696
  className: "flex-1 flex flex-col items-center justify-center p-6 text-center",
4661
4697
  children: [
4662
4698
  /* @__PURE__ */ p("div", {
4663
- className: `w-16 h-16 rounded-full flex items-center justify-center mb-4 text-2xl shadow-md border ${V ? "bg-red-950/60 text-red-400 border-red-900" : "bg-red-50 text-red-600 border-red-200"}`,
4699
+ className: `w-16 h-16 rounded-full flex items-center justify-center mb-4 text-2xl shadow-md border ${U ? "bg-red-950/60 text-red-400 border-red-900" : "bg-red-50 text-red-600 border-red-200"}`,
4664
4700
  children: "✕"
4665
4701
  }),
4666
4702
  /* @__PURE__ */ p("h3", {
4667
4703
  part: "screen-title",
4668
- className: `text-2xl font-bold mb-2 ${V ? "text-white" : "text-gray-900"}`,
4704
+ className: `text-2xl font-bold mb-2 ${U ? "text-white" : "text-gray-900"}`,
4669
4705
  style: $,
4670
4706
  children: "Submission Error"
4671
4707
  }),
4672
4708
  /* @__PURE__ */ p("p", {
4673
4709
  part: "screen-message",
4674
- className: `text-sm mb-6 max-w-xs leading-relaxed ${V ? "text-zinc-300" : "text-gray-600"}`,
4675
- children: N
4710
+ className: `text-sm mb-6 max-w-xs leading-relaxed ${U ? "text-zinc-300" : "text-gray-600"}`,
4711
+ children: P
4676
4712
  }),
4677
4713
  /* @__PURE__ */ m("div", {
4678
4714
  className: "w-full max-w-xs space-y-3",
4679
4715
  children: [/* @__PURE__ */ p("button", {
4680
4716
  part: "button button-primary",
4681
- onClick: () => oe(null),
4682
- style: { backgroundColor: H },
4717
+ onClick: () => ae(null),
4718
+ style: { backgroundColor: W },
4683
4719
  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 cursor-pointer",
4684
4720
  children: /* @__PURE__ */ p("span", { children: "Try Again" })
4685
4721
  }), /* @__PURE__ */ p("button", {
4686
4722
  part: "button button-link",
4687
4723
  onClick: () => {
4688
- oe(null), E(null);
4724
+ ae(null), E(null);
4689
4725
  },
4690
- className: `w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${V ? "text-zinc-400 hover:text-white" : "text-gray-500 hover:text-gray-900"}`,
4691
- children: U ? "Choose Another Category" : "Choose Another Ticket"
4726
+ 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"}`,
4727
+ children: G ? "Choose Another Category" : "Choose Another Ticket"
4692
4728
  })]
4693
4729
  })
4694
4730
  ]
4695
4731
  })]
4696
4732
  }) : T ? /* @__PURE__ */ p(pt, {
4697
- schema: U ? te : T.form_schema,
4733
+ schema: G ? ee : T.form_schema,
4698
4734
  ticketType: T,
4699
4735
  theme: e.theme,
4700
4736
  displayMode: e.displayMode,
@@ -4702,29 +4738,29 @@ var vt = (e) => {
4702
4738
  isExpanded: y,
4703
4739
  onToggleExpand: () => b(!y),
4704
4740
  onClose: () => h(!1),
4705
- onSubmit: Ae,
4706
- onChange: ke,
4707
- initialValues: X,
4708
- fileAnswers: J?.file_answers,
4709
- isDark: V,
4710
- apiClient: G,
4711
- storage: K,
4741
+ onSubmit: Me,
4742
+ onChange: je,
4743
+ initialValues: Ae,
4744
+ fileAnswers: X?.file_answers,
4745
+ isDark: U,
4746
+ apiClient: q,
4747
+ storage: J,
4712
4748
  onError: e.onError,
4713
4749
  onEvent: e.onEvent,
4714
- showReviewFields: U,
4750
+ showReviewFields: G,
4715
4751
  onBack: () => {
4716
- q.current && clearTimeout(q.current), E(null);
4752
+ Y.current && clearTimeout(Y.current), E(null);
4717
4753
  }
4718
4754
  }) : /* @__PURE__ */ m("div", {
4719
4755
  part: "page",
4720
- className: `flex flex-col ${Z ? "w-full flex-1" : "h-full min-h-0"} ${V ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"}`,
4756
+ className: `flex flex-col ${Z ? "w-full flex-1" : "h-full min-h-0"} ${U ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"}`,
4721
4757
  children: [
4722
4758
  /* @__PURE__ */ m("div", {
4723
4759
  part: "header",
4724
4760
  className: "relative overflow-hidden z-10 shrink-0 text-white",
4725
4761
  style: {
4726
- backgroundColor: H,
4727
- background: `linear-gradient(135deg, ${H} 0%, color-mix(in srgb, ${H} 76%, black) 100%)`
4762
+ backgroundColor: W,
4763
+ background: `linear-gradient(135deg, ${W} 0%, color-mix(in srgb, ${W} 76%, black) 100%)`
4728
4764
  },
4729
4765
  children: [
4730
4766
  /* @__PURE__ */ p("div", {
@@ -4749,7 +4785,7 @@ var vt = (e) => {
4749
4785
  className: "h-full w-auto object-cover object-right"
4750
4786
  }), /* @__PURE__ */ p("div", {
4751
4787
  className: "absolute inset-y-0 left-0 w-2/5",
4752
- style: { background: `linear-gradient(to right, color-mix(in srgb, ${H} 80%, black) 0%, transparent 100%)` }
4788
+ style: { background: `linear-gradient(to right, color-mix(in srgb, ${W} 80%, black) 0%, transparent 100%)` }
4753
4789
  })]
4754
4790
  }),
4755
4791
  /* @__PURE__ */ m("div", {
@@ -4770,7 +4806,7 @@ var vt = (e) => {
4770
4806
  part: "header-title",
4771
4807
  className: "text-lg sm:text-2xl font-bold tracking-tight leading-tight break-words",
4772
4808
  style: $,
4773
- children: He
4809
+ children: We
4774
4810
  }), /* @__PURE__ */ m("span", {
4775
4811
  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",
4776
4812
  children: [/* @__PURE__ */ p("span", { className: "h-1.5 w-1.5 rounded-full bg-emerald-300" }), "Official Portal"]
@@ -4778,7 +4814,7 @@ var vt = (e) => {
4778
4814
  }), /* @__PURE__ */ p("p", {
4779
4815
  part: "header-subtitle",
4780
4816
  className: "text-xs sm:text-sm text-white/80 mt-0.5",
4781
- children: U ? "Select a category below to submit your abstract" : t === "registration" ? "Select a registration type below to begin your application" : "Registration & Profile Management"
4817
+ children: G ? "Select a category below to submit your abstract" : t === "registration" ? "Select a registration type below to begin your application" : "Registration & Profile Management"
4782
4818
  })]
4783
4819
  })]
4784
4820
  }), /* @__PURE__ */ p("div", {
@@ -4797,18 +4833,18 @@ var vt = (e) => {
4797
4833
  })
4798
4834
  ]
4799
4835
  }),
4800
- !U && /* @__PURE__ */ p("div", {
4836
+ !G && /* @__PURE__ */ p("div", {
4801
4837
  part: "tabs",
4802
- className: `shrink-0 border-b ${V ? "border-zinc-800 bg-zinc-900" : "border-slate-200 bg-white"}`,
4838
+ className: `shrink-0 border-b ${U ? "border-zinc-800 bg-zinc-900" : "border-slate-200 bg-white"}`,
4803
4839
  children: /* @__PURE__ */ p("div", {
4804
4840
  className: "max-w-6xl mx-auto w-full px-4 sm:px-6 py-3",
4805
4841
  children: /* @__PURE__ */ p("div", {
4806
4842
  role: "tablist",
4807
- className: `grid grid-cols-2 gap-1 p-1 rounded-xl max-w-md ${V ? "bg-zinc-800" : "bg-slate-100"}`,
4843
+ className: `grid grid-cols-2 gap-1 p-1 rounded-xl max-w-md ${U ? "bg-zinc-800" : "bg-slate-100"}`,
4808
4844
  children: [{
4809
4845
  key: "registration",
4810
4846
  label: "Registration Forms",
4811
- Icon: me
4847
+ Icon: pe
4812
4848
  }, {
4813
4849
  key: "attendee",
4814
4850
  label: "Attendee Login",
@@ -4821,8 +4857,8 @@ var vt = (e) => {
4821
4857
  "aria-selected": a,
4822
4858
  type: "button",
4823
4859
  onClick: () => n(e),
4824
- className: `inline-flex items-center justify-center gap-1.5 sm:gap-2 py-2 px-2 sm:px-3 text-[13px] sm:text-sm font-semibold rounded-lg transition-all cursor-pointer ${a ? V ? "bg-zinc-950 shadow-sm" : "bg-white shadow-sm ring-1 ring-slate-200/70" : V ? "text-zinc-400 hover:text-zinc-200" : "text-slate-500 hover:text-slate-800"}`,
4825
- style: a ? { color: H } : void 0,
4860
+ className: `inline-flex items-center justify-center gap-1.5 sm:gap-2 py-2 px-2 sm:px-3 text-[13px] sm:text-sm font-semibold rounded-lg transition-all cursor-pointer ${a ? U ? "bg-zinc-950 shadow-sm" : "bg-white shadow-sm ring-1 ring-slate-200/70" : U ? "text-zinc-400 hover:text-zinc-200" : "text-slate-500 hover:text-slate-800"}`,
4861
+ style: a ? { color: W } : void 0,
4826
4862
  children: [/* @__PURE__ */ p(i, {
4827
4863
  size: 15,
4828
4864
  className: "hidden sm:block shrink-0"
@@ -4835,26 +4871,26 @@ var vt = (e) => {
4835
4871
  })
4836
4872
  })
4837
4873
  }),
4838
- (U || t === "registration") && /* @__PURE__ */ p("div", {
4874
+ (G || t === "registration") && /* @__PURE__ */ p("div", {
4839
4875
  part: "list",
4840
- className: `${Z ? "w-full flex-1" : "overflow-y-auto flex-1 min-h-0 overscroll-contain"} relative ${V ? "bg-zinc-950" : "bg-slate-50"}`,
4876
+ className: `${Z ? "w-full flex-1" : "overflow-y-auto flex-1 min-h-0 overscroll-contain"} relative ${U ? "bg-zinc-950" : "bg-slate-50"}`,
4841
4877
  style: Q,
4842
4878
  children: /* @__PURE__ */ p("div", {
4843
4879
  className: "max-w-6xl mx-auto w-full px-4 sm:px-6 py-6 sm:py-8 space-y-5",
4844
- children: U ? Je() : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", {
4880
+ children: G ? Ze() : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", {
4845
4881
  part: "search",
4846
4882
  className: "flex flex-col sm:flex-row sm:items-end sm:justify-between gap-3",
4847
4883
  children: [/* @__PURE__ */ m("div", {
4848
4884
  className: "min-w-0",
4849
4885
  children: [/* @__PURE__ */ p("h3", {
4850
4886
  part: "list-title",
4851
- className: `text-base sm:text-lg font-semibold tracking-tight ${V ? "text-white" : "text-slate-900"}`,
4887
+ className: `text-base sm:text-lg font-semibold tracking-tight ${U ? "text-white" : "text-slate-900"}`,
4852
4888
  style: $,
4853
- children: U ? "Choose a submission category" : "Choose your registration type"
4889
+ children: G ? "Choose a submission category" : "Choose your registration type"
4854
4890
  }), x.length > 0 && /* @__PURE__ */ p("p", {
4855
4891
  part: "list-count",
4856
- className: `text-xs mt-0.5 ${V ? "text-zinc-400" : "text-slate-500"}`,
4857
- children: Ue ? `${We.length} of ${x.length} options` : `${x.length} ${x.length === 1 ? "option" : "options"} available`
4892
+ className: `text-xs mt-0.5 ${U ? "text-zinc-400" : "text-slate-500"}`,
4893
+ children: Ke ? `${Je.length} of ${x.length} options` : `${x.length} ${x.length === 1 ? "option" : "options"} available`
4858
4894
  })]
4859
4895
  }), /* @__PURE__ */ m("div", {
4860
4896
  className: "relative w-full sm:w-72",
@@ -4862,41 +4898,41 @@ var vt = (e) => {
4862
4898
  /* @__PURE__ */ p("input", {
4863
4899
  part: "input search-input",
4864
4900
  type: "text",
4865
- value: A,
4866
- onChange: (e) => j(e.target.value),
4867
- placeholder: U ? "Search categories…" : "Search registration types…",
4901
+ value: j,
4902
+ onChange: (e) => M(e.target.value),
4903
+ placeholder: G ? "Search categories…" : "Search registration types…",
4868
4904
  "aria-label": "Search",
4869
- className: `w-full h-10 pl-9 pr-8 text-sm rounded-xl border transition-all focus:outline-none focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_15%,transparent)] ${V ? "bg-zinc-900 border-zinc-700 text-white placeholder:text-zinc-500" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400 shadow-[0_1px_2px_rgba(15,23,42,0.04)]"}`
4905
+ className: `w-full h-10 pl-9 pr-8 text-sm rounded-xl border transition-all focus:outline-none focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_15%,transparent)] ${U ? "bg-zinc-900 border-zinc-700 text-white placeholder:text-zinc-500" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400 shadow-[0_1px_2px_rgba(15,23,42,0.04)]"}`
4870
4906
  }),
4871
4907
  /* @__PURE__ */ p("div", {
4872
- className: `absolute inset-y-0 left-3 flex items-center pointer-events-none ${V ? "text-zinc-500" : "text-slate-400"}`,
4908
+ className: `absolute inset-y-0 left-3 flex items-center pointer-events-none ${U ? "text-zinc-500" : "text-slate-400"}`,
4873
4909
  children: /* @__PURE__ */ p(Ge, {
4874
4910
  size: 15,
4875
4911
  className: "block"
4876
4912
  })
4877
4913
  }),
4878
- A && /* @__PURE__ */ p("button", {
4914
+ j && /* @__PURE__ */ p("button", {
4879
4915
  type: "button",
4880
- onClick: () => j(""),
4916
+ onClick: () => M(""),
4881
4917
  "aria-label": "Clear search",
4882
- className: `absolute inset-y-0 right-2.5 flex items-center cursor-pointer ${V ? "text-zinc-500 hover:text-zinc-300" : "text-slate-400 hover:text-slate-600"}`,
4918
+ 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"}`,
4883
4919
  children: /* @__PURE__ */ p(st, { size: 14 })
4884
4920
  })
4885
4921
  ]
4886
4922
  })]
4887
- }), x.length === 0 ? null : We.length === 0 ? /* @__PURE__ */ m("div", {
4923
+ }), x.length === 0 ? null : Je.length === 0 ? /* @__PURE__ */ m("div", {
4888
4924
  part: "empty-state",
4889
- className: `flex flex-col items-center text-center py-16 px-6 rounded-3xl border border-dashed ${V ? "bg-zinc-900/60 border-zinc-800 text-zinc-400" : "bg-white/70 border-slate-300 text-slate-500"}`,
4925
+ 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"}`,
4890
4926
  children: [
4891
4927
  /* @__PURE__ */ p("div", {
4892
- className: `w-12 h-12 rounded-2xl flex items-center justify-center mb-4 ${V ? "bg-zinc-800" : "bg-slate-100"}`,
4928
+ className: `w-12 h-12 rounded-2xl flex items-center justify-center mb-4 ${U ? "bg-zinc-800" : "bg-slate-100"}`,
4893
4929
  children: /* @__PURE__ */ p(Ge, { size: 20 })
4894
4930
  }),
4895
4931
  /* @__PURE__ */ m("p", {
4896
- className: `text-base font-semibold ${V ? "text-white" : "text-slate-900"}`,
4932
+ className: `text-base font-semibold ${U ? "text-white" : "text-slate-900"}`,
4897
4933
  children: [
4898
4934
  "No matches for “",
4899
- A.trim(),
4935
+ j.trim(),
4900
4936
  "”"
4901
4937
  ]
4902
4938
  }),
@@ -4906,16 +4942,16 @@ var vt = (e) => {
4906
4942
  }),
4907
4943
  /* @__PURE__ */ p("button", {
4908
4944
  part: "button button-secondary",
4909
- onClick: () => j(""),
4910
- className: `mt-5 px-4 py-2 rounded-full text-sm font-semibold border cursor-pointer transition-colors ${V ? "border-zinc-700 text-zinc-200 hover:bg-zinc-800" : "border-slate-200 bg-white text-slate-700 hover:bg-slate-50"}`,
4945
+ onClick: () => M(""),
4946
+ className: `mt-5 px-4 py-2 rounded-full text-sm font-semibold border cursor-pointer transition-colors ${U ? "border-zinc-700 text-zinc-200 hover:bg-zinc-800" : "border-slate-200 bg-white text-slate-700 hover:bg-slate-50"}`,
4911
4947
  children: "Clear search"
4912
4948
  })
4913
4949
  ]
4914
4950
  }) : /* @__PURE__ */ p("div", {
4915
4951
  part: "card-grid",
4916
4952
  className: Z ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5" : "space-y-3",
4917
- children: We.map((e) => {
4918
- 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 = U ? Se : Ye;
4953
+ children: Je.map((e) => {
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 ? xe : Ye;
4919
4955
  return /* @__PURE__ */ m("div", {
4920
4956
  part: "card",
4921
4957
  role: "button",
@@ -4925,44 +4961,44 @@ var vt = (e) => {
4925
4961
  onKeyDown: (t) => {
4926
4962
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), E(e));
4927
4963
  },
4928
- className: `group relative flex flex-col rounded-2xl border p-5 sm:p-6 cursor-pointer transition-all duration-300 hover:-translate-y-1 outline-none focus-visible:ring-4 focus-visible:ring-[color-mix(in_srgb,var(--vx-accent)_25%,transparent)] hover:border-[color-mix(in_srgb,var(--vx-accent)_35%,transparent)] ${V ? "bg-zinc-900 border-zinc-800 hover: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)] hover:shadow-[0_24px_48px_-24px_color-mix(in_srgb,var(--vx-accent)_45%,transparent)]"}`,
4964
+ className: `group relative flex flex-col rounded-2xl border p-5 sm:p-6 cursor-pointer transition-all duration-300 hover:-translate-y-1 outline-none focus-visible:ring-4 focus-visible:ring-[color-mix(in_srgb,var(--vx-accent)_25%,transparent)] hover:border-[color-mix(in_srgb,var(--vx-accent)_35%,transparent)] ${U ? "bg-zinc-900 border-zinc-800 hover: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)] hover:shadow-[0_24px_48px_-24px_color-mix(in_srgb,var(--vx-accent)_45%,transparent)]"}`,
4929
4965
  children: [
4930
4966
  /* @__PURE__ */ p("span", {
4931
4967
  "aria-hidden": "true",
4932
4968
  className: "pointer-events-none absolute inset-x-8 top-0 h-[3px] rounded-b-full opacity-0 transition-opacity duration-300 group-hover:opacity-100",
4933
- style: { background: `linear-gradient(90deg, transparent, ${H}, transparent)` }
4969
+ style: { background: `linear-gradient(90deg, transparent, ${W}, transparent)` }
4934
4970
  }),
4935
4971
  /* @__PURE__ */ m("div", {
4936
4972
  className: "flex items-start justify-between gap-3",
4937
4973
  children: [/* @__PURE__ */ p("div", {
4938
4974
  className: "w-11 h-11 rounded-xl flex items-center justify-center shrink-0 transition-transform duration-300 group-hover:scale-105",
4939
4975
  style: {
4940
- backgroundColor: `color-mix(in srgb, ${H} 12%, transparent)`,
4941
- color: H
4976
+ backgroundColor: `color-mix(in srgb, ${W} 12%, transparent)`,
4977
+ color: W
4942
4978
  },
4943
4979
  children: /* @__PURE__ */ p(a, { size: 20 })
4944
4980
  }), (e.category || e.seats_left) && /* @__PURE__ */ m("div", {
4945
4981
  className: "flex flex-wrap justify-end items-center gap-1.5",
4946
4982
  children: [e.category && /* @__PURE__ */ p("span", {
4947
4983
  part: "card-category",
4948
- className: `text-[10px] font-semibold uppercase tracking-wider px-2.5 py-1 rounded-full ${V ? "bg-zinc-800 text-zinc-300" : "bg-slate-100 text-slate-600"}`,
4984
+ className: `text-[10px] font-semibold uppercase tracking-wider px-2.5 py-1 rounded-full ${U ? "bg-zinc-800 text-zinc-300" : "bg-slate-100 text-slate-600"}`,
4949
4985
  children: e.category
4950
4986
  }), e.seats_left && /* @__PURE__ */ m("span", {
4951
4987
  part: "card-seats",
4952
- className: `text-[10px] font-semibold px-2.5 py-1 rounded-full flex items-center gap-1 ${V ? "bg-amber-950/60 text-amber-300" : "bg-amber-50 text-amber-700"}`,
4953
- children: [/* @__PURE__ */ p(he, { size: 10 }), /* @__PURE__ */ p("span", { children: e.seats_left })]
4988
+ 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(me, { size: 10 }), /* @__PURE__ */ p("span", { children: e.seats_left })]
4954
4990
  })]
4955
4991
  })]
4956
4992
  }),
4957
4993
  /* @__PURE__ */ p("h3", {
4958
4994
  part: "card-title",
4959
- className: `mt-4 text-lg font-semibold leading-snug tracking-tight ${V ? "text-white" : "text-slate-900"}`,
4995
+ className: `mt-4 text-lg font-semibold leading-snug tracking-tight ${U ? "text-white" : "text-slate-900"}`,
4960
4996
  style: $,
4961
4997
  children: t
4962
4998
  }),
4963
4999
  e.description && /* @__PURE__ */ p("p", {
4964
5000
  part: "card-description",
4965
- className: `mt-1.5 text-sm leading-relaxed line-clamp-2 ${V ? "text-zinc-400" : "text-slate-500"}`,
5001
+ className: `mt-1.5 text-sm leading-relaxed line-clamp-2 ${U ? "text-zinc-400" : "text-slate-500"}`,
4966
5002
  children: e.description
4967
5003
  }),
4968
5004
  i.length > 0 && /* @__PURE__ */ p("ul", {
@@ -4973,48 +5009,48 @@ var vt = (e) => {
4973
5009
  children: [/* @__PURE__ */ p("span", {
4974
5010
  className: "mt-0.5 w-4 h-4 rounded-full flex items-center justify-center shrink-0",
4975
5011
  style: {
4976
- backgroundColor: `color-mix(in srgb, ${H} 14%, transparent)`,
4977
- color: H
5012
+ backgroundColor: `color-mix(in srgb, ${W} 14%, transparent)`,
5013
+ color: W
4978
5014
  },
4979
- children: /* @__PURE__ */ p(ce, {
5015
+ children: /* @__PURE__ */ p(se, {
4980
5016
  size: 10,
4981
5017
  strokeWidth: 3
4982
5018
  })
4983
5019
  }), /* @__PURE__ */ p("span", {
4984
- className: V ? "text-zinc-300" : "text-slate-600",
5020
+ className: U ? "text-zinc-300" : "text-slate-600",
4985
5021
  children: e
4986
5022
  })]
4987
5023
  }, t))
4988
5024
  }),
4989
5025
  /* @__PURE__ */ p("div", { className: "flex-1" }),
4990
5026
  /* @__PURE__ */ m("div", {
4991
- className: `mt-6 pt-5 border-t border-dashed flex items-end justify-between gap-3 ${V ? "border-zinc-800" : "border-slate-200"}`,
5027
+ className: `mt-6 pt-5 border-t border-dashed flex items-end justify-between gap-3 ${U ? "border-zinc-800" : "border-slate-200"}`,
4992
5028
  children: [/* @__PURE__ */ p("div", {
4993
5029
  className: "min-w-0",
4994
- children: n && !U ? /* @__PURE__ */ m(f, { children: [
5030
+ children: n && !G ? /* @__PURE__ */ m(f, { children: [
4995
5031
  /* @__PURE__ */ p("p", {
4996
- className: `text-[10px] font-semibold uppercase tracking-wider ${V ? "text-zinc-500" : "text-slate-400"}`,
5032
+ className: `text-[10px] font-semibold uppercase tracking-wider ${U ? "text-zinc-500" : "text-slate-400"}`,
4997
5033
  children: "Registration fee"
4998
5034
  }),
4999
5035
  /* @__PURE__ */ p("p", {
5000
5036
  part: "card-price",
5001
5037
  className: "text-2xl font-bold tracking-tight tabular-nums leading-tight",
5002
- style: { color: H },
5038
+ style: { color: W },
5003
5039
  children: r ? "Free" : [e.currency, Number(e.price).toLocaleString()].filter(Boolean).join(" ")
5004
5040
  }),
5005
5041
  e.tax_info && /* @__PURE__ */ p("p", {
5006
5042
  part: "card-tax",
5007
- className: `text-[11px] mt-0.5 ${V ? "text-zinc-500" : "text-slate-400"}`,
5043
+ className: `text-[11px] mt-0.5 ${U ? "text-zinc-500" : "text-slate-400"}`,
5008
5044
  children: e.tax_info
5009
5045
  })
5010
5046
  ] }) : null
5011
5047
  }), /* @__PURE__ */ m("span", {
5012
5048
  part: "button button-primary card-button",
5013
5049
  className: "inline-flex shrink-0 items-center gap-2 h-10 pl-4 pr-1.5 rounded-full text-sm font-semibold text-white transition-shadow duration-300 group-hover:shadow-[0_8px_20px_-6px_color-mix(in_srgb,var(--vx-accent)_70%,transparent)]",
5014
- style: { backgroundColor: H },
5015
- children: [U ? "Submit" : "Register", /* @__PURE__ */ p("span", {
5050
+ style: { backgroundColor: W },
5051
+ children: [G ? "Submit" : "Register", /* @__PURE__ */ p("span", {
5016
5052
  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",
5017
- children: /* @__PURE__ */ p(ie, { size: 14 })
5053
+ children: /* @__PURE__ */ p(re, { size: 14 })
5018
5054
  })]
5019
5055
  })]
5020
5056
  })
@@ -5024,7 +5060,7 @@ var vt = (e) => {
5024
5060
  })] })
5025
5061
  })
5026
5062
  }),
5027
- !U && (r || t === "attendee") && /* @__PURE__ */ p("div", {
5063
+ !G && (r || t === "attendee") && /* @__PURE__ */ p("div", {
5028
5064
  part: "portal",
5029
5065
  className: `${t === "attendee" ? "flex" : "hidden"} flex-col ${Z ? "w-full flex-1" : "flex-1 overflow-hidden min-h-0"}`,
5030
5066
  style: {
@@ -5035,11 +5071,11 @@ var vt = (e) => {
5035
5071
  e.currentTarget.scrollTop !== 0 && (e.currentTarget.scrollTop = 0), e.currentTarget.scrollLeft !== 0 && (e.currentTarget.scrollLeft = 0);
5036
5072
  },
5037
5073
  children: /* @__PURE__ */ p(ht, {
5038
- apiClient: G,
5039
- storage: K,
5040
- logger: W,
5041
- primaryColor: H,
5042
- isDark: V,
5074
+ apiClient: q,
5075
+ storage: J,
5076
+ logger: K,
5077
+ primaryColor: W,
5078
+ isDark: U,
5043
5079
  isWidgetPage: Z,
5044
5080
  onEvent: e.onEvent,
5045
5081
  onError: e.onError