@voxket-ai/events-sdk 1.0.36 → 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.
- package/dist/events-sdk.js +121 -118
- package/dist/events-sdk.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/events-sdk.js
CHANGED
|
@@ -482,7 +482,7 @@ var j = {
|
|
|
482
482
|
}]]
|
|
483
483
|
};
|
|
484
484
|
j.node;
|
|
485
|
-
var
|
|
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
|
-
|
|
497
|
-
var
|
|
496
|
+
M.node;
|
|
497
|
+
var N = A(M), P = {
|
|
498
498
|
name: "briefcase",
|
|
499
499
|
size: 24,
|
|
500
500
|
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,
|
|
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 &&
|
|
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 &&
|
|
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),
|
|
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 &&
|
|
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
|
-
})),
|
|
1607
|
+
})), M((e) => {
|
|
1608
1608
|
let n = { ...e };
|
|
1609
1609
|
return delete n[t], n;
|
|
1610
1610
|
}), de((e) => ({
|
|
@@ -1989,17 +1989,17 @@ var Ct = {
|
|
|
1989
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
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
|
|
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":
|
|
1999
|
+
"aria-expanded": u,
|
|
2000
2000
|
onClick: () => fe((t) => ({
|
|
2001
2001
|
...t,
|
|
2002
|
-
[e.name]: !
|
|
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 ${
|
|
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,21 +2024,21 @@ var Ct = {
|
|
|
2024
2024
|
]
|
|
2025
2025
|
}), /* @__PURE__ */ m("span", {
|
|
2026
2026
|
className: "flex items-center gap-2 shrink-0",
|
|
2027
|
-
children: [s
|
|
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(
|
|
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:
|
|
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: ut(e,
|
|
2041
|
+
children: ut(e, d, l)
|
|
2042
2042
|
}, e.name);
|
|
2043
2043
|
let t = Le(e), n = B.includes(t), r = a && !n;
|
|
2044
2044
|
return /* @__PURE__ */ m("label", {
|
|
@@ -2053,7 +2053,7 @@ var Ct = {
|
|
|
2053
2053
|
type: "checkbox",
|
|
2054
2054
|
checked: n,
|
|
2055
2055
|
disabled: r,
|
|
2056
|
-
onChange: () => Ve(t,
|
|
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,7 +2064,7 @@ 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:
|
|
2067
|
+
children: l ? "Included" : Number(e.price) > 0 ? `+ ${X(Number(e.price))}` : "Free"
|
|
2068
2068
|
})
|
|
2069
2069
|
]
|
|
2070
2070
|
}, e.name);
|
|
@@ -2122,7 +2122,7 @@ 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(
|
|
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", {
|
|
@@ -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(
|
|
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
|
})]
|
|
@@ -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 || [])
|
|
2721
|
-
|
|
2722
|
-
|
|
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(""), [
|
|
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);
|
|
@@ -2850,7 +2853,7 @@ var Ct = {
|
|
|
2850
2853
|
C("Please enter your registration number or email.");
|
|
2851
2854
|
return;
|
|
2852
2855
|
}
|
|
2853
|
-
if (!
|
|
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:
|
|
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", {
|
|
@@ -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
|
|
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,14 +3510,14 @@ 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
|
|
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} ${
|
|
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) =>
|
|
3520
|
+
children: e.options.map((e) => E(e, t || n))
|
|
3518
3521
|
})]
|
|
3519
3522
|
}, e.name);
|
|
3520
3523
|
}
|
|
@@ -3551,7 +3554,7 @@ var Ct = {
|
|
|
3551
3554
|
})
|
|
3552
3555
|
]
|
|
3553
3556
|
}, e.name);
|
|
3554
|
-
},
|
|
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
|
-
],
|
|
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
|
-
...
|
|
3585
|
+
...D ? [{
|
|
3583
3586
|
key: "badge",
|
|
3584
3587
|
label: "Badge",
|
|
3585
3588
|
icon: ke,
|
|
3586
3589
|
count: 0
|
|
3587
3590
|
}] : [],
|
|
3588
|
-
...
|
|
3591
|
+
...O.length > 0 ? [{
|
|
3589
3592
|
key: "guests",
|
|
3590
3593
|
label: "Guests",
|
|
3591
3594
|
icon: Z,
|
|
3592
|
-
count:
|
|
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
|
-
...
|
|
3603
|
+
...A ? [{
|
|
3601
3604
|
key: "submission",
|
|
3602
3605
|
label: "Submission",
|
|
3603
3606
|
icon: Ce,
|
|
3604
3607
|
count: 0
|
|
3605
3608
|
}] : []
|
|
3606
|
-
],
|
|
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:
|
|
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:
|
|
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:
|
|
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 ${
|
|
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 ${
|
|
3665
|
-
children:
|
|
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
|
-
|
|
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:
|
|
3693
|
-
let t = e.icon, n = e.key ===
|
|
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: () =>
|
|
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
|
-
(
|
|
3716
|
+
(I === "details" || I === "addons") && /* @__PURE__ */ m("form", {
|
|
3714
3717
|
onSubmit: vt,
|
|
3715
3718
|
className: "space-y-5",
|
|
3716
3719
|
children: [
|
|
3717
|
-
|
|
3718
|
-
className: `${
|
|
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:
|
|
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:
|
|
3729
|
+
className: P,
|
|
3727
3730
|
style: Q,
|
|
3728
3731
|
children: "Your details"
|
|
3729
3732
|
}), /* @__PURE__ */ p("p", {
|
|
3730
|
-
className: `text-[13px] mt-0.5 ${
|
|
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
|
-
|
|
3744
|
+
I === "addons" && _.length > 0 && /* @__PURE__ */ m("div", {
|
|
3742
3745
|
part: "portal-card addons-card",
|
|
3743
|
-
className:
|
|
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:
|
|
3759
|
+
className: P,
|
|
3757
3760
|
style: Q,
|
|
3758
3761
|
children: "Add-ons"
|
|
3759
3762
|
}), /* @__PURE__ */ p("p", {
|
|
3760
|
-
className: `text-[13px] ${
|
|
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) =>
|
|
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:
|
|
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
|
-
|
|
3805
|
+
I === "badge" && D && /* @__PURE__ */ m("div", {
|
|
3803
3806
|
part: "portal-card badge-card",
|
|
3804
|
-
className:
|
|
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:
|
|
3819
|
+
className: P,
|
|
3817
3820
|
style: Q,
|
|
3818
3821
|
children: "Your badge"
|
|
3819
3822
|
}), /* @__PURE__ */ p("p", {
|
|
3820
|
-
className: `text-[13px] ${
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
3855
|
+
I === "guests" && O.length > 0 && /* @__PURE__ */ m("div", {
|
|
3853
3856
|
part: "portal-card accompanying-card",
|
|
3854
|
-
className:
|
|
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:
|
|
3868
|
+
className: P,
|
|
3866
3869
|
style: Q,
|
|
3867
3870
|
children: "Accompanying people"
|
|
3868
3871
|
}), /* @__PURE__ */ m("p", {
|
|
3869
|
-
className: `text-[13px] ${
|
|
3870
|
-
children: [
|
|
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:
|
|
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 ${
|
|
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
|
-
}),
|
|
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: [
|
|
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 ${
|
|
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:
|
|
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
|
-
|
|
3981
|
+
I === "payments" && u.length > 0 && /* @__PURE__ */ m("div", {
|
|
3979
3982
|
part: "portal-card payments-card",
|
|
3980
|
-
className:
|
|
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:
|
|
3994
|
+
className: P,
|
|
3992
3995
|
style: Q,
|
|
3993
3996
|
children: "Payments"
|
|
3994
3997
|
}), /* @__PURE__ */ p("p", {
|
|
3995
|
-
className: `text-[13px] ${
|
|
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] ${
|
|
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
|
-
|
|
4057
|
+
I === "submission" && A && /* @__PURE__ */ m("div", {
|
|
4055
4058
|
part: "portal-card submission-card",
|
|
4056
|
-
className:
|
|
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:
|
|
4075
|
+
className: P,
|
|
4073
4076
|
style: Q,
|
|
4074
4077
|
children: "Your submission"
|
|
4075
4078
|
}), /* @__PURE__ */ p("p", {
|
|
4076
|
-
className: `text-[13px] ${
|
|
4077
|
-
children:
|
|
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 ${
|
|
4082
|
-
children:
|
|
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:
|
|
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:
|
|
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: [(
|
|
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] ${
|
|
4138
|
+
className: `w-full text-[13px] ${N}`
|
|
4136
4139
|
}),
|
|
4137
4140
|
G === e.id && /* @__PURE__ */ p("p", {
|
|
4138
|
-
className: `mt-1 text-[12.5px] ${
|
|
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" :
|
|
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
|
-
}), (
|
|
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] ${
|
|
4222
|
-
children:
|
|
4223
|
-
}),
|
|
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: `${
|
|
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:
|
|
4249
|
+
className: P,
|
|
4247
4250
|
style: Q,
|
|
4248
4251
|
children: "Pay for your add-ons"
|
|
4249
4252
|
}), /* @__PURE__ */ p("p", {
|
|
4250
|
-
className: `text-[13px] ${
|
|
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(
|
|
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(
|
|
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)]"}`,
|
|
@@ -4483,7 +4486,7 @@ var Ct = {
|
|
|
4483
4486
|
id: "vx-portal-reset-code",
|
|
4484
4487
|
label: "Verification code",
|
|
4485
4488
|
icon: Pe,
|
|
4486
|
-
value:
|
|
4489
|
+
value: M,
|
|
4487
4490
|
onChange: P,
|
|
4488
4491
|
placeholder: "Enter code from email",
|
|
4489
4492
|
autoComplete: "one-time-code",
|
|
@@ -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), [
|
|
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);
|
|
@@ -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 =
|
|
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(
|
|
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(
|
|
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
|
})]
|
|
@@ -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(
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
6032
|
+
children: /* @__PURE__ */ p(N, { size: 14 })
|
|
6030
6033
|
})]
|
|
6031
6034
|
})]
|
|
6032
6035
|
})
|