@voxket-ai/events-sdk 1.0.23 → 1.0.24

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.
@@ -27,7 +27,7 @@ var g = class {
27
27
  let e = ((/* @__PURE__ */ Error()).stack?.split("\n")[3] || "").match(/(?:at\s+.*?\s+\()?(?:.*?\/([^/]+?)):(\d+):\d+\)?$/);
28
28
  return e ? `[${e[1]}:${e[2]}]` : "";
29
29
  }
30
- }, _ = class {
30
+ }, ee = class {
31
31
  baseUrl;
32
32
  slug;
33
33
  logger;
@@ -183,24 +183,24 @@ var g = class {
183
183
  throw clearTimeout(o), e?.name === "AbortError" ? Error(`File upload timed out after ${this.timeoutMs / 1e3} seconds`) : e;
184
184
  }
185
185
  }
186
- async deleteFile(e, t) {
187
- let n = encodeURIComponent(String(e).trim()), r = t || null, i = {};
188
- r && (i.Authorization = `Bearer ${r}`);
189
- let a = [`/api/portal/${this.slug}/me/upload/${n}/`, `/api/portal/${this.slug}/me/upload/${n}`], o = null;
190
- for (let e = 0; e < a.length; e++) {
191
- let t = a[e];
186
+ async deleteFile(e, t, n) {
187
+ let r = encodeURIComponent(String(e).trim()), i = t || null, a = {};
188
+ i && (a.Authorization = `Bearer ${i}`);
189
+ let o = !i && n ? `?email=${encodeURIComponent(n)}` : "", s = [`/api/portal/${this.slug}/me/upload/${r}/${o}`, `/api/portal/${this.slug}/me/upload/${r}${o}`], c = null;
190
+ for (let e = 0; e < s.length; e++) {
191
+ let t = s[e];
192
192
  this.logger.log(`API Call: DELETE ${t}`);
193
193
  try {
194
194
  return await this.fetchApi(t, {
195
195
  method: "DELETE",
196
- headers: i
196
+ headers: a
197
197
  });
198
198
  } catch (t) {
199
- if (o = t, (t?.message?.includes("404") || t?.message?.includes("405")) && e < a.length - 1) continue;
199
+ if (c = t, (t?.message?.includes("404") || t?.message?.includes("405")) && e < s.length - 1) continue;
200
200
  throw t;
201
201
  }
202
202
  }
203
- throw o;
203
+ throw c;
204
204
  }
205
205
  async portalUploadFile(e, t) {
206
206
  return this.uploadFile(t, e);
@@ -272,7 +272,7 @@ var g = class {
272
272
  throw clearTimeout(i), e?.name === "AbortError" ? Error(`Submission update timed out after ${this.timeoutMs / 1e3} seconds`) : e;
273
273
  }
274
274
  }
275
- }, v = class {
275
+ }, _ = class {
276
276
  prefix;
277
277
  constructor(e) {
278
278
  this.prefix = `voxket_${e}_`;
@@ -304,13 +304,13 @@ var g = class {
304
304
  clearToken() {
305
305
  localStorage.removeItem(`${this.prefix}token`);
306
306
  }
307
- }, y = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
307
+ }, v = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
308
308
  //#endregion
309
309
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
310
- function b(e, t, n = []) {
310
+ function y(e, t, n = []) {
311
311
  if (t == null) throw Error("[lucide]: iconNode is required when icon name is used");
312
312
  return {
313
- name: y(e),
313
+ name: v(e),
314
314
  size: 24,
315
315
  node: t,
316
316
  ...n.length > 0 ? { aliases: n } : {}
@@ -318,7 +318,7 @@ function b(e, t, n = []) {
318
318
  }
319
319
  //#endregion
320
320
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
321
- var x = (e) => {
321
+ var b = (e) => {
322
322
  let t = "", n = !1;
323
323
  for (let r of e) {
324
324
  if (r === "-" || r === "_" || r <= " ") {
@@ -328,10 +328,10 @@ var x = (e) => {
328
328
  t.length === 0 ? t += r.toLowerCase() : t += n ? r.toUpperCase() : r, n = !1;
329
329
  }
330
330
  return t;
331
- }, S = (e) => {
332
- let t = x(e);
331
+ }, x = (e) => {
332
+ let t = b(e);
333
333
  return t.charAt(0).toUpperCase() + t.slice(1);
334
- }, C = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), w = {
334
+ }, S = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), C = {
335
335
  xmlns: "http://www.w3.org/2000/svg",
336
336
  width: 24,
337
337
  height: 24,
@@ -344,22 +344,22 @@ var x = (e) => {
344
344
  };
345
345
  //#endregion
346
346
  //#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
347
- function T(e) {
347
+ function w(e) {
348
348
  return e != null;
349
349
  }
350
- function E(e, t = {}) {
351
- let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? w.width, a = e.size ?? e.height ?? w.height, o = e.aliases?.filter((e) => typeof e == "string" && e.trim() !== "").map((e) => `lucide-${e}`) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...o], c = t.className?.split(" ").filter(Boolean) ?? [], l = t.includeDefaultClasses === !1 ? C(...c) : C("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? w["stroke-width"]) * Number(e.size ?? e.width ?? w.width) / Number(t.size ?? t.width ?? w.width) : t.strokeWidth ?? w["stroke-width"];
350
+ function T(e, t = {}) {
351
+ let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? C.width, a = e.size ?? e.height ?? C.height, o = e.aliases?.filter((e) => typeof e == "string" && e.trim() !== "").map((e) => `lucide-${e}`) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...o], c = t.className?.split(" ").filter(Boolean) ?? [], l = t.includeDefaultClasses === !1 ? S(...c) : S("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? C["stroke-width"]) * Number(e.size ?? e.width ?? C.width) / Number(t.size ?? t.width ?? C.width) : t.strokeWidth ?? C["stroke-width"];
352
352
  return [
353
353
  "svg",
354
354
  {
355
- ...Object.entries(w).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
355
+ ...Object.entries(C).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
356
356
  ..."color" in t && t.color && { [r("stroke")]: t.color },
357
- ..."size" in t && T(t.size) && {
357
+ ..."size" in t && w(t.size) && {
358
358
  [r("width")]: t.size,
359
359
  [r("height")]: t.size
360
360
  },
361
- ..."width" in t && T(t.width) && { [r("width")]: t.width },
362
- ..."height" in t && T(t.height) && { [r("height")]: t.height },
361
+ ..."width" in t && w(t.width) && { [r("width")]: t.width },
362
+ ..."height" in t && w(t.height) && { [r("height")]: t.height },
363
363
  [r("stroke-width")]: u,
364
364
  ...l && { [r("class")]: l },
365
365
  [r("viewBox")]: `0 0 ${i} ${a}`,
@@ -381,8 +381,8 @@ function E(e, t = {}) {
381
381
  }
382
382
  //#endregion
383
383
  //#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
384
- function D(e, t = {}) {
385
- return E(e, {
384
+ function E(e, t = {}) {
385
+ return T(e, {
386
386
  ...t,
387
387
  attributeNames: {
388
388
  ...t.attributeNames,
@@ -396,44 +396,44 @@ function D(e, t = {}) {
396
396
  }
397
397
  //#endregion
398
398
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
399
- var ee = (e) => {
399
+ var te = (e) => {
400
400
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
401
401
  return !1;
402
- }, te = n({}), O = () => o(te), ne = i(({ color: e, size: t, width: n, height: i, strokeWidth: a, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
402
+ }, ne = n({}), D = () => o(ne), re = i(({ color: e, size: t, width: n, height: i, strokeWidth: a, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
403
403
  node: u,
404
404
  aliases: [],
405
405
  size: 24
406
406
  }, ...f }, p) => {
407
- let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = O() ?? {}, b = !!l || ee(f), [x, S, w = []] = D(d, {
408
- color: e ?? v,
407
+ let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: ee = !1, color: _ = "currentColor", className: v = "" } = D() ?? {}, y = !!l || te(f), [b, x, C = []] = E(d, {
408
+ color: e ?? _,
409
409
  width: n ?? t ?? m,
410
410
  height: i ?? t ?? m,
411
411
  strokeWidth: a ?? h,
412
412
  absoluteStrokeWidth: o ?? g,
413
- nonScalingStroke: s ?? _,
414
- className: C(y, c),
415
- hasA11yProp: b,
413
+ nonScalingStroke: s ?? ee,
414
+ className: S(v, c),
415
+ hasA11yProp: y,
416
416
  attributes: f
417
417
  });
418
- return r(x, {
418
+ return r(b, {
419
419
  ref: p,
420
- ...S
421
- }, [...w.map(([e, t]) => r(e, t)), ...Array.isArray(l) ? l : [l]]);
420
+ ...x
421
+ }, [...C.map(([e, t]) => r(e, t)), ...Array.isArray(l) ? l : [l]]);
422
422
  });
423
423
  //#endregion
424
424
  //#region node_modules/lucide-react/dist/esm/createLucideIcon.mjs
425
- function k(e, t = [], n = []) {
426
- let a = typeof e == "string" ? b(e, t, n) : e, o = i(({ className: e, ...t }, n) => r(ne, {
425
+ function O(e, t = [], n = []) {
426
+ let a = typeof e == "string" ? y(e, t, n) : e, o = i(({ className: e, ...t }, n) => r(re, {
427
427
  ref: n,
428
428
  icon: a,
429
429
  className: e,
430
430
  ...t
431
431
  }));
432
- return a.name && (o.displayName = S(a.name)), o;
432
+ return a.name && (o.displayName = x(a.name)), o;
433
433
  }
434
434
  //#endregion
435
435
  //#region node_modules/lucide-react/dist/esm/icons/arrow-left.mjs
436
- var A = {
436
+ var k = {
437
437
  name: "arrow-left",
438
438
  size: 24,
439
439
  node: [["path", {
@@ -444,8 +444,8 @@ var A = {
444
444
  key: "x3x0zl"
445
445
  }]]
446
446
  };
447
- A.node;
448
- var re = k(A), j = {
447
+ k.node;
448
+ var ie = O(k), A = {
449
449
  name: "arrow-right",
450
450
  size: 24,
451
451
  node: [["path", {
@@ -456,8 +456,8 @@ var re = k(A), j = {
456
456
  key: "xquz4c"
457
457
  }]]
458
458
  };
459
- j.node;
460
- var ie = k(j), ae = {
459
+ A.node;
460
+ var ae = O(A), oe = {
461
461
  name: "briefcase",
462
462
  size: 24,
463
463
  node: [["path", {
@@ -472,8 +472,8 @@ var ie = k(j), ae = {
472
472
  key: "i6l2r4"
473
473
  }]]
474
474
  };
475
- ae.node;
476
- var M = k(ae), oe = {
475
+ oe.node;
476
+ var j = O(oe), se = {
477
477
  name: "building-complex",
478
478
  size: 24,
479
479
  node: [
@@ -500,8 +500,8 @@ var M = k(ae), oe = {
500
500
  ],
501
501
  aliases: ["building-2"]
502
502
  };
503
- oe.node;
504
- var se = k(oe), ce = {
503
+ se.node;
504
+ var ce = O(se), le = {
505
505
  name: "check",
506
506
  size: 24,
507
507
  node: [["path", {
@@ -509,8 +509,8 @@ var se = k(oe), ce = {
509
509
  key: "1gmf2c"
510
510
  }]]
511
511
  };
512
- ce.node;
513
- var le = k(ce), ue = {
512
+ le.node;
513
+ var ue = O(le), de = {
514
514
  name: "chevron-down",
515
515
  size: 24,
516
516
  node: [["path", {
@@ -518,8 +518,8 @@ var le = k(ce), ue = {
518
518
  key: "qrunsl"
519
519
  }]]
520
520
  };
521
- ue.node;
522
- var de = k(ue), fe = {
521
+ de.node;
522
+ var fe = O(de), pe = {
523
523
  name: "circle-alert",
524
524
  size: 24,
525
525
  node: [
@@ -546,8 +546,8 @@ var de = k(ue), fe = {
546
546
  ],
547
547
  aliases: ["alert-circle"]
548
548
  };
549
- fe.node;
550
- var pe = k(fe), N = {
549
+ pe.node;
550
+ var me = O(pe), M = {
551
551
  name: "circle-check-big",
552
552
  size: 24,
553
553
  node: [["path", {
@@ -559,8 +559,8 @@ var pe = k(fe), N = {
559
559
  }]],
560
560
  aliases: ["check-circle"]
561
561
  };
562
- N.node;
563
- var me = k(N), P = {
562
+ M.node;
563
+ var he = O(M), N = {
564
564
  name: "clipboard-list",
565
565
  size: 24,
566
566
  node: [
@@ -595,8 +595,8 @@ var me = k(N), P = {
595
595
  }]
596
596
  ]
597
597
  };
598
- P.node;
599
- var he = k(P), F = {
598
+ N.node;
599
+ var ge = O(N), P = {
600
600
  name: "clock",
601
601
  size: 24,
602
602
  node: [["circle", {
@@ -609,8 +609,8 @@ var he = k(P), F = {
609
609
  key: "mmk7yg"
610
610
  }]]
611
611
  };
612
- F.node;
613
- var ge = k(F), I = {
612
+ P.node;
613
+ var F = O(P), I = {
614
614
  name: "copy",
615
615
  size: 24,
616
616
  node: [["rect", {
@@ -627,7 +627,7 @@ var ge = k(F), I = {
627
627
  }]]
628
628
  };
629
629
  I.node;
630
- var _e = k(I), ve = {
630
+ var _e = O(I), ve = {
631
631
  name: "credit-card",
632
632
  size: 24,
633
633
  node: [
@@ -653,7 +653,7 @@ var _e = k(I), ve = {
653
653
  ]
654
654
  };
655
655
  ve.node;
656
- var ye = k(ve), L = {
656
+ var ye = O(ve), L = {
657
657
  name: "download",
658
658
  size: 24,
659
659
  node: [
@@ -672,7 +672,7 @@ var ye = k(ve), L = {
672
672
  ]
673
673
  };
674
674
  L.node;
675
- var be = k(L), xe = {
675
+ var be = O(L), xe = {
676
676
  name: "external-link",
677
677
  size: 24,
678
678
  node: [
@@ -691,7 +691,7 @@ var be = k(L), xe = {
691
691
  ]
692
692
  };
693
693
  xe.node;
694
- var Se = k(xe), Ce = {
694
+ var Se = O(xe), Ce = {
695
695
  name: "file-text",
696
696
  size: 24,
697
697
  node: [
@@ -718,7 +718,7 @@ var Se = k(xe), Ce = {
718
718
  ]
719
719
  };
720
720
  Ce.node;
721
- var we = k(Ce), Te = {
721
+ var we = O(Ce), Te = {
722
722
  name: "folder-open",
723
723
  size: 24,
724
724
  node: [["path", {
@@ -727,7 +727,7 @@ var we = k(Ce), Te = {
727
727
  }]]
728
728
  };
729
729
  Te.node;
730
- var R = k(Te), z = {
730
+ var R = O(Te), z = {
731
731
  name: "graduation-cap",
732
732
  size: 24,
733
733
  node: [
@@ -746,7 +746,7 @@ var R = k(Te), z = {
746
746
  ]
747
747
  };
748
748
  z.node;
749
- var B = k(z), V = {
749
+ var B = O(z), V = {
750
750
  name: "id-card",
751
751
  size: 24,
752
752
  node: [
@@ -779,7 +779,7 @@ var B = k(z), V = {
779
779
  ]
780
780
  };
781
781
  V.node;
782
- var H = k(V), U = {
782
+ var H = O(V), U = {
783
783
  name: "info",
784
784
  size: 24,
785
785
  node: [
@@ -800,7 +800,7 @@ var H = k(V), U = {
800
800
  ]
801
801
  };
802
802
  U.node;
803
- var Ee = k(U), W = {
803
+ var Ee = O(U), W = {
804
804
  name: "key-round",
805
805
  size: 24,
806
806
  node: [["path", {
@@ -815,7 +815,7 @@ var Ee = k(U), W = {
815
815
  }]]
816
816
  };
817
817
  W.node;
818
- var G = k(W), K = {
818
+ var G = O(W), K = {
819
819
  name: "key",
820
820
  size: 24,
821
821
  node: [
@@ -836,7 +836,7 @@ var G = k(W), K = {
836
836
  ]
837
837
  };
838
838
  K.node;
839
- var De = k(K), q = {
839
+ var De = O(K), q = {
840
840
  name: "lock",
841
841
  size: 24,
842
842
  node: [["rect", {
@@ -853,7 +853,7 @@ var De = k(K), q = {
853
853
  }]]
854
854
  };
855
855
  q.node;
856
- var J = k(q), Y = {
856
+ var J = O(q), Y = {
857
857
  name: "log-in",
858
858
  size: 24,
859
859
  node: [
@@ -872,7 +872,7 @@ var J = k(q), Y = {
872
872
  ]
873
873
  };
874
874
  Y.node;
875
- var Oe = k(Y), ke = {
875
+ var Oe = O(Y), ke = {
876
876
  name: "log-out",
877
877
  size: 24,
878
878
  node: [
@@ -891,7 +891,7 @@ var Oe = k(Y), ke = {
891
891
  ]
892
892
  };
893
893
  ke.node;
894
- var Ae = k(ke), je = {
894
+ var Ae = O(ke), je = {
895
895
  name: "mail",
896
896
  size: 24,
897
897
  node: [["path", {
@@ -907,7 +907,7 @@ var Ae = k(ke), je = {
907
907
  }]]
908
908
  };
909
909
  je.node;
910
- var Me = k(je), Ne = {
910
+ var Me = O(je), Ne = {
911
911
  name: "map-pin",
912
912
  size: 24,
913
913
  node: [["path", {
@@ -921,7 +921,7 @@ var Me = k(je), Ne = {
921
921
  }]]
922
922
  };
923
923
  Ne.node;
924
- var Pe = k(Ne), X = {
924
+ var Pe = O(Ne), X = {
925
925
  name: "maximize-2",
926
926
  size: 24,
927
927
  node: [
@@ -944,7 +944,7 @@ var Pe = k(Ne), X = {
944
944
  ]
945
945
  };
946
946
  X.node;
947
- var Fe = k(X), Ie = {
947
+ var Fe = O(X), Ie = {
948
948
  name: "minimize-2",
949
949
  size: 24,
950
950
  node: [
@@ -967,7 +967,7 @@ var Fe = k(X), Ie = {
967
967
  ]
968
968
  };
969
969
  Ie.node;
970
- var Le = k(Ie), Z = {
970
+ var Le = O(Ie), Z = {
971
971
  name: "move",
972
972
  size: 24,
973
973
  node: [
@@ -998,7 +998,7 @@ var Le = k(Ie), Z = {
998
998
  ]
999
999
  };
1000
1000
  Z.node;
1001
- var Re = k(Z), Q = {
1001
+ var Re = O(Z), Q = {
1002
1002
  name: "package-check",
1003
1003
  size: 24,
1004
1004
  node: [
@@ -1025,7 +1025,7 @@ var Re = k(Z), Q = {
1025
1025
  ]
1026
1026
  };
1027
1027
  Q.node;
1028
- var ze = k(Q), Be = {
1028
+ var ze = O(Q), Be = {
1029
1029
  name: "phone",
1030
1030
  size: 24,
1031
1031
  node: [["path", {
@@ -1034,7 +1034,7 @@ var ze = k(Q), Be = {
1034
1034
  }]]
1035
1035
  };
1036
1036
  Be.node;
1037
- var Ve = k(Be), He = {
1037
+ var Ve = O(Be), He = {
1038
1038
  name: "receipt",
1039
1039
  size: 24,
1040
1040
  node: [
@@ -1053,7 +1053,7 @@ var Ve = k(Be), He = {
1053
1053
  ]
1054
1054
  };
1055
1055
  He.node;
1056
- var Ue = k(He), We = {
1056
+ var Ue = O(He), We = {
1057
1057
  name: "search",
1058
1058
  size: 24,
1059
1059
  node: [["path", {
@@ -1067,7 +1067,7 @@ var Ue = k(He), We = {
1067
1067
  }]]
1068
1068
  };
1069
1069
  We.node;
1070
- var Ge = k(We), Ke = {
1070
+ var Ge = O(We), Ke = {
1071
1071
  name: "sparkles",
1072
1072
  size: 24,
1073
1073
  node: [
@@ -1093,7 +1093,7 @@ var Ge = k(We), Ke = {
1093
1093
  aliases: ["stars"]
1094
1094
  };
1095
1095
  Ke.node;
1096
- var qe = k(Ke), Je = {
1096
+ var qe = O(Ke), Je = {
1097
1097
  name: "ticket",
1098
1098
  size: 24,
1099
1099
  node: [
@@ -1116,7 +1116,7 @@ var qe = k(Ke), Je = {
1116
1116
  ]
1117
1117
  };
1118
1118
  Je.node;
1119
- var Ye = k(Je), Xe = {
1119
+ var Ye = O(Je), Xe = {
1120
1120
  name: "trash",
1121
1121
  size: 24,
1122
1122
  node: [
@@ -1144,7 +1144,7 @@ var Ye = k(Je), Xe = {
1144
1144
  aliases: ["trash-2"]
1145
1145
  };
1146
1146
  Xe.node;
1147
- var Ze = k(Xe), Qe = {
1147
+ var Ze = O(Xe), Qe = {
1148
1148
  name: "upload",
1149
1149
  size: 24,
1150
1150
  node: [
@@ -1163,7 +1163,7 @@ var Ze = k(Xe), Qe = {
1163
1163
  ]
1164
1164
  };
1165
1165
  Qe.node;
1166
- var $e = k(Qe), et = {
1166
+ var $e = O(Qe), et = {
1167
1167
  name: "user",
1168
1168
  size: 24,
1169
1169
  node: [["path", {
@@ -1177,7 +1177,7 @@ var $e = k(Qe), et = {
1177
1177
  }]]
1178
1178
  };
1179
1179
  et.node;
1180
- var tt = k(et), nt = {
1180
+ var tt = O(et), nt = {
1181
1181
  name: "x",
1182
1182
  size: 24,
1183
1183
  node: [["path", {
@@ -1189,7 +1189,7 @@ var tt = k(et), nt = {
1189
1189
  }]]
1190
1190
  };
1191
1191
  nt.node;
1192
- var rt = k(nt), $ = { fontFamily: "var(--vx-font-heading)" }, it = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i;
1192
+ var rt = O(nt), $ = { fontFamily: "var(--vx-font-heading)" }, it = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i;
1193
1193
  function at(e) {
1194
1194
  let t = e, n = typeof e == "string" ? e : t?.serve_url || t?.url || t?.id || "";
1195
1195
  return String(n || "").match(it)?.[0] || "";
@@ -1211,11 +1211,11 @@ function st(e, t = "") {
1211
1211
  }
1212
1212
  //#endregion
1213
1213
  //#region src/widget/components/DynamicForm.tsx
1214
- var ct = ({ 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 }) => {
1215
- let [C, w] = d(u || {}), [T, E] = d(null), [D, ee] = d(null), [te, O] = d({}), [ne, k] = d({}), [A, j] = d(null), [ae, M] = d(null), [oe, se] = d({}), [ce, ue] = d({}), [fe, pe] = d({}), N = r?.primaryColor || "#c026d3";
1214
+ var ct = ({ 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: ee, onError: _, onEvent: v, backgroundStyle: y, ticketType: b, showReviewFields: x = !1 }) => {
1215
+ let [S, C] = d(u || {}), [w, T] = d(null), [E, te] = d(null), [ne, D] = d({}), [re, O] = d({}), [k, A] = d(null), [oe, j] = d(null), [se, ce] = d({}), [le, de] = d({}), [pe, me] = d({}), M = r?.primaryColor || "#c026d3";
1216
1216
  s(() => {
1217
1217
  if (u && Object.keys(u).length > 0) {
1218
- w((e) => ({
1218
+ C((e) => ({
1219
1219
  ...u,
1220
1220
  ...e
1221
1221
  }));
@@ -1225,49 +1225,49 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1225
1225
  let r = u[e.id];
1226
1226
  r && (String(r).startsWith("http://") || String(r).startsWith("https://") ? (n[e.id] = String(r), at(r) && (t[e.id] = at(r))) : t[e.id] = String(r));
1227
1227
  }
1228
- }), Object.keys(t).length > 0 && O((e) => ({
1228
+ }), Object.keys(t).length > 0 && D((e) => ({
1229
1229
  ...t,
1230
1230
  ...e
1231
- })), Object.keys(n).length > 0 && k((e) => ({
1231
+ })), Object.keys(n).length > 0 && O((e) => ({
1232
1232
  ...n,
1233
1233
  ...e
1234
1234
  }));
1235
1235
  }
1236
1236
  }, [u, e]);
1237
- let me = (e, t) => {
1238
- w((n) => {
1237
+ let he = (e, t) => {
1238
+ C((n) => {
1239
1239
  let r = {
1240
1240
  ...n,
1241
1241
  [e]: t
1242
1242
  };
1243
1243
  return l?.(r), r;
1244
1244
  });
1245
- }, P = async (t, n) => {
1245
+ }, N = async (t, n) => {
1246
1246
  if (!g) return;
1247
- E(t), j(null), M(null);
1248
- let r = _?.getToken?.() || null, i = te[t], a = (e?.fields || []).find((e) => e.id === t);
1247
+ T(t), A(null), j(null);
1248
+ let r = ee?.getToken?.() || null, i = ne[t], a = (e?.fields || []).find((e) => e.id === t);
1249
1249
  try {
1250
- let e = await g.uploadFile(n, r, r ? null : ge(), a?.label), o = e?.data?.asset_id || e?.asset_id, s = e?.data?.serve_url || e?.serve_url;
1250
+ let e = await g.uploadFile(n, r, r ? null : F(), a?.label), o = e?.data?.asset_id || e?.asset_id, s = e?.data?.serve_url || e?.serve_url;
1251
1251
  if (!o && !s) throw Error("Upload response missing asset_id");
1252
1252
  let c = String(o || at(s)), u = String(s || "");
1253
- if (O((e) => ({
1253
+ if (D((e) => ({
1254
1254
  ...e,
1255
1255
  [t]: c
1256
- })), u && k((e) => ({
1256
+ })), u && O((e) => ({
1257
1257
  ...e,
1258
1258
  [t]: u
1259
- })), w((e) => {
1259
+ })), C((e) => {
1260
1260
  let n = {
1261
1261
  ...e,
1262
1262
  [t]: u || c
1263
1263
  };
1264
1264
  return l?.(n), n;
1265
- }), y?.("file_uploaded", {
1265
+ }), v?.("file_uploaded", {
1266
1266
  fieldId: t,
1267
1267
  assetId: c,
1268
1268
  serveUrl: u
1269
1269
  }), i && i !== c) try {
1270
- await g.deleteFile(at(i) || i, r), y?.("file_deleted", {
1270
+ await g.deleteFile(at(i) || i, r, r ? null : F()), v?.("file_deleted", {
1271
1271
  fieldId: t,
1272
1272
  assetId: i
1273
1273
  });
@@ -1276,35 +1276,35 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1276
1276
  }
1277
1277
  } catch (e) {
1278
1278
  let n = e?.message || "File upload failed. Please try again.";
1279
- j(n), M(t), v?.({
1279
+ A(n), j(t), _?.({
1280
1280
  type: "file_upload_error",
1281
1281
  message: n,
1282
1282
  error: e
1283
1283
  });
1284
1284
  } finally {
1285
- E(null);
1285
+ T(null);
1286
1286
  }
1287
- }, he = async (e) => {
1287
+ }, ge = async (e) => {
1288
1288
  if (!g) return;
1289
- let t = _?.getToken?.() || null, n = te[e] || C[e], r = at(n) || n;
1290
- ee(e), j(null), M(null);
1289
+ let t = ee?.getToken?.() || null, n = ne[e] || S[e], r = at(n) || n;
1290
+ te(e), A(null), j(null);
1291
1291
  try {
1292
- r && (await g.deleteFile(r, t), y?.("file_deleted", {
1292
+ r && (await g.deleteFile(r, t, t ? null : F()), v?.("file_deleted", {
1293
1293
  fieldId: e,
1294
1294
  assetId: r
1295
- })), O((t) => {
1295
+ })), D((t) => {
1296
1296
  let n = { ...t };
1297
1297
  return delete n[e], n;
1298
- }), k((t) => {
1298
+ }), O((t) => {
1299
1299
  let n = { ...t };
1300
1300
  return delete n[e], n;
1301
- }), pe((t) => {
1301
+ }), me((t) => {
1302
1302
  let n = { ...t };
1303
1303
  return delete n[e], n;
1304
- }), ue((t) => {
1304
+ }), de((t) => {
1305
1305
  let n = { ...t };
1306
1306
  return delete n[e], n;
1307
- }), w((t) => {
1307
+ }), C((t) => {
1308
1308
  let n = {
1309
1309
  ...t,
1310
1310
  [e]: ""
@@ -1313,43 +1313,43 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1313
1313
  });
1314
1314
  } catch (t) {
1315
1315
  let n = t?.message || "Failed to delete file. Please try again.";
1316
- j(n), M(e), v?.({
1316
+ A(n), j(e), _?.({
1317
1317
  type: "file_delete_error",
1318
1318
  message: n,
1319
1319
  error: t
1320
1320
  });
1321
1321
  } finally {
1322
- ee(null);
1322
+ te(null);
1323
1323
  }
1324
- }, F = async (t, n) => {
1324
+ }, P = async (t, n) => {
1325
1325
  if (!g || !n.trim()) return;
1326
- E(t), j(null), M(null);
1327
- let r = _?.getToken?.() || null, i = te[t], a = (e?.fields || []).find((e) => e.id === t);
1326
+ T(t), A(null), j(null);
1327
+ let r = ee?.getToken?.() || null, i = ne[t], a = (e?.fields || []).find((e) => e.id === t);
1328
1328
  try {
1329
- let e = await g.submitTextAnswer(n.trim(), r, r ? null : ge(), a?.label), o = e?.data?.asset_id || e?.asset_id;
1329
+ let e = await g.submitTextAnswer(n.trim(), r, r ? null : F(), a?.label), o = e?.data?.asset_id || e?.asset_id;
1330
1330
  if (!o) throw Error("Submission response missing asset_id");
1331
1331
  let s = String(o);
1332
- if (O((e) => ({
1332
+ if (D((e) => ({
1333
1333
  ...e,
1334
1334
  [t]: s
1335
- })), k((e) => {
1335
+ })), O((e) => {
1336
1336
  let n = { ...e };
1337
1337
  return delete n[t], n;
1338
- }), pe((e) => ({
1338
+ }), me((e) => ({
1339
1339
  ...e,
1340
1340
  [t]: n.trim()
1341
- })), w((e) => {
1341
+ })), C((e) => {
1342
1342
  let n = {
1343
1343
  ...e,
1344
1344
  [t]: s
1345
1345
  };
1346
1346
  return l?.(n), n;
1347
- }), y?.("file_uploaded", {
1347
+ }), v?.("file_uploaded", {
1348
1348
  fieldId: t,
1349
1349
  assetId: s,
1350
1350
  isText: !0
1351
1351
  }), i && i !== s) try {
1352
- await g.deleteFile(at(i) || i, r), y?.("file_deleted", {
1352
+ await g.deleteFile(at(i) || i, r, r ? null : F()), v?.("file_deleted", {
1353
1353
  fieldId: t,
1354
1354
  assetId: i
1355
1355
  });
@@ -1358,19 +1358,19 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1358
1358
  }
1359
1359
  } catch (e) {
1360
1360
  let n = e?.message || "Could not submit your answer. Please try again.";
1361
- j(n), M(t), v?.({
1361
+ A(n), j(t), _?.({
1362
1362
  type: "file_upload_error",
1363
1363
  message: n,
1364
1364
  error: e
1365
1365
  });
1366
1366
  } finally {
1367
- E(null);
1367
+ T(null);
1368
1368
  }
1369
- }, ge = () => {
1369
+ }, F = () => {
1370
1370
  let t = (e?.fields || []).find((e) => e.type === "email" || (e.label || e.id || "").toLowerCase().includes("email"));
1371
- return String(t && C[t.id] || C.email || "").trim();
1372
- }, I = e?.fields || [], _e = Array.isArray(x?.items) ? x.items.filter((e) => e?.name) : [], ve = _e.filter((e) => e.mode === "optional"), ye = _e.filter((e) => e.mode !== "optional"), L = Array.isArray(C.selected_items) ? C.selected_items : [], be = (e) => {
1373
- w((t) => {
1371
+ return String(t && S[t.id] || S.email || "").trim();
1372
+ }, I = e?.fields || [], _e = Array.isArray(b?.items) ? b.items.filter((e) => e?.name) : [], ve = _e.filter((e) => e.mode === "optional"), ye = _e.filter((e) => e.mode !== "optional"), L = Array.isArray(S.selected_items) ? S.selected_items : [], be = (e) => {
1373
+ C((t) => {
1374
1374
  let n = Array.isArray(t.selected_items) ? t.selected_items : [], r = {
1375
1375
  ...t,
1376
1376
  selected_items: n.includes(e) ? n.filter((t) => t !== e) : [...n, e]
@@ -1383,7 +1383,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1383
1383
  let t = (e.label || e.id || "").toLowerCase(), n = e.type;
1384
1384
  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;
1385
1385
  }, Ce = (e) => {
1386
- let t = ne[e.id] || (C[e.id] && String(C[e.id]).startsWith("http") ? C[e.id] : ""), n = fe[e.id], r = oe[e.id] || "file", i = T === e.id || D === e.id, a = ce[e.id] || "", o = a.trim() ? a.trim().split(/\s+/).length : 0, s = !!e.word_limit && o > e.word_limit;
1386
+ let t = re[e.id] || (S[e.id] && String(S[e.id]).startsWith("http") ? S[e.id] : ""), n = pe[e.id], r = se[e.id] || "file", i = w === e.id || E === e.id, a = le[e.id] || "", o = a.trim() ? a.trim().split(/\s+/).length : 0, s = !!e.word_limit && o > e.word_limit;
1387
1387
  return /* @__PURE__ */ p("div", {
1388
1388
  className: "space-y-2 mt-2",
1389
1389
  children: /* @__PURE__ */ m("div", {
@@ -1397,9 +1397,9 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1397
1397
  children: [/* @__PURE__ */ p("div", {
1398
1398
  className: "w-10 h-10 rounded-xl flex items-center justify-center shrink-0 border",
1399
1399
  style: {
1400
- backgroundColor: h ? "rgba(255,255,255,0.06)" : `color-mix(in srgb, ${N} 10%, white)`,
1401
- borderColor: h ? "rgba(255,255,255,0.12)" : `color-mix(in srgb, ${N} 25%, white)`,
1402
- color: N
1400
+ backgroundColor: h ? "rgba(255,255,255,0.06)" : `color-mix(in srgb, ${M} 10%, white)`,
1401
+ borderColor: h ? "rgba(255,255,255,0.12)" : `color-mix(in srgb, ${M} 25%, white)`,
1402
+ color: M
1403
1403
  },
1404
1404
  children: /* @__PURE__ */ p(R, { size: 18 })
1405
1405
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
@@ -1412,14 +1412,14 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1412
1412
  }), /* @__PURE__ */ p("button", {
1413
1413
  type: "button",
1414
1414
  disabled: i,
1415
- onClick: () => se((t) => ({
1415
+ onClick: () => ce((t) => ({
1416
1416
  ...t,
1417
1417
  [e.id]: r === "file" ? "text" : "file"
1418
1418
  })),
1419
1419
  className: "flex items-center gap-1 text-2xs font-semibold px-2.5 py-1 rounded-lg border cursor-pointer transition-colors hover:opacity-80 disabled:opacity-50 shrink-0",
1420
1420
  style: {
1421
- color: N,
1422
- borderColor: `color-mix(in srgb, ${N} 35%, transparent)`
1421
+ color: M,
1422
+ borderColor: `color-mix(in srgb, ${M} 35%, transparent)`
1423
1423
  },
1424
1424
  children: r === "file" ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(we, { size: 11 }), " Send text only"] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p($e, { size: 11 }), " Send file"] })
1425
1425
  })]
@@ -1436,20 +1436,20 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1436
1436
  disabled: i,
1437
1437
  onChange: (t) => {
1438
1438
  let n = t.target.files?.[0];
1439
- n && P(e.id, n), t.target.value = "";
1439
+ n && N(e.id, n), t.target.value = "";
1440
1440
  }
1441
1441
  }), /* @__PURE__ */ m("div", {
1442
1442
  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"}`,
1443
1443
  children: [/* @__PURE__ */ p($e, {
1444
1444
  size: 14,
1445
- style: { color: N }
1446
- }), /* @__PURE__ */ p("span", { children: T === e.id ? "Uploading..." : t ? "Replace File" : "Choose File" })]
1445
+ style: { color: M }
1446
+ }), /* @__PURE__ */ p("span", { children: w === e.id ? "Uploading..." : t ? "Replace File" : "Choose File" })]
1447
1447
  })]
1448
1448
  }), t && typeof t == "string" && t.trim() !== "" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("button", {
1449
1449
  type: "button",
1450
1450
  onClick: () => window.open(t, "_blank", "noopener,noreferrer"),
1451
1451
  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",
1452
- style: { backgroundColor: N },
1452
+ style: { backgroundColor: M },
1453
1453
  title: "Open file in new tab",
1454
1454
  children: [
1455
1455
  /* @__PURE__ */ p(we, { size: 13 }),
@@ -1458,11 +1458,11 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1458
1458
  ]
1459
1459
  }), /* @__PURE__ */ m("button", {
1460
1460
  type: "button",
1461
- disabled: D === e.id || T === e.id,
1462
- onClick: () => he(e.id),
1461
+ disabled: E === e.id || w === e.id,
1462
+ onClick: () => ge(e.id),
1463
1463
  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"}`,
1464
1464
  title: "Delete uploaded file",
1465
- children: [/* @__PURE__ */ p(Ze, { size: 13 }), /* @__PURE__ */ p("span", { children: D === e.id ? "Deleting..." : "Delete" })]
1465
+ children: [/* @__PURE__ */ p(Ze, { size: 13 }), /* @__PURE__ */ p("span", { children: E === e.id ? "Deleting..." : "Delete" })]
1466
1466
  })] })]
1467
1467
  }) : /* @__PURE__ */ m("div", {
1468
1468
  className: `mt-3 pt-3 border-t space-y-2 ${h ? "border-zinc-800" : "border-slate-200"}`,
@@ -1471,7 +1471,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1471
1471
  rows: 3,
1472
1472
  disabled: i || !!n,
1473
1473
  value: n ?? a,
1474
- onChange: (t) => ue((n) => ({
1474
+ onChange: (t) => de((n) => ({
1475
1475
  ...n,
1476
1476
  [e.id]: t.target.value
1477
1477
  })),
@@ -1490,22 +1490,22 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1490
1490
  }) : /* @__PURE__ */ p("span", {}), n ? /* @__PURE__ */ m("button", {
1491
1491
  type: "button",
1492
1492
  disabled: i,
1493
- onClick: () => he(e.id),
1493
+ onClick: () => ge(e.id),
1494
1494
  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"}`,
1495
- children: [/* @__PURE__ */ p(Ze, { size: 13 }), /* @__PURE__ */ p("span", { children: D === e.id ? "Clearing..." : "Clear & Re-enter" })]
1495
+ children: [/* @__PURE__ */ p(Ze, { size: 13 }), /* @__PURE__ */ p("span", { children: E === e.id ? "Clearing..." : "Clear & Re-enter" })]
1496
1496
  }) : /* @__PURE__ */ m("button", {
1497
1497
  type: "button",
1498
1498
  disabled: i || !a.trim(),
1499
- onClick: () => F(e.id, a),
1500
- style: { backgroundColor: N },
1499
+ onClick: () => P(e.id, a),
1500
+ style: { backgroundColor: M },
1501
1501
  className: "flex items-center gap-1.5 px-4 py-2 rounded-xl text-xs font-bold text-white shadow-sm hover:opacity-90 transition-all cursor-pointer disabled:opacity-50",
1502
- children: [/* @__PURE__ */ p($e, { size: 13 }), /* @__PURE__ */ p("span", { children: T === e.id ? "Submitting..." : "Submit Text" })]
1502
+ children: [/* @__PURE__ */ p($e, { size: 13 }), /* @__PURE__ */ p("span", { children: w === e.id ? "Submitting..." : "Submit Text" })]
1503
1503
  })]
1504
1504
  })]
1505
1505
  }),
1506
1506
  t && /* @__PURE__ */ m("div", {
1507
1507
  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"}`,
1508
- children: [/* @__PURE__ */ p(le, {
1508
+ children: [/* @__PURE__ */ p(ue, {
1509
1509
  size: 12,
1510
1510
  className: "text-emerald-500 shrink-0"
1511
1511
  }), /* @__PURE__ */ m("span", {
@@ -1513,16 +1513,16 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1513
1513
  children: ["Attached: ", t]
1514
1514
  })]
1515
1515
  }),
1516
- A && ae === e.id && /* @__PURE__ */ p("div", {
1516
+ k && oe === e.id && /* @__PURE__ */ p("div", {
1517
1517
  className: "text-xs text-red-500 mt-2 font-medium",
1518
- children: A
1518
+ children: k
1519
1519
  })
1520
1520
  ]
1521
1521
  })
1522
1522
  });
1523
1523
  }, Te = (e) => {
1524
1524
  if (!e) return null;
1525
- let t = C[e.id] ?? "", n = xe(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)]"}`;
1525
+ let t = S[e.id] ?? "", n = xe(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)]"}`;
1526
1526
  return /* @__PURE__ */ m("div", {
1527
1527
  part: "field",
1528
1528
  className: "px-5 sm:px-8 py-5 sm:py-6",
@@ -1552,7 +1552,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1552
1552
  id: a,
1553
1553
  required: e.required,
1554
1554
  value: t,
1555
- onChange: (t) => me(e.id, t.target.value),
1555
+ onChange: (t) => he(e.id, t.target.value),
1556
1556
  className: `${o} pr-10 appearance-none cursor-pointer`,
1557
1557
  children: [/* @__PURE__ */ p("option", {
1558
1558
  value: "",
@@ -1565,7 +1565,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1565
1565
  }, e))]
1566
1566
  }), /* @__PURE__ */ p("div", {
1567
1567
  className: `absolute inset-y-0 right-0 flex items-center pr-3.5 pointer-events-none ${h ? "text-zinc-400" : "text-slate-400"}`,
1568
- children: /* @__PURE__ */ p(de, { size: 16 })
1568
+ children: /* @__PURE__ */ p(fe, { size: 16 })
1569
1569
  })]
1570
1570
  }) : e.type === "file" ? Ce(e) : /* @__PURE__ */ p("input", {
1571
1571
  part: "input",
@@ -1574,23 +1574,23 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1574
1574
  required: e.required,
1575
1575
  value: t,
1576
1576
  placeholder: e.placeholder || (r ? "Enter your email address" : i ? "Your full name" : `Enter your ${e.label.toLowerCase()}`),
1577
- onChange: (t) => me(e.id, t.target.value),
1577
+ onChange: (t) => he(e.id, t.target.value),
1578
1578
  className: o
1579
1579
  })
1580
1580
  ]
1581
1581
  }, e.id);
1582
1582
  }, z = (e) => {
1583
1583
  e.preventDefault();
1584
- for (let e of I) if (e.type === "file" && e.required && !C[e.id]) {
1585
- j(`Please upload ${e.label || "a file"}`), M(e.id);
1584
+ for (let e of I) if (e.type === "file" && e.required && !S[e.id]) {
1585
+ A(`Please upload ${e.label || "a file"}`), j(e.id);
1586
1586
  return;
1587
1587
  }
1588
- t(C);
1589
- }, B = x?.type || x?.name || x?.label || (S ? "Abstract Submission Form" : "Registration Form"), V = (e) => [x?.currency, e.toLocaleString()].filter(Boolean).join(" "), H = ve.filter((e) => L.includes(e.name)).reduce((e, t) => e + (Number(t.price) || 0), 0), U = (Number(x?.price) || 0) + H, W = x ? U > 0 ? V(U) : "Free" : null;
1588
+ t(S);
1589
+ }, B = b?.type || b?.name || b?.label || (x ? "Abstract Submission Form" : "Registration Form"), V = (e) => [b?.currency, e.toLocaleString()].filter(Boolean).join(" "), H = ve.filter((e) => L.includes(e.name)).reduce((e, t) => e + (Number(t.price) || 0), 0), U = (Number(b?.price) || 0) + H, W = b ? U > 0 ? V(U) : "Free" : null;
1590
1590
  return /* @__PURE__ */ m("div", {
1591
1591
  part: "form-page",
1592
1592
  className: `w-full flex-1 flex flex-col relative ${h ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"}`,
1593
- style: b,
1593
+ style: y,
1594
1594
  children: [/* @__PURE__ */ p("div", {
1595
1595
  part: "form-header",
1596
1596
  className: `sticky top-0 z-30 px-4 sm:px-6 py-3 border-b backdrop-blur-xl transition-colors ${h ? "bg-zinc-900/85 border-zinc-800" : "bg-white/85 border-slate-200/80"}`,
@@ -1601,20 +1601,20 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1601
1601
  type: "button",
1602
1602
  onClick: n,
1603
1603
  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)]"}`,
1604
- children: [/* @__PURE__ */ p(re, { size: 16 }), /* @__PURE__ */ p("span", { children: "All forms" })]
1604
+ children: [/* @__PURE__ */ p(ie, { size: 16 }), /* @__PURE__ */ p("span", { children: "All forms" })]
1605
1605
  }), /* @__PURE__ */ m("div", {
1606
1606
  className: "flex items-center gap-2 min-w-0",
1607
- children: [x && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
1607
+ children: [b && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
1608
1608
  part: "form-type-name",
1609
1609
  title: B,
1610
1610
  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"}`,
1611
1611
  children: B
1612
- }), !S && /* @__PURE__ */ p("span", {
1612
+ }), !x && /* @__PURE__ */ p("span", {
1613
1613
  part: "form-type-price",
1614
1614
  className: "shrink-0 text-xs font-bold px-3 py-1.5 rounded-full tabular-nums",
1615
1615
  style: {
1616
- backgroundColor: `color-mix(in srgb, ${N} 12%, transparent)`,
1617
- color: N
1616
+ backgroundColor: `color-mix(in srgb, ${M} 12%, transparent)`,
1617
+ color: M
1618
1618
  },
1619
1619
  children: W
1620
1620
  })] }), i === "popup" && /* @__PURE__ */ m("div", {
@@ -1644,8 +1644,8 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1644
1644
  className: "px-1",
1645
1645
  children: [/* @__PURE__ */ p("p", {
1646
1646
  className: "text-xs font-semibold uppercase tracking-wider",
1647
- style: { color: N },
1648
- children: S ? "Abstract submission" : "Registration form"
1647
+ style: { color: M },
1648
+ children: x ? "Abstract submission" : "Registration form"
1649
1649
  }), /* @__PURE__ */ p("h2", {
1650
1650
  part: "form-title",
1651
1651
  className: `mt-1.5 text-2xl sm:text-3xl font-bold tracking-tight ${h ? "text-white" : "text-slate-900"}`,
@@ -1655,7 +1655,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1655
1655
  }),
1656
1656
  u && Object.keys(u).length > 0 && /* @__PURE__ */ m("div", {
1657
1657
  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"}`,
1658
- children: [/* @__PURE__ */ p(le, {
1658
+ children: [/* @__PURE__ */ p(ue, {
1659
1659
  size: 16,
1660
1660
  className: "shrink-0"
1661
1661
  }), /* @__PURE__ */ p("span", {
@@ -1667,17 +1667,17 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1667
1667
  part: "notice",
1668
1668
  className: "rounded-2xl p-4 flex items-start gap-3",
1669
1669
  style: {
1670
- backgroundColor: `color-mix(in srgb, ${N} ${h ? 14 : 7}%, transparent)`,
1671
- boxShadow: `inset 0 0 0 1px color-mix(in srgb, ${N} 20%, transparent)`
1670
+ backgroundColor: `color-mix(in srgb, ${M} ${h ? 14 : 7}%, transparent)`,
1671
+ boxShadow: `inset 0 0 0 1px color-mix(in srgb, ${M} 20%, transparent)`
1672
1672
  },
1673
1673
  children: [/* @__PURE__ */ p("div", {
1674
1674
  className: "shrink-0 mt-0.5",
1675
- style: { color: N },
1675
+ style: { color: M },
1676
1676
  children: /* @__PURE__ */ p(Ee, { size: 18 })
1677
1677
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
1678
1678
  part: "notice-title",
1679
1679
  className: "text-xs font-bold uppercase tracking-wider",
1680
- style: { color: N },
1680
+ style: { color: M },
1681
1681
  children: "Before you submit"
1682
1682
  }), /* @__PURE__ */ m("p", {
1683
1683
  className: `text-sm mt-0.5 leading-relaxed ${h ? "text-zinc-300" : "text-slate-600"}`,
@@ -1696,7 +1696,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1696
1696
  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)]"}`,
1697
1697
  children: I.map((e) => Te(e))
1698
1698
  }),
1699
- !S && _e.length > 0 && /* @__PURE__ */ m("div", {
1699
+ !x && _e.length > 0 && /* @__PURE__ */ m("div", {
1700
1700
  part: "addons-card",
1701
1701
  className: `rounded-3xl border overflow-hidden ${h ? "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)]"}`,
1702
1702
  children: [
@@ -1705,8 +1705,8 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1705
1705
  children: [/* @__PURE__ */ p("div", {
1706
1706
  className: "w-9 h-9 rounded-xl flex items-center justify-center shrink-0",
1707
1707
  style: {
1708
- backgroundColor: `color-mix(in srgb, ${N} 12%, transparent)`,
1709
- color: N
1708
+ backgroundColor: `color-mix(in srgb, ${M} 12%, transparent)`,
1709
+ color: M
1710
1710
  },
1711
1711
  children: /* @__PURE__ */ p(Ye, { size: 17 })
1712
1712
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h3", {
@@ -1727,8 +1727,8 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1727
1727
  part: t ? "addon addon-selected" : "addon",
1728
1728
  className: `p-3.5 rounded-2xl border flex items-center gap-3 cursor-pointer transition-all ${t ? "" : h ? "border-zinc-800 bg-zinc-900 hover:border-zinc-700" : "border-slate-200 bg-white hover:border-slate-300"}`,
1729
1729
  style: t ? {
1730
- borderColor: N,
1731
- backgroundColor: `color-mix(in srgb, ${N} ${h ? 16 : 6}%, transparent)`
1730
+ borderColor: M,
1731
+ backgroundColor: `color-mix(in srgb, ${M} ${h ? 16 : 6}%, transparent)`
1732
1732
  } : void 0,
1733
1733
  children: [
1734
1734
  /* @__PURE__ */ p("input", {
@@ -1736,7 +1736,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1736
1736
  checked: t,
1737
1737
  onChange: () => be(e.name),
1738
1738
  className: "w-4 h-4 rounded cursor-pointer shrink-0",
1739
- style: { accentColor: N }
1739
+ style: { accentColor: M }
1740
1740
  }),
1741
1741
  /* @__PURE__ */ p("span", {
1742
1742
  className: `flex-1 min-w-0 text-sm font-semibold leading-snug ${h ? "text-white" : "text-slate-900"}`,
@@ -1744,7 +1744,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1744
1744
  }),
1745
1745
  /* @__PURE__ */ p("span", {
1746
1746
  className: "shrink-0 text-[13px] font-bold tabular-nums",
1747
- style: { color: N },
1747
+ style: { color: M },
1748
1748
  children: Number(e.price) > 0 ? `+ ${V(Number(e.price))}` : "Free"
1749
1749
  })
1750
1750
  ]
@@ -1753,7 +1753,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1753
1753
  part: "addon addon-included",
1754
1754
  className: `p-3.5 rounded-2xl border flex items-center gap-3 ${h ? "border-zinc-800 bg-zinc-950/60" : "border-slate-200 bg-slate-50"}`,
1755
1755
  children: [
1756
- /* @__PURE__ */ p(le, {
1756
+ /* @__PURE__ */ p(ue, {
1757
1757
  size: 16,
1758
1758
  className: "text-emerald-500 shrink-0"
1759
1759
  }),
@@ -1775,7 +1775,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1775
1775
  children: "Total payable"
1776
1776
  }), /* @__PURE__ */ p("span", {
1777
1777
  className: "text-base font-bold tabular-nums",
1778
- style: { color: N },
1778
+ style: { color: M },
1779
1779
  children: V(U)
1780
1780
  })]
1781
1781
  })
@@ -1786,13 +1786,13 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1786
1786
  children: [/* @__PURE__ */ m("button", {
1787
1787
  part: "button button-primary submit-button",
1788
1788
  type: "submit",
1789
- disabled: T !== null || D !== null,
1789
+ disabled: w !== null || E !== null,
1790
1790
  style: {
1791
- background: `linear-gradient(135deg, ${N}, color-mix(in srgb, ${N} 80%, black))`,
1792
- boxShadow: `0 12px 28px -12px color-mix(in srgb, ${N} 70%, transparent)`
1791
+ background: `linear-gradient(135deg, ${M}, color-mix(in srgb, ${M} 80%, black))`,
1792
+ boxShadow: `0 12px 28px -12px color-mix(in srgb, ${M} 70%, transparent)`
1793
1793
  },
1794
1794
  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",
1795
- children: [/* @__PURE__ */ p("span", { children: S ? "Submit Abstract" : "Complete Registration" }), /* @__PURE__ */ p(ie, {
1795
+ children: [/* @__PURE__ */ p("span", { children: x ? "Submit Abstract" : "Complete Registration" }), /* @__PURE__ */ p(ae, {
1796
1796
  size: 18,
1797
1797
  className: "transition-transform group-hover:translate-x-0.5"
1798
1798
  })]
@@ -1806,16 +1806,16 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1806
1806
  })]
1807
1807
  });
1808
1808
  }, lt = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1, isWidgetPage: a = !1, onEvent: o, onError: c }) => {
1809
- 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(""), [ne, k] = d(""), [A, j] = d(""), [ae, oe] = d(""), [ce, ue] = d(""), [fe, N] = d(!1), [P, he] = d(null), [F, ge] = d({}), [I, _e] = d([]), [ve, L] = d({}), [xe, Ce] = d(null), [Te, z] = d(null), [V, U] = d(null), [Ee, W] = d(!1), [K, q] = d(!1), [Y, ke] = d({}), [je, Ne] = d(!1), [X, Fe] = d(null), [Ie, Le] = d({}), [Z, Re] = d({});
1809
+ let [l, u] = d(() => t.getToken() ? "profile" : "login"), [h, g] = d(!1), [ee, _] = d(!1), [v, y] = d(null), [b, x] = d(null), [S, C] = d(null), [w, T] = d(""), [E, te] = d(""), [ne, D] = d(""), [re, O] = d(""), [k, A] = d(""), [oe, se] = d(""), [le, de] = d(""), [pe, M] = d(!1), [N, ge] = d(null), [P, F] = d({}), [I, _e] = d([]), [ve, L] = d({}), [xe, Ce] = d(null), [Te, z] = d(null), [V, U] = d(null), [Ee, W] = d(!1), [K, q] = d(!1), [Y, ke] = d({}), [je, Ne] = d(!1), [X, Fe] = d(null), [Ie, Le] = d({}), [Z, Re] = d({});
1810
1810
  s(() => {
1811
1811
  let e = t.getToken();
1812
1812
  e && Q(e);
1813
1813
  }, []);
1814
1814
  let Q = async (r) => {
1815
- g(!0), S(null);
1815
+ g(!0), x(null);
1816
1816
  try {
1817
1817
  let i = await e.portalGetProfile(r), a = i?.data || i || {};
1818
- he(a);
1818
+ ge(a);
1819
1819
  let s = a.registration || {}, c = s.custom_data || {}, l = s.email || a.email || "", d = null;
1820
1820
  if (l) try {
1821
1821
  let t = await e.getDraftByEmail(l);
@@ -1831,9 +1831,9 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1831
1831
  } catch {}
1832
1832
  }
1833
1833
  let f = d?.custom_data || {};
1834
- s.name ? O(s.name) : d?.name ? O(d.name) : a.name && O(a.name);
1834
+ s.name ? D(s.name) : d?.name ? D(d.name) : a.name && D(a.name);
1835
1835
  let p = 0, m = {}, h = [...a.editable_fields || []];
1836
- he({
1836
+ ge({
1837
1837
  ...a,
1838
1838
  editable_fields: h
1839
1839
  });
@@ -1847,8 +1847,8 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1847
1847
  ...g,
1848
1848
  ...e
1849
1849
  }));
1850
- let _ = s.asset_id || s.photo_id || c.asset_id || c.photo_id || a.asset_id;
1851
- _ && Ce(String(_)), h.length > 0 ? h.forEach((e) => {
1850
+ let ee = s.asset_id || s.photo_id || c.asset_id || c.photo_id || a.asset_id;
1851
+ ee && Ce(String(ee)), h.length > 0 ? h.forEach((e) => {
1852
1852
  let t = e.label || e.name || e.id, n = ot(e.id, e.label), r = st(e.label, e.id), i = "";
1853
1853
  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) {
1854
1854
  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);
@@ -1857,12 +1857,12 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1857
1857
  m[e.id] = i;
1858
1858
  }) : Object.entries(a).forEach(([e, t]) => {
1859
1859
  e.toLowerCase() !== "token" && (m[e] = t);
1860
- }), ge(m), p > 0 && W(!0);
1861
- let v = (a.addons?.items || []).filter((e) => e.purchased).map((e) => e.name);
1860
+ }), F(m), p > 0 && W(!0);
1861
+ let _ = (a.addons?.items || []).filter((e) => e.purchased).map((e) => e.name);
1862
1862
  d?.selected_items && Array.isArray(d.selected_items) && d.selected_items.forEach((e) => {
1863
1863
  let t = typeof e == "string" ? e : e?.name;
1864
- t && !v.includes(t) && v.push(t);
1865
- }), _e(v), u("profile"), o?.("attendee_profile_loaded", {
1864
+ t && !_.includes(t) && _.push(t);
1865
+ }), _e(_), u("profile"), o?.("attendee_profile_loaded", {
1866
1866
  profile: a,
1867
1867
  draft: d
1868
1868
  });
@@ -1872,25 +1872,25 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1872
1872
  g(!1);
1873
1873
  }
1874
1874
  }, Be = async (r) => {
1875
- if (r.preventDefault(), !T.trim() || !D) {
1876
- S("Please enter both your identifier and password.");
1875
+ if (r.preventDefault(), !w.trim() || !E) {
1876
+ x("Please enter both your identifier and password.");
1877
1877
  return;
1878
1878
  }
1879
- g(!0), S(null), w(null);
1879
+ g(!0), x(null), C(null);
1880
1880
  try {
1881
1881
  let n = await e.portalLogin({
1882
- identifier: T.trim(),
1883
- password: D
1882
+ identifier: w.trim(),
1883
+ password: E
1884
1884
  }), r = n?.data?.token || n?.token;
1885
1885
  if (!r) throw Error(n?.message || "No authentication token received.");
1886
- (n?.data?.name || n?.name) && O(n.data?.name || n.name), t.setToken(r), o?.("attendee_logged_in", {
1887
- identifier: T,
1886
+ (n?.data?.name || n?.name) && D(n.data?.name || n.name), t.setToken(r), o?.("attendee_logged_in", {
1887
+ identifier: w,
1888
1888
  response: n
1889
1889
  }), await Q(r);
1890
1890
  } catch (e) {
1891
1891
  n.error("Login failed", e);
1892
1892
  let t = e.message || "Login failed. Please check your credentials.";
1893
- S(t), c?.({
1893
+ x(t), c?.({
1894
1894
  type: "login_error",
1895
1895
  message: t,
1896
1896
  error: e
@@ -1900,59 +1900,59 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1900
1900
  }
1901
1901
  }, He = async (t) => {
1902
1902
  t.preventDefault();
1903
- let r = (ne || T).trim();
1903
+ let r = (re || w).trim();
1904
1904
  if (!r) {
1905
- S("Please enter your registration number or email to receive a code.");
1905
+ x("Please enter your registration number or email to receive a code.");
1906
1906
  return;
1907
1907
  }
1908
- N(!0), S(null), w(null);
1908
+ M(!0), x(null), C(null);
1909
1909
  try {
1910
- await e.portalRequestPasswordReset(r), w("A verification code has been sent to your registered email."), o?.("password_reset_code_requested", { identifier: r }), u("reset");
1910
+ await e.portalRequestPasswordReset(r), C("A verification code has been sent to your registered email."), o?.("password_reset_code_requested", { identifier: r }), u("reset");
1911
1911
  } catch (e) {
1912
1912
  n.error("Failed to send reset code", e);
1913
1913
  let t = e.message || "Failed to send code. Please verify your identifier.";
1914
- S(t), c?.({
1914
+ x(t), c?.({
1915
1915
  type: "portal_error",
1916
1916
  message: t,
1917
1917
  error: e
1918
1918
  });
1919
1919
  } finally {
1920
- N(!1);
1920
+ M(!1);
1921
1921
  }
1922
1922
  }, We = async (r) => {
1923
1923
  r.preventDefault();
1924
- let i = (ne || T).trim();
1924
+ let i = (re || w).trim();
1925
1925
  if (!i) {
1926
- S("Please enter your registration number or email.");
1926
+ x("Please enter your registration number or email.");
1927
1927
  return;
1928
1928
  }
1929
- if (!A.trim()) {
1930
- S("Please enter the verification code sent to your email.");
1929
+ if (!k.trim()) {
1930
+ x("Please enter the verification code sent to your email.");
1931
1931
  return;
1932
1932
  }
1933
- if (!ae) {
1934
- S("Please enter a new password.");
1933
+ if (!oe) {
1934
+ x("Please enter a new password.");
1935
1935
  return;
1936
1936
  }
1937
- if (ae !== ce) {
1938
- S("New password and confirm password do not match.");
1937
+ if (oe !== le) {
1938
+ x("New password and confirm password do not match.");
1939
1939
  return;
1940
1940
  }
1941
- g(!0), S(null), w(null);
1941
+ g(!0), x(null), C(null);
1942
1942
  try {
1943
1943
  let n = await e.portalConfirmPasswordReset({
1944
1944
  identifier: i,
1945
- code: A.trim(),
1946
- new_password: ae
1945
+ code: k.trim(),
1946
+ new_password: oe
1947
1947
  }), r = n?.data?.token || n?.token;
1948
- (n?.data?.name || n?.name) && O(n.data?.name || n.name), o?.("password_reset_success", {
1948
+ (n?.data?.name || n?.name) && D(n.data?.name || n.name), o?.("password_reset_success", {
1949
1949
  identifier: i,
1950
1950
  response: n
1951
- }), r ? (t.setToken(r), j(""), oe(""), ue(""), await Q(r)) : (E(i), ee(""), j(""), oe(""), ue(""), u("login"), w("Password updated successfully! Please login with your new password."));
1951
+ }), r ? (t.setToken(r), A(""), se(""), de(""), await Q(r)) : (T(i), te(""), A(""), se(""), de(""), u("login"), C("Password updated successfully! Please login with your new password."));
1952
1952
  } catch (e) {
1953
1953
  n.error("Password reset failed", e);
1954
1954
  let t = e.message || "Failed to update password. Please check the code.";
1955
- S(t), c?.({
1955
+ x(t), c?.({
1956
1956
  type: "portal_error",
1957
1957
  message: t,
1958
1958
  error: e
@@ -1961,24 +1961,24 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1961
1961
  g(!1);
1962
1962
  }
1963
1963
  }, Ge = () => {
1964
- t.clearToken(), he(null), ge({}), _e([]), L({}), Ce(null), U(null), O(""), ee(""), u("login"), w("Logged out successfully."), o?.("attendee_logged_out", {});
1964
+ t.clearToken(), ge(null), F({}), _e([]), L({}), Ce(null), U(null), D(""), te(""), u("login"), C("Logged out successfully."), o?.("attendee_logged_out", {});
1965
1965
  }, Ke = async (r, i) => {
1966
1966
  let a = t.getToken();
1967
1967
  if (!a) {
1968
- S("Session expired. Please log in again.");
1968
+ x("Session expired. Please log in again.");
1969
1969
  return;
1970
1970
  }
1971
- b(r), S(null), w(null);
1971
+ y(r), x(null), C(null);
1972
1972
  try {
1973
1973
  let t = await e.uploadFile(i, a), n = t?.data?.serve_url || t?.serve_url || "", s = t?.data?.asset_id || t?.asset_id;
1974
1974
  if (!s && !n) throw Error("Upload response missing asset_id");
1975
- n && ge((e) => ({
1975
+ n && F((e) => ({
1976
1976
  ...e,
1977
1977
  [r]: n
1978
1978
  })), s && (L((e) => ({
1979
1979
  ...e,
1980
1980
  [r]: String(s)
1981
- })), Ce(String(s))), w(`File "${i.name}" uploaded successfully!`), o?.("portal_file_uploaded", {
1981
+ })), Ce(String(s))), C(`File "${i.name}" uploaded successfully!`), o?.("portal_file_uploaded", {
1982
1982
  fieldId: r,
1983
1983
  serveUrl: n,
1984
1984
  assetId: s,
@@ -1987,37 +1987,37 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
1987
1987
  } catch (e) {
1988
1988
  n.error("File upload failed", e);
1989
1989
  let t = e.message || "File upload failed. Please try again.";
1990
- S(t), c?.({
1990
+ x(t), c?.({
1991
1991
  type: "file_upload_error",
1992
1992
  message: t,
1993
1993
  error: e
1994
1994
  });
1995
1995
  } finally {
1996
- b(null);
1996
+ y(null);
1997
1997
  }
1998
1998
  }, Je = async (r) => {
1999
1999
  let i = t.getToken();
2000
2000
  if (!i) {
2001
- S("Session expired. Please log in again.");
2001
+ x("Session expired. Please log in again.");
2002
2002
  return;
2003
2003
  }
2004
- let a = F[r], s = at(a) || ve[r] || xe;
2005
- z(r), S(null), w(null);
2004
+ let a = P[r], s = at(a) || ve[r] || xe;
2005
+ z(r), x(null), C(null);
2006
2006
  try {
2007
2007
  s && (n.log(`Deleting asset ${s} for field ${r}...`), await e.portalDeleteFile(i, s), n.log(`Asset ${s} deleted successfully.`), o?.("portal_file_deleted", {
2008
2008
  assetId: s,
2009
2009
  fieldId: r
2010
- })), ge((e) => ({
2010
+ })), F((e) => ({
2011
2011
  ...e,
2012
2012
  [r]: ""
2013
2013
  })), L((e) => {
2014
2014
  let t = { ...e };
2015
2015
  return delete t[r], t;
2016
- }), xe === s && Ce(null), w("File removed successfully.");
2016
+ }), xe === s && Ce(null), C("File removed successfully.");
2017
2017
  } catch (e) {
2018
2018
  n.error("Failed to delete file", e);
2019
2019
  let t = e.message || "Failed to delete file. Please try again.";
2020
- S(t), c?.({
2020
+ x(t), c?.({
2021
2021
  type: "file_delete_error",
2022
2022
  message: t,
2023
2023
  error: e
@@ -2031,14 +2031,14 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2031
2031
  r.preventDefault();
2032
2032
  let i = t.getToken();
2033
2033
  if (!i) {
2034
- S("Session expired. Please log in again.");
2034
+ x("Session expired. Please log in again.");
2035
2035
  return;
2036
2036
  }
2037
- v(!0), S(null), w(null);
2037
+ _(!0), x(null), C(null);
2038
2038
  try {
2039
- let t = P?.editable_fields || [], n = { ...P?.registration?.custom_data || {} }, r = {};
2039
+ let t = N?.editable_fields || [], n = { ...N?.registration?.custom_data || {} }, r = {};
2040
2040
  t.forEach((e) => {
2041
- let t = F[e.id], i = e.label || e.name || e.id, a = st(e.label, e.id), o = ot(e.id, e.label);
2041
+ let t = P[e.id], i = e.label || e.name || e.id, a = st(e.label, e.id), o = ot(e.id, e.label);
2042
2042
  if (e.type === "file") {
2043
2043
  let s = typeof t == "string" ? t : t?.serve_url || t?.url || "";
2044
2044
  delete n[i], delete n[a], n[o] = s, r[o] = s, o !== e.id && (r[e.id] = s);
@@ -2051,23 +2051,23 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2051
2051
  });
2052
2052
  let s = a?.data?.addon_checkout?.payment_url || a?.addon_checkout?.payment_url || a?.data?.payment_url || a?.payment_url;
2053
2053
  if (s && typeof s == "string" && s.trim() !== "") {
2054
- 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);
2054
+ U(s), C("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);
2055
2055
  return;
2056
2056
  }
2057
- w("Profile updated successfully!"), await Q(i);
2057
+ C("Profile updated successfully!"), await Q(i);
2058
2058
  } catch (e) {
2059
2059
  n.error("Failed to update profile", e);
2060
2060
  let t = e.message || "Failed to update profile. Please try again.";
2061
- S(t), c?.({
2061
+ x(t), c?.({
2062
2062
  type: "profile_update_error",
2063
2063
  message: t,
2064
2064
  error: e
2065
2065
  });
2066
2066
  } finally {
2067
- v(!1);
2067
+ _(!1);
2068
2068
  }
2069
2069
  }, et = () => {
2070
- let e = P?.review_submission;
2070
+ let e = N?.review_submission;
2071
2071
  if (!e) return;
2072
2072
  let t = e.custom_data || {}, n = {}, r = {};
2073
2073
  (e.editable_fields || []).forEach((i) => {
@@ -2080,11 +2080,11 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2080
2080
  }, rt = async (r, i) => {
2081
2081
  let a = t.getToken();
2082
2082
  if (!a) {
2083
- S("Session expired. Please log in again.");
2083
+ x("Session expired. Please log in again.");
2084
2084
  return;
2085
2085
  }
2086
- let s = (P?.review_submission?.editable_fields || []).find((e) => e.id === r), l = s?.current_file?.id;
2087
- Fe(r), S(null), w(null);
2086
+ let s = (N?.review_submission?.editable_fields || []).find((e) => e.id === r), l = s?.current_file?.id;
2087
+ Fe(r), x(null), C(null);
2088
2088
  try {
2089
2089
  if (l) try {
2090
2090
  await e.deleteFile(l, a);
@@ -2096,7 +2096,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2096
2096
  ke((e) => ({
2097
2097
  ...e,
2098
2098
  [r]: String(c)
2099
- })), w(`File "${i.name}" uploaded successfully!`), o?.("portal_submission_file_uploaded", {
2099
+ })), C(`File "${i.name}" uploaded successfully!`), o?.("portal_submission_file_uploaded", {
2100
2100
  fieldId: r,
2101
2101
  assetId: c,
2102
2102
  response: t
@@ -2104,7 +2104,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2104
2104
  } catch (e) {
2105
2105
  n.error("Submission file upload failed", e);
2106
2106
  let t = e.message || "File upload failed. Please try again.";
2107
- S(t), c?.({
2107
+ x(t), c?.({
2108
2108
  type: "file_upload_error",
2109
2109
  message: t,
2110
2110
  error: e
@@ -2115,15 +2115,15 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2115
2115
  }, it = async (r) => {
2116
2116
  let i = t.getToken();
2117
2117
  if (!i) {
2118
- S("Session expired. Please log in again.");
2118
+ x("Session expired. Please log in again.");
2119
2119
  return;
2120
2120
  }
2121
2121
  let a = (Z[r] || "").trim();
2122
2122
  if (a) {
2123
- Fe(r), S(null), w(null);
2123
+ Fe(r), x(null), C(null);
2124
2124
  try {
2125
2125
  let t = await e.portalUpdateSubmission(i, { [r]: { text: a } }), n = t?.data || t;
2126
- he((e) => ({
2126
+ ge((e) => ({
2127
2127
  ...e,
2128
2128
  review_submission: n
2129
2129
  }));
@@ -2131,11 +2131,11 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2131
2131
  s && ke((e) => ({
2132
2132
  ...e,
2133
2133
  [r]: String(s)
2134
- })), w("Text answer saved!"), o?.("portal_submission_text_saved", { fieldId: r });
2134
+ })), C("Text answer saved!"), o?.("portal_submission_text_saved", { fieldId: r });
2135
2135
  } catch (e) {
2136
2136
  n.error("Submission text answer failed", e);
2137
2137
  let t = e.message || "Could not save your answer. Please try again.";
2138
- S(t), c?.({
2138
+ x(t), c?.({
2139
2139
  type: "submission_text_error",
2140
2140
  message: t,
2141
2141
  error: e
@@ -2148,23 +2148,23 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2148
2148
  r.preventDefault();
2149
2149
  let i = t.getToken();
2150
2150
  if (!i) {
2151
- S("Session expired. Please log in again.");
2151
+ x("Session expired. Please log in again.");
2152
2152
  return;
2153
2153
  }
2154
- Ne(!0), S(null), w(null);
2154
+ Ne(!0), x(null), C(null);
2155
2155
  try {
2156
2156
  let t = await e.portalUpdateSubmission(i, Y), n = t?.data || t;
2157
- he((e) => ({
2157
+ ge((e) => ({
2158
2158
  ...e,
2159
2159
  review_submission: n
2160
- })), q(!1), w("Your submission was updated successfully!"), o?.("attendee_submission_updated", {
2160
+ })), q(!1), C("Your submission was updated successfully!"), o?.("attendee_submission_updated", {
2161
2161
  payload: Y,
2162
2162
  response: t
2163
2163
  });
2164
2164
  } catch (e) {
2165
2165
  n.error("Failed to update submission", e);
2166
2166
  let t = e.message || "Failed to update submission. Please try again.";
2167
- S(t), c?.({
2167
+ x(t), c?.({
2168
2168
  type: "submission_update_error",
2169
2169
  message: t,
2170
2170
  error: e
@@ -2217,7 +2217,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2217
2217
  size: 13,
2218
2218
  className: "shrink-0",
2219
2219
  style: { color: r }
2220
- }) : t.includes("designat") || t.includes("role") || t.includes("position") || t.includes("profession") ? /* @__PURE__ */ p(M, {
2220
+ }) : t.includes("designat") || t.includes("role") || t.includes("position") || t.includes("profession") ? /* @__PURE__ */ p(j, {
2221
2221
  size: 13,
2222
2222
  className: "shrink-0",
2223
2223
  style: { color: r }
@@ -2225,7 +2225,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2225
2225
  size: 13,
2226
2226
  className: "shrink-0",
2227
2227
  style: { color: r }
2228
- }) : t.includes("organi") || t.includes("institute") || t.includes("hospital") || t.includes("company") || t.includes("college") ? /* @__PURE__ */ p(se, {
2228
+ }) : t.includes("organi") || t.includes("institute") || t.includes("hospital") || t.includes("company") || t.includes("college") ? /* @__PURE__ */ p(ce, {
2229
2229
  size: 13,
2230
2230
  className: "shrink-0",
2231
2231
  style: { color: r }
@@ -2240,7 +2240,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2240
2240
  });
2241
2241
  }, dt = (e, t = "w-full", n = []) => {
2242
2242
  if (!e) return null;
2243
- let r = n.includes(e.id) || n.includes(ot(e.id, e.label)), a = F[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)]"}`;
2243
+ let r = n.includes(e.id) || n.includes(ot(e.id, e.label)), a = P[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)]"}`;
2244
2244
  return /* @__PURE__ */ m("div", {
2245
2245
  className: `${t} px-2 mb-4`,
2246
2246
  children: [/* @__PURE__ */ m("div", {
@@ -2271,8 +2271,8 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2271
2271
  id: o,
2272
2272
  disabled: r,
2273
2273
  value: a,
2274
- onChange: (t) => ge({
2275
- ...F,
2274
+ onChange: (t) => F({
2275
+ ...P,
2276
2276
  [e.id]: t.target.value
2277
2277
  }),
2278
2278
  className: `${s} pr-9 appearance-none cursor-pointer flex items-center`,
@@ -2291,7 +2291,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2291
2291
  }, e))]
2292
2292
  }), /* @__PURE__ */ p("div", {
2293
2293
  className: `absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none ${i ? "text-zinc-400" : "text-slate-400"}`,
2294
- children: /* @__PURE__ */ p(de, { size: 15 })
2294
+ children: /* @__PURE__ */ p(fe, { size: 15 })
2295
2295
  })]
2296
2296
  }) : e.type === "file" ? ft(e, r, a) : /* @__PURE__ */ p("input", {
2297
2297
  part: "input",
@@ -2300,15 +2300,15 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2300
2300
  disabled: r,
2301
2301
  value: a,
2302
2302
  placeholder: e.placeholder || `Enter ${e.label.toLowerCase()}`,
2303
- onChange: (t) => ge({
2304
- ...F,
2303
+ onChange: (t) => F({
2304
+ ...P,
2305
2305
  [e.id]: t.target.value
2306
2306
  }),
2307
2307
  className: s
2308
2308
  })]
2309
2309
  }, e.id);
2310
2310
  }, ft = (e, t, n) => {
2311
- 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;
2311
+ let a = v === 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;
2312
2312
  return /* @__PURE__ */ p("div", {
2313
2313
  className: "space-y-2",
2314
2314
  children: /* @__PURE__ */ m("div", {
@@ -2360,7 +2360,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2360
2360
  }),
2361
2361
  n && /* @__PURE__ */ m("div", {
2362
2362
  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"}`,
2363
- children: [/* @__PURE__ */ p(le, {
2363
+ children: [/* @__PURE__ */ p(ue, {
2364
2364
  size: 12,
2365
2365
  className: "text-emerald-500 shrink-0"
2366
2366
  }), /* @__PURE__ */ m("span", {
@@ -2395,7 +2395,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2395
2395
  })
2396
2396
  });
2397
2397
  };
2398
- if (l === "profile" && !P) {
2398
+ if (l === "profile" && !N) {
2399
2399
  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)]"}`;
2400
2400
  return /* @__PURE__ */ m("div", {
2401
2401
  role: "status",
@@ -2449,7 +2449,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2449
2449
  });
2450
2450
  }
2451
2451
  if (l === "profile") {
2452
- let e = P?.registration || {}, t = P?.editable_fields || [], n = P?.locked_fields || [], o = Array.isArray(P?.payment) ? P.payment : P?.payment ? [P.payment] : [], s = o.filter((e) => e.state !== "not_required"), c = o[0], l = P?.addons?.items || [], u = P?.badge || null, d = P?.review_submission || null, h = te || "Attendee", g = h.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase()).join("") || "A", v = `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)]"}`, b = i ? "text-zinc-400" : "text-slate-500", S = `text-base font-semibold tracking-tight ${i ? "text-white" : "text-slate-900"}`, w = [
2452
+ let e = N?.registration || {}, t = N?.editable_fields || [], n = N?.locked_fields || [], o = Array.isArray(N?.payment) ? N.payment : N?.payment ? [N.payment] : [], s = o.filter((e) => e.state !== "not_required"), c = o[0], l = N?.addons?.items || [], u = N?.badge || null, d = N?.review_submission || null, h = ne || "Attendee", g = h.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase()).join("") || "A", _ = `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)]"}`, y = i ? "text-zinc-400" : "text-slate-500", x = `text-base font-semibold tracking-tight ${i ? "text-white" : "text-slate-900"}`, C = [
2453
2453
  {
2454
2454
  label: "Registration no.",
2455
2455
  value: e.registration_number || "N/A",
@@ -2478,7 +2478,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2478
2478
  children: [
2479
2479
  /* @__PURE__ */ m("div", {
2480
2480
  part: "portal-card profile-card",
2481
- className: v,
2481
+ className: _,
2482
2482
  children: [/* @__PURE__ */ m("div", {
2483
2483
  className: "flex items-start justify-between gap-3",
2484
2484
  children: [/* @__PURE__ */ m("div", {
@@ -2502,7 +2502,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2502
2502
  children: e.status
2503
2503
  })]
2504
2504
  }), /* @__PURE__ */ p("p", {
2505
- className: `text-[13px] mt-0.5 ${b}`,
2505
+ className: `text-[13px] mt-0.5 ${y}`,
2506
2506
  children: "Manage your registration and details"
2507
2507
  })]
2508
2508
  })]
@@ -2518,8 +2518,8 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2518
2518
  })]
2519
2519
  })]
2520
2520
  }), /* @__PURE__ */ p("dl", {
2521
- className: `mt-5 pt-5 border-t grid grid-cols-2 ${w.length === 3 ? "sm:grid-cols-3" : "sm:grid-cols-2"} gap-4 ${i ? "border-zinc-800" : "border-slate-100"}`,
2522
- children: w.map((e) => /* @__PURE__ */ m("div", {
2521
+ className: `mt-5 pt-5 border-t grid grid-cols-2 ${C.length === 3 ? "sm:grid-cols-3" : "sm:grid-cols-2"} gap-4 ${i ? "border-zinc-800" : "border-slate-100"}`,
2522
+ children: C.map((e) => /* @__PURE__ */ m("div", {
2523
2523
  className: "min-w-0",
2524
2524
  children: [/* @__PURE__ */ p("dt", {
2525
2525
  className: `text-[11px] font-semibold uppercase tracking-wider ${i ? "text-zinc-500" : "text-slate-400"}`,
@@ -2536,23 +2536,23 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2536
2536
  className: "space-y-5",
2537
2537
  children: [
2538
2538
  t.length === 0 ? /* @__PURE__ */ p("div", {
2539
- className: `${v} text-center text-sm ${b}`,
2539
+ className: `${_} text-center text-sm ${y}`,
2540
2540
  children: "No editable fields configured."
2541
2541
  }) : /* @__PURE__ */ m("div", {
2542
2542
  part: "portal-card details-card",
2543
- className: v,
2543
+ className: _,
2544
2544
  children: [/* @__PURE__ */ m("div", {
2545
2545
  className: "flex items-start justify-between gap-3 mb-5",
2546
2546
  children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
2547
- className: S,
2547
+ className: x,
2548
2548
  style: $,
2549
2549
  children: "Your details"
2550
2550
  }), /* @__PURE__ */ p("p", {
2551
- className: `text-[13px] mt-0.5 ${b}`,
2551
+ className: `text-[13px] mt-0.5 ${y}`,
2552
2552
  children: "Keep your information up to date."
2553
2553
  })] }), Ee && /* @__PURE__ */ m("span", {
2554
2554
  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"}`,
2555
- children: [/* @__PURE__ */ p(le, { size: 11 }), " Draft restored"]
2555
+ children: [/* @__PURE__ */ p(ue, { size: 11 }), " Draft restored"]
2556
2556
  })]
2557
2557
  }), /* @__PURE__ */ p("div", {
2558
2558
  className: "flex flex-wrap -mx-2 -mb-4",
@@ -2561,7 +2561,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2561
2561
  }),
2562
2562
  l.length > 0 && /* @__PURE__ */ m("div", {
2563
2563
  part: "portal-card addons-card",
2564
- className: v,
2564
+ className: _,
2565
2565
  children: [/* @__PURE__ */ p("div", {
2566
2566
  className: "flex items-start justify-between gap-3 mb-4",
2567
2567
  children: /* @__PURE__ */ m("div", {
@@ -2574,11 +2574,11 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2574
2574
  },
2575
2575
  children: /* @__PURE__ */ p(Ye, { size: 17 })
2576
2576
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
2577
- className: S,
2577
+ className: x,
2578
2578
  style: $,
2579
2579
  children: "Add-ons"
2580
2580
  }), /* @__PURE__ */ p("p", {
2581
- className: `text-[13px] ${b}`,
2581
+ className: `text-[13px] ${y}`,
2582
2582
  children: "Select items to add to your registration"
2583
2583
  })] })]
2584
2584
  })
@@ -2618,7 +2618,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2618
2618
  }),
2619
2619
  t && /* @__PURE__ */ m("span", {
2620
2620
  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"}`,
2621
- children: [/* @__PURE__ */ p(le, { size: 12 }), " Purchased"]
2621
+ children: [/* @__PURE__ */ p(ue, { size: 12 }), " Purchased"]
2622
2622
  })
2623
2623
  ]
2624
2624
  }, e.name);
@@ -2630,13 +2630,13 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2630
2630
  children: /* @__PURE__ */ p("button", {
2631
2631
  part: "button button-primary submit-button",
2632
2632
  type: "submit",
2633
- disabled: _ || y !== null,
2633
+ disabled: ee || v !== null,
2634
2634
  style: {
2635
2635
  background: `linear-gradient(135deg, ${r}, color-mix(in srgb, ${r} 80%, black))`,
2636
2636
  boxShadow: `0 10px 24px -12px color-mix(in srgb, ${r} 70%, transparent)`
2637
2637
  },
2638
2638
  className: "w-full h-12 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",
2639
- children: _ ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("svg", {
2639
+ children: ee ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("svg", {
2640
2640
  className: "animate-spin h-4 w-4 text-white",
2641
2641
  fill: "none",
2642
2642
  viewBox: "0 0 24 24",
@@ -2660,7 +2660,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2660
2660
  }),
2661
2661
  u && /* @__PURE__ */ m("div", {
2662
2662
  part: "portal-card badge-card",
2663
- className: v,
2663
+ className: _,
2664
2664
  children: [
2665
2665
  /* @__PURE__ */ m("div", {
2666
2666
  className: "flex items-center gap-3 mb-4",
@@ -2672,11 +2672,11 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2672
2672
  },
2673
2673
  children: /* @__PURE__ */ p(H, { size: 17 })
2674
2674
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
2675
- className: S,
2675
+ className: x,
2676
2676
  style: $,
2677
2677
  children: "Your badge"
2678
2678
  }), /* @__PURE__ */ p("p", {
2679
- className: `text-[13px] ${b}`,
2679
+ className: `text-[13px] ${y}`,
2680
2680
  children: "View or download your event badge."
2681
2681
  })] })]
2682
2682
  }),
@@ -2710,7 +2710,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2710
2710
  }),
2711
2711
  s.length > 0 && /* @__PURE__ */ m("div", {
2712
2712
  part: "portal-card payments-card",
2713
- className: v,
2713
+ className: _,
2714
2714
  children: [/* @__PURE__ */ m("div", {
2715
2715
  className: "flex items-center gap-3 mb-4",
2716
2716
  children: [/* @__PURE__ */ p("div", {
@@ -2721,11 +2721,11 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2721
2721
  },
2722
2722
  children: /* @__PURE__ */ p(Ue, { size: 17 })
2723
2723
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
2724
- className: S,
2724
+ className: x,
2725
2725
  style: $,
2726
2726
  children: "Payments"
2727
2727
  }), /* @__PURE__ */ p("p", {
2728
- className: `text-[13px] ${b}`,
2728
+ className: `text-[13px] ${y}`,
2729
2729
  children: "Every order on your registration, with receipts."
2730
2730
  })] })]
2731
2731
  }), /* @__PURE__ */ p("div", {
@@ -2765,7 +2765,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2765
2765
  }),
2766
2766
  d && /* @__PURE__ */ m("div", {
2767
2767
  part: "portal-card submission-card",
2768
- className: v,
2768
+ className: _,
2769
2769
  children: [
2770
2770
  /* @__PURE__ */ m("div", {
2771
2771
  className: "flex items-center gap-3 mb-4",
@@ -2781,11 +2781,11 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2781
2781
  /* @__PURE__ */ m("div", {
2782
2782
  className: "flex-1 min-w-0",
2783
2783
  children: [/* @__PURE__ */ p("h4", {
2784
- className: S,
2784
+ className: x,
2785
2785
  style: $,
2786
2786
  children: "Your submission"
2787
2787
  }), /* @__PURE__ */ p("p", {
2788
- className: `text-[13px] ${b}`,
2788
+ className: `text-[13px] ${y}`,
2789
2789
  children: d.registration_type_label || "Abstract submission"
2790
2790
  })]
2791
2791
  }),
@@ -2844,10 +2844,10 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2844
2844
  let n = t.target.files?.[0];
2845
2845
  n && rt(e.id, n);
2846
2846
  },
2847
- className: `w-full text-[13px] ${b}`
2847
+ className: `w-full text-[13px] ${y}`
2848
2848
  }),
2849
2849
  X === e.id && /* @__PURE__ */ p("p", {
2850
- className: `mt-1 text-[12.5px] ${b}`,
2850
+ className: `mt-1 text-[12.5px] ${y}`,
2851
2851
  children: "Uploading…"
2852
2852
  })
2853
2853
  ] }) : /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("textarea", {
@@ -2931,7 +2931,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2931
2931
  }) : /* @__PURE__ */ m("div", {
2932
2932
  className: `mt-4 pt-4 border-t flex items-center justify-between gap-3 flex-wrap ${i ? "border-zinc-800" : "border-slate-100"}`,
2933
2933
  children: [/* @__PURE__ */ p("p", {
2934
- className: `text-[13px] ${b}`,
2934
+ className: `text-[13px] ${y}`,
2935
2935
  children: d.editable ? "You can still edit your answers until a reviewer picks this up." : "This submission has been assigned to a reviewer and can no longer be edited."
2936
2936
  }), d.editable && /* @__PURE__ */ p("button", {
2937
2937
  type: "button",
@@ -2965,21 +2965,21 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
2965
2965
  children: [/* @__PURE__ */ p("span", { children: "Complete payment" }), /* @__PURE__ */ p(Se, { size: 12 })]
2966
2966
  })]
2967
2967
  }),
2968
- x && /* @__PURE__ */ m("div", {
2968
+ b && /* @__PURE__ */ m("div", {
2969
2969
  role: "alert",
2970
2970
  className: `p-3.5 rounded-xl flex items-start gap-2.5 text-sm ${i ? "bg-red-950/50 text-red-300 ring-1 ring-inset ring-red-900" : "bg-red-50 text-red-700 ring-1 ring-inset ring-red-200/80"}`,
2971
- children: [/* @__PURE__ */ p(pe, {
2971
+ children: [/* @__PURE__ */ p(me, {
2972
2972
  size: 17,
2973
2973
  className: "shrink-0 mt-0.5"
2974
- }), /* @__PURE__ */ p("span", { children: x })]
2974
+ }), /* @__PURE__ */ p("span", { children: b })]
2975
2975
  }),
2976
- C && /* @__PURE__ */ m("div", {
2976
+ S && /* @__PURE__ */ m("div", {
2977
2977
  role: "status",
2978
2978
  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"}`,
2979
- children: [/* @__PURE__ */ p(me, {
2979
+ children: [/* @__PURE__ */ p(he, {
2980
2980
  size: 17,
2981
2981
  className: "shrink-0 mt-0.5"
2982
- }), /* @__PURE__ */ p("span", { children: C })]
2982
+ }), /* @__PURE__ */ p("span", { children: S })]
2983
2983
  })
2984
2984
  ]
2985
2985
  })
@@ -3004,7 +3004,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
3004
3004
  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"
3005
3005
  })]
3006
3006
  }), ht = (e) => {
3007
- u(e), S(null), w(null);
3007
+ u(e), x(null), C(null);
3008
3008
  }, gt = ({ id: e, label: t, icon: n, type: r = "text", value: a, onChange: o, placeholder: s, autoComplete: c, aside: l }) => /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("div", {
3009
3009
  className: "flex items-center justify-between gap-2 mb-1.5",
3010
3010
  children: [/* @__PURE__ */ p("label", {
@@ -3029,20 +3029,20 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
3029
3029
  placeholder: s,
3030
3030
  className: pt
3031
3031
  })]
3032
- })] }), _t = () => /* @__PURE__ */ m(f, { children: [x && /* @__PURE__ */ m("div", {
3032
+ })] }), _t = () => /* @__PURE__ */ m(f, { children: [b && /* @__PURE__ */ m("div", {
3033
3033
  role: "alert",
3034
3034
  className: `p-3.5 rounded-xl flex items-start gap-2.5 text-sm ${i ? "bg-red-950/50 text-red-300 ring-1 ring-inset ring-red-900" : "bg-red-50 text-red-700 ring-1 ring-inset ring-red-200/80"}`,
3035
- children: [/* @__PURE__ */ p(pe, {
3035
+ children: [/* @__PURE__ */ p(me, {
3036
3036
  size: 17,
3037
3037
  className: "shrink-0 mt-0.5"
3038
- }), /* @__PURE__ */ p("span", { children: x })]
3039
- }), C && /* @__PURE__ */ m("div", {
3038
+ }), /* @__PURE__ */ p("span", { children: b })]
3039
+ }), S && /* @__PURE__ */ m("div", {
3040
3040
  role: "status",
3041
3041
  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"}`,
3042
- children: [/* @__PURE__ */ p(me, {
3042
+ children: [/* @__PURE__ */ p(he, {
3043
3043
  size: 17,
3044
3044
  className: "shrink-0 mt-0.5"
3045
- }), /* @__PURE__ */ p("span", { children: C })]
3045
+ }), /* @__PURE__ */ p("span", { children: S })]
3046
3046
  })] }), vt = (e, t, n) => /* @__PURE__ */ p("button", {
3047
3047
  part: "button button-primary submit-button",
3048
3048
  type: "submit",
@@ -3052,7 +3052,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
3052
3052
  boxShadow: `0 10px 24px -12px color-mix(in srgb, ${r} 70%, transparent)`
3053
3053
  },
3054
3054
  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",
3055
- children: e ? /* @__PURE__ */ m(f, { children: [mt, /* @__PURE__ */ p("span", { children: n })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", { children: t }), /* @__PURE__ */ p(ie, {
3055
+ children: e ? /* @__PURE__ */ m(f, { children: [mt, /* @__PURE__ */ p("span", { children: n })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", { children: t }), /* @__PURE__ */ p(ae, {
3056
3056
  size: 16,
3057
3057
  className: "transition-transform group-hover:translate-x-0.5"
3058
3058
  })] })
@@ -3065,7 +3065,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
3065
3065
  type: "button",
3066
3066
  onClick: o,
3067
3067
  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"}`,
3068
- children: [/* @__PURE__ */ p(re, { size: 16 }), /* @__PURE__ */ p("span", { children: "Back to login" })]
3068
+ children: [/* @__PURE__ */ p(ie, { size: 16 }), /* @__PURE__ */ p("span", { children: "Back to login" })]
3069
3069
  }), /* @__PURE__ */ m("div", {
3070
3070
  part: "portal-card",
3071
3071
  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)]"}`,
@@ -3109,14 +3109,14 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
3109
3109
  id: "vx-portal-code-identifier",
3110
3110
  label: "Registration number or email",
3111
3111
  icon: Me,
3112
- value: ne || T,
3112
+ value: re || w,
3113
3113
  onChange: (e) => {
3114
- k(e), E(e);
3114
+ O(e), T(e);
3115
3115
  },
3116
3116
  placeholder: "e.g. attendee@example.com or REG12345",
3117
3117
  autoComplete: "username"
3118
3118
  }),
3119
- vt(fe, "Send verification code", "Sending code..."),
3119
+ vt(pe, "Send verification code", "Sending code..."),
3120
3120
  /* @__PURE__ */ m("p", {
3121
3121
  className: `text-center text-[13px] ${i ? "text-zinc-400" : "text-slate-500"}`,
3122
3122
  children: [
@@ -3146,9 +3146,9 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
3146
3146
  id: "vx-portal-reset-identifier",
3147
3147
  label: "Registration number or email",
3148
3148
  icon: Me,
3149
- value: ne || T,
3149
+ value: re || w,
3150
3150
  onChange: (e) => {
3151
- k(e), E(e);
3151
+ O(e), T(e);
3152
3152
  },
3153
3153
  placeholder: "e.g. attendee@example.com or REG12345",
3154
3154
  autoComplete: "username"
@@ -3157,14 +3157,14 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
3157
3157
  id: "vx-portal-reset-code",
3158
3158
  label: "Verification code",
3159
3159
  icon: De,
3160
- value: A,
3161
- onChange: j,
3160
+ value: k,
3161
+ onChange: A,
3162
3162
  placeholder: "Enter code from email",
3163
3163
  autoComplete: "one-time-code",
3164
3164
  aside: /* @__PURE__ */ p("button", {
3165
3165
  type: "button",
3166
3166
  onClick: () => {
3167
- k(ne || T), ht("request_code");
3167
+ O(re || w), ht("request_code");
3168
3168
  },
3169
3169
  className: "text-xs font-semibold hover:underline underline-offset-4 cursor-pointer",
3170
3170
  style: { color: r },
@@ -3176,8 +3176,8 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
3176
3176
  label: "New password",
3177
3177
  icon: J,
3178
3178
  type: "password",
3179
- value: ae,
3180
- onChange: oe,
3179
+ value: oe,
3180
+ onChange: se,
3181
3181
  placeholder: "Enter new password",
3182
3182
  autoComplete: "new-password"
3183
3183
  }),
@@ -3186,8 +3186,8 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
3186
3186
  label: "Confirm password",
3187
3187
  icon: J,
3188
3188
  type: "password",
3189
- value: ce,
3190
- onChange: ue,
3189
+ value: le,
3190
+ onChange: de,
3191
3191
  placeholder: "Re-enter new password",
3192
3192
  autoComplete: "new-password"
3193
3193
  }),
@@ -3206,8 +3206,8 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
3206
3206
  id: "vx-portal-login-identifier",
3207
3207
  label: "Email or registration number",
3208
3208
  icon: Me,
3209
- value: T,
3210
- onChange: E,
3209
+ value: w,
3210
+ onChange: T,
3211
3211
  placeholder: "Enter email or registration number",
3212
3212
  autoComplete: "username"
3213
3213
  }),
@@ -3216,14 +3216,14 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
3216
3216
  label: "Password",
3217
3217
  icon: J,
3218
3218
  type: "password",
3219
- value: D,
3220
- onChange: ee,
3219
+ value: E,
3220
+ onChange: te,
3221
3221
  placeholder: "Enter password",
3222
3222
  autoComplete: "current-password",
3223
3223
  aside: /* @__PURE__ */ p("button", {
3224
3224
  type: "button",
3225
3225
  onClick: () => {
3226
- k(T), ht("reset");
3226
+ O(w), ht("reset");
3227
3227
  },
3228
3228
  className: "text-xs font-semibold hover:underline underline-offset-4 cursor-pointer",
3229
3229
  style: { color: r },
@@ -3239,7 +3239,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
3239
3239
  /* @__PURE__ */ p("button", {
3240
3240
  type: "button",
3241
3241
  onClick: () => {
3242
- k(T), ht("request_code");
3242
+ O(w), ht("request_code");
3243
3243
  },
3244
3244
  className: bt,
3245
3245
  style: { color: r },
@@ -3251,7 +3251,7 @@ var ct = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpan
3251
3251
  /* @__PURE__ */ p("button", {
3252
3252
  type: "button",
3253
3253
  onClick: () => {
3254
- k(T), ht("reset");
3254
+ O(w), ht("reset");
3255
3255
  },
3256
3256
  className: bt,
3257
3257
  style: { color: r },
@@ -3329,16 +3329,16 @@ var ft = (e) => {
3329
3329
  s(() => {
3330
3330
  t === "attendee" && i(!0);
3331
3331
  }, [t]);
3332
- 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, ne] = d(!0), [k, A] = d(""), [re, j] = d(null), [ae, M] = d(!!o), [oe, se] = d(null), [ce, ue] = d(null), [de, fe] = d(o), [pe, N] = d(!1), [me, P] = d(() => dt(e.position)), [F, I] = d(null), [ve, ye] = d(null), [L, be] = d(!1), [xe, Ce] = d(!1), Te = u(null), R = u(null), z = u(!1);
3332
+ let [o] = d(() => typeof window < "u" ? new URLSearchParams(window.location.search).get("rn") : null), [c, h] = d(e.displayMode !== "popup" || !!o), [v, y] = d(!1), [b, x] = d([]), [S, C] = d(""), [w, T] = d(null), [E, te] = d(null), ne = l(() => E && { fields: E.fields.filter((e) => e.id !== "registration_type") }, [E]), [D, re] = d(!0), [O, k] = d(""), [ie, A] = d(null), [oe, j] = d(!!o), [se, ce] = d(null), [le, de] = d(null), [fe, pe] = d(o), [me, M] = d(!1), [he, N] = d(() => dt(e.position)), [P, I] = d(null), [ve, ye] = d(null), [L, be] = d(!1), [xe, Ce] = d(!1), Te = u(null), R = u(null), z = u(!1);
3333
3333
  s(() => {
3334
- e.position && P(dt(e.position));
3334
+ e.position && N(dt(e.position));
3335
3335
  }, [e.position]);
3336
- let B = e.themeMode === "dark" || e.theme?.mode === "dark", V = e.theme?.primaryColor || "#2563eb", H = !!e.isAbstract, U = e.headerBannerImage, Ee = e.backgroundImage, W = l(() => new g(e.debug), [e.debug]), G = l(() => new _(e.baseUrl, e.eventSlug, W, e.timeoutMs ?? 12e4), [
3336
+ let B = e.themeMode === "dark" || e.theme?.mode === "dark", V = e.theme?.primaryColor || "#2563eb", H = !!e.isAbstract, U = e.headerBannerImage, Ee = e.backgroundImage, W = l(() => new g(e.debug), [e.debug]), G = l(() => new ee(e.baseUrl, e.eventSlug, W, e.timeoutMs ?? 12e4), [
3337
3337
  e.baseUrl,
3338
3338
  e.eventSlug,
3339
3339
  W,
3340
3340
  e.timeoutMs
3341
- ]), K = l(() => new v(e.eventSlug), [e.eventSlug]), De = u(e.displayMode), q = u(null), [J, Y] = d(null);
3341
+ ]), K = l(() => new _(e.eventSlug), [e.eventSlug]), De = u(e.displayMode), q = u(null), [J, Y] = d(null);
3342
3342
  s(() => {
3343
3343
  K.getXrefId();
3344
3344
  }, [K]), s(() => {
@@ -3358,22 +3358,22 @@ var ft = (e) => {
3358
3358
  H
3359
3359
  ]);
3360
3360
  let ke = l(() => {
3361
- if (!J || !T || String(J.registration_type) !== String(T.id)) return {};
3361
+ if (!J || !w || String(J.registration_type) !== String(w.id)) return {};
3362
3362
  let e = { ...J.custom_data || {} };
3363
3363
  if (J.salutation && (e.salutation = J.salutation, e.title = J.salutation), J.name) {
3364
3364
  e.name = J.name, e.full_name = J.name, e.fullName = J.name;
3365
3365
  let t = J.name.trim().split(/\s+/);
3366
3366
  t.length > 0 && !e.first_name && (e.first_name = t[0]), t.length > 1 && !e.last_name && (e.last_name = t.slice(1).join(" "));
3367
3367
  }
3368
- 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) => {
3368
+ return J.email && (e.email = J.email), J.phone && (e.phone = J.phone, e.mobile = J.phone, e.phoneNumber = J.phone), ((H ? E?.fields : w?.form_schema?.fields) || []).forEach((t) => {
3369
3369
  let n = ot(t.id, t.label);
3370
3370
  e[t.id] === void 0 && e[n] !== void 0 && (e[t.id] = e[n]);
3371
3371
  }), e;
3372
3372
  }, [
3373
3373
  J,
3374
- T,
3374
+ w,
3375
3375
  H,
3376
- D
3376
+ E
3377
3377
  ]);
3378
3378
  s(() => () => {
3379
3379
  q.current && clearTimeout(q.current);
@@ -3395,7 +3395,7 @@ var ft = (e) => {
3395
3395
  "phoneNumber",
3396
3396
  "selected_items",
3397
3397
  "custom_data"
3398
- ]), r = (H ? D?.fields : T?.form_schema?.fields) || [], i = /* @__PURE__ */ new Map();
3398
+ ]), r = (H ? E?.fields : w?.form_schema?.fields) || [], i = /* @__PURE__ */ new Map();
3399
3399
  r.forEach((e) => i.set(e.id, e));
3400
3400
  let a = { ...t.custom_data || {} };
3401
3401
  for (let [e, r] of Object.entries(t)) if (!n.has(e)) {
@@ -3408,7 +3408,7 @@ var ft = (e) => {
3408
3408
  name: t.name || t.fullName || t.full_name || [t.firstName, t.lastName].filter(Boolean).join(" ") || "",
3409
3409
  email: t.email || "",
3410
3410
  phone: t.phone || t.mobile || t.phoneNumber || "",
3411
- registration_type: T?.id,
3411
+ registration_type: w?.id,
3412
3412
  custom_data: a,
3413
3413
  selected_items: t.selected_items || []
3414
3414
  };
@@ -3421,29 +3421,29 @@ var ft = (e) => {
3421
3421
  }, [
3422
3422
  K,
3423
3423
  G,
3424
- T,
3424
+ w,
3425
3425
  e,
3426
3426
  W,
3427
3427
  H,
3428
- D
3428
+ E
3429
3429
  ]);
3430
3430
  s(() => {
3431
- De.current !== e.displayMode && (De.current = e.displayMode, h(e.displayMode !== "popup"), b(!1));
3431
+ De.current !== e.displayMode && (De.current = e.displayMode, h(e.displayMode !== "popup"), y(!1));
3432
3432
  }, [e.displayMode]), s(() => {
3433
3433
  (H ? G.getReviewFormSchema() : G.getFormSchema()).then((t) => {
3434
- 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);
3434
+ x(t?.data?.types || []), H && te({ fields: t?.data?.fields || [] }), (t?.data?.event_name || t?.data?.title || t?.data?.name) && C(t.data.event_name || t.data.title || t.data.name), e.onEvent?.("form_loaded", t?.data);
3435
3435
  }).catch((t) => {
3436
- W.error("Failed to load schema", t), S([]);
3436
+ W.error("Failed to load schema", t), x([]);
3437
3437
  let n = {
3438
3438
  type: "schema_load",
3439
3439
  message: t?.message || "Failed to load event schema",
3440
3440
  error: t
3441
3441
  };
3442
3442
  e.onEvent?.("error", n), e.onError?.(n);
3443
- }).finally(() => ne(!1));
3443
+ }).finally(() => re(!1));
3444
3444
  }, [G, H]);
3445
3445
  let je = async (t) => {
3446
- q.current && clearTimeout(q.current), ne(!0), se(null);
3446
+ q.current && clearTimeout(q.current), re(!0), ce(null);
3447
3447
  let n = K.getXrefId(), r = /* @__PURE__ */ new Set([
3448
3448
  "salutation",
3449
3449
  "title",
@@ -3460,7 +3460,7 @@ var ft = (e) => {
3460
3460
  "selected_items",
3461
3461
  "custom_data",
3462
3462
  "xref_id"
3463
- ]), i = (H ? D?.fields : T?.form_schema?.fields) || [], a = /* @__PURE__ */ new Map();
3463
+ ]), i = (H ? E?.fields : w?.form_schema?.fields) || [], a = /* @__PURE__ */ new Map();
3464
3464
  i.forEach((e) => a.set(e.id, e));
3465
3465
  let o = { ...t.custom_data || {} };
3466
3466
  for (let [e, n] of Object.entries(t)) if (!r.has(e)) {
@@ -3473,7 +3473,7 @@ var ft = (e) => {
3473
3473
  name: t.name || t.fullName || t.full_name || [t.firstName, t.lastName].filter(Boolean).join(" ") || "",
3474
3474
  email: t.email || "",
3475
3475
  phone: t.phone || t.mobile || t.phoneNumber || "",
3476
- registration_type: T.id,
3476
+ registration_type: w.id,
3477
3477
  custom_data: o,
3478
3478
  selected_items: t.selected_items || []
3479
3479
  };
@@ -3481,11 +3481,11 @@ var ft = (e) => {
3481
3481
  let t = H ? await G.submitReview(s) : await G.submitRegistration(s);
3482
3482
  K.updateXrefId(), Y(null);
3483
3483
  let n = H ? null : t?.data?.payment_url || t?.payment_url || null;
3484
- ue(n);
3484
+ de(n);
3485
3485
  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;
3486
- fe(r ? String(r) : null), N(!1), n && typeof n == "string" && n.trim() !== "" && window.open(n, "_blank", "noopener,noreferrer"), M(!0);
3486
+ pe(r ? String(r) : null), M(!1), n && typeof n == "string" && n.trim() !== "" && window.open(n, "_blank", "noopener,noreferrer"), j(!0);
3487
3487
  let i = {
3488
- registrationType: T.id,
3488
+ registrationType: w.id,
3489
3489
  payload: s,
3490
3490
  response: t,
3491
3491
  paymentUrl: n
@@ -3498,12 +3498,12 @@ var ft = (e) => {
3498
3498
  message: n,
3499
3499
  error: t
3500
3500
  };
3501
- e.onEvent?.("error", r), e.onError?.(r), se(n);
3501
+ e.onEvent?.("error", r), e.onError?.(r), ce(n);
3502
3502
  } finally {
3503
- ne(!1);
3503
+ re(!1);
3504
3504
  }
3505
3505
  }, Me = () => {
3506
- if (M(!1), se(null), ue(null), fe(null), N(!1), E(null), Y(null), typeof window < "u" && new URLSearchParams(window.location.search).has("rn")) {
3506
+ if (j(!1), ce(null), de(null), pe(null), M(!1), T(null), Y(null), typeof window < "u" && new URLSearchParams(window.location.search).has("rn")) {
3507
3507
  let e = new URL(window.location.href);
3508
3508
  e.searchParams.delete("rn"), window.history.replaceState(window.history.state, "", e.toString());
3509
3509
  }
@@ -3514,9 +3514,9 @@ var ft = (e) => {
3514
3514
  startX: e.clientX,
3515
3515
  startY: e.clientY,
3516
3516
  rect: t,
3517
- corner: me
3517
+ corner: he
3518
3518
  }, z.current = !1, be(!0);
3519
- }, [me]);
3519
+ }, [he]);
3520
3520
  s(() => {
3521
3521
  if (!L) return;
3522
3522
  let t = (e) => {
@@ -3538,11 +3538,11 @@ var ft = (e) => {
3538
3538
  I(null);
3539
3539
  return;
3540
3540
  }
3541
- 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;
3541
+ 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", ee = m ? f - n.width - 20 : 20, _ = h ? p - n.height - 20 : 20, v = c - ee, y = l - _;
3542
3542
  ye({
3543
- transform: `translate3d(${y}px, ${b}px, 0)`,
3543
+ transform: `translate3d(${v}px, ${y}px, 0)`,
3544
3544
  transition: "none"
3545
- }), I(null), P(g), e.onEvent?.("position_changed", { position: g }), requestAnimationFrame(() => {
3545
+ }), I(null), N(g), e.onEvent?.("position_changed", { position: g }), requestAnimationFrame(() => {
3546
3546
  requestAnimationFrame(() => {
3547
3547
  ye({
3548
3548
  transform: "translate3d(0, 0, 0)",
@@ -3558,16 +3558,16 @@ var ft = (e) => {
3558
3558
  };
3559
3559
  }, [L, e]);
3560
3560
  let Pe = async () => {
3561
- if (de) {
3561
+ if (fe) {
3562
3562
  try {
3563
- await navigator.clipboard.writeText(de);
3563
+ await navigator.clipboard.writeText(fe);
3564
3564
  } catch {
3565
3565
  let e = document.createElement("textarea");
3566
- e.value = de, document.body.appendChild(e), e.select(), document.execCommand("copy"), document.body.removeChild(e);
3566
+ e.value = fe, document.body.appendChild(e), e.select(), document.execCommand("copy"), document.body.removeChild(e);
3567
3567
  }
3568
- N(!0), setTimeout(() => N(!1), 2e3);
3568
+ M(!0), setTimeout(() => M(!1), 2e3);
3569
3569
  }
3570
- }, X = () => de ? /* @__PURE__ */ m("div", {
3570
+ }, X = () => fe ? /* @__PURE__ */ m("div", {
3571
3571
  className: "w-full max-w-xs mb-6",
3572
3572
  children: [/* @__PURE__ */ p("p", {
3573
3573
  className: `text-2xs font-bold uppercase tracking-wider mb-1.5 ${B ? "text-zinc-400" : "text-gray-500"}`,
@@ -3577,7 +3577,7 @@ var ft = (e) => {
3577
3577
  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"}`,
3578
3578
  children: [/* @__PURE__ */ p("span", {
3579
3579
  className: "flex-1 text-left font-mono font-bold text-base select-all break-all",
3580
- children: de
3580
+ children: fe
3581
3581
  }), /* @__PURE__ */ m("button", {
3582
3582
  part: "copy-button",
3583
3583
  type: "button",
@@ -3585,15 +3585,15 @@ var ft = (e) => {
3585
3585
  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",
3586
3586
  style: { backgroundColor: V },
3587
3587
  title: "Copy registration number",
3588
- children: [p(pe ? le : _e, { size: 13 }), /* @__PURE__ */ p("span", { children: pe ? "Copied" : "Copy" })]
3588
+ children: [p(me ? ue : _e, { size: 13 }), /* @__PURE__ */ p("span", { children: me ? "Copied" : "Copy" })]
3589
3589
  })]
3590
3590
  })]
3591
3591
  }) : null;
3592
3592
  if (!c && e.displayMode === "popup") {
3593
3593
  let e = {
3594
- ...ft(me),
3595
- ...F ? {
3596
- transform: `translate3d(${F.x}px, ${F.y}px, 0) scale(1.05)`,
3594
+ ...ft(he),
3595
+ ...P ? {
3596
+ transform: `translate3d(${P.x}px, ${P.y}px, 0) scale(1.05)`,
3597
3597
  transition: "none",
3598
3598
  userSelect: "none"
3599
3599
  } : ve ? {
@@ -3605,7 +3605,7 @@ var ft = (e) => {
3605
3605
  ref: Te,
3606
3606
  onMouseEnter: () => Ce(!0),
3607
3607
  onMouseLeave: () => Ce(!1),
3608
- className: `fixed ${pt(me)} z-50 select-none group`,
3608
+ className: `fixed ${pt(he)} z-50 select-none group`,
3609
3609
  style: e,
3610
3610
  children: [/* @__PURE__ */ p("div", {
3611
3611
  onPointerDown: Ne,
@@ -3631,9 +3631,9 @@ var ft = (e) => {
3631
3631
  })]
3632
3632
  });
3633
3633
  }
3634
- let Ie = e.displayMode === "fullscreen" || e.displayMode === "popup" && y, Z = e.displayMode === "widget", Q = ut(Ee, B, Z), ze = `${B ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"} flex flex-col transition-all duration-300 ease-in-out `, Be = e.theme?.fontFamily, Ve = !Be || Be === "inherit" ? {} : { fontFamily: `var(--vx-font-family, ${Be})` };
3635
- Ve["--vx-accent"] = V, Ie ? ze += "fixed inset-0 z-[9999] rounded-none overflow-hidden " : e.displayMode === "popup" ? (ze += `fixed ${pt(me)} z-50 rounded-xl shadow-2xl border ${B ? "border-zinc-800" : "border-gray-200"} overflow-hidden `, Ve.width = e.width || "400px", Ve.height = e.height || "700px", Ve.maxHeight = "90vh", Ve.maxWidth = "calc(100vw - 32px)", Object.assign(Ve, ft(me))) : (ze += "relative w-full min-h-screen border-none shadow-none rounded-none ", Ve.width = "100%", Ve.minHeight = "100vh");
3636
- let He = H ? "Abstract Submission" : t === "registration" ? C || "Registration" : "Attendee Portal", Ue = k.trim().toLowerCase(), We = Ue ? x.filter((e) => [
3634
+ let Ie = e.displayMode === "fullscreen" || e.displayMode === "popup" && v, Z = e.displayMode === "widget", Q = ut(Ee, B, Z), ze = `${B ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"} flex flex-col transition-all duration-300 ease-in-out `, Be = e.theme?.fontFamily, Ve = !Be || Be === "inherit" ? {} : { fontFamily: `var(--vx-font-family, ${Be})` };
3635
+ Ve["--vx-accent"] = V, Ie ? ze += "fixed inset-0 z-[9999] rounded-none overflow-hidden " : e.displayMode === "popup" ? (ze += `fixed ${pt(he)} z-50 rounded-xl shadow-2xl border ${B ? "border-zinc-800" : "border-gray-200"} overflow-hidden `, Ve.width = e.width || "400px", Ve.height = e.height || "700px", Ve.maxHeight = "90vh", Ve.maxWidth = "calc(100vw - 32px)", Object.assign(Ve, ft(he))) : (ze += "relative w-full min-h-screen border-none shadow-none rounded-none ", Ve.width = "100%", Ve.minHeight = "100vh");
3636
+ let He = H ? "Abstract Submission" : t === "registration" ? S || "Registration" : "Attendee Portal", Ue = O.trim().toLowerCase(), We = Ue ? b.filter((e) => [
3637
3637
  e.type,
3638
3638
  e.name,
3639
3639
  e.category,
@@ -3642,9 +3642,9 @@ var ft = (e) => {
3642
3642
  e.price,
3643
3643
  e.tax_info,
3644
3644
  ...Array.isArray(e.items) ? e.items.map((e) => e?.name).filter(Boolean) : []
3645
- ].filter((e) => e != null && e !== "").join(" ").toLowerCase().includes(Ue)) : x, Ke = `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 = () => {
3646
- if (x.length === 0) return null;
3647
- let e = x.find((e) => String(e.id) === re) || (x.length === 1 ? x[0] : null), t = e ? e.type || e.name || e.label : "";
3645
+ ].filter((e) => e != null && e !== "").join(" ").toLowerCase().includes(Ue)) : b, Ke = `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 = () => {
3646
+ if (b.length === 0) return null;
3647
+ let e = b.find((e) => String(e.id) === ie) || (b.length === 1 ? b[0] : null), t = e ? e.type || e.name || e.label : "";
3648
3648
  return /* @__PURE__ */ m("div", {
3649
3649
  part: "category-panel",
3650
3650
  className: Ke,
@@ -3672,14 +3672,14 @@ var ft = (e) => {
3672
3672
  role: "radiogroup",
3673
3673
  "aria-label": "Submission category",
3674
3674
  className: `border-t divide-y ${B ? "border-zinc-800 divide-zinc-800" : "border-slate-100 divide-slate-100"}`,
3675
- children: x.map((t) => {
3675
+ children: b.map((t) => {
3676
3676
  let n = t.type || t.name || t.label, r = !!e && String(e.id) === String(t.id);
3677
3677
  return /* @__PURE__ */ m("button", {
3678
3678
  part: r ? "category category-active" : "category",
3679
3679
  type: "button",
3680
3680
  role: "radio",
3681
3681
  "aria-checked": r,
3682
- onClick: () => j(String(t.id)),
3682
+ onClick: () => A(String(t.id)),
3683
3683
  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"}`,
3684
3684
  style: r ? { backgroundColor: `color-mix(in srgb, ${V} ${B ? 14 : 6}%, transparent)` } : void 0,
3685
3685
  children: [
@@ -3706,7 +3706,7 @@ var ft = (e) => {
3706
3706
  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"}`,
3707
3707
  children: t.category
3708
3708
  }),
3709
- /* @__PURE__ */ p(ie, {
3709
+ /* @__PURE__ */ p(ae, {
3710
3710
  size: 16,
3711
3711
  className: `shrink-0 transition-all ${r ? "translate-x-0.5" : `${B ? "text-zinc-600" : "text-slate-300"} group-hover:translate-x-0.5`}`,
3712
3712
  style: r ? { color: V } : void 0
@@ -3727,13 +3727,13 @@ var ft = (e) => {
3727
3727
  part: "button button-primary continue-button",
3728
3728
  type: "button",
3729
3729
  disabled: !e,
3730
- onClick: () => e && E(e),
3730
+ onClick: () => e && T(e),
3731
3731
  style: {
3732
3732
  background: `linear-gradient(135deg, ${V}, color-mix(in srgb, ${V} 80%, black))`,
3733
3733
  boxShadow: e ? `0 10px 24px -12px color-mix(in srgb, ${V} 70%, transparent)` : void 0
3734
3734
  },
3735
3735
  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",
3736
- children: [/* @__PURE__ */ p("span", { children: "Continue to submission" }), /* @__PURE__ */ p(ie, {
3736
+ children: [/* @__PURE__ */ p("span", { children: "Continue to submission" }), /* @__PURE__ */ p(ae, {
3737
3737
  size: 16,
3738
3738
  className: "transition-transform group-hover:translate-x-0.5"
3739
3739
  })]
@@ -3872,7 +3872,7 @@ var ft = (e) => {
3872
3872
  ]
3873
3873
  });
3874
3874
  }, Qe = () => {
3875
- let e = !!T, t = H ? we : Ye, n = e ? H ? "Submitting your abstract" : "Submitting your registration" : "Loading your registration", r = T ? T.type || T.name || T.label : "", 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" : "";
3875
+ let e = !!w, t = H ? we : Ye, n = e ? H ? "Submitting your abstract" : "Submitting your registration" : "Loading your registration", r = w ? w.type || w.name || w.label : "", i = !H && w && w.price !== void 0 && w.price !== null && w.price !== "" ? Number(w.price) > 0 ? [w.currency, Number(w.price).toLocaleString()].filter(Boolean).join(" ") : "Free" : "";
3876
3876
  return /* @__PURE__ */ p("div", {
3877
3877
  part: "screen screen-submitting",
3878
3878
  role: "status",
@@ -3956,7 +3956,7 @@ var ft = (e) => {
3956
3956
  onScroll: (e) => {
3957
3957
  Z || (e.currentTarget.scrollTop !== 0 && (e.currentTarget.scrollTop = 0), e.currentTarget.scrollLeft !== 0 && (e.currentTarget.scrollLeft = 0));
3958
3958
  },
3959
- children: O && !T && !ae ? Ze() : O ? Qe() : ae ? ce ? /* @__PURE__ */ m("div", {
3959
+ children: D && !w && !oe ? Ze() : D ? Qe() : oe ? le ? /* @__PURE__ */ m("div", {
3960
3960
  part: "screen screen-payment",
3961
3961
  className: `flex flex-col h-full relative overflow-y-auto ${B ? "bg-black text-white" : "bg-white text-gray-900"}`,
3962
3962
  children: [/* @__PURE__ */ m("div", {
@@ -3977,10 +3977,10 @@ var ft = (e) => {
3977
3977
  })] }), /* @__PURE__ */ p("div", {
3978
3978
  className: "flex items-center gap-3",
3979
3979
  children: e.displayMode === "popup" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("button", {
3980
- onClick: () => b(!y),
3981
- title: y ? "Minimize" : "Expand",
3980
+ onClick: () => y(!v),
3981
+ title: v ? "Minimize" : "Expand",
3982
3982
  className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
3983
- children: p(y ? Le : Fe, { size: 18 })
3983
+ children: p(v ? Le : Fe, { size: 18 })
3984
3984
  }), /* @__PURE__ */ p("button", {
3985
3985
  onClick: () => h(!1),
3986
3986
  className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
@@ -4014,7 +4014,7 @@ var ft = (e) => {
4014
4014
  className: "w-full max-w-xs space-y-3",
4015
4015
  children: [/* @__PURE__ */ m("a", {
4016
4016
  part: "button button-primary",
4017
- href: ce,
4017
+ href: le,
4018
4018
  target: "_blank",
4019
4019
  rel: "noopener noreferrer",
4020
4020
  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",
@@ -4069,7 +4069,7 @@ var ft = (e) => {
4069
4069
  children: "Back"
4070
4070
  })
4071
4071
  ]
4072
- }) : oe ? /* @__PURE__ */ m("div", {
4072
+ }) : se ? /* @__PURE__ */ m("div", {
4073
4073
  part: "screen screen-error",
4074
4074
  className: `flex flex-col h-full relative overflow-y-auto ${B ? "bg-black text-white" : "bg-white text-gray-900"}`,
4075
4075
  children: [/* @__PURE__ */ m("div", {
@@ -4107,20 +4107,20 @@ var ft = (e) => {
4107
4107
  /* @__PURE__ */ p("p", {
4108
4108
  part: "screen-message",
4109
4109
  className: `text-sm mb-6 max-w-xs leading-relaxed ${B ? "text-zinc-300" : "text-gray-600"}`,
4110
- children: oe
4110
+ children: se
4111
4111
  }),
4112
4112
  /* @__PURE__ */ m("div", {
4113
4113
  className: "w-full max-w-xs space-y-3",
4114
4114
  children: [/* @__PURE__ */ p("button", {
4115
4115
  part: "button button-primary",
4116
- onClick: () => se(null),
4116
+ onClick: () => ce(null),
4117
4117
  style: { backgroundColor: V },
4118
4118
  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",
4119
4119
  children: /* @__PURE__ */ p("span", { children: "Try Again" })
4120
4120
  }), /* @__PURE__ */ p("button", {
4121
4121
  part: "button button-link",
4122
4122
  onClick: () => {
4123
- se(null), E(null);
4123
+ ce(null), T(null);
4124
4124
  },
4125
4125
  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"}`,
4126
4126
  children: H ? "Choose Another Category" : "Choose Another Ticket"
@@ -4128,14 +4128,14 @@ var ft = (e) => {
4128
4128
  })
4129
4129
  ]
4130
4130
  })]
4131
- }) : T ? /* @__PURE__ */ p(ct, {
4132
- schema: H ? te : T.form_schema,
4133
- ticketType: T,
4131
+ }) : w ? /* @__PURE__ */ p(ct, {
4132
+ schema: H ? ne : w.form_schema,
4133
+ ticketType: w,
4134
4134
  theme: e.theme,
4135
4135
  displayMode: e.displayMode,
4136
4136
  backgroundStyle: Q,
4137
- isExpanded: y,
4138
- onToggleExpand: () => b(!y),
4137
+ isExpanded: v,
4138
+ onToggleExpand: () => y(!v),
4139
4139
  onClose: () => h(!1),
4140
4140
  onSubmit: je,
4141
4141
  onChange: Ae,
@@ -4147,7 +4147,7 @@ var ft = (e) => {
4147
4147
  onEvent: e.onEvent,
4148
4148
  showReviewFields: H,
4149
4149
  onBack: () => {
4150
- q.current && clearTimeout(q.current), E(null);
4150
+ q.current && clearTimeout(q.current), T(null);
4151
4151
  }
4152
4152
  }) : /* @__PURE__ */ m("div", {
4153
4153
  part: "page",
@@ -4218,10 +4218,10 @@ var ft = (e) => {
4218
4218
  }), /* @__PURE__ */ p("div", {
4219
4219
  className: "flex items-center gap-3",
4220
4220
  children: e.displayMode === "popup" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("button", {
4221
- onClick: () => b(!y),
4222
- title: y ? "Minimize" : "Expand",
4221
+ onClick: () => y(!v),
4222
+ title: v ? "Minimize" : "Expand",
4223
4223
  className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer p-1",
4224
- children: p(y ? Le : Fe, { size: 18 })
4224
+ children: p(v ? Le : Fe, { size: 18 })
4225
4225
  }), /* @__PURE__ */ p("button", {
4226
4226
  onClick: () => h(!1),
4227
4227
  className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer p-1",
@@ -4242,7 +4242,7 @@ var ft = (e) => {
4242
4242
  children: [{
4243
4243
  key: "registration",
4244
4244
  label: "Registration Forms",
4245
- Icon: he
4245
+ Icon: ge
4246
4246
  }, {
4247
4247
  key: "attendee",
4248
4248
  label: "Attendee Login",
@@ -4285,10 +4285,10 @@ var ft = (e) => {
4285
4285
  className: `text-base sm:text-lg font-semibold tracking-tight ${B ? "text-white" : "text-slate-900"}`,
4286
4286
  style: $,
4287
4287
  children: H ? "Choose a submission category" : "Choose your registration type"
4288
- }), x.length > 0 && /* @__PURE__ */ p("p", {
4288
+ }), b.length > 0 && /* @__PURE__ */ p("p", {
4289
4289
  part: "list-count",
4290
4290
  className: `text-xs mt-0.5 ${B ? "text-zinc-400" : "text-slate-500"}`,
4291
- children: Ue ? `${We.length} of ${x.length} options` : `${x.length} ${x.length === 1 ? "option" : "options"} available`
4291
+ children: Ue ? `${We.length} of ${b.length} options` : `${b.length} ${b.length === 1 ? "option" : "options"} available`
4292
4292
  })]
4293
4293
  }), /* @__PURE__ */ m("div", {
4294
4294
  className: "relative w-full sm:w-72",
@@ -4296,8 +4296,8 @@ var ft = (e) => {
4296
4296
  /* @__PURE__ */ p("input", {
4297
4297
  part: "input search-input",
4298
4298
  type: "text",
4299
- value: k,
4300
- onChange: (e) => A(e.target.value),
4299
+ value: O,
4300
+ onChange: (e) => k(e.target.value),
4301
4301
  placeholder: H ? "Search categories…" : "Search registration types…",
4302
4302
  "aria-label": "Search",
4303
4303
  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)]"}`
@@ -4309,16 +4309,16 @@ var ft = (e) => {
4309
4309
  className: "block"
4310
4310
  })
4311
4311
  }),
4312
- k && /* @__PURE__ */ p("button", {
4312
+ O && /* @__PURE__ */ p("button", {
4313
4313
  type: "button",
4314
- onClick: () => A(""),
4314
+ onClick: () => k(""),
4315
4315
  "aria-label": "Clear search",
4316
4316
  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"}`,
4317
4317
  children: /* @__PURE__ */ p(rt, { size: 14 })
4318
4318
  })
4319
4319
  ]
4320
4320
  })]
4321
- }), x.length === 0 ? null : We.length === 0 ? /* @__PURE__ */ m("div", {
4321
+ }), b.length === 0 ? null : We.length === 0 ? /* @__PURE__ */ m("div", {
4322
4322
  part: "empty-state",
4323
4323
  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"}`,
4324
4324
  children: [
@@ -4330,7 +4330,7 @@ var ft = (e) => {
4330
4330
  className: `text-base font-semibold ${B ? "text-white" : "text-slate-900"}`,
4331
4331
  children: [
4332
4332
  "No matches for “",
4333
- k.trim(),
4333
+ O.trim(),
4334
4334
  "”"
4335
4335
  ]
4336
4336
  }),
@@ -4340,7 +4340,7 @@ var ft = (e) => {
4340
4340
  }),
4341
4341
  /* @__PURE__ */ p("button", {
4342
4342
  part: "button button-secondary",
4343
- onClick: () => A(""),
4343
+ onClick: () => k(""),
4344
4344
  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"}`,
4345
4345
  children: "Clear search"
4346
4346
  })
@@ -4355,9 +4355,9 @@ var ft = (e) => {
4355
4355
  role: "button",
4356
4356
  tabIndex: 0,
4357
4357
  "aria-label": `Select ${t}`,
4358
- onClick: () => E(e),
4358
+ onClick: () => T(e),
4359
4359
  onKeyDown: (t) => {
4360
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), E(e));
4360
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), T(e));
4361
4361
  },
4362
4362
  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)]"}`,
4363
4363
  children: [
@@ -4384,7 +4384,7 @@ var ft = (e) => {
4384
4384
  }), e.seats_left && /* @__PURE__ */ m("span", {
4385
4385
  part: "card-seats",
4386
4386
  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"}`,
4387
- children: [/* @__PURE__ */ p(ge, { size: 10 }), /* @__PURE__ */ p("span", { children: e.seats_left })]
4387
+ children: [/* @__PURE__ */ p(F, { size: 10 }), /* @__PURE__ */ p("span", { children: e.seats_left })]
4388
4388
  })]
4389
4389
  })]
4390
4390
  }),
@@ -4410,7 +4410,7 @@ var ft = (e) => {
4410
4410
  backgroundColor: `color-mix(in srgb, ${V} 14%, transparent)`,
4411
4411
  color: V
4412
4412
  },
4413
- children: /* @__PURE__ */ p(le, {
4413
+ children: /* @__PURE__ */ p(ue, {
4414
4414
  size: 10,
4415
4415
  strokeWidth: 3
4416
4416
  })
@@ -4448,7 +4448,7 @@ var ft = (e) => {
4448
4448
  style: { backgroundColor: V },
4449
4449
  children: [H ? "Submit" : "Register", /* @__PURE__ */ p("span", {
4450
4450
  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",
4451
- children: /* @__PURE__ */ p(ie, { size: 14 })
4451
+ children: /* @__PURE__ */ p(ae, { size: 14 })
4452
4452
  })]
4453
4453
  })]
4454
4454
  })