@voxket-ai/events-sdk 1.0.10 → 1.0.11

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.
@@ -418,7 +418,7 @@ function A(e, t = [], n = []) {
418
418
  }
419
419
  //#endregion
420
420
  //#region node_modules/lucide-react/dist/esm/icons/arrow-left.mjs
421
- var ne = {
421
+ var j = {
422
422
  name: "arrow-left",
423
423
  size: 24,
424
424
  node: [["path", {
@@ -429,8 +429,8 @@ var ne = {
429
429
  key: "x3x0zl"
430
430
  }]]
431
431
  };
432
- ne.node;
433
- var re = A(ne), j = {
432
+ j.node;
433
+ var ne = A(j), M = {
434
434
  name: "arrow-right",
435
435
  size: 24,
436
436
  node: [["path", {
@@ -441,8 +441,8 @@ var re = A(ne), j = {
441
441
  key: "xquz4c"
442
442
  }]]
443
443
  };
444
- j.node;
445
- var ie = A(j), M = {
444
+ M.node;
445
+ var re = A(M), N = {
446
446
  name: "briefcase",
447
447
  size: 24,
448
448
  node: [["path", {
@@ -457,8 +457,8 @@ var ie = A(j), M = {
457
457
  key: "i6l2r4"
458
458
  }]]
459
459
  };
460
- M.node;
461
- var ae = A(M), N = {
460
+ N.node;
461
+ var ie = A(N), P = {
462
462
  name: "building-complex",
463
463
  size: 24,
464
464
  node: [
@@ -485,8 +485,8 @@ var ae = A(M), N = {
485
485
  ],
486
486
  aliases: ["building-2"]
487
487
  };
488
- N.node;
489
- var oe = A(N), se = {
488
+ P.node;
489
+ var ae = A(P), oe = {
490
490
  name: "check",
491
491
  size: 24,
492
492
  node: [["path", {
@@ -494,8 +494,8 @@ var oe = A(N), se = {
494
494
  key: "1gmf2c"
495
495
  }]]
496
496
  };
497
- se.node;
498
- var ce = A(se), P = {
497
+ oe.node;
498
+ var se = A(oe), ce = {
499
499
  name: "chevron-down",
500
500
  size: 24,
501
501
  node: [["path", {
@@ -503,8 +503,8 @@ var ce = A(se), P = {
503
503
  key: "qrunsl"
504
504
  }]]
505
505
  };
506
- P.node;
507
- var le = A(P), ue = {
506
+ ce.node;
507
+ var le = A(ce), ue = {
508
508
  name: "circle-alert",
509
509
  size: 24,
510
510
  node: [
@@ -545,7 +545,7 @@ var de = A(ue), F = {
545
545
  aliases: ["check-circle"]
546
546
  };
547
547
  F.node;
548
- var fe = A(F), I = {
548
+ var I = A(F), L = {
549
549
  name: "clipboard-list",
550
550
  size: 24,
551
551
  node: [
@@ -580,8 +580,8 @@ var fe = A(F), I = {
580
580
  }]
581
581
  ]
582
582
  };
583
- I.node;
584
- var pe = A(I), L = {
583
+ L.node;
584
+ var fe = A(L), R = {
585
585
  name: "clock",
586
586
  size: 24,
587
587
  node: [["circle", {
@@ -594,8 +594,8 @@ var pe = A(I), L = {
594
594
  key: "mmk7yg"
595
595
  }]]
596
596
  };
597
- L.node;
598
- var me = A(L), he = {
597
+ R.node;
598
+ var pe = A(R), me = {
599
599
  name: "copy",
600
600
  size: 24,
601
601
  node: [["rect", {
@@ -611,8 +611,8 @@ var me = A(L), he = {
611
611
  key: "zix9uf"
612
612
  }]]
613
613
  };
614
- he.node;
615
- var ge = A(he), _e = {
614
+ me.node;
615
+ var he = A(me), ge = {
616
616
  name: "credit-card",
617
617
  size: 24,
618
618
  node: [
@@ -637,8 +637,8 @@ var ge = A(he), _e = {
637
637
  }]
638
638
  ]
639
639
  };
640
- _e.node;
641
- var ve = A(_e), R = {
640
+ ge.node;
641
+ var _e = A(ge), z = {
642
642
  name: "external-link",
643
643
  size: 24,
644
644
  node: [
@@ -656,8 +656,8 @@ var ve = A(_e), R = {
656
656
  }]
657
657
  ]
658
658
  };
659
- R.node;
660
- var ye = A(R), be = {
659
+ z.node;
660
+ var ve = A(z), ye = {
661
661
  name: "file-text",
662
662
  size: 24,
663
663
  node: [
@@ -683,8 +683,8 @@ var ye = A(R), be = {
683
683
  }]
684
684
  ]
685
685
  };
686
- be.node;
687
- var xe = A(be), Se = {
686
+ ye.node;
687
+ var be = A(ye), xe = {
688
688
  name: "folder-open",
689
689
  size: 24,
690
690
  node: [["path", {
@@ -692,8 +692,8 @@ var xe = A(be), Se = {
692
692
  key: "usdka0"
693
693
  }]]
694
694
  };
695
- Se.node;
696
- var Ce = A(Se), z = {
695
+ xe.node;
696
+ var Se = A(xe), Ce = {
697
697
  name: "graduation-cap",
698
698
  size: 24,
699
699
  node: [
@@ -711,8 +711,8 @@ var Ce = A(Se), z = {
711
711
  }]
712
712
  ]
713
713
  };
714
- z.node;
715
- var we = A(z), B = {
714
+ Ce.node;
715
+ var B = A(Ce), V = {
716
716
  name: "info",
717
717
  size: 24,
718
718
  node: [
@@ -732,8 +732,8 @@ var we = A(z), B = {
732
732
  }]
733
733
  ]
734
734
  };
735
- B.node;
736
- var V = A(B), H = {
735
+ V.node;
736
+ var H = A(V), U = {
737
737
  name: "key-round",
738
738
  size: 24,
739
739
  node: [["path", {
@@ -747,8 +747,8 @@ var V = A(B), H = {
747
747
  key: "w0ekpg"
748
748
  }]]
749
749
  };
750
- H.node;
751
- var Te = A(H), Ee = {
750
+ U.node;
751
+ var W = A(U), we = {
752
752
  name: "key",
753
753
  size: 24,
754
754
  node: [
@@ -768,8 +768,8 @@ var Te = A(H), Ee = {
768
768
  }]
769
769
  ]
770
770
  };
771
- Ee.node;
772
- var U = A(Ee), W = {
771
+ we.node;
772
+ var Te = A(we), G = {
773
773
  name: "lock",
774
774
  size: 24,
775
775
  node: [["rect", {
@@ -785,8 +785,8 @@ var U = A(Ee), W = {
785
785
  key: "fwvmzm"
786
786
  }]]
787
787
  };
788
- W.node;
789
- var G = A(W), K = {
788
+ G.node;
789
+ var K = A(G), q = {
790
790
  name: "log-in",
791
791
  size: 24,
792
792
  node: [
@@ -804,8 +804,8 @@ var G = A(W), K = {
804
804
  }]
805
805
  ]
806
806
  };
807
- K.node;
808
- var De = A(K), q = {
807
+ q.node;
808
+ var Ee = A(q), De = {
809
809
  name: "log-out",
810
810
  size: 24,
811
811
  node: [
@@ -823,8 +823,8 @@ var De = A(K), q = {
823
823
  }]
824
824
  ]
825
825
  };
826
- q.node;
827
- var J = A(q), Oe = {
826
+ De.node;
827
+ var J = A(De), Y = {
828
828
  name: "mail",
829
829
  size: 24,
830
830
  node: [["path", {
@@ -839,8 +839,8 @@ var J = A(q), Oe = {
839
839
  key: "izxlao"
840
840
  }]]
841
841
  };
842
- Oe.node;
843
- var ke = A(Oe), Ae = {
842
+ Y.node;
843
+ var Oe = A(Y), ke = {
844
844
  name: "map-pin",
845
845
  size: 24,
846
846
  node: [["path", {
@@ -853,8 +853,8 @@ var ke = A(Oe), Ae = {
853
853
  key: "ilqhr7"
854
854
  }]]
855
855
  };
856
- Ae.node;
857
- var je = A(Ae), Me = {
856
+ ke.node;
857
+ var Ae = A(ke), je = {
858
858
  name: "maximize-2",
859
859
  size: 24,
860
860
  node: [
@@ -876,8 +876,8 @@ var je = A(Ae), Me = {
876
876
  }]
877
877
  ]
878
878
  };
879
- Me.node;
880
- var Ne = A(Me), Pe = {
879
+ je.node;
880
+ var Me = A(je), Ne = {
881
881
  name: "minimize-2",
882
882
  size: 24,
883
883
  node: [
@@ -899,8 +899,8 @@ var Ne = A(Me), Pe = {
899
899
  }]
900
900
  ]
901
901
  };
902
- Pe.node;
903
- var Fe = A(Pe), Ie = {
902
+ Ne.node;
903
+ var Pe = A(Ne), Fe = {
904
904
  name: "move",
905
905
  size: 24,
906
906
  node: [
@@ -930,8 +930,8 @@ var Fe = A(Pe), Ie = {
930
930
  }]
931
931
  ]
932
932
  };
933
- Ie.node;
934
- var Le = A(Ie), Re = {
933
+ Fe.node;
934
+ var Ie = A(Fe), Le = {
935
935
  name: "package-check",
936
936
  size: 24,
937
937
  node: [
@@ -957,8 +957,8 @@ var Le = A(Ie), Re = {
957
957
  }]
958
958
  ]
959
959
  };
960
- Re.node;
961
- var ze = A(Re), Y = {
960
+ Le.node;
961
+ var Re = A(Le), ze = {
962
962
  name: "phone",
963
963
  size: 24,
964
964
  node: [["path", {
@@ -966,8 +966,8 @@ var ze = A(Re), Y = {
966
966
  key: "9njp5v"
967
967
  }]]
968
968
  };
969
- Y.node;
970
- var Be = A(Y), Ve = {
969
+ ze.node;
970
+ var X = A(ze), Be = {
971
971
  name: "receipt",
972
972
  size: 24,
973
973
  node: [
@@ -985,8 +985,8 @@ var Be = A(Y), Ve = {
985
985
  }]
986
986
  ]
987
987
  };
988
- Ve.node;
989
- var He = A(Ve), X = {
988
+ Be.node;
989
+ var Ve = A(Be), He = {
990
990
  name: "search",
991
991
  size: 24,
992
992
  node: [["path", {
@@ -999,8 +999,8 @@ var He = A(Ve), X = {
999
999
  key: "4ej97u"
1000
1000
  }]]
1001
1001
  };
1002
- X.node;
1003
- var Ue = A(X), Z = {
1002
+ He.node;
1003
+ var Ue = A(He), Z = {
1004
1004
  name: "sparkles",
1005
1005
  size: 24,
1006
1006
  node: [
@@ -1123,7 +1123,7 @@ var Ze = A(Xe), Qe = {
1123
1123
  };
1124
1124
  Qe.node;
1125
1125
  var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpanded: a, onToggleExpand: o, onClose: c, onChange: l, initialValues: u, isDark: h = !1, apiClient: g, storage: _, onError: v, onEvent: y, backgroundStyle: b, ticketType: x, showReviewFields: S = !1 }) => {
1126
- let [C, w] = d(u || {}), [T, E] = d(null), [D, ee] = d(null), [te, O] = d({}), [k, A] = d({}), [ne, j] = d(null), [M, ae] = d(null), N = r?.primaryColor || "#c026d3";
1126
+ let [C, w] = d(u || {}), [T, E] = d(null), [D, ee] = d(null), [te, O] = d({}), [k, A] = d({}), [j, M] = d(null), [N, ie] = d(null), P = r?.primaryColor || "#c026d3";
1127
1127
  s(() => {
1128
1128
  if (u && Object.keys(u).length > 0) {
1129
1129
  w((e) => ({
@@ -1145,7 +1145,7 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1145
1145
  }));
1146
1146
  }
1147
1147
  }, [u, e]);
1148
- let oe = (e, t) => {
1148
+ let ae = (e, t) => {
1149
1149
  w((n) => {
1150
1150
  let r = {
1151
1151
  ...n,
@@ -1153,9 +1153,9 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1153
1153
  };
1154
1154
  return l?.(r), r;
1155
1155
  });
1156
- }, se = async (e, t) => {
1156
+ }, oe = async (e, t) => {
1157
1157
  if (!g) return;
1158
- E(e), j(null), ae(null);
1158
+ E(e), M(null), ie(null);
1159
1159
  let n = _?.getToken?.() || null, r = te[e];
1160
1160
  try {
1161
1161
  let i = await g.uploadFile(t, n, n ? null : ue()), a = i?.data?.asset_id || i?.asset_id, o = i?.data?.serve_url || i?.serve_url;
@@ -1187,7 +1187,7 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1187
1187
  }
1188
1188
  } catch (t) {
1189
1189
  let n = t?.message || "File upload failed. Please try again.";
1190
- j(n), ae(e), v?.({
1190
+ M(n), ie(e), v?.({
1191
1191
  type: "file_upload_error",
1192
1192
  message: n,
1193
1193
  error: t
@@ -1195,10 +1195,10 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1195
1195
  } finally {
1196
1196
  E(null);
1197
1197
  }
1198
- }, P = async (e) => {
1198
+ }, ce = async (e) => {
1199
1199
  if (!g) return;
1200
1200
  let t = _?.getToken?.() || null, n = te[e] || C[e];
1201
- ee(e), j(null), ae(null);
1201
+ ee(e), M(null), ie(null);
1202
1202
  try {
1203
1203
  n && (await g.deleteFile(n, t), y?.("file_deleted", {
1204
1204
  fieldId: e,
@@ -1218,7 +1218,7 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1218
1218
  });
1219
1219
  } catch (t) {
1220
1220
  let n = t?.message || "Failed to delete file. Please try again.";
1221
- j(n), ae(e), v?.({
1221
+ M(n), ie(e), v?.({
1222
1222
  type: "file_delete_error",
1223
1223
  message: n,
1224
1224
  error: t
@@ -1234,7 +1234,7 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1234
1234
  if (e.helperText) return e.helperText;
1235
1235
  let t = (e.label || e.id || "").toLowerCase(), n = e.type;
1236
1236
  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;
1237
- }, fe = (e) => {
1237
+ }, I = (e) => {
1238
1238
  let t = k[e.id] || (C[e.id] && String(C[e.id]).startsWith("http") ? C[e.id] : "");
1239
1239
  return /* @__PURE__ */ p("div", {
1240
1240
  className: "space-y-2 mt-2",
@@ -1249,11 +1249,11 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1249
1249
  children: [/* @__PURE__ */ p("div", {
1250
1250
  className: "w-10 h-10 rounded-xl flex items-center justify-center shrink-0 border",
1251
1251
  style: {
1252
- backgroundColor: h ? "rgba(255,255,255,0.06)" : `color-mix(in srgb, ${N} 10%, white)`,
1253
- borderColor: h ? "rgba(255,255,255,0.12)" : `color-mix(in srgb, ${N} 25%, white)`,
1254
- color: N
1252
+ backgroundColor: h ? "rgba(255,255,255,0.06)" : `color-mix(in srgb, ${P} 10%, white)`,
1253
+ borderColor: h ? "rgba(255,255,255,0.12)" : `color-mix(in srgb, ${P} 25%, white)`,
1254
+ color: P
1255
1255
  },
1256
- children: /* @__PURE__ */ p(Ce, { size: 18 })
1256
+ children: /* @__PURE__ */ p(Se, { size: 18 })
1257
1257
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
1258
1258
  className: `text-xs font-bold ${h ? "text-zinc-200" : "text-gray-900"}`,
1259
1259
  children: e.label
@@ -1273,30 +1273,30 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1273
1273
  disabled: T === e.id || D === e.id,
1274
1274
  onChange: (t) => {
1275
1275
  let n = t.target.files?.[0];
1276
- n && se(e.id, n), t.target.value = "";
1276
+ n && oe(e.id, n), t.target.value = "";
1277
1277
  }
1278
1278
  }), /* @__PURE__ */ m("div", {
1279
1279
  className: `flex items-center gap-1.5 py-2 px-3.5 rounded-xl text-xs font-semibold border transition-all shadow-2xs ${h ? "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"}`,
1280
1280
  children: [/* @__PURE__ */ p(Ye, {
1281
1281
  size: 14,
1282
- style: { color: N }
1282
+ style: { color: P }
1283
1283
  }), /* @__PURE__ */ p("span", { children: T === e.id ? "Uploading..." : t ? "Replace File" : "Choose File" })]
1284
1284
  })]
1285
1285
  }), t && typeof t == "string" && t.trim() !== "" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("button", {
1286
1286
  type: "button",
1287
1287
  onClick: () => window.open(t, "_blank", "noopener,noreferrer"),
1288
1288
  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",
1289
- style: { backgroundColor: N },
1289
+ style: { backgroundColor: P },
1290
1290
  title: "Open file in new tab",
1291
1291
  children: [
1292
- /* @__PURE__ */ p(xe, { size: 13 }),
1292
+ /* @__PURE__ */ p(be, { size: 13 }),
1293
1293
  /* @__PURE__ */ p("span", { children: "View" }),
1294
- /* @__PURE__ */ p(ye, { size: 11 })
1294
+ /* @__PURE__ */ p(ve, { size: 11 })
1295
1295
  ]
1296
1296
  }), /* @__PURE__ */ m("button", {
1297
1297
  type: "button",
1298
1298
  disabled: D === e.id || T === e.id,
1299
- onClick: () => P(e.id),
1299
+ onClick: () => ce(e.id),
1300
1300
  className: `flex items-center gap-1 py-2 px-3 rounded-xl text-xs font-semibold border transition-colors cursor-pointer ${h ? "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"}`,
1301
1301
  title: "Delete uploaded file",
1302
1302
  children: [/* @__PURE__ */ p(qe, { size: 13 }), /* @__PURE__ */ p("span", { children: D === e.id ? "Deleting..." : "Delete" })]
@@ -1305,7 +1305,7 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1305
1305
  }),
1306
1306
  t && /* @__PURE__ */ m("div", {
1307
1307
  className: `mt-2.5 pt-2 border-t text-2xs truncate flex items-center gap-1.5 ${h ? "border-zinc-800 text-zinc-300" : "border-gray-200 text-gray-700 font-medium"}`,
1308
- children: [/* @__PURE__ */ p(ce, {
1308
+ children: [/* @__PURE__ */ p(se, {
1309
1309
  size: 12,
1310
1310
  className: "text-emerald-500 shrink-0"
1311
1311
  }), /* @__PURE__ */ m("span", {
@@ -1313,14 +1313,14 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1313
1313
  children: ["Attached: ", t]
1314
1314
  })]
1315
1315
  }),
1316
- ne && M === e.id && /* @__PURE__ */ p("div", {
1316
+ j && N === e.id && /* @__PURE__ */ p("div", {
1317
1317
  className: "text-xs text-red-500 mt-2 font-medium",
1318
- children: ne
1318
+ children: j
1319
1319
  })
1320
1320
  ]
1321
1321
  })
1322
1322
  });
1323
- }, I = (e) => {
1323
+ }, L = (e) => {
1324
1324
  if (!e) return null;
1325
1325
  let t = C[e.id] ?? "", n = F(e), r = e.type === "email" || (e.label || "").toLowerCase().includes("email"), i = (e.label || "").toLowerCase().includes("name"), a = `vx-field-${e.id}`, o = `w-full px-4 py-3 text-[15px] font-medium rounded-xl border transition-all focus:outline-none ${h ? "bg-zinc-900 border-zinc-700 text-white placeholder:text-zinc-500 hover:border-zinc-600 focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_20%,transparent)]" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400 hover:border-slate-300 shadow-[0_1px_2px_rgba(15,23,42,0.04)] focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_15%,transparent)]"}`;
1326
1326
  return /* @__PURE__ */ m("div", {
@@ -1352,7 +1352,7 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1352
1352
  id: a,
1353
1353
  required: e.required,
1354
1354
  value: t,
1355
- onChange: (t) => oe(e.id, t.target.value),
1355
+ onChange: (t) => ae(e.id, t.target.value),
1356
1356
  className: `${o} pr-10 appearance-none cursor-pointer`,
1357
1357
  children: [/* @__PURE__ */ p("option", {
1358
1358
  value: "",
@@ -1367,26 +1367,26 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1367
1367
  className: `absolute inset-y-0 right-0 flex items-center pr-3.5 pointer-events-none ${h ? "text-zinc-400" : "text-slate-400"}`,
1368
1368
  children: /* @__PURE__ */ p(le, { size: 16 })
1369
1369
  })]
1370
- }) : e.type === "file" ? fe(e) : /* @__PURE__ */ p("input", {
1370
+ }) : e.type === "file" ? I(e) : /* @__PURE__ */ p("input", {
1371
1371
  part: "input",
1372
1372
  id: a,
1373
1373
  type: e.type === "phone" ? "tel" : e.type === "email" ? "email" : e.type === "number" ? "number" : "text",
1374
1374
  required: e.required,
1375
1375
  value: t,
1376
1376
  placeholder: e.placeholder || (r ? "Enter your email address" : i ? "Your full name" : `Enter your ${e.label.toLowerCase()}`),
1377
- onChange: (t) => oe(e.id, t.target.value),
1377
+ onChange: (t) => ae(e.id, t.target.value),
1378
1378
  className: o
1379
1379
  })
1380
1380
  ]
1381
1381
  }, e.id);
1382
- }, pe = (e) => {
1382
+ }, fe = (e) => {
1383
1383
  e.preventDefault();
1384
1384
  for (let e of de) if (e.type === "file" && e.required && !C[e.id]) {
1385
- j(`Please upload ${e.label || "a file"}`), ae(e.id);
1385
+ M(`Please upload ${e.label || "a file"}`), ie(e.id);
1386
1386
  return;
1387
1387
  }
1388
1388
  t(C);
1389
- }, L = x?.type || x?.name || "Registration Form", me = x ? Number(x.price) > 0 ? [x.currency, Number(x.price).toLocaleString()].filter(Boolean).join(" ") : "Free" : null;
1389
+ }, R = x?.type || x?.name || "Registration Form", pe = x ? Number(x.price) > 0 ? [x.currency, Number(x.price).toLocaleString()].filter(Boolean).join(" ") : "Free" : null;
1390
1390
  return /* @__PURE__ */ m("div", {
1391
1391
  part: "form-page",
1392
1392
  className: `w-full flex-1 flex flex-col relative ${h ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"}`,
@@ -1401,29 +1401,29 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1401
1401
  type: "button",
1402
1402
  onClick: n,
1403
1403
  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 ${h ? "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)]"}`,
1404
- children: [/* @__PURE__ */ p(re, { size: 16 }), /* @__PURE__ */ p("span", { children: "All forms" })]
1404
+ children: [/* @__PURE__ */ p(ne, { size: 16 }), /* @__PURE__ */ p("span", { children: "All forms" })]
1405
1405
  }), /* @__PURE__ */ m("div", {
1406
1406
  className: "flex items-center gap-2 min-w-0",
1407
1407
  children: [x && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
1408
1408
  part: "form-type-name",
1409
- title: L,
1409
+ title: R,
1410
1410
  className: `hidden sm:inline-block truncate max-w-[16rem] text-xs font-semibold px-3 py-1.5 rounded-full ${h ? "bg-zinc-800 text-zinc-200" : "bg-slate-100 text-slate-700"}`,
1411
- children: L
1411
+ children: R
1412
1412
  }), !S && /* @__PURE__ */ p("span", {
1413
1413
  part: "form-type-price",
1414
1414
  className: "shrink-0 text-xs font-bold px-3 py-1.5 rounded-full tabular-nums",
1415
1415
  style: {
1416
- backgroundColor: `color-mix(in srgb, ${N} 12%, transparent)`,
1417
- color: N
1416
+ backgroundColor: `color-mix(in srgb, ${P} 12%, transparent)`,
1417
+ color: P
1418
1418
  },
1419
- children: me
1419
+ children: pe
1420
1420
  })] }), i === "popup" && /* @__PURE__ */ m("div", {
1421
1421
  className: `flex items-center gap-1.5 ml-2 border-l pl-2 ${h ? "border-zinc-700" : "border-slate-200"}`,
1422
1422
  children: [/* @__PURE__ */ p("button", {
1423
1423
  onClick: o,
1424
1424
  className: "p-1.5 opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
1425
1425
  title: a ? "Minimize" : "Expand",
1426
- children: p(a ? Fe : Ne, { size: 16 })
1426
+ children: p(a ? Pe : Me, { size: 16 })
1427
1427
  }), /* @__PURE__ */ p("button", {
1428
1428
  onClick: c,
1429
1429
  className: "p-1.5 opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
@@ -1436,7 +1436,7 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1436
1436
  className: "w-full flex-1 overflow-y-auto",
1437
1437
  children: /* @__PURE__ */ m("form", {
1438
1438
  part: "form",
1439
- onSubmit: pe,
1439
+ onSubmit: fe,
1440
1440
  className: "max-w-3xl mx-auto w-full px-4 sm:px-6 py-8 sm:py-10 space-y-5",
1441
1441
  children: [
1442
1442
  /* @__PURE__ */ m("div", {
@@ -1444,18 +1444,18 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1444
1444
  className: "px-1",
1445
1445
  children: [/* @__PURE__ */ p("p", {
1446
1446
  className: "text-xs font-semibold uppercase tracking-wider",
1447
- style: { color: N },
1447
+ style: { color: P },
1448
1448
  children: S ? "Abstract submission" : "Registration form"
1449
1449
  }), /* @__PURE__ */ p("h2", {
1450
1450
  part: "form-title",
1451
1451
  className: `mt-1.5 text-2xl sm:text-3xl font-bold tracking-tight ${h ? "text-white" : "text-slate-900"}`,
1452
1452
  style: $,
1453
- children: L
1453
+ children: R
1454
1454
  })]
1455
1455
  }),
1456
1456
  u && Object.keys(u).length > 0 && /* @__PURE__ */ m("div", {
1457
1457
  className: `text-sm px-4 py-3 rounded-2xl flex items-center gap-2.5 ${h ? "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"}`,
1458
- children: [/* @__PURE__ */ p(ce, {
1458
+ children: [/* @__PURE__ */ p(se, {
1459
1459
  size: 16,
1460
1460
  className: "shrink-0"
1461
1461
  }), /* @__PURE__ */ p("span", {
@@ -1467,17 +1467,17 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1467
1467
  part: "notice",
1468
1468
  className: "rounded-2xl p-4 flex items-start gap-3",
1469
1469
  style: {
1470
- backgroundColor: `color-mix(in srgb, ${N} ${h ? 14 : 7}%, transparent)`,
1471
- boxShadow: `inset 0 0 0 1px color-mix(in srgb, ${N} 20%, transparent)`
1470
+ backgroundColor: `color-mix(in srgb, ${P} ${h ? 14 : 7}%, transparent)`,
1471
+ boxShadow: `inset 0 0 0 1px color-mix(in srgb, ${P} 20%, transparent)`
1472
1472
  },
1473
1473
  children: [/* @__PURE__ */ p("div", {
1474
1474
  className: "shrink-0 mt-0.5",
1475
- style: { color: N },
1476
- children: /* @__PURE__ */ p(V, { size: 18 })
1475
+ style: { color: P },
1476
+ children: /* @__PURE__ */ p(H, { size: 18 })
1477
1477
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
1478
1478
  part: "notice-title",
1479
1479
  className: "text-xs font-bold uppercase tracking-wider",
1480
- style: { color: N },
1480
+ style: { color: P },
1481
1481
  children: "Before you submit"
1482
1482
  }), /* @__PURE__ */ m("p", {
1483
1483
  className: `text-sm mt-0.5 leading-relaxed ${h ? "text-zinc-300" : "text-slate-600"}`,
@@ -1494,7 +1494,7 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1494
1494
  /* @__PURE__ */ p("div", {
1495
1495
  part: "form-card",
1496
1496
  className: `rounded-3xl border overflow-hidden divide-y ${h ? "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)]"}`,
1497
- children: de.map((e) => I(e))
1497
+ children: de.map((e) => L(e))
1498
1498
  }),
1499
1499
  /* @__PURE__ */ m("div", {
1500
1500
  className: "pt-2 pb-10",
@@ -1503,11 +1503,11 @@ var $e = A(Qe), $ = { fontFamily: "var(--vx-font-heading)" }, et = ({ schema: e,
1503
1503
  type: "submit",
1504
1504
  disabled: T !== null || D !== null,
1505
1505
  style: {
1506
- background: `linear-gradient(135deg, ${N}, color-mix(in srgb, ${N} 80%, black))`,
1507
- boxShadow: `0 12px 28px -12px color-mix(in srgb, ${N} 70%, transparent)`
1506
+ background: `linear-gradient(135deg, ${P}, color-mix(in srgb, ${P} 80%, black))`,
1507
+ boxShadow: `0 12px 28px -12px color-mix(in srgb, ${P} 70%, transparent)`
1508
1508
  },
1509
1509
  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",
1510
- children: [/* @__PURE__ */ p("span", { children: S ? "Submit Abstract" : "Complete Registration" }), /* @__PURE__ */ p(ie, {
1510
+ children: [/* @__PURE__ */ p("span", { children: S ? "Submit Abstract" : "Complete Registration" }), /* @__PURE__ */ p(re, {
1511
1511
  size: 18,
1512
1512
  className: "transition-transform group-hover:translate-x-0.5"
1513
1513
  })]
@@ -1541,16 +1541,16 @@ function nt(e, t = "") {
1541
1541
  //#endregion
1542
1542
  //#region src/widget/components/AttendeePortal.tsx
1543
1543
  var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1, isWidgetPage: a = !1, onEvent: o, onError: c }) => {
1544
- 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(""), [ne, j] = d(""), [M, N] = d(""), [se, P] = d(""), [ue, F] = d(!1), [I, pe] = d(null), [L, me] = d({}), [he, ge] = d([]), [_e, R] = d({}), [be, Se] = d(null), [z, B] = d(null), [V, H] = d(null), [Ee, W] = d(!1);
1544
+ 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, M] = d(""), [N, P] = d(""), [oe, ce] = d(""), [ue, F] = d(!1), [L, fe] = d(null), [R, pe] = d({}), [me, he] = d([]), [ge, z] = d({}), [ye, xe] = d(null), [Ce, V] = d(null), [H, U] = d(null), [we, G] = d(!1);
1545
1545
  s(() => {
1546
1546
  let e = t.getToken();
1547
- e && K(e);
1547
+ e && q(e);
1548
1548
  }, []);
1549
- let K = async (r) => {
1549
+ let q = async (r) => {
1550
1550
  g(!0), S(null);
1551
1551
  try {
1552
1552
  let i = await e.portalGetProfile(r), a = i?.data || i || {};
1553
- pe(a);
1553
+ fe(a);
1554
1554
  let s = a.registration || {}, c = s.custom_data || {}, l = s.email || a.email || "", d = null;
1555
1555
  if (l) try {
1556
1556
  let t = await e.getDraftByEmail(l);
@@ -1568,7 +1568,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1568
1568
  let f = d?.custom_data || {};
1569
1569
  s.name ? O(s.name) : d?.name ? O(d.name) : a.name && O(a.name);
1570
1570
  let p = 0, m = {}, h = [...a.editable_fields || []];
1571
- pe({
1571
+ fe({
1572
1572
  ...a,
1573
1573
  editable_fields: h
1574
1574
  });
@@ -1578,12 +1578,12 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1578
1578
  let t = s[`${e.id}_asset_id`] || c[`${e.id}_asset_id`] || s.asset_id || c.asset_id || a.asset_id;
1579
1579
  t && (g[e.id] = String(t));
1580
1580
  }
1581
- }), R((e) => ({
1581
+ }), z((e) => ({
1582
1582
  ...g,
1583
1583
  ...e
1584
1584
  }));
1585
1585
  let _ = s.asset_id || s.photo_id || c.asset_id || c.photo_id || a.asset_id;
1586
- _ && Se(String(_)), h.length > 0 ? h.forEach((e) => {
1586
+ _ && xe(String(_)), h.length > 0 ? h.forEach((e) => {
1587
1587
  let t = e.label || e.name || e.id, n = tt(e.id, e.label), r = nt(e.label, e.id), i = "";
1588
1588
  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) {
1589
1589
  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);
@@ -1592,12 +1592,12 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1592
1592
  m[e.id] = i;
1593
1593
  }) : Object.entries(a).forEach(([e, t]) => {
1594
1594
  e.toLowerCase() !== "token" && (m[e] = t);
1595
- }), me(m), p > 0 && W(!0);
1595
+ }), pe(m), p > 0 && G(!0);
1596
1596
  let v = (a.addons?.items || []).filter((e) => e.purchased).map((e) => e.name);
1597
1597
  d?.selected_items && Array.isArray(d.selected_items) && d.selected_items.forEach((e) => {
1598
1598
  let t = typeof e == "string" ? e : e?.name;
1599
1599
  t && !v.includes(t) && v.push(t);
1600
- }), ge(v), u("profile"), o?.("attendee_profile_loaded", {
1600
+ }), he(v), u("profile"), o?.("attendee_profile_loaded", {
1601
1601
  profile: a,
1602
1602
  draft: d
1603
1603
  });
@@ -1606,7 +1606,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1606
1606
  } finally {
1607
1607
  g(!1);
1608
1608
  }
1609
- }, q = async (r) => {
1609
+ }, De = async (r) => {
1610
1610
  if (r.preventDefault(), !T.trim() || !D) {
1611
1611
  S("Please enter both your identifier and password.");
1612
1612
  return;
@@ -1621,7 +1621,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1621
1621
  (n?.data?.name || n?.name) && O(n.data?.name || n.name), t.setToken(r), o?.("attendee_logged_in", {
1622
1622
  identifier: T,
1623
1623
  response: n
1624
- }), await K(r);
1624
+ }), await q(r);
1625
1625
  } catch (e) {
1626
1626
  n.error("Login failed", e);
1627
1627
  let t = e.message || "Login failed. Please check your credentials.";
@@ -1633,7 +1633,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1633
1633
  } finally {
1634
1634
  g(!1);
1635
1635
  }
1636
- }, Oe = async (t) => {
1636
+ }, Y = async (t) => {
1637
1637
  t.preventDefault();
1638
1638
  let r = (k || T).trim();
1639
1639
  if (!r) {
@@ -1654,22 +1654,22 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1654
1654
  } finally {
1655
1655
  F(!1);
1656
1656
  }
1657
- }, Ae = async (r) => {
1657
+ }, ke = async (r) => {
1658
1658
  r.preventDefault();
1659
1659
  let i = (k || T).trim();
1660
1660
  if (!i) {
1661
1661
  S("Please enter your registration number or email.");
1662
1662
  return;
1663
1663
  }
1664
- if (!ne.trim()) {
1664
+ if (!j.trim()) {
1665
1665
  S("Please enter the verification code sent to your email.");
1666
1666
  return;
1667
1667
  }
1668
- if (!M) {
1668
+ if (!N) {
1669
1669
  S("Please enter a new password.");
1670
1670
  return;
1671
1671
  }
1672
- if (M !== se) {
1672
+ if (N !== oe) {
1673
1673
  S("New password and confirm password do not match.");
1674
1674
  return;
1675
1675
  }
@@ -1677,13 +1677,13 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1677
1677
  try {
1678
1678
  let n = await e.portalConfirmPasswordReset({
1679
1679
  identifier: i,
1680
- code: ne.trim(),
1681
- new_password: M
1680
+ code: j.trim(),
1681
+ new_password: N
1682
1682
  }), r = n?.data?.token || n?.token;
1683
1683
  (n?.data?.name || n?.name) && O(n.data?.name || n.name), o?.("password_reset_success", {
1684
1684
  identifier: i,
1685
1685
  response: n
1686
- }), r ? (t.setToken(r), j(""), N(""), P(""), await K(r)) : (E(i), ee(""), j(""), N(""), P(""), u("login"), w("Password updated successfully! Please login with your new password."));
1686
+ }), r ? (t.setToken(r), M(""), P(""), ce(""), await q(r)) : (E(i), ee(""), M(""), P(""), ce(""), u("login"), w("Password updated successfully! Please login with your new password."));
1687
1687
  } catch (e) {
1688
1688
  n.error("Password reset failed", e);
1689
1689
  let t = e.message || "Failed to update password. Please check the code.";
@@ -1695,9 +1695,9 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1695
1695
  } finally {
1696
1696
  g(!1);
1697
1697
  }
1698
- }, Me = () => {
1699
- t.clearToken(), pe(null), me({}), ge([]), R({}), Se(null), H(null), O(""), ee(""), u("login"), w("Logged out successfully."), o?.("attendee_logged_out", {});
1700
- }, Ne = async (r, i) => {
1698
+ }, je = () => {
1699
+ t.clearToken(), fe(null), pe({}), he([]), z({}), xe(null), U(null), O(""), ee(""), u("login"), w("Logged out successfully."), o?.("attendee_logged_out", {});
1700
+ }, Me = async (r, i) => {
1701
1701
  let a = t.getToken();
1702
1702
  if (!a) {
1703
1703
  S("Session expired. Please log in again.");
@@ -1707,13 +1707,13 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1707
1707
  try {
1708
1708
  let t = await e.uploadFile(i, a), n = t?.data?.serve_url || t?.serve_url || "", s = t?.data?.asset_id || t?.asset_id;
1709
1709
  if (!s && !n) throw Error("Upload response missing asset_id");
1710
- n && me((e) => ({
1710
+ n && pe((e) => ({
1711
1711
  ...e,
1712
1712
  [r]: n
1713
- })), s && (R((e) => ({
1713
+ })), s && (z((e) => ({
1714
1714
  ...e,
1715
1715
  [r]: String(s)
1716
- })), Se(String(s))), w(`File "${i.name}" uploaded successfully!`), o?.("portal_file_uploaded", {
1716
+ })), xe(String(s))), w(`File "${i.name}" uploaded successfully!`), o?.("portal_file_uploaded", {
1717
1717
  fieldId: r,
1718
1718
  serveUrl: n,
1719
1719
  assetId: s,
@@ -1730,25 +1730,25 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1730
1730
  } finally {
1731
1731
  b(null);
1732
1732
  }
1733
- }, Pe = async (r) => {
1733
+ }, Ne = async (r) => {
1734
1734
  let i = t.getToken();
1735
1735
  if (!i) {
1736
1736
  S("Session expired. Please log in again.");
1737
1737
  return;
1738
1738
  }
1739
- let a = L[r], s = (a && typeof a == "object" ? a.id : null) || _e[r] || be;
1740
- B(r), S(null), w(null);
1739
+ let a = R[r], s = (a && typeof a == "object" ? a.id : null) || ge[r] || ye;
1740
+ V(r), S(null), w(null);
1741
1741
  try {
1742
1742
  s && (n.log(`Deleting asset ${s} for field ${r}...`), await e.portalDeleteFile(i, s), n.log(`Asset ${s} deleted successfully.`), o?.("portal_file_deleted", {
1743
1743
  assetId: s,
1744
1744
  fieldId: r
1745
- })), me((e) => ({
1745
+ })), pe((e) => ({
1746
1746
  ...e,
1747
1747
  [r]: ""
1748
- })), R((e) => {
1748
+ })), z((e) => {
1749
1749
  let t = { ...e };
1750
1750
  return delete t[r], t;
1751
- }), be === s && Se(null), w("File removed successfully.");
1751
+ }), ye === s && xe(null), w("File removed successfully.");
1752
1752
  } catch (e) {
1753
1753
  n.error("Failed to delete file", e);
1754
1754
  let t = e.message || "Failed to delete file. Please try again.";
@@ -1758,11 +1758,11 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1758
1758
  error: e
1759
1759
  });
1760
1760
  } finally {
1761
- B(null);
1761
+ V(null);
1762
1762
  }
1763
- }, Fe = (e, t) => {
1764
- t || ge((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
1765
- }, Ie = async (r) => {
1763
+ }, Pe = (e, t) => {
1764
+ t || he((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
1765
+ }, Fe = async (r) => {
1766
1766
  r.preventDefault();
1767
1767
  let i = t.getToken();
1768
1768
  if (!i) {
@@ -1771,11 +1771,11 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1771
1771
  }
1772
1772
  v(!0), S(null), w(null);
1773
1773
  try {
1774
- let t = I?.editable_fields || [], n = { ...I?.registration?.custom_data || {} }, r = {};
1774
+ let t = L?.editable_fields || [], n = { ...L?.registration?.custom_data || {} }, r = {};
1775
1775
  t.forEach((e) => {
1776
- let t = L[e.id], i = e.label || e.name || e.id, a = nt(e.label, e.id), o = tt(e.id, e.label);
1776
+ let t = R[e.id], i = e.label || e.name || e.id, a = nt(e.label, e.id), o = tt(e.id, e.label);
1777
1777
  e.type === "file" ? (delete n[i], delete n[a], delete n[o], delete n[e.id]) : 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));
1778
- }), r.custom_data = n, r.addons = he;
1778
+ }), r.custom_data = n, r.addons = me;
1779
1779
  let a = await e.portalUpdateProfile(i, r);
1780
1780
  o?.("attendee_profile_updated", {
1781
1781
  payload: r,
@@ -1783,10 +1783,10 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1783
1783
  });
1784
1784
  let s = a?.data?.addon_checkout?.payment_url || a?.addon_checkout?.payment_url || a?.data?.payment_url || a?.payment_url;
1785
1785
  if (s && typeof s == "string" && s.trim() !== "") {
1786
- H(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 K(i);
1786
+ U(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 q(i);
1787
1787
  return;
1788
1788
  }
1789
- w("Profile updated successfully!"), await K(i);
1789
+ w("Profile updated successfully!"), await q(i);
1790
1790
  } catch (e) {
1791
1791
  n.error("Failed to update profile", e);
1792
1792
  let t = e.message || "Failed to update profile. Please try again.";
@@ -1798,7 +1798,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1798
1798
  } finally {
1799
1799
  v(!1);
1800
1800
  }
1801
- }, Le = () => /* @__PURE__ */ m("div", {
1801
+ }, Ie = () => /* @__PURE__ */ m("div", {
1802
1802
  className: "absolute inset-0 pointer-events-none overflow-hidden z-0 select-none",
1803
1803
  children: [
1804
1804
  /* @__PURE__ */ p("div", {
@@ -1825,13 +1825,13 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1825
1825
  }
1826
1826
  })
1827
1827
  ]
1828
- }), Re = (e) => {
1828
+ }), Le = (e) => {
1829
1829
  let t = (e.label || e.id || "").toLowerCase(), n = e.type;
1830
- return n === "email" || t.includes("email") || t.includes("mail") ? /* @__PURE__ */ p(ke, {
1830
+ return n === "email" || t.includes("email") || t.includes("mail") ? /* @__PURE__ */ p(Oe, {
1831
1831
  size: 13,
1832
1832
  className: "shrink-0",
1833
1833
  style: { color: r }
1834
- }) : n === "phone" || t.includes("phone") || t.includes("mobile") || t.includes("contact") ? /* @__PURE__ */ p(Be, {
1834
+ }) : n === "phone" || t.includes("phone") || t.includes("mobile") || t.includes("contact") ? /* @__PURE__ */ p(X, {
1835
1835
  size: 13,
1836
1836
  className: "shrink-0",
1837
1837
  style: { color: r }
@@ -1843,30 +1843,30 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1843
1843
  size: 13,
1844
1844
  className: "shrink-0",
1845
1845
  style: { color: r }
1846
- }) : t.includes("designat") || t.includes("role") || t.includes("position") || t.includes("profession") ? /* @__PURE__ */ p(ae, {
1846
+ }) : t.includes("designat") || t.includes("role") || t.includes("position") || t.includes("profession") ? /* @__PURE__ */ p(ie, {
1847
1847
  size: 13,
1848
1848
  className: "shrink-0",
1849
1849
  style: { color: r }
1850
- }) : t.includes("specialis") || t.includes("specializ") || t.includes("department") || t.includes("degree") ? /* @__PURE__ */ p(we, {
1850
+ }) : t.includes("specialis") || t.includes("specializ") || t.includes("department") || t.includes("degree") ? /* @__PURE__ */ p(B, {
1851
1851
  size: 13,
1852
1852
  className: "shrink-0",
1853
1853
  style: { color: r }
1854
- }) : t.includes("organi") || t.includes("institute") || t.includes("hospital") || t.includes("company") || t.includes("college") ? /* @__PURE__ */ p(oe, {
1854
+ }) : t.includes("organi") || t.includes("institute") || t.includes("hospital") || t.includes("company") || t.includes("college") ? /* @__PURE__ */ p(ae, {
1855
1855
  size: 13,
1856
1856
  className: "shrink-0",
1857
1857
  style: { color: r }
1858
- }) : t.includes("city") || t.includes("state") || t.includes("country") || t.includes("address") ? /* @__PURE__ */ p(je, {
1858
+ }) : t.includes("city") || t.includes("state") || t.includes("country") || t.includes("address") ? /* @__PURE__ */ p(Ae, {
1859
1859
  size: 13,
1860
1860
  className: "shrink-0",
1861
1861
  style: { color: r }
1862
- }) : p(n === "file" ? Ce : xe, {
1862
+ }) : p(n === "file" ? Se : be, {
1863
1863
  size: 13,
1864
1864
  className: "shrink-0",
1865
1865
  style: { color: r }
1866
1866
  });
1867
- }, Y = (e, t = "w-full", n = []) => {
1867
+ }, ze = (e, t = "w-full", n = []) => {
1868
1868
  if (!e) return null;
1869
- let r = n.includes(e.id) || n.includes(tt(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)]"}`;
1869
+ let r = n.includes(e.id) || n.includes(tt(e.id, e.label)), a = R[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)]"}`;
1870
1870
  return /* @__PURE__ */ m("div", {
1871
1871
  className: `${t} px-2 mb-4`,
1872
1872
  children: [/* @__PURE__ */ m("div", {
@@ -1878,7 +1878,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1878
1878
  children: [
1879
1879
  /* @__PURE__ */ p("span", {
1880
1880
  className: i ? "text-zinc-500" : "text-slate-400",
1881
- children: Re(e)
1881
+ children: Le(e)
1882
1882
  }),
1883
1883
  /* @__PURE__ */ p("span", { children: e.label }),
1884
1884
  e.required && /* @__PURE__ */ p("span", {
@@ -1888,7 +1888,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1888
1888
  ]
1889
1889
  }), r ? /* @__PURE__ */ m("span", {
1890
1890
  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"}`,
1891
- children: [/* @__PURE__ */ p(G, { size: 10 }), " Locked"]
1891
+ children: [/* @__PURE__ */ p(K, { size: 10 }), " Locked"]
1892
1892
  }) : null]
1893
1893
  }), e.type === "select" ? /* @__PURE__ */ m("div", {
1894
1894
  className: "relative",
@@ -1897,8 +1897,8 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1897
1897
  id: o,
1898
1898
  disabled: r,
1899
1899
  value: a,
1900
- onChange: (t) => me({
1901
- ...L,
1900
+ onChange: (t) => pe({
1901
+ ...R,
1902
1902
  [e.id]: t.target.value
1903
1903
  }),
1904
1904
  className: `${s} pr-9 appearance-none cursor-pointer flex items-center`,
@@ -1919,21 +1919,21 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1919
1919
  className: `absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none ${i ? "text-zinc-400" : "text-slate-400"}`,
1920
1920
  children: /* @__PURE__ */ p(le, { size: 15 })
1921
1921
  })]
1922
- }) : e.type === "file" ? Ve(e, r, a) : /* @__PURE__ */ p("input", {
1922
+ }) : e.type === "file" ? Be(e, r, a) : /* @__PURE__ */ p("input", {
1923
1923
  part: "input",
1924
1924
  id: o,
1925
1925
  type: e.type === "phone" ? "tel" : e.type === "email" ? "email" : "text",
1926
1926
  disabled: r,
1927
1927
  value: a,
1928
1928
  placeholder: e.placeholder || `Enter ${e.label.toLowerCase()}`,
1929
- onChange: (t) => me({
1930
- ...L,
1929
+ onChange: (t) => pe({
1930
+ ...R,
1931
1931
  [e.id]: t.target.value
1932
1932
  }),
1933
1933
  className: s
1934
1934
  })]
1935
1935
  }, e.id);
1936
- }, Ve = (e, t, n) => {
1936
+ }, Be = (e, t, n) => {
1937
1937
  let a = y === e.id, o = e.label || e.name || e.id, s = typeof n == "string" ? n : n?.serve_url || n?.url || "", c = typeof n == "string" ? n : n?.file_name || s;
1938
1938
  return /* @__PURE__ */ p("div", {
1939
1939
  className: "space-y-2",
@@ -1952,7 +1952,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1952
1952
  borderColor: i ? "rgba(255,255,255,0.12)" : `color-mix(in srgb, ${r} 20%, white)`,
1953
1953
  color: r
1954
1954
  },
1955
- children: /* @__PURE__ */ p(Ce, { size: 16 })
1955
+ children: /* @__PURE__ */ p(Se, { size: 16 })
1956
1956
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
1957
1957
  className: `text-xs font-bold ${i ? "text-zinc-200" : "text-gray-900"}`,
1958
1958
  children: o
@@ -1970,23 +1970,23 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
1970
1970
  style: { backgroundColor: r },
1971
1971
  title: "Open file in new tab",
1972
1972
  children: [
1973
- /* @__PURE__ */ p(xe, { size: 13 }),
1973
+ /* @__PURE__ */ p(be, { size: 13 }),
1974
1974
  /* @__PURE__ */ p("span", { children: "View" }),
1975
- /* @__PURE__ */ p(ye, { size: 11 })
1975
+ /* @__PURE__ */ p(ve, { size: 11 })
1976
1976
  ]
1977
1977
  }), !t && /* @__PURE__ */ m("button", {
1978
1978
  type: "button",
1979
- disabled: z === e.id || a,
1980
- onClick: () => Pe(e.id),
1979
+ disabled: Ce === e.id || a,
1980
+ onClick: () => Ne(e.id),
1981
1981
  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"}`,
1982
1982
  title: "Remove file",
1983
- children: [/* @__PURE__ */ p(qe, { size: 13 }), /* @__PURE__ */ p("span", { children: z === e.id ? "Deleting..." : "Delete" })]
1983
+ children: [/* @__PURE__ */ p(qe, { size: 13 }), /* @__PURE__ */ p("span", { children: Ce === e.id ? "Deleting..." : "Delete" })]
1984
1984
  })] })
1985
1985
  })]
1986
1986
  }),
1987
1987
  n && /* @__PURE__ */ m("div", {
1988
1988
  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"}`,
1989
- children: [/* @__PURE__ */ p(ce, {
1989
+ children: [/* @__PURE__ */ p(se, {
1990
1990
  size: 12,
1991
1991
  className: "text-emerald-500 shrink-0"
1992
1992
  }), /* @__PURE__ */ m("span", {
@@ -2006,7 +2006,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2006
2006
  disabled: a,
2007
2007
  onChange: (t) => {
2008
2008
  let n = t.target.files?.[0];
2009
- n && Ne(e.id, n), t.target.value = "";
2009
+ n && Me(e.id, n), t.target.value = "";
2010
2010
  }
2011
2011
  }), /* @__PURE__ */ m("div", {
2012
2012
  className: `inline-flex items-center gap-1.5 py-1.5 px-3 rounded-lg text-xs font-semibold border transition-all shadow-2xs ${i ? "border-zinc-700 hover:border-zinc-600 text-zinc-200 bg-zinc-800 hover:bg-zinc-750" : "border-gray-300 hover:border-gray-400 text-gray-800 bg-white hover:bg-gray-50"}`,
@@ -2021,7 +2021,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2021
2021
  })
2022
2022
  });
2023
2023
  };
2024
- if (l === "profile" && !I) {
2024
+ if (l === "profile" && !L) {
2025
2025
  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)]"}`;
2026
2026
  return /* @__PURE__ */ m("div", {
2027
2027
  role: "status",
@@ -2033,7 +2033,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2033
2033
  className: "sr-only",
2034
2034
  children: "Loading your profile…"
2035
2035
  }),
2036
- Le(),
2036
+ Ie(),
2037
2037
  /* @__PURE__ */ m("div", {
2038
2038
  className: `max-w-3xl mx-auto w-full px-4 sm:px-6 ${a ? "py-8 sm:py-10" : "py-5"} space-y-5 relative z-10`,
2039
2039
  children: [/* @__PURE__ */ m("div", {
@@ -2075,7 +2075,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2075
2075
  });
2076
2076
  }
2077
2077
  if (l === "profile") {
2078
- let e = I?.registration || {}, t = I?.editable_fields || [], n = I?.locked_fields || [], o = I?.payment || {}, s = I?.addons?.items || [], c = te || "Attendee", l = c.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase()).join("") || "A", u = `rounded-3xl border p-5 sm:p-6 ${i ? "bg-zinc-900 border-zinc-800 text-white" : "bg-white border-slate-200/80 text-slate-900 shadow-[0_1px_2px_rgba(15,23,42,0.04),0_12px_32px_-16px_rgba(15,23,42,0.12)]"}`, d = i ? "text-zinc-400" : "text-slate-500", h = `text-base font-semibold tracking-tight ${i ? "text-white" : "text-slate-900"}`, g = [
2078
+ let e = L?.registration || {}, t = L?.editable_fields || [], n = L?.locked_fields || [], o = L?.payment || {}, s = L?.addons?.items || [], c = te || "Attendee", l = c.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase()).join("") || "A", u = `rounded-3xl border p-5 sm:p-6 ${i ? "bg-zinc-900 border-zinc-800 text-white" : "bg-white border-slate-200/80 text-slate-900 shadow-[0_1px_2px_rgba(15,23,42,0.04),0_12px_32px_-16px_rgba(15,23,42,0.12)]"}`, d = i ? "text-zinc-400" : "text-slate-500", h = `text-base font-semibold tracking-tight ${i ? "text-white" : "text-slate-900"}`, g = [
2079
2079
  {
2080
2080
  label: "Registration no.",
2081
2081
  value: e.registration_number || "N/A",
@@ -2097,7 +2097,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2097
2097
  onScroll: a ? void 0 : (e) => {
2098
2098
  e.currentTarget.scrollTop !== 0 && (e.currentTarget.scrollTop = 0), e.currentTarget.scrollLeft !== 0 && (e.currentTarget.scrollLeft = 0);
2099
2099
  },
2100
- children: [Le(), /* @__PURE__ */ p("div", {
2100
+ children: [Ie(), /* @__PURE__ */ p("div", {
2101
2101
  className: `${a ? "w-full flex-1" : "flex-1 overflow-y-auto min-h-0 overscroll-contain"} relative z-10`,
2102
2102
  children: /* @__PURE__ */ m("div", {
2103
2103
  className: `max-w-3xl mx-auto w-full px-4 sm:px-6 ${a ? "py-8 sm:py-10" : "py-5"} space-y-5`,
@@ -2135,7 +2135,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2135
2135
  })]
2136
2136
  }), /* @__PURE__ */ m("button", {
2137
2137
  part: "button button-secondary logout-button",
2138
- onClick: Me,
2138
+ onClick: je,
2139
2139
  className: `shrink-0 inline-flex items-center justify-center gap-1.5 h-9 w-9 sm:w-auto sm:px-3.5 text-[13px] font-semibold rounded-full border transition-colors cursor-pointer ${i ? "text-zinc-300 border-zinc-700 hover:bg-zinc-800 hover:text-red-300" : "text-slate-600 border-slate-200 bg-white hover:bg-red-50 hover:text-red-600 hover:border-red-200"}`,
2140
2140
  title: "Logout",
2141
2141
  "aria-label": "Logout",
@@ -2165,14 +2165,14 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2165
2165
  className: "mt-4 inline-flex items-center gap-1.5 text-[13px] font-semibold hover:underline underline-offset-4",
2166
2166
  style: { color: r },
2167
2167
  children: [
2168
- /* @__PURE__ */ p(He, { size: 14 }),
2168
+ /* @__PURE__ */ p(Ve, { size: 14 }),
2169
2169
  /* @__PURE__ */ p("span", { children: "View receipt" }),
2170
- /* @__PURE__ */ p(ye, { size: 12 })
2170
+ /* @__PURE__ */ p(ve, { size: 12 })
2171
2171
  ]
2172
2172
  })
2173
2173
  ]
2174
2174
  }),
2175
- V && /* @__PURE__ */ m("div", {
2175
+ H && /* @__PURE__ */ m("div", {
2176
2176
  className: "p-4 rounded-2xl flex flex-wrap items-center justify-between gap-3 text-sm",
2177
2177
  style: {
2178
2178
  backgroundColor: `color-mix(in srgb, ${r} ${i ? 14 : 7}%, transparent)`,
@@ -2180,18 +2180,18 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2180
2180
  },
2181
2181
  children: [/* @__PURE__ */ m("div", {
2182
2182
  className: `flex items-center gap-2.5 ${i ? "text-zinc-200" : "text-slate-700"}`,
2183
- children: [/* @__PURE__ */ p(ve, {
2183
+ children: [/* @__PURE__ */ p(_e, {
2184
2184
  size: 17,
2185
2185
  className: "shrink-0",
2186
2186
  style: { color: r }
2187
2187
  }), /* @__PURE__ */ p("span", { children: "Payment page opened in a new tab. If it didn't open:" })]
2188
2188
  }), /* @__PURE__ */ m("a", {
2189
- href: V,
2189
+ href: H,
2190
2190
  target: "_blank",
2191
2191
  rel: "noopener noreferrer",
2192
2192
  className: "inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold text-white shrink-0",
2193
2193
  style: { backgroundColor: r },
2194
- children: [/* @__PURE__ */ p("span", { children: "Complete payment" }), /* @__PURE__ */ p(ye, { size: 12 })]
2194
+ children: [/* @__PURE__ */ p("span", { children: "Complete payment" }), /* @__PURE__ */ p(ve, { size: 12 })]
2195
2195
  })]
2196
2196
  }),
2197
2197
  x && /* @__PURE__ */ m("div", {
@@ -2205,13 +2205,13 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2205
2205
  C && /* @__PURE__ */ m("div", {
2206
2206
  role: "status",
2207
2207
  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"}`,
2208
- children: [/* @__PURE__ */ p(fe, {
2208
+ children: [/* @__PURE__ */ p(I, {
2209
2209
  size: 17,
2210
2210
  className: "shrink-0 mt-0.5"
2211
2211
  }), /* @__PURE__ */ p("span", { children: C })]
2212
2212
  }),
2213
2213
  /* @__PURE__ */ m("form", {
2214
- onSubmit: Ie,
2214
+ onSubmit: Fe,
2215
2215
  className: "space-y-5",
2216
2216
  children: [
2217
2217
  t.length === 0 ? /* @__PURE__ */ p("div", {
@@ -2229,13 +2229,13 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2229
2229
  }), /* @__PURE__ */ p("p", {
2230
2230
  className: `text-[13px] mt-0.5 ${d}`,
2231
2231
  children: "Keep your information up to date."
2232
- })] }), Ee && /* @__PURE__ */ m("span", {
2232
+ })] }), we && /* @__PURE__ */ m("span", {
2233
2233
  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"}`,
2234
- children: [/* @__PURE__ */ p(ce, { size: 11 }), " Draft restored"]
2234
+ children: [/* @__PURE__ */ p(se, { size: 11 }), " Draft restored"]
2235
2235
  })]
2236
2236
  }), /* @__PURE__ */ p("div", {
2237
2237
  className: "flex flex-wrap -mx-2 -mb-4",
2238
- children: t.map((e) => Y(e, e.type === "file" || e.width === "full" ? "w-full" : "w-full md:w-1/2", n))
2238
+ children: t.map((e) => ze(e, e.type === "file" || e.width === "full" ? "w-full" : "w-full md:w-1/2", n))
2239
2239
  })]
2240
2240
  }),
2241
2241
  s.length > 0 && /* @__PURE__ */ m("div", {
@@ -2264,7 +2264,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2264
2264
  }), /* @__PURE__ */ p("div", {
2265
2265
  className: "space-y-2",
2266
2266
  children: s.map((e) => {
2267
- let t = !!e.purchased, n = he.includes(e.name);
2267
+ let t = !!e.purchased, n = me.includes(e.name);
2268
2268
  return /* @__PURE__ */ m("label", {
2269
2269
  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"}`,
2270
2270
  style: n && !t ? {
@@ -2276,7 +2276,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2276
2276
  type: "checkbox",
2277
2277
  checked: n,
2278
2278
  disabled: t,
2279
- onChange: () => Fe(e.name, t),
2279
+ onChange: () => Pe(e.name, t),
2280
2280
  className: "w-4 h-4 rounded cursor-pointer shrink-0 disabled:cursor-default",
2281
2281
  style: { accentColor: r }
2282
2282
  }),
@@ -2297,7 +2297,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2297
2297
  }),
2298
2298
  t && /* @__PURE__ */ m("span", {
2299
2299
  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"}`,
2300
- children: [/* @__PURE__ */ p(ce, { size: 12 }), " Purchased"]
2300
+ children: [/* @__PURE__ */ p(se, { size: 12 }), " Purchased"]
2301
2301
  })
2302
2302
  ]
2303
2303
  }, e.name);
@@ -2332,7 +2332,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2332
2332
  fill: "currentColor",
2333
2333
  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"
2334
2334
  })]
2335
- }), /* @__PURE__ */ p("span", { children: "Saving..." })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(ze, { size: 16 }), /* @__PURE__ */ p("span", { children: "Save changes" })] })
2335
+ }), /* @__PURE__ */ p("span", { children: "Saving..." })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(Re, { size: 16 }), /* @__PURE__ */ p("span", { children: "Save changes" })] })
2336
2336
  })
2337
2337
  })
2338
2338
  ]
@@ -2342,7 +2342,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2342
2342
  })]
2343
2343
  });
2344
2344
  }
2345
- let X = `w-full h-11 pl-10 pr-3.5 text-sm font-medium rounded-xl border transition-all focus:outline-none ${i ? "bg-zinc-950 border-zinc-700 text-white placeholder:text-zinc-500 hover:border-zinc-600 focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_20%,transparent)]" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400 hover:border-slate-300 shadow-[0_1px_2px_rgba(15,23,42,0.04)] focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_15%,transparent)]"}`, Ue = /* @__PURE__ */ m("svg", {
2345
+ let He = `w-full h-11 pl-10 pr-3.5 text-sm font-medium rounded-xl border transition-all focus:outline-none ${i ? "bg-zinc-950 border-zinc-700 text-white placeholder:text-zinc-500 hover:border-zinc-600 focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_20%,transparent)]" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400 hover:border-slate-300 shadow-[0_1px_2px_rgba(15,23,42,0.04)] focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_15%,transparent)]"}`, Ue = /* @__PURE__ */ m("svg", {
2346
2346
  className: "animate-spin h-4 w-4 text-white",
2347
2347
  fill: "none",
2348
2348
  viewBox: "0 0 24 24",
@@ -2383,7 +2383,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2383
2383
  autoComplete: c,
2384
2384
  onChange: (e) => o(e.target.value),
2385
2385
  placeholder: s,
2386
- className: X
2386
+ className: He
2387
2387
  })]
2388
2388
  })] }), Ke = () => /* @__PURE__ */ m(f, { children: [x && /* @__PURE__ */ m("div", {
2389
2389
  role: "alert",
@@ -2395,7 +2395,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2395
2395
  }), C && /* @__PURE__ */ m("div", {
2396
2396
  role: "status",
2397
2397
  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"}`,
2398
- children: [/* @__PURE__ */ p(fe, {
2398
+ children: [/* @__PURE__ */ p(I, {
2399
2399
  size: 17,
2400
2400
  className: "shrink-0 mt-0.5"
2401
2401
  }), /* @__PURE__ */ p("span", { children: C })]
@@ -2408,20 +2408,20 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2408
2408
  boxShadow: `0 10px 24px -12px color-mix(in srgb, ${r} 70%, transparent)`
2409
2409
  },
2410
2410
  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",
2411
- children: e ? /* @__PURE__ */ m(f, { children: [Ue, /* @__PURE__ */ p("span", { children: n })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", { children: t }), /* @__PURE__ */ p(ie, {
2411
+ children: e ? /* @__PURE__ */ m(f, { children: [Ue, /* @__PURE__ */ p("span", { children: n })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", { children: t }), /* @__PURE__ */ p(re, {
2412
2412
  size: 16,
2413
2413
  className: "transition-transform group-hover:translate-x-0.5"
2414
2414
  })] })
2415
2415
  }), Xe = ({ icon: e, title: t, subtitle: n, onBack: o, children: s }) => /* @__PURE__ */ m("div", {
2416
2416
  className: `flex flex-col ${a ? "w-full flex-1" : "h-full overflow-y-auto"} relative bg-transparent ${i ? "text-white" : "text-slate-900"}`,
2417
- children: [Le(), /* @__PURE__ */ m("div", {
2417
+ children: [Ie(), /* @__PURE__ */ m("div", {
2418
2418
  className: `px-4 sm:px-6 ${a ? "py-8 sm:py-10" : "py-5"} flex-1 max-w-[400px] mx-auto w-full flex flex-col justify-center relative z-10`,
2419
2419
  children: [o && /* @__PURE__ */ m("button", {
2420
2420
  part: "button button-link back-button",
2421
2421
  type: "button",
2422
2422
  onClick: o,
2423
2423
  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"}`,
2424
- children: [/* @__PURE__ */ p(re, { size: 16 }), /* @__PURE__ */ p("span", { children: "Back to login" })]
2424
+ children: [/* @__PURE__ */ p(ne, { size: 16 }), /* @__PURE__ */ p("span", { children: "Back to login" })]
2425
2425
  }), /* @__PURE__ */ m("div", {
2426
2426
  part: "portal-card",
2427
2427
  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)]"}`,
@@ -2453,18 +2453,18 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2453
2453
  })]
2454
2454
  }), Qe = "font-semibold hover:underline underline-offset-4 cursor-pointer";
2455
2455
  return Xe(l === "request_code" ? {
2456
- icon: ke,
2456
+ icon: Oe,
2457
2457
  title: "Get verification code",
2458
2458
  subtitle: "We will email a verification code to your registered address.",
2459
2459
  onBack: () => Z("login"),
2460
2460
  children: /* @__PURE__ */ m("form", {
2461
- onSubmit: Oe,
2461
+ onSubmit: Y,
2462
2462
  className: "space-y-4",
2463
2463
  children: [
2464
2464
  Q({
2465
2465
  id: "vx-portal-code-identifier",
2466
2466
  label: "Registration number or email",
2467
- icon: ke,
2467
+ icon: Oe,
2468
2468
  value: k || T,
2469
2469
  onChange: (e) => {
2470
2470
  A(e), E(e);
@@ -2490,18 +2490,18 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2490
2490
  ]
2491
2491
  })
2492
2492
  } : l === "reset" ? {
2493
- icon: Te,
2493
+ icon: W,
2494
2494
  title: "Set your password",
2495
2495
  subtitle: "Enter the code from your email and choose a new password.",
2496
2496
  onBack: () => Z("login"),
2497
2497
  children: /* @__PURE__ */ m("form", {
2498
- onSubmit: Ae,
2498
+ onSubmit: ke,
2499
2499
  className: "space-y-4",
2500
2500
  children: [
2501
2501
  Q({
2502
2502
  id: "vx-portal-reset-identifier",
2503
2503
  label: "Registration number or email",
2504
- icon: ke,
2504
+ icon: Oe,
2505
2505
  value: k || T,
2506
2506
  onChange: (e) => {
2507
2507
  A(e), E(e);
@@ -2512,9 +2512,9 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2512
2512
  Q({
2513
2513
  id: "vx-portal-reset-code",
2514
2514
  label: "Verification code",
2515
- icon: U,
2516
- value: ne,
2517
- onChange: j,
2515
+ icon: Te,
2516
+ value: j,
2517
+ onChange: M,
2518
2518
  placeholder: "Enter code from email",
2519
2519
  autoComplete: "one-time-code",
2520
2520
  aside: /* @__PURE__ */ p("button", {
@@ -2530,20 +2530,20 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2530
2530
  Q({
2531
2531
  id: "vx-portal-reset-password",
2532
2532
  label: "New password",
2533
- icon: G,
2533
+ icon: K,
2534
2534
  type: "password",
2535
- value: M,
2536
- onChange: N,
2535
+ value: N,
2536
+ onChange: P,
2537
2537
  placeholder: "Enter new password",
2538
2538
  autoComplete: "new-password"
2539
2539
  }),
2540
2540
  Q({
2541
2541
  id: "vx-portal-reset-confirm",
2542
2542
  label: "Confirm password",
2543
- icon: G,
2543
+ icon: K,
2544
2544
  type: "password",
2545
- value: se,
2546
- onChange: P,
2545
+ value: oe,
2546
+ onChange: ce,
2547
2547
  placeholder: "Re-enter new password",
2548
2548
  autoComplete: "new-password"
2549
2549
  }),
@@ -2551,17 +2551,17 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2551
2551
  ]
2552
2552
  })
2553
2553
  } : {
2554
- icon: De,
2554
+ icon: Ee,
2555
2555
  title: "Attendee login",
2556
2556
  subtitle: "Sign in with your email or registration number.",
2557
2557
  children: /* @__PURE__ */ m("form", {
2558
- onSubmit: q,
2558
+ onSubmit: De,
2559
2559
  className: "space-y-4",
2560
2560
  children: [
2561
2561
  Q({
2562
2562
  id: "vx-portal-login-identifier",
2563
2563
  label: "Email or registration number",
2564
- icon: ke,
2564
+ icon: Oe,
2565
2565
  value: T,
2566
2566
  onChange: E,
2567
2567
  placeholder: "Enter email or registration number",
@@ -2570,7 +2570,7 @@ var rt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
2570
2570
  Q({
2571
2571
  id: "vx-portal-login-password",
2572
2572
  label: "Password",
2573
- icon: G,
2573
+ icon: K,
2574
2574
  type: "password",
2575
2575
  value: D,
2576
2576
  onChange: ee,
@@ -2685,57 +2685,57 @@ var ot = (e) => {
2685
2685
  s(() => {
2686
2686
  t === "attendee" && i(!0);
2687
2687
  }, [t]);
2688
- 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, O] = d(!0), [k, A] = d(""), [ne, re] = d(null), [j, M] = d(!!o), [ae, N] = d(null), [oe, se] = d(null), [P, le] = d(o), [ue, de] = d(!1), [F, fe] = d(() => at(e.position)), [I, L] = d(null), [he, _e] = d(null), [ve, R] = d(!1), [be, Se] = d(!1), Ce = u(null), z = u(null), we = u(!1);
2688
+ 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, M] = d(null), [N, ie] = d(!!o), [P, ae] = d(null), [oe, ce] = d(null), [le, ue] = d(o), [de, F] = d(!1), [I, L] = d(() => at(e.position)), [R, me] = d(null), [ge, _e] = d(null), [z, ye] = d(!1), [xe, Se] = d(!1), Ce = u(null), B = u(null), V = u(!1);
2689
2689
  s(() => {
2690
- e.position && fe(at(e.position));
2690
+ e.position && L(at(e.position));
2691
2691
  }, [e.position]);
2692
- let B = e.themeMode === "dark" || e.theme?.mode === "dark", V = e.theme?.primaryColor || "#2563eb", H = !!e.isAbstract, Te = e.headerBannerImage, Ee = e.backgroundImage, U = l(() => new g(e.debug), [e.debug]), W = l(() => new _(e.baseUrl, e.eventSlug, U, e.timeoutMs ?? 12e4), [
2692
+ let H = e.themeMode === "dark" || e.theme?.mode === "dark", U = e.theme?.primaryColor || "#2563eb", W = !!e.isAbstract, we = e.headerBannerImage, Te = e.backgroundImage, G = l(() => new g(e.debug), [e.debug]), K = l(() => new _(e.baseUrl, e.eventSlug, G, e.timeoutMs ?? 12e4), [
2693
2693
  e.baseUrl,
2694
2694
  e.eventSlug,
2695
- U,
2695
+ G,
2696
2696
  e.timeoutMs
2697
- ]), G = l(() => new v(e.eventSlug), [e.eventSlug]), K = u(e.displayMode), q = u(null), [J, Oe] = d(null);
2697
+ ]), q = l(() => new v(e.eventSlug), [e.eventSlug]), De = u(e.displayMode), J = u(null), [Y, Oe] = d(null);
2698
2698
  s(() => {
2699
- G.getXrefId();
2700
- }, [G]), s(() => {
2699
+ q.getXrefId();
2700
+ }, [q]), s(() => {
2701
2701
  if (!c) return;
2702
- let t = G.getXrefId();
2703
- t && (H ? W.getReviewDraft(t) : W.getDraft(t)).then((t) => {
2702
+ let t = q.getXrefId();
2703
+ t && (W ? K.getReviewDraft(t) : K.getDraft(t)).then((t) => {
2704
2704
  let n = t?.data || t;
2705
2705
  n && n.registration_type && (Oe(n), e.onEvent?.("draft_loaded", n));
2706
2706
  }).catch((e) => {
2707
- U.log("No draft found for this session", e);
2707
+ G.log("No draft found for this session", e);
2708
2708
  });
2709
2709
  }, [
2710
2710
  c,
2711
- W,
2711
+ K,
2712
+ q,
2712
2713
  G,
2713
- U,
2714
- H
2714
+ W
2715
2715
  ]);
2716
2716
  let ke = l(() => {
2717
- if (!J || !T || String(J.registration_type) !== String(T.id)) return {};
2718
- let e = { ...J.custom_data || {} };
2719
- if (J.salutation && (e.salutation = J.salutation, e.title = J.salutation), J.name) {
2720
- e.name = J.name, e.full_name = J.name, e.fullName = J.name;
2721
- let t = J.name.trim().split(/\s+/);
2717
+ if (!Y || !T || String(Y.registration_type) !== String(T.id)) return {};
2718
+ let e = { ...Y.custom_data || {} };
2719
+ if (Y.salutation && (e.salutation = Y.salutation, e.title = Y.salutation), Y.name) {
2720
+ e.name = Y.name, e.full_name = Y.name, e.fullName = Y.name;
2721
+ let t = Y.name.trim().split(/\s+/);
2722
2722
  t.length > 0 && !e.first_name && (e.first_name = t[0]), t.length > 1 && !e.last_name && (e.last_name = t.slice(1).join(" "));
2723
2723
  }
2724
- return J.email && (e.email = J.email), J.phone && (e.phone = J.phone, e.mobile = J.phone, e.phoneNumber = J.phone), ((H ? D?.fields : T?.form_schema?.fields) || []).forEach((t) => {
2724
+ return Y.email && (e.email = Y.email), Y.phone && (e.phone = Y.phone, e.mobile = Y.phone, e.phoneNumber = Y.phone), ((W ? D?.fields : T?.form_schema?.fields) || []).forEach((t) => {
2725
2725
  let n = tt(t.id, t.label);
2726
2726
  e[t.id] === void 0 && e[n] !== void 0 && (e[t.id] = e[n]);
2727
2727
  }), e;
2728
2728
  }, [
2729
- J,
2729
+ Y,
2730
2730
  T,
2731
- H,
2731
+ W,
2732
2732
  D
2733
2733
  ]);
2734
2734
  s(() => () => {
2735
- q.current && clearTimeout(q.current);
2735
+ J.current && clearTimeout(J.current);
2736
2736
  }, []);
2737
2737
  let Ae = a((t) => {
2738
- q.current && clearTimeout(q.current), q.current = setTimeout(async () => {
2738
+ J.current && clearTimeout(J.current), J.current = setTimeout(async () => {
2739
2739
  if (!Object.values(t).some((e) => e !== "" && e != null)) return;
2740
2740
  let n = /* @__PURE__ */ new Set([
2741
2741
  "salutation",
@@ -2751,7 +2751,7 @@ var ot = (e) => {
2751
2751
  "phoneNumber",
2752
2752
  "selected_items",
2753
2753
  "custom_data"
2754
- ]), r = (H ? D?.fields : T?.form_schema?.fields) || [], i = /* @__PURE__ */ new Map();
2754
+ ]), r = (W ? D?.fields : T?.form_schema?.fields) || [], i = /* @__PURE__ */ new Map();
2755
2755
  r.forEach((e) => i.set(e.id, e));
2756
2756
  let a = { ...t.custom_data || {} };
2757
2757
  for (let [e, r] of Object.entries(t)) if (!n.has(e)) {
@@ -2759,7 +2759,7 @@ var ot = (e) => {
2759
2759
  a[t] = r, t !== e && (a[e] = r);
2760
2760
  }
2761
2761
  let o = {
2762
- xref_id: G.getXrefId(),
2762
+ xref_id: q.getXrefId(),
2763
2763
  salutation: t.salutation || t.title || "",
2764
2764
  name: t.name || t.fullName || t.full_name || [t.firstName, t.lastName].filter(Boolean).join(" ") || "",
2765
2765
  email: t.email || "",
@@ -2769,38 +2769,38 @@ var ot = (e) => {
2769
2769
  selected_items: t.selected_items || []
2770
2770
  };
2771
2771
  try {
2772
- H ? await W.trackReviewProgress(o) : await W.trackProgress(o), e.onEvent?.("draft_saved", o);
2772
+ W ? await K.trackReviewProgress(o) : await K.trackProgress(o), e.onEvent?.("draft_saved", o);
2773
2773
  } catch (e) {
2774
- U.error("Failed to save draft progress", e);
2774
+ G.error("Failed to save draft progress", e);
2775
2775
  }
2776
2776
  }, 600);
2777
2777
  }, [
2778
- G,
2779
- W,
2778
+ q,
2779
+ K,
2780
2780
  T,
2781
2781
  e,
2782
- U,
2783
- H,
2782
+ G,
2783
+ W,
2784
2784
  D
2785
2785
  ]);
2786
2786
  s(() => {
2787
- K.current !== e.displayMode && (K.current = e.displayMode, h(e.displayMode !== "popup"), b(!1));
2787
+ De.current !== e.displayMode && (De.current = e.displayMode, h(e.displayMode !== "popup"), b(!1));
2788
2788
  }, [e.displayMode]), s(() => {
2789
- (H ? W.getReviewFormSchema() : W.getFormSchema()).then((t) => {
2790
- S(t?.data?.types || []), H && 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);
2789
+ (W ? K.getReviewFormSchema() : K.getFormSchema()).then((t) => {
2790
+ S(t?.data?.types || []), W && 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);
2791
2791
  }).catch((t) => {
2792
- U.error("Failed to load schema", t), S([]);
2792
+ G.error("Failed to load schema", t), S([]);
2793
2793
  let n = {
2794
2794
  type: "schema_load",
2795
2795
  message: t?.message || "Failed to load event schema",
2796
2796
  error: t
2797
2797
  };
2798
2798
  e.onEvent?.("error", n), e.onError?.(n);
2799
- }).finally(() => O(!1));
2800
- }, [W, H]);
2799
+ }).finally(() => k(!1));
2800
+ }, [K, W]);
2801
2801
  let je = async (t) => {
2802
- q.current && clearTimeout(q.current), O(!0), N(null);
2803
- let n = G.getXrefId(), r = /* @__PURE__ */ new Set([
2802
+ J.current && clearTimeout(J.current), k(!0), ae(null);
2803
+ let n = q.getXrefId(), r = /* @__PURE__ */ new Set([
2804
2804
  "salutation",
2805
2805
  "title",
2806
2806
  "name",
@@ -2816,7 +2816,7 @@ var ot = (e) => {
2816
2816
  "selected_items",
2817
2817
  "custom_data",
2818
2818
  "xref_id"
2819
- ]), i = (H ? D?.fields : T?.form_schema?.fields) || [], a = /* @__PURE__ */ new Map();
2819
+ ]), i = (W ? D?.fields : T?.form_schema?.fields) || [], a = /* @__PURE__ */ new Map();
2820
2820
  i.forEach((e) => a.set(e.id, e));
2821
2821
  let o = { ...t.custom_data || {} };
2822
2822
  for (let [e, n] of Object.entries(t)) if (!r.has(e)) {
@@ -2834,12 +2834,12 @@ var ot = (e) => {
2834
2834
  selected_items: t.selected_items || []
2835
2835
  };
2836
2836
  try {
2837
- let t = H ? await W.submitReview(s) : await W.submitRegistration(s);
2838
- G.updateXrefId(), Oe(null);
2839
- let n = H ? null : t?.data?.payment_url || t?.payment_url || null;
2840
- se(n);
2837
+ let t = W ? await K.submitReview(s) : await K.submitRegistration(s);
2838
+ q.updateXrefId(), Oe(null);
2839
+ let n = W ? null : t?.data?.payment_url || t?.payment_url || null;
2840
+ ce(n);
2841
2841
  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;
2842
- le(r ? String(r) : null), de(!1), n && typeof n == "string" && n.trim() !== "" && window.open(n, "_blank", "noopener,noreferrer"), M(!0);
2842
+ ue(r ? String(r) : null), F(!1), n && typeof n == "string" && n.trim() !== "" && window.open(n, "_blank", "noopener,noreferrer"), ie(!0);
2843
2843
  let i = {
2844
2844
  registrationType: T.id,
2845
2845
  payload: s,
@@ -2848,57 +2848,57 @@ var ot = (e) => {
2848
2848
  };
2849
2849
  e.onEvent?.("submitted", i), e.onRegister?.(i), e.onRegistered?.(i);
2850
2850
  } catch (t) {
2851
- U.error("Submission failed", t);
2851
+ G.error("Submission failed", t);
2852
2852
  let n = t?.message || "Registration failed. Please check your information and try again.", r = {
2853
2853
  type: "submit_error",
2854
2854
  message: n,
2855
2855
  error: t
2856
2856
  };
2857
- e.onEvent?.("error", r), e.onError?.(r), N(n);
2857
+ e.onEvent?.("error", r), e.onError?.(r), ae(n);
2858
2858
  } finally {
2859
- O(!1);
2859
+ k(!1);
2860
2860
  }
2861
- }, Me = () => {
2862
- if (M(!1), N(null), se(null), le(null), de(!1), E(null), Oe(null), typeof window < "u" && new URLSearchParams(window.location.search).has("rn")) {
2861
+ }, Ne = () => {
2862
+ if (ie(!1), ae(null), ce(null), ue(null), F(!1), E(null), Oe(null), typeof window < "u" && new URLSearchParams(window.location.search).has("rn")) {
2863
2863
  let e = new URL(window.location.href);
2864
2864
  e.searchParams.delete("rn"), window.history.replaceState(window.history.state, "", e.toString());
2865
2865
  }
2866
- }, Pe = a((e) => {
2866
+ }, Fe = a((e) => {
2867
2867
  if (e.stopPropagation(), e.button !== 0 || !Ce.current) return;
2868
2868
  let t = Ce.current.getBoundingClientRect();
2869
- z.current = {
2869
+ B.current = {
2870
2870
  startX: e.clientX,
2871
2871
  startY: e.clientY,
2872
2872
  rect: t,
2873
- corner: F
2874
- }, we.current = !1, R(!0);
2875
- }, [F]);
2873
+ corner: I
2874
+ }, V.current = !1, ye(!0);
2875
+ }, [I]);
2876
2876
  s(() => {
2877
- if (!ve) return;
2877
+ if (!z) return;
2878
2878
  let t = (e) => {
2879
- if (!z.current) return;
2880
- let t = e.clientX - z.current.startX, n = e.clientY - z.current.startY;
2881
- we.current || Math.hypot(t, n) > 5 && (we.current = !0), we.current && L({
2879
+ if (!B.current) return;
2880
+ let t = e.clientX - B.current.startX, n = e.clientY - B.current.startY;
2881
+ V.current || Math.hypot(t, n) > 5 && (V.current = !0), V.current && me({
2882
2882
  x: t,
2883
2883
  y: n
2884
2884
  });
2885
2885
  }, n = (t) => {
2886
- if (!z.current) {
2887
- R(!1), L(null), we.current = !1;
2886
+ if (!B.current) {
2887
+ ye(!1), me(null), V.current = !1;
2888
2888
  return;
2889
2889
  }
2890
- let { rect: n, startX: r, startY: i } = z.current, a = t.clientX - r, o = t.clientY - i, s = we.current;
2891
- if (z.current = null, R(!1), setTimeout(() => {
2892
- we.current = !1;
2890
+ let { rect: n, startX: r, startY: i } = B.current, a = t.clientX - r, o = t.clientY - i, s = V.current;
2891
+ if (B.current = null, ye(!1), setTimeout(() => {
2892
+ V.current = !1;
2893
2893
  }, 100), !s) {
2894
- L(null);
2894
+ me(null);
2895
2895
  return;
2896
2896
  }
2897
2897
  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;
2898
2898
  _e({
2899
2899
  transform: `translate3d(${y}px, ${b}px, 0)`,
2900
2900
  transition: "none"
2901
- }), L(null), fe(g), e.onEvent?.("position_changed", { position: g }), requestAnimationFrame(() => {
2901
+ }), me(null), L(g), e.onEvent?.("position_changed", { position: g }), requestAnimationFrame(() => {
2902
2902
  requestAnimationFrame(() => {
2903
2903
  _e({
2904
2904
  transform: "translate3d(0, 0, 0)",
@@ -2912,62 +2912,62 @@ var ot = (e) => {
2912
2912
  return window.addEventListener("pointermove", t), window.addEventListener("pointerup", n), window.addEventListener("pointercancel", n), () => {
2913
2913
  window.removeEventListener("pointermove", t), window.removeEventListener("pointerup", n), window.removeEventListener("pointercancel", n);
2914
2914
  };
2915
- }, [ve, e]);
2916
- let Ie = async () => {
2917
- if (P) {
2915
+ }, [z, e]);
2916
+ let Le = async () => {
2917
+ if (le) {
2918
2918
  try {
2919
- await navigator.clipboard.writeText(P);
2919
+ await navigator.clipboard.writeText(le);
2920
2920
  } catch {
2921
2921
  let e = document.createElement("textarea");
2922
- e.value = P, document.body.appendChild(e), e.select(), document.execCommand("copy"), document.body.removeChild(e);
2922
+ e.value = le, document.body.appendChild(e), e.select(), document.execCommand("copy"), document.body.removeChild(e);
2923
2923
  }
2924
- de(!0), setTimeout(() => de(!1), 2e3);
2924
+ F(!0), setTimeout(() => F(!1), 2e3);
2925
2925
  }
2926
- }, Re = () => P ? /* @__PURE__ */ m("div", {
2926
+ }, Re = () => le ? /* @__PURE__ */ m("div", {
2927
2927
  className: "w-full max-w-xs mb-6",
2928
2928
  children: [/* @__PURE__ */ p("p", {
2929
- className: `text-2xs font-bold uppercase tracking-wider mb-1.5 ${B ? "text-zinc-400" : "text-gray-500"}`,
2929
+ className: `text-2xs font-bold uppercase tracking-wider mb-1.5 ${H ? "text-zinc-400" : "text-gray-500"}`,
2930
2930
  children: "Registration Number"
2931
2931
  }), /* @__PURE__ */ m("div", {
2932
2932
  part: "registration-number",
2933
- className: `flex items-center gap-2 pl-4 pr-1.5 py-1.5 rounded-xl border ${B ? "bg-zinc-900 border-zinc-700" : "bg-gray-50 border-gray-200"}`,
2933
+ className: `flex items-center gap-2 pl-4 pr-1.5 py-1.5 rounded-xl border ${H ? "bg-zinc-900 border-zinc-700" : "bg-gray-50 border-gray-200"}`,
2934
2934
  children: [/* @__PURE__ */ p("span", {
2935
2935
  className: "flex-1 text-left font-mono font-bold text-base select-all break-all",
2936
- children: P
2936
+ children: le
2937
2937
  }), /* @__PURE__ */ m("button", {
2938
2938
  part: "copy-button",
2939
2939
  type: "button",
2940
- onClick: Ie,
2940
+ onClick: Le,
2941
2941
  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",
2942
- style: { backgroundColor: V },
2942
+ style: { backgroundColor: U },
2943
2943
  title: "Copy registration number",
2944
- children: [p(ue ? ce : ge, { size: 13 }), /* @__PURE__ */ p("span", { children: ue ? "Copied" : "Copy" })]
2944
+ children: [p(de ? se : he, { size: 13 }), /* @__PURE__ */ p("span", { children: de ? "Copied" : "Copy" })]
2945
2945
  })]
2946
2946
  })]
2947
2947
  }) : null;
2948
2948
  if (!c && e.displayMode === "popup") {
2949
2949
  let e = {
2950
- ...ot(F),
2951
- ...I ? {
2952
- transform: `translate3d(${I.x}px, ${I.y}px, 0) scale(1.05)`,
2950
+ ...ot(I),
2951
+ ...R ? {
2952
+ transform: `translate3d(${R.x}px, ${R.y}px, 0) scale(1.05)`,
2953
2953
  transition: "none",
2954
2954
  userSelect: "none"
2955
- } : he ? {
2956
- transform: he.transform,
2957
- transition: he.transition
2955
+ } : ge ? {
2956
+ transform: ge.transform,
2957
+ transition: ge.transition
2958
2958
  } : { transition: "all 0.3s cubic-bezier(0.16, 1, 0.3, 1)" }
2959
- }, t = be || ve;
2959
+ }, t = xe || z;
2960
2960
  return /* @__PURE__ */ m("div", {
2961
2961
  ref: Ce,
2962
2962
  onMouseEnter: () => Se(!0),
2963
2963
  onMouseLeave: () => Se(!1),
2964
- className: `fixed ${st(F)} z-50 select-none group`,
2964
+ className: `fixed ${st(I)} z-50 select-none group`,
2965
2965
  style: e,
2966
2966
  children: [/* @__PURE__ */ p("div", {
2967
- onPointerDown: Pe,
2967
+ onPointerDown: Fe,
2968
2968
  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"}`,
2969
2969
  title: "Hold and drag to change position",
2970
- children: /* @__PURE__ */ p(Le, {
2970
+ children: /* @__PURE__ */ p(Ie, {
2971
2971
  size: 13,
2972
2972
  className: "pointer-events-none text-white"
2973
2973
  })
@@ -2975,10 +2975,10 @@ var ot = (e) => {
2975
2975
  part: "launcher",
2976
2976
  type: "button",
2977
2977
  onClick: (e) => {
2978
- e.stopPropagation(), !ve && h(!0);
2978
+ e.stopPropagation(), !z && h(!0);
2979
2979
  },
2980
2980
  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",
2981
- style: { backgroundColor: V },
2981
+ style: { backgroundColor: U },
2982
2982
  title: "Click to open registration",
2983
2983
  children: /* @__PURE__ */ p("span", {
2984
2984
  className: "font-bold text-sm tracking-wide pointer-events-none",
@@ -2987,9 +2987,9 @@ var ot = (e) => {
2987
2987
  })]
2988
2988
  });
2989
2989
  }
2990
- let ze = e.displayMode === "fullscreen" || e.displayMode === "popup" && y, Y = e.displayMode === "widget", Be = it(Ee, B, Y), Ve = `${B ? "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, X = !He || He === "inherit" ? {} : { fontFamily: `var(--vx-font-family, ${He})` };
2991
- X["--vx-accent"] = V, ze ? Ve += "fixed inset-0 z-[9999] rounded-none overflow-hidden " : e.displayMode === "popup" ? (Ve += `fixed ${st(F)} z-50 rounded-xl shadow-2xl border ${B ? "border-zinc-800" : "border-gray-200"} overflow-hidden `, X.width = e.width || "400px", X.height = e.height || "700px", X.maxHeight = "90vh", X.maxWidth = "calc(100vw - 32px)", Object.assign(X, ot(F))) : (Ve += "relative w-full min-h-screen border-none shadow-none rounded-none ", X.width = "100%", X.minHeight = "100vh");
2992
- let Z = H ? "Abstract Submission" : t === "registration" ? C || "Registration" : "Attendee Portal", Q = k.trim().toLowerCase(), Ke = Q ? x.filter((e) => [
2990
+ let ze = e.displayMode === "fullscreen" || e.displayMode === "popup" && y, X = e.displayMode === "widget", Be = it(Te, H, X), Ve = `${H ? "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, Z = !He || He === "inherit" ? {} : { fontFamily: `var(--vx-font-family, ${He})` };
2991
+ Z["--vx-accent"] = U, ze ? Ve += "fixed inset-0 z-[9999] rounded-none overflow-hidden " : e.displayMode === "popup" ? (Ve += `fixed ${st(I)} z-50 rounded-xl shadow-2xl border ${H ? "border-zinc-800" : "border-gray-200"} overflow-hidden `, Z.width = e.width || "400px", Z.height = e.height || "700px", Z.maxHeight = "90vh", Z.maxWidth = "calc(100vw - 32px)", Object.assign(Z, ot(I))) : (Ve += "relative w-full min-h-screen border-none shadow-none rounded-none ", Z.width = "100%", Z.minHeight = "100vh");
2992
+ let Q = W ? "Abstract Submission" : t === "registration" ? C || "Registration" : "Attendee Portal", Ke = A.trim().toLowerCase(), qe = Ke ? x.filter((e) => [
2993
2993
  e.type,
2994
2994
  e.name,
2995
2995
  e.category,
@@ -2998,27 +2998,27 @@ var ot = (e) => {
2998
2998
  e.price,
2999
2999
  e.tax_info,
3000
3000
  ...Array.isArray(e.perks) ? e.perks : []
3001
- ].filter((e) => e != null && e !== "").join(" ").toLowerCase().includes(Q)) : x, qe = `max-w-2xl mx-auto w-full rounded-3xl border overflow-hidden ${B ? "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 = () => {
3001
+ ].filter((e) => e != null && e !== "").join(" ").toLowerCase().includes(Ke)) : x, Je = `max-w-2xl mx-auto w-full rounded-3xl border overflow-hidden ${H ? "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)]"}`, Ye = () => {
3002
3002
  if (x.length === 0) return null;
3003
3003
  let e = x.find((e) => String(e.id) === ne) || (x.length === 1 ? x[0] : null), t = e ? e.type || e.name || e.label : "";
3004
3004
  return /* @__PURE__ */ m("div", {
3005
3005
  part: "category-panel",
3006
- className: qe,
3006
+ className: Je,
3007
3007
  children: [
3008
3008
  /* @__PURE__ */ m("div", {
3009
3009
  className: "px-5 sm:px-7 pt-6 sm:pt-7 pb-5 flex items-center gap-3.5",
3010
3010
  children: [/* @__PURE__ */ p("div", {
3011
3011
  className: "w-11 h-11 rounded-xl flex items-center justify-center shrink-0",
3012
3012
  style: {
3013
- backgroundColor: `color-mix(in srgb, ${V} 12%, transparent)`,
3014
- color: V
3013
+ backgroundColor: `color-mix(in srgb, ${U} 12%, transparent)`,
3014
+ color: U
3015
3015
  },
3016
- children: /* @__PURE__ */ p(xe, { size: 20 })
3016
+ children: /* @__PURE__ */ p(be, { size: 20 })
3017
3017
  }), /* @__PURE__ */ p("div", {
3018
3018
  className: "min-w-0",
3019
3019
  children: /* @__PURE__ */ p("h3", {
3020
3020
  part: "list-title",
3021
- className: `text-lg sm:text-xl font-semibold tracking-tight ${B ? "text-white" : "text-slate-900"}`,
3021
+ className: `text-lg sm:text-xl font-semibold tracking-tight ${H ? "text-white" : "text-slate-900"}`,
3022
3022
  style: $,
3023
3023
  children: "Choose a submission category"
3024
3024
  })
@@ -3027,7 +3027,7 @@ var ot = (e) => {
3027
3027
  /* @__PURE__ */ p("div", {
3028
3028
  role: "radiogroup",
3029
3029
  "aria-label": "Submission category",
3030
- className: `border-t divide-y ${B ? "border-zinc-800 divide-zinc-800" : "border-slate-100 divide-slate-100"}`,
3030
+ className: `border-t divide-y ${H ? "border-zinc-800 divide-zinc-800" : "border-slate-100 divide-slate-100"}`,
3031
3031
  children: x.map((t) => {
3032
3032
  let n = t.type || t.name || t.label, r = !!e && String(e.id) === String(t.id);
3033
3033
  return /* @__PURE__ */ m("button", {
@@ -3035,48 +3035,48 @@ var ot = (e) => {
3035
3035
  type: "button",
3036
3036
  role: "radio",
3037
3037
  "aria-checked": r,
3038
- onClick: () => re(String(t.id)),
3039
- 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 ? "" : B ? "hover:bg-zinc-800/60" : "hover:bg-slate-50"}`,
3040
- style: r ? { backgroundColor: `color-mix(in srgb, ${V} ${B ? 14 : 6}%, transparent)` } : void 0,
3038
+ onClick: () => M(String(t.id)),
3039
+ 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 ? "" : H ? "hover:bg-zinc-800/60" : "hover:bg-slate-50"}`,
3040
+ style: r ? { backgroundColor: `color-mix(in srgb, ${U} ${H ? 14 : 6}%, transparent)` } : void 0,
3041
3041
  children: [
3042
3042
  /* @__PURE__ */ p("span", {
3043
3043
  "aria-hidden": "true",
3044
- className: `w-5 h-5 rounded-full border-2 flex items-center justify-center shrink-0 transition-colors ${r ? "" : B ? "border-zinc-600" : "border-slate-300"}`,
3045
- style: r ? { borderColor: V } : void 0,
3044
+ className: `w-5 h-5 rounded-full border-2 flex items-center justify-center shrink-0 transition-colors ${r ? "" : H ? "border-zinc-600" : "border-slate-300"}`,
3045
+ style: r ? { borderColor: U } : void 0,
3046
3046
  children: r && /* @__PURE__ */ p("span", {
3047
3047
  className: "w-2.5 h-2.5 rounded-full",
3048
- style: { backgroundColor: V }
3048
+ style: { backgroundColor: U }
3049
3049
  })
3050
3050
  }),
3051
3051
  /* @__PURE__ */ m("span", {
3052
3052
  className: "flex-1 min-w-0",
3053
3053
  children: [/* @__PURE__ */ p("span", {
3054
- className: `block text-[15px] font-semibold leading-snug ${B ? "text-white" : "text-slate-900"}`,
3054
+ className: `block text-[15px] font-semibold leading-snug ${H ? "text-white" : "text-slate-900"}`,
3055
3055
  children: n
3056
3056
  }), t.description && /* @__PURE__ */ p("span", {
3057
- className: `block text-[13px] mt-0.5 line-clamp-1 ${B ? "text-zinc-400" : "text-slate-500"}`,
3057
+ className: `block text-[13px] mt-0.5 line-clamp-1 ${H ? "text-zinc-400" : "text-slate-500"}`,
3058
3058
  children: t.description
3059
3059
  })]
3060
3060
  }),
3061
3061
  t.category && /* @__PURE__ */ p("span", {
3062
- className: `hidden sm:inline-block text-[10px] font-semibold uppercase tracking-wider px-2.5 py-1 rounded-full shrink-0 ${B ? "bg-zinc-800 text-zinc-300" : "bg-slate-100 text-slate-600"}`,
3062
+ className: `hidden sm:inline-block text-[10px] font-semibold uppercase tracking-wider px-2.5 py-1 rounded-full shrink-0 ${H ? "bg-zinc-800 text-zinc-300" : "bg-slate-100 text-slate-600"}`,
3063
3063
  children: t.category
3064
3064
  }),
3065
- /* @__PURE__ */ p(ie, {
3065
+ /* @__PURE__ */ p(re, {
3066
3066
  size: 16,
3067
- className: `shrink-0 transition-all ${r ? "translate-x-0.5" : `${B ? "text-zinc-600" : "text-slate-300"} group-hover:translate-x-0.5`}`,
3068
- style: r ? { color: V } : void 0
3067
+ className: `shrink-0 transition-all ${r ? "translate-x-0.5" : `${H ? "text-zinc-600" : "text-slate-300"} group-hover:translate-x-0.5`}`,
3068
+ style: r ? { color: U } : void 0
3069
3069
  })
3070
3070
  ]
3071
3071
  }, t.id);
3072
3072
  })
3073
3073
  }),
3074
3074
  /* @__PURE__ */ m("div", {
3075
- 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 ${B ? "border-zinc-800" : "border-slate-100"}`,
3075
+ 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 ${H ? "border-zinc-800" : "border-slate-100"}`,
3076
3076
  children: [/* @__PURE__ */ p("p", {
3077
- className: `text-[13px] truncate ${B ? "text-zinc-400" : "text-slate-500"}`,
3077
+ className: `text-[13px] truncate ${H ? "text-zinc-400" : "text-slate-500"}`,
3078
3078
  children: e ? /* @__PURE__ */ m(f, { children: ["Selected: ", /* @__PURE__ */ p("span", {
3079
- className: `font-semibold ${B ? "text-zinc-200" : "text-slate-700"}`,
3079
+ className: `font-semibold ${H ? "text-zinc-200" : "text-slate-700"}`,
3080
3080
  children: t
3081
3081
  })] }) : "Select a category to continue"
3082
3082
  }), /* @__PURE__ */ m("button", {
@@ -3085,11 +3085,11 @@ var ot = (e) => {
3085
3085
  disabled: !e,
3086
3086
  onClick: () => e && E(e),
3087
3087
  style: {
3088
- background: `linear-gradient(135deg, ${V}, color-mix(in srgb, ${V} 80%, black))`,
3089
- boxShadow: e ? `0 10px 24px -12px color-mix(in srgb, ${V} 70%, transparent)` : void 0
3088
+ background: `linear-gradient(135deg, ${U}, color-mix(in srgb, ${U} 80%, black))`,
3089
+ boxShadow: e ? `0 10px 24px -12px color-mix(in srgb, ${U} 70%, transparent)` : void 0
3090
3090
  },
3091
3091
  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",
3092
- children: [/* @__PURE__ */ p("span", { children: "Continue to submission" }), /* @__PURE__ */ p(ie, {
3092
+ children: [/* @__PURE__ */ p("span", { children: "Continue to submission" }), /* @__PURE__ */ p(re, {
3093
3093
  size: 16,
3094
3094
  className: "transition-transform group-hover:translate-x-0.5"
3095
3095
  })]
@@ -3097,16 +3097,16 @@ var ot = (e) => {
3097
3097
  })
3098
3098
  ]
3099
3099
  });
3100
- }, Ye = (e) => /* @__PURE__ */ m("div", {
3100
+ }, Xe = (e) => /* @__PURE__ */ m("div", {
3101
3101
  part: "category-panel",
3102
- className: qe,
3102
+ className: Je,
3103
3103
  children: [
3104
3104
  /* @__PURE__ */ m("div", {
3105
3105
  className: "px-5 sm:px-7 pt-6 sm:pt-7 pb-5 flex items-center gap-3.5",
3106
3106
  children: [/* @__PURE__ */ p("div", { className: "vx-skeleton w-11 h-11 rounded-xl" }), /* @__PURE__ */ p("div", { className: `${e} h-4 w-56` })]
3107
3107
  }),
3108
3108
  /* @__PURE__ */ p("div", {
3109
- className: `border-t divide-y ${B ? "border-zinc-800 divide-zinc-800" : "border-slate-100 divide-slate-100"}`,
3109
+ className: `border-t divide-y ${H ? "border-zinc-800 divide-zinc-800" : "border-slate-100 divide-slate-100"}`,
3110
3110
  children: [
3111
3111
  0,
3112
3112
  1,
@@ -3129,18 +3129,18 @@ var ot = (e) => {
3129
3129
  }, t))
3130
3130
  }),
3131
3131
  /* @__PURE__ */ p("div", {
3132
- className: `px-5 sm:px-7 py-5 border-t flex justify-end ${B ? "border-zinc-800" : "border-slate-100"}`,
3132
+ className: `px-5 sm:px-7 py-5 border-t flex justify-end ${H ? "border-zinc-800" : "border-slate-100"}`,
3133
3133
  children: /* @__PURE__ */ p("div", { className: `${e} h-11 w-52` })
3134
3134
  })
3135
3135
  ]
3136
- }), Xe = () => {
3137
- let e = "vx-skeleton rounded-full", t = Y ? 6 : 3;
3136
+ }), Ze = () => {
3137
+ let e = "vx-skeleton rounded-full", t = X ? 6 : 3;
3138
3138
  return /* @__PURE__ */ m("div", {
3139
3139
  part: "page",
3140
3140
  role: "status",
3141
3141
  "aria-live": "polite",
3142
3142
  "aria-busy": "true",
3143
- className: `flex flex-col ${Y ? "w-full flex-1" : "h-full min-h-0"} ${B ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"}`,
3143
+ className: `flex flex-col ${X ? "w-full flex-1" : "h-full min-h-0"} ${H ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"}`,
3144
3144
  children: [
3145
3145
  /* @__PURE__ */ p("span", {
3146
3146
  className: "sr-only",
@@ -3149,7 +3149,7 @@ var ot = (e) => {
3149
3149
  /* @__PURE__ */ p("div", {
3150
3150
  part: "header",
3151
3151
  className: "relative overflow-hidden z-10 shrink-0 text-white",
3152
- style: { background: `linear-gradient(135deg, ${V} 0%, color-mix(in srgb, ${V} 76%, black) 100%)` },
3152
+ style: { background: `linear-gradient(135deg, ${U} 0%, color-mix(in srgb, ${U} 76%, black) 100%)` },
3153
3153
  children: /* @__PURE__ */ m("div", {
3154
3154
  className: "max-w-6xl mx-auto w-full px-4 sm:px-6 py-5 sm:py-6 flex items-center gap-3.5",
3155
3155
  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", {
@@ -3158,38 +3158,38 @@ var ot = (e) => {
3158
3158
  })]
3159
3159
  })
3160
3160
  }),
3161
- !H && /* @__PURE__ */ p("div", {
3161
+ !W && /* @__PURE__ */ p("div", {
3162
3162
  part: "tabs",
3163
- className: `shrink-0 border-b ${B ? "border-zinc-800 bg-zinc-900" : "border-slate-200 bg-white"}`,
3163
+ className: `shrink-0 border-b ${H ? "border-zinc-800 bg-zinc-900" : "border-slate-200 bg-white"}`,
3164
3164
  children: /* @__PURE__ */ p("div", {
3165
3165
  className: "max-w-6xl mx-auto w-full px-4 sm:px-6 py-3",
3166
3166
  children: /* @__PURE__ */ m("div", {
3167
- className: `grid grid-cols-2 gap-1 p-1 rounded-xl max-w-md ${B ? "bg-zinc-800" : "bg-slate-100"}`,
3168
- children: [/* @__PURE__ */ p("div", { className: `h-9 rounded-lg ${B ? "bg-zinc-950" : "bg-white shadow-sm"}` }), /* @__PURE__ */ p("div", { className: "h-9" })]
3167
+ className: `grid grid-cols-2 gap-1 p-1 rounded-xl max-w-md ${H ? "bg-zinc-800" : "bg-slate-100"}`,
3168
+ children: [/* @__PURE__ */ p("div", { className: `h-9 rounded-lg ${H ? "bg-zinc-950" : "bg-white shadow-sm"}` }), /* @__PURE__ */ p("div", { className: "h-9" })]
3169
3169
  })
3170
3170
  })
3171
3171
  }),
3172
3172
  /* @__PURE__ */ p("div", {
3173
3173
  part: "list",
3174
- className: `${Y ? "w-full flex-1" : "overflow-hidden flex-1 min-h-0"} relative ${B ? "bg-zinc-950" : "bg-slate-50"}`,
3174
+ className: `${X ? "w-full flex-1" : "overflow-hidden flex-1 min-h-0"} relative ${H ? "bg-zinc-950" : "bg-slate-50"}`,
3175
3175
  style: Be,
3176
3176
  children: /* @__PURE__ */ p("div", {
3177
3177
  className: "max-w-6xl mx-auto w-full px-4 sm:px-6 py-6 sm:py-8 space-y-5",
3178
- children: H ? Ye(e) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", {
3178
+ children: W ? Xe(e) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", {
3179
3179
  part: "search",
3180
3180
  className: "flex flex-col sm:flex-row sm:items-end sm:justify-between gap-3",
3181
3181
  children: [/* @__PURE__ */ m("div", {
3182
3182
  className: "space-y-2",
3183
3183
  children: [/* @__PURE__ */ p("div", { className: `${e} h-4 w-56` }), /* @__PURE__ */ p("div", { className: `${e} h-3 w-28` })]
3184
- }), /* @__PURE__ */ p("div", { className: `h-10 w-full sm:w-72 rounded-xl border ${B ? "bg-zinc-900 border-zinc-800" : "bg-white border-slate-200"}` })]
3184
+ }), /* @__PURE__ */ p("div", { className: `h-10 w-full sm:w-72 rounded-xl border ${H ? "bg-zinc-900 border-zinc-800" : "bg-white border-slate-200"}` })]
3185
3185
  }), /* @__PURE__ */ p("div", {
3186
3186
  part: "card-grid",
3187
- className: Y ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5" : "space-y-3",
3187
+ className: X ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5" : "space-y-3",
3188
3188
  children: Array.from({ length: t }, (t, n) => {
3189
3189
  let r = { animationDelay: `${n * 90}ms` };
3190
3190
  return /* @__PURE__ */ m("div", {
3191
3191
  part: "card",
3192
- className: `rounded-2xl border p-5 sm:p-6 flex flex-col ${B ? "bg-zinc-900 border-zinc-800" : "bg-white border-slate-200/80 shadow-[0_1px_2px_rgba(15,23,42,0.04)]"}`,
3192
+ className: `rounded-2xl border p-5 sm:p-6 flex flex-col ${H ? "bg-zinc-900 border-zinc-800" : "bg-white border-slate-200/80 shadow-[0_1px_2px_rgba(15,23,42,0.04)]"}`,
3193
3193
  children: [
3194
3194
  /* @__PURE__ */ p("div", {
3195
3195
  className: "vx-skeleton w-11 h-11 rounded-xl",
@@ -3204,7 +3204,7 @@ var ot = (e) => {
3204
3204
  style: r
3205
3205
  }),
3206
3206
  /* @__PURE__ */ m("div", {
3207
- className: `mt-6 pt-5 border-t border-dashed flex items-end justify-between gap-3 ${B ? "border-zinc-800" : "border-slate-200"}`,
3207
+ className: `mt-6 pt-5 border-t border-dashed flex items-end justify-between gap-3 ${H ? "border-zinc-800" : "border-slate-200"}`,
3208
3208
  children: [/* @__PURE__ */ m("div", {
3209
3209
  className: "space-y-2",
3210
3210
  children: [/* @__PURE__ */ p("div", {
@@ -3227,30 +3227,30 @@ var ot = (e) => {
3227
3227
  })
3228
3228
  ]
3229
3229
  });
3230
- }, Ze = () => {
3231
- let e = !!T, t = H ? xe : Ge, n = e ? H ? "Submitting your abstract" : "Submitting your registration" : "Loading your registration", r = T ? T.type || T.name : "", i = !H && T && T.price !== void 0 && T.price !== null && T.price !== "" ? Number(T.price) > 0 ? [T.currency, Number(T.price).toLocaleString()].filter(Boolean).join(" ") : "Free" : "";
3230
+ }, Qe = () => {
3231
+ let e = !!T, t = W ? be : Ge, n = e ? W ? "Submitting your abstract" : "Submitting your registration" : "Loading your registration", r = T ? T.type || T.name : "", i = !W && T && T.price !== void 0 && T.price !== null && T.price !== "" ? Number(T.price) > 0 ? [T.currency, Number(T.price).toLocaleString()].filter(Boolean).join(" ") : "Free" : "";
3232
3232
  return /* @__PURE__ */ p("div", {
3233
3233
  part: "screen screen-submitting",
3234
3234
  role: "status",
3235
3235
  "aria-live": "polite",
3236
3236
  "aria-busy": "true",
3237
- className: `flex-1 flex items-center justify-center px-4 py-16 ${Y ? "min-h-[70vh]" : "h-full"} ${B ? "bg-zinc-950" : "bg-slate-50"}`,
3237
+ className: `flex-1 flex items-center justify-center px-4 py-16 ${X ? "min-h-[70vh]" : "h-full"} ${H ? "bg-zinc-950" : "bg-slate-50"}`,
3238
3238
  style: Be,
3239
3239
  children: /* @__PURE__ */ m("div", {
3240
3240
  part: "portal-card",
3241
- className: `w-full max-w-sm rounded-3xl border p-8 text-center ${B ? "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)]"}`,
3241
+ className: `w-full max-w-sm rounded-3xl border p-8 text-center ${H ? "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)]"}`,
3242
3242
  children: [
3243
3243
  /* @__PURE__ */ m("div", {
3244
3244
  className: "relative mx-auto w-16 h-16",
3245
3245
  children: [
3246
3246
  /* @__PURE__ */ p("div", {
3247
3247
  className: "absolute inset-0 rounded-full",
3248
- style: { boxShadow: `inset 0 0 0 4px color-mix(in srgb, ${V} 14%, transparent)` }
3248
+ style: { boxShadow: `inset 0 0 0 4px color-mix(in srgb, ${U} 14%, transparent)` }
3249
3249
  }),
3250
3250
  /* @__PURE__ */ p("div", {
3251
3251
  className: "absolute inset-0 rounded-full motion-safe:animate-spin",
3252
3252
  style: {
3253
- background: `conic-gradient(from 0deg, transparent 0deg, ${V} 300deg, transparent 360deg)`,
3253
+ background: `conic-gradient(from 0deg, transparent 0deg, ${U} 300deg, transparent 360deg)`,
3254
3254
  mask: "radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px))",
3255
3255
  WebkitMask: "radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px))"
3256
3256
  }
@@ -3258,8 +3258,8 @@ var ot = (e) => {
3258
3258
  /* @__PURE__ */ p("div", {
3259
3259
  className: "absolute inset-[10px] rounded-full flex items-center justify-center",
3260
3260
  style: {
3261
- backgroundColor: `color-mix(in srgb, ${V} 12%, transparent)`,
3262
- color: V
3261
+ backgroundColor: `color-mix(in srgb, ${U} 12%, transparent)`,
3262
+ color: U
3263
3263
  },
3264
3264
  children: /* @__PURE__ */ p(t, { size: 20 })
3265
3265
  })
@@ -3267,35 +3267,35 @@ var ot = (e) => {
3267
3267
  }),
3268
3268
  /* @__PURE__ */ p("h3", {
3269
3269
  part: "screen-title",
3270
- className: `mt-6 text-xl font-bold tracking-tight ${B ? "text-white" : "text-slate-900"}`,
3270
+ className: `mt-6 text-xl font-bold tracking-tight ${H ? "text-white" : "text-slate-900"}`,
3271
3271
  style: $,
3272
3272
  children: n
3273
3273
  }),
3274
3274
  /* @__PURE__ */ p("p", {
3275
3275
  part: "screen-message",
3276
- className: `mt-1.5 text-[13px] leading-relaxed text-balance ${B ? "text-zinc-400" : "text-slate-500"}`,
3276
+ className: `mt-1.5 text-[13px] leading-relaxed text-balance ${H ? "text-zinc-400" : "text-slate-500"}`,
3277
3277
  children: "This usually takes a few seconds. Please keep this page open."
3278
3278
  }),
3279
3279
  r && /* @__PURE__ */ m("div", {
3280
- className: `mt-5 inline-flex max-w-full items-center gap-2 rounded-full px-3 py-1.5 text-xs font-semibold ${B ? "bg-zinc-800 text-zinc-200" : "bg-slate-100 text-slate-700"}`,
3280
+ className: `mt-5 inline-flex max-w-full items-center gap-2 rounded-full px-3 py-1.5 text-xs font-semibold ${H ? "bg-zinc-800 text-zinc-200" : "bg-slate-100 text-slate-700"}`,
3281
3281
  children: [/* @__PURE__ */ p("span", {
3282
3282
  className: "truncate",
3283
3283
  children: r
3284
3284
  }), i && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
3285
3285
  "aria-hidden": "true",
3286
- className: B ? "text-zinc-600" : "text-slate-300",
3286
+ className: H ? "text-zinc-600" : "text-slate-300",
3287
3287
  children: "•"
3288
3288
  }), /* @__PURE__ */ p("span", {
3289
3289
  className: "shrink-0 tabular-nums",
3290
- style: { color: V },
3290
+ style: { color: U },
3291
3291
  children: i
3292
3292
  })] })]
3293
3293
  }),
3294
3294
  /* @__PURE__ */ p("div", {
3295
- className: `mt-6 h-1 w-full overflow-hidden rounded-full ${B ? "bg-zinc-800" : "bg-slate-100"}`,
3295
+ className: `mt-6 h-1 w-full overflow-hidden rounded-full ${H ? "bg-zinc-800" : "bg-slate-100"}`,
3296
3296
  children: /* @__PURE__ */ p("div", {
3297
3297
  className: "vx-progress-bar h-full w-2/5 rounded-full",
3298
- style: { backgroundColor: V }
3298
+ style: { backgroundColor: U }
3299
3299
  })
3300
3300
  })
3301
3301
  ]
@@ -3306,20 +3306,20 @@ var ot = (e) => {
3306
3306
  part: "widget",
3307
3307
  className: Ve,
3308
3308
  style: {
3309
- ...X,
3310
- overflow: Y ? "visible" : "clip"
3309
+ ...Z,
3310
+ overflow: X ? "visible" : "clip"
3311
3311
  },
3312
3312
  onScroll: (e) => {
3313
- Y || (e.currentTarget.scrollTop !== 0 && (e.currentTarget.scrollTop = 0), e.currentTarget.scrollLeft !== 0 && (e.currentTarget.scrollLeft = 0));
3313
+ X || (e.currentTarget.scrollTop !== 0 && (e.currentTarget.scrollTop = 0), e.currentTarget.scrollLeft !== 0 && (e.currentTarget.scrollLeft = 0));
3314
3314
  },
3315
- children: te && !T && !j ? Xe() : te ? Ze() : j ? oe ? /* @__PURE__ */ m("div", {
3315
+ children: O && !T && !N ? Ze() : O ? Qe() : N ? oe ? /* @__PURE__ */ m("div", {
3316
3316
  part: "screen screen-payment",
3317
- className: `flex flex-col h-full relative overflow-y-auto ${B ? "bg-black text-white" : "bg-white text-gray-900"}`,
3317
+ className: `flex flex-col h-full relative overflow-y-auto ${H ? "bg-black text-white" : "bg-white text-gray-900"}`,
3318
3318
  children: [/* @__PURE__ */ m("div", {
3319
3319
  part: "screen-header",
3320
3320
  className: "p-4 shadow-sm flex justify-between items-center z-10",
3321
3321
  style: {
3322
- backgroundColor: V,
3322
+ backgroundColor: U,
3323
3323
  color: "white"
3324
3324
  },
3325
3325
  children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
@@ -3336,7 +3336,7 @@ var ot = (e) => {
3336
3336
  onClick: () => b(!y),
3337
3337
  title: y ? "Minimize" : "Expand",
3338
3338
  className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
3339
- children: p(y ? Fe : Ne, { size: 18 })
3339
+ children: p(y ? Pe : Me, { size: 18 })
3340
3340
  }), /* @__PURE__ */ p("button", {
3341
3341
  onClick: () => h(!1),
3342
3342
  className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
@@ -3349,20 +3349,20 @@ var ot = (e) => {
3349
3349
  /* @__PURE__ */ p("div", {
3350
3350
  className: "w-16 h-16 rounded-full flex items-center justify-center mb-4 text-2xl shadow-md",
3351
3351
  style: {
3352
- backgroundColor: `color-mix(in srgb, ${V} 12%, transparent)`,
3353
- color: V
3352
+ backgroundColor: `color-mix(in srgb, ${U} 12%, transparent)`,
3353
+ color: U
3354
3354
  },
3355
3355
  children: "💳"
3356
3356
  }),
3357
3357
  /* @__PURE__ */ p("h3", {
3358
3358
  part: "screen-title",
3359
- className: `text-2xl font-bold mb-2 ${B ? "text-white" : "text-gray-900"}`,
3359
+ className: `text-2xl font-bold mb-2 ${H ? "text-white" : "text-gray-900"}`,
3360
3360
  style: $,
3361
3361
  children: "Done Your Payment First"
3362
3362
  }),
3363
3363
  /* @__PURE__ */ p("p", {
3364
3364
  part: "screen-message",
3365
- className: `text-sm mb-6 max-w-xs leading-relaxed ${B ? "text-zinc-300" : "text-gray-600"}`,
3365
+ className: `text-sm mb-6 max-w-xs leading-relaxed ${H ? "text-zinc-300" : "text-gray-600"}`,
3366
3366
  children: "Please complete your payment in the new tab to confirm your booking and finalize your registration."
3367
3367
  }),
3368
3368
  Re(),
@@ -3374,12 +3374,12 @@ var ot = (e) => {
3374
3374
  target: "_blank",
3375
3375
  rel: "noopener noreferrer",
3376
3376
  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",
3377
- style: { backgroundColor: V },
3378
- children: [/* @__PURE__ */ p("span", { children: "Open Payment Page" }), /* @__PURE__ */ p(ye, { size: 16 })]
3377
+ style: { backgroundColor: U },
3378
+ children: [/* @__PURE__ */ p("span", { children: "Open Payment Page" }), /* @__PURE__ */ p(ve, { size: 16 })]
3379
3379
  }), /* @__PURE__ */ p("button", {
3380
3380
  part: "button button-link",
3381
- onClick: Me,
3382
- className: `w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${B ? "text-zinc-400 hover:text-white" : "text-gray-500 hover:text-gray-900"}`,
3381
+ onClick: Ne,
3382
+ className: `w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${H ? "text-zinc-400 hover:text-white" : "text-gray-500 hover:text-gray-900"}`,
3383
3383
  children: "Register Another Person"
3384
3384
  })]
3385
3385
  })
@@ -3387,47 +3387,47 @@ var ot = (e) => {
3387
3387
  })]
3388
3388
  }) : /* @__PURE__ */ m("div", {
3389
3389
  part: "screen screen-success",
3390
- className: `flex flex-col h-full items-center justify-center p-8 text-center relative ${B ? "bg-black text-white" : "bg-white text-gray-900"}`,
3390
+ className: `flex flex-col h-full items-center justify-center p-8 text-center relative ${H ? "bg-black text-white" : "bg-white text-gray-900"}`,
3391
3391
  children: [
3392
3392
  e.displayMode === "popup" && /* @__PURE__ */ p("div", {
3393
3393
  className: "absolute top-4 right-4 flex items-center gap-2",
3394
3394
  children: /* @__PURE__ */ p("button", {
3395
3395
  onClick: () => h(!1),
3396
- className: `cursor-pointer ${B ? "text-zinc-400 hover:text-white" : "text-gray-400 hover:text-gray-900"}`,
3396
+ className: `cursor-pointer ${H ? "text-zinc-400 hover:text-white" : "text-gray-400 hover:text-gray-900"}`,
3397
3397
  children: /* @__PURE__ */ p($e, { size: 24 })
3398
3398
  })
3399
3399
  }),
3400
3400
  /* @__PURE__ */ p("div", {
3401
3401
  className: "w-20 h-20 rounded-full flex items-center justify-center mb-6 text-4xl shadow-md",
3402
3402
  style: {
3403
- backgroundColor: V,
3403
+ backgroundColor: U,
3404
3404
  color: "white"
3405
3405
  },
3406
3406
  children: "✓"
3407
3407
  }),
3408
3408
  /* @__PURE__ */ p("h2", {
3409
3409
  part: "screen-title",
3410
- className: `text-3xl font-bold mb-3 ${B ? "text-white" : "text-gray-900"}`,
3410
+ className: `text-3xl font-bold mb-3 ${H ? "text-white" : "text-gray-900"}`,
3411
3411
  style: $,
3412
- children: H ? "Abstract Submitted Successfully" : "Thank You!"
3412
+ children: W ? "Abstract Submitted Successfully" : "Thank You!"
3413
3413
  }),
3414
3414
  /* @__PURE__ */ p("p", {
3415
3415
  part: "screen-message",
3416
- className: `mb-6 ${B ? "text-zinc-300" : "text-gray-600"}`,
3417
- children: H ? "Your reference registration number is below." : "Your registration has been successfully received."
3416
+ className: `mb-6 ${H ? "text-zinc-300" : "text-gray-600"}`,
3417
+ children: W ? "Your reference registration number is below." : "Your registration has been successfully received."
3418
3418
  }),
3419
3419
  Re(),
3420
3420
  /* @__PURE__ */ p("button", {
3421
3421
  part: "button button-primary",
3422
- onClick: Me,
3423
- style: { backgroundColor: V },
3422
+ onClick: Ne,
3423
+ style: { backgroundColor: U },
3424
3424
  className: "text-white font-bold py-3 px-8 rounded-md hover:opacity-90 transition-opacity shadow-md cursor-pointer",
3425
3425
  children: "Back"
3426
3426
  })
3427
3427
  ]
3428
- }) : ae ? /* @__PURE__ */ m("div", {
3428
+ }) : P ? /* @__PURE__ */ m("div", {
3429
3429
  part: "screen screen-error",
3430
- className: `flex flex-col h-full relative overflow-y-auto ${B ? "bg-black text-white" : "bg-white text-gray-900"}`,
3430
+ className: `flex flex-col h-full relative overflow-y-auto ${H ? "bg-black text-white" : "bg-white text-gray-900"}`,
3431
3431
  children: [/* @__PURE__ */ m("div", {
3432
3432
  part: "screen-header",
3433
3433
  className: "p-4 shadow-sm flex justify-between items-center z-10 bg-red-600 text-white",
@@ -3451,41 +3451,41 @@ var ot = (e) => {
3451
3451
  className: "flex-1 flex flex-col items-center justify-center p-6 text-center",
3452
3452
  children: [
3453
3453
  /* @__PURE__ */ p("div", {
3454
- className: `w-16 h-16 rounded-full flex items-center justify-center mb-4 text-2xl shadow-md border ${B ? "bg-red-950/60 text-red-400 border-red-900" : "bg-red-50 text-red-600 border-red-200"}`,
3454
+ className: `w-16 h-16 rounded-full flex items-center justify-center mb-4 text-2xl shadow-md border ${H ? "bg-red-950/60 text-red-400 border-red-900" : "bg-red-50 text-red-600 border-red-200"}`,
3455
3455
  children: "✕"
3456
3456
  }),
3457
3457
  /* @__PURE__ */ p("h3", {
3458
3458
  part: "screen-title",
3459
- className: `text-2xl font-bold mb-2 ${B ? "text-white" : "text-gray-900"}`,
3459
+ className: `text-2xl font-bold mb-2 ${H ? "text-white" : "text-gray-900"}`,
3460
3460
  style: $,
3461
3461
  children: "Submission Error"
3462
3462
  }),
3463
3463
  /* @__PURE__ */ p("p", {
3464
3464
  part: "screen-message",
3465
- className: `text-sm mb-6 max-w-xs leading-relaxed ${B ? "text-zinc-300" : "text-gray-600"}`,
3466
- children: ae
3465
+ className: `text-sm mb-6 max-w-xs leading-relaxed ${H ? "text-zinc-300" : "text-gray-600"}`,
3466
+ children: P
3467
3467
  }),
3468
3468
  /* @__PURE__ */ m("div", {
3469
3469
  className: "w-full max-w-xs space-y-3",
3470
3470
  children: [/* @__PURE__ */ p("button", {
3471
3471
  part: "button button-primary",
3472
- onClick: () => N(null),
3473
- style: { backgroundColor: V },
3472
+ onClick: () => ae(null),
3473
+ style: { backgroundColor: U },
3474
3474
  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",
3475
3475
  children: /* @__PURE__ */ p("span", { children: "Try Again" })
3476
3476
  }), /* @__PURE__ */ p("button", {
3477
3477
  part: "button button-link",
3478
3478
  onClick: () => {
3479
- N(null), E(null);
3479
+ ae(null), E(null);
3480
3480
  },
3481
- className: `w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${B ? "text-zinc-400 hover:text-white" : "text-gray-500 hover:text-gray-900"}`,
3481
+ className: `w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${H ? "text-zinc-400 hover:text-white" : "text-gray-500 hover:text-gray-900"}`,
3482
3482
  children: "Choose Another Ticket"
3483
3483
  })]
3484
3484
  })
3485
3485
  ]
3486
3486
  })]
3487
3487
  }) : T ? /* @__PURE__ */ p(et, {
3488
- schema: H ? D : T.form_schema,
3488
+ schema: W ? te : T.form_schema,
3489
3489
  ticketType: T,
3490
3490
  theme: e.theme,
3491
3491
  displayMode: e.displayMode,
@@ -3496,25 +3496,25 @@ var ot = (e) => {
3496
3496
  onSubmit: je,
3497
3497
  onChange: Ae,
3498
3498
  initialValues: ke,
3499
- isDark: B,
3500
- apiClient: W,
3501
- storage: G,
3499
+ isDark: H,
3500
+ apiClient: K,
3501
+ storage: q,
3502
3502
  onError: e.onError,
3503
3503
  onEvent: e.onEvent,
3504
- showReviewFields: H,
3504
+ showReviewFields: W,
3505
3505
  onBack: () => {
3506
- q.current && clearTimeout(q.current), E(null);
3506
+ J.current && clearTimeout(J.current), E(null);
3507
3507
  }
3508
3508
  }) : /* @__PURE__ */ m("div", {
3509
3509
  part: "page",
3510
- className: `flex flex-col ${Y ? "w-full flex-1" : "h-full min-h-0"} ${B ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"}`,
3510
+ className: `flex flex-col ${X ? "w-full flex-1" : "h-full min-h-0"} ${H ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"}`,
3511
3511
  children: [
3512
3512
  /* @__PURE__ */ m("div", {
3513
3513
  part: "header",
3514
3514
  className: "relative overflow-hidden z-10 shrink-0 text-white",
3515
3515
  style: {
3516
- backgroundColor: V,
3517
- background: `linear-gradient(135deg, ${V} 0%, color-mix(in srgb, ${V} 76%, black) 100%)`
3516
+ backgroundColor: U,
3517
+ background: `linear-gradient(135deg, ${U} 0%, color-mix(in srgb, ${U} 76%, black) 100%)`
3518
3518
  },
3519
3519
  children: [
3520
3520
  /* @__PURE__ */ p("div", {
@@ -3530,16 +3530,16 @@ var ot = (e) => {
3530
3530
  "aria-hidden": "true",
3531
3531
  className: "pointer-events-none absolute -top-24 -right-10 h-64 w-64 rounded-full bg-white/15 blur-3xl"
3532
3532
  }),
3533
- Te && /* @__PURE__ */ m("div", {
3533
+ we && /* @__PURE__ */ m("div", {
3534
3534
  className: "absolute inset-y-0 right-0 flex max-w-[65%] pointer-events-none select-none",
3535
3535
  children: [/* @__PURE__ */ p("img", {
3536
- src: Te,
3536
+ src: we,
3537
3537
  alt: "",
3538
3538
  "aria-hidden": "true",
3539
3539
  className: "h-full w-auto object-cover object-right"
3540
3540
  }), /* @__PURE__ */ p("div", {
3541
3541
  className: "absolute inset-y-0 left-0 w-2/5",
3542
- style: { background: `linear-gradient(to right, color-mix(in srgb, ${V} 80%, black) 0%, transparent 100%)` }
3542
+ style: { background: `linear-gradient(to right, color-mix(in srgb, ${U} 80%, black) 0%, transparent 100%)` }
3543
3543
  })]
3544
3544
  }),
3545
3545
  /* @__PURE__ */ m("div", {
@@ -3560,7 +3560,7 @@ var ot = (e) => {
3560
3560
  part: "header-title",
3561
3561
  className: "text-lg sm:text-2xl font-bold tracking-tight leading-tight break-words",
3562
3562
  style: $,
3563
- children: Z
3563
+ children: Q
3564
3564
  }), /* @__PURE__ */ m("span", {
3565
3565
  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",
3566
3566
  children: [/* @__PURE__ */ p("span", { className: "h-1.5 w-1.5 rounded-full bg-emerald-300" }), "Official Portal"]
@@ -3568,7 +3568,7 @@ var ot = (e) => {
3568
3568
  }), /* @__PURE__ */ p("p", {
3569
3569
  part: "header-subtitle",
3570
3570
  className: "text-xs sm:text-sm text-white/80 mt-0.5",
3571
- children: H ? "Select a category below to submit your abstract" : t === "registration" ? "Select a registration type below to begin your application" : "Registration & Profile Management"
3571
+ children: W ? "Select a category below to submit your abstract" : t === "registration" ? "Select a registration type below to begin your application" : "Registration & Profile Management"
3572
3572
  })]
3573
3573
  })]
3574
3574
  }), /* @__PURE__ */ p("div", {
@@ -3577,7 +3577,7 @@ var ot = (e) => {
3577
3577
  onClick: () => b(!y),
3578
3578
  title: y ? "Minimize" : "Expand",
3579
3579
  className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer p-1",
3580
- children: p(y ? Fe : Ne, { size: 18 })
3580
+ children: p(y ? Pe : Me, { size: 18 })
3581
3581
  }), /* @__PURE__ */ p("button", {
3582
3582
  onClick: () => h(!1),
3583
3583
  className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer p-1",
@@ -3587,22 +3587,22 @@ var ot = (e) => {
3587
3587
  })
3588
3588
  ]
3589
3589
  }),
3590
- !H && /* @__PURE__ */ p("div", {
3590
+ !W && /* @__PURE__ */ p("div", {
3591
3591
  part: "tabs",
3592
- className: `shrink-0 border-b ${B ? "border-zinc-800 bg-zinc-900" : "border-slate-200 bg-white"}`,
3592
+ className: `shrink-0 border-b ${H ? "border-zinc-800 bg-zinc-900" : "border-slate-200 bg-white"}`,
3593
3593
  children: /* @__PURE__ */ p("div", {
3594
3594
  className: "max-w-6xl mx-auto w-full px-4 sm:px-6 py-3",
3595
3595
  children: /* @__PURE__ */ p("div", {
3596
3596
  role: "tablist",
3597
- className: `grid grid-cols-2 gap-1 p-1 rounded-xl max-w-md ${B ? "bg-zinc-800" : "bg-slate-100"}`,
3597
+ className: `grid grid-cols-2 gap-1 p-1 rounded-xl max-w-md ${H ? "bg-zinc-800" : "bg-slate-100"}`,
3598
3598
  children: [{
3599
3599
  key: "registration",
3600
3600
  label: "Registration Forms",
3601
- Icon: pe
3601
+ Icon: fe
3602
3602
  }, {
3603
3603
  key: "attendee",
3604
3604
  label: "Attendee Login",
3605
- Icon: De
3605
+ Icon: Ee
3606
3606
  }].map(({ key: e, label: r, Icon: i }) => {
3607
3607
  let a = t === e;
3608
3608
  return /* @__PURE__ */ m("button", {
@@ -3611,8 +3611,8 @@ var ot = (e) => {
3611
3611
  "aria-selected": a,
3612
3612
  type: "button",
3613
3613
  onClick: () => n(e),
3614
- 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 ? B ? "bg-zinc-950 shadow-sm" : "bg-white shadow-sm ring-1 ring-slate-200/70" : B ? "text-zinc-400 hover:text-zinc-200" : "text-slate-500 hover:text-slate-800"}`,
3615
- style: a ? { color: V } : void 0,
3614
+ 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 ? H ? "bg-zinc-950 shadow-sm" : "bg-white shadow-sm ring-1 ring-slate-200/70" : H ? "text-zinc-400 hover:text-zinc-200" : "text-slate-500 hover:text-slate-800"}`,
3615
+ style: a ? { color: U } : void 0,
3616
3616
  children: [/* @__PURE__ */ p(i, {
3617
3617
  size: 15,
3618
3618
  className: "hidden sm:block shrink-0"
@@ -3625,26 +3625,26 @@ var ot = (e) => {
3625
3625
  })
3626
3626
  })
3627
3627
  }),
3628
- (H || t === "registration") && /* @__PURE__ */ p("div", {
3628
+ (W || t === "registration") && /* @__PURE__ */ p("div", {
3629
3629
  part: "list",
3630
- className: `${Y ? "w-full flex-1" : "overflow-y-auto flex-1 min-h-0 overscroll-contain"} relative ${B ? "bg-zinc-950" : "bg-slate-50"}`,
3630
+ className: `${X ? "w-full flex-1" : "overflow-y-auto flex-1 min-h-0 overscroll-contain"} relative ${H ? "bg-zinc-950" : "bg-slate-50"}`,
3631
3631
  style: Be,
3632
3632
  children: /* @__PURE__ */ p("div", {
3633
3633
  className: "max-w-6xl mx-auto w-full px-4 sm:px-6 py-6 sm:py-8 space-y-5",
3634
- children: H ? Je() : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", {
3634
+ children: W ? Ye() : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", {
3635
3635
  part: "search",
3636
3636
  className: "flex flex-col sm:flex-row sm:items-end sm:justify-between gap-3",
3637
3637
  children: [/* @__PURE__ */ m("div", {
3638
3638
  className: "min-w-0",
3639
3639
  children: [/* @__PURE__ */ p("h3", {
3640
3640
  part: "list-title",
3641
- className: `text-base sm:text-lg font-semibold tracking-tight ${B ? "text-white" : "text-slate-900"}`,
3641
+ className: `text-base sm:text-lg font-semibold tracking-tight ${H ? "text-white" : "text-slate-900"}`,
3642
3642
  style: $,
3643
- children: H ? "Choose a submission category" : "Choose your registration type"
3643
+ children: W ? "Choose a submission category" : "Choose your registration type"
3644
3644
  }), x.length > 0 && /* @__PURE__ */ p("p", {
3645
3645
  part: "list-count",
3646
- className: `text-xs mt-0.5 ${B ? "text-zinc-400" : "text-slate-500"}`,
3647
- children: Q ? `${Ke.length} of ${x.length} options` : `${x.length} ${x.length === 1 ? "option" : "options"} available`
3646
+ className: `text-xs mt-0.5 ${H ? "text-zinc-400" : "text-slate-500"}`,
3647
+ children: Ke ? `${qe.length} of ${x.length} options` : `${x.length} ${x.length === 1 ? "option" : "options"} available`
3648
3648
  })]
3649
3649
  }), /* @__PURE__ */ m("div", {
3650
3650
  className: "relative w-full sm:w-72",
@@ -3652,41 +3652,41 @@ var ot = (e) => {
3652
3652
  /* @__PURE__ */ p("input", {
3653
3653
  part: "input search-input",
3654
3654
  type: "text",
3655
- value: k,
3656
- onChange: (e) => A(e.target.value),
3657
- placeholder: H ? "Search categories…" : "Search registration types…",
3655
+ value: A,
3656
+ onChange: (e) => j(e.target.value),
3657
+ placeholder: W ? "Search categories…" : "Search registration types…",
3658
3658
  "aria-label": "Search",
3659
- 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)] ${B ? "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)]"}`
3659
+ 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)] ${H ? "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)]"}`
3660
3660
  }),
3661
3661
  /* @__PURE__ */ p("div", {
3662
- className: `absolute inset-y-0 left-3 flex items-center pointer-events-none ${B ? "text-zinc-500" : "text-slate-400"}`,
3662
+ className: `absolute inset-y-0 left-3 flex items-center pointer-events-none ${H ? "text-zinc-500" : "text-slate-400"}`,
3663
3663
  children: /* @__PURE__ */ p(Ue, {
3664
3664
  size: 15,
3665
3665
  className: "block"
3666
3666
  })
3667
3667
  }),
3668
- k && /* @__PURE__ */ p("button", {
3668
+ A && /* @__PURE__ */ p("button", {
3669
3669
  type: "button",
3670
- onClick: () => A(""),
3670
+ onClick: () => j(""),
3671
3671
  "aria-label": "Clear search",
3672
- className: `absolute inset-y-0 right-2.5 flex items-center cursor-pointer ${B ? "text-zinc-500 hover:text-zinc-300" : "text-slate-400 hover:text-slate-600"}`,
3672
+ className: `absolute inset-y-0 right-2.5 flex items-center cursor-pointer ${H ? "text-zinc-500 hover:text-zinc-300" : "text-slate-400 hover:text-slate-600"}`,
3673
3673
  children: /* @__PURE__ */ p($e, { size: 14 })
3674
3674
  })
3675
3675
  ]
3676
3676
  })]
3677
- }), x.length === 0 ? null : Ke.length === 0 ? /* @__PURE__ */ m("div", {
3677
+ }), x.length === 0 ? null : qe.length === 0 ? /* @__PURE__ */ m("div", {
3678
3678
  part: "empty-state",
3679
- className: `flex flex-col items-center text-center py-16 px-6 rounded-3xl border border-dashed ${B ? "bg-zinc-900/60 border-zinc-800 text-zinc-400" : "bg-white/70 border-slate-300 text-slate-500"}`,
3679
+ className: `flex flex-col items-center text-center py-16 px-6 rounded-3xl border border-dashed ${H ? "bg-zinc-900/60 border-zinc-800 text-zinc-400" : "bg-white/70 border-slate-300 text-slate-500"}`,
3680
3680
  children: [
3681
3681
  /* @__PURE__ */ p("div", {
3682
- className: `w-12 h-12 rounded-2xl flex items-center justify-center mb-4 ${B ? "bg-zinc-800" : "bg-slate-100"}`,
3682
+ className: `w-12 h-12 rounded-2xl flex items-center justify-center mb-4 ${H ? "bg-zinc-800" : "bg-slate-100"}`,
3683
3683
  children: /* @__PURE__ */ p(Ue, { size: 20 })
3684
3684
  }),
3685
3685
  /* @__PURE__ */ m("p", {
3686
- className: `text-base font-semibold ${B ? "text-white" : "text-slate-900"}`,
3686
+ className: `text-base font-semibold ${H ? "text-white" : "text-slate-900"}`,
3687
3687
  children: [
3688
3688
  "No matches for “",
3689
- k.trim(),
3689
+ A.trim(),
3690
3690
  "”"
3691
3691
  ]
3692
3692
  }),
@@ -3696,16 +3696,16 @@ var ot = (e) => {
3696
3696
  }),
3697
3697
  /* @__PURE__ */ p("button", {
3698
3698
  part: "button button-secondary",
3699
- onClick: () => A(""),
3700
- className: `mt-5 px-4 py-2 rounded-full text-sm font-semibold border cursor-pointer transition-colors ${B ? "border-zinc-700 text-zinc-200 hover:bg-zinc-800" : "border-slate-200 bg-white text-slate-700 hover:bg-slate-50"}`,
3699
+ onClick: () => j(""),
3700
+ className: `mt-5 px-4 py-2 rounded-full text-sm font-semibold border cursor-pointer transition-colors ${H ? "border-zinc-700 text-zinc-200 hover:bg-zinc-800" : "border-slate-200 bg-white text-slate-700 hover:bg-slate-50"}`,
3701
3701
  children: "Clear search"
3702
3702
  })
3703
3703
  ]
3704
3704
  }) : /* @__PURE__ */ p("div", {
3705
3705
  part: "card-grid",
3706
- className: Y ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5" : "space-y-3",
3707
- children: Ke.map((e) => {
3708
- 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.perks) ? e.perks : [], a = H ? xe : Ge;
3706
+ className: X ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5" : "space-y-3",
3707
+ children: qe.map((e) => {
3708
+ 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.perks) ? e.perks : [], a = W ? be : Ge;
3709
3709
  return /* @__PURE__ */ m("div", {
3710
3710
  part: "card",
3711
3711
  role: "button",
@@ -3715,44 +3715,44 @@ var ot = (e) => {
3715
3715
  onKeyDown: (t) => {
3716
3716
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), E(e));
3717
3717
  },
3718
- 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)] ${B ? "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)]"}`,
3718
+ 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)] ${H ? "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)]"}`,
3719
3719
  children: [
3720
3720
  /* @__PURE__ */ p("span", {
3721
3721
  "aria-hidden": "true",
3722
3722
  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",
3723
- style: { background: `linear-gradient(90deg, transparent, ${V}, transparent)` }
3723
+ style: { background: `linear-gradient(90deg, transparent, ${U}, transparent)` }
3724
3724
  }),
3725
3725
  /* @__PURE__ */ m("div", {
3726
3726
  className: "flex items-start justify-between gap-3",
3727
3727
  children: [/* @__PURE__ */ p("div", {
3728
3728
  className: "w-11 h-11 rounded-xl flex items-center justify-center shrink-0 transition-transform duration-300 group-hover:scale-105",
3729
3729
  style: {
3730
- backgroundColor: `color-mix(in srgb, ${V} 12%, transparent)`,
3731
- color: V
3730
+ backgroundColor: `color-mix(in srgb, ${U} 12%, transparent)`,
3731
+ color: U
3732
3732
  },
3733
3733
  children: /* @__PURE__ */ p(a, { size: 20 })
3734
3734
  }), (e.category || e.seats_left) && /* @__PURE__ */ m("div", {
3735
3735
  className: "flex flex-wrap justify-end items-center gap-1.5",
3736
3736
  children: [e.category && /* @__PURE__ */ p("span", {
3737
3737
  part: "card-category",
3738
- className: `text-[10px] font-semibold uppercase tracking-wider px-2.5 py-1 rounded-full ${B ? "bg-zinc-800 text-zinc-300" : "bg-slate-100 text-slate-600"}`,
3738
+ className: `text-[10px] font-semibold uppercase tracking-wider px-2.5 py-1 rounded-full ${H ? "bg-zinc-800 text-zinc-300" : "bg-slate-100 text-slate-600"}`,
3739
3739
  children: e.category
3740
3740
  }), e.seats_left && /* @__PURE__ */ m("span", {
3741
3741
  part: "card-seats",
3742
- className: `text-[10px] font-semibold px-2.5 py-1 rounded-full flex items-center gap-1 ${B ? "bg-amber-950/60 text-amber-300" : "bg-amber-50 text-amber-700"}`,
3743
- children: [/* @__PURE__ */ p(me, { size: 10 }), /* @__PURE__ */ p("span", { children: e.seats_left })]
3742
+ className: `text-[10px] font-semibold px-2.5 py-1 rounded-full flex items-center gap-1 ${H ? "bg-amber-950/60 text-amber-300" : "bg-amber-50 text-amber-700"}`,
3743
+ children: [/* @__PURE__ */ p(pe, { size: 10 }), /* @__PURE__ */ p("span", { children: e.seats_left })]
3744
3744
  })]
3745
3745
  })]
3746
3746
  }),
3747
3747
  /* @__PURE__ */ p("h3", {
3748
3748
  part: "card-title",
3749
- className: `mt-4 text-lg font-semibold leading-snug tracking-tight ${B ? "text-white" : "text-slate-900"}`,
3749
+ className: `mt-4 text-lg font-semibold leading-snug tracking-tight ${H ? "text-white" : "text-slate-900"}`,
3750
3750
  style: $,
3751
3751
  children: t
3752
3752
  }),
3753
3753
  e.description && /* @__PURE__ */ p("p", {
3754
3754
  part: "card-description",
3755
- className: `mt-1.5 text-sm leading-relaxed line-clamp-2 ${B ? "text-zinc-400" : "text-slate-500"}`,
3755
+ className: `mt-1.5 text-sm leading-relaxed line-clamp-2 ${H ? "text-zinc-400" : "text-slate-500"}`,
3756
3756
  children: e.description
3757
3757
  }),
3758
3758
  i.length > 0 && /* @__PURE__ */ p("ul", {
@@ -3763,48 +3763,48 @@ var ot = (e) => {
3763
3763
  children: [/* @__PURE__ */ p("span", {
3764
3764
  className: "mt-0.5 w-4 h-4 rounded-full flex items-center justify-center shrink-0",
3765
3765
  style: {
3766
- backgroundColor: `color-mix(in srgb, ${V} 14%, transparent)`,
3767
- color: V
3766
+ backgroundColor: `color-mix(in srgb, ${U} 14%, transparent)`,
3767
+ color: U
3768
3768
  },
3769
- children: /* @__PURE__ */ p(ce, {
3769
+ children: /* @__PURE__ */ p(se, {
3770
3770
  size: 10,
3771
3771
  strokeWidth: 3
3772
3772
  })
3773
3773
  }), /* @__PURE__ */ p("span", {
3774
- className: B ? "text-zinc-300" : "text-slate-600",
3774
+ className: H ? "text-zinc-300" : "text-slate-600",
3775
3775
  children: e
3776
3776
  })]
3777
3777
  }, t))
3778
3778
  }),
3779
3779
  /* @__PURE__ */ p("div", { className: "flex-1" }),
3780
3780
  /* @__PURE__ */ m("div", {
3781
- className: `mt-6 pt-5 border-t border-dashed flex items-end justify-between gap-3 ${B ? "border-zinc-800" : "border-slate-200"}`,
3781
+ className: `mt-6 pt-5 border-t border-dashed flex items-end justify-between gap-3 ${H ? "border-zinc-800" : "border-slate-200"}`,
3782
3782
  children: [/* @__PURE__ */ p("div", {
3783
3783
  className: "min-w-0",
3784
- children: n && !H ? /* @__PURE__ */ m(f, { children: [
3784
+ children: n && !W ? /* @__PURE__ */ m(f, { children: [
3785
3785
  /* @__PURE__ */ p("p", {
3786
- className: `text-[10px] font-semibold uppercase tracking-wider ${B ? "text-zinc-500" : "text-slate-400"}`,
3786
+ className: `text-[10px] font-semibold uppercase tracking-wider ${H ? "text-zinc-500" : "text-slate-400"}`,
3787
3787
  children: "Registration fee"
3788
3788
  }),
3789
3789
  /* @__PURE__ */ p("p", {
3790
3790
  part: "card-price",
3791
3791
  className: "text-2xl font-bold tracking-tight tabular-nums leading-tight",
3792
- style: { color: V },
3792
+ style: { color: U },
3793
3793
  children: r ? "Free" : [e.currency, Number(e.price).toLocaleString()].filter(Boolean).join(" ")
3794
3794
  }),
3795
3795
  e.tax_info && /* @__PURE__ */ p("p", {
3796
3796
  part: "card-tax",
3797
- className: `text-[11px] mt-0.5 ${B ? "text-zinc-500" : "text-slate-400"}`,
3797
+ className: `text-[11px] mt-0.5 ${H ? "text-zinc-500" : "text-slate-400"}`,
3798
3798
  children: e.tax_info
3799
3799
  })
3800
3800
  ] }) : null
3801
3801
  }), /* @__PURE__ */ m("span", {
3802
3802
  part: "button button-primary card-button",
3803
3803
  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)]",
3804
- style: { backgroundColor: V },
3805
- children: [H ? "Submit" : "Register", /* @__PURE__ */ p("span", {
3804
+ style: { backgroundColor: U },
3805
+ children: [W ? "Submit" : "Register", /* @__PURE__ */ p("span", {
3806
3806
  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",
3807
- children: /* @__PURE__ */ p(ie, { size: 14 })
3807
+ children: /* @__PURE__ */ p(re, { size: 14 })
3808
3808
  })]
3809
3809
  })]
3810
3810
  })
@@ -3814,23 +3814,23 @@ var ot = (e) => {
3814
3814
  })] })
3815
3815
  })
3816
3816
  }),
3817
- !H && (r || t === "attendee") && /* @__PURE__ */ p("div", {
3817
+ !W && (r || t === "attendee") && /* @__PURE__ */ p("div", {
3818
3818
  part: "portal",
3819
- className: `${t === "attendee" ? "flex" : "hidden"} flex-col ${Y ? "w-full flex-1" : "flex-1 overflow-hidden min-h-0"}`,
3819
+ className: `${t === "attendee" ? "flex" : "hidden"} flex-col ${X ? "w-full flex-1" : "flex-1 overflow-hidden min-h-0"}`,
3820
3820
  style: {
3821
- ...Y ? {} : { overflow: "clip" },
3821
+ ...X ? {} : { overflow: "clip" },
3822
3822
  ...Be
3823
3823
  },
3824
- onScroll: Y ? void 0 : (e) => {
3824
+ onScroll: X ? void 0 : (e) => {
3825
3825
  e.currentTarget.scrollTop !== 0 && (e.currentTarget.scrollTop = 0), e.currentTarget.scrollLeft !== 0 && (e.currentTarget.scrollLeft = 0);
3826
3826
  },
3827
3827
  children: /* @__PURE__ */ p(rt, {
3828
- apiClient: W,
3829
- storage: G,
3830
- logger: U,
3831
- primaryColor: V,
3832
- isDark: B,
3833
- isWidgetPage: Y,
3828
+ apiClient: K,
3829
+ storage: q,
3830
+ logger: G,
3831
+ primaryColor: U,
3832
+ isDark: H,
3833
+ isWidgetPage: X,
3834
3834
  onEvent: e.onEvent,
3835
3835
  onError: e.onError
3836
3836
  })