@voxket-ai/events-sdk 1.0.35 → 1.0.37

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.
@@ -482,7 +482,7 @@ var j = {
482
482
  }]]
483
483
  };
484
484
  j.node;
485
- var M = A(j), N = {
485
+ var ne = A(j), M = {
486
486
  name: "arrow-right",
487
487
  size: 24,
488
488
  node: [["path", {
@@ -493,8 +493,8 @@ var M = A(j), N = {
493
493
  key: "xquz4c"
494
494
  }]]
495
495
  };
496
- N.node;
497
- var ne = A(N), P = {
496
+ M.node;
497
+ var N = A(M), P = {
498
498
  name: "briefcase",
499
499
  size: 24,
500
500
  node: [["path", {
@@ -1206,7 +1206,7 @@ var nt = A(tt), rt = {
1206
1206
  aliases: ["trash-2"]
1207
1207
  };
1208
1208
  rt.node;
1209
- var it = A(rt), X = {
1209
+ var it = A(rt), at = {
1210
1210
  name: "upload",
1211
1211
  size: 24,
1212
1212
  node: [
@@ -1224,8 +1224,8 @@ var it = A(rt), X = {
1224
1224
  }]
1225
1225
  ]
1226
1226
  };
1227
- X.node;
1228
- var at = A(X), ot = {
1227
+ at.node;
1228
+ var ot = A(at), X = {
1229
1229
  name: "user-plus",
1230
1230
  size: 24,
1231
1231
  node: [
@@ -1255,8 +1255,8 @@ var at = A(X), ot = {
1255
1255
  }]
1256
1256
  ]
1257
1257
  };
1258
- ot.node;
1259
- var st = A(ot), ct = {
1258
+ X.node;
1259
+ var st = A(X), ct = {
1260
1260
  name: "user",
1261
1261
  size: 24,
1262
1262
  node: [["path", {
@@ -1453,7 +1453,7 @@ var Ct = {
1453
1453
  "email",
1454
1454
  "phone"
1455
1455
  ]), Et = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpanded: a, onToggleExpand: o, onClose: c, onChange: l, initialValues: h, fileAnswers: g, isDark: _ = !1, apiClient: v, onError: y, onEvent: b, backgroundStyle: x, ticketType: S, offers: C, showReviewFields: w = !1 }) => {
1456
- let [T, E] = d(h || {}), [D, O] = d(null), [k, ee] = d(null), [te, A] = d({}), [j, N] = d({}), [P, F] = d(null), [re, I] = d(null), [ie, oe] = d({}), [ce, le] = d({}), [ue, de] = d({}), [L, fe] = d({}), [pe, me] = d(""), [he, ge] = d(null), [_e, ve] = d(!1), R = r?.primaryColor || "#c026d3";
1456
+ let [T, E] = d(h || {}), [D, O] = d(null), [k, ee] = d(null), [te, A] = d({}), [j, M] = d({}), [P, F] = d(null), [re, I] = d(null), [ie, oe] = d({}), [ce, le] = d({}), [ue, de] = d({}), [L, fe] = d({}), [pe, me] = d(""), [he, ge] = d(null), [_e, ve] = d(!1), R = r?.primaryColor || "#c026d3";
1457
1457
  s(() => {
1458
1458
  if (h && Object.keys(h).length > 0) {
1459
1459
  E((e) => ({
@@ -1469,7 +1469,7 @@ var Ct = {
1469
1469
  }), Object.keys(t).length > 0 && A((e) => ({
1470
1470
  ...t,
1471
1471
  ...e
1472
- })), Object.keys(n).length > 0 && N((e) => ({
1472
+ })), Object.keys(n).length > 0 && M((e) => ({
1473
1473
  ...n,
1474
1474
  ...e
1475
1475
  })), r.forEach((e) => {
@@ -1483,7 +1483,7 @@ var Ct = {
1483
1483
  })), oe((t) => ({
1484
1484
  [e.id]: "text",
1485
1485
  ...t
1486
- }))) : t?.serve_url && N((n) => ({
1486
+ }))) : t?.serve_url && M((n) => ({
1487
1487
  [e.id]: t.serve_url,
1488
1488
  ...n
1489
1489
  }));
@@ -1507,7 +1507,7 @@ var Ct = {
1507
1507
  let n = { ...t };
1508
1508
  return delete n[e], n;
1509
1509
  };
1510
- A(n), N(n), de(n), t || le(n), E((t) => {
1510
+ A(n), M(n), de(n), t || le(n), E((t) => {
1511
1511
  let n = {
1512
1512
  ...t,
1513
1513
  [e]: ""
@@ -1536,7 +1536,7 @@ var Ct = {
1536
1536
  if (A((e) => ({
1537
1537
  ...e,
1538
1538
  [t]: c
1539
- })), u && N((e) => ({
1539
+ })), u && M((e) => ({
1540
1540
  ...e,
1541
1541
  [t]: u
1542
1542
  })), de((e) => {
@@ -1604,7 +1604,7 @@ var Ct = {
1604
1604
  if (A((e) => ({
1605
1605
  ...e,
1606
1606
  [t]: s
1607
- })), N((e) => {
1607
+ })), M((e) => {
1608
1608
  let n = { ...e };
1609
1609
  return delete n[t], n;
1610
1610
  }), de((e) => ({
@@ -1641,17 +1641,17 @@ var Ct = {
1641
1641
  }, Ae = () => {
1642
1642
  let t = (e?.fields || []).find((e) => e.type === "email" || (e.label || e.id || "").toLowerCase().includes("email"));
1643
1643
  return String(t && T[t.id] || T.email || "").trim();
1644
- }, z = () => w && Ae() || null, Me = e?.fields || [], Ne = Array.isArray(S?.items) ? S.items.filter((e) => e?.name) : [], Pe = Ne.filter((e) => e.mode === "optional"), Fe = Ne.filter((e) => e.mode === "group"), Ie = Ne.filter((e) => e.mode !== "optional" && e.mode !== "group"), B = Array.isArray(T.selected_items) ? T.selected_items : [], Le = (e) => e?.options?.length ? e.options.flatMap(Le) : e?.name ? [e.name] : [], Re = (e, t = B) => Le(e).some((e) => t.includes(e)), ze = (e, t = B) => (e?.options || []).filter((e) => Re(e, t)).length, Be = (e, t = []) => {
1644
+ }, z = () => w && Ae() || null, Me = e?.fields || [], Ne = Array.isArray(S?.items) ? S.items.filter((e) => e?.name) : [], Pe = Ne.filter((e) => e.mode === "optional"), Fe = Ne.filter((e) => e.mode === "group"), Ie = Ne.filter((e) => e.mode !== "optional" && e.mode !== "group"), B = Array.isArray(T.selected_items) ? T.selected_items : [], Le = (e) => e?.label ?? e?.name, Re = (e) => e?.options?.length ? e.options.flatMap(Re) : Le(e) ? [Le(e)] : [], ze = (e, t = B) => Re(e).some((e) => t.includes(e)), Be = (e, t = B) => (e?.options || []).filter((e) => ze(e, t)).length, Ve = (e, t = []) => {
1645
1645
  E((n) => {
1646
1646
  let r = Array.isArray(n.selected_items) ? n.selected_items : [], i = r.includes(e), a = i ? r.filter((t) => t !== e) : [...r, e];
1647
- if (!i && t.some((e) => Number(e?.max) && ze(e, a) > Number(e.max))) return n;
1647
+ if (!i && t.some((e) => Number(e?.max) && Be(e, a) > Number(e.max))) return n;
1648
1648
  let o = {
1649
1649
  ...n,
1650
1650
  selected_items: a
1651
1651
  };
1652
1652
  return l?.(o), o;
1653
1653
  });
1654
- }, Ve = w ? null : S?.accompany_form_schema || null, V = Ve?.fields || [], H = Number(Ve?.price) || 0, U = Number(Ve?.max) || 0, W = Array.isArray(T.accompanying) ? T.accompanying : [], G = !U || W.length < U, Ue = (e) => {
1654
+ }, V = w ? null : S?.accompany_form_schema || null, H = V?.fields || [], U = Number(V?.price) || 0, W = Number(V?.max) || 0, G = Array.isArray(T.accompanying) ? T.accompanying : [], Ue = !W || G.length < W, Ge = (e) => {
1655
1655
  E((t) => {
1656
1656
  let n = Array.isArray(t.accompanying) ? t.accompanying : [], r = {
1657
1657
  ...t,
@@ -1659,29 +1659,29 @@ var Ct = {
1659
1659
  };
1660
1660
  return l?.(r), r;
1661
1661
  });
1662
- }, Ge = () => Ue((e) => [...e, {
1662
+ }, Ke = () => Ge((e) => [...e, {
1663
1663
  salutation: "",
1664
1664
  name: "",
1665
1665
  email: "",
1666
1666
  phone: "",
1667
1667
  custom_data: {}
1668
- }]), Ke = (e) => Ue((t) => t.filter((t, n) => n !== e)), K = (e) => Tt.has(e.id) ? e.id : ht(e.id, e.label), q = (e, t) => (Tt.has(t.id) ? e[t.id] : (e.custom_data || {})[K(t)]) ?? "", J = (e, t, n) => Ue((r) => r.map((r, i) => i === e ? Tt.has(t.id) ? {
1668
+ }]), K = (e) => Ge((t) => t.filter((t, n) => n !== e)), q = (e) => Tt.has(e.id) ? e.id : ht(e.id, e.label), J = (e, t) => (Tt.has(t.id) ? e[t.id] : (e.custom_data || {})[q(t)]) ?? "", qe = (e, t, n) => Ge((r) => r.map((r, i) => i === e ? Tt.has(t.id) ? {
1669
1669
  ...r,
1670
1670
  [t.id]: n
1671
1671
  } : {
1672
1672
  ...r,
1673
1673
  custom_data: {
1674
1674
  ...r.custom_data || {},
1675
- [K(t)]: n
1675
+ [q(t)]: n
1676
1676
  }
1677
- } : r)), qe = (e, t) => `guest:${e}:${t.id}`, Je = async (e, t, n) => {
1677
+ } : r)), Je = (e, t) => `guest:${e}:${t.id}`, Ye = async (e, t, n) => {
1678
1678
  if (!v) return;
1679
- let r = qe(e, t);
1679
+ let r = Je(e, t);
1680
1680
  O(r), F(null), I(null);
1681
1681
  try {
1682
1682
  let i = await v.uploadFile(n, null, z(), t.label), a = i?.data?.serve_url || i?.serve_url || "", o = i?.data?.asset_id || i?.asset_id || "";
1683
1683
  if (!a && !o) throw Error("Upload response missing asset_id");
1684
- J(e, t, String(a || o)), b?.("file_uploaded", {
1684
+ qe(e, t, String(a || o)), b?.("file_uploaded", {
1685
1685
  fieldId: r,
1686
1686
  assetId: o,
1687
1687
  serveUrl: a
@@ -1696,15 +1696,15 @@ var Ct = {
1696
1696
  } finally {
1697
1697
  O(null);
1698
1698
  }
1699
- }, Ye = async (e, t) => {
1699
+ }, Y = async (e, t) => {
1700
1700
  if (!v) return;
1701
- let n = qe(e, t), r = q(W[e] || {}, t), i = mt(r) || r;
1701
+ let n = Je(e, t), r = J(G[e] || {}, t), i = mt(r) || r;
1702
1702
  ee(n), F(null), I(null);
1703
1703
  try {
1704
1704
  i && (await v.deleteFile(i, null, z()), b?.("file_deleted", {
1705
1705
  fieldId: n,
1706
1706
  assetId: i
1707
- })), J(e, t, "");
1707
+ })), qe(e, t, "");
1708
1708
  } catch (e) {
1709
1709
  let t = e?.message || "Failed to delete file. Please try again.";
1710
1710
  F(t), I(n), y?.({
@@ -1715,12 +1715,12 @@ var Ct = {
1715
1715
  } finally {
1716
1716
  ee(null);
1717
1717
  }
1718
- }, Y = (e) => {
1718
+ }, Xe = (e) => {
1719
1719
  if (e.description) return e.description;
1720
1720
  if (e.helperText) return e.helperText;
1721
1721
  let t = (e.label || e.id || "").toLowerCase(), n = e.type;
1722
1722
  return n === "email" ? w ? "Please enter a valid email address. Your abstract acknowledgement, review updates, and final communication will be sent to this mailbox." : "Please enter a valid email address. Your registration confirmation and event updates will be sent to this mailbox." : n === "phone" ? "Please enter a valid mobile number for SMS confirmations and important notifications." : n === "text" && (t.includes("council") || t.includes("registration no") || t.includes("mci")) ? "Enter your State Medical Council or National Medical Commission registration number." : n === "file" ? w ? "Upload your document, or answer with text instead." : "Upload your document for registration review and verification, or answer with text instead." : e.id === "salutation" ? "Choose your professional title or academic prefix." : null;
1723
- }, Xe = (e) => {
1723
+ }, Ze = (e) => {
1724
1724
  let t = j[e.id] || (T[e.id] && String(T[e.id]).startsWith("http") ? T[e.id] : ""), n = ue[e.id], r = ie[e.id] || "file", i = D === e.id || k === e.id, a = D !== null || k !== null, o = ce[e.id] || "", s = gt(o), c = !!Number(e.word_limit) && s > Number(e.word_limit);
1725
1725
  return /* @__PURE__ */ p("div", {
1726
1726
  className: "space-y-2 mt-2",
@@ -1759,7 +1759,7 @@ var Ct = {
1759
1759
  color: R,
1760
1760
  borderColor: `color-mix(in srgb, ${R} 35%, transparent)`
1761
1761
  },
1762
- children: r === "file" ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(Ce, { size: 11 }), " Send text only"] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(at, { size: 11 }), " Send file"] })
1762
+ children: r === "file" ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(Ce, { size: 11 }), " Send text only"] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(ot, { size: 11 }), " Send file"] })
1763
1763
  })]
1764
1764
  }),
1765
1765
  r === "file" ? /* @__PURE__ */ m("div", {
@@ -1778,7 +1778,7 @@ var Ct = {
1778
1778
  }
1779
1779
  }), /* @__PURE__ */ m("div", {
1780
1780
  className: `flex items-center gap-1.5 py-2 px-3.5 rounded-xl text-xs font-semibold border transition-all shadow-2xs ${_ ? "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"}`,
1781
- children: [/* @__PURE__ */ p(at, {
1781
+ children: [/* @__PURE__ */ p(ot, {
1782
1782
  size: 14,
1783
1783
  style: { color: R }
1784
1784
  }), /* @__PURE__ */ p("span", { children: D === e.id ? "Uploading..." : t ? "Replace File" : "Choose File" })]
@@ -1838,7 +1838,7 @@ var Ct = {
1838
1838
  onClick: () => ke(e.id, o),
1839
1839
  style: { backgroundColor: R },
1840
1840
  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",
1841
- children: [/* @__PURE__ */ p(at, { size: 13 }), /* @__PURE__ */ p("span", { children: D === e.id ? "Submitting..." : "Submit Text" })]
1841
+ children: [/* @__PURE__ */ p(ot, { size: 13 }), /* @__PURE__ */ p("span", { children: D === e.id ? "Submitting..." : "Submit Text" })]
1842
1842
  })]
1843
1843
  })]
1844
1844
  }),
@@ -1859,9 +1859,9 @@ var Ct = {
1859
1859
  ]
1860
1860
  })
1861
1861
  });
1862
- }, Ze = (e) => {
1862
+ }, Qe = (e) => {
1863
1863
  if (!e) return null;
1864
- let t = T[e.id] ?? "", n = Y(e), r = e.type === "email", i = e.id === "name", a = `vx-field-${e.id}`, o = `w-full px-4 py-3 text-[15px] font-medium rounded-xl border transition-all focus:outline-none ${_ ? "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)]"}`;
1864
+ let t = T[e.id] ?? "", n = Xe(e), r = e.type === "email", i = e.id === "name", a = `vx-field-${e.id}`, o = `w-full px-4 py-3 text-[15px] font-medium rounded-xl border transition-all focus:outline-none ${_ ? "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)]"}`;
1865
1865
  return /* @__PURE__ */ m("div", {
1866
1866
  part: "field",
1867
1867
  className: "px-5 sm:px-8 py-5 sm:py-6",
@@ -1884,7 +1884,7 @@ var Ct = {
1884
1884
  children: n
1885
1885
  }),
1886
1886
  !n && /* @__PURE__ */ p("div", { className: "h-1.5" }),
1887
- e.type === "file" ? Xe(e) : /* @__PURE__ */ p(wt, {
1887
+ e.type === "file" ? Ze(e) : /* @__PURE__ */ p(wt, {
1888
1888
  field: e,
1889
1889
  id: a,
1890
1890
  value: t,
@@ -1895,8 +1895,8 @@ var Ct = {
1895
1895
  })
1896
1896
  ]
1897
1897
  }, e.id);
1898
- }, Qe = (e, t, n) => {
1899
- let r = qe(t, e), i = D !== null || k !== null;
1898
+ }, $e = (e, t, n) => {
1899
+ let r = Je(t, e), i = D !== null || k !== null;
1900
1900
  return /* @__PURE__ */ m("div", { children: [n ? /* @__PURE__ */ m("div", {
1901
1901
  className: `flex items-center gap-2 px-3 py-2.5 rounded-xl border ${_ ? "border-zinc-700 bg-zinc-900" : "border-slate-200 bg-white"}`,
1902
1902
  children: [
@@ -1915,7 +1915,7 @@ var Ct = {
1915
1915
  /* @__PURE__ */ p("button", {
1916
1916
  type: "button",
1917
1917
  disabled: i,
1918
- onClick: () => Ye(t, e),
1918
+ onClick: () => Y(t, e),
1919
1919
  title: "Remove file",
1920
1920
  className: `shrink-0 p-1 rounded-lg cursor-pointer disabled:opacity-40 ${_ ? "text-zinc-500 hover:text-red-400" : "text-slate-400 hover:text-red-500"}`,
1921
1921
  children: /* @__PURE__ */ p(it, { size: 14 })
@@ -1924,14 +1924,14 @@ var Ct = {
1924
1924
  }) : /* @__PURE__ */ m("label", {
1925
1925
  className: `flex items-center justify-center gap-2 px-3 py-2.5 rounded-xl border border-dashed cursor-pointer text-xs font-semibold transition-opacity hover:opacity-80 ${_ ? "border-zinc-700 text-zinc-300" : "border-slate-300 text-slate-600"} ${i ? "opacity-50 pointer-events-none" : ""}`,
1926
1926
  children: [
1927
- /* @__PURE__ */ p(at, { size: 14 }),
1927
+ /* @__PURE__ */ p(ot, { size: 14 }),
1928
1928
  D === r ? "Uploading..." : "Choose file",
1929
1929
  /* @__PURE__ */ p("input", {
1930
1930
  type: "file",
1931
1931
  className: "hidden",
1932
1932
  onChange: (n) => {
1933
1933
  let r = n.target.files?.[0];
1934
- r && Je(t, e, r), n.target.value = "";
1934
+ r && Ye(t, e, r), n.target.value = "";
1935
1935
  }
1936
1936
  })
1937
1937
  ]
@@ -1939,8 +1939,8 @@ var Ct = {
1939
1939
  className: "text-xs text-red-500 mt-1.5 font-medium",
1940
1940
  children: P
1941
1941
  })] });
1942
- }, $e = (e, t, n) => {
1943
- let r = q(t, e), i = `w-full px-3.5 py-2.5 text-sm font-medium rounded-xl border transition-all focus:outline-none ${_ ? "bg-zinc-900 border-zinc-700 text-white placeholder:text-zinc-500 focus:border-(--vx-accent)" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400 focus:border-(--vx-accent)"}`;
1942
+ }, tt = (e, t, n) => {
1943
+ let r = J(t, e), i = `w-full px-3.5 py-2.5 text-sm font-medium rounded-xl border transition-all focus:outline-none ${_ ? "bg-zinc-900 border-zinc-700 text-white placeholder:text-zinc-500 focus:border-(--vx-accent)" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400 focus:border-(--vx-accent)"}`;
1944
1944
  return /* @__PURE__ */ m("label", {
1945
1945
  part: "field",
1946
1946
  className: "block",
@@ -1950,27 +1950,27 @@ var Ct = {
1950
1950
  className: "text-red-500 ml-0.5",
1951
1951
  children: "*"
1952
1952
  })]
1953
- }), e.type === "file" ? Qe(e, n, String(r || "")) : /* @__PURE__ */ p(wt, {
1953
+ }), e.type === "file" ? $e(e, n, String(r || "")) : /* @__PURE__ */ p(wt, {
1954
1954
  field: e,
1955
1955
  value: r,
1956
- onChange: (t) => J(n, e, t),
1956
+ onChange: (t) => qe(n, e, t),
1957
1957
  className: i,
1958
1958
  isDark: _
1959
1959
  })]
1960
1960
  }, e.id);
1961
- }, tt = (e) => {
1961
+ }, rt = (e) => {
1962
1962
  e.preventDefault(), be(null);
1963
1963
  for (let e of Me) if (e.type === "file" && e.required && !T[e.id]) {
1964
1964
  F(`Please upload ${e.label || "a file"}`), I(e.id);
1965
1965
  return;
1966
1966
  }
1967
- for (let e = 0; e < W.length; e++) for (let t of V) if (t.type === "file" && t.required && !q(W[e], t)) {
1968
- F(`Please upload ${t.label || "a file"} for guest ${e + 1}`), I(qe(e, t));
1967
+ for (let e = 0; e < G.length; e++) for (let t of H) if (t.type === "file" && t.required && !J(G[e], t)) {
1968
+ F(`Please upload ${t.label || "a file"} for guest ${e + 1}`), I(Je(e, t));
1969
1969
  return;
1970
1970
  }
1971
1971
  let n = _t(Me, (e) => T[e.id]);
1972
- for (let e = 0; !n && e < W.length; e++) {
1973
- let t = _t(V, (t) => q(W[e], t));
1972
+ for (let e = 0; !n && e < G.length; e++) {
1973
+ let t = _t(H, (t) => J(G[e], t));
1974
1974
  t && (n = `Guest ${e + 1}: ${t}`);
1975
1975
  }
1976
1976
  if (n) {
@@ -1983,23 +1983,23 @@ var Ct = {
1983
1983
  }), Object.entries(ue).forEach(([e, t]) => {
1984
1984
  r[e] = { text: t };
1985
1985
  }), t(T, { fileAnswers: r });
1986
- }, rt = S?.type || S?.name || S?.label || (w ? "Abstract Submission Form" : "Registration Form"), X = (e) => [S?.currency, e.toLocaleString()].filter(Boolean).join(" "), ot = (e) => {
1987
- if (!e?.options?.length) return B.includes(e?.name) && Number(e?.price) || 0;
1988
- if (!Re(e)) return 0;
1989
- let t = e.options.reduce((e, t) => e + ot(t), 0);
1986
+ }, at = S?.type || S?.name || S?.label || (w ? "Abstract Submission Form" : "Registration Form"), X = (e) => [S?.currency, e.toLocaleString()].filter(Boolean).join(" "), ct = (e) => {
1987
+ if (!e?.options?.length) return B.includes(Le(e)) && Number(e?.price) || 0;
1988
+ if (!ze(e)) return 0;
1989
+ let t = e.options.reduce((e, t) => e + ct(t), 0);
1990
1990
  return e.price == null || e.price === "" ? t : Number(e.price) || 0;
1991
- }, ct = [...Pe, ...Fe].reduce((e, t) => e + ot(t), 0), lt = (e, t = [], n = !1) => {
1992
- let r = Number(e.max) || 0, i = ze(e), a = r > 0 && i >= r, o = (e.options || []).length, s = e.price == null || e.price === "" ? 0 : Number(e.price) || 0, c = n || s > 0, l = L[e.name] ?? i > 0, u = [...t, e];
1991
+ }, lt = [...Pe, ...Fe].reduce((e, t) => e + ct(t), 0), ut = (e, t = [], n = !1) => {
1992
+ let r = Number(e.max) || 0, i = Be(e), a = r > 0 && i >= r, o = (e.options || []).length, s = e.price != null && e.price !== "", c = s && Number(e.price) || 0, l = n || s, u = L[e.name] ?? i > 0, d = [...t, e];
1993
1993
  return /* @__PURE__ */ m("div", {
1994
1994
  part: "addon-group",
1995
1995
  className: "pt-1",
1996
1996
  children: [/* @__PURE__ */ m("button", {
1997
1997
  type: "button",
1998
1998
  part: "addon-group-toggle",
1999
- "aria-expanded": l,
1999
+ "aria-expanded": u,
2000
2000
  onClick: () => fe((t) => ({
2001
2001
  ...t,
2002
- [e.name]: !l
2002
+ [e.name]: !u
2003
2003
  })),
2004
2004
  className: `w-full flex items-center justify-between gap-2 mb-2 px-3.5 py-3 rounded-2xl border cursor-pointer transition-colors ${_ ? "border-zinc-800 bg-zinc-950/60 hover:border-zinc-700" : "border-slate-200 bg-slate-50 hover:border-slate-300"}`,
2005
2005
  children: [/* @__PURE__ */ m("span", {
@@ -2007,7 +2007,7 @@ var Ct = {
2007
2007
  children: [
2008
2008
  /* @__PURE__ */ p(se, {
2009
2009
  size: 15,
2010
- className: `shrink-0 transition-transform duration-200 ${l ? "rotate-180" : ""} ${_ ? "text-zinc-400" : "text-slate-500"}`
2010
+ className: `shrink-0 transition-transform duration-200 ${u ? "rotate-180" : ""} ${_ ? "text-zinc-400" : "text-slate-500"}`
2011
2011
  }),
2012
2012
  /* @__PURE__ */ p("span", {
2013
2013
  className: `text-xs font-bold uppercase tracking-wider truncate ${_ ? "text-zinc-300" : "text-slate-600"}`,
@@ -2024,36 +2024,36 @@ var Ct = {
2024
2024
  ]
2025
2025
  }), /* @__PURE__ */ m("span", {
2026
2026
  className: "flex items-center gap-2 shrink-0",
2027
- children: [s > 0 && /* @__PURE__ */ p("span", {
2027
+ children: [s && /* @__PURE__ */ p("span", {
2028
2028
  className: "text-[13px] font-bold tabular-nums",
2029
2029
  style: { color: R },
2030
- children: n ? "Included" : `+ ${X(s)}`
2030
+ children: n ? "Included" : c > 0 ? `+ ${X(c)}` : "Free"
2031
2031
  }), (r > 0 || i > 0) && /* @__PURE__ */ p("span", {
2032
2032
  className: `text-[11px] font-semibold px-2 py-0.5 rounded-full ${a ? "bg-amber-100 text-amber-700" : i > 0 ? _ ? "bg-emerald-950/60 text-emerald-300" : "bg-emerald-50 text-emerald-700" : _ ? "bg-zinc-800 text-zinc-300" : "bg-slate-100 text-slate-600"}`,
2033
2033
  children: r > 0 ? `${i}/${r} chosen` : `${i} chosen`
2034
2034
  })]
2035
2035
  })]
2036
2036
  }), /* @__PURE__ */ p("div", {
2037
- className: l ? "space-y-2" : "hidden",
2037
+ className: u ? "space-y-2" : "hidden",
2038
2038
  children: (e.options || []).map((e) => {
2039
2039
  if (e.options?.length) return /* @__PURE__ */ p("div", {
2040
2040
  className: "pl-3",
2041
- children: lt(e, u, c)
2041
+ children: ut(e, d, l)
2042
2042
  }, e.name);
2043
- let t = B.includes(e.name), n = a && !t;
2043
+ let t = Le(e), n = B.includes(t), r = a && !n;
2044
2044
  return /* @__PURE__ */ m("label", {
2045
- part: t ? "addon addon-selected" : "addon",
2046
- className: `p-3.5 rounded-2xl border flex items-center gap-3 transition-all ${n ? "opacity-50 cursor-not-allowed" : "cursor-pointer"} ${t ? "" : _ ? "border-zinc-800 bg-zinc-900 hover:border-zinc-700" : "border-slate-200 bg-white hover:border-slate-300"}`,
2047
- style: t ? {
2045
+ part: n ? "addon addon-selected" : "addon",
2046
+ className: `p-3.5 rounded-2xl border flex items-center gap-3 transition-all ${r ? "opacity-50 cursor-not-allowed" : "cursor-pointer"} ${n ? "" : _ ? "border-zinc-800 bg-zinc-900 hover:border-zinc-700" : "border-slate-200 bg-white hover:border-slate-300"}`,
2047
+ style: n ? {
2048
2048
  borderColor: R,
2049
2049
  backgroundColor: `color-mix(in srgb, ${R} ${_ ? 16 : 6}%, transparent)`
2050
2050
  } : void 0,
2051
2051
  children: [
2052
2052
  /* @__PURE__ */ p("input", {
2053
2053
  type: "checkbox",
2054
- checked: t,
2055
- disabled: n,
2056
- onChange: () => Be(e.name, u),
2054
+ checked: n,
2055
+ disabled: r,
2056
+ onChange: () => Ve(t, d),
2057
2057
  className: "w-4 h-4 rounded cursor-pointer shrink-0 disabled:cursor-not-allowed",
2058
2058
  style: { accentColor: R }
2059
2059
  }),
@@ -2064,17 +2064,17 @@ var Ct = {
2064
2064
  /* @__PURE__ */ p("span", {
2065
2065
  className: "shrink-0 text-[13px] font-bold tabular-nums",
2066
2066
  style: { color: R },
2067
- children: c ? "Included" : Number(e.price) > 0 ? `+ ${X(Number(e.price))}` : "Free"
2067
+ children: l ? "Included" : Number(e.price) > 0 ? `+ ${X(Number(e.price))}` : "Free"
2068
2068
  })
2069
2069
  ]
2070
2070
  }, e.name);
2071
2071
  })
2072
2072
  })]
2073
2073
  }, e.name);
2074
- }, ut = Number(S?.price) || 0, dt = H * W.length, pt = ut + ct + dt, $ = w ? [] : C || [], bt = St($, T.discount_code), Ct = bt ? vt(bt, pt) : 0, Et = yt($, pt), Dt = pt - Ct, Ot = S ? Dt > 0 ? X(Dt) : "Free" : null;
2074
+ }, dt = Number(S?.price) || 0, pt = U * G.length, $ = dt + lt + pt, bt = w ? [] : C || [], Ct = St(bt, T.discount_code), Et = Ct ? vt(Ct, $) : 0, Dt = yt(bt, $), Ot = $ - Et, kt = S ? Ot > 0 ? X(Ot) : "Free" : null;
2075
2075
  s(() => {
2076
- if (_e || w || pt <= 0) return;
2077
- let e = Et?.code || "";
2076
+ if (_e || w || $ <= 0) return;
2077
+ let e = Dt?.code || "";
2078
2078
  (T.discount_code || "") !== e && E((t) => ({
2079
2079
  ...t,
2080
2080
  discount_code: e
@@ -2082,31 +2082,31 @@ var Ct = {
2082
2082
  }, [
2083
2083
  _e,
2084
2084
  w,
2085
- pt,
2086
- Et?.code,
2085
+ $,
2086
+ Dt?.code,
2087
2087
  T.discount_code
2088
2088
  ]);
2089
- let kt = u(S?.id);
2089
+ let At = u(S?.id);
2090
2090
  s(() => {
2091
- kt.current !== S?.id && (kt.current = S?.id, ve(!1), ge(null), E((e) => e.discount_code ? {
2091
+ At.current !== S?.id && (At.current = S?.id, ve(!1), ge(null), E((e) => e.discount_code ? {
2092
2092
  ...e,
2093
2093
  discount_code: ""
2094
2094
  } : e));
2095
2095
  }, [S?.id]);
2096
- let At = (e) => {
2096
+ let jt = (e) => {
2097
2097
  ve(!0), ge(null), me(""), E((t) => ({
2098
2098
  ...t,
2099
2099
  discount_code: e
2100
2100
  }));
2101
- }, jt = () => {
2101
+ }, Mt = () => {
2102
2102
  let e = pe.trim();
2103
- if (!e) return At("");
2104
- let t = St($, e);
2103
+ if (!e) return jt("");
2104
+ let t = St(bt, e);
2105
2105
  if (!t) {
2106
2106
  ve(!0), ge("That code is not valid for this event.");
2107
2107
  return;
2108
2108
  }
2109
- At(t.code);
2109
+ jt(t.code);
2110
2110
  };
2111
2111
  return /* @__PURE__ */ m("div", {
2112
2112
  part: "form-page",
@@ -2122,14 +2122,14 @@ var Ct = {
2122
2122
  type: "button",
2123
2123
  onClick: n,
2124
2124
  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 ${_ ? "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)]"}`,
2125
- children: [/* @__PURE__ */ p(M, { size: 16 }), /* @__PURE__ */ p("span", { children: "All forms" })]
2125
+ children: [/* @__PURE__ */ p(ne, { size: 16 }), /* @__PURE__ */ p("span", { children: "All forms" })]
2126
2126
  }), /* @__PURE__ */ m("div", {
2127
2127
  className: "flex items-center gap-2 min-w-0",
2128
2128
  children: [S && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
2129
2129
  part: "form-type-name",
2130
- title: rt,
2130
+ title: at,
2131
2131
  className: `hidden sm:inline-block truncate max-w-[16rem] text-xs font-semibold px-3 py-1.5 rounded-full ${_ ? "bg-zinc-800 text-zinc-200" : "bg-slate-100 text-slate-700"}`,
2132
- children: rt
2132
+ children: at
2133
2133
  }), !w && /* @__PURE__ */ p("span", {
2134
2134
  part: "form-type-price",
2135
2135
  className: "shrink-0 text-xs font-bold px-3 py-1.5 rounded-full tabular-nums",
@@ -2137,7 +2137,7 @@ var Ct = {
2137
2137
  backgroundColor: `color-mix(in srgb, ${R} 12%, transparent)`,
2138
2138
  color: R
2139
2139
  },
2140
- children: Ot
2140
+ children: kt
2141
2141
  })] }), i === "popup" && /* @__PURE__ */ m("div", {
2142
2142
  className: `flex items-center gap-1.5 ml-2 border-l pl-2 ${_ ? "border-zinc-700" : "border-slate-200"}`,
2143
2143
  children: [/* @__PURE__ */ p("button", {
@@ -2157,7 +2157,7 @@ var Ct = {
2157
2157
  className: "w-full flex-1 overflow-y-auto",
2158
2158
  children: /* @__PURE__ */ m("form", {
2159
2159
  part: "form",
2160
- onSubmit: tt,
2160
+ onSubmit: rt,
2161
2161
  className: "max-w-3xl mx-auto w-full px-4 sm:px-6 py-8 sm:py-10 space-y-5",
2162
2162
  children: [
2163
2163
  /* @__PURE__ */ m("div", {
@@ -2171,7 +2171,7 @@ var Ct = {
2171
2171
  part: "form-title",
2172
2172
  className: `mt-1.5 text-2xl sm:text-3xl font-bold tracking-tight ${_ ? "text-white" : "text-slate-900"}`,
2173
2173
  style: Q,
2174
- children: rt
2174
+ children: at
2175
2175
  })]
2176
2176
  }),
2177
2177
  h && Object.keys(h).length > 0 && /* @__PURE__ */ m("div", {
@@ -2215,7 +2215,7 @@ var Ct = {
2215
2215
  /* @__PURE__ */ p("div", {
2216
2216
  part: "form-card",
2217
2217
  className: `rounded-3xl border overflow-hidden divide-y ${_ ? "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)]"}`,
2218
- children: Me.map((e) => Ze(e))
2218
+ children: Me.map((e) => Qe(e))
2219
2219
  }),
2220
2220
  !w && Ne.length > 0 && /* @__PURE__ */ m("div", {
2221
2221
  part: "addons-card",
@@ -2254,7 +2254,7 @@ var Ct = {
2254
2254
  /* @__PURE__ */ p("input", {
2255
2255
  type: "checkbox",
2256
2256
  checked: t,
2257
- onChange: () => Be(e.name),
2257
+ onChange: () => Ve(e.name),
2258
2258
  className: "w-4 h-4 rounded cursor-pointer shrink-0",
2259
2259
  style: { accentColor: R }
2260
2260
  }),
@@ -2270,7 +2270,7 @@ var Ct = {
2270
2270
  ]
2271
2271
  }, e.name);
2272
2272
  }),
2273
- Fe.map((e) => lt(e)),
2273
+ Fe.map((e) => ut(e)),
2274
2274
  Ie.map((e) => /* @__PURE__ */ m("div", {
2275
2275
  part: "addon addon-included",
2276
2276
  className: `p-3.5 rounded-2xl border flex items-center gap-3 ${_ ? "border-zinc-800 bg-zinc-950/60" : "border-slate-200 bg-slate-50"}`,
@@ -2292,7 +2292,7 @@ var Ct = {
2292
2292
  ]
2293
2293
  })]
2294
2294
  }),
2295
- Ve && /* @__PURE__ */ m("div", {
2295
+ V && /* @__PURE__ */ m("div", {
2296
2296
  part: "accompany-card",
2297
2297
  className: `rounded-3xl border overflow-hidden ${_ ? "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)]"}`,
2298
2298
  children: [/* @__PURE__ */ m("div", {
@@ -2313,12 +2313,12 @@ var Ct = {
2313
2313
  children: "Accompanying people"
2314
2314
  }), /* @__PURE__ */ m("p", {
2315
2315
  className: `text-xs ${_ ? "text-zinc-400" : "text-slate-500"}`,
2316
- children: [H > 0 ? `${X(H)} per guest` : "No extra charge", U ? ` · up to ${U}` : ""]
2316
+ children: [U > 0 ? `${X(U)} per guest` : "No extra charge", W ? ` · up to ${W}` : ""]
2317
2317
  })]
2318
2318
  })]
2319
2319
  }), /* @__PURE__ */ m("div", {
2320
2320
  className: "px-5 sm:px-8 pb-5 sm:pb-6 space-y-3",
2321
- children: [W.map((e, t) => /* @__PURE__ */ m("div", {
2321
+ children: [G.map((e, t) => /* @__PURE__ */ m("div", {
2322
2322
  part: "accompany-guest",
2323
2323
  className: `rounded-2xl border p-4 ${_ ? "border-zinc-800 bg-zinc-950/60" : "border-slate-200 bg-slate-50/70"}`,
2324
2324
  children: [/* @__PURE__ */ m("div", {
@@ -2328,29 +2328,29 @@ var Ct = {
2328
2328
  children: ["Guest ", t + 1]
2329
2329
  }), /* @__PURE__ */ p("button", {
2330
2330
  type: "button",
2331
- onClick: () => Ke(t),
2331
+ onClick: () => K(t),
2332
2332
  title: "Remove guest",
2333
2333
  className: `shrink-0 p-1.5 rounded-lg cursor-pointer transition-colors ${_ ? "text-zinc-500 hover:text-red-400" : "text-slate-400 hover:text-red-500"}`,
2334
2334
  children: /* @__PURE__ */ p(it, { size: 15 })
2335
2335
  })]
2336
2336
  }), /* @__PURE__ */ p("div", {
2337
2337
  className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
2338
- children: V.map((n) => $e(n, e, t))
2338
+ children: H.map((n) => tt(n, e, t))
2339
2339
  })]
2340
2340
  }, t)), /* @__PURE__ */ m("button", {
2341
2341
  type: "button",
2342
- onClick: Ge,
2343
- disabled: !G,
2342
+ onClick: Ke,
2343
+ disabled: !Ue,
2344
2344
  style: {
2345
2345
  borderColor: R,
2346
2346
  color: R
2347
2347
  },
2348
2348
  className: "w-full h-12 rounded-2xl border border-dashed text-sm font-semibold flex items-center justify-center gap-2 transition-opacity hover:opacity-80 cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",
2349
- children: [/* @__PURE__ */ p(st, { size: 16 }), G ? "Add guest" : `Limit of ${U} reached`]
2349
+ children: [/* @__PURE__ */ p(st, { size: 16 }), Ue ? "Add guest" : `Limit of ${W} reached`]
2350
2350
  })]
2351
2351
  })]
2352
2352
  }),
2353
- !w && pt > 0 && /* @__PURE__ */ m("div", {
2353
+ !w && $ > 0 && /* @__PURE__ */ m("div", {
2354
2354
  part: "summary-card",
2355
2355
  className: `rounded-3xl border overflow-hidden ${_ ? "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)]"}`,
2356
2356
  children: [
@@ -2383,50 +2383,50 @@ var Ct = {
2383
2383
  className: "flex items-center justify-between gap-3",
2384
2384
  children: [/* @__PURE__ */ p("span", {
2385
2385
  className: `min-w-0 truncate ${_ ? "text-zinc-400" : "text-slate-500"}`,
2386
- children: rt
2386
+ children: at
2387
2387
  }), /* @__PURE__ */ p("span", {
2388
2388
  className: `shrink-0 tabular-nums font-medium ${_ ? "text-zinc-200" : "text-slate-700"}`,
2389
- children: X(ut)
2389
+ children: X(dt)
2390
2390
  })]
2391
2391
  }),
2392
- ct > 0 && /* @__PURE__ */ m("div", {
2392
+ lt > 0 && /* @__PURE__ */ m("div", {
2393
2393
  className: "flex items-center justify-between gap-3",
2394
2394
  children: [/* @__PURE__ */ p("span", {
2395
2395
  className: _ ? "text-zinc-400" : "text-slate-500",
2396
2396
  children: "Add-ons"
2397
2397
  }), /* @__PURE__ */ p("span", {
2398
2398
  className: `shrink-0 tabular-nums font-medium ${_ ? "text-zinc-200" : "text-slate-700"}`,
2399
- children: X(ct)
2399
+ children: X(lt)
2400
2400
  })]
2401
2401
  }),
2402
- dt > 0 && /* @__PURE__ */ m("div", {
2402
+ pt > 0 && /* @__PURE__ */ m("div", {
2403
2403
  className: "flex items-center justify-between gap-3",
2404
2404
  children: [/* @__PURE__ */ m("span", {
2405
2405
  className: _ ? "text-zinc-400" : "text-slate-500",
2406
2406
  children: [
2407
2407
  "Accompanying ",
2408
- W.length === 1 ? "person" : "people",
2408
+ G.length === 1 ? "person" : "people",
2409
2409
  " x ",
2410
- W.length
2410
+ G.length
2411
2411
  ]
2412
2412
  }), /* @__PURE__ */ p("span", {
2413
2413
  className: `shrink-0 tabular-nums font-medium ${_ ? "text-zinc-200" : "text-slate-700"}`,
2414
- children: X(dt)
2414
+ children: X(pt)
2415
2415
  })]
2416
2416
  }),
2417
- Ct > 0 && /* @__PURE__ */ m("div", {
2417
+ Et > 0 && /* @__PURE__ */ m("div", {
2418
2418
  part: "summary-discount",
2419
2419
  className: `flex items-center justify-between gap-3 pt-2.5 border-t border-dashed ${_ ? "border-zinc-800" : "border-slate-200"}`,
2420
2420
  children: [/* @__PURE__ */ m("span", {
2421
2421
  className: `min-w-0 truncate font-semibold ${_ ? "text-emerald-400" : "text-emerald-600"}`,
2422
2422
  children: [
2423
2423
  "Discount (",
2424
- bt.code,
2424
+ Ct.code,
2425
2425
  ")"
2426
2426
  ]
2427
2427
  }), /* @__PURE__ */ m("span", {
2428
2428
  className: `shrink-0 tabular-nums font-semibold ${_ ? "text-emerald-400" : "text-emerald-600"}`,
2429
- children: ["- ", X(Ct)]
2429
+ children: ["- ", X(Et)]
2430
2430
  })]
2431
2431
  })
2432
2432
  ]
@@ -2435,7 +2435,7 @@ var Ct = {
2435
2435
  part: "coupon",
2436
2436
  className: "px-5 sm:px-8 pb-5",
2437
2437
  children: [
2438
- bt ? /* @__PURE__ */ m("div", {
2438
+ Ct ? /* @__PURE__ */ m("div", {
2439
2439
  className: `flex items-center gap-3 p-3.5 rounded-2xl border border-dashed ${_ ? "border-emerald-900 bg-emerald-950/30" : "border-emerald-200 bg-emerald-50/60"}`,
2440
2440
  children: [
2441
2441
  /* @__PURE__ */ p(ae, {
@@ -2448,21 +2448,21 @@ var Ct = {
2448
2448
  className: `text-sm font-semibold ${_ ? "text-emerald-200" : "text-emerald-800"}`,
2449
2449
  children: [/* @__PURE__ */ p("span", {
2450
2450
  className: "font-mono tracking-wider",
2451
- children: bt.code
2451
+ children: Ct.code
2452
2452
  }), " applied"]
2453
2453
  }), /* @__PURE__ */ m("p", {
2454
2454
  className: `text-xs mt-0.5 ${_ ? "text-emerald-500/80" : "text-emerald-700/80"}`,
2455
2455
  children: [
2456
- xt(bt, S?.currency),
2456
+ xt(Ct, S?.currency),
2457
2457
  " — you save ",
2458
- X(Ct),
2458
+ X(Et),
2459
2459
  "."
2460
2460
  ]
2461
2461
  })]
2462
2462
  }),
2463
2463
  /* @__PURE__ */ p("button", {
2464
2464
  type: "button",
2465
- onClick: () => At(""),
2465
+ onClick: () => jt(""),
2466
2466
  className: `shrink-0 text-xs font-semibold px-3 py-1.5 rounded-full border cursor-pointer transition-colors ${_ ? "border-zinc-700 text-zinc-300 hover:bg-zinc-800" : "border-slate-200 bg-white text-slate-600 hover:bg-slate-50"}`,
2467
2467
  children: "Remove"
2468
2468
  })
@@ -2477,14 +2477,14 @@ var Ct = {
2477
2477
  me(e.target.value), ge(null);
2478
2478
  },
2479
2479
  onKeyDown: (e) => {
2480
- e.key === "Enter" && (e.preventDefault(), jt());
2480
+ e.key === "Enter" && (e.preventDefault(), Mt());
2481
2481
  },
2482
2482
  placeholder: "Have a coupon code?",
2483
2483
  "aria-label": "Coupon code",
2484
2484
  className: `flex-1 h-11 px-4 text-sm rounded-xl border uppercase tracking-wider transition-all focus:outline-none focus:border-(--vx-accent) focus:ring-4 focus:ring-[color-mix(in_srgb,var(--vx-accent)_15%,transparent)] ${_ ? "bg-zinc-950 border-zinc-700 text-white placeholder:text-zinc-500 placeholder:normal-case" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400 placeholder:normal-case"}`
2485
2485
  }), /* @__PURE__ */ p("button", {
2486
2486
  type: "button",
2487
- onClick: jt,
2487
+ onClick: Mt,
2488
2488
  className: `shrink-0 h-11 px-6 text-sm font-semibold rounded-xl border cursor-pointer transition-colors ${_ ? "border-zinc-700 text-zinc-200 hover:bg-zinc-800" : "border-slate-200 bg-white text-slate-700 hover:bg-slate-50"}`,
2489
2489
  children: "Apply"
2490
2490
  })]
@@ -2495,16 +2495,16 @@ var Ct = {
2495
2495
  className: "mt-2 text-xs font-medium text-red-500",
2496
2496
  children: he
2497
2497
  }),
2498
- !bt && $.length > 0 && /* @__PURE__ */ m("div", {
2498
+ !Ct && bt.length > 0 && /* @__PURE__ */ m("div", {
2499
2499
  className: "mt-3",
2500
2500
  children: [/* @__PURE__ */ p("p", {
2501
2501
  className: `text-[11px] font-semibold uppercase tracking-wider ${_ ? "text-zinc-500" : "text-slate-400"}`,
2502
2502
  children: "Running offers"
2503
2503
  }), /* @__PURE__ */ p("div", {
2504
2504
  className: "mt-2 flex flex-wrap gap-2",
2505
- children: $.map((e) => /* @__PURE__ */ m("button", {
2505
+ children: bt.map((e) => /* @__PURE__ */ m("button", {
2506
2506
  type: "button",
2507
- onClick: () => At(e.code),
2507
+ onClick: () => jt(e.code),
2508
2508
  className: `inline-flex items-center gap-2 text-xs font-semibold px-3 py-1.5 rounded-full border cursor-pointer transition-colors ${_ ? "bg-zinc-950 border-emerald-900 text-emerald-200 hover:bg-emerald-950/40" : "bg-white border-emerald-200 text-emerald-700 hover:bg-emerald-50"}`,
2509
2509
  children: [
2510
2510
  /* @__PURE__ */ p("span", {
@@ -2531,7 +2531,7 @@ var Ct = {
2531
2531
  part: "summary-total",
2532
2532
  className: "text-lg font-bold tabular-nums",
2533
2533
  style: { color: R },
2534
- children: X(Dt)
2534
+ children: X(Ot)
2535
2535
  })]
2536
2536
  })
2537
2537
  ]
@@ -2554,7 +2554,7 @@ var Ct = {
2554
2554
  boxShadow: `0 12px 28px -12px color-mix(in srgb, ${R} 70%, transparent)`
2555
2555
  },
2556
2556
  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",
2557
- children: [/* @__PURE__ */ p("span", { children: w ? "Submit Abstract" : "Complete Registration" }), /* @__PURE__ */ p(ne, {
2557
+ children: [/* @__PURE__ */ p("span", { children: w ? "Submit Abstract" : "Complete Registration" }), /* @__PURE__ */ p(N, {
2558
2558
  size: 18,
2559
2559
  className: "transition-transform group-hover:translate-x-0.5"
2560
2560
  })]
@@ -2635,7 +2635,7 @@ var Ct = {
2635
2635
  size: 15,
2636
2636
  className: "shrink-0",
2637
2637
  style: { color: o }
2638
- }) : /* @__PURE__ */ p(at, {
2638
+ }) : /* @__PURE__ */ p(ot, {
2639
2639
  size: 15,
2640
2640
  className: "shrink-0"
2641
2641
  }),
@@ -2717,10 +2717,13 @@ var Ct = {
2717
2717
  label: [e.type || "Registration", e.tier].filter(Boolean).join(" · "),
2718
2718
  amount: e.base_amount
2719
2719
  });
2720
- for (let n of e?.items || []) t.push({
2721
- label: n.name,
2722
- amount: n.price
2723
- });
2720
+ for (let n of e?.items || []) {
2721
+ let e = Array.isArray(n.options) ? n.options.filter(Boolean) : [];
2722
+ t.push({
2723
+ label: e.length ? `${n.name} (${e.join(", ")})` : n.name,
2724
+ amount: n.price
2725
+ });
2726
+ }
2724
2727
  return e?.accompany?.count && t.push({
2725
2728
  label: `Accompanying guests × ${e.accompany.count}`,
2726
2729
  amount: e.accompany.total
@@ -2730,7 +2733,7 @@ var Ct = {
2730
2733
  sign: "−"
2731
2734
  }), t;
2732
2735
  }, Mt = ({ apiClient: e, baseUrl: t = "", storage: n, logger: r, primaryColor: i, isDark: a = !1, isWidgetPage: o = !1, onEvent: c, onError: l }) => {
2733
- let [u, h] = d(() => n.getToken() ? "profile" : "login"), [g, _] = d(!1), [v, y] = d(!1), [b, x] = d(null), [S, C] = d(null), [w, T] = d(null), [E, D] = d(""), [O, k] = d(""), [ee, te] = d(""), [A, j] = d(""), [N, P] = d(""), [re, ie] = d(""), [oe, se] = d(""), [ce, ue] = d(!1), [L, fe] = d(null), [pe, me] = d({}), [he, ge] = d([]), [_e, R] = d({}), [be, Se] = d(null), [we, Ee] = d(null), [Oe, Ae] = d(null), [je, z] = d(null), [Ne, Fe] = d(!1), [Ie, B] = d(!1), [Re, Be] = d({}), [V, U] = d(!1), [G, He] = d(null), [Ue, We] = d({}), [Ge, Ke] = d({}), [K, J] = d(null), [Je, Y] = d("details"), [Xe, Ze] = d({}), [$e, et] = d(!1);
2736
+ let [u, h] = d(() => n.getToken() ? "profile" : "login"), [g, _] = d(!1), [v, y] = d(!1), [b, x] = d(null), [S, C] = d(null), [w, T] = d(null), [E, D] = d(""), [O, k] = d(""), [ee, te] = d(""), [A, j] = d(""), [M, P] = d(""), [re, ie] = d(""), [oe, se] = d(""), [ce, ue] = d(!1), [L, fe] = d(null), [pe, me] = d({}), [he, ge] = d([]), [_e, R] = d({}), [be, Se] = d(null), [we, Ee] = d(null), [Oe, Ae] = d(null), [je, z] = d(null), [Ne, Fe] = d(!1), [Ie, B] = d(!1), [Re, Be] = d({}), [V, U] = d(!1), [G, He] = d(null), [Ue, We] = d({}), [Ge, Ke] = d({}), [K, J] = d(null), [Je, Y] = d("details"), [Xe, Ze] = d({}), [$e, et] = d(!1);
2734
2737
  s(() => {
2735
2738
  let e = n.getToken();
2736
2739
  e && tt(e);
@@ -2782,7 +2785,7 @@ var Ct = {
2782
2785
  }) : Object.entries(a).forEach(([e, t]) => {
2783
2786
  e.toLowerCase() !== "token" && (p[e] = t);
2784
2787
  }), me(p), f > 0 && Fe(!0);
2785
- let v = At(a.addons?.items || []).filter((e) => e.purchased).map((e) => e.name);
2788
+ let v = At(a.addons?.items || []).filter((e) => e.purchased).map((e) => e.label ?? e.name);
2786
2789
  u?.selected_items && Array.isArray(u.selected_items) && u.selected_items.forEach((e) => {
2787
2790
  let t = typeof e == "string" ? e : e?.name;
2788
2791
  t && !v.includes(t) && v.push(t);
@@ -2822,7 +2825,7 @@ var Ct = {
2822
2825
  } finally {
2823
2826
  _(!1);
2824
2827
  }
2825
- }, X = async (t) => {
2828
+ }, at = async (t) => {
2826
2829
  t.preventDefault();
2827
2830
  let n = (A || E).trim();
2828
2831
  if (!n) {
@@ -2843,14 +2846,14 @@ var Ct = {
2843
2846
  } finally {
2844
2847
  ue(!1);
2845
2848
  }
2846
- }, ot = async (t) => {
2849
+ }, X = async (t) => {
2847
2850
  t.preventDefault();
2848
2851
  let i = (A || E).trim();
2849
2852
  if (!i) {
2850
2853
  C("Please enter your registration number or email.");
2851
2854
  return;
2852
2855
  }
2853
- if (!N.trim()) {
2856
+ if (!M.trim()) {
2854
2857
  C("Please enter the verification code sent to your email.");
2855
2858
  return;
2856
2859
  }
@@ -2866,7 +2869,7 @@ var Ct = {
2866
2869
  try {
2867
2870
  let t = await e.portalConfirmPasswordReset({
2868
2871
  identifier: i,
2869
- code: N.trim(),
2872
+ code: M.trim(),
2870
2873
  new_password: re
2871
2874
  }), r = t?.data?.token || t?.token;
2872
2875
  (t?.data?.name || t?.name) && te(t.data?.name || t.name), c?.("password_reset_success", {
@@ -2976,8 +2979,8 @@ var Ct = {
2976
2979
  }, ft = (e, t) => {
2977
2980
  t || ge((t) => t.includes(e) ? t.filter((t) => t !== e) : pt(e, t) ? t : [...t, e]);
2978
2981
  }, pt = (e, t = he) => {
2979
- let n = (e) => e?.options?.length ? e.options.some(n) : t.includes(e?.name), r = (t) => (t || []).some((t) => {
2980
- if (!t?.options?.length || !At([t]).some((t) => t.name === e)) return !1;
2982
+ let n = (e) => e?.options?.length ? e.options.some(n) : t.includes(e?.label ?? e?.name), r = (t) => (t || []).some((t) => {
2983
+ if (!t?.options?.length || !At([t]).some((t) => (t.label ?? t.name) === e)) return !1;
2981
2984
  let i = Number(t.max) || 0;
2982
2985
  return i && t.options.filter(n).length >= i || r(t.options);
2983
2986
  });
@@ -3405,7 +3408,7 @@ var Ct = {
3405
3408
  }
3406
3409
  }), /* @__PURE__ */ m("div", {
3407
3410
  className: `inline-flex items-center gap-1.5 py-1.5 px-3 rounded-lg text-xs font-semibold border transition-all shadow-2xs ${a ? "border-zinc-700 hover:border-zinc-600 text-zinc-200 bg-zinc-800 hover:bg-zinc-750" : "border-gray-300 hover:border-gray-400 text-gray-800 bg-white hover:bg-gray-50"}`,
3408
- children: [/* @__PURE__ */ p(at, {
3411
+ children: [/* @__PURE__ */ p(ot, {
3409
3412
  size: 13,
3410
3413
  style: { color: i }
3411
3414
  }), /* @__PURE__ */ p("span", { children: r ? "Uploading..." : n ? "Replace File" : "Choose File" })]
@@ -3494,9 +3497,9 @@ var Ct = {
3494
3497
  });
3495
3498
  }
3496
3499
  if (u === "profile") {
3497
- let r = L?.registration || {}, s = L?.editable_fields || [], l = L?.locked_fields || [], u = (Array.isArray(L?.payment) ? L.payment : L?.payment ? [L.payment] : []).filter((e) => e.state !== "not_required"), d = u.filter((e) => e.state === "pending"), h = u[0]?.currency || "", g = (e) => e.reduce((e, t) => e + Number(t.amount || 0), 0), _ = L?.addons?.items || [], y = (e, t = !1) => {
3500
+ let r = L?.registration || {}, s = L?.editable_fields || [], l = L?.locked_fields || [], u = (Array.isArray(L?.payment) ? L.payment : L?.payment ? [L.payment] : []).filter((e) => e.state !== "not_required"), d = u.filter((e) => e.state === "pending"), h = u[0]?.currency || "", g = (e) => e.reduce((e, t) => e + Number(t.amount || 0), 0), _ = L?.addons?.items || [], y = At(_).filter((e) => e.purchased).map((e) => e.label ?? e.name), x = he.some((e) => !y.includes(e)), E = (e, t = !1) => {
3498
3501
  if (e?.options?.length) {
3499
- let n = e.price == null || e.price === "" ? 0 : Number(e.price) || 0;
3502
+ let n = e.price != null && e.price !== "", r = n && Number(e.price) || 0;
3500
3503
  return /* @__PURE__ */ m("div", {
3501
3504
  className: "space-y-2",
3502
3505
  children: [/* @__PURE__ */ m("div", {
@@ -3507,30 +3510,30 @@ var Ct = {
3507
3510
  className: `ml-2 font-medium normal-case tracking-normal ${a ? "text-zinc-500" : "text-slate-400"}`,
3508
3511
  children: ["up to ", e.max]
3509
3512
  })]
3510
- }), n > 0 && /* @__PURE__ */ p("span", {
3513
+ }), n && /* @__PURE__ */ p("span", {
3511
3514
  className: "text-[13px] font-bold tabular-nums shrink-0",
3512
3515
  style: { color: i },
3513
- children: t ? "Included" : `${e.currency} ${n.toLocaleString()}`
3516
+ children: t ? "Included" : r > 0 ? `${e.currency} ${r.toLocaleString()}` : "Free"
3514
3517
  })]
3515
3518
  }), /* @__PURE__ */ p("div", {
3516
3519
  className: "space-y-2 pl-3",
3517
- children: e.options.map((e) => y(e, t || n > 0))
3520
+ children: e.options.map((e) => E(e, t || n))
3518
3521
  })]
3519
3522
  }, e.name);
3520
3523
  }
3521
- let n = !!e.purchased, r = he.includes(e.name), o = !n && !r && pt(e.name);
3524
+ let n = e.label ?? e.name, r = !!e.purchased, o = he.includes(n), s = !r && !o && pt(n);
3522
3525
  return /* @__PURE__ */ m("label", {
3523
- className: `p-3.5 rounded-2xl border flex items-center gap-3 transition-all ${o ? "opacity-50" : ""} ${n ? a ? "bg-zinc-950/60 border-zinc-800 cursor-default" : "bg-slate-50 border-slate-200 cursor-default" : r ? "cursor-pointer" : a ? "border-zinc-800 bg-zinc-900 hover:border-zinc-700 cursor-pointer" : "border-slate-200 bg-white hover:border-slate-300 cursor-pointer"}`,
3524
- style: r && !n ? {
3526
+ className: `p-3.5 rounded-2xl border flex items-center gap-3 transition-all ${s ? "opacity-50" : ""} ${r ? a ? "bg-zinc-950/60 border-zinc-800 cursor-default" : "bg-slate-50 border-slate-200 cursor-default" : o ? "cursor-pointer" : a ? "border-zinc-800 bg-zinc-900 hover:border-zinc-700 cursor-pointer" : "border-slate-200 bg-white hover:border-slate-300 cursor-pointer"}`,
3527
+ style: o && !r ? {
3525
3528
  borderColor: i,
3526
3529
  backgroundColor: `color-mix(in srgb, ${i} ${a ? 16 : 6}%, transparent)`
3527
3530
  } : void 0,
3528
3531
  children: [
3529
3532
  /* @__PURE__ */ p("input", {
3530
3533
  type: "checkbox",
3531
- checked: r,
3532
- disabled: n || o,
3533
- onChange: () => ft(e.name, n),
3534
+ checked: o,
3535
+ disabled: r || s,
3536
+ onChange: () => ft(n, r),
3534
3537
  className: "w-4 h-4 rounded cursor-pointer shrink-0 disabled:cursor-default",
3535
3538
  style: { accentColor: i }
3536
3539
  }),
@@ -3545,13 +3548,13 @@ var Ct = {
3545
3548
  children: t ? "Included" : `${e.currency} ${Number(e.price).toLocaleString()}`
3546
3549
  })]
3547
3550
  }),
3548
- n && /* @__PURE__ */ m("span", {
3551
+ r && /* @__PURE__ */ m("span", {
3549
3552
  className: `px-2.5 py-1 rounded-full text-[11px] font-semibold flex items-center gap-1 shrink-0 ${a ? "bg-emerald-950/70 text-emerald-300" : "bg-emerald-50 text-emerald-700"}`,
3550
3553
  children: [/* @__PURE__ */ p(ae, { size: 12 }), " Purchased"]
3551
3554
  })
3552
3555
  ]
3553
3556
  }, e.name);
3554
- }, x = L?.badge || null, E = L?.accompanying || [], D = L?.accompany_fields || [], O = `w-full px-3.5 py-2.5 text-sm font-medium rounded-xl border transition-all focus:outline-none ${a ? "bg-zinc-900 border-zinc-700 text-white placeholder:text-zinc-500" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400"}`, k = L?.review_submission || null, te = ee || "Attendee", A = te.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase()).join("") || "A", j = `rounded-3xl border p-5 sm:p-6 ${a ? "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)]"}`, M = a ? "text-zinc-400" : "text-slate-500", N = `text-base font-semibold tracking-tight ${a ? "text-white" : "text-slate-900"}`, ne = [
3557
+ }, D = L?.badge || null, O = L?.accompanying || [], k = L?.accompany_fields || [], te = `w-full px-3.5 py-2.5 text-sm font-medium rounded-xl border transition-all focus:outline-none ${a ? "bg-zinc-900 border-zinc-700 text-white placeholder:text-zinc-500" : "bg-white border-slate-200 text-slate-900 placeholder:text-slate-400"}`, A = L?.review_submission || null, j = ee || "Attendee", ne = j.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase()).join("") || "A", M = `rounded-3xl border p-5 sm:p-6 ${a ? "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)]"}`, N = a ? "text-zinc-400" : "text-slate-500", P = `text-base font-semibold tracking-tight ${a ? "text-white" : "text-slate-900"}`, F = [
3555
3558
  {
3556
3559
  label: "Registration no.",
3557
3560
  value: r.registration_number || "N/A",
@@ -3566,7 +3569,7 @@ var Ct = {
3566
3569
  value: d.length ? `Pending · ${h} ${g(d).toLocaleString()}` : `Paid · ${h} ${g(u).toLocaleString()}`,
3567
3570
  capitalize: !0
3568
3571
  }] : []
3569
- ], P = [
3572
+ ], re = [
3570
3573
  {
3571
3574
  key: "details",
3572
3575
  label: "Details",
@@ -3579,17 +3582,17 @@ var Ct = {
3579
3582
  icon: nt,
3580
3583
  count: At(_).length
3581
3584
  }] : [],
3582
- ...x ? [{
3585
+ ...D ? [{
3583
3586
  key: "badge",
3584
3587
  label: "Badge",
3585
3588
  icon: ke,
3586
3589
  count: 0
3587
3590
  }] : [],
3588
- ...E.length > 0 ? [{
3591
+ ...O.length > 0 ? [{
3589
3592
  key: "guests",
3590
3593
  label: "Guests",
3591
3594
  icon: Z,
3592
- count: E.length
3595
+ count: O.length
3593
3596
  }] : [],
3594
3597
  ...u.length > 0 ? [{
3595
3598
  key: "payments",
@@ -3597,13 +3600,13 @@ var Ct = {
3597
3600
  icon: Ye,
3598
3601
  count: u.length
3599
3602
  }] : [],
3600
- ...k ? [{
3603
+ ...A ? [{
3601
3604
  key: "submission",
3602
3605
  label: "Submission",
3603
3606
  icon: Ce,
3604
3607
  count: 0
3605
3608
  }] : []
3606
- ], F = P.some((e) => e.key === Je) ? Je : "details", re = (e) => {
3609
+ ], I = re.some((e) => e.key === Je) ? Je : "details", ie = (e) => {
3607
3610
  Y(e), C(null), T(null);
3608
3611
  };
3609
3612
  return /* @__PURE__ */ m("div", {
@@ -3619,7 +3622,7 @@ var Ct = {
3619
3622
  children: [
3620
3623
  /* @__PURE__ */ m("div", {
3621
3624
  part: "portal-card profile-card",
3622
- className: j,
3625
+ className: M,
3623
3626
  children: [
3624
3627
  /* @__PURE__ */ m("div", {
3625
3628
  className: "flex items-start justify-between gap-3",
@@ -3629,7 +3632,7 @@ var Ct = {
3629
3632
  className: "w-12 h-12 sm:w-14 sm:h-14 rounded-2xl flex items-center justify-center shrink-0 text-base sm:text-lg font-bold text-white",
3630
3633
  style: { background: `linear-gradient(135deg, ${i}, color-mix(in srgb, ${i} 75%, black))` },
3631
3634
  "aria-hidden": "true",
3632
- children: A
3635
+ children: ne
3633
3636
  }), /* @__PURE__ */ m("div", {
3634
3637
  className: "min-w-0",
3635
3638
  children: [/* @__PURE__ */ m("div", {
@@ -3638,13 +3641,13 @@ var Ct = {
3638
3641
  part: "portal-title",
3639
3642
  style: Q,
3640
3643
  className: `text-lg sm:text-xl font-bold tracking-tight break-words ${a ? "text-white" : "text-slate-900"}`,
3641
- children: te
3644
+ children: j
3642
3645
  }), r.status && /* @__PURE__ */ p("span", {
3643
3646
  className: `px-2.5 py-0.5 rounded-full text-[11px] font-semibold capitalize ${a ? "bg-emerald-950/70 text-emerald-300" : "bg-emerald-50 text-emerald-700"}`,
3644
3647
  children: r.status
3645
3648
  })]
3646
3649
  }), /* @__PURE__ */ p("p", {
3647
- className: `text-[13px] mt-0.5 ${M}`,
3650
+ className: `text-[13px] mt-0.5 ${N}`,
3648
3651
  children: "Manage your registration and details"
3649
3652
  })]
3650
3653
  })]
@@ -3661,8 +3664,8 @@ var Ct = {
3661
3664
  })]
3662
3665
  }),
3663
3666
  /* @__PURE__ */ p("dl", {
3664
- className: `mt-5 pt-5 border-t grid grid-cols-2 ${ne.length === 3 ? "sm:grid-cols-3" : "sm:grid-cols-2"} gap-4 ${a ? "border-zinc-800" : "border-slate-100"}`,
3665
- children: ne.map((e) => /* @__PURE__ */ m("div", {
3667
+ className: `mt-5 pt-5 border-t grid grid-cols-2 ${F.length === 3 ? "sm:grid-cols-3" : "sm:grid-cols-2"} gap-4 ${a ? "border-zinc-800" : "border-slate-100"}`,
3668
+ children: F.map((e) => /* @__PURE__ */ m("div", {
3666
3669
  className: "min-w-0",
3667
3670
  children: [/* @__PURE__ */ p("dt", {
3668
3671
  className: `text-[11px] font-semibold uppercase tracking-wider ${a ? "text-zinc-500" : "text-slate-400"}`,
@@ -3684,19 +3687,19 @@ var Ct = {
3684
3687
  })
3685
3688
  ]
3686
3689
  }),
3687
- P.length > 1 && /* @__PURE__ */ p("div", {
3690
+ re.length > 1 && /* @__PURE__ */ p("div", {
3688
3691
  part: "portal-tabs",
3689
3692
  role: "tablist",
3690
3693
  className: `${o ? "" : "sticky top-0"} z-20 flex gap-1 p-1 rounded-2xl border overflow-x-auto backdrop-blur-xl ${a ? "bg-zinc-900/90 border-zinc-800" : "bg-white/90 border-slate-200/80 shadow-[0_1px_2px_rgba(15,23,42,0.04),0_8px_24px_-14px_rgba(15,23,42,0.18)]"}`,
3691
3694
  style: { scrollbarWidth: "none" },
3692
- children: P.map((e) => {
3693
- let t = e.icon, n = e.key === F;
3695
+ children: re.map((e) => {
3696
+ let t = e.icon, n = e.key === I;
3694
3697
  return /* @__PURE__ */ m("button", {
3695
3698
  type: "button",
3696
3699
  role: "tab",
3697
3700
  "aria-selected": n,
3698
3701
  part: `portal-tab${n ? " portal-tab-active" : ""}`,
3699
- onClick: () => re(e.key),
3702
+ onClick: () => ie(e.key),
3700
3703
  className: `flex-1 min-w-fit inline-flex items-center justify-center gap-1.5 h-10 px-3.5 rounded-xl text-[13px] font-semibold whitespace-nowrap transition-all cursor-pointer ${n ? "text-white shadow-sm" : a ? "text-zinc-400 hover:text-white hover:bg-zinc-800" : "text-slate-500 hover:text-slate-900 hover:bg-slate-100"}`,
3701
3704
  style: n ? { background: `linear-gradient(135deg, ${i}, color-mix(in srgb, ${i} 80%, black))` } : void 0,
3702
3705
  children: [
@@ -3710,24 +3713,24 @@ var Ct = {
3710
3713
  }, e.key);
3711
3714
  })
3712
3715
  }),
3713
- (F === "details" || F === "addons") && /* @__PURE__ */ m("form", {
3716
+ (I === "details" || I === "addons") && /* @__PURE__ */ m("form", {
3714
3717
  onSubmit: vt,
3715
3718
  className: "space-y-5",
3716
3719
  children: [
3717
- F === "details" && (s.length === 0 ? /* @__PURE__ */ p("div", {
3718
- className: `${j} text-center text-sm ${M}`,
3720
+ I === "details" && (s.length === 0 ? /* @__PURE__ */ p("div", {
3721
+ className: `${M} text-center text-sm ${N}`,
3719
3722
  children: "No editable fields configured."
3720
3723
  }) : /* @__PURE__ */ m("div", {
3721
3724
  part: "portal-card details-card",
3722
- className: j,
3725
+ className: M,
3723
3726
  children: [/* @__PURE__ */ m("div", {
3724
3727
  className: "flex items-start justify-between gap-3 mb-5",
3725
3728
  children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
3726
- className: N,
3729
+ className: P,
3727
3730
  style: Q,
3728
3731
  children: "Your details"
3729
3732
  }), /* @__PURE__ */ p("p", {
3730
- className: `text-[13px] mt-0.5 ${M}`,
3733
+ className: `text-[13px] mt-0.5 ${N}`,
3731
3734
  children: "Keep your information up to date."
3732
3735
  })] }), Ne && /* @__PURE__ */ m("span", {
3733
3736
  className: `inline-flex items-center gap-1 text-[11px] font-semibold px-2.5 py-1 rounded-full shrink-0 ${a ? "bg-emerald-950/60 text-emerald-300" : "bg-emerald-50 text-emerald-700"}`,
@@ -3738,9 +3741,9 @@ var Ct = {
3738
3741
  children: s.map((e) => Lt(e, e.type === "file" || e.width === "full" ? "w-full" : "w-full md:w-1/2", l))
3739
3742
  })]
3740
3743
  })),
3741
- F === "addons" && _.length > 0 && /* @__PURE__ */ m("div", {
3744
+ I === "addons" && _.length > 0 && /* @__PURE__ */ m("div", {
3742
3745
  part: "portal-card addons-card",
3743
- className: j,
3746
+ className: M,
3744
3747
  children: [/* @__PURE__ */ p("div", {
3745
3748
  className: "flex items-start justify-between gap-3 mb-4",
3746
3749
  children: /* @__PURE__ */ m("div", {
@@ -3753,17 +3756,17 @@ var Ct = {
3753
3756
  },
3754
3757
  children: /* @__PURE__ */ p(nt, { size: 17 })
3755
3758
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
3756
- className: N,
3759
+ className: P,
3757
3760
  style: Q,
3758
3761
  children: "Add-ons"
3759
3762
  }), /* @__PURE__ */ p("p", {
3760
- className: `text-[13px] ${M}`,
3763
+ className: `text-[13px] ${N}`,
3761
3764
  children: "Select items to add to your registration"
3762
3765
  })] })]
3763
3766
  })
3764
3767
  }), /* @__PURE__ */ p("div", {
3765
3768
  className: "space-y-2",
3766
- children: _.map((e) => y(e))
3769
+ children: _.map((e) => E(e))
3767
3770
  })]
3768
3771
  }),
3769
3772
  /* @__PURE__ */ p("div", {
@@ -3771,7 +3774,7 @@ var Ct = {
3771
3774
  children: /* @__PURE__ */ p("button", {
3772
3775
  part: "button button-primary submit-button",
3773
3776
  type: "submit",
3774
- disabled: v || b !== null,
3777
+ disabled: v || b !== null || I === "addons" && !x,
3775
3778
  style: {
3776
3779
  background: `linear-gradient(135deg, ${i}, color-mix(in srgb, ${i} 80%, black))`,
3777
3780
  boxShadow: `0 10px 24px -12px color-mix(in srgb, ${i} 70%, transparent)`
@@ -3794,14 +3797,14 @@ var Ct = {
3794
3797
  fill: "currentColor",
3795
3798
  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"
3796
3799
  })]
3797
- }), /* @__PURE__ */ p("span", { children: "Saving..." })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(q, { size: 16 }), /* @__PURE__ */ p("span", { children: F === "addons" ? "Update add-ons" : "Save changes" })] })
3800
+ }), /* @__PURE__ */ p("span", { children: "Saving..." })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(q, { size: 16 }), /* @__PURE__ */ p("span", { children: I === "addons" ? "Update add-ons" : "Save changes" })] })
3798
3801
  })
3799
3802
  })
3800
3803
  ]
3801
3804
  }),
3802
- F === "badge" && x && /* @__PURE__ */ m("div", {
3805
+ I === "badge" && D && /* @__PURE__ */ m("div", {
3803
3806
  part: "portal-card badge-card",
3804
- className: j,
3807
+ className: M,
3805
3808
  children: [
3806
3809
  /* @__PURE__ */ m("div", {
3807
3810
  className: "flex items-center gap-3 mb-4",
@@ -3813,18 +3816,18 @@ var Ct = {
3813
3816
  },
3814
3817
  children: /* @__PURE__ */ p(ke, { size: 17 })
3815
3818
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
3816
- className: N,
3819
+ className: P,
3817
3820
  style: Q,
3818
3821
  children: "Your badge"
3819
3822
  }), /* @__PURE__ */ p("p", {
3820
- className: `text-[13px] ${M}`,
3823
+ className: `text-[13px] ${N}`,
3821
3824
  children: "View or download your event badge."
3822
3825
  })] })]
3823
3826
  }),
3824
3827
  /* @__PURE__ */ p("div", {
3825
3828
  className: `rounded-2xl border overflow-hidden ${a ? "border-zinc-800 bg-zinc-950/60" : "border-slate-200 bg-slate-50"}`,
3826
3829
  children: /* @__PURE__ */ p("img", {
3827
- src: x,
3830
+ src: D,
3828
3831
  alt: "Your event badge",
3829
3832
  className: "w-full max-h-96 object-contain"
3830
3833
  })
@@ -3832,13 +3835,13 @@ var Ct = {
3832
3835
  /* @__PURE__ */ m("div", {
3833
3836
  className: "mt-4 flex flex-wrap gap-2.5",
3834
3837
  children: [/* @__PURE__ */ m("a", {
3835
- href: x,
3838
+ href: D,
3836
3839
  target: "_blank",
3837
3840
  rel: "noopener noreferrer",
3838
3841
  className: `inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold border transition-colors ${a ? "text-zinc-200 border-zinc-700 hover:bg-zinc-800" : "text-slate-700 border-slate-200 bg-white hover:bg-slate-50"}`,
3839
3842
  children: [/* @__PURE__ */ p(xe, { size: 13 }), /* @__PURE__ */ p("span", { children: "View badge" })]
3840
3843
  }), /* @__PURE__ */ m("a", {
3841
- href: x,
3844
+ href: D,
3842
3845
  download: !0,
3843
3846
  target: "_blank",
3844
3847
  rel: "noopener noreferrer",
@@ -3849,9 +3852,9 @@ var Ct = {
3849
3852
  })
3850
3853
  ]
3851
3854
  }),
3852
- F === "guests" && E.length > 0 && /* @__PURE__ */ m("div", {
3855
+ I === "guests" && O.length > 0 && /* @__PURE__ */ m("div", {
3853
3856
  part: "portal-card accompanying-card",
3854
- className: j,
3857
+ className: M,
3855
3858
  children: [/* @__PURE__ */ m("div", {
3856
3859
  className: "flex items-center gap-3 mb-4",
3857
3860
  children: [/* @__PURE__ */ p("div", {
@@ -3862,16 +3865,16 @@ var Ct = {
3862
3865
  },
3863
3866
  children: /* @__PURE__ */ p(Z, { size: 17 })
3864
3867
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
3865
- className: N,
3868
+ className: P,
3866
3869
  style: Q,
3867
3870
  children: "Accompanying people"
3868
3871
  }), /* @__PURE__ */ m("p", {
3869
- className: `text-[13px] ${M}`,
3870
- children: [E.length, " registered with you, each with their own badge."]
3872
+ className: `text-[13px] ${N}`,
3873
+ children: [O.length, " registered with you, each with their own badge."]
3871
3874
  })] })]
3872
3875
  }), /* @__PURE__ */ p("div", {
3873
3876
  className: "space-y-3",
3874
- children: E.map((e) => /* @__PURE__ */ m("div", {
3877
+ children: O.map((e) => /* @__PURE__ */ m("div", {
3875
3878
  part: "accompanying-person",
3876
3879
  className: `rounded-2xl border p-4 ${a ? "border-zinc-800 bg-zinc-950/60" : "border-slate-200 bg-slate-50"}`,
3877
3880
  children: [
@@ -3883,7 +3886,7 @@ var Ct = {
3883
3886
  className: `text-sm font-semibold ${a ? "text-white" : "text-slate-900"}`,
3884
3887
  children: [e.salutation, e.name].filter(Boolean).join(" ")
3885
3888
  }), /* @__PURE__ */ p("div", {
3886
- className: `text-xs mt-0.5 truncate ${M}`,
3889
+ className: `text-xs mt-0.5 truncate ${N}`,
3887
3890
  children: [e.registration_number, e.email].filter(Boolean).join(" · ")
3888
3891
  })]
3889
3892
  }), /* @__PURE__ */ m("div", {
@@ -3891,7 +3894,7 @@ var Ct = {
3891
3894
  children: [/* @__PURE__ */ p("span", {
3892
3895
  className: `text-[11px] font-semibold px-2.5 py-1 rounded-full ${e.status === "confirmed" ? "bg-emerald-100 text-emerald-700" : a ? "bg-zinc-800 text-zinc-300" : "bg-slate-200 text-slate-600"}`,
3893
3896
  children: e.status
3894
- }), D.length > 0 && K !== e.id && /* @__PURE__ */ m("button", {
3897
+ }), k.length > 0 && K !== e.id && /* @__PURE__ */ m("button", {
3895
3898
  type: "button",
3896
3899
  onClick: () => Nt(e),
3897
3900
  className: `inline-flex items-center gap-1.5 h-8 px-3 rounded-full text-xs font-semibold border transition-colors ${a ? "text-zinc-200 border-zinc-700 hover:bg-zinc-800" : "text-slate-700 border-slate-200 bg-white hover:bg-slate-50"}`,
@@ -3901,7 +3904,7 @@ var Ct = {
3901
3904
  }),
3902
3905
  K === e.id && /* @__PURE__ */ m("div", {
3903
3906
  className: "mt-4 space-y-3",
3904
- children: [D.map((t) => {
3907
+ children: [k.map((t) => {
3905
3908
  let n = e.file_answers?.[Tt(t)];
3906
3909
  return /* @__PURE__ */ m("label", {
3907
3910
  className: "block",
@@ -3912,7 +3915,7 @@ var Ct = {
3912
3915
  children: "*"
3913
3916
  })]
3914
3917
  }), t.type === "file" ? /* @__PURE__ */ p("p", {
3915
- className: `text-[13px] m-0 whitespace-pre-wrap break-words max-h-48 overflow-y-auto ${M}`,
3918
+ className: `text-[13px] m-0 whitespace-pre-wrap break-words max-h-48 overflow-y-auto ${N}`,
3916
3919
  children: n?.serve_url ? /* @__PURE__ */ p("a", {
3917
3920
  href: n.serve_url,
3918
3921
  target: "_blank",
@@ -3924,7 +3927,7 @@ var Ct = {
3924
3927
  field: t,
3925
3928
  value: Et(Xe, t),
3926
3929
  onChange: (e) => Mt(t, e),
3927
- className: O,
3930
+ className: te,
3928
3931
  isDark: a
3929
3932
  })]
3930
3933
  }, t.id);
@@ -3975,9 +3978,9 @@ var Ct = {
3975
3978
  }, e.id))
3976
3979
  })]
3977
3980
  }),
3978
- F === "payments" && u.length > 0 && /* @__PURE__ */ m("div", {
3981
+ I === "payments" && u.length > 0 && /* @__PURE__ */ m("div", {
3979
3982
  part: "portal-card payments-card",
3980
- className: j,
3983
+ className: M,
3981
3984
  children: [/* @__PURE__ */ m("div", {
3982
3985
  className: "flex items-center gap-3 mb-4",
3983
3986
  children: [/* @__PURE__ */ p("div", {
@@ -3988,11 +3991,11 @@ var Ct = {
3988
3991
  },
3989
3992
  children: /* @__PURE__ */ p(Ye, { size: 17 })
3990
3993
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
3991
- className: N,
3994
+ className: P,
3992
3995
  style: Q,
3993
3996
  children: "Payments"
3994
3997
  }), /* @__PURE__ */ p("p", {
3995
- className: `text-[13px] ${M}`,
3998
+ className: `text-[13px] ${N}`,
3996
3999
  children: "Every order on your registration, with receipts."
3997
4000
  })] })]
3998
4001
  }), /* @__PURE__ */ p("div", {
@@ -4017,7 +4020,7 @@ var Ct = {
4017
4020
  r.length > 0 && /* @__PURE__ */ p("div", {
4018
4021
  className: "mt-1.5 space-y-0.5",
4019
4022
  children: r.map((t, n) => /* @__PURE__ */ m("div", {
4020
- className: `flex items-center justify-between gap-3 text-[12px] ${M}`,
4023
+ className: `flex items-center justify-between gap-3 text-[12px] ${N}`,
4021
4024
  children: [/* @__PURE__ */ p("span", {
4022
4025
  className: "truncate",
4023
4026
  children: t.label
@@ -4051,9 +4054,9 @@ var Ct = {
4051
4054
  })
4052
4055
  })]
4053
4056
  }),
4054
- F === "submission" && k && /* @__PURE__ */ m("div", {
4057
+ I === "submission" && A && /* @__PURE__ */ m("div", {
4055
4058
  part: "portal-card submission-card",
4056
- className: j,
4059
+ className: M,
4057
4060
  children: [
4058
4061
  /* @__PURE__ */ m("div", {
4059
4062
  className: "flex items-center gap-3 mb-4",
@@ -4069,17 +4072,17 @@ var Ct = {
4069
4072
  /* @__PURE__ */ m("div", {
4070
4073
  className: "flex-1 min-w-0",
4071
4074
  children: [/* @__PURE__ */ p("h4", {
4072
- className: N,
4075
+ className: P,
4073
4076
  style: Q,
4074
4077
  children: "Your submission"
4075
4078
  }), /* @__PURE__ */ p("p", {
4076
- className: `text-[13px] ${M}`,
4077
- children: k.registration_type_label || "Abstract submission"
4079
+ className: `text-[13px] ${N}`,
4080
+ children: A.registration_type_label || "Abstract submission"
4078
4081
  })]
4079
4082
  }),
4080
4083
  /* @__PURE__ */ p("span", {
4081
- className: `px-2.5 py-1 rounded-full text-[11px] font-semibold capitalize shrink-0 ${k.verdict === "accepted" ? a ? "bg-emerald-950/70 text-emerald-300" : "bg-emerald-50 text-emerald-700" : k.verdict === "rejected" ? a ? "bg-red-950/60 text-red-300" : "bg-red-50 text-red-700" : a ? "bg-amber-950/60 text-amber-300" : "bg-amber-50 text-amber-700"}`,
4082
- children: k.verdict
4084
+ className: `px-2.5 py-1 rounded-full text-[11px] font-semibold capitalize shrink-0 ${A.verdict === "accepted" ? a ? "bg-emerald-950/70 text-emerald-300" : "bg-emerald-50 text-emerald-700" : A.verdict === "rejected" ? a ? "bg-red-950/60 text-red-300" : "bg-red-50 text-red-700" : a ? "bg-amber-950/60 text-amber-300" : "bg-amber-50 text-amber-700"}`,
4085
+ children: A.verdict
4083
4086
  })
4084
4087
  ]
4085
4088
  }),
@@ -4090,19 +4093,19 @@ var Ct = {
4090
4093
  children: "Submission no."
4091
4094
  }), /* @__PURE__ */ p("dd", {
4092
4095
  className: `mt-1 text-sm font-semibold font-mono ${a ? "text-white" : "text-slate-900"}`,
4093
- children: k.submission_number || "N/A"
4096
+ children: A.submission_number || "N/A"
4094
4097
  })] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
4095
4098
  className: `text-[11px] font-semibold uppercase tracking-wider ${a ? "text-zinc-500" : "text-slate-400"}`,
4096
4099
  children: "Status"
4097
4100
  }), /* @__PURE__ */ p("dd", {
4098
4101
  className: `mt-1 text-sm font-semibold capitalize ${a ? "text-white" : "text-slate-900"}`,
4099
- children: k.status
4102
+ children: A.status
4100
4103
  })] })]
4101
4104
  }),
4102
4105
  Ie ? /* @__PURE__ */ m("form", {
4103
4106
  onSubmit: Ct,
4104
4107
  className: `mt-4 pt-4 border-t space-y-3.5 ${a ? "border-zinc-800" : "border-slate-100"}`,
4105
- children: [(k.editable_fields || []).map((e) => /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
4108
+ children: [(A.editable_fields || []).map((e) => /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
4106
4109
  className: `block text-[13px] font-semibold mb-1.5 ${a ? "text-zinc-200" : "text-slate-800"}`,
4107
4110
  children: [e.label, e.required && /* @__PURE__ */ p("span", {
4108
4111
  className: "text-red-500",
@@ -4132,10 +4135,10 @@ var Ct = {
4132
4135
  let n = t.target.files?.[0];
4133
4136
  n && xt(e.id, n);
4134
4137
  },
4135
- className: `w-full text-[13px] ${M}`
4138
+ className: `w-full text-[13px] ${N}`
4136
4139
  }),
4137
4140
  G === e.id && /* @__PURE__ */ p("p", {
4138
- className: `mt-1 text-[12.5px] ${M}`,
4141
+ className: `mt-1 text-[12.5px] ${N}`,
4139
4142
  children: "Uploading…"
4140
4143
  })
4141
4144
  ] }) : /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("textarea", {
@@ -4160,7 +4163,7 @@ var Ct = {
4160
4163
  style: { backgroundColor: i },
4161
4164
  children: G === e.id ? "Saving…" : "Save text answer"
4162
4165
  }), t > 0 && /* @__PURE__ */ m("span", {
4163
- className: `text-2xs font-medium ${r ? "text-red-500" : M}`,
4166
+ className: `text-2xs font-medium ${r ? "text-red-500" : N}`,
4164
4167
  children: [
4165
4168
  n,
4166
4169
  "/",
@@ -4185,7 +4188,7 @@ var Ct = {
4185
4188
  e.label,
4186
4189
  "..."
4187
4190
  ]
4188
- }), (k.registration_types || []).map((e) => /* @__PURE__ */ p("option", {
4191
+ }), (A.registration_types || []).map((e) => /* @__PURE__ */ p("option", {
4189
4192
  value: e.id,
4190
4193
  children: e.label
4191
4194
  }, e.id))]
@@ -4218,9 +4221,9 @@ var Ct = {
4218
4221
  }) : /* @__PURE__ */ m("div", {
4219
4222
  className: `mt-4 pt-4 border-t flex items-center justify-between gap-3 flex-wrap ${a ? "border-zinc-800" : "border-slate-100"}`,
4220
4223
  children: [/* @__PURE__ */ p("p", {
4221
- className: `text-[13px] ${M}`,
4222
- children: k.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."
4223
- }), k.editable && /* @__PURE__ */ p("button", {
4224
+ className: `text-[13px] ${N}`,
4225
+ children: A.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."
4226
+ }), A.editable && /* @__PURE__ */ p("button", {
4224
4227
  type: "button",
4225
4228
  onClick: yt,
4226
4229
  className: "inline-flex items-center gap-1.5 h-9 px-4 rounded-full text-[13px] font-semibold text-white shrink-0 cursor-pointer",
@@ -4232,7 +4235,7 @@ var Ct = {
4232
4235
  }),
4233
4236
  je && /* @__PURE__ */ m("div", {
4234
4237
  part: "portal-card addon-qr-card",
4235
- className: `${j} flex flex-col items-center`,
4238
+ className: `${M} flex flex-col items-center`,
4236
4239
  children: [/* @__PURE__ */ m("div", {
4237
4240
  className: "w-full flex items-center gap-3 mb-4",
4238
4241
  children: [/* @__PURE__ */ p("div", {
@@ -4243,11 +4246,11 @@ var Ct = {
4243
4246
  },
4244
4247
  children: /* @__PURE__ */ p(ve, { size: 17 })
4245
4248
  }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
4246
- className: N,
4249
+ className: P,
4247
4250
  style: Q,
4248
4251
  children: "Pay for your add-ons"
4249
4252
  }), /* @__PURE__ */ p("p", {
4250
- className: `text-[13px] ${M}`,
4253
+ className: `text-[13px] ${N}`,
4251
4254
  children: "Scan the code to pay, then tell us about the transfer."
4252
4255
  })] })]
4253
4256
  }), /* @__PURE__ */ p(Dt, {
@@ -4378,7 +4381,7 @@ var Ct = {
4378
4381
  boxShadow: `0 10px 24px -12px color-mix(in srgb, ${i} 70%, transparent)`
4379
4382
  },
4380
4383
  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",
4381
- children: e ? /* @__PURE__ */ m(f, { children: [Bt, /* @__PURE__ */ p("span", { children: n })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", { children: t }), /* @__PURE__ */ p(ne, {
4384
+ children: e ? /* @__PURE__ */ m(f, { children: [Bt, /* @__PURE__ */ p("span", { children: n })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", { children: t }), /* @__PURE__ */ p(N, {
4382
4385
  size: 16,
4383
4386
  className: "transition-transform group-hover:translate-x-0.5"
4384
4387
  })] })
@@ -4391,7 +4394,7 @@ var Ct = {
4391
4394
  type: "button",
4392
4395
  onClick: r,
4393
4396
  className: `self-start inline-flex items-center gap-1.5 mb-4 text-sm font-semibold transition-colors cursor-pointer ${a ? "text-zinc-400 hover:text-white" : "text-slate-500 hover:text-slate-900"}`,
4394
- children: [/* @__PURE__ */ p(M, { size: 16 }), /* @__PURE__ */ p("span", { children: "Back to login" })]
4397
+ children: [/* @__PURE__ */ p(ne, { size: 16 }), /* @__PURE__ */ p("span", { children: "Back to login" })]
4395
4398
  }), /* @__PURE__ */ m("div", {
4396
4399
  part: "portal-card",
4397
4400
  className: `p-6 sm:p-7 rounded-3xl border space-y-5 ${a ? "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)]"}`,
@@ -4428,7 +4431,7 @@ var Ct = {
4428
4431
  subtitle: "We will email a verification code to your registered address.",
4429
4432
  onBack: () => Vt("login"),
4430
4433
  children: /* @__PURE__ */ m("form", {
4431
- onSubmit: X,
4434
+ onSubmit: at,
4432
4435
  className: "space-y-4",
4433
4436
  children: [
4434
4437
  Ht({
@@ -4465,7 +4468,7 @@ var Ct = {
4465
4468
  subtitle: "Enter the code from your email and choose a new password.",
4466
4469
  onBack: () => Vt("login"),
4467
4470
  children: /* @__PURE__ */ m("form", {
4468
- onSubmit: ot,
4471
+ onSubmit: X,
4469
4472
  className: "space-y-4",
4470
4473
  children: [
4471
4474
  Ht({
@@ -4483,7 +4486,7 @@ var Ct = {
4483
4486
  id: "vx-portal-reset-code",
4484
4487
  label: "Verification code",
4485
4488
  icon: Pe,
4486
- value: N,
4489
+ value: M,
4487
4490
  onChange: P,
4488
4491
  placeholder: "Enter code from email",
4489
4492
  autoComplete: "one-time-code",
@@ -4652,7 +4655,7 @@ var Ft = (e) => {
4652
4655
  }
4653
4656
  }, Lt = (e) => {
4654
4657
  let t = /* @__PURE__ */ new Set(), n = (e) => {
4655
- e?.options?.length ? e.options.forEach(n) : e?.name && e?.mode !== "included" && t.add(e.name);
4658
+ e?.options?.length ? e.options.forEach(n) : e?.name && e?.mode !== "included" && t.add(e.label ?? e.name);
4656
4659
  };
4657
4660
  return (Array.isArray(e?.items) ? e.items : []).forEach(n), t;
4658
4661
  }, Rt = (e) => (Array.isArray(e) ? e : []).flatMap((e) => typeof e == "string" ? [e] : e?.options ? Rt(e.options) : e?.name ? [e.name] : []), zt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Bt = ({ config: e }) => {
@@ -4660,7 +4663,7 @@ var Ft = (e) => {
4660
4663
  s(() => {
4661
4664
  t === "attendee" && i(!0);
4662
4665
  }, [t]);
4663
- 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(""), [D, O] = d(null), [k, ee] = d(null), te = l(() => k && { fields: k.fields.filter((e) => e.id !== "registration_type") }, [k]), [A, j] = d(!0), [N, P] = d(""), [F, re] = d(null), [I, ie] = d(!!o), [oe, se] = d(null), [ce, ue] = d(null), [de, L] = d(o), [pe, he] = d(null), [_e, ve] = d(null), [R, ye] = d(!1), [be, Se] = d({
4666
+ 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(""), [D, O] = d(null), [k, ee] = d(null), te = l(() => k && { fields: k.fields.filter((e) => e.id !== "registration_type") }, [k]), [A, j] = d(!0), [M, P] = d(""), [F, re] = d(null), [I, ie] = d(!!o), [oe, se] = d(null), [ce, ue] = d(null), [de, L] = d(o), [pe, he] = d(null), [_e, ve] = d(null), [R, ye] = d(!1), [be, Se] = d({
4664
4667
  amount: null,
4665
4668
  currency: null
4666
4669
  }), [we, Te] = d(null), [Ee, De] = d(null), [Oe, ke] = d(null), [Ae, je] = d(!1), [z, Me] = d(() => Pt(e.position)), [Ne, Pe] = d(null), [Fe, Ie] = d(null), [B, Le] = d(!1), [Re, Be] = d(!1), Ve = u(null), V = u(null), H = u(!1);
@@ -4911,7 +4914,7 @@ var Ft = (e) => {
4911
4914
  } finally {
4912
4915
  j(!1);
4913
4916
  }
4914
- }, X = () => {
4917
+ }, at = () => {
4915
4918
  if (ie(!1), se(null), ue(null), ve(null), ye(!1), L(null), Te(null), he(null), Se({
4916
4919
  amount: null,
4917
4920
  currency: null
@@ -4919,7 +4922,7 @@ var Ft = (e) => {
4919
4922
  let e = new URL(window.location.href);
4920
4923
  e.searchParams.delete("rn"), window.history.replaceState(window.history.state, "", e.toString());
4921
4924
  }
4922
- }, at = a((e) => {
4925
+ }, ot = a((e) => {
4923
4926
  if (e.stopPropagation(), e.button !== 0 || !Ve.current) return;
4924
4927
  let t = Ve.current.getBoundingClientRect();
4925
4928
  V.current = {
@@ -4969,7 +4972,7 @@ var Ft = (e) => {
4969
4972
  window.removeEventListener("pointermove", t), window.removeEventListener("pointerup", n), window.removeEventListener("pointercancel", n);
4970
4973
  };
4971
4974
  }, [B, e]);
4972
- let ot = async () => {
4975
+ let X = async () => {
4973
4976
  if (de) {
4974
4977
  try {
4975
4978
  await navigator.clipboard.writeText(de);
@@ -4995,7 +4998,7 @@ var Ft = (e) => {
4995
4998
  }), /* @__PURE__ */ m("button", {
4996
4999
  part: "copy-button",
4997
5000
  type: "button",
4998
- onClick: ot,
5001
+ onClick: X,
4999
5002
  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",
5000
5003
  style: { backgroundColor: W },
5001
5004
  title: "Copy registration number",
@@ -5032,7 +5035,7 @@ var Ft = (e) => {
5032
5035
  className: `fixed ${It(z)} z-50 select-none group`,
5033
5036
  style: e,
5034
5037
  children: [/* @__PURE__ */ p("div", {
5035
- onPointerDown: at,
5038
+ onPointerDown: ot,
5036
5039
  className: `absolute -top-1.5 -left-1.5 w-7 h-7 rounded-full bg-slate-900 text-white shadow-lg border-2 border-white flex items-center justify-center cursor-grab active:cursor-grabbing hover:bg-black hover:scale-110 active:scale-95 transition-all duration-200 z-10 touch-none ${t ? "opacity-100 scale-100 pointer-events-auto" : "opacity-0 scale-75 pointer-events-none group-hover:opacity-100 group-hover:scale-100 group-hover:pointer-events-auto"}`,
5037
5040
  title: "Hold and drag to change position",
5038
5041
  children: /* @__PURE__ */ p(Ke, {
@@ -5057,7 +5060,7 @@ var Ft = (e) => {
5057
5060
  }
5058
5061
  let ut = e.displayMode === "fullscreen" || e.displayMode === "popup" && y, Z = e.displayMode === "widget", dt = Nt(Ge, U, Z), pt = `${U ? "bg-zinc-950 text-white" : "bg-slate-50 text-slate-900"} flex flex-col transition-all duration-300 ease-in-out `, mt = e.theme?.fontFamily, $ = !mt || mt === "inherit" ? {} : { fontFamily: `var(--vx-font-family, ${mt})` };
5059
5062
  $["--vx-accent"] = W, ut ? pt += "fixed inset-0 z-[9999] rounded-none overflow-hidden " : e.displayMode === "popup" ? (pt += `fixed ${It(z)} z-50 rounded-xl shadow-2xl border ${U ? "border-zinc-800" : "border-gray-200"} overflow-hidden `, $.width = e.width || "400px", $.height = e.height || "700px", $.maxHeight = "90vh", $.maxWidth = "calc(100vw - 32px)", Object.assign($, Ft(z))) : (pt += "relative w-full min-h-screen border-none shadow-none rounded-none ", $.width = "100%", $.minHeight = "100vh");
5060
- let gt = G ? "Abstract Submission" : t === "registration" ? T || "Registration" : "Attendee Portal", _t = N.trim().toLowerCase(), vt = _t ? x.filter((e) => [
5063
+ let gt = G ? "Abstract Submission" : t === "registration" ? T || "Registration" : "Attendee Portal", _t = M.trim().toLowerCase(), vt = _t ? x.filter((e) => [
5061
5064
  e.type,
5062
5065
  e.name,
5063
5066
  e.category,
@@ -5130,7 +5133,7 @@ var Ft = (e) => {
5130
5133
  className: `hidden sm:inline-block text-[10px] font-semibold uppercase tracking-wider px-2.5 py-1 rounded-full shrink-0 ${U ? "bg-zinc-800 text-zinc-300" : "bg-slate-100 text-slate-600"}`,
5131
5134
  children: t.category
5132
5135
  }),
5133
- /* @__PURE__ */ p(ne, {
5136
+ /* @__PURE__ */ p(N, {
5134
5137
  size: 16,
5135
5138
  className: `shrink-0 transition-all ${r ? "translate-x-0.5" : `${U ? "text-zinc-600" : "text-slate-300"} group-hover:translate-x-0.5`}`,
5136
5139
  style: r ? { color: W } : void 0
@@ -5157,7 +5160,7 @@ var Ft = (e) => {
5157
5160
  boxShadow: e ? `0 10px 24px -12px color-mix(in srgb, ${W} 70%, transparent)` : void 0
5158
5161
  },
5159
5162
  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",
5160
- children: [/* @__PURE__ */ p("span", { children: "Continue to submission" }), /* @__PURE__ */ p(ne, {
5163
+ children: [/* @__PURE__ */ p("span", { children: "Continue to submission" }), /* @__PURE__ */ p(N, {
5161
5164
  size: 16,
5162
5165
  className: "transition-transform group-hover:translate-x-0.5"
5163
5166
  })]
@@ -5435,7 +5438,7 @@ var Ft = (e) => {
5435
5438
  }),
5436
5439
  /* @__PURE__ */ p("button", {
5437
5440
  part: "button button-link",
5438
- onClick: X,
5441
+ onClick: at,
5439
5442
  className: `mt-4 w-full max-w-sm py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${U ? "text-zinc-400 hover:text-white" : "text-gray-500 hover:text-gray-900"}`,
5440
5443
  children: "Register Another Person"
5441
5444
  })
@@ -5507,7 +5510,7 @@ var Ft = (e) => {
5507
5510
  children: [/* @__PURE__ */ p("span", { children: "Open Payment Page" }), /* @__PURE__ */ p(xe, { size: 16 })]
5508
5511
  }), /* @__PURE__ */ p("button", {
5509
5512
  part: "button button-link",
5510
- onClick: X,
5513
+ onClick: at,
5511
5514
  className: `w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${U ? "text-zinc-400 hover:text-white" : "text-gray-500 hover:text-gray-900"}`,
5512
5515
  children: "Register Another Person"
5513
5516
  })]
@@ -5570,7 +5573,7 @@ var Ft = (e) => {
5570
5573
  }),
5571
5574
  /* @__PURE__ */ p("button", {
5572
5575
  part: "button button-primary",
5573
- onClick: X,
5576
+ onClick: at,
5574
5577
  style: { backgroundColor: W },
5575
5578
  className: "text-white font-bold py-3 px-8 rounded-md hover:opacity-90 transition-opacity shadow-md cursor-pointer",
5576
5579
  children: "Back"
@@ -5624,7 +5627,7 @@ var Ft = (e) => {
5624
5627
  boxShadow: `0 10px 24px -12px color-mix(in srgb, ${W} 70%, transparent)`
5625
5628
  },
5626
5629
  className: "w-full h-12 inline-flex items-center justify-center gap-2 rounded-xl text-sm font-semibold text-white transition-all hover:brightness-110 active:scale-[0.99] cursor-pointer",
5627
- children: t ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(ze, { size: 16 }), " Go to Attendee Login"] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(M, { size: 16 }), " Back to the form"] })
5630
+ children: t ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(ze, { size: 16 }), " Go to Attendee Login"] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(ne, { size: 16 }), " Back to the form"] })
5628
5631
  }), /* @__PURE__ */ p("button", {
5629
5632
  part: "button button-secondary",
5630
5633
  onClick: () => {
@@ -5809,7 +5812,7 @@ var Ft = (e) => {
5809
5812
  /* @__PURE__ */ p("input", {
5810
5813
  part: "input search-input",
5811
5814
  type: "text",
5812
- value: N,
5815
+ value: M,
5813
5816
  onChange: (e) => P(e.target.value),
5814
5817
  placeholder: G ? "Search categories…" : "Search registration types…",
5815
5818
  "aria-label": "Search",
@@ -5822,7 +5825,7 @@ var Ft = (e) => {
5822
5825
  className: "block"
5823
5826
  })
5824
5827
  }),
5825
- N && /* @__PURE__ */ p("button", {
5828
+ M && /* @__PURE__ */ p("button", {
5826
5829
  type: "button",
5827
5830
  onClick: () => P(""),
5828
5831
  "aria-label": "Clear search",
@@ -5883,7 +5886,7 @@ var Ft = (e) => {
5883
5886
  className: `text-base font-semibold ${U ? "text-white" : "text-slate-900"}`,
5884
5887
  children: [
5885
5888
  "No matches for “",
5886
- N.trim(),
5889
+ M.trim(),
5887
5890
  "”"
5888
5891
  ]
5889
5892
  }),
@@ -6026,7 +6029,7 @@ var Ft = (e) => {
6026
6029
  style: { backgroundColor: W },
6027
6030
  children: [G ? "Submit" : "Register", /* @__PURE__ */ p("span", {
6028
6031
  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",
6029
- children: /* @__PURE__ */ p(ne, { size: 14 })
6032
+ children: /* @__PURE__ */ p(N, { size: 14 })
6030
6033
  })]
6031
6034
  })]
6032
6035
  })