@voxket-ai/events-sdk 1.0.2 → 1.0.4
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/README.md +349 -288
- package/dist/api/ApiClient.d.ts +13 -0
- package/dist/components/AttendeePortal.d.ts +2 -0
- package/dist/components/DynamicForm.d.ts +1 -1
- package/dist/events-sdk.js +2226 -1043
- package/dist/events-sdk.umd.cjs +7 -4
- package/dist/types.d.ts +10 -0
- package/dist/utils/formUtils.d.ts +5 -0
- package/package.json +1 -1
package/dist/events-sdk.js
CHANGED
|
@@ -200,6 +200,49 @@ var g = class {
|
|
|
200
200
|
async portalDeleteFile(e, t) {
|
|
201
201
|
return this.deleteFile(t, e);
|
|
202
202
|
}
|
|
203
|
+
async portalSubmitReviewSubmission(e, t, n, r) {
|
|
204
|
+
return this.submitReviewSubmission({
|
|
205
|
+
token: e,
|
|
206
|
+
fieldLabel: t,
|
|
207
|
+
file: n,
|
|
208
|
+
text: r
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
async submitReviewSubmission({ fieldLabel: e, file: t, text: n, token: r, email: i }) {
|
|
212
|
+
let a = new FormData();
|
|
213
|
+
a.append("field_label", e), t && a.append("file", t), n != null && n.trim() !== "" && a.append("text", n.trim());
|
|
214
|
+
let o = {};
|
|
215
|
+
if (r) o.Authorization = `Bearer ${r}`;
|
|
216
|
+
else if (i) a.append("email", i.trim());
|
|
217
|
+
else throw Error("An email or login token is required to submit this field.");
|
|
218
|
+
let s = [`${this.baseUrl}/api/portal/${this.slug}/me/submissions/`, `${this.baseUrl}/api/portal/${this.slug}/me/submissions`], c = null;
|
|
219
|
+
for (let e = 0; e < s.length; e++) {
|
|
220
|
+
let t = s[e];
|
|
221
|
+
this.logger.log(`API Call: POST ${t} (submit file/text)`);
|
|
222
|
+
let n = new AbortController(), r = setTimeout(() => n.abort(), this.timeoutMs);
|
|
223
|
+
try {
|
|
224
|
+
let i = await fetch(t, {
|
|
225
|
+
method: "POST",
|
|
226
|
+
signal: n.signal,
|
|
227
|
+
headers: o,
|
|
228
|
+
body: a
|
|
229
|
+
});
|
|
230
|
+
clearTimeout(r);
|
|
231
|
+
let c = null;
|
|
232
|
+
try {
|
|
233
|
+
c = await i.json();
|
|
234
|
+
} catch {}
|
|
235
|
+
if (i.ok) return c;
|
|
236
|
+
if ((i.status === 404 || i.status === 405) && e < s.length - 1) continue;
|
|
237
|
+
let l = c?.message || c?.error || c?.detail || "Submission upload failed";
|
|
238
|
+
throw Error(l);
|
|
239
|
+
} catch (t) {
|
|
240
|
+
if (clearTimeout(r), c = t, e < s.length - 1 && !t?.message?.includes("timed out")) continue;
|
|
241
|
+
throw t?.name === "AbortError" ? Error(`Submission timed out after ${this.timeoutMs / 1e3} seconds`) : t;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
throw c || /* @__PURE__ */ Error("Submission upload failed");
|
|
245
|
+
}
|
|
203
246
|
async portalUpdateProfile(e, t) {
|
|
204
247
|
let n = `${this.baseUrl}/api/portal/${this.slug}/me/`;
|
|
205
248
|
this.logger.log(`API Call: PATCH ${n}`);
|
|
@@ -271,7 +314,7 @@ var g = class {
|
|
|
271
314
|
}, y = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
272
315
|
//#endregion
|
|
273
316
|
//#region node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
|
|
274
|
-
function
|
|
317
|
+
function ee(e, t, n = []) {
|
|
275
318
|
if (t == null) throw Error("[lucide]: iconNode is required when icon name is used");
|
|
276
319
|
return {
|
|
277
320
|
name: y(e),
|
|
@@ -282,7 +325,7 @@ function b(e, t, n = []) {
|
|
|
282
325
|
}
|
|
283
326
|
//#endregion
|
|
284
327
|
//#region node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
|
|
285
|
-
var
|
|
328
|
+
var b = (e) => {
|
|
286
329
|
let t = "", n = !1;
|
|
287
330
|
for (let r of e) {
|
|
288
331
|
if (r === "-" || r === "_" || r <= " ") {
|
|
@@ -292,10 +335,10 @@ var x = (e) => {
|
|
|
292
335
|
t.length === 0 ? t += r.toLowerCase() : t += n ? r.toUpperCase() : r, n = !1;
|
|
293
336
|
}
|
|
294
337
|
return t;
|
|
295
|
-
},
|
|
296
|
-
let t =
|
|
338
|
+
}, x = (e) => {
|
|
339
|
+
let t = b(e);
|
|
297
340
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
298
|
-
},
|
|
341
|
+
}, S = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), C = {
|
|
299
342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
300
343
|
width: 24,
|
|
301
344
|
height: 24,
|
|
@@ -308,22 +351,22 @@ var x = (e) => {
|
|
|
308
351
|
};
|
|
309
352
|
//#endregion
|
|
310
353
|
//#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
|
|
311
|
-
function
|
|
354
|
+
function w(e) {
|
|
312
355
|
return e != null;
|
|
313
356
|
}
|
|
314
|
-
function
|
|
315
|
-
let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ??
|
|
357
|
+
function T(e, t = {}) {
|
|
358
|
+
let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? C.width, a = e.size ?? e.height ?? C.height, o = e.aliases?.filter((e) => typeof e == "string" && e.trim() !== "").map((e) => `lucide-${e}`) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...o], c = t.className?.split(" ").filter(Boolean) ?? [], l = t.includeDefaultClasses === !1 ? S(...c) : S("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? C["stroke-width"]) * Number(e.size ?? e.width ?? C.width) / Number(t.size ?? t.width ?? C.width) : t.strokeWidth ?? C["stroke-width"];
|
|
316
359
|
return [
|
|
317
360
|
"svg",
|
|
318
361
|
{
|
|
319
|
-
...Object.entries(
|
|
362
|
+
...Object.entries(C).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
|
|
320
363
|
..."color" in t && t.color && { [r("stroke")]: t.color },
|
|
321
|
-
..."size" in t &&
|
|
364
|
+
..."size" in t && w(t.size) && {
|
|
322
365
|
[r("width")]: t.size,
|
|
323
366
|
[r("height")]: t.size
|
|
324
367
|
},
|
|
325
|
-
..."width" in t &&
|
|
326
|
-
..."height" in t &&
|
|
368
|
+
..."width" in t && w(t.width) && { [r("width")]: t.width },
|
|
369
|
+
..."height" in t && w(t.height) && { [r("height")]: t.height },
|
|
327
370
|
[r("stroke-width")]: u,
|
|
328
371
|
...l && { [r("class")]: l },
|
|
329
372
|
[r("viewBox")]: `0 0 ${i} ${a}`,
|
|
@@ -345,8 +388,8 @@ function E(e, t = {}) {
|
|
|
345
388
|
}
|
|
346
389
|
//#endregion
|
|
347
390
|
//#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
|
|
348
|
-
function
|
|
349
|
-
return
|
|
391
|
+
function E(e, t = {}) {
|
|
392
|
+
return T(e, {
|
|
350
393
|
...t,
|
|
351
394
|
attributeNames: {
|
|
352
395
|
...t.attributeNames,
|
|
@@ -360,44 +403,44 @@ function D(e, t = {}) {
|
|
|
360
403
|
}
|
|
361
404
|
//#endregion
|
|
362
405
|
//#region node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
|
|
363
|
-
var
|
|
406
|
+
var te = (e) => {
|
|
364
407
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
365
408
|
return !1;
|
|
366
|
-
},
|
|
409
|
+
}, D = n({}), ne = () => o(D), O = i(({ color: e, size: t, width: n, height: i, strokeWidth: a, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
|
|
367
410
|
node: u,
|
|
368
411
|
aliases: [],
|
|
369
412
|
size: 24
|
|
370
413
|
}, ...f }, p) => {
|
|
371
|
-
let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } =
|
|
414
|
+
let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = ne() ?? {}, ee = !!l || te(f), [b, x, C = []] = E(d, {
|
|
372
415
|
color: e ?? v,
|
|
373
416
|
width: n ?? t ?? m,
|
|
374
417
|
height: i ?? t ?? m,
|
|
375
418
|
strokeWidth: a ?? h,
|
|
376
419
|
absoluteStrokeWidth: o ?? g,
|
|
377
420
|
nonScalingStroke: s ?? _,
|
|
378
|
-
className:
|
|
379
|
-
hasA11yProp:
|
|
421
|
+
className: S(y, c),
|
|
422
|
+
hasA11yProp: ee,
|
|
380
423
|
attributes: f
|
|
381
424
|
});
|
|
382
|
-
return r(
|
|
425
|
+
return r(b, {
|
|
383
426
|
ref: p,
|
|
384
|
-
...
|
|
385
|
-
}, [...
|
|
427
|
+
...x
|
|
428
|
+
}, [...C.map(([e, t]) => r(e, t)), ...Array.isArray(l) ? l : [l]]);
|
|
386
429
|
});
|
|
387
430
|
//#endregion
|
|
388
431
|
//#region node_modules/lucide-react/dist/esm/createLucideIcon.mjs
|
|
389
|
-
function
|
|
390
|
-
let a = typeof e == "string" ?
|
|
432
|
+
function k(e, t = [], n = []) {
|
|
433
|
+
let a = typeof e == "string" ? ee(e, t, n) : e, o = i(({ className: e, ...t }, n) => r(O, {
|
|
391
434
|
ref: n,
|
|
392
435
|
icon: a,
|
|
393
436
|
className: e,
|
|
394
437
|
...t
|
|
395
438
|
}));
|
|
396
|
-
return a.name && (o.displayName =
|
|
439
|
+
return a.name && (o.displayName = x(a.name)), o;
|
|
397
440
|
}
|
|
398
441
|
//#endregion
|
|
399
442
|
//#region node_modules/lucide-react/dist/esm/icons/arrow-left.mjs
|
|
400
|
-
var
|
|
443
|
+
var A = {
|
|
401
444
|
name: "arrow-left",
|
|
402
445
|
size: 24,
|
|
403
446
|
node: [["path", {
|
|
@@ -408,8 +451,64 @@ var N = {
|
|
|
408
451
|
key: "x3x0zl"
|
|
409
452
|
}]]
|
|
410
453
|
};
|
|
454
|
+
A.node;
|
|
455
|
+
var j = k(A), M = {
|
|
456
|
+
name: "arrow-right",
|
|
457
|
+
size: 24,
|
|
458
|
+
node: [["path", {
|
|
459
|
+
d: "M5 12h14",
|
|
460
|
+
key: "1ays0h"
|
|
461
|
+
}], ["path", {
|
|
462
|
+
d: "m12 5 7 7-7 7",
|
|
463
|
+
key: "xquz4c"
|
|
464
|
+
}]]
|
|
465
|
+
};
|
|
466
|
+
M.node;
|
|
467
|
+
var re = k(M), N = {
|
|
468
|
+
name: "briefcase",
|
|
469
|
+
size: 24,
|
|
470
|
+
node: [["path", {
|
|
471
|
+
d: "M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",
|
|
472
|
+
key: "jecpp"
|
|
473
|
+
}], ["rect", {
|
|
474
|
+
width: "20",
|
|
475
|
+
height: "14",
|
|
476
|
+
x: "2",
|
|
477
|
+
y: "6",
|
|
478
|
+
rx: "2",
|
|
479
|
+
key: "i6l2r4"
|
|
480
|
+
}]]
|
|
481
|
+
};
|
|
411
482
|
N.node;
|
|
412
|
-
var
|
|
483
|
+
var ie = k(N), P = {
|
|
484
|
+
name: "building-complex",
|
|
485
|
+
size: 24,
|
|
486
|
+
node: [
|
|
487
|
+
["path", {
|
|
488
|
+
d: "M10 12h4",
|
|
489
|
+
key: "a56b0p"
|
|
490
|
+
}],
|
|
491
|
+
["path", {
|
|
492
|
+
d: "M10 8h4",
|
|
493
|
+
key: "1sr2af"
|
|
494
|
+
}],
|
|
495
|
+
["path", {
|
|
496
|
+
d: "M14 21v-3a2 2 0 0 0-4 0v3",
|
|
497
|
+
key: "1rgiei"
|
|
498
|
+
}],
|
|
499
|
+
["path", {
|
|
500
|
+
d: "M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",
|
|
501
|
+
key: "secmi2"
|
|
502
|
+
}],
|
|
503
|
+
["path", {
|
|
504
|
+
d: "M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",
|
|
505
|
+
key: "16ra0t"
|
|
506
|
+
}]
|
|
507
|
+
],
|
|
508
|
+
aliases: ["building-2"]
|
|
509
|
+
};
|
|
510
|
+
P.node;
|
|
511
|
+
var ae = k(P), F = {
|
|
413
512
|
name: "check",
|
|
414
513
|
size: 24,
|
|
415
514
|
node: [["path", {
|
|
@@ -418,7 +517,16 @@ var P = M(N), F = {
|
|
|
418
517
|
}]]
|
|
419
518
|
};
|
|
420
519
|
F.node;
|
|
421
|
-
var I =
|
|
520
|
+
var I = k(F), oe = {
|
|
521
|
+
name: "chevron-down",
|
|
522
|
+
size: 24,
|
|
523
|
+
node: [["path", {
|
|
524
|
+
d: "m6 9 6 6 6-6",
|
|
525
|
+
key: "qrunsl"
|
|
526
|
+
}]]
|
|
527
|
+
};
|
|
528
|
+
oe.node;
|
|
529
|
+
var se = k(oe), ce = {
|
|
422
530
|
name: "circle-alert",
|
|
423
531
|
size: 24,
|
|
424
532
|
node: [
|
|
@@ -445,8 +553,8 @@ var I = M(F), L = {
|
|
|
445
553
|
],
|
|
446
554
|
aliases: ["alert-circle"]
|
|
447
555
|
};
|
|
448
|
-
|
|
449
|
-
var
|
|
556
|
+
ce.node;
|
|
557
|
+
var L = k(ce), R = {
|
|
450
558
|
name: "circle-check-big",
|
|
451
559
|
size: 24,
|
|
452
560
|
node: [["path", {
|
|
@@ -458,8 +566,37 @@ var R = M(L), z = {
|
|
|
458
566
|
}]],
|
|
459
567
|
aliases: ["check-circle"]
|
|
460
568
|
};
|
|
461
|
-
|
|
462
|
-
var
|
|
569
|
+
R.node;
|
|
570
|
+
var z = k(R), B = {
|
|
571
|
+
name: "circle-check",
|
|
572
|
+
size: 24,
|
|
573
|
+
node: [["circle", {
|
|
574
|
+
cx: "12",
|
|
575
|
+
cy: "12",
|
|
576
|
+
r: "10",
|
|
577
|
+
key: "1mglay"
|
|
578
|
+
}], ["path", {
|
|
579
|
+
d: "m16 9-5.5 5.5L8 12",
|
|
580
|
+
key: "xofnsj"
|
|
581
|
+
}]],
|
|
582
|
+
aliases: ["check-circle-2"]
|
|
583
|
+
};
|
|
584
|
+
B.node;
|
|
585
|
+
var le = k(B), V = {
|
|
586
|
+
name: "clock",
|
|
587
|
+
size: 24,
|
|
588
|
+
node: [["circle", {
|
|
589
|
+
cx: "12",
|
|
590
|
+
cy: "12",
|
|
591
|
+
r: "10",
|
|
592
|
+
key: "1mglay"
|
|
593
|
+
}], ["path", {
|
|
594
|
+
d: "M12 6v6l4 2",
|
|
595
|
+
key: "mmk7yg"
|
|
596
|
+
}]]
|
|
597
|
+
};
|
|
598
|
+
V.node;
|
|
599
|
+
var H = k(V), U = {
|
|
463
600
|
name: "credit-card",
|
|
464
601
|
size: 24,
|
|
465
602
|
node: [
|
|
@@ -484,8 +621,8 @@ var ee = M(z), B = {
|
|
|
484
621
|
}]
|
|
485
622
|
]
|
|
486
623
|
};
|
|
487
|
-
|
|
488
|
-
var
|
|
624
|
+
U.node;
|
|
625
|
+
var ue = k(U), W = {
|
|
489
626
|
name: "external-link",
|
|
490
627
|
size: 24,
|
|
491
628
|
node: [
|
|
@@ -503,8 +640,8 @@ var te = M(B), V = {
|
|
|
503
640
|
}]
|
|
504
641
|
]
|
|
505
642
|
};
|
|
506
|
-
|
|
507
|
-
var
|
|
643
|
+
W.node;
|
|
644
|
+
var de = k(W), G = {
|
|
508
645
|
name: "file-text",
|
|
509
646
|
size: 24,
|
|
510
647
|
node: [
|
|
@@ -530,8 +667,57 @@ var ne = M(V), H = {
|
|
|
530
667
|
}]
|
|
531
668
|
]
|
|
532
669
|
};
|
|
533
|
-
|
|
534
|
-
var
|
|
670
|
+
G.node;
|
|
671
|
+
var K = k(G), q = {
|
|
672
|
+
name: "folder-open",
|
|
673
|
+
size: 24,
|
|
674
|
+
node: [["path", {
|
|
675
|
+
d: "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",
|
|
676
|
+
key: "usdka0"
|
|
677
|
+
}]]
|
|
678
|
+
};
|
|
679
|
+
q.node;
|
|
680
|
+
var J = k(q), Y = {
|
|
681
|
+
name: "graduation-cap",
|
|
682
|
+
size: 24,
|
|
683
|
+
node: [
|
|
684
|
+
["path", {
|
|
685
|
+
d: "M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",
|
|
686
|
+
key: "j76jl0"
|
|
687
|
+
}],
|
|
688
|
+
["path", {
|
|
689
|
+
d: "M22 10v6",
|
|
690
|
+
key: "1lu8f3"
|
|
691
|
+
}],
|
|
692
|
+
["path", {
|
|
693
|
+
d: "M6 12.5V16a6 3 0 0 0 12 0v-3.5",
|
|
694
|
+
key: "1r8lef"
|
|
695
|
+
}]
|
|
696
|
+
]
|
|
697
|
+
};
|
|
698
|
+
Y.node;
|
|
699
|
+
var fe = k(Y), X = {
|
|
700
|
+
name: "info",
|
|
701
|
+
size: 24,
|
|
702
|
+
node: [
|
|
703
|
+
["circle", {
|
|
704
|
+
cx: "12",
|
|
705
|
+
cy: "12",
|
|
706
|
+
r: "10",
|
|
707
|
+
key: "1mglay"
|
|
708
|
+
}],
|
|
709
|
+
["path", {
|
|
710
|
+
d: "M12 16v-4",
|
|
711
|
+
key: "1dtifu"
|
|
712
|
+
}],
|
|
713
|
+
["path", {
|
|
714
|
+
d: "M12 8h.01",
|
|
715
|
+
key: "e9boi3"
|
|
716
|
+
}]
|
|
717
|
+
]
|
|
718
|
+
};
|
|
719
|
+
X.node;
|
|
720
|
+
var pe = k(X), me = {
|
|
535
721
|
name: "key",
|
|
536
722
|
size: 24,
|
|
537
723
|
node: [
|
|
@@ -551,8 +737,8 @@ var U = M(H), W = {
|
|
|
551
737
|
}]
|
|
552
738
|
]
|
|
553
739
|
};
|
|
554
|
-
|
|
555
|
-
var
|
|
740
|
+
me.node;
|
|
741
|
+
var he = k(me), ge = {
|
|
556
742
|
name: "lock",
|
|
557
743
|
size: 24,
|
|
558
744
|
node: [["rect", {
|
|
@@ -568,8 +754,8 @@ var G = M(W), K = {
|
|
|
568
754
|
key: "fwvmzm"
|
|
569
755
|
}]]
|
|
570
756
|
};
|
|
571
|
-
|
|
572
|
-
var
|
|
757
|
+
ge.node;
|
|
758
|
+
var _e = k(ge), ve = {
|
|
573
759
|
name: "log-out",
|
|
574
760
|
size: 24,
|
|
575
761
|
node: [
|
|
@@ -587,8 +773,8 @@ var q = M(K), J = {
|
|
|
587
773
|
}]
|
|
588
774
|
]
|
|
589
775
|
};
|
|
590
|
-
|
|
591
|
-
var
|
|
776
|
+
ve.node;
|
|
777
|
+
var Z = k(ve), ye = {
|
|
592
778
|
name: "mail",
|
|
593
779
|
size: 24,
|
|
594
780
|
node: [["path", {
|
|
@@ -603,8 +789,22 @@ var Y = M(J), X = {
|
|
|
603
789
|
key: "izxlao"
|
|
604
790
|
}]]
|
|
605
791
|
};
|
|
606
|
-
|
|
607
|
-
var
|
|
792
|
+
ye.node;
|
|
793
|
+
var Q = k(ye), be = {
|
|
794
|
+
name: "map-pin",
|
|
795
|
+
size: 24,
|
|
796
|
+
node: [["path", {
|
|
797
|
+
d: "M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",
|
|
798
|
+
key: "1r0f0z"
|
|
799
|
+
}], ["circle", {
|
|
800
|
+
cx: "12",
|
|
801
|
+
cy: "10",
|
|
802
|
+
r: "3",
|
|
803
|
+
key: "ilqhr7"
|
|
804
|
+
}]]
|
|
805
|
+
};
|
|
806
|
+
be.node;
|
|
807
|
+
var xe = k(be), Se = {
|
|
608
808
|
name: "maximize-2",
|
|
609
809
|
size: 24,
|
|
610
810
|
node: [
|
|
@@ -626,8 +826,8 @@ var re = M(X), ie = {
|
|
|
626
826
|
}]
|
|
627
827
|
]
|
|
628
828
|
};
|
|
629
|
-
|
|
630
|
-
var
|
|
829
|
+
Se.node;
|
|
830
|
+
var Ce = k(Se), we = {
|
|
631
831
|
name: "minimize-2",
|
|
632
832
|
size: 24,
|
|
633
833
|
node: [
|
|
@@ -649,8 +849,8 @@ var ae = M(ie), Z = {
|
|
|
649
849
|
}]
|
|
650
850
|
]
|
|
651
851
|
};
|
|
652
|
-
|
|
653
|
-
var
|
|
852
|
+
we.node;
|
|
853
|
+
var Te = k(we), Ee = {
|
|
654
854
|
name: "move",
|
|
655
855
|
size: 24,
|
|
656
856
|
node: [
|
|
@@ -680,8 +880,8 @@ var oe = M(Z), Q = {
|
|
|
680
880
|
}]
|
|
681
881
|
]
|
|
682
882
|
};
|
|
683
|
-
|
|
684
|
-
var
|
|
883
|
+
Ee.node;
|
|
884
|
+
var De = k(Ee), Oe = {
|
|
685
885
|
name: "package-check",
|
|
686
886
|
size: 24,
|
|
687
887
|
node: [
|
|
@@ -707,8 +907,17 @@ var se = M(Q), ce = {
|
|
|
707
907
|
}]
|
|
708
908
|
]
|
|
709
909
|
};
|
|
710
|
-
|
|
711
|
-
var
|
|
910
|
+
Oe.node;
|
|
911
|
+
var ke = k(Oe), Ae = {
|
|
912
|
+
name: "phone",
|
|
913
|
+
size: 24,
|
|
914
|
+
node: [["path", {
|
|
915
|
+
d: "M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",
|
|
916
|
+
key: "9njp5v"
|
|
917
|
+
}]]
|
|
918
|
+
};
|
|
919
|
+
Ae.node;
|
|
920
|
+
var je = k(Ae), Me = {
|
|
712
921
|
name: "receipt",
|
|
713
922
|
size: 24,
|
|
714
923
|
node: [
|
|
@@ -726,8 +935,71 @@ var le = M(ce), ue = {
|
|
|
726
935
|
}]
|
|
727
936
|
]
|
|
728
937
|
};
|
|
729
|
-
|
|
730
|
-
var
|
|
938
|
+
Me.node;
|
|
939
|
+
var Ne = k(Me), Pe = {
|
|
940
|
+
name: "search",
|
|
941
|
+
size: 24,
|
|
942
|
+
node: [["path", {
|
|
943
|
+
d: "m21 21-4.34-4.34",
|
|
944
|
+
key: "14j7rj"
|
|
945
|
+
}], ["circle", {
|
|
946
|
+
cx: "11",
|
|
947
|
+
cy: "11",
|
|
948
|
+
r: "8",
|
|
949
|
+
key: "4ej97u"
|
|
950
|
+
}]]
|
|
951
|
+
};
|
|
952
|
+
Pe.node;
|
|
953
|
+
var Fe = k(Pe), Ie = {
|
|
954
|
+
name: "sparkles",
|
|
955
|
+
size: 24,
|
|
956
|
+
node: [
|
|
957
|
+
["path", {
|
|
958
|
+
d: "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",
|
|
959
|
+
key: "1s2grr"
|
|
960
|
+
}],
|
|
961
|
+
["path", {
|
|
962
|
+
d: "M20 2v4",
|
|
963
|
+
key: "1rf3ol"
|
|
964
|
+
}],
|
|
965
|
+
["path", {
|
|
966
|
+
d: "M22 4h-4",
|
|
967
|
+
key: "gwowj6"
|
|
968
|
+
}],
|
|
969
|
+
["circle", {
|
|
970
|
+
cx: "4",
|
|
971
|
+
cy: "20",
|
|
972
|
+
r: "2",
|
|
973
|
+
key: "6kqj1y"
|
|
974
|
+
}]
|
|
975
|
+
],
|
|
976
|
+
aliases: ["stars"]
|
|
977
|
+
};
|
|
978
|
+
Ie.node;
|
|
979
|
+
var Le = k(Ie), Re = {
|
|
980
|
+
name: "ticket",
|
|
981
|
+
size: 24,
|
|
982
|
+
node: [
|
|
983
|
+
["path", {
|
|
984
|
+
d: "M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",
|
|
985
|
+
key: "qn84l0"
|
|
986
|
+
}],
|
|
987
|
+
["path", {
|
|
988
|
+
d: "M13 5v2",
|
|
989
|
+
key: "dyzc3o"
|
|
990
|
+
}],
|
|
991
|
+
["path", {
|
|
992
|
+
d: "M13 17v2",
|
|
993
|
+
key: "1ont0d"
|
|
994
|
+
}],
|
|
995
|
+
["path", {
|
|
996
|
+
d: "M13 11v2",
|
|
997
|
+
key: "1wjjxi"
|
|
998
|
+
}]
|
|
999
|
+
]
|
|
1000
|
+
};
|
|
1001
|
+
Re.node;
|
|
1002
|
+
var ze = k(Re), Be = {
|
|
731
1003
|
name: "trash",
|
|
732
1004
|
size: 24,
|
|
733
1005
|
node: [
|
|
@@ -754,8 +1026,8 @@ var de = M(ue), $ = {
|
|
|
754
1026
|
],
|
|
755
1027
|
aliases: ["trash-2"]
|
|
756
1028
|
};
|
|
757
|
-
|
|
758
|
-
var
|
|
1029
|
+
Be.node;
|
|
1030
|
+
var Ve = k(Be), He = {
|
|
759
1031
|
name: "upload",
|
|
760
1032
|
size: 24,
|
|
761
1033
|
node: [
|
|
@@ -773,8 +1045,22 @@ var fe = M($), pe = {
|
|
|
773
1045
|
}]
|
|
774
1046
|
]
|
|
775
1047
|
};
|
|
776
|
-
|
|
777
|
-
var
|
|
1048
|
+
He.node;
|
|
1049
|
+
var Ue = k(He), We = {
|
|
1050
|
+
name: "user",
|
|
1051
|
+
size: 24,
|
|
1052
|
+
node: [["path", {
|
|
1053
|
+
d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",
|
|
1054
|
+
key: "975kel"
|
|
1055
|
+
}], ["circle", {
|
|
1056
|
+
cx: "12",
|
|
1057
|
+
cy: "7",
|
|
1058
|
+
r: "4",
|
|
1059
|
+
key: "17ys0d"
|
|
1060
|
+
}]]
|
|
1061
|
+
};
|
|
1062
|
+
We.node;
|
|
1063
|
+
var Ge = k(We), Ke = {
|
|
778
1064
|
name: "x",
|
|
779
1065
|
size: 24,
|
|
780
1066
|
node: [["path", {
|
|
@@ -785,9 +1071,9 @@ var me = M(pe), he = {
|
|
|
785
1071
|
key: "d8bk6v"
|
|
786
1072
|
}]]
|
|
787
1073
|
};
|
|
788
|
-
|
|
789
|
-
var
|
|
790
|
-
let [
|
|
1074
|
+
Ke.node;
|
|
1075
|
+
var $ = k(Ke), qe = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode: i, isExpanded: a, onToggleExpand: o, onClose: c, onChange: l, initialValues: u, isDark: h = !1, apiClient: g, storage: _, onError: v, onEvent: y, backgroundImage: ee, ticketType: b, showReviewFields: x = !1 }) => {
|
|
1076
|
+
let [S, C] = d(u || {}), [w, T] = d(null), [E, te] = d(null), [D, ne] = d({}), [O, k] = d({}), [A, M] = d(null), [re, N] = d(null), [ie, P] = d({}), [ae, F] = d({}), [oe, ce] = d({}), [L, R] = d({}), z = r?.primaryColor || "#c026d3", B = (t) => {
|
|
791
1077
|
let n = e?.review_fields;
|
|
792
1078
|
if (!Array.isArray(n) || n.length === 0) return !1;
|
|
793
1079
|
let r = t.label ? t.label.toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "") : "";
|
|
@@ -800,7 +1086,7 @@ var ge = M(he), _e = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode
|
|
|
800
1086
|
};
|
|
801
1087
|
s(() => {
|
|
802
1088
|
if (u && Object.keys(u).length > 0) {
|
|
803
|
-
|
|
1089
|
+
C((e) => ({
|
|
804
1090
|
...u,
|
|
805
1091
|
...e
|
|
806
1092
|
}));
|
|
@@ -810,90 +1096,90 @@ var ge = M(he), _e = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode
|
|
|
810
1096
|
let r = u[e.id];
|
|
811
1097
|
r && (String(r).startsWith("http://") || String(r).startsWith("https://") ? n[e.id] = String(r) : t[e.id] = String(r));
|
|
812
1098
|
}
|
|
813
|
-
}), Object.keys(t).length > 0 &&
|
|
1099
|
+
}), Object.keys(t).length > 0 && ne((e) => ({
|
|
814
1100
|
...t,
|
|
815
1101
|
...e
|
|
816
|
-
})), Object.keys(n).length > 0 &&
|
|
1102
|
+
})), Object.keys(n).length > 0 && k((e) => ({
|
|
817
1103
|
...n,
|
|
818
1104
|
...e
|
|
819
1105
|
}));
|
|
820
1106
|
}
|
|
821
1107
|
}, [u, e]);
|
|
822
|
-
let
|
|
823
|
-
|
|
1108
|
+
let le = (e, t) => {
|
|
1109
|
+
C((n) => {
|
|
824
1110
|
let r = {
|
|
825
1111
|
...n,
|
|
826
1112
|
[e]: t
|
|
827
1113
|
};
|
|
828
1114
|
return l?.(r), r;
|
|
829
1115
|
});
|
|
830
|
-
},
|
|
831
|
-
if (!
|
|
1116
|
+
}, V = async (t, n) => {
|
|
1117
|
+
if (!g) return;
|
|
832
1118
|
let r = (e?.fields || []).find((e) => e.id === t);
|
|
833
|
-
if (r &&
|
|
834
|
-
|
|
1119
|
+
if (r && B(r)) {
|
|
1120
|
+
M("This field is under review and cannot be modified."), N(t);
|
|
835
1121
|
return;
|
|
836
1122
|
}
|
|
837
|
-
|
|
838
|
-
let i =
|
|
1123
|
+
T(t), M(null), N(null);
|
|
1124
|
+
let i = _?.getToken?.() || null, a = D[t];
|
|
839
1125
|
try {
|
|
840
|
-
let e = await
|
|
1126
|
+
let e = await g.uploadFile(n, i), r = e?.data?.asset_id || e?.asset_id, o = e?.data?.serve_url || e?.serve_url;
|
|
841
1127
|
if (!r && !o) throw Error("Upload response missing asset_id");
|
|
842
1128
|
let s = String(r || o), c = String(o || "");
|
|
843
|
-
if (
|
|
1129
|
+
if (ne((e) => ({
|
|
844
1130
|
...e,
|
|
845
1131
|
[t]: s
|
|
846
|
-
})), c &&
|
|
1132
|
+
})), c && k((e) => ({
|
|
847
1133
|
...e,
|
|
848
1134
|
[t]: c
|
|
849
|
-
})),
|
|
1135
|
+
})), C((e) => {
|
|
850
1136
|
let n = {
|
|
851
1137
|
...e,
|
|
852
1138
|
[t]: s
|
|
853
1139
|
};
|
|
854
1140
|
return l?.(n), n;
|
|
855
|
-
}),
|
|
1141
|
+
}), y?.("file_uploaded", {
|
|
856
1142
|
fieldId: t,
|
|
857
1143
|
assetId: s,
|
|
858
1144
|
serveUrl: c
|
|
859
1145
|
}), a && a !== s) try {
|
|
860
|
-
await
|
|
1146
|
+
await g.deleteFile(a, i), y?.("file_deleted", {
|
|
861
1147
|
fieldId: t,
|
|
862
1148
|
assetId: a
|
|
863
1149
|
});
|
|
864
1150
|
} catch (e) {
|
|
865
|
-
console.warn("
|
|
1151
|
+
console.warn("[DynamicForm] Could not delete old file", e);
|
|
866
1152
|
}
|
|
867
1153
|
} catch (e) {
|
|
868
1154
|
let n = e?.message || "File upload failed. Please try again.";
|
|
869
|
-
|
|
1155
|
+
M(n), N(t), v?.({
|
|
870
1156
|
type: "file_upload_error",
|
|
871
1157
|
message: n,
|
|
872
1158
|
error: e
|
|
873
1159
|
});
|
|
874
1160
|
} finally {
|
|
875
|
-
|
|
1161
|
+
T(null);
|
|
876
1162
|
}
|
|
877
|
-
},
|
|
878
|
-
if (!
|
|
1163
|
+
}, H = async (t) => {
|
|
1164
|
+
if (!g) return;
|
|
879
1165
|
let n = (e?.fields || []).find((e) => e.id === t);
|
|
880
|
-
if (n &&
|
|
881
|
-
|
|
1166
|
+
if (n && B(n)) {
|
|
1167
|
+
M("This field is under review and cannot be modified."), N(t);
|
|
882
1168
|
return;
|
|
883
1169
|
}
|
|
884
|
-
let r =
|
|
885
|
-
|
|
1170
|
+
let r = _?.getToken?.() || null, i = D[t] || S[t];
|
|
1171
|
+
te(t), M(null), N(null);
|
|
886
1172
|
try {
|
|
887
|
-
i && (await
|
|
1173
|
+
i && (await g.deleteFile(i, r), y?.("file_deleted", {
|
|
888
1174
|
fieldId: t,
|
|
889
1175
|
assetId: i
|
|
890
|
-
})),
|
|
1176
|
+
})), ne((e) => {
|
|
891
1177
|
let n = { ...e };
|
|
892
1178
|
return delete n[t], n;
|
|
893
|
-
}),
|
|
1179
|
+
}), k((e) => {
|
|
894
1180
|
let n = { ...e };
|
|
895
1181
|
return delete n[t], n;
|
|
896
|
-
}),
|
|
1182
|
+
}), C((e) => {
|
|
897
1183
|
let n = {
|
|
898
1184
|
...e,
|
|
899
1185
|
[t]: ""
|
|
@@ -902,201 +1188,464 @@ var ge = M(he), _e = ({ schema: e, onSubmit: t, onBack: n, theme: r, displayMode
|
|
|
902
1188
|
});
|
|
903
1189
|
} catch (e) {
|
|
904
1190
|
let n = e?.message || "Failed to delete file. Please try again.";
|
|
905
|
-
|
|
1191
|
+
M(n), N(t), v?.({
|
|
906
1192
|
type: "file_delete_error",
|
|
907
1193
|
message: n,
|
|
908
1194
|
error: e
|
|
909
1195
|
});
|
|
910
1196
|
} finally {
|
|
911
|
-
|
|
1197
|
+
te(null);
|
|
912
1198
|
}
|
|
913
|
-
},
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
})]
|
|
940
|
-
})
|
|
941
|
-
})]
|
|
942
|
-
}), /* @__PURE__ */ m("form", {
|
|
943
|
-
onSubmit: (e) => {
|
|
944
|
-
e.preventDefault();
|
|
945
|
-
for (let e of R) if (e.type === "file" && e.required && !y[e.id]) {
|
|
946
|
-
A(`Please upload ${e.label || "a file"}`), M(e.id);
|
|
947
|
-
return;
|
|
1199
|
+
}, U = (e) => e?.is_review === !0 || e?.is_review === "true", ue = () => {
|
|
1200
|
+
let t = (e?.fields || []).find((e) => e.type === "email" || (e.label || e.id || "").toLowerCase().includes("email"));
|
|
1201
|
+
return String(t && S[t.id] || S.email || "").trim();
|
|
1202
|
+
}, W = async (e, t) => {
|
|
1203
|
+
if (!g) return;
|
|
1204
|
+
let n = e.id, r = t === "file" && ae[n] || null, i = t === "text" && oe[n] || "", a = (e) => {
|
|
1205
|
+
M(e), N(n);
|
|
1206
|
+
};
|
|
1207
|
+
if (B(e)) return a("This field is under review and cannot be modified.");
|
|
1208
|
+
if (!r && !i.trim()) return a(t === "file" ? "Please choose a file to upload." : "Please enter text to submit.");
|
|
1209
|
+
let o = ue();
|
|
1210
|
+
if (!o) return a("Please enter your email address above before submitting this field.");
|
|
1211
|
+
T(n), M(null), N(null);
|
|
1212
|
+
try {
|
|
1213
|
+
let t = await g.submitReviewSubmission({
|
|
1214
|
+
fieldLabel: e.label || e.name || n,
|
|
1215
|
+
file: r,
|
|
1216
|
+
text: i,
|
|
1217
|
+
email: o
|
|
1218
|
+
}), a = t?.url || t?.serve_url || t?.data?.url || t?.data?.serve_url || t?.submission?.file?.serve_url || t?.submission?.url || "";
|
|
1219
|
+
R((e) => ({
|
|
1220
|
+
...e,
|
|
1221
|
+
[n]: {
|
|
1222
|
+
url: a,
|
|
1223
|
+
fileName: r?.name,
|
|
1224
|
+
text: i.trim() || void 0
|
|
948
1225
|
}
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
1226
|
+
})), F((e) => {
|
|
1227
|
+
let t = { ...e };
|
|
1228
|
+
return delete t[n], t;
|
|
1229
|
+
}), y?.("review_submission_uploaded", {
|
|
1230
|
+
fieldId: n,
|
|
1231
|
+
fieldLabel: e.label,
|
|
1232
|
+
email: o,
|
|
1233
|
+
response: t
|
|
1234
|
+
});
|
|
1235
|
+
} catch (e) {
|
|
1236
|
+
let t = e?.message || "Submission failed. Please try again.";
|
|
1237
|
+
a(t), v?.({
|
|
1238
|
+
type: "file_upload_error",
|
|
1239
|
+
message: t,
|
|
1240
|
+
error: e
|
|
1241
|
+
});
|
|
1242
|
+
} finally {
|
|
1243
|
+
T(null);
|
|
1244
|
+
}
|
|
1245
|
+
}, G = (e?.fields || []).filter((e) => x || e?.is_review !== !0 && e?.is_review !== "true"), q = (e) => {
|
|
1246
|
+
if (e.description) return e.description;
|
|
1247
|
+
if (e.helperText) return e.helperText;
|
|
1248
|
+
let t = (e.label || e.id || "").toLowerCase(), n = e.type;
|
|
1249
|
+
return n === "email" || t.includes("email") || t.includes("mail") ? "Please enter a valid email address. Your abstract acknowledgement, review updates, and final communication will be sent to this mailbox." : n === "phone" || t.includes("phone") || t.includes("mobile") || t.includes("contact") ? "Please enter a valid mobile number for SMS confirmations and important notifications." : t.includes("council") || t.includes("registration no") || t.includes("mci") ? "Enter your State Medical Council or National Medical Commission registration number." : n === "file" || t.includes("file") || t.includes("upload") || t.includes("bonafide") || t.includes("abstract") ? "Upload your document (PDF, JPG, PNG up to 10MB) for registration review and verification." : t.includes("salutation") || t.includes("title") ? "Choose your professional title or academic prefix." : null;
|
|
1250
|
+
}, Y = (e, t) => {
|
|
1251
|
+
let n = O[e.id] || (S[e.id] && String(S[e.id]).startsWith("http") ? S[e.id] : "");
|
|
1252
|
+
return /* @__PURE__ */ p("div", {
|
|
1253
|
+
className: "space-y-2 mt-2",
|
|
1254
|
+
children: /* @__PURE__ */ m("div", {
|
|
1255
|
+
className: `p-4 rounded-xl border border-dashed transition-all ${h ? "bg-zinc-850/80 border-zinc-700 hover:border-zinc-600" : "bg-[#faf4f8] border-[#f0e2ed] hover:border-pink-300"}`,
|
|
1256
|
+
children: [
|
|
1257
|
+
/* @__PURE__ */ m("div", {
|
|
1258
|
+
className: "flex items-center justify-between gap-3 flex-wrap",
|
|
964
1259
|
children: [/* @__PURE__ */ m("div", {
|
|
965
|
-
className: "flex items-center
|
|
966
|
-
children: [/* @__PURE__ */
|
|
967
|
-
className:
|
|
1260
|
+
className: "flex items-center gap-3",
|
|
1261
|
+
children: [/* @__PURE__ */ p("div", {
|
|
1262
|
+
className: "w-10 h-10 rounded-xl flex items-center justify-center shrink-0 border",
|
|
1263
|
+
style: {
|
|
1264
|
+
backgroundColor: h ? "rgba(255,255,255,0.06)" : `color-mix(in srgb, ${z} 10%, white)`,
|
|
1265
|
+
borderColor: h ? "rgba(255,255,255,0.12)" : `color-mix(in srgb, ${z} 25%, white)`,
|
|
1266
|
+
color: z
|
|
1267
|
+
},
|
|
1268
|
+
children: /* @__PURE__ */ p(J, { size: 18 })
|
|
1269
|
+
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
|
|
1270
|
+
className: `text-xs font-bold ${h ? "text-zinc-200" : "text-gray-900"}`,
|
|
1271
|
+
children: e.label
|
|
1272
|
+
}), /* @__PURE__ */ p("p", {
|
|
1273
|
+
className: `text-2xs font-medium ${h ? "text-zinc-400" : "text-gray-500"}`,
|
|
1274
|
+
children: n ? "Document attached successfully" : "Click to choose or upload your document (PDF, JPG, PNG)"
|
|
1275
|
+
})] })]
|
|
1276
|
+
}), /* @__PURE__ */ m("div", {
|
|
1277
|
+
className: "flex items-center gap-2",
|
|
1278
|
+
children: [!t && /* @__PURE__ */ m("label", {
|
|
1279
|
+
className: "cursor-pointer relative",
|
|
1280
|
+
children: [/* @__PURE__ */ p("input", {
|
|
1281
|
+
type: "file",
|
|
1282
|
+
className: "hidden",
|
|
1283
|
+
style: { display: "none" },
|
|
1284
|
+
tabIndex: -1,
|
|
1285
|
+
disabled: w === e.id || E === e.id,
|
|
1286
|
+
onChange: (t) => {
|
|
1287
|
+
let n = t.target.files?.[0];
|
|
1288
|
+
n && V(e.id, n), t.target.value = "";
|
|
1289
|
+
}
|
|
1290
|
+
}), /* @__PURE__ */ m("div", {
|
|
1291
|
+
className: `flex items-center gap-1.5 py-2 px-3.5 rounded-xl text-xs font-semibold border transition-all shadow-2xs ${h ? "border-zinc-700 hover:border-zinc-600 text-zinc-200 bg-zinc-800 hover:bg-zinc-750" : "border-pink-200/80 hover:border-pink-300 text-gray-800 bg-white hover:bg-gray-50"}`,
|
|
1292
|
+
children: [/* @__PURE__ */ p(Ue, {
|
|
1293
|
+
size: 14,
|
|
1294
|
+
style: { color: z }
|
|
1295
|
+
}), /* @__PURE__ */ p("span", { children: w === e.id ? "Uploading..." : n ? "Replace File" : "Choose File" })]
|
|
1296
|
+
})]
|
|
1297
|
+
}), n && typeof n == "string" && n.trim() !== "" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("button", {
|
|
1298
|
+
type: "button",
|
|
1299
|
+
onClick: () => window.open(n, "_blank", "noopener,noreferrer"),
|
|
1300
|
+
className: "flex items-center gap-1.5 py-2 px-3.5 rounded-xl text-xs font-semibold text-white shadow-xs transition-opacity hover:opacity-90 shrink-0 cursor-pointer",
|
|
1301
|
+
style: { backgroundColor: z },
|
|
1302
|
+
title: "Open file in new tab",
|
|
968
1303
|
children: [
|
|
969
|
-
|
|
970
|
-
" ",
|
|
971
|
-
|
|
972
|
-
style: { color: N },
|
|
973
|
-
children: "*"
|
|
974
|
-
})
|
|
1304
|
+
/* @__PURE__ */ p(K, { size: 13 }),
|
|
1305
|
+
/* @__PURE__ */ p("span", { children: "View" }),
|
|
1306
|
+
/* @__PURE__ */ p(de, { size: 11 })
|
|
975
1307
|
]
|
|
976
|
-
}), t && /* @__PURE__ */ m("
|
|
977
|
-
|
|
978
|
-
|
|
1308
|
+
}), !t && /* @__PURE__ */ m("button", {
|
|
1309
|
+
type: "button",
|
|
1310
|
+
disabled: E === e.id || w === e.id,
|
|
1311
|
+
onClick: () => H(e.id),
|
|
1312
|
+
className: `flex items-center gap-1 py-2 px-3 rounded-xl text-xs font-semibold border transition-colors cursor-pointer ${h ? "border-red-900/60 bg-red-950/50 text-red-400 hover:bg-red-900/60" : "border-red-200 bg-red-50 text-red-600 hover:bg-red-100"}`,
|
|
1313
|
+
title: "Delete uploaded file",
|
|
1314
|
+
children: [/* @__PURE__ */ p(Ve, { size: 13 }), /* @__PURE__ */ p("span", { children: E === e.id ? "Deleting..." : "Delete" })]
|
|
1315
|
+
})] })]
|
|
1316
|
+
})]
|
|
1317
|
+
}),
|
|
1318
|
+
n && /* @__PURE__ */ m("div", {
|
|
1319
|
+
className: `mt-2.5 pt-2 border-t text-2xs truncate flex items-center gap-1.5 ${h ? "border-zinc-800 text-zinc-300" : "border-gray-200 text-gray-700 font-medium"}`,
|
|
1320
|
+
children: [/* @__PURE__ */ p(I, {
|
|
1321
|
+
size: 12,
|
|
1322
|
+
className: "text-emerald-500 shrink-0"
|
|
1323
|
+
}), /* @__PURE__ */ m("span", {
|
|
1324
|
+
className: "truncate",
|
|
1325
|
+
children: ["Attached: ", n]
|
|
1326
|
+
})]
|
|
1327
|
+
}),
|
|
1328
|
+
A && re === e.id && /* @__PURE__ */ p("div", {
|
|
1329
|
+
className: "text-xs text-red-500 mt-2 font-medium",
|
|
1330
|
+
children: A
|
|
1331
|
+
})
|
|
1332
|
+
]
|
|
1333
|
+
})
|
|
1334
|
+
});
|
|
1335
|
+
}, fe = (e, t) => {
|
|
1336
|
+
let n = ie[e.id] || "file", r = ae[e.id], i = oe[e.id] || "", a = L[e.id], o = w === e.id, s = n === "file" ? !!r : i.trim() !== "";
|
|
1337
|
+
return /* @__PURE__ */ p("div", {
|
|
1338
|
+
className: "space-y-2 mt-2",
|
|
1339
|
+
children: /* @__PURE__ */ m("div", {
|
|
1340
|
+
className: `p-4 rounded-xl border border-dashed transition-all ${h ? "bg-zinc-850/80 border-zinc-700" : "bg-[#faf4f8] border-[#f0e2ed]"}`,
|
|
1341
|
+
children: [
|
|
1342
|
+
/* @__PURE__ */ m("div", {
|
|
1343
|
+
className: "flex items-center justify-between gap-3 flex-wrap",
|
|
1344
|
+
children: [/* @__PURE__ */ m("div", {
|
|
1345
|
+
className: "flex items-center gap-3",
|
|
1346
|
+
children: [/* @__PURE__ */ p("div", {
|
|
1347
|
+
className: "w-10 h-10 rounded-xl flex items-center justify-center shrink-0 border",
|
|
1348
|
+
style: {
|
|
1349
|
+
backgroundColor: h ? "rgba(255,255,255,0.06)" : `color-mix(in srgb, ${z} 10%, white)`,
|
|
1350
|
+
borderColor: h ? "rgba(255,255,255,0.12)" : `color-mix(in srgb, ${z} 25%, white)`,
|
|
1351
|
+
color: z
|
|
1352
|
+
},
|
|
1353
|
+
children: /* @__PURE__ */ p(J, { size: 18 })
|
|
1354
|
+
}), /* @__PURE__ */ p("p", {
|
|
1355
|
+
className: `text-2xs font-medium ${h ? "text-zinc-400" : "text-gray-500"}`,
|
|
1356
|
+
children: a ? "Submitted successfully" : n === "file" ? "Upload your document (PDF, JPG, PNG)" : "Enter your text below"
|
|
979
1357
|
})]
|
|
980
|
-
}),
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
},
|
|
992
|
-
onChange: (t) => F(e.id, t.target.value),
|
|
993
|
-
children: [/* @__PURE__ */ p("option", {
|
|
994
|
-
value: "",
|
|
995
|
-
className: f ? "bg-zinc-900 text-white" : "",
|
|
996
|
-
children: e.placeholder || "Select..."
|
|
997
|
-
}), e.options?.map((e) => /* @__PURE__ */ p("option", {
|
|
998
|
-
value: e,
|
|
999
|
-
className: f ? "bg-zinc-900 text-white" : "",
|
|
1000
|
-
children: e
|
|
1001
|
-
}, e))]
|
|
1002
|
-
}) : e.type === "file" ? /* @__PURE__ */ m("div", {
|
|
1003
|
-
className: "flex flex-col space-y-2",
|
|
1004
|
-
children: [
|
|
1005
|
-
/* @__PURE__ */ m("div", {
|
|
1006
|
-
className: "flex items-center gap-2 flex-wrap",
|
|
1007
|
-
children: [
|
|
1008
|
-
!t && /* @__PURE__ */ m("label", {
|
|
1009
|
-
className: `border border-dashed rounded-lg p-2.5 flex items-center justify-center gap-2 cursor-pointer transition-all hover:border-solid ${f ? "bg-zinc-900/60 border-zinc-700 hover:border-zinc-500 text-zinc-300" : "bg-gray-50 border-gray-300 hover:border-gray-400 text-gray-700"} ${x === e.id ? "opacity-60 pointer-events-none" : ""}`,
|
|
1010
|
-
style: { minWidth: "170px" },
|
|
1011
|
-
children: [
|
|
1012
|
-
/* @__PURE__ */ p("input", {
|
|
1013
|
-
type: "file",
|
|
1014
|
-
className: "hidden",
|
|
1015
|
-
disabled: x === e.id || C === e.id,
|
|
1016
|
-
onChange: (t) => {
|
|
1017
|
-
let n = t.target.files?.[0];
|
|
1018
|
-
n && I(e.id, n), t.target.value = "";
|
|
1019
|
-
}
|
|
1020
|
-
}),
|
|
1021
|
-
/* @__PURE__ */ p(me, {
|
|
1022
|
-
size: 14,
|
|
1023
|
-
className: f ? "text-zinc-400" : "text-gray-500"
|
|
1024
|
-
}),
|
|
1025
|
-
/* @__PURE__ */ p("span", {
|
|
1026
|
-
className: "text-xs font-medium",
|
|
1027
|
-
children: x === e.id ? "Uploading..." : "Choose File to Upload"
|
|
1028
|
-
})
|
|
1029
|
-
]
|
|
1030
|
-
}),
|
|
1031
|
-
(D[e.id] || y[e.id] && String(y[e.id]).startsWith("http")) && /* @__PURE__ */ m("button", {
|
|
1032
|
-
type: "button",
|
|
1033
|
-
onClick: () => {
|
|
1034
|
-
let t = D[e.id] || y[e.id];
|
|
1035
|
-
t && typeof t == "string" && window.open(t, "_blank", "noopener,noreferrer");
|
|
1036
|
-
},
|
|
1037
|
-
style: { backgroundColor: N },
|
|
1038
|
-
className: "text-white text-xs font-semibold px-3 py-2 rounded-lg flex items-center gap-1.5 shadow-sm hover:opacity-90 transition-opacity shrink-0 cursor-pointer",
|
|
1039
|
-
children: [
|
|
1040
|
-
/* @__PURE__ */ p(U, { size: 13 }),
|
|
1041
|
-
/* @__PURE__ */ p("span", { children: "Open File" }),
|
|
1042
|
-
/* @__PURE__ */ p(ne, { size: 12 })
|
|
1043
|
-
]
|
|
1044
|
-
}),
|
|
1045
|
-
!t && (T[e.id] || D[e.id] || y[e.id]) && /* @__PURE__ */ m("button", {
|
|
1046
|
-
type: "button",
|
|
1047
|
-
onClick: () => L(e.id),
|
|
1048
|
-
disabled: C === e.id || x === e.id,
|
|
1049
|
-
className: "text-red-600 bg-red-50 hover:bg-red-100 dark:bg-red-950/40 dark:text-red-400 text-xs font-semibold px-3 py-2 rounded-lg flex items-center gap-1.5 transition-colors shrink-0 cursor-pointer disabled:opacity-50",
|
|
1050
|
-
title: "Delete uploaded file",
|
|
1051
|
-
children: [/* @__PURE__ */ p(fe, { size: 13 }), /* @__PURE__ */ p("span", { children: C === e.id ? "Deleting..." : "Delete" })]
|
|
1052
|
-
})
|
|
1053
|
-
]
|
|
1054
|
-
}),
|
|
1055
|
-
(D[e.id] || y[e.id] && String(y[e.id]).startsWith("http")) && /* @__PURE__ */ m("div", {
|
|
1056
|
-
className: "text-xs text-emerald-600 dark:text-emerald-400 mt-1 flex items-center gap-1",
|
|
1057
|
-
children: [/* @__PURE__ */ p("span", { children: "✓ File attached:" }), /* @__PURE__ */ p("span", {
|
|
1058
|
-
className: "truncate max-w-xs",
|
|
1059
|
-
children: D[e.id] || y[e.id]
|
|
1060
|
-
})]
|
|
1061
|
-
}),
|
|
1062
|
-
k && j === e.id && /* @__PURE__ */ p("div", {
|
|
1063
|
-
className: "text-xs text-red-500 mt-1",
|
|
1064
|
-
children: k
|
|
1065
|
-
})
|
|
1066
|
-
]
|
|
1067
|
-
}) : /* @__PURE__ */ p("input", {
|
|
1068
|
-
type: e.type === "email" ? "email" : "text",
|
|
1069
|
-
disabled: t,
|
|
1070
|
-
required: e.required,
|
|
1071
|
-
value: y[e.id] ?? "",
|
|
1072
|
-
placeholder: e.placeholder,
|
|
1073
|
-
className: `border rounded-md p-2.5 w-full outline-none transition-colors ${t ? f ? "bg-zinc-800 text-zinc-500 border-zinc-700 cursor-not-allowed" : "bg-gray-100 text-gray-500 border-gray-200 cursor-not-allowed" : f ? "bg-zinc-900 border-zinc-700 text-white placeholder-zinc-500" : "bg-white border-gray-300 text-gray-900"}`,
|
|
1074
|
-
onFocus: (e) => {
|
|
1075
|
-
t || (e.target.style.borderColor = N);
|
|
1358
|
+
}), !t && /* @__PURE__ */ p("button", {
|
|
1359
|
+
type: "button",
|
|
1360
|
+
disabled: o,
|
|
1361
|
+
onClick: () => P((t) => ({
|
|
1362
|
+
...t,
|
|
1363
|
+
[e.id]: n === "file" ? "text" : "file"
|
|
1364
|
+
})),
|
|
1365
|
+
className: "flex items-center gap-1 text-2xs font-semibold px-2.5 py-1 rounded-lg border cursor-pointer transition-colors hover:opacity-80 disabled:opacity-50",
|
|
1366
|
+
style: {
|
|
1367
|
+
color: z,
|
|
1368
|
+
borderColor: `color-mix(in srgb, ${z} 35%, transparent)`
|
|
1076
1369
|
},
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1370
|
+
children: n === "file" ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(K, { size: 11 }), " Send text only"] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(Ue, { size: 11 }), " Send file"] })
|
|
1371
|
+
})]
|
|
1372
|
+
}),
|
|
1373
|
+
a && /* @__PURE__ */ m("div", {
|
|
1374
|
+
className: `mt-2.5 pt-2 border-t text-2xs flex items-center gap-1.5 ${h ? "border-zinc-800 text-zinc-300" : "border-gray-200 text-gray-700 font-medium"}`,
|
|
1375
|
+
children: [
|
|
1376
|
+
/* @__PURE__ */ p(I, {
|
|
1377
|
+
size: 12,
|
|
1378
|
+
className: "text-emerald-500 shrink-0"
|
|
1379
|
+
}),
|
|
1380
|
+
/* @__PURE__ */ p("span", {
|
|
1381
|
+
className: "truncate",
|
|
1382
|
+
children: a.fileName ? `Submitted file: ${a.fileName}` : a.text ? "Text submitted" : "Submitted"
|
|
1383
|
+
}),
|
|
1384
|
+
a.url && /* @__PURE__ */ m("a", {
|
|
1385
|
+
href: a.url,
|
|
1386
|
+
target: "_blank",
|
|
1387
|
+
rel: "noopener noreferrer",
|
|
1388
|
+
className: "ml-auto flex items-center gap-1 font-semibold",
|
|
1389
|
+
style: { color: z },
|
|
1390
|
+
children: ["View ", /* @__PURE__ */ p(de, { size: 11 })]
|
|
1391
|
+
})
|
|
1392
|
+
]
|
|
1393
|
+
}),
|
|
1394
|
+
!t && /* @__PURE__ */ m("div", {
|
|
1395
|
+
className: "mt-3 pt-3 border-t border-gray-200 dark:border-zinc-800 space-y-2.5",
|
|
1396
|
+
children: [n === "file" ? /* @__PURE__ */ m("div", {
|
|
1397
|
+
className: "flex items-center gap-2 flex-wrap",
|
|
1398
|
+
children: [/* @__PURE__ */ m("label", {
|
|
1399
|
+
className: "cursor-pointer relative",
|
|
1400
|
+
children: [/* @__PURE__ */ p("input", {
|
|
1401
|
+
type: "file",
|
|
1402
|
+
className: "hidden",
|
|
1403
|
+
style: { display: "none" },
|
|
1404
|
+
tabIndex: -1,
|
|
1405
|
+
disabled: o,
|
|
1406
|
+
onChange: (t) => {
|
|
1407
|
+
let n = t.target.files?.[0];
|
|
1408
|
+
n && F((t) => ({
|
|
1409
|
+
...t,
|
|
1410
|
+
[e.id]: n
|
|
1411
|
+
})), t.target.value = "";
|
|
1412
|
+
}
|
|
1413
|
+
}), /* @__PURE__ */ m("div", {
|
|
1414
|
+
className: `flex items-center gap-1.5 py-2 px-3.5 rounded-xl text-xs font-semibold border transition-all shadow-2xs ${h ? "border-zinc-700 hover:border-zinc-600 text-zinc-200 bg-zinc-800" : "border-pink-200/80 hover:border-pink-300 text-gray-800 bg-white hover:bg-gray-50"}`,
|
|
1415
|
+
children: [/* @__PURE__ */ p(Ue, {
|
|
1416
|
+
size: 14,
|
|
1417
|
+
style: { color: z }
|
|
1418
|
+
}), /* @__PURE__ */ p("span", { children: r ? "Change File" : a ? "Replace File" : "Choose File" })]
|
|
1419
|
+
})]
|
|
1420
|
+
}), r && /* @__PURE__ */ m("span", {
|
|
1421
|
+
className: `text-xs font-medium truncate max-w-[220px] ${h ? "text-zinc-300" : "text-gray-700"}`,
|
|
1422
|
+
children: [
|
|
1423
|
+
r.name,
|
|
1424
|
+
" (",
|
|
1425
|
+
(r.size / 1024).toFixed(0),
|
|
1426
|
+
" KB)"
|
|
1427
|
+
]
|
|
1428
|
+
})]
|
|
1429
|
+
}) : /* @__PURE__ */ p("textarea", {
|
|
1430
|
+
rows: 3,
|
|
1431
|
+
disabled: o,
|
|
1432
|
+
value: i,
|
|
1433
|
+
onChange: (t) => ce((n) => ({
|
|
1434
|
+
...n,
|
|
1435
|
+
[e.id]: t.target.value
|
|
1436
|
+
})),
|
|
1437
|
+
placeholder: "Enter text or abstract notes...",
|
|
1438
|
+
className: `w-full px-3 py-2 text-sm rounded-xl border focus:outline-none transition-all ${h ? "bg-zinc-900 border-zinc-700 text-white placeholder-zinc-500" : "bg-white border-[#f0e2ed] text-gray-900 placeholder-[#a89bb0]"}`
|
|
1439
|
+
}), s && /* @__PURE__ */ p("div", {
|
|
1440
|
+
className: "flex justify-end",
|
|
1441
|
+
children: /* @__PURE__ */ m("button", {
|
|
1442
|
+
type: "button",
|
|
1443
|
+
disabled: o,
|
|
1444
|
+
onClick: () => W(e, n),
|
|
1445
|
+
style: { backgroundColor: z },
|
|
1446
|
+
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",
|
|
1447
|
+
children: [/* @__PURE__ */ p(Ue, { size: 13 }), /* @__PURE__ */ p("span", { children: o ? "Submitting..." : n === "file" ? "Upload File" : "Submit Text" })]
|
|
1448
|
+
})
|
|
1449
|
+
})]
|
|
1450
|
+
}),
|
|
1451
|
+
A && re === e.id && /* @__PURE__ */ p("div", {
|
|
1452
|
+
className: "text-xs text-red-500 mt-2 font-medium",
|
|
1453
|
+
children: A
|
|
1454
|
+
})
|
|
1455
|
+
]
|
|
1456
|
+
})
|
|
1457
|
+
});
|
|
1458
|
+
}, X = (e) => {
|
|
1459
|
+
if (!e) return null;
|
|
1460
|
+
let t = B(e), n = S[e.id] ?? "", r = q(e), i = e.type === "email" || (e.label || "").toLowerCase().includes("email"), a = (e.label || "").toLowerCase().includes("name");
|
|
1461
|
+
return /* @__PURE__ */ m("div", {
|
|
1462
|
+
className: `rounded-2xl p-5 sm:p-6 transition-all duration-200 border border-l-4 shadow-[0_2px_16px_rgba(217,70,239,0.04)] ${h ? "bg-zinc-900 border-zinc-800 text-white" : "bg-white border-pink-100/80 text-gray-900"}`,
|
|
1463
|
+
style: { borderLeftColor: z },
|
|
1464
|
+
children: [
|
|
1465
|
+
/* @__PURE__ */ m("div", {
|
|
1466
|
+
className: "flex items-center justify-between mb-1",
|
|
1467
|
+
children: [/* @__PURE__ */ m("label", {
|
|
1468
|
+
className: `block text-sm sm:text-base font-bold ${h ? "text-zinc-100" : "text-gray-900"}`,
|
|
1469
|
+
children: [e.label, e.required && /* @__PURE__ */ p("span", {
|
|
1470
|
+
className: "text-red-500 font-bold ml-1",
|
|
1471
|
+
children: "*"
|
|
1081
1472
|
})]
|
|
1082
|
-
},
|
|
1473
|
+
}), t && /* @__PURE__ */ m("span", {
|
|
1474
|
+
className: `flex items-center gap-1 text-2xs font-medium px-2 py-0.5 rounded-full border ${h ? "text-amber-400 bg-amber-950/60 border-amber-900/50" : "text-amber-700 bg-amber-50 border-amber-200"}`,
|
|
1475
|
+
children: [/* @__PURE__ */ p(_e, { size: 10 }), " Under Review"]
|
|
1476
|
+
})]
|
|
1083
1477
|
}),
|
|
1084
|
-
/* @__PURE__ */ p("
|
|
1085
|
-
className: "
|
|
1086
|
-
children:
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1478
|
+
r && /* @__PURE__ */ p("p", {
|
|
1479
|
+
className: `text-xs leading-relaxed mb-3.5 ${h ? "text-zinc-400" : "text-gray-500 font-normal"}`,
|
|
1480
|
+
children: r
|
|
1481
|
+
}),
|
|
1482
|
+
x && U(e) ? fe(e, t) : e.type === "select" ? /* @__PURE__ */ m("div", {
|
|
1483
|
+
className: "relative",
|
|
1484
|
+
children: [/* @__PURE__ */ m("select", {
|
|
1485
|
+
disabled: t,
|
|
1486
|
+
required: e.required,
|
|
1487
|
+
value: n,
|
|
1488
|
+
onChange: (t) => le(e.id, t.target.value),
|
|
1489
|
+
className: `w-full pl-4 pr-10 py-3.5 text-sm font-medium rounded-xl appearance-none cursor-pointer transition-all border ${t ? h ? "bg-zinc-800/60 text-zinc-500 border-zinc-800 cursor-not-allowed" : "bg-gray-100/70 text-gray-500 border-gray-200 cursor-not-allowed" : h ? "bg-zinc-800/80 border-zinc-700 text-white hover:border-zinc-600 focus:outline-none" : "bg-[#faf4f8] border-[#f0e2ed] text-gray-900 hover:border-pink-300 focus:outline-none"}`,
|
|
1490
|
+
onFocus: (e) => {
|
|
1491
|
+
t || (e.currentTarget.style.borderColor = z, e.currentTarget.style.boxShadow = `0 0 0 3px color-mix(in srgb, ${z} 18%, transparent)`);
|
|
1492
|
+
},
|
|
1493
|
+
onBlur: (e) => {
|
|
1494
|
+
t || (e.currentTarget.style.borderColor = h ? "#3f3f46" : "#f0e2ed", e.currentTarget.style.boxShadow = "none");
|
|
1495
|
+
},
|
|
1496
|
+
children: [/* @__PURE__ */ p("option", {
|
|
1497
|
+
value: "",
|
|
1498
|
+
className: h ? "bg-zinc-900 text-white" : "bg-white text-gray-900",
|
|
1499
|
+
children: e.placeholder || `Select ${e.label}...`
|
|
1500
|
+
}), (e.options || []).map((e) => /* @__PURE__ */ p("option", {
|
|
1501
|
+
value: e,
|
|
1502
|
+
className: h ? "bg-zinc-900 text-white" : "bg-white text-gray-900",
|
|
1503
|
+
children: e
|
|
1504
|
+
}, e))]
|
|
1505
|
+
}), /* @__PURE__ */ p("div", {
|
|
1506
|
+
className: "absolute inset-y-0 right-0 flex items-center pr-3.5 pointer-events-none",
|
|
1507
|
+
style: { color: z },
|
|
1508
|
+
children: /* @__PURE__ */ p(se, { size: 16 })
|
|
1509
|
+
})]
|
|
1510
|
+
}) : e.type === "file" ? Y(e, t) : /* @__PURE__ */ p("div", {
|
|
1511
|
+
className: "relative",
|
|
1512
|
+
children: /* @__PURE__ */ p("input", {
|
|
1513
|
+
type: e.type === "phone" ? "tel" : e.type === "email" ? "email" : e.type === "number" ? "number" : "text",
|
|
1514
|
+
disabled: t,
|
|
1515
|
+
required: e.required,
|
|
1516
|
+
value: n,
|
|
1517
|
+
placeholder: e.placeholder || (i ? "Enter your email address" : a ? "Your full name" : `Enter your ${e.label.toLowerCase()}`),
|
|
1518
|
+
onChange: (t) => le(e.id, t.target.value),
|
|
1519
|
+
className: `w-full px-4 py-3.5 text-sm font-medium rounded-xl transition-all border ${t ? h ? "bg-zinc-800/60 text-zinc-500 border-zinc-800 cursor-not-allowed" : "bg-gray-100/70 text-gray-500 border-gray-200 cursor-not-allowed" : h ? "bg-zinc-800/80 border-zinc-700 text-white placeholder-zinc-500 hover:border-zinc-600 focus:outline-none" : "bg-[#faf4f8] border-[#f0e2ed] text-gray-900 placeholder-[#a89bb0] hover:border-pink-300 focus:outline-none"}`,
|
|
1520
|
+
onFocus: (e) => {
|
|
1521
|
+
t || (e.currentTarget.style.borderColor = z, e.currentTarget.style.boxShadow = `0 0 0 3px color-mix(in srgb, ${z} 18%, transparent)`);
|
|
1522
|
+
},
|
|
1523
|
+
onBlur: (e) => {
|
|
1524
|
+
t || (e.currentTarget.style.borderColor = h ? "#3f3f46" : "#f0e2ed", e.currentTarget.style.boxShadow = "none");
|
|
1525
|
+
}
|
|
1091
1526
|
})
|
|
1092
1527
|
})
|
|
1093
1528
|
]
|
|
1529
|
+
}, e.id);
|
|
1530
|
+
};
|
|
1531
|
+
return /* @__PURE__ */ m("div", {
|
|
1532
|
+
className: `w-full flex-1 flex flex-col relative ${h ? "bg-zinc-950 text-white" : "bg-[#fbf7f9] text-gray-900"}`,
|
|
1533
|
+
children: [/* @__PURE__ */ p("div", {
|
|
1534
|
+
className: `sticky top-0 z-30 px-4 sm:px-8 py-3.5 border-b backdrop-blur-md transition-colors ${h ? "bg-zinc-900/90 border-zinc-800" : "bg-white/90 border-pink-100/90 shadow-2xs"}`,
|
|
1535
|
+
children: /* @__PURE__ */ m("div", {
|
|
1536
|
+
className: "max-w-4xl mx-auto flex items-center justify-between",
|
|
1537
|
+
children: [/* @__PURE__ */ m("button", {
|
|
1538
|
+
type: "button",
|
|
1539
|
+
onClick: n,
|
|
1540
|
+
className: `inline-flex items-center gap-2 text-xs sm:text-sm font-semibold rounded-xl px-3 py-2 transition-all cursor-pointer ${h ? "bg-zinc-800 hover:bg-zinc-750 text-zinc-200" : "bg-pink-50/70 hover:bg-pink-100/80 text-gray-800 border border-pink-200/60"}`,
|
|
1541
|
+
children: [/* @__PURE__ */ p(j, {
|
|
1542
|
+
size: 15,
|
|
1543
|
+
style: { color: z }
|
|
1544
|
+
}), /* @__PURE__ */ p("span", { children: "Back to All Forms" })]
|
|
1545
|
+
}), /* @__PURE__ */ m("div", {
|
|
1546
|
+
className: "flex items-center gap-2.5",
|
|
1547
|
+
children: [b && /* @__PURE__ */ m("div", {
|
|
1548
|
+
className: "flex items-center gap-2",
|
|
1549
|
+
children: [/* @__PURE__ */ p("span", {
|
|
1550
|
+
className: `text-xs font-bold px-3 py-1.5 rounded-full border ${h ? "bg-zinc-800 border-zinc-700 text-zinc-200" : "bg-white border-pink-200/80 text-gray-800"}`,
|
|
1551
|
+
children: b.type || b.name || "Registration Form"
|
|
1552
|
+
}), /* @__PURE__ */ p("span", {
|
|
1553
|
+
className: "text-xs font-extrabold px-3 py-1.5 rounded-full text-white shadow-2xs",
|
|
1554
|
+
style: { backgroundColor: z },
|
|
1555
|
+
children: Number(b.price) > 0 ? [b.currency, Number(b.price).toLocaleString()].filter(Boolean).join(" ") : "Free"
|
|
1556
|
+
})]
|
|
1557
|
+
}), i === "popup" && /* @__PURE__ */ m("div", {
|
|
1558
|
+
className: "flex items-center gap-1.5 ml-2 border-l pl-2 border-gray-300 dark:border-zinc-700",
|
|
1559
|
+
children: [/* @__PURE__ */ p("button", {
|
|
1560
|
+
onClick: o,
|
|
1561
|
+
className: "p-1.5 opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
|
|
1562
|
+
title: a ? "Minimize" : "Expand",
|
|
1563
|
+
children: p(a ? Te : Ce, { size: 16 })
|
|
1564
|
+
}), /* @__PURE__ */ p("button", {
|
|
1565
|
+
onClick: c,
|
|
1566
|
+
className: "p-1.5 opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
|
|
1567
|
+
children: /* @__PURE__ */ p($, { size: 18 })
|
|
1568
|
+
})]
|
|
1569
|
+
})]
|
|
1570
|
+
})]
|
|
1571
|
+
})
|
|
1572
|
+
}), /* @__PURE__ */ p("div", {
|
|
1573
|
+
className: "w-full flex-1 overflow-y-auto",
|
|
1574
|
+
children: /* @__PURE__ */ m("form", {
|
|
1575
|
+
onSubmit: (e) => {
|
|
1576
|
+
e.preventDefault();
|
|
1577
|
+
for (let e of G) {
|
|
1578
|
+
if (x && U(e)) {
|
|
1579
|
+
if (e.required && !L[e.id]) {
|
|
1580
|
+
M(`Please submit ${e.label || "this field"} before continuing`), N(e.id);
|
|
1581
|
+
return;
|
|
1582
|
+
}
|
|
1583
|
+
continue;
|
|
1584
|
+
}
|
|
1585
|
+
if (e.type === "file" && e.required && !S[e.id]) {
|
|
1586
|
+
M(`Please upload ${e.label || "a file"}`), N(e.id);
|
|
1587
|
+
return;
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
t(S);
|
|
1591
|
+
},
|
|
1592
|
+
className: "max-w-3xl mx-auto w-full px-4 sm:px-6 py-6 sm:py-8 space-y-4",
|
|
1593
|
+
children: [
|
|
1594
|
+
u && Object.keys(u).length > 0 && /* @__PURE__ */ m("div", {
|
|
1595
|
+
className: `text-xs px-4 py-2.5 rounded-xl flex items-center gap-2 border shadow-2xs ${h ? "bg-emerald-950/60 border-emerald-800/80 text-emerald-300" : "bg-emerald-50 border-emerald-200 text-emerald-800"}`,
|
|
1596
|
+
children: [/* @__PURE__ */ p("span", { children: "✨" }), /* @__PURE__ */ p("span", {
|
|
1597
|
+
className: "font-semibold",
|
|
1598
|
+
children: "Restored your previously saved draft progress"
|
|
1599
|
+
})]
|
|
1600
|
+
}),
|
|
1601
|
+
/* @__PURE__ */ m("div", {
|
|
1602
|
+
className: `rounded-2xl p-4 sm:p-5 border border-l-4 shadow-[0_2px_12px_rgba(217,70,239,0.04)] flex items-start gap-3.5 transition-all ${h ? "bg-zinc-900 border-zinc-800 text-white" : "bg-white border-pink-100/90 text-gray-900"}`,
|
|
1603
|
+
style: { borderLeftColor: z },
|
|
1604
|
+
children: [/* @__PURE__ */ p("div", {
|
|
1605
|
+
className: "shrink-0 mt-0.5",
|
|
1606
|
+
style: { color: z },
|
|
1607
|
+
children: /* @__PURE__ */ p(pe, { size: 20 })
|
|
1608
|
+
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h4", {
|
|
1609
|
+
className: "text-xs font-bold uppercase tracking-wider",
|
|
1610
|
+
style: { color: z },
|
|
1611
|
+
children: "BEFORE YOU SUBMIT"
|
|
1612
|
+
}), /* @__PURE__ */ m("p", {
|
|
1613
|
+
className: `text-xs mt-1 font-medium leading-relaxed ${h ? "text-zinc-400" : "text-gray-600"}`,
|
|
1614
|
+
children: [
|
|
1615
|
+
"Ensure you are a registered delegate. Fields marked ",
|
|
1616
|
+
/* @__PURE__ */ p("span", {
|
|
1617
|
+
className: "text-red-500 font-bold",
|
|
1618
|
+
children: "*"
|
|
1619
|
+
}),
|
|
1620
|
+
" are required."
|
|
1621
|
+
]
|
|
1622
|
+
})] })]
|
|
1623
|
+
}),
|
|
1624
|
+
G.map((e) => X(e)),
|
|
1625
|
+
/* @__PURE__ */ p("div", {
|
|
1626
|
+
className: "pt-3 pb-8",
|
|
1627
|
+
children: /* @__PURE__ */ m("button", {
|
|
1628
|
+
type: "submit",
|
|
1629
|
+
disabled: w !== null || E !== null,
|
|
1630
|
+
style: {
|
|
1631
|
+
background: `linear-gradient(135deg, ${z}, color-mix(in srgb, ${z} 85%, black))`,
|
|
1632
|
+
boxShadow: `0 4px 20px 0 color-mix(in srgb, ${z} 35%, transparent)`
|
|
1633
|
+
},
|
|
1634
|
+
className: "w-full py-4 px-8 text-base font-bold text-white rounded-xl hover:opacity-95 active:scale-[0.99] transition-all shadow-md cursor-pointer flex items-center justify-center gap-2 hover:shadow-xl disabled:opacity-50",
|
|
1635
|
+
children: [/* @__PURE__ */ p("span", { children: "Complete Registration" }), /* @__PURE__ */ p("span", {
|
|
1636
|
+
className: "text-lg",
|
|
1637
|
+
children: "→"
|
|
1638
|
+
})]
|
|
1639
|
+
})
|
|
1640
|
+
})
|
|
1641
|
+
]
|
|
1642
|
+
})
|
|
1094
1643
|
})]
|
|
1095
1644
|
});
|
|
1096
1645
|
};
|
|
1097
1646
|
//#endregion
|
|
1098
1647
|
//#region src/widget/utils/formUtils.ts
|
|
1099
|
-
function
|
|
1648
|
+
function Je(e, t) {
|
|
1100
1649
|
if (!e) return "";
|
|
1101
1650
|
if (/^field_\d+/i.test(e) && t && typeof t == "string") {
|
|
1102
1651
|
let e = t.trim().toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
|
|
@@ -1104,23 +1653,30 @@ function ve(e, t) {
|
|
|
1104
1653
|
}
|
|
1105
1654
|
return e;
|
|
1106
1655
|
}
|
|
1656
|
+
function Ye(e, t = "") {
|
|
1657
|
+
if (e && typeof e == "string") {
|
|
1658
|
+
let t = e.trim().toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
|
|
1659
|
+
if (t) return t;
|
|
1660
|
+
}
|
|
1661
|
+
return Je(t, e) || t;
|
|
1662
|
+
}
|
|
1107
1663
|
//#endregion
|
|
1108
1664
|
//#region src/widget/components/AttendeePortal.tsx
|
|
1109
|
-
var
|
|
1110
|
-
let [
|
|
1665
|
+
var Xe = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1, backgroundImage: a, isWidgetPage: o = !1, onEvent: c, onError: l }) => {
|
|
1666
|
+
let [u, h] = d("login"), [g, _] = d(!1), [v, y] = d(!1), [ee, b] = d(null), [x, S] = d(null), [C, w] = d(null), [T, E] = d(""), [te, D] = d(""), [ne, O] = d(""), [k, A] = d(""), [M, re] = d(""), [N, P] = d(""), [F, oe] = d(""), [ce, R] = d(!1), [B, le] = d(null), [V, H] = d({}), [U, W] = d([]), [G, q] = d({}), [Y, X] = d(null), [pe, me] = d(null), [ge, ve] = d(null), [ye, be] = d(!1), [Se, Ce] = d({}), [we, Te] = d({}), [Ee, De] = d({});
|
|
1111
1667
|
s(() => {
|
|
1112
1668
|
let e = t.getToken();
|
|
1113
|
-
e &&
|
|
1669
|
+
e && Oe(e);
|
|
1114
1670
|
}, []);
|
|
1115
|
-
let
|
|
1116
|
-
|
|
1671
|
+
let Oe = async (r) => {
|
|
1672
|
+
_(!0), S(null);
|
|
1117
1673
|
try {
|
|
1118
|
-
let i = await e.portalGetProfile(r),
|
|
1119
|
-
|
|
1120
|
-
let
|
|
1121
|
-
if (
|
|
1122
|
-
let t = await e.getDraftByEmail(
|
|
1123
|
-
|
|
1674
|
+
let i = await e.portalGetProfile(r), a = i?.data || i || {};
|
|
1675
|
+
le(a);
|
|
1676
|
+
let o = a.registration || {}, s = o.custom_data || {}, l = o.email || a.email || "", u = null;
|
|
1677
|
+
if (l) try {
|
|
1678
|
+
let t = await e.getDraftByEmail(l);
|
|
1679
|
+
u = t?.data || t, n.log("Portal resume draft data loaded by email:", u);
|
|
1124
1680
|
} catch (e) {
|
|
1125
1681
|
n.log("No draft found for email in portal", e);
|
|
1126
1682
|
}
|
|
@@ -1128,591 +1684,662 @@ var ye = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
|
|
|
1128
1684
|
let n = t.getXrefId();
|
|
1129
1685
|
if (n) try {
|
|
1130
1686
|
let t = await e.getDraft(n);
|
|
1131
|
-
|
|
1687
|
+
u = t?.data || t;
|
|
1132
1688
|
} catch {}
|
|
1133
1689
|
}
|
|
1134
|
-
let
|
|
1135
|
-
|
|
1136
|
-
let
|
|
1137
|
-
|
|
1138
|
-
if (e
|
|
1139
|
-
|
|
1690
|
+
let d = u?.custom_data || {};
|
|
1691
|
+
o.name ? O(o.name) : u?.name ? O(u.name) : a.name && O(a.name);
|
|
1692
|
+
let f = 0, p = {}, m = [...a.editable_fields || []];
|
|
1693
|
+
Array.isArray(a.review_fields) && a.review_fields.forEach((e) => {
|
|
1694
|
+
if (!e) return;
|
|
1695
|
+
let t = e.label || e.name, n = e.id || e.field_id || e.key;
|
|
1696
|
+
!m.some((e) => n && (String(e.id) === String(n) || String(e.name) === String(n)) || t && (e.label === t || e.name === t)) && (t || n) && m.push({
|
|
1697
|
+
id: n || t,
|
|
1698
|
+
label: t || n,
|
|
1699
|
+
type: e.type || "file",
|
|
1700
|
+
is_review: !0,
|
|
1701
|
+
builtin: !1,
|
|
1702
|
+
...e
|
|
1703
|
+
});
|
|
1704
|
+
}), le({
|
|
1705
|
+
...a,
|
|
1706
|
+
editable_fields: m
|
|
1707
|
+
});
|
|
1708
|
+
let g = {};
|
|
1709
|
+
o.asset_id && (g.asset_id = String(o.asset_id)), o.photo_id && (g.photo_id = String(o.photo_id)), s.asset_id && (g.asset_id = String(s.asset_id)), s.photo_id && (g.photo_id = String(s.photo_id)), a.asset_id && (g.asset_id = String(a.asset_id)), m.forEach((e) => {
|
|
1710
|
+
if (e.type === "file" || e.is_review === !0 || e.is_review === "true") {
|
|
1711
|
+
let t = o[`${e.id}_asset_id`] || s[`${e.id}_asset_id`] || o.asset_id || s.asset_id || a.asset_id;
|
|
1140
1712
|
t && (g[e.id] = String(t));
|
|
1141
1713
|
}
|
|
1142
|
-
}),
|
|
1714
|
+
}), q((e) => ({
|
|
1143
1715
|
...g,
|
|
1144
1716
|
...e
|
|
1145
1717
|
}));
|
|
1146
|
-
let _ =
|
|
1147
|
-
_ &&
|
|
1148
|
-
let t =
|
|
1149
|
-
if (
|
|
1150
|
-
let
|
|
1151
|
-
|
|
1718
|
+
let _ = o.asset_id || o.photo_id || s.asset_id || s.photo_id || a.asset_id;
|
|
1719
|
+
_ && X(String(_)), m.length > 0 ? m.forEach((e) => {
|
|
1720
|
+
let t = e.label || e.name || e.id, n = Je(e.id, e.label), r = Ye(e.label, e.id), i = "";
|
|
1721
|
+
if (t && o[t] !== void 0 && o[t] !== null && o[t] !== "" ? i = o[t] : o[r] !== void 0 && o[r] !== null && o[r] !== "" ? i = o[r] : o[n] !== void 0 && o[n] !== null && o[n] !== "" ? i = o[n] : o[e.id] !== void 0 && o[e.id] !== null && o[e.id] !== "" ? i = o[e.id] : t && s[t] !== void 0 && s[t] !== null && s[t] !== "" ? i = s[t] : s[r] !== void 0 && s[r] !== null && s[r] !== "" ? i = s[r] : s[n] !== void 0 && s[n] !== null && s[n] !== "" ? i = s[n] : s[e.id] !== void 0 && s[e.id] !== null && s[e.id] !== "" && (i = s[e.id]), e.submission) {
|
|
1722
|
+
let t = e.submission.url || e.submission.file_url || e.submission.file;
|
|
1723
|
+
t && !i && (i = t), e.submission.text && Te((t) => ({
|
|
1724
|
+
...t,
|
|
1725
|
+
[e.id]: e.submission.text
|
|
1726
|
+
}));
|
|
1727
|
+
}
|
|
1728
|
+
let c = a.review_fields || [];
|
|
1729
|
+
if (Array.isArray(c)) {
|
|
1730
|
+
let r = c.find((r) => {
|
|
1731
|
+
let i = r?.id == null ? null : String(r.id), a = r?.field_id == null ? null : String(r.field_id), o = r?.label ? String(r.label).trim() : null;
|
|
1732
|
+
return o && t && o.toLowerCase() === t.toLowerCase() || i && (i === String(e.id) || i === n) || a && (a === String(e.id) || a === n);
|
|
1733
|
+
});
|
|
1734
|
+
if (r?.submission) {
|
|
1735
|
+
let t = r.submission.url || r.submission.file_url || r.submission.file;
|
|
1736
|
+
t && !i && (i = t), r.submission.text && Te((t) => ({
|
|
1737
|
+
...t,
|
|
1738
|
+
[e.id]: r.submission.text
|
|
1739
|
+
}));
|
|
1740
|
+
}
|
|
1152
1741
|
}
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1742
|
+
if (u) {
|
|
1743
|
+
let t = u[n] ?? u[e.id] ?? d[n] ?? d[e.id] ?? (e.id === "salutation" ? u.salutation || u.title : void 0) ?? (e.id === "name" ? u.name || u.fullName || u.full_name : void 0) ?? (e.id === "email" ? u.email : void 0) ?? (e.id === "phone" ? u.phone || u.mobile || u.phoneNumber : void 0);
|
|
1744
|
+
t != null && t !== "" && (i = t, f++);
|
|
1745
|
+
}
|
|
1746
|
+
p[e.id] = i;
|
|
1747
|
+
}) : Object.entries(a).forEach(([e, t]) => {
|
|
1748
|
+
e.toLowerCase() !== "token" && (p[e] = t);
|
|
1749
|
+
}), H(p), f > 0 && be(!0);
|
|
1750
|
+
let v = (a.addons?.items || []).filter((e) => e.purchased).map((e) => e.name);
|
|
1751
|
+
u?.selected_items && Array.isArray(u.selected_items) && u.selected_items.forEach((e) => {
|
|
1159
1752
|
let t = typeof e == "string" ? e : e?.name;
|
|
1160
1753
|
t && !v.includes(t) && v.push(t);
|
|
1161
|
-
}),
|
|
1162
|
-
profile:
|
|
1163
|
-
draft:
|
|
1754
|
+
}), W(v), h("profile"), c?.("attendee_profile_loaded", {
|
|
1755
|
+
profile: a,
|
|
1756
|
+
draft: u
|
|
1164
1757
|
});
|
|
1165
1758
|
} catch (e) {
|
|
1166
|
-
n.error("Failed to load profile", e), t.clearToken(),
|
|
1759
|
+
n.error("Failed to load profile", e), t.clearToken(), h("login");
|
|
1167
1760
|
} finally {
|
|
1168
|
-
|
|
1761
|
+
_(!1);
|
|
1169
1762
|
}
|
|
1170
|
-
},
|
|
1171
|
-
if (r.preventDefault(), !
|
|
1172
|
-
|
|
1763
|
+
}, Ae = async (r) => {
|
|
1764
|
+
if (r.preventDefault(), !T.trim() || !te) {
|
|
1765
|
+
S("Please enter both your identifier and password.");
|
|
1173
1766
|
return;
|
|
1174
1767
|
}
|
|
1175
|
-
|
|
1768
|
+
_(!0), S(null), w(null);
|
|
1176
1769
|
try {
|
|
1177
1770
|
let n = await e.portalLogin({
|
|
1178
|
-
identifier:
|
|
1179
|
-
password:
|
|
1771
|
+
identifier: T.trim(),
|
|
1772
|
+
password: te
|
|
1180
1773
|
}), r = n?.data?.token || n?.token;
|
|
1181
1774
|
if (!r) throw Error(n?.message || "No authentication token received.");
|
|
1182
|
-
(n?.data?.name || n?.name) &&
|
|
1183
|
-
identifier:
|
|
1775
|
+
(n?.data?.name || n?.name) && O(n.data?.name || n.name), t.setToken(r), c?.("attendee_logged_in", {
|
|
1776
|
+
identifier: T,
|
|
1184
1777
|
response: n
|
|
1185
|
-
}), await
|
|
1778
|
+
}), await Oe(r);
|
|
1186
1779
|
} catch (e) {
|
|
1187
1780
|
n.error("Login failed", e);
|
|
1188
1781
|
let t = e.message || "Login failed. Please check your credentials.";
|
|
1189
|
-
|
|
1782
|
+
S(t), l?.({
|
|
1190
1783
|
type: "login_error",
|
|
1191
1784
|
message: t,
|
|
1192
1785
|
error: e
|
|
1193
1786
|
});
|
|
1194
1787
|
} finally {
|
|
1195
|
-
|
|
1788
|
+
_(!1);
|
|
1196
1789
|
}
|
|
1197
|
-
},
|
|
1790
|
+
}, Me = async (t) => {
|
|
1198
1791
|
t.preventDefault();
|
|
1199
|
-
let r = (
|
|
1792
|
+
let r = (k || T).trim();
|
|
1200
1793
|
if (!r) {
|
|
1201
|
-
|
|
1794
|
+
S("Please enter your registration number or email to receive a code.");
|
|
1202
1795
|
return;
|
|
1203
1796
|
}
|
|
1204
|
-
|
|
1797
|
+
R(!0), S(null), w(null);
|
|
1205
1798
|
try {
|
|
1206
|
-
await e.portalRequestPasswordReset(r),
|
|
1799
|
+
await e.portalRequestPasswordReset(r), w("A verification code has been sent to your registered email."), c?.("password_reset_code_requested", { identifier: r }), h("reset");
|
|
1207
1800
|
} catch (e) {
|
|
1208
1801
|
n.error("Failed to send reset code", e);
|
|
1209
1802
|
let t = e.message || "Failed to send code. Please verify your identifier.";
|
|
1210
|
-
|
|
1803
|
+
S(t), l?.({
|
|
1211
1804
|
type: "portal_error",
|
|
1212
1805
|
message: t,
|
|
1213
1806
|
error: e
|
|
1214
1807
|
});
|
|
1215
1808
|
} finally {
|
|
1216
|
-
|
|
1809
|
+
R(!1);
|
|
1217
1810
|
}
|
|
1218
|
-
},
|
|
1811
|
+
}, Pe = async (r) => {
|
|
1219
1812
|
r.preventDefault();
|
|
1220
|
-
let i = (
|
|
1813
|
+
let i = (k || T).trim();
|
|
1221
1814
|
if (!i) {
|
|
1222
|
-
|
|
1815
|
+
S("Please enter your registration number or email.");
|
|
1223
1816
|
return;
|
|
1224
1817
|
}
|
|
1225
1818
|
if (!M.trim()) {
|
|
1226
|
-
|
|
1819
|
+
S("Please enter the verification code sent to your email.");
|
|
1227
1820
|
return;
|
|
1228
1821
|
}
|
|
1229
|
-
if (!
|
|
1230
|
-
|
|
1822
|
+
if (!N) {
|
|
1823
|
+
S("Please enter a new password.");
|
|
1231
1824
|
return;
|
|
1232
1825
|
}
|
|
1233
|
-
if (
|
|
1234
|
-
|
|
1826
|
+
if (N !== F) {
|
|
1827
|
+
S("New password and confirm password do not match.");
|
|
1235
1828
|
return;
|
|
1236
1829
|
}
|
|
1237
|
-
|
|
1830
|
+
_(!0), S(null), w(null);
|
|
1238
1831
|
try {
|
|
1239
1832
|
let n = await e.portalConfirmPasswordReset({
|
|
1240
1833
|
identifier: i,
|
|
1241
1834
|
code: M.trim(),
|
|
1242
|
-
new_password:
|
|
1835
|
+
new_password: N
|
|
1243
1836
|
}), r = n?.data?.token || n?.token;
|
|
1244
|
-
(n?.data?.name || n?.name) &&
|
|
1837
|
+
(n?.data?.name || n?.name) && O(n.data?.name || n.name), c?.("password_reset_success", {
|
|
1245
1838
|
identifier: i,
|
|
1246
1839
|
response: n
|
|
1247
|
-
}), r ? (t.setToken(r),
|
|
1840
|
+
}), r ? (t.setToken(r), re(""), P(""), oe(""), await Oe(r)) : (E(i), D(""), re(""), P(""), oe(""), h("login"), w("Password updated successfully! Please login with your new password."));
|
|
1248
1841
|
} catch (e) {
|
|
1249
1842
|
n.error("Password reset failed", e);
|
|
1250
1843
|
let t = e.message || "Failed to update password. Please check the code.";
|
|
1251
|
-
|
|
1844
|
+
S(t), l?.({
|
|
1252
1845
|
type: "portal_error",
|
|
1253
1846
|
message: t,
|
|
1254
1847
|
error: e
|
|
1255
1848
|
});
|
|
1256
1849
|
} finally {
|
|
1257
|
-
|
|
1850
|
+
_(!1);
|
|
1258
1851
|
}
|
|
1259
|
-
},
|
|
1260
|
-
t.clearToken(),
|
|
1261
|
-
},
|
|
1262
|
-
let t =
|
|
1852
|
+
}, Fe = () => {
|
|
1853
|
+
t.clearToken(), le(null), H({}), W([]), q({}), X(null), ve(null), O(""), D(""), h("login"), w("Logged out successfully."), c?.("attendee_logged_out", {});
|
|
1854
|
+
}, Ie = (e) => {
|
|
1855
|
+
let t = B?.review_fields;
|
|
1263
1856
|
if (!Array.isArray(t) || t.length === 0) return !1;
|
|
1264
|
-
let n =
|
|
1857
|
+
let n = Je(e.id, e.label);
|
|
1265
1858
|
return t.some((r) => {
|
|
1266
1859
|
let i = r?.submission?.reviewer;
|
|
1267
1860
|
if (!(i != null && i !== "" && (typeof i != "object" || Object.keys(i).length > 0))) return !1;
|
|
1268
1861
|
let a = r?.id == null ? null : String(r.id), o = r?.field_id == null ? null : String(r.field_id), s = r?.field == null ? null : String(r.field), c = r?.name == null ? null : String(r.name), l = r?.key == null ? null : String(r.key), u = r?.submission?.field_id == null ? null : String(r.submission.field_id), d = r?.submission?.field == null ? null : String(r.submission.field), f = String(e.id), p = e.label ? String(e.label).toLowerCase().trim() : "", m = r?.label ? String(r.label).toLowerCase().trim() : "";
|
|
1269
1862
|
return !!(a && (a === f || a === n) || o && (o === f || o === n) || s && (s === f || s === n) || c && (c === f || c === n) || l && (l === f || l === n) || u && (u === f || u === n) || d && (d === f || d === n) || p && m && p === m || t.length === 1 && e.type === "file");
|
|
1270
1863
|
});
|
|
1271
|
-
},
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1864
|
+
}, Re = (e, t) => {
|
|
1865
|
+
Ce((n) => ({
|
|
1866
|
+
...n,
|
|
1867
|
+
[e]: t
|
|
1868
|
+
})), S(null);
|
|
1869
|
+
}, Be = async (r, i, a = "file") => {
|
|
1870
|
+
let o = t.getToken();
|
|
1871
|
+
if (!o) {
|
|
1872
|
+
S("Session expired. Please log in again.");
|
|
1275
1873
|
return;
|
|
1276
1874
|
}
|
|
1277
|
-
let
|
|
1278
|
-
if (
|
|
1279
|
-
|
|
1875
|
+
let s = (B?.editable_fields || []).find((e) => e.id === r);
|
|
1876
|
+
if (s && Ie(s)) {
|
|
1877
|
+
S("This field is under review and cannot be edited.");
|
|
1280
1878
|
return;
|
|
1281
1879
|
}
|
|
1282
|
-
|
|
1283
|
-
|
|
1880
|
+
let u = a === "file" && Se[r] || null, d = a === "text" && we[r] || "";
|
|
1881
|
+
if (!u && !d.trim()) {
|
|
1882
|
+
S(a === "file" ? "Please choose a file to upload." : "Please enter text to submit.");
|
|
1883
|
+
return;
|
|
1884
|
+
}
|
|
1885
|
+
b(r), S(null), w(null);
|
|
1284
1886
|
try {
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1887
|
+
n.log(`Submitting review field "${i}" to /me/submissions/...`);
|
|
1888
|
+
let t = await e.portalSubmitReviewSubmission(o, i, u, d);
|
|
1889
|
+
n.log("Review submission successful:", t);
|
|
1890
|
+
let a = t?.url || t?.serve_url || t?.data?.url || t?.data?.serve_url || t?.submission?.url || (u ? URL.createObjectURL(u) : ""), s = t?.asset_id || t?.data?.asset_id || t?.submission?.asset_id;
|
|
1891
|
+
a && H((e) => ({
|
|
1288
1892
|
...e,
|
|
1289
|
-
[r]:
|
|
1290
|
-
})),
|
|
1893
|
+
[r]: a
|
|
1894
|
+
})), s && (q((e) => ({
|
|
1291
1895
|
...e,
|
|
1292
|
-
[r]: String(
|
|
1293
|
-
})),
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
});
|
|
1298
|
-
} catch (e) {
|
|
1299
|
-
n.warn(`Could not delete previous asset ${l}:`, e);
|
|
1300
|
-
}
|
|
1301
|
-
C(`File "${i.name}" uploaded successfully!`), a?.("portal_file_uploaded", {
|
|
1896
|
+
[r]: String(s)
|
|
1897
|
+
})), X(String(s))), Ce((e) => {
|
|
1898
|
+
let t = { ...e };
|
|
1899
|
+
return delete t[r], t;
|
|
1900
|
+
}), w(u ? `File "${u.name}" uploaded successfully!` : "Submission uploaded successfully!"), c?.("portal_submission_uploaded", {
|
|
1302
1901
|
fieldId: r,
|
|
1303
|
-
|
|
1304
|
-
|
|
1902
|
+
fieldLabel: i,
|
|
1903
|
+
serveUrl: a,
|
|
1904
|
+
assetId: s,
|
|
1905
|
+
response: t
|
|
1305
1906
|
});
|
|
1907
|
+
try {
|
|
1908
|
+
await Oe(o);
|
|
1909
|
+
} catch {}
|
|
1306
1910
|
} catch (e) {
|
|
1307
1911
|
n.error("File upload failed", e);
|
|
1308
1912
|
let t = e.message || "File upload failed. Please try again.";
|
|
1309
|
-
|
|
1913
|
+
S(t), l?.({
|
|
1310
1914
|
type: "file_upload_error",
|
|
1311
1915
|
message: t,
|
|
1312
1916
|
error: e
|
|
1313
1917
|
});
|
|
1314
1918
|
} finally {
|
|
1315
|
-
|
|
1919
|
+
b(null);
|
|
1316
1920
|
}
|
|
1317
|
-
},
|
|
1921
|
+
}, He = async (r) => {
|
|
1318
1922
|
let i = t.getToken();
|
|
1319
1923
|
if (!i) {
|
|
1320
|
-
|
|
1924
|
+
S("Session expired. Please log in again.");
|
|
1321
1925
|
return;
|
|
1322
1926
|
}
|
|
1323
|
-
let
|
|
1324
|
-
if (
|
|
1325
|
-
|
|
1927
|
+
let a = (B?.editable_fields || []).find((e) => e.id === r);
|
|
1928
|
+
if (a && Ie(a)) {
|
|
1929
|
+
S("This field is under review and cannot be deleted.");
|
|
1326
1930
|
return;
|
|
1327
1931
|
}
|
|
1328
|
-
let
|
|
1329
|
-
|
|
1932
|
+
let o = V[r], s = (o && typeof o == "object" ? o.id : null) || G[r] || Y;
|
|
1933
|
+
me(r), S(null), w(null);
|
|
1330
1934
|
try {
|
|
1331
|
-
|
|
1332
|
-
assetId:
|
|
1935
|
+
s && (n.log(`Deleting asset ${s} for field ${r}...`), await e.portalDeleteFile(i, s), n.log(`Asset ${s} deleted successfully.`), c?.("portal_file_deleted", {
|
|
1936
|
+
assetId: s,
|
|
1333
1937
|
fieldId: r
|
|
1334
|
-
})),
|
|
1938
|
+
})), H((e) => ({
|
|
1335
1939
|
...e,
|
|
1336
1940
|
[r]: ""
|
|
1337
|
-
})),
|
|
1941
|
+
})), q((e) => {
|
|
1942
|
+
let t = { ...e };
|
|
1943
|
+
return delete t[r], t;
|
|
1944
|
+
}), Ce((e) => {
|
|
1338
1945
|
let t = { ...e };
|
|
1339
1946
|
return delete t[r], t;
|
|
1340
|
-
}),
|
|
1947
|
+
}), Y === s && X(null), w("File removed successfully.");
|
|
1341
1948
|
} catch (e) {
|
|
1342
1949
|
n.error("Failed to delete file", e);
|
|
1343
1950
|
let t = e.message || "Failed to delete file. Please try again.";
|
|
1344
|
-
|
|
1951
|
+
S(t), l?.({
|
|
1345
1952
|
type: "file_delete_error",
|
|
1346
1953
|
message: t,
|
|
1347
1954
|
error: e
|
|
1348
1955
|
});
|
|
1349
1956
|
} finally {
|
|
1350
|
-
|
|
1957
|
+
me(null);
|
|
1351
1958
|
}
|
|
1352
|
-
},
|
|
1353
|
-
t ||
|
|
1354
|
-
},
|
|
1959
|
+
}, We = (e, t) => {
|
|
1960
|
+
t || W((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
|
|
1961
|
+
}, Ke = async (r) => {
|
|
1355
1962
|
r.preventDefault();
|
|
1356
1963
|
let i = t.getToken();
|
|
1357
1964
|
if (!i) {
|
|
1358
|
-
|
|
1965
|
+
S("Session expired. Please log in again.");
|
|
1359
1966
|
return;
|
|
1360
1967
|
}
|
|
1361
|
-
|
|
1968
|
+
y(!0), S(null), w(null);
|
|
1362
1969
|
try {
|
|
1363
|
-
let t =
|
|
1970
|
+
let t = B?.editable_fields || [], n = { ...B?.registration?.custom_data || {} }, r = {};
|
|
1364
1971
|
t.forEach((e) => {
|
|
1365
|
-
let t =
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
let i = ve(e.id, e.label);
|
|
1371
|
-
e.builtin ? (r[i] = t, i !== e.id && (r[e.id] = t)) : (n[i] = t, r[i] = t, i !== e.id && (n[e.id] = t, r[e.id] = t));
|
|
1372
|
-
}), r.custom_data = n, r.addons = ie;
|
|
1373
|
-
let o = Q || Object.values(Z)[0];
|
|
1374
|
-
o && (r.asset_id = o, r.photo_id = o);
|
|
1375
|
-
let s = await e.portalUpdateProfile(i, r);
|
|
1376
|
-
a?.("attendee_profile_updated", {
|
|
1972
|
+
let t = V[e.id], i = e.label || e.name || e.id, a = Ye(e.label, e.id), o = Je(e.id, e.label);
|
|
1973
|
+
e.type === "file" ? (delete n[i], delete n[a], delete n[o], delete n[e.id]) : e.builtin ? (r[o] = t, o !== e.id && (r[e.id] = t)) : (n[o] = t, r[o] = t, o !== e.id && (n[e.id] = t, r[e.id] = t));
|
|
1974
|
+
}), r.custom_data = n, r.addons = U;
|
|
1975
|
+
let a = await e.portalUpdateProfile(i, r);
|
|
1976
|
+
c?.("attendee_profile_updated", {
|
|
1377
1977
|
payload: r,
|
|
1378
|
-
response:
|
|
1978
|
+
response: a
|
|
1379
1979
|
});
|
|
1380
|
-
let
|
|
1381
|
-
if (
|
|
1382
|
-
|
|
1980
|
+
let o = a?.data?.addon_checkout?.payment_url || a?.addon_checkout?.payment_url || a?.data?.payment_url || a?.payment_url;
|
|
1981
|
+
if (o && typeof o == "string" && o.trim() !== "") {
|
|
1982
|
+
ve(o), w("Add-ons updated! Opening payment page in a new tab..."), c?.("addon_payment_opened", { payment_url: o }), window.open(o, "_blank", "noopener,noreferrer"), await Oe(i);
|
|
1383
1983
|
return;
|
|
1384
1984
|
}
|
|
1385
|
-
|
|
1985
|
+
w("Profile updated successfully!"), await Oe(i);
|
|
1386
1986
|
} catch (e) {
|
|
1387
1987
|
n.error("Failed to update profile", e);
|
|
1388
1988
|
let t = e.message || "Failed to update profile. Please try again.";
|
|
1389
|
-
|
|
1989
|
+
S(t), l?.({
|
|
1390
1990
|
type: "profile_update_error",
|
|
1391
1991
|
message: t,
|
|
1392
1992
|
error: e
|
|
1393
1993
|
});
|
|
1394
1994
|
} finally {
|
|
1395
|
-
|
|
1995
|
+
y(!1);
|
|
1396
1996
|
}
|
|
1397
|
-
}
|
|
1398
|
-
|
|
1399
|
-
|
|
1997
|
+
}, $ = () => /* @__PURE__ */ m("div", {
|
|
1998
|
+
className: "absolute inset-0 pointer-events-none overflow-hidden z-0 select-none",
|
|
1999
|
+
children: [
|
|
2000
|
+
a && /* @__PURE__ */ p("div", {
|
|
2001
|
+
className: "absolute inset-0 bg-cover bg-center bg-no-repeat transition-opacity duration-700 pointer-events-none",
|
|
2002
|
+
style: {
|
|
2003
|
+
backgroundImage: `url(${a})`,
|
|
2004
|
+
backgroundSize: "cover",
|
|
2005
|
+
backgroundPosition: "center",
|
|
2006
|
+
backgroundRepeat: "no-repeat",
|
|
2007
|
+
opacity: i ? .55 : .85,
|
|
2008
|
+
filter: i ? "saturate(85%) contrast(105%)" : "saturate(95%) contrast(100%)"
|
|
2009
|
+
}
|
|
2010
|
+
}),
|
|
2011
|
+
/* @__PURE__ */ p("div", {
|
|
2012
|
+
className: "absolute inset-0 pointer-events-none",
|
|
2013
|
+
style: { background: i ? "linear-gradient(180deg, rgba(9,9,11,0.5) 0%, rgba(9,9,11,0.7) 100%)" : "linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(248,250,252,0.2) 100%)" }
|
|
2014
|
+
}),
|
|
2015
|
+
/* @__PURE__ */ p("div", {
|
|
2016
|
+
className: "absolute -top-16 -right-16 w-72 h-72 rounded-full blur-3xl pointer-events-none transition-all duration-700",
|
|
2017
|
+
style: { background: `radial-gradient(circle, ${r}28 0%, ${r}08 60%, transparent 80%)` }
|
|
2018
|
+
}),
|
|
2019
|
+
/* @__PURE__ */ p("div", {
|
|
2020
|
+
className: "absolute top-1/3 -left-20 w-80 h-80 rounded-full blur-3xl pointer-events-none transition-all duration-700",
|
|
2021
|
+
style: { background: `radial-gradient(circle, ${r}20 0%, ${r}06 55%, transparent 75%)` }
|
|
2022
|
+
}),
|
|
2023
|
+
/* @__PURE__ */ p("div", {
|
|
2024
|
+
className: "absolute -bottom-10 right-1/4 w-64 h-64 rounded-full blur-3xl pointer-events-none transition-all duration-700",
|
|
2025
|
+
style: { background: `radial-gradient(circle, ${r}16 0%, transparent 70%)` }
|
|
2026
|
+
}),
|
|
2027
|
+
!i && /* @__PURE__ */ p("div", {
|
|
2028
|
+
className: "absolute inset-0 opacity-[0.03]",
|
|
2029
|
+
style: {
|
|
2030
|
+
backgroundImage: `radial-gradient(${r} 1px, transparent 1px)`,
|
|
2031
|
+
backgroundSize: "16px 16px"
|
|
2032
|
+
}
|
|
2033
|
+
})
|
|
2034
|
+
]
|
|
2035
|
+
}), qe = (e) => {
|
|
2036
|
+
let t = (e.label || e.id || "").toLowerCase(), n = e.type;
|
|
2037
|
+
return n === "email" || t.includes("email") || t.includes("mail") ? /* @__PURE__ */ p(Q, {
|
|
2038
|
+
size: 13,
|
|
2039
|
+
className: "shrink-0",
|
|
2040
|
+
style: { color: r }
|
|
2041
|
+
}) : n === "phone" || t.includes("phone") || t.includes("mobile") || t.includes("contact") ? /* @__PURE__ */ p(je, {
|
|
2042
|
+
size: 13,
|
|
2043
|
+
className: "shrink-0",
|
|
2044
|
+
style: { color: r }
|
|
2045
|
+
}) : t.includes("salutation") || t.includes("title") || t.includes("prefix") ? /* @__PURE__ */ p(Le, {
|
|
2046
|
+
size: 13,
|
|
2047
|
+
className: "shrink-0",
|
|
2048
|
+
style: { color: r }
|
|
2049
|
+
}) : t.includes("name") || t.includes("attendee") ? /* @__PURE__ */ p(Ge, {
|
|
2050
|
+
size: 13,
|
|
2051
|
+
className: "shrink-0",
|
|
2052
|
+
style: { color: r }
|
|
2053
|
+
}) : t.includes("designat") || t.includes("role") || t.includes("position") || t.includes("profession") ? /* @__PURE__ */ p(ie, {
|
|
2054
|
+
size: 13,
|
|
2055
|
+
className: "shrink-0",
|
|
2056
|
+
style: { color: r }
|
|
2057
|
+
}) : t.includes("specialis") || t.includes("specializ") || t.includes("department") || t.includes("degree") ? /* @__PURE__ */ p(fe, {
|
|
2058
|
+
size: 13,
|
|
2059
|
+
className: "shrink-0",
|
|
2060
|
+
style: { color: r }
|
|
2061
|
+
}) : t.includes("organi") || t.includes("institute") || t.includes("hospital") || t.includes("company") || t.includes("college") ? /* @__PURE__ */ p(ae, {
|
|
2062
|
+
size: 13,
|
|
2063
|
+
className: "shrink-0",
|
|
2064
|
+
style: { color: r }
|
|
2065
|
+
}) : t.includes("city") || t.includes("state") || t.includes("country") || t.includes("address") ? /* @__PURE__ */ p(xe, {
|
|
2066
|
+
size: 13,
|
|
2067
|
+
className: "shrink-0",
|
|
2068
|
+
style: { color: r }
|
|
2069
|
+
}) : p(n === "file" ? J : K, {
|
|
2070
|
+
size: 13,
|
|
2071
|
+
className: "shrink-0",
|
|
2072
|
+
style: { color: r }
|
|
2073
|
+
});
|
|
2074
|
+
}, Xe = (e, t = "w-full", n = []) => {
|
|
2075
|
+
if (!e) return null;
|
|
2076
|
+
let o = Ie(e), s = n.includes(e.id) || n.includes(Je(e.id, e.label)) || o, c = V[e.id] ?? "";
|
|
1400
2077
|
return /* @__PURE__ */ m("div", {
|
|
1401
|
-
className:
|
|
2078
|
+
className: `${t} px-1.5 mb-3.5`,
|
|
1402
2079
|
children: [/* @__PURE__ */ m("div", {
|
|
1403
|
-
className:
|
|
1404
|
-
children: [/* @__PURE__ */ m("
|
|
1405
|
-
className: `
|
|
1406
|
-
children:
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
2080
|
+
className: "flex items-center justify-between mb-1.5",
|
|
2081
|
+
children: [/* @__PURE__ */ m("label", {
|
|
2082
|
+
className: `flex items-center gap-1.5 text-xs font-semibold ${i ? "text-zinc-200" : "text-gray-800"}`,
|
|
2083
|
+
children: [
|
|
2084
|
+
/* @__PURE__ */ p("span", {
|
|
2085
|
+
className: "p-1 rounded-md shrink-0 flex items-center justify-center transition-colors border shadow-2xs",
|
|
2086
|
+
style: {
|
|
2087
|
+
backgroundColor: i ? "rgba(255,255,255,0.08)" : "rgba(255,255,255,0.75)",
|
|
2088
|
+
borderColor: i ? "rgba(255,255,255,0.12)" : "rgba(255,255,255,0.9)"
|
|
2089
|
+
},
|
|
2090
|
+
children: qe(e)
|
|
2091
|
+
}),
|
|
2092
|
+
/* @__PURE__ */ p("span", { children: e.label }),
|
|
2093
|
+
e.required && /* @__PURE__ */ p("span", {
|
|
2094
|
+
className: "text-red-500 font-bold",
|
|
2095
|
+
children: "*"
|
|
2096
|
+
})
|
|
2097
|
+
]
|
|
2098
|
+
}), o ? /* @__PURE__ */ m("span", {
|
|
2099
|
+
className: `flex items-center gap-1 text-2xs font-medium px-2 py-0.5 rounded-full border backdrop-blur-md ${i ? "text-amber-400 bg-amber-950/60 border-amber-900/50" : "text-amber-700 bg-amber-50/80 border-amber-200"}`,
|
|
2100
|
+
children: [/* @__PURE__ */ p(_e, { size: 10 }), " Under Review"]
|
|
2101
|
+
}) : s ? /* @__PURE__ */ m("span", {
|
|
2102
|
+
className: `flex items-center gap-1 text-2xs font-medium px-2 py-0.5 rounded-full border ${i ? "text-zinc-400 bg-zinc-800/80 border-zinc-700" : "text-gray-600 bg-gray-100 border-gray-200"}`,
|
|
2103
|
+
children: [/* @__PURE__ */ p(_e, { size: 10 }), " Locked"]
|
|
2104
|
+
}) : null]
|
|
2105
|
+
}), e.type === "select" ? /* @__PURE__ */ m("div", {
|
|
2106
|
+
className: "relative",
|
|
2107
|
+
children: [/* @__PURE__ */ m("select", {
|
|
2108
|
+
disabled: s,
|
|
2109
|
+
value: c,
|
|
2110
|
+
onChange: (t) => H({
|
|
2111
|
+
...V,
|
|
2112
|
+
[e.id]: t.target.value
|
|
2113
|
+
}),
|
|
2114
|
+
className: `w-full pl-3.5 pr-8 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all appearance-none cursor-pointer border border-gray-300 dark:border-zinc-700 shadow-2xs ${s ? i ? "bg-zinc-800/60 text-zinc-500 border-zinc-800 cursor-not-allowed" : "bg-gray-100/70 text-gray-500 border-gray-200 cursor-not-allowed" : i ? a ? "bg-zinc-900/65 text-white hover:border-zinc-600 focus:bg-zinc-900" : "bg-zinc-900 text-white hover:border-zinc-600 focus:bg-zinc-900" : a ? "bg-white/65 text-gray-900 hover:border-gray-400 focus:bg-white backdrop-blur-xs" : "bg-white text-gray-900 hover:border-gray-400 focus:bg-white"}`,
|
|
2115
|
+
style: {
|
|
2116
|
+
borderLeftWidth: "3.5px",
|
|
2117
|
+
borderLeftStyle: "solid",
|
|
2118
|
+
borderLeftColor: r
|
|
2119
|
+
},
|
|
2120
|
+
onFocus: (e) => {
|
|
2121
|
+
s || (e.currentTarget.style.borderColor = r, e.currentTarget.style.boxShadow = `0 0 0 3px color-mix(in srgb, ${r} 20%, transparent), 0 1px 2px 0 rgba(0,0,0,0.05)`);
|
|
2122
|
+
},
|
|
2123
|
+
onBlur: (e) => {
|
|
2124
|
+
s || (e.currentTarget.style.borderColor = i ? "#3f3f46" : "#d1d5db", e.currentTarget.style.borderLeftColor = r, e.currentTarget.style.boxShadow = "none");
|
|
2125
|
+
},
|
|
2126
|
+
children: [/* @__PURE__ */ m("option", {
|
|
2127
|
+
value: "",
|
|
2128
|
+
className: i ? "bg-zinc-900 text-white" : "bg-white text-gray-900",
|
|
2129
|
+
children: [
|
|
2130
|
+
"Select ",
|
|
2131
|
+
e.label,
|
|
2132
|
+
"..."
|
|
2133
|
+
]
|
|
2134
|
+
}), (e.options || []).map((e) => /* @__PURE__ */ p("option", {
|
|
2135
|
+
value: e,
|
|
2136
|
+
className: i ? "bg-zinc-900 text-white" : "bg-white text-gray-900",
|
|
2137
|
+
children: e
|
|
2138
|
+
}, e))]
|
|
2139
|
+
}), /* @__PURE__ */ p("div", {
|
|
2140
|
+
className: "absolute inset-y-0 right-0 flex items-center pr-2.5 pointer-events-none",
|
|
2141
|
+
children: /* @__PURE__ */ p(se, {
|
|
2142
|
+
size: 14,
|
|
2143
|
+
style: { color: r }
|
|
2144
|
+
})
|
|
1415
2145
|
})]
|
|
1416
|
-
}), /* @__PURE__ */
|
|
1417
|
-
className: "
|
|
2146
|
+
}) : e.type === "file" ? Ze(e, s, c) : /* @__PURE__ */ p("div", {
|
|
2147
|
+
className: "relative",
|
|
2148
|
+
children: /* @__PURE__ */ p("input", {
|
|
2149
|
+
type: e.type === "phone" ? "tel" : e.type === "email" ? "email" : "text",
|
|
2150
|
+
disabled: s,
|
|
2151
|
+
value: c,
|
|
2152
|
+
placeholder: e.placeholder || `Enter ${e.label.toLowerCase()}`,
|
|
2153
|
+
onChange: (t) => H({
|
|
2154
|
+
...V,
|
|
2155
|
+
[e.id]: t.target.value
|
|
2156
|
+
}),
|
|
2157
|
+
className: `w-full px-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${s ? i ? "bg-zinc-800/60 text-zinc-500 border-zinc-800 cursor-not-allowed" : "bg-gray-100/70 text-gray-500 border-gray-200 cursor-not-allowed" : i ? a ? "bg-zinc-900/65 text-white placeholder-zinc-400 hover:border-zinc-600 focus:bg-zinc-900" : "bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900" : a ? "bg-white/65 text-gray-900 placeholder-gray-500 hover:border-gray-400 focus:bg-white backdrop-blur-xs" : "bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white"}`,
|
|
2158
|
+
style: {
|
|
2159
|
+
borderLeftWidth: "3.5px",
|
|
2160
|
+
borderLeftStyle: "solid",
|
|
2161
|
+
borderLeftColor: r
|
|
2162
|
+
},
|
|
2163
|
+
onFocus: (e) => {
|
|
2164
|
+
s || (e.currentTarget.style.borderColor = r, e.currentTarget.style.boxShadow = `0 0 0 3px color-mix(in srgb, ${r} 20%, transparent), 0 1px 2px 0 rgba(0,0,0,0.05)`);
|
|
2165
|
+
},
|
|
2166
|
+
onBlur: (e) => {
|
|
2167
|
+
s || (e.currentTarget.style.borderColor = i ? "#3f3f46" : "#d1d5db", e.currentTarget.style.borderLeftColor = r, e.currentTarget.style.boxShadow = "none");
|
|
2168
|
+
}
|
|
2169
|
+
})
|
|
2170
|
+
})]
|
|
2171
|
+
}, e.id);
|
|
2172
|
+
}, Ze = (e, t, n) => {
|
|
2173
|
+
let a = Se[e.id], o = we[e.id] || "", s = ee === e.id, c = e.label || e.name || e.id, l = Ee[e.id] || (o && !n ? "text" : "file"), u = typeof n == "string" ? n : n?.serve_url || n?.url || "", d = typeof n == "string" ? n : n?.file_name || u;
|
|
2174
|
+
return /* @__PURE__ */ p("div", {
|
|
2175
|
+
className: "space-y-2",
|
|
2176
|
+
children: /* @__PURE__ */ m("div", {
|
|
2177
|
+
className: `p-3.5 sm:p-4 rounded-xl border border-dashed transition-all ${i ? "bg-zinc-900/60 border-zinc-700 hover:border-zinc-600" : "bg-slate-50/80 border-gray-300 hover:border-gray-400 hover:bg-slate-100/50 shadow-2xs"}`,
|
|
2178
|
+
style: {
|
|
2179
|
+
borderLeftWidth: "3.5px",
|
|
2180
|
+
borderLeftStyle: "solid",
|
|
2181
|
+
borderLeftColor: r
|
|
2182
|
+
},
|
|
1418
2183
|
children: [
|
|
1419
|
-
|
|
1420
|
-
className:
|
|
2184
|
+
/* @__PURE__ */ m("div", {
|
|
2185
|
+
className: "flex items-center justify-between gap-3 flex-wrap",
|
|
1421
2186
|
children: [/* @__PURE__ */ m("div", {
|
|
2187
|
+
className: "flex items-center gap-2.5",
|
|
2188
|
+
children: [/* @__PURE__ */ p("div", {
|
|
2189
|
+
className: "w-8 h-8 rounded-lg flex items-center justify-center shrink-0 border",
|
|
2190
|
+
style: {
|
|
2191
|
+
backgroundColor: i ? "rgba(255,255,255,0.06)" : `color-mix(in srgb, ${r} 8%, white)`,
|
|
2192
|
+
borderColor: i ? "rgba(255,255,255,0.12)" : `color-mix(in srgb, ${r} 20%, white)`,
|
|
2193
|
+
color: r
|
|
2194
|
+
},
|
|
2195
|
+
children: /* @__PURE__ */ p(J, { size: 16 })
|
|
2196
|
+
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
|
|
2197
|
+
className: `text-xs font-bold ${i ? "text-zinc-200" : "text-gray-900"}`,
|
|
2198
|
+
children: c
|
|
2199
|
+
}), /* @__PURE__ */ p("p", {
|
|
2200
|
+
className: `text-2xs font-medium ${i ? "text-zinc-400" : "text-gray-500"}`,
|
|
2201
|
+
children: n ? "Document attached" : a ? `File chosen: ${a.name}` : "Choose a file or enter text to upload"
|
|
2202
|
+
})] })]
|
|
2203
|
+
}), /* @__PURE__ */ p("div", {
|
|
1422
2204
|
className: "flex items-center gap-2",
|
|
1423
|
-
children: [/* @__PURE__ */
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
2205
|
+
children: u.trim() !== "" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("a", {
|
|
2206
|
+
href: u,
|
|
2207
|
+
target: "_blank",
|
|
2208
|
+
rel: "noopener noreferrer",
|
|
2209
|
+
className: "flex items-center gap-1.5 py-1.5 px-3 rounded-lg text-xs font-semibold text-white shadow-xs transition-opacity hover:opacity-90 shrink-0",
|
|
2210
|
+
style: { backgroundColor: r },
|
|
2211
|
+
title: "Open file in new tab",
|
|
2212
|
+
children: [
|
|
2213
|
+
/* @__PURE__ */ p(K, { size: 13 }),
|
|
2214
|
+
/* @__PURE__ */ p("span", { children: "View" }),
|
|
2215
|
+
/* @__PURE__ */ p(de, { size: 11 })
|
|
2216
|
+
]
|
|
2217
|
+
}), !t && /* @__PURE__ */ m("button", {
|
|
2218
|
+
type: "button",
|
|
2219
|
+
disabled: pe === e.id || s,
|
|
2220
|
+
onClick: () => He(e.id),
|
|
2221
|
+
className: `flex items-center gap-1 py-1.5 px-2.5 rounded-lg text-xs font-semibold border backdrop-blur-sm transition-colors cursor-pointer ${i ? "border-red-900/60 bg-red-950/50 text-red-400 hover:bg-red-900/60" : "border-red-200 bg-red-50/80 text-red-600 hover:bg-red-100"}`,
|
|
2222
|
+
title: "Remove file",
|
|
2223
|
+
children: [/* @__PURE__ */ p(Ve, { size: 13 }), /* @__PURE__ */ p("span", { children: pe === e.id ? "Deleting..." : "Delete" })]
|
|
2224
|
+
})] })
|
|
1433
2225
|
})]
|
|
1434
2226
|
}),
|
|
1435
|
-
|
|
1436
|
-
className: `
|
|
1437
|
-
children: [/* @__PURE__ */ p(
|
|
1438
|
-
size:
|
|
1439
|
-
className: "
|
|
1440
|
-
}), /* @__PURE__ */
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
children: [/* @__PURE__ */ p(ee, {
|
|
1445
|
-
size: 16,
|
|
1446
|
-
className: "shrink-0 mt-0.5"
|
|
1447
|
-
}), /* @__PURE__ */ p("span", { children: S })]
|
|
1448
|
-
}),
|
|
1449
|
-
/* @__PURE__ */ m("div", {
|
|
1450
|
-
className: `p-4 rounded-xl border shadow-xs space-y-3 ${i ? "bg-zinc-900 border-zinc-800" : "bg-white border-gray-200"}`,
|
|
1451
|
-
children: [
|
|
1452
|
-
/* @__PURE__ */ m("div", {
|
|
1453
|
-
className: "flex items-center justify-between",
|
|
1454
|
-
children: [/* @__PURE__ */ p("span", {
|
|
1455
|
-
className: `text-xs font-bold uppercase tracking-wider ${i ? "text-zinc-400" : "text-gray-400"}`,
|
|
1456
|
-
children: "Registration Details"
|
|
1457
|
-
}), e.status && /* @__PURE__ */ p("span", {
|
|
1458
|
-
className: `px-2.5 py-0.5 rounded-full text-xs font-semibold capitalize ${i ? "bg-emerald-950/80 text-emerald-300 border border-emerald-800/80" : "bg-green-100 text-green-800"}`,
|
|
1459
|
-
children: e.status
|
|
1460
|
-
})]
|
|
1461
|
-
}),
|
|
1462
|
-
/* @__PURE__ */ m("div", {
|
|
1463
|
-
className: "grid grid-cols-2 gap-3 text-xs",
|
|
1464
|
-
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("span", {
|
|
1465
|
-
className: `${i ? "text-zinc-400" : "text-gray-500"} block`,
|
|
1466
|
-
children: "Registration No:"
|
|
1467
|
-
}), /* @__PURE__ */ p("span", {
|
|
1468
|
-
className: `font-bold font-mono ${i ? "text-white" : "text-gray-900"}`,
|
|
1469
|
-
children: e.registration_number || "N/A"
|
|
1470
|
-
})] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("span", {
|
|
1471
|
-
className: `${i ? "text-zinc-400" : "text-gray-500"} block`,
|
|
1472
|
-
children: "Ticket Type:"
|
|
1473
|
-
}), /* @__PURE__ */ p("span", {
|
|
1474
|
-
className: `font-bold ${i ? "text-white" : "text-gray-900"}`,
|
|
1475
|
-
children: e.registration_type || "N/A"
|
|
1476
|
-
})] })]
|
|
1477
|
-
}),
|
|
1478
|
-
a && a.state && /* @__PURE__ */ m("div", {
|
|
1479
|
-
className: `pt-2 border-t flex items-center justify-between text-xs ${i ? "border-zinc-800 text-zinc-300" : "border-gray-100 text-gray-700"}`,
|
|
1480
|
-
children: [/* @__PURE__ */ m("div", {
|
|
1481
|
-
className: "flex items-center gap-1.5",
|
|
1482
|
-
children: [/* @__PURE__ */ p(de, {
|
|
1483
|
-
size: 14,
|
|
1484
|
-
className: i ? "text-zinc-400" : "text-gray-400"
|
|
1485
|
-
}), /* @__PURE__ */ m("span", { children: [
|
|
1486
|
-
"Payment: ",
|
|
1487
|
-
/* @__PURE__ */ p("strong", {
|
|
1488
|
-
className: "capitalize",
|
|
1489
|
-
children: a.state
|
|
1490
|
-
}),
|
|
1491
|
-
" (",
|
|
1492
|
-
a.currency,
|
|
1493
|
-
" ",
|
|
1494
|
-
a.amount,
|
|
1495
|
-
")"
|
|
1496
|
-
] })]
|
|
1497
|
-
}), a.receipt_url && /* @__PURE__ */ m("a", {
|
|
1498
|
-
href: a.receipt_url,
|
|
1499
|
-
target: "_blank",
|
|
1500
|
-
rel: "noopener noreferrer",
|
|
1501
|
-
className: "flex items-center gap-1 font-semibold hover:underline",
|
|
1502
|
-
style: { color: r },
|
|
1503
|
-
children: [/* @__PURE__ */ p("span", { children: "Receipt" }), /* @__PURE__ */ p(ne, { size: 12 })]
|
|
1504
|
-
})]
|
|
1505
|
-
})
|
|
1506
|
-
]
|
|
2227
|
+
n && /* @__PURE__ */ m("div", {
|
|
2228
|
+
className: `mt-2 pt-2 border-t text-2xs truncate flex items-center gap-1.5 ${i ? "border-zinc-800 text-zinc-300" : "border-gray-200 text-gray-700 font-medium"}`,
|
|
2229
|
+
children: [/* @__PURE__ */ p(I, {
|
|
2230
|
+
size: 12,
|
|
2231
|
+
className: "text-emerald-500 shrink-0"
|
|
2232
|
+
}), /* @__PURE__ */ m("span", {
|
|
2233
|
+
className: "truncate",
|
|
2234
|
+
children: ["Attached: ", d]
|
|
2235
|
+
})]
|
|
1507
2236
|
}),
|
|
1508
|
-
/* @__PURE__ */ m("
|
|
1509
|
-
|
|
1510
|
-
className: "space-y-4",
|
|
2237
|
+
!t && /* @__PURE__ */ m("div", {
|
|
2238
|
+
className: "mt-3 pt-3 border-t border-gray-200 dark:border-zinc-800 space-y-2.5",
|
|
1511
2239
|
children: [
|
|
1512
|
-
/* @__PURE__ */
|
|
1513
|
-
className:
|
|
1514
|
-
children:
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
children: t.map((e) => {
|
|
1529
|
-
let t = Ce(e), a = n.includes(e.id) || n.includes(ve(e.id, e.label)) || t, o = e.width === "half", s = J[e.id] ?? "";
|
|
1530
|
-
return /* @__PURE__ */ m("div", {
|
|
1531
|
-
className: `px-1.5 mb-3.5 ${o ? "w-full md:w-1/2" : "w-full"}`,
|
|
1532
|
-
children: [/* @__PURE__ */ m("div", {
|
|
1533
|
-
className: "flex items-center justify-between mb-1",
|
|
1534
|
-
children: [/* @__PURE__ */ m("label", {
|
|
1535
|
-
className: `block text-xs font-semibold ${i ? "text-zinc-200" : "text-gray-700"}`,
|
|
1536
|
-
children: [
|
|
1537
|
-
e.label,
|
|
1538
|
-
" ",
|
|
1539
|
-
e.required && /* @__PURE__ */ p("span", {
|
|
1540
|
-
className: "text-red-500",
|
|
1541
|
-
children: "*"
|
|
1542
|
-
})
|
|
1543
|
-
]
|
|
1544
|
-
}), t ? /* @__PURE__ */ m("span", {
|
|
1545
|
-
className: `flex items-center gap-1 text-2xs font-medium px-1.5 py-0.5 rounded ${i ? "text-amber-400 bg-amber-950/60 border border-amber-900/50" : "text-amber-700 bg-amber-50 border border-amber-200"}`,
|
|
1546
|
-
children: [/* @__PURE__ */ p(q, { size: 10 }), " Under Review"]
|
|
1547
|
-
}) : a ? /* @__PURE__ */ m("span", {
|
|
1548
|
-
className: `flex items-center gap-1 text-2xs font-medium px-1.5 py-0.5 rounded ${i ? "text-zinc-400 bg-zinc-800" : "text-gray-400 bg-gray-100"}`,
|
|
1549
|
-
children: [/* @__PURE__ */ p(q, { size: 10 }), " Locked"]
|
|
1550
|
-
}) : null]
|
|
1551
|
-
}), e.type === "select" ? /* @__PURE__ */ m("select", {
|
|
1552
|
-
disabled: a,
|
|
1553
|
-
value: s,
|
|
1554
|
-
onChange: (t) => X({
|
|
1555
|
-
...J,
|
|
1556
|
-
[e.id]: t.target.value
|
|
1557
|
-
}),
|
|
1558
|
-
className: `w-full px-3 py-2 text-xs border rounded-lg focus:outline-none transition-all ${a ? i ? "bg-zinc-800 text-zinc-500 border-zinc-700 cursor-not-allowed" : "bg-gray-100 text-gray-500 border-gray-200 cursor-not-allowed" : i ? "bg-zinc-950 text-white border-zinc-700" : "bg-white text-gray-900 border-gray-300"}`,
|
|
1559
|
-
onFocus: (e) => {
|
|
1560
|
-
a || (e.currentTarget.style.borderColor = r);
|
|
1561
|
-
},
|
|
1562
|
-
onBlur: (e) => {
|
|
1563
|
-
a || (e.currentTarget.style.borderColor = i ? "#3f3f46" : "#d1d5db");
|
|
1564
|
-
},
|
|
1565
|
-
children: [/* @__PURE__ */ m("option", {
|
|
1566
|
-
value: "",
|
|
1567
|
-
className: i ? "bg-zinc-900 text-white" : "",
|
|
1568
|
-
children: [
|
|
1569
|
-
"Select ",
|
|
1570
|
-
e.label,
|
|
1571
|
-
"..."
|
|
1572
|
-
]
|
|
1573
|
-
}), (e.options || []).map((e) => /* @__PURE__ */ p("option", {
|
|
1574
|
-
value: e,
|
|
1575
|
-
className: i ? "bg-zinc-900 text-white" : "",
|
|
1576
|
-
children: e
|
|
1577
|
-
}, e))]
|
|
1578
|
-
}) : e.type === "file" ? /* @__PURE__ */ m("div", {
|
|
1579
|
-
className: "space-y-2",
|
|
1580
|
-
children: [/* @__PURE__ */ m("div", {
|
|
1581
|
-
className: "flex items-center gap-2",
|
|
1582
|
-
children: [!a && /* @__PURE__ */ m("label", {
|
|
1583
|
-
className: "flex-1 cursor-pointer",
|
|
1584
|
-
children: [/* @__PURE__ */ p("input", {
|
|
1585
|
-
type: "file",
|
|
1586
|
-
className: "sr-only",
|
|
1587
|
-
disabled: v === e.id,
|
|
1588
|
-
onChange: (t) => {
|
|
1589
|
-
let n = t.target.files?.[0];
|
|
1590
|
-
n && we(e.id, n);
|
|
1591
|
-
}
|
|
1592
|
-
}), /* @__PURE__ */ m("div", {
|
|
1593
|
-
className: `flex items-center justify-center gap-2 py-2 px-3 border border-dashed rounded-lg text-xs font-medium transition-colors ${i ? "border-zinc-700 hover:border-zinc-500 text-zinc-300 bg-zinc-950 hover:bg-zinc-800" : "border-gray-300 hover:border-gray-400 text-gray-700 bg-gray-50 hover:bg-gray-100"}`,
|
|
1594
|
-
children: [/* @__PURE__ */ p(me, {
|
|
1595
|
-
size: 14,
|
|
1596
|
-
className: i ? "text-zinc-400" : "text-gray-500"
|
|
1597
|
-
}), /* @__PURE__ */ p("span", { children: v === e.id ? "Uploading..." : "Choose File to Upload" })]
|
|
1598
|
-
})]
|
|
1599
|
-
}), s && typeof s == "string" && s.trim() !== "" && /* @__PURE__ */ m("div", {
|
|
1600
|
-
className: "flex items-center gap-1.5 shrink-0",
|
|
1601
|
-
children: [/* @__PURE__ */ m("a", {
|
|
1602
|
-
href: s,
|
|
1603
|
-
target: "_blank",
|
|
1604
|
-
rel: "noopener noreferrer",
|
|
1605
|
-
className: "flex items-center gap-1.5 py-2 px-3 rounded-lg text-xs font-semibold text-white shadow-xs transition-opacity hover:opacity-90 shrink-0",
|
|
1606
|
-
style: { backgroundColor: r },
|
|
1607
|
-
title: "Open file in new tab",
|
|
1608
|
-
children: [
|
|
1609
|
-
/* @__PURE__ */ p(U, { size: 14 }),
|
|
1610
|
-
/* @__PURE__ */ p("span", { children: "Open File" }),
|
|
1611
|
-
/* @__PURE__ */ p(ne, { size: 12 })
|
|
1612
|
-
]
|
|
1613
|
-
}), !a && /* @__PURE__ */ m("button", {
|
|
1614
|
-
type: "button",
|
|
1615
|
-
disabled: ce === e.id || v === e.id,
|
|
1616
|
-
onClick: () => Te(e.id),
|
|
1617
|
-
className: `flex items-center gap-1 py-2 px-2.5 rounded-lg text-xs font-semibold border transition-colors cursor-pointer ${i ? "border-red-900/60 bg-red-950/40 text-red-400 hover:bg-red-900/50" : "border-red-200 bg-red-50 text-red-600 hover:bg-red-100"}`,
|
|
1618
|
-
title: "Delete uploaded file",
|
|
1619
|
-
children: [/* @__PURE__ */ p(fe, { size: 13 }), /* @__PURE__ */ p("span", { children: ce === e.id ? "Deleting..." : "Delete" })]
|
|
1620
|
-
})]
|
|
1621
|
-
})]
|
|
1622
|
-
}), s && /* @__PURE__ */ m("div", {
|
|
1623
|
-
className: `text-2xs truncate flex items-center gap-1 ${i ? "text-zinc-400" : "text-gray-500"}`,
|
|
1624
|
-
children: [/* @__PURE__ */ p(I, {
|
|
1625
|
-
size: 12,
|
|
1626
|
-
className: "text-green-500 shrink-0"
|
|
1627
|
-
}), /* @__PURE__ */ m("span", {
|
|
1628
|
-
className: "truncate",
|
|
1629
|
-
children: ["File attached: ", s]
|
|
1630
|
-
})]
|
|
1631
|
-
})]
|
|
1632
|
-
}) : /* @__PURE__ */ p("input", {
|
|
1633
|
-
type: e.type === "phone" ? "tel" : e.type === "email" ? "email" : "text",
|
|
1634
|
-
disabled: a,
|
|
1635
|
-
value: s,
|
|
1636
|
-
placeholder: e.placeholder || `Enter ${e.label.toLowerCase()}`,
|
|
1637
|
-
onChange: (t) => X({
|
|
1638
|
-
...J,
|
|
1639
|
-
[e.id]: t.target.value
|
|
1640
|
-
}),
|
|
1641
|
-
className: `w-full px-3 py-2 text-xs border rounded-lg focus:outline-none transition-all ${a ? i ? "bg-zinc-800 text-zinc-500 border-zinc-700 cursor-not-allowed" : "bg-gray-100 text-gray-500 border-gray-200 cursor-not-allowed" : i ? "bg-zinc-950 text-white placeholder-zinc-500 border-zinc-700" : "bg-white text-gray-900 border-gray-300"}`,
|
|
1642
|
-
onFocus: (e) => {
|
|
1643
|
-
a || (e.currentTarget.style.borderColor = r);
|
|
1644
|
-
},
|
|
1645
|
-
onBlur: (e) => {
|
|
1646
|
-
a || (e.currentTarget.style.borderColor = i ? "#3f3f46" : "#d1d5db");
|
|
1647
|
-
}
|
|
1648
|
-
})]
|
|
1649
|
-
}, e.id);
|
|
1650
|
-
})
|
|
1651
|
-
})]
|
|
2240
|
+
/* @__PURE__ */ p("div", {
|
|
2241
|
+
className: "flex justify-end",
|
|
2242
|
+
children: /* @__PURE__ */ p("button", {
|
|
2243
|
+
type: "button",
|
|
2244
|
+
disabled: s,
|
|
2245
|
+
onClick: () => De((t) => ({
|
|
2246
|
+
...t,
|
|
2247
|
+
[e.id]: l === "file" ? "text" : "file"
|
|
2248
|
+
})),
|
|
2249
|
+
className: "flex items-center gap-1 text-2xs font-semibold px-2.5 py-1 rounded-lg border cursor-pointer transition-colors hover:opacity-80 disabled:opacity-50",
|
|
2250
|
+
style: {
|
|
2251
|
+
color: r,
|
|
2252
|
+
borderColor: `color-mix(in srgb, ${r} 35%, transparent)`
|
|
2253
|
+
},
|
|
2254
|
+
children: l === "file" ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(K, { size: 11 }), " Send text only"] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(Ue, { size: 11 }), " Send file"] })
|
|
2255
|
+
})
|
|
1652
2256
|
}),
|
|
1653
|
-
|
|
1654
|
-
className:
|
|
1655
|
-
children: [/* @__PURE__ */ m("
|
|
1656
|
-
className: "
|
|
1657
|
-
children: [/* @__PURE__ */ p("
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
2257
|
+
l === "file" && /* @__PURE__ */ m("div", {
|
|
2258
|
+
className: "flex items-center gap-2 flex-wrap",
|
|
2259
|
+
children: [/* @__PURE__ */ m("label", {
|
|
2260
|
+
className: "cursor-pointer relative",
|
|
2261
|
+
children: [/* @__PURE__ */ p("input", {
|
|
2262
|
+
type: "file",
|
|
2263
|
+
className: "hidden",
|
|
2264
|
+
style: { display: "none" },
|
|
2265
|
+
tabIndex: -1,
|
|
2266
|
+
disabled: s,
|
|
2267
|
+
onChange: (t) => {
|
|
2268
|
+
let n = t.target.files?.[0];
|
|
2269
|
+
n && Re(e.id, n), t.target.value = "";
|
|
2270
|
+
}
|
|
2271
|
+
}), /* @__PURE__ */ m("div", {
|
|
2272
|
+
className: `flex items-center gap-1.5 py-1.5 px-3 rounded-lg text-xs font-semibold border transition-all shadow-2xs ${i ? "border-zinc-700 hover:border-zinc-600 text-zinc-200 bg-zinc-800 hover:bg-zinc-750" : "border-gray-300 hover:border-gray-400 text-gray-800 bg-white hover:bg-gray-50"}`,
|
|
2273
|
+
children: [/* @__PURE__ */ p(Ue, {
|
|
2274
|
+
size: 13,
|
|
2275
|
+
style: { color: r }
|
|
2276
|
+
}), /* @__PURE__ */ p("span", { children: a ? "Change File" : n ? "Replace File" : "Choose File" })]
|
|
1663
2277
|
})]
|
|
1664
|
-
}), /* @__PURE__ */
|
|
1665
|
-
className:
|
|
1666
|
-
children:
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
})] })]
|
|
1695
|
-
}), t ? /* @__PURE__ */ m("span", {
|
|
1696
|
-
className: `px-2 py-0.5 rounded text-2xs font-semibold flex items-center gap-1 shrink-0 ${i ? "bg-emerald-950/80 text-emerald-300 border border-emerald-800/80" : "bg-green-100 text-green-800"}`,
|
|
1697
|
-
children: [/* @__PURE__ */ p(I, { size: 12 }), " Purchased"]
|
|
1698
|
-
}) : /* @__PURE__ */ p("span", {
|
|
1699
|
-
className: `text-2xs font-semibold px-2 py-0.5 rounded transition-colors shrink-0 ${n ? "bg-blue-600 text-white" : i ? "bg-zinc-800 text-zinc-300" : "bg-gray-100 text-gray-600"}`,
|
|
1700
|
-
style: { backgroundColor: n ? r : void 0 },
|
|
1701
|
-
children: n ? "Selected" : "Select"
|
|
1702
|
-
})]
|
|
1703
|
-
}, e.name);
|
|
1704
|
-
})
|
|
2278
|
+
}), a && /* @__PURE__ */ m("div", {
|
|
2279
|
+
className: `flex items-center gap-1.5 py-1 px-2.5 rounded-lg text-xs border ${i ? "bg-zinc-800 border-zinc-700 text-zinc-200" : "bg-white border-gray-300 text-gray-800 shadow-2xs"}`,
|
|
2280
|
+
children: [
|
|
2281
|
+
/* @__PURE__ */ p(K, {
|
|
2282
|
+
size: 12,
|
|
2283
|
+
style: { color: r }
|
|
2284
|
+
}),
|
|
2285
|
+
/* @__PURE__ */ p("span", {
|
|
2286
|
+
className: "font-medium truncate max-w-[200px]",
|
|
2287
|
+
children: a.name
|
|
2288
|
+
}),
|
|
2289
|
+
/* @__PURE__ */ m("span", {
|
|
2290
|
+
className: "text-2xs opacity-60",
|
|
2291
|
+
children: [
|
|
2292
|
+
"(",
|
|
2293
|
+
(a.size / 1024).toFixed(0),
|
|
2294
|
+
" KB)"
|
|
2295
|
+
]
|
|
2296
|
+
}),
|
|
2297
|
+
/* @__PURE__ */ p("button", {
|
|
2298
|
+
type: "button",
|
|
2299
|
+
onClick: () => Ce((t) => {
|
|
2300
|
+
let n = { ...t };
|
|
2301
|
+
return delete n[e.id], n;
|
|
2302
|
+
}),
|
|
2303
|
+
className: "ml-1 text-gray-400 hover:text-red-500 cursor-pointer font-bold",
|
|
2304
|
+
title: "Clear chosen file",
|
|
2305
|
+
children: "✕"
|
|
2306
|
+
})
|
|
2307
|
+
]
|
|
1705
2308
|
})]
|
|
1706
2309
|
}),
|
|
1707
|
-
/* @__PURE__ */
|
|
1708
|
-
className: "
|
|
1709
|
-
children:
|
|
1710
|
-
|
|
1711
|
-
|
|
2310
|
+
l === "text" && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
2311
|
+
className: `block text-2xs font-semibold uppercase tracking-wider mb-1 ${i ? "text-zinc-400" : "text-gray-500"}`,
|
|
2312
|
+
children: "Text"
|
|
2313
|
+
}), /* @__PURE__ */ p("textarea", {
|
|
2314
|
+
rows: 2,
|
|
2315
|
+
disabled: s,
|
|
2316
|
+
value: o,
|
|
2317
|
+
onChange: (t) => Te((n) => ({
|
|
2318
|
+
...n,
|
|
2319
|
+
[e.id]: t.target.value
|
|
2320
|
+
})),
|
|
2321
|
+
placeholder: "Enter text or abstract notes...",
|
|
2322
|
+
className: `w-full px-3 py-2 text-xs rounded-xl border focus:outline-none transition-all ${i ? "bg-zinc-900 border-zinc-700 text-white placeholder-zinc-500 focus:border-zinc-500" : "bg-white border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-400"}`
|
|
2323
|
+
})] }),
|
|
2324
|
+
(l === "file" ? a : o.trim()) && /* @__PURE__ */ m("div", {
|
|
2325
|
+
className: "flex items-center justify-end gap-2 pt-1",
|
|
2326
|
+
children: [l === "file" && a && /* @__PURE__ */ p("button", {
|
|
2327
|
+
type: "button",
|
|
2328
|
+
disabled: s,
|
|
2329
|
+
onClick: () => Ce((t) => {
|
|
2330
|
+
let n = { ...t };
|
|
2331
|
+
return delete n[e.id], n;
|
|
2332
|
+
}),
|
|
2333
|
+
className: "text-xs px-3 py-1.5 rounded-lg border border-gray-300 dark:border-zinc-700 text-gray-600 dark:text-zinc-400 hover:text-gray-900 dark:hover:text-white cursor-pointer",
|
|
2334
|
+
children: "Clear File"
|
|
2335
|
+
}), /* @__PURE__ */ p("button", {
|
|
2336
|
+
type: "button",
|
|
2337
|
+
disabled: s,
|
|
2338
|
+
onClick: () => Be(e.id, c, l),
|
|
1712
2339
|
style: { backgroundColor: r },
|
|
1713
|
-
className: "
|
|
1714
|
-
children:
|
|
1715
|
-
className: "animate-spin h-
|
|
2340
|
+
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",
|
|
2341
|
+
children: s ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("svg", {
|
|
2342
|
+
className: "animate-spin h-3.5 w-3.5 text-white",
|
|
1716
2343
|
fill: "none",
|
|
1717
2344
|
viewBox: "0 0 24 24",
|
|
1718
2345
|
children: [/* @__PURE__ */ p("circle", {
|
|
@@ -1727,88 +2354,356 @@ var ye = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
|
|
|
1727
2354
|
fill: "currentColor",
|
|
1728
2355
|
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"
|
|
1729
2356
|
})]
|
|
1730
|
-
}), /* @__PURE__ */ p("span", { children: "
|
|
1731
|
-
})
|
|
2357
|
+
}), /* @__PURE__ */ p("span", { children: "Uploading..." })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(Ue, { size: 13 }), /* @__PURE__ */ p("span", { children: l === "file" ? "Upload File" : "Submit Text" })] })
|
|
2358
|
+
})]
|
|
1732
2359
|
})
|
|
1733
2360
|
]
|
|
1734
2361
|
})
|
|
1735
2362
|
]
|
|
1736
|
-
})
|
|
2363
|
+
})
|
|
2364
|
+
});
|
|
2365
|
+
};
|
|
2366
|
+
if (u === "profile") {
|
|
2367
|
+
let e = B?.registration || {}, t = B?.editable_fields || [], n = B?.locked_fields || [], s = B?.payment || {}, c = B?.addons?.items || [], l = a ? `p-4 sm:p-5 rounded-2xl border space-y-4 relative overflow-hidden transition-all duration-200 backdrop-blur-md ${i ? "bg-black/35 border-white/12 text-white" : "bg-white/28 border-white/70 text-gray-900 shadow-sm hover:bg-white/35"}` : `p-4 sm:p-5 rounded-2xl border space-y-4 relative overflow-hidden transition-all duration-200 shadow-xs hover:shadow-sm ${i ? "bg-zinc-900 border-zinc-800 text-white" : "bg-white border-gray-200/90 text-gray-900"}`, u = a ? { boxShadow: i ? "0 8px 32px 0 rgba(0, 0, 0, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1)" : "0 8px 32px 0 rgba(31, 38, 135, 0.08), inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.85)" } : {};
|
|
2368
|
+
return /* @__PURE__ */ m("div", {
|
|
2369
|
+
className: `flex flex-col ${o ? "w-full flex-1" : "h-full overflow-hidden min-h-0"} relative bg-transparent ${i ? "text-white" : "text-gray-900"}`,
|
|
2370
|
+
style: o ? void 0 : { overflow: "clip" },
|
|
2371
|
+
onScroll: o ? void 0 : (e) => {
|
|
2372
|
+
e.currentTarget.scrollTop !== 0 && (e.currentTarget.scrollTop = 0), e.currentTarget.scrollLeft !== 0 && (e.currentTarget.scrollLeft = 0);
|
|
2373
|
+
},
|
|
2374
|
+
children: [
|
|
2375
|
+
$(),
|
|
2376
|
+
/* @__PURE__ */ m("div", {
|
|
2377
|
+
className: `p-4 border-b flex justify-between items-center shadow-xs shrink-0 relative z-10 ${i ? "bg-zinc-900 border-zinc-800" : "bg-white border-gray-200"}`,
|
|
2378
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h3", {
|
|
2379
|
+
className: `font-bold text-base ${i ? "text-white" : "text-gray-900"}`,
|
|
2380
|
+
children: ne || "Attendee Profile"
|
|
2381
|
+
}), /* @__PURE__ */ p("p", {
|
|
2382
|
+
className: `text-xs ${i ? "text-zinc-400" : "text-gray-600"}`,
|
|
2383
|
+
children: e.registration_number ? `Reg #: ${e.registration_number}` : "Attendee Portal"
|
|
2384
|
+
})] }), /* @__PURE__ */ m("button", {
|
|
2385
|
+
onClick: Fe,
|
|
2386
|
+
className: `flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold rounded-lg transition-colors cursor-pointer border backdrop-blur-sm ${i ? "text-red-400 bg-red-950/40 hover:bg-red-900/50 border-red-900/40" : "text-red-600 bg-red-50/70 hover:bg-red-100 border-red-200"}`,
|
|
2387
|
+
title: "Logout",
|
|
2388
|
+
children: [/* @__PURE__ */ p(Z, { size: 14 }), /* @__PURE__ */ p("span", { children: "Logout" })]
|
|
2389
|
+
})]
|
|
2390
|
+
}),
|
|
2391
|
+
/* @__PURE__ */ m("div", {
|
|
2392
|
+
className: `${o ? "w-full flex-1 p-4 space-y-4" : "flex-1 overflow-y-auto p-4 space-y-4 min-h-0 overscroll-contain"} relative z-10`,
|
|
2393
|
+
children: [
|
|
2394
|
+
ge && /* @__PURE__ */ m("div", {
|
|
2395
|
+
className: `p-3 border rounded-xl flex items-center justify-between text-xs shadow-2xs backdrop-blur-xl ${i ? "bg-blue-950/60 border-blue-800 text-blue-300" : "bg-blue-50/80 border-blue-200 text-blue-800"}`,
|
|
2396
|
+
children: [/* @__PURE__ */ m("div", {
|
|
2397
|
+
className: "flex items-center gap-2",
|
|
2398
|
+
children: [/* @__PURE__ */ p(ue, {
|
|
2399
|
+
size: 16,
|
|
2400
|
+
className: "shrink-0 text-blue-400"
|
|
2401
|
+
}), /* @__PURE__ */ p("span", { children: "Payment page opened in a new tab. If not opened, click:" })]
|
|
2402
|
+
}), /* @__PURE__ */ m("a", {
|
|
2403
|
+
href: ge,
|
|
2404
|
+
target: "_blank",
|
|
2405
|
+
rel: "noopener noreferrer",
|
|
2406
|
+
className: "flex items-center gap-1 font-bold underline text-blue-400 hover:text-blue-300 shrink-0 ml-2",
|
|
2407
|
+
children: [/* @__PURE__ */ p("span", { children: "Complete Payment" }), /* @__PURE__ */ p(de, { size: 12 })]
|
|
2408
|
+
})]
|
|
2409
|
+
}),
|
|
2410
|
+
x && /* @__PURE__ */ m("div", {
|
|
2411
|
+
className: `p-3 border rounded-xl flex items-start gap-2 text-xs shadow-2xs backdrop-blur-xl ${i ? "bg-red-950/60 border-red-900 text-red-300" : "bg-red-50/80 border-red-200 text-red-700"}`,
|
|
2412
|
+
children: [/* @__PURE__ */ p(L, {
|
|
2413
|
+
size: 16,
|
|
2414
|
+
className: "shrink-0 mt-0.5"
|
|
2415
|
+
}), /* @__PURE__ */ p("span", { children: x })]
|
|
2416
|
+
}),
|
|
2417
|
+
C && /* @__PURE__ */ m("div", {
|
|
2418
|
+
className: `p-3 border rounded-xl flex items-start gap-2 text-xs shadow-2xs backdrop-blur-xl ${i ? "bg-emerald-950/60 border-emerald-900 text-emerald-300" : "bg-green-50/80 border-green-200 text-green-700"}`,
|
|
2419
|
+
children: [/* @__PURE__ */ p(z, {
|
|
2420
|
+
size: 16,
|
|
2421
|
+
className: "shrink-0 mt-0.5"
|
|
2422
|
+
}), /* @__PURE__ */ p("span", { children: C })]
|
|
2423
|
+
}),
|
|
2424
|
+
/* @__PURE__ */ m("div", {
|
|
2425
|
+
className: l,
|
|
2426
|
+
style: u,
|
|
2427
|
+
children: [
|
|
2428
|
+
/* @__PURE__ */ p("div", {
|
|
2429
|
+
className: "absolute top-0 left-0 right-0 h-[3px] opacity-90",
|
|
2430
|
+
style: { background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 20%, transparent) 80%, transparent)` }
|
|
2431
|
+
}),
|
|
2432
|
+
/* @__PURE__ */ m("div", {
|
|
2433
|
+
className: "flex items-center justify-between",
|
|
2434
|
+
children: [/* @__PURE__ */ p("span", {
|
|
2435
|
+
className: `text-2xs font-bold uppercase tracking-wider ${i ? "text-zinc-400" : "text-gray-500"}`,
|
|
2436
|
+
children: "Registration Details"
|
|
2437
|
+
}), e.status && /* @__PURE__ */ p("span", {
|
|
2438
|
+
className: `px-2.5 py-0.5 rounded-full text-2xs font-semibold capitalize border ${i ? "bg-emerald-950/80 text-emerald-300 border-emerald-800/80" : "bg-green-100/80 text-green-800 border-green-200"}`,
|
|
2439
|
+
children: e.status
|
|
2440
|
+
})]
|
|
2441
|
+
}),
|
|
2442
|
+
/* @__PURE__ */ m("div", {
|
|
2443
|
+
className: "grid grid-cols-2 gap-3 text-xs",
|
|
2444
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("span", {
|
|
2445
|
+
className: `${i ? "text-zinc-400" : "text-gray-600"} block text-2xs`,
|
|
2446
|
+
children: "Registration No:"
|
|
2447
|
+
}), /* @__PURE__ */ p("span", {
|
|
2448
|
+
className: `font-bold font-mono ${i ? "text-white" : "text-gray-900"}`,
|
|
2449
|
+
children: e.registration_number || "N/A"
|
|
2450
|
+
})] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("span", {
|
|
2451
|
+
className: `${i ? "text-zinc-400" : "text-gray-600"} block text-2xs`,
|
|
2452
|
+
children: "Ticket Type:"
|
|
2453
|
+
}), /* @__PURE__ */ p("span", {
|
|
2454
|
+
className: `font-bold ${i ? "text-white" : "text-gray-900"}`,
|
|
2455
|
+
children: e.registration_type || "N/A"
|
|
2456
|
+
})] })]
|
|
2457
|
+
}),
|
|
2458
|
+
s && s.state && /* @__PURE__ */ m("div", {
|
|
2459
|
+
className: `pt-2 border-t flex items-center justify-between text-xs ${i ? "border-zinc-800 text-zinc-300" : "border-gray-200 text-gray-700"}`,
|
|
2460
|
+
children: [/* @__PURE__ */ m("div", {
|
|
2461
|
+
className: "flex items-center gap-1.5",
|
|
2462
|
+
children: [/* @__PURE__ */ p(Ne, {
|
|
2463
|
+
size: 14,
|
|
2464
|
+
className: i ? "text-zinc-400" : "text-gray-500"
|
|
2465
|
+
}), /* @__PURE__ */ m("span", { children: [
|
|
2466
|
+
"Payment: ",
|
|
2467
|
+
/* @__PURE__ */ p("strong", {
|
|
2468
|
+
className: "capitalize",
|
|
2469
|
+
children: s.state
|
|
2470
|
+
}),
|
|
2471
|
+
" (",
|
|
2472
|
+
s.currency,
|
|
2473
|
+
" ",
|
|
2474
|
+
s.amount,
|
|
2475
|
+
")"
|
|
2476
|
+
] })]
|
|
2477
|
+
}), s.receipt_url && /* @__PURE__ */ m("a", {
|
|
2478
|
+
href: s.receipt_url,
|
|
2479
|
+
target: "_blank",
|
|
2480
|
+
rel: "noopener noreferrer",
|
|
2481
|
+
className: "flex items-center gap-1 font-semibold hover:underline",
|
|
2482
|
+
style: { color: r },
|
|
2483
|
+
children: [/* @__PURE__ */ p("span", { children: "Receipt" }), /* @__PURE__ */ p(de, { size: 12 })]
|
|
2484
|
+
})]
|
|
2485
|
+
})
|
|
2486
|
+
]
|
|
2487
|
+
}),
|
|
2488
|
+
/* @__PURE__ */ m("form", {
|
|
2489
|
+
onSubmit: Ke,
|
|
2490
|
+
className: "space-y-4",
|
|
2491
|
+
children: [
|
|
2492
|
+
t.length === 0 ? /* @__PURE__ */ p("div", {
|
|
2493
|
+
className: `p-6 rounded-2xl border text-center py-6 text-xs ${i ? "bg-zinc-900/40 border-zinc-800 text-zinc-400" : "bg-white border-gray-200 text-gray-500"}`,
|
|
2494
|
+
children: "No editable fields configured."
|
|
2495
|
+
}) : /* @__PURE__ */ p(f, { children: /* @__PURE__ */ m("div", {
|
|
2496
|
+
className: l,
|
|
2497
|
+
style: u,
|
|
2498
|
+
children: [
|
|
2499
|
+
/* @__PURE__ */ p("div", {
|
|
2500
|
+
className: "absolute top-0 left-0 right-0 h-[3px] opacity-90",
|
|
2501
|
+
style: { background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 20%, transparent) 80%, transparent)` }
|
|
2502
|
+
}),
|
|
2503
|
+
ye && /* @__PURE__ */ p("div", {
|
|
2504
|
+
className: "flex justify-end",
|
|
2505
|
+
children: /* @__PURE__ */ m("span", {
|
|
2506
|
+
className: `inline-flex items-center gap-1 text-2xs font-semibold px-2 py-0.5 rounded-full border ${i ? "bg-blue-950/60 text-blue-300 border-blue-800/80" : "bg-blue-50 text-blue-700 border-blue-200"}`,
|
|
2507
|
+
children: [/* @__PURE__ */ p(I, { size: 11 }), " Initial draft restored"]
|
|
2508
|
+
})
|
|
2509
|
+
}),
|
|
2510
|
+
/* @__PURE__ */ p("div", {
|
|
2511
|
+
className: "flex flex-wrap -mx-1.5",
|
|
2512
|
+
children: t.map((e) => Xe(e, e.type === "file" || e.width === "full" ? "w-full" : "w-full md:w-1/2", n))
|
|
2513
|
+
})
|
|
2514
|
+
]
|
|
2515
|
+
}) }),
|
|
2516
|
+
c.length > 0 && /* @__PURE__ */ m("div", {
|
|
2517
|
+
className: l,
|
|
2518
|
+
style: u,
|
|
2519
|
+
children: [
|
|
2520
|
+
/* @__PURE__ */ p("div", {
|
|
2521
|
+
className: "absolute top-0 left-0 right-0 h-[3px] opacity-90",
|
|
2522
|
+
style: { background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 20%, transparent) 80%, transparent)` }
|
|
2523
|
+
}),
|
|
2524
|
+
/* @__PURE__ */ m("div", {
|
|
2525
|
+
className: "flex items-center justify-between",
|
|
2526
|
+
children: [/* @__PURE__ */ m("span", {
|
|
2527
|
+
className: "px-3 py-1 rounded-full text-2xs font-extrabold uppercase tracking-wider flex items-center gap-1.5 shadow-2xs border",
|
|
2528
|
+
style: {
|
|
2529
|
+
backgroundColor: i ? "rgba(255,255,255,0.06)" : `color-mix(in srgb, ${r} 8%, white)`,
|
|
2530
|
+
borderColor: i ? "rgba(255,255,255,0.12)" : `color-mix(in srgb, ${r} 22%, white)`,
|
|
2531
|
+
color: r
|
|
2532
|
+
},
|
|
2533
|
+
children: [/* @__PURE__ */ p(ze, { size: 12 }), " Available Add-ons"]
|
|
2534
|
+
}), /* @__PURE__ */ p("span", {
|
|
2535
|
+
className: `text-2xs font-medium ${i ? "text-zinc-400" : "text-gray-600"}`,
|
|
2536
|
+
children: "Select items to add"
|
|
2537
|
+
})]
|
|
2538
|
+
}),
|
|
2539
|
+
/* @__PURE__ */ p("div", {
|
|
2540
|
+
className: "space-y-2 pt-1",
|
|
2541
|
+
children: c.map((e) => {
|
|
2542
|
+
let t = !!e.purchased, n = U.includes(e.name);
|
|
2543
|
+
return /* @__PURE__ */ m("div", {
|
|
2544
|
+
onClick: () => We(e.name, t),
|
|
2545
|
+
className: `p-3 rounded-xl border text-xs flex items-center justify-between transition-all ${t ? i ? "bg-zinc-950/60 border-zinc-800 opacity-70 cursor-default" : "bg-gray-100/80 border-gray-200 opacity-90 cursor-default" : n ? i ? "border-blue-500 bg-blue-950/50 cursor-pointer shadow-xs" : "border-blue-500 bg-blue-50/70 cursor-pointer shadow-xs" : i ? "border-zinc-800 bg-zinc-900/60 hover:border-zinc-700 cursor-pointer" : "border-gray-200 bg-white hover:border-gray-300 cursor-pointer shadow-2xs"}`,
|
|
2546
|
+
style: {
|
|
2547
|
+
borderColor: n && !t ? r : void 0,
|
|
2548
|
+
backgroundColor: n && !t ? i ? `color-mix(in srgb, ${r} 25%, rgba(0,0,0,0.5))` : `color-mix(in srgb, ${r} 12%, rgba(255,255,255,0.85))` : void 0
|
|
2549
|
+
},
|
|
2550
|
+
children: [/* @__PURE__ */ m("div", {
|
|
2551
|
+
className: "flex items-start gap-2.5 flex-1 pr-3",
|
|
2552
|
+
children: [/* @__PURE__ */ p("input", {
|
|
2553
|
+
type: "checkbox",
|
|
2554
|
+
checked: n,
|
|
2555
|
+
disabled: t,
|
|
2556
|
+
onChange: () => We(e.name, t),
|
|
2557
|
+
className: "mt-0.5 rounded text-blue-600 focus:ring-0 cursor-pointer"
|
|
2558
|
+
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("div", {
|
|
2559
|
+
className: `font-semibold leading-snug ${i ? "text-white" : "text-gray-900"}`,
|
|
2560
|
+
children: e.name
|
|
2561
|
+
}), /* @__PURE__ */ m("div", {
|
|
2562
|
+
className: "font-bold text-xs mt-1",
|
|
2563
|
+
style: { color: r },
|
|
2564
|
+
children: [
|
|
2565
|
+
e.currency,
|
|
2566
|
+
" ",
|
|
2567
|
+
Number(e.price).toLocaleString()
|
|
2568
|
+
]
|
|
2569
|
+
})] })]
|
|
2570
|
+
}), t ? /* @__PURE__ */ m("span", {
|
|
2571
|
+
className: `px-2 py-0.5 rounded text-2xs font-semibold flex items-center gap-1 shrink-0 border backdrop-blur-sm ${i ? "bg-emerald-950/80 text-emerald-300 border-emerald-800/80" : "bg-green-100/80 text-green-800 border-green-200"}`,
|
|
2572
|
+
children: [/* @__PURE__ */ p(I, { size: 12 }), " Purchased"]
|
|
2573
|
+
}) : /* @__PURE__ */ p("span", {
|
|
2574
|
+
className: `text-2xs font-semibold px-2.5 py-1 rounded-lg transition-colors shrink-0 shadow-2xs ${n ? "bg-blue-600 text-white" : i ? "bg-white/10 text-zinc-300" : "bg-white/70 text-gray-700"}`,
|
|
2575
|
+
style: { backgroundColor: n ? r : void 0 },
|
|
2576
|
+
children: n ? "Selected" : "Select"
|
|
2577
|
+
})]
|
|
2578
|
+
}, e.name);
|
|
2579
|
+
})
|
|
2580
|
+
})
|
|
2581
|
+
]
|
|
2582
|
+
}),
|
|
2583
|
+
/* @__PURE__ */ p("div", {
|
|
2584
|
+
className: "pt-2",
|
|
2585
|
+
children: /* @__PURE__ */ p("button", {
|
|
2586
|
+
type: "submit",
|
|
2587
|
+
disabled: v || ee !== null,
|
|
2588
|
+
style: { backgroundColor: r },
|
|
2589
|
+
className: "w-full py-3 px-4 text-white text-sm font-bold rounded-xl hover:opacity-90 transition-all shadow-md flex items-center justify-center gap-2 cursor-pointer disabled:opacity-50 hover:shadow-lg",
|
|
2590
|
+
children: v ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("svg", {
|
|
2591
|
+
className: "animate-spin h-4 w-4 text-white",
|
|
2592
|
+
fill: "none",
|
|
2593
|
+
viewBox: "0 0 24 24",
|
|
2594
|
+
children: [/* @__PURE__ */ p("circle", {
|
|
2595
|
+
className: "opacity-25",
|
|
2596
|
+
cx: "12",
|
|
2597
|
+
cy: "12",
|
|
2598
|
+
r: "10",
|
|
2599
|
+
stroke: "currentColor",
|
|
2600
|
+
strokeWidth: "4"
|
|
2601
|
+
}), /* @__PURE__ */ p("path", {
|
|
2602
|
+
className: "opacity-75",
|
|
2603
|
+
fill: "currentColor",
|
|
2604
|
+
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"
|
|
2605
|
+
})]
|
|
2606
|
+
}), /* @__PURE__ */ p("span", { children: "Saving Profile..." })] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(ke, { size: 16 }), /* @__PURE__ */ p("span", { children: "Save & Update Profile" })] })
|
|
2607
|
+
})
|
|
2608
|
+
})
|
|
2609
|
+
]
|
|
2610
|
+
})
|
|
2611
|
+
]
|
|
2612
|
+
})
|
|
2613
|
+
]
|
|
1737
2614
|
});
|
|
1738
2615
|
}
|
|
1739
|
-
return
|
|
1740
|
-
className: `flex flex-col h-full overflow-y-auto ${i ? "
|
|
1741
|
-
children: /* @__PURE__ */ m("div", {
|
|
1742
|
-
className: "p-5 flex-1 max-w-md mx-auto w-full flex flex-col justify-center",
|
|
2616
|
+
return u === "request_code" ? /* @__PURE__ */ m("div", {
|
|
2617
|
+
className: `flex flex-col ${o ? "w-full flex-1" : "h-full overflow-y-auto"} relative bg-transparent ${i ? "text-white" : "text-gray-900"}`,
|
|
2618
|
+
children: [$(), /* @__PURE__ */ m("div", {
|
|
2619
|
+
className: "p-5 flex-1 max-w-md mx-auto w-full flex flex-col justify-center relative z-10",
|
|
1743
2620
|
children: [/* @__PURE__ */ m("div", {
|
|
1744
2621
|
className: "flex justify-between items-center mb-4",
|
|
1745
2622
|
children: [/* @__PURE__ */ m("button", {
|
|
1746
2623
|
onClick: () => {
|
|
1747
|
-
|
|
2624
|
+
h("login"), S(null), w(null);
|
|
1748
2625
|
},
|
|
1749
|
-
className: `flex items-center gap-1.5 text-xs font-semibold transition-colors cursor-pointer ${i ? "text-zinc-400 hover:text-white" : "text-gray-
|
|
1750
|
-
children: [/* @__PURE__ */ p(
|
|
2626
|
+
className: `flex items-center gap-1.5 text-xs font-semibold transition-colors cursor-pointer ${i ? "text-zinc-400 hover:text-white" : "text-gray-600 hover:text-gray-900"}`,
|
|
2627
|
+
children: [/* @__PURE__ */ p(j, { size: 14 }), /* @__PURE__ */ p("span", { children: "Back to Login" })]
|
|
1751
2628
|
}), /* @__PURE__ */ p("button", {
|
|
1752
2629
|
onClick: () => {
|
|
1753
|
-
|
|
2630
|
+
h("reset"), S(null), w(null);
|
|
1754
2631
|
},
|
|
1755
2632
|
className: "text-xs font-semibold hover:underline cursor-pointer",
|
|
1756
2633
|
style: { color: r },
|
|
1757
2634
|
children: "Generate Password →"
|
|
1758
2635
|
})]
|
|
1759
2636
|
}), /* @__PURE__ */ m("div", {
|
|
1760
|
-
className: `p-6 rounded-
|
|
2637
|
+
className: `p-6 rounded-2xl border space-y-4 relative overflow-hidden transition-all duration-200 shadow-xs hover:shadow-sm ${i ? "bg-zinc-900 border-zinc-800" : "bg-white border-gray-200/90"}`,
|
|
1761
2638
|
children: [
|
|
2639
|
+
/* @__PURE__ */ p("div", {
|
|
2640
|
+
className: "absolute top-0 left-0 right-0 h-[2.5px] opacity-90",
|
|
2641
|
+
style: { background: `linear-gradient(90deg, ${r}, transparent 80%)` }
|
|
2642
|
+
}),
|
|
1762
2643
|
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h3", {
|
|
1763
2644
|
className: `text-lg font-bold ${i ? "text-white" : "text-gray-900"}`,
|
|
1764
2645
|
children: "Get Verification Code"
|
|
1765
2646
|
}), /* @__PURE__ */ p("p", {
|
|
1766
|
-
className: `text-xs mt-1 ${i ? "text-zinc-400" : "text-gray-
|
|
2647
|
+
className: `text-xs mt-1 ${i ? "text-zinc-400" : "text-gray-600"}`,
|
|
1767
2648
|
children: "Enter your registered email or registration number to receive a verification code."
|
|
1768
2649
|
})] }),
|
|
1769
|
-
|
|
1770
|
-
className: `p-3 border rounded-
|
|
1771
|
-
children: [/* @__PURE__ */ p(
|
|
2650
|
+
x && /* @__PURE__ */ m("div", {
|
|
2651
|
+
className: `p-3 border rounded-xl flex items-start gap-2 text-xs backdrop-blur-md ${i ? "bg-red-950/60 border-red-900 text-red-300" : "bg-red-50/80 border-red-200 text-red-700"}`,
|
|
2652
|
+
children: [/* @__PURE__ */ p(L, {
|
|
1772
2653
|
size: 16,
|
|
1773
2654
|
className: "shrink-0 mt-0.5"
|
|
1774
|
-
}), /* @__PURE__ */ p("span", { children:
|
|
2655
|
+
}), /* @__PURE__ */ p("span", { children: x })]
|
|
1775
2656
|
}),
|
|
1776
|
-
|
|
1777
|
-
className: `p-3 border rounded-
|
|
1778
|
-
children: [/* @__PURE__ */ p(
|
|
2657
|
+
C && /* @__PURE__ */ m("div", {
|
|
2658
|
+
className: `p-3 border rounded-xl flex items-start gap-2 text-xs backdrop-blur-md ${i ? "bg-emerald-950/60 border-emerald-900 text-emerald-300" : "bg-green-50/80 border-green-200 text-green-700"}`,
|
|
2659
|
+
children: [/* @__PURE__ */ p(z, {
|
|
1779
2660
|
size: 16,
|
|
1780
2661
|
className: "shrink-0 mt-0.5"
|
|
1781
|
-
}), /* @__PURE__ */ p("span", { children:
|
|
2662
|
+
}), /* @__PURE__ */ p("span", { children: C })]
|
|
1782
2663
|
}),
|
|
1783
2664
|
/* @__PURE__ */ m("form", {
|
|
1784
|
-
onSubmit:
|
|
2665
|
+
onSubmit: Me,
|
|
1785
2666
|
className: "space-y-4",
|
|
1786
2667
|
children: [
|
|
1787
2668
|
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
1788
|
-
className: `block text-xs font-semibold mb-1 ${i ? "text-zinc-200" : "text-gray-
|
|
2669
|
+
className: `block text-xs font-semibold mb-1.5 ${i ? "text-zinc-200" : "text-gray-800"}`,
|
|
1789
2670
|
children: "Registration Number or Email"
|
|
1790
2671
|
}), /* @__PURE__ */ m("div", {
|
|
1791
2672
|
className: "relative",
|
|
1792
2673
|
children: [/* @__PURE__ */ p("div", {
|
|
1793
|
-
className:
|
|
1794
|
-
children: /* @__PURE__ */ p(
|
|
2674
|
+
className: "absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",
|
|
2675
|
+
children: /* @__PURE__ */ p(Q, {
|
|
2676
|
+
size: 15,
|
|
2677
|
+
style: { color: r }
|
|
2678
|
+
})
|
|
1795
2679
|
}), /* @__PURE__ */ p("input", {
|
|
1796
2680
|
type: "text",
|
|
1797
2681
|
required: !0,
|
|
1798
|
-
value:
|
|
2682
|
+
value: k || T,
|
|
1799
2683
|
onChange: (e) => {
|
|
1800
|
-
|
|
2684
|
+
A(e.target.value), E(e.target.value);
|
|
1801
2685
|
},
|
|
1802
2686
|
placeholder: "e.g. attendee@example.com or REG12345",
|
|
1803
|
-
className: `w-full pl-
|
|
2687
|
+
className: `w-full pl-10 pr-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${i ? "bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900" : "bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white"}`,
|
|
2688
|
+
style: {
|
|
2689
|
+
borderLeftWidth: "3.5px",
|
|
2690
|
+
borderLeftStyle: "solid",
|
|
2691
|
+
borderLeftColor: r
|
|
2692
|
+
},
|
|
2693
|
+
onFocus: (e) => {
|
|
2694
|
+
e.currentTarget.style.borderColor = r, e.currentTarget.style.boxShadow = `0 0 0 3px color-mix(in srgb, ${r} 20%, transparent), 0 1px 2px 0 rgba(0,0,0,0.05)`;
|
|
2695
|
+
},
|
|
2696
|
+
onBlur: (e) => {
|
|
2697
|
+
e.currentTarget.style.borderColor = i ? "#3f3f46" : "#d1d5db", e.currentTarget.style.borderLeftColor = r, e.currentTarget.style.boxShadow = "none";
|
|
2698
|
+
}
|
|
1804
2699
|
})]
|
|
1805
2700
|
})] }),
|
|
1806
2701
|
/* @__PURE__ */ p("button", {
|
|
1807
2702
|
type: "submit",
|
|
1808
|
-
disabled:
|
|
2703
|
+
disabled: ce,
|
|
1809
2704
|
style: { backgroundColor: r },
|
|
1810
|
-
className: "w-full py-2.5 px-4 text-white text-sm font-bold rounded-
|
|
1811
|
-
children:
|
|
2705
|
+
className: "w-full py-2.5 px-4 text-white text-sm font-bold rounded-xl hover:opacity-90 transition-all shadow-md flex items-center justify-center cursor-pointer disabled:opacity-50 mt-2 hover:shadow-lg",
|
|
2706
|
+
children: ce ? /* @__PURE__ */ m("div", {
|
|
1812
2707
|
className: "flex items-center gap-2",
|
|
1813
2708
|
children: [/* @__PURE__ */ m("svg", {
|
|
1814
2709
|
className: "animate-spin h-4 w-4 text-white",
|
|
@@ -1830,11 +2725,11 @@ var ye = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
|
|
|
1830
2725
|
}) : "Send Verification Code"
|
|
1831
2726
|
}),
|
|
1832
2727
|
/* @__PURE__ */ p("div", {
|
|
1833
|
-
className: "text-center pt-2 border-t border-gray-
|
|
2728
|
+
className: "text-center pt-2 border-t border-gray-200 dark:border-zinc-800",
|
|
1834
2729
|
children: /* @__PURE__ */ p("button", {
|
|
1835
2730
|
type: "button",
|
|
1836
2731
|
onClick: () => {
|
|
1837
|
-
|
|
2732
|
+
h("reset"), S(null), w(null);
|
|
1838
2733
|
},
|
|
1839
2734
|
className: "text-xs font-semibold hover:underline cursor-pointer",
|
|
1840
2735
|
style: { color: r },
|
|
@@ -1845,73 +2740,91 @@ var ye = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
|
|
|
1845
2740
|
})
|
|
1846
2741
|
]
|
|
1847
2742
|
})]
|
|
1848
|
-
})
|
|
1849
|
-
}) :
|
|
1850
|
-
className: `flex flex-col h-full overflow-y-auto ${i ? "
|
|
1851
|
-
children: /* @__PURE__ */ m("div", {
|
|
1852
|
-
className: "p-5 flex-1 max-w-md mx-auto w-full",
|
|
2743
|
+
})]
|
|
2744
|
+
}) : u === "reset" ? /* @__PURE__ */ m("div", {
|
|
2745
|
+
className: `flex flex-col ${o ? "w-full flex-1" : "h-full overflow-y-auto"} relative bg-transparent ${i ? "text-white" : "text-gray-900"}`,
|
|
2746
|
+
children: [$(), /* @__PURE__ */ m("div", {
|
|
2747
|
+
className: "p-5 flex-1 max-w-md mx-auto w-full relative z-10",
|
|
1853
2748
|
children: [/* @__PURE__ */ m("button", {
|
|
1854
2749
|
onClick: () => {
|
|
1855
|
-
|
|
2750
|
+
h("login"), S(null), w(null);
|
|
1856
2751
|
},
|
|
1857
|
-
className: `flex items-center gap-1.5 text-xs font-semibold mb-4 transition-colors cursor-pointer ${i ? "text-zinc-400 hover:text-white" : "text-gray-
|
|
1858
|
-
children: [/* @__PURE__ */ p(
|
|
2752
|
+
className: `flex items-center gap-1.5 text-xs font-semibold mb-4 transition-colors cursor-pointer ${i ? "text-zinc-400 hover:text-white" : "text-gray-600 hover:text-gray-900"}`,
|
|
2753
|
+
children: [/* @__PURE__ */ p(j, { size: 14 }), /* @__PURE__ */ p("span", { children: "Back to Login" })]
|
|
1859
2754
|
}), /* @__PURE__ */ m("div", {
|
|
1860
|
-
className: `p-6 rounded-
|
|
2755
|
+
className: `p-6 rounded-2xl border space-y-4 relative overflow-hidden transition-all duration-200 shadow-xs hover:shadow-sm ${i ? "bg-zinc-900 border-zinc-800" : "bg-white border-gray-200/90"}`,
|
|
1861
2756
|
children: [
|
|
2757
|
+
/* @__PURE__ */ p("div", {
|
|
2758
|
+
className: "absolute top-0 left-0 right-0 h-[2.5px] opacity-90",
|
|
2759
|
+
style: { background: `linear-gradient(90deg, ${r}, transparent 80%)` }
|
|
2760
|
+
}),
|
|
1862
2761
|
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h3", {
|
|
1863
2762
|
className: `text-lg font-bold ${i ? "text-white" : "text-gray-900"}`,
|
|
1864
2763
|
children: "Generate / Reset Password"
|
|
1865
2764
|
}), /* @__PURE__ */ p("p", {
|
|
1866
|
-
className: `text-xs mt-1 ${i ? "text-zinc-400" : "text-gray-
|
|
2765
|
+
className: `text-xs mt-1 ${i ? "text-zinc-400" : "text-gray-600"}`,
|
|
1867
2766
|
children: "You will get a verification code on your registered email."
|
|
1868
2767
|
})] }),
|
|
1869
|
-
|
|
1870
|
-
className: `p-3 border rounded-
|
|
1871
|
-
children: [/* @__PURE__ */ p(
|
|
2768
|
+
x && /* @__PURE__ */ m("div", {
|
|
2769
|
+
className: `p-3 border rounded-xl flex items-start gap-2 text-xs backdrop-blur-md ${i ? "bg-red-950/60 border-red-900 text-red-300" : "bg-red-50/80 border-red-200 text-red-700"}`,
|
|
2770
|
+
children: [/* @__PURE__ */ p(L, {
|
|
1872
2771
|
size: 16,
|
|
1873
2772
|
className: "shrink-0 mt-0.5"
|
|
1874
|
-
}), /* @__PURE__ */ p("span", { children:
|
|
2773
|
+
}), /* @__PURE__ */ p("span", { children: x })]
|
|
1875
2774
|
}),
|
|
1876
|
-
|
|
1877
|
-
className: `p-3 border rounded-
|
|
1878
|
-
children: [/* @__PURE__ */ p(
|
|
2775
|
+
C && /* @__PURE__ */ m("div", {
|
|
2776
|
+
className: `p-3 border rounded-xl flex items-start gap-2 text-xs backdrop-blur-md ${i ? "bg-emerald-950/60 border-emerald-900 text-emerald-300" : "bg-green-50/80 border-green-200 text-green-700"}`,
|
|
2777
|
+
children: [/* @__PURE__ */ p(z, {
|
|
1879
2778
|
size: 16,
|
|
1880
2779
|
className: "shrink-0 mt-0.5"
|
|
1881
|
-
}), /* @__PURE__ */ p("span", { children:
|
|
2780
|
+
}), /* @__PURE__ */ p("span", { children: C })]
|
|
1882
2781
|
}),
|
|
1883
2782
|
/* @__PURE__ */ m("form", {
|
|
1884
|
-
onSubmit:
|
|
2783
|
+
onSubmit: Pe,
|
|
1885
2784
|
className: "space-y-4",
|
|
1886
2785
|
children: [
|
|
1887
2786
|
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
1888
|
-
className: `block text-xs font-semibold mb-1 ${i ? "text-zinc-200" : "text-gray-
|
|
2787
|
+
className: `block text-xs font-semibold mb-1.5 ${i ? "text-zinc-200" : "text-gray-800"}`,
|
|
1889
2788
|
children: "Registration Number or Email"
|
|
1890
2789
|
}), /* @__PURE__ */ m("div", {
|
|
1891
2790
|
className: "relative",
|
|
1892
2791
|
children: [/* @__PURE__ */ p("div", {
|
|
1893
|
-
className:
|
|
1894
|
-
children: /* @__PURE__ */ p(
|
|
2792
|
+
className: "absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",
|
|
2793
|
+
children: /* @__PURE__ */ p(Q, {
|
|
2794
|
+
size: 15,
|
|
2795
|
+
style: { color: r }
|
|
2796
|
+
})
|
|
1895
2797
|
}), /* @__PURE__ */ p("input", {
|
|
1896
2798
|
type: "text",
|
|
1897
2799
|
required: !0,
|
|
1898
|
-
value:
|
|
2800
|
+
value: k || T,
|
|
1899
2801
|
onChange: (e) => {
|
|
1900
|
-
|
|
2802
|
+
A(e.target.value), E(e.target.value);
|
|
1901
2803
|
},
|
|
1902
2804
|
placeholder: "e.g. attendee@example.com or REG12345",
|
|
1903
|
-
className: `w-full pl-
|
|
2805
|
+
className: `w-full pl-10 pr-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${i ? "bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900" : "bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white"}`,
|
|
2806
|
+
style: {
|
|
2807
|
+
borderLeftWidth: "3.5px",
|
|
2808
|
+
borderLeftStyle: "solid",
|
|
2809
|
+
borderLeftColor: r
|
|
2810
|
+
},
|
|
2811
|
+
onFocus: (e) => {
|
|
2812
|
+
e.currentTarget.style.borderColor = r, e.currentTarget.style.boxShadow = `0 0 0 3px color-mix(in srgb, ${r} 20%, transparent), 0 1px 2px 0 rgba(0,0,0,0.05)`;
|
|
2813
|
+
},
|
|
2814
|
+
onBlur: (e) => {
|
|
2815
|
+
e.currentTarget.style.borderColor = i ? "#3f3f46" : "#d1d5db", e.currentTarget.style.borderLeftColor = r, e.currentTarget.style.boxShadow = "none";
|
|
2816
|
+
}
|
|
1904
2817
|
})]
|
|
1905
2818
|
})] }),
|
|
1906
2819
|
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("div", {
|
|
1907
|
-
className: "flex justify-between items-center mb-1",
|
|
2820
|
+
className: "flex justify-between items-center mb-1.5",
|
|
1908
2821
|
children: [/* @__PURE__ */ p("label", {
|
|
1909
|
-
className: `block text-xs font-semibold ${i ? "text-zinc-200" : "text-gray-
|
|
2822
|
+
className: `block text-xs font-semibold ${i ? "text-zinc-200" : "text-gray-800"}`,
|
|
1910
2823
|
children: "Verification Code"
|
|
1911
2824
|
}), /* @__PURE__ */ p("button", {
|
|
1912
2825
|
type: "button",
|
|
1913
2826
|
onClick: () => {
|
|
1914
|
-
|
|
2827
|
+
A(k || T), h("request_code"), S(null), w(null);
|
|
1915
2828
|
},
|
|
1916
2829
|
className: "text-xs font-semibold hover:underline cursor-pointer",
|
|
1917
2830
|
style: { color: r },
|
|
@@ -1920,127 +2833,201 @@ var ye = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
|
|
|
1920
2833
|
}), /* @__PURE__ */ m("div", {
|
|
1921
2834
|
className: "relative",
|
|
1922
2835
|
children: [/* @__PURE__ */ p("div", {
|
|
1923
|
-
className:
|
|
1924
|
-
children: /* @__PURE__ */ p(
|
|
2836
|
+
className: "absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",
|
|
2837
|
+
children: /* @__PURE__ */ p(he, {
|
|
2838
|
+
size: 15,
|
|
2839
|
+
style: { color: r }
|
|
2840
|
+
})
|
|
1925
2841
|
}), /* @__PURE__ */ p("input", {
|
|
1926
2842
|
type: "text",
|
|
1927
2843
|
required: !0,
|
|
1928
2844
|
value: M,
|
|
1929
|
-
onChange: (e) =>
|
|
2845
|
+
onChange: (e) => re(e.target.value),
|
|
1930
2846
|
placeholder: "Enter code from email",
|
|
1931
|
-
className: `w-full pl-
|
|
2847
|
+
className: `w-full pl-10 pr-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${i ? "bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900" : "bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white"}`,
|
|
2848
|
+
style: {
|
|
2849
|
+
borderLeftWidth: "3.5px",
|
|
2850
|
+
borderLeftStyle: "solid",
|
|
2851
|
+
borderLeftColor: r
|
|
2852
|
+
},
|
|
2853
|
+
onFocus: (e) => {
|
|
2854
|
+
e.currentTarget.style.borderColor = r, e.currentTarget.style.boxShadow = `0 0 0 3px color-mix(in srgb, ${r} 20%, transparent), 0 1px 2px 0 rgba(0,0,0,0.05)`;
|
|
2855
|
+
},
|
|
2856
|
+
onBlur: (e) => {
|
|
2857
|
+
e.currentTarget.style.borderColor = i ? "#3f3f46" : "#d1d5db", e.currentTarget.style.borderLeftColor = r, e.currentTarget.style.boxShadow = "none";
|
|
2858
|
+
}
|
|
1932
2859
|
})]
|
|
1933
2860
|
})] }),
|
|
1934
2861
|
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
1935
|
-
className: `block text-xs font-semibold mb-1 ${i ? "text-zinc-200" : "text-gray-
|
|
2862
|
+
className: `block text-xs font-semibold mb-1.5 ${i ? "text-zinc-200" : "text-gray-800"}`,
|
|
1936
2863
|
children: "New Password"
|
|
1937
2864
|
}), /* @__PURE__ */ m("div", {
|
|
1938
2865
|
className: "relative",
|
|
1939
2866
|
children: [/* @__PURE__ */ p("div", {
|
|
1940
|
-
className:
|
|
1941
|
-
children: /* @__PURE__ */ p(
|
|
2867
|
+
className: "absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",
|
|
2868
|
+
children: /* @__PURE__ */ p(_e, {
|
|
2869
|
+
size: 15,
|
|
2870
|
+
style: { color: r }
|
|
2871
|
+
})
|
|
1942
2872
|
}), /* @__PURE__ */ p("input", {
|
|
1943
2873
|
type: "password",
|
|
1944
2874
|
required: !0,
|
|
1945
|
-
value:
|
|
1946
|
-
onChange: (e) =>
|
|
2875
|
+
value: N,
|
|
2876
|
+
onChange: (e) => P(e.target.value),
|
|
1947
2877
|
placeholder: "Enter new password",
|
|
1948
|
-
className: `w-full pl-
|
|
2878
|
+
className: `w-full pl-10 pr-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${i ? "bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900" : "bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white"}`,
|
|
2879
|
+
style: {
|
|
2880
|
+
borderLeftWidth: "3.5px",
|
|
2881
|
+
borderLeftStyle: "solid",
|
|
2882
|
+
borderLeftColor: r
|
|
2883
|
+
},
|
|
2884
|
+
onFocus: (e) => {
|
|
2885
|
+
e.currentTarget.style.borderColor = r, e.currentTarget.style.boxShadow = `0 0 0 3px color-mix(in srgb, ${r} 20%, transparent), 0 1px 2px 0 rgba(0,0,0,0.05)`;
|
|
2886
|
+
},
|
|
2887
|
+
onBlur: (e) => {
|
|
2888
|
+
e.currentTarget.style.borderColor = i ? "#3f3f46" : "#d1d5db", e.currentTarget.style.borderLeftColor = r, e.currentTarget.style.boxShadow = "none";
|
|
2889
|
+
}
|
|
1949
2890
|
})]
|
|
1950
2891
|
})] }),
|
|
1951
2892
|
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
1952
|
-
className: `block text-xs font-semibold mb-1 ${i ? "text-zinc-200" : "text-gray-
|
|
2893
|
+
className: `block text-xs font-semibold mb-1.5 ${i ? "text-zinc-200" : "text-gray-800"}`,
|
|
1953
2894
|
children: "Confirm Password"
|
|
1954
2895
|
}), /* @__PURE__ */ m("div", {
|
|
1955
2896
|
className: "relative",
|
|
1956
2897
|
children: [/* @__PURE__ */ p("div", {
|
|
1957
|
-
className:
|
|
1958
|
-
children: /* @__PURE__ */ p(
|
|
2898
|
+
className: "absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",
|
|
2899
|
+
children: /* @__PURE__ */ p(_e, {
|
|
2900
|
+
size: 15,
|
|
2901
|
+
style: { color: r }
|
|
2902
|
+
})
|
|
1959
2903
|
}), /* @__PURE__ */ p("input", {
|
|
1960
2904
|
type: "password",
|
|
1961
2905
|
required: !0,
|
|
1962
|
-
value:
|
|
1963
|
-
onChange: (e) =>
|
|
2906
|
+
value: F,
|
|
2907
|
+
onChange: (e) => oe(e.target.value),
|
|
1964
2908
|
placeholder: "Re-enter new password",
|
|
1965
|
-
className: `w-full pl-
|
|
2909
|
+
className: `w-full pl-10 pr-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${i ? "bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900" : "bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white"}`,
|
|
2910
|
+
style: {
|
|
2911
|
+
borderLeftWidth: "3.5px",
|
|
2912
|
+
borderLeftStyle: "solid",
|
|
2913
|
+
borderLeftColor: r
|
|
2914
|
+
},
|
|
2915
|
+
onFocus: (e) => {
|
|
2916
|
+
e.currentTarget.style.borderColor = r, e.currentTarget.style.boxShadow = `0 0 0 3px color-mix(in srgb, ${r} 20%, transparent), 0 1px 2px 0 rgba(0,0,0,0.05)`;
|
|
2917
|
+
},
|
|
2918
|
+
onBlur: (e) => {
|
|
2919
|
+
e.currentTarget.style.borderColor = i ? "#3f3f46" : "#d1d5db", e.currentTarget.style.borderLeftColor = r, e.currentTarget.style.boxShadow = "none";
|
|
2920
|
+
}
|
|
1966
2921
|
})]
|
|
1967
2922
|
})] }),
|
|
1968
2923
|
/* @__PURE__ */ p("button", {
|
|
1969
2924
|
type: "submit",
|
|
1970
|
-
disabled:
|
|
2925
|
+
disabled: g,
|
|
1971
2926
|
style: { backgroundColor: r },
|
|
1972
|
-
className: "w-full py-2.5 px-4 text-white text-sm font-bold rounded-
|
|
1973
|
-
children:
|
|
2927
|
+
className: "w-full py-2.5 px-4 text-white text-sm font-bold rounded-xl hover:opacity-90 transition-all shadow-md flex items-center justify-center cursor-pointer disabled:opacity-50 mt-2 hover:shadow-lg",
|
|
2928
|
+
children: g ? "Updating Password..." : "Set New Password"
|
|
1974
2929
|
})
|
|
1975
2930
|
]
|
|
1976
2931
|
})
|
|
1977
2932
|
]
|
|
1978
2933
|
})]
|
|
1979
|
-
})
|
|
1980
|
-
}) : /* @__PURE__ */
|
|
1981
|
-
className: `flex flex-col h-full overflow-y-auto ${i ? "
|
|
1982
|
-
children: /* @__PURE__ */ p("div", {
|
|
1983
|
-
className: "p-5 flex-1 max-w-md mx-auto w-full flex flex-col justify-center",
|
|
2934
|
+
})]
|
|
2935
|
+
}) : /* @__PURE__ */ m("div", {
|
|
2936
|
+
className: `flex flex-col ${o ? "w-full flex-1" : "h-full overflow-y-auto"} relative bg-transparent ${i ? "text-white" : "text-gray-900"}`,
|
|
2937
|
+
children: [$(), /* @__PURE__ */ p("div", {
|
|
2938
|
+
className: "p-5 flex-1 max-w-md mx-auto w-full flex flex-col justify-center relative z-10",
|
|
1984
2939
|
children: /* @__PURE__ */ m("div", {
|
|
1985
|
-
className: `p-6 rounded-
|
|
2940
|
+
className: `p-6 rounded-2xl border space-y-4 relative overflow-hidden transition-all duration-200 shadow-xs hover:shadow-sm ${i ? "bg-zinc-900 border-zinc-800" : "bg-white border-gray-200/90"}`,
|
|
1986
2941
|
children: [
|
|
2942
|
+
/* @__PURE__ */ p("div", {
|
|
2943
|
+
className: "absolute top-0 left-0 right-0 h-[2.5px] opacity-90",
|
|
2944
|
+
style: { background: `linear-gradient(90deg, ${r}, transparent 80%)` }
|
|
2945
|
+
}),
|
|
1987
2946
|
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h3", {
|
|
1988
2947
|
className: `text-lg font-bold ${i ? "text-white" : "text-gray-900"}`,
|
|
1989
2948
|
children: "Attendee Login"
|
|
1990
2949
|
}), /* @__PURE__ */ p("p", {
|
|
1991
|
-
className: `text-xs mt-1 ${i ? "text-zinc-400" : "text-gray-
|
|
2950
|
+
className: `text-xs mt-1 ${i ? "text-zinc-400" : "text-gray-600"}`,
|
|
1992
2951
|
children: "Sign in with your email or registration number"
|
|
1993
2952
|
})] }),
|
|
1994
|
-
|
|
1995
|
-
className: `p-3 border rounded-
|
|
1996
|
-
children: [/* @__PURE__ */ p(
|
|
2953
|
+
x && /* @__PURE__ */ m("div", {
|
|
2954
|
+
className: `p-3 border rounded-xl flex items-start gap-2 text-xs backdrop-blur-md ${i ? "bg-red-950/60 border-red-900 text-red-300" : "bg-red-50/80 border-red-200 text-red-700"}`,
|
|
2955
|
+
children: [/* @__PURE__ */ p(L, {
|
|
1997
2956
|
size: 16,
|
|
1998
2957
|
className: "shrink-0 mt-0.5"
|
|
1999
|
-
}), /* @__PURE__ */ p("span", { children:
|
|
2958
|
+
}), /* @__PURE__ */ p("span", { children: x })]
|
|
2000
2959
|
}),
|
|
2001
|
-
|
|
2002
|
-
className: `p-3 border rounded-
|
|
2003
|
-
children: [/* @__PURE__ */ p(
|
|
2960
|
+
C && /* @__PURE__ */ m("div", {
|
|
2961
|
+
className: `p-3 border rounded-xl flex items-start gap-2 text-xs backdrop-blur-md ${i ? "bg-emerald-950/60 border-emerald-900 text-emerald-300" : "bg-green-50/80 border-green-200 text-green-700"}`,
|
|
2962
|
+
children: [/* @__PURE__ */ p(z, {
|
|
2004
2963
|
size: 16,
|
|
2005
2964
|
className: "shrink-0 mt-0.5"
|
|
2006
|
-
}), /* @__PURE__ */ p("span", { children:
|
|
2965
|
+
}), /* @__PURE__ */ p("span", { children: C })]
|
|
2007
2966
|
}),
|
|
2008
2967
|
/* @__PURE__ */ m("form", {
|
|
2009
|
-
onSubmit:
|
|
2968
|
+
onSubmit: Ae,
|
|
2010
2969
|
className: "space-y-4",
|
|
2011
2970
|
children: [
|
|
2012
2971
|
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
2013
|
-
className: `block text-xs font-semibold mb-1 ${i ? "text-zinc-200" : "text-gray-
|
|
2972
|
+
className: `block text-xs font-semibold mb-1.5 ${i ? "text-zinc-200" : "text-gray-800"}`,
|
|
2014
2973
|
children: "Email or Registration Number"
|
|
2015
2974
|
}), /* @__PURE__ */ m("div", {
|
|
2016
2975
|
className: "relative",
|
|
2017
2976
|
children: [/* @__PURE__ */ p("div", {
|
|
2018
|
-
className:
|
|
2019
|
-
children: /* @__PURE__ */ p(
|
|
2977
|
+
className: "absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",
|
|
2978
|
+
children: /* @__PURE__ */ p(Q, {
|
|
2979
|
+
size: 15,
|
|
2980
|
+
style: { color: r }
|
|
2981
|
+
})
|
|
2020
2982
|
}), /* @__PURE__ */ p("input", {
|
|
2021
2983
|
type: "text",
|
|
2022
2984
|
required: !0,
|
|
2023
|
-
value:
|
|
2024
|
-
onChange: (e) =>
|
|
2985
|
+
value: T,
|
|
2986
|
+
onChange: (e) => E(e.target.value),
|
|
2025
2987
|
placeholder: "Enter email or registration number",
|
|
2026
|
-
className: `w-full pl-
|
|
2988
|
+
className: `w-full pl-10 pr-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${i ? "bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900" : "bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white"}`,
|
|
2989
|
+
style: {
|
|
2990
|
+
borderLeftWidth: "3.5px",
|
|
2991
|
+
borderLeftStyle: "solid",
|
|
2992
|
+
borderLeftColor: r
|
|
2993
|
+
},
|
|
2994
|
+
onFocus: (e) => {
|
|
2995
|
+
e.currentTarget.style.borderColor = r, e.currentTarget.style.boxShadow = `0 0 0 3px color-mix(in srgb, ${r} 25%, transparent), 0 4px 16px 0 rgba(0,0,0,0.06)`;
|
|
2996
|
+
},
|
|
2997
|
+
onBlur: (e) => {
|
|
2998
|
+
e.currentTarget.style.borderColor = i ? "#3f3f46" : "#d1d5db", e.currentTarget.style.borderLeftColor = r, e.currentTarget.style.boxShadow = "none";
|
|
2999
|
+
}
|
|
2027
3000
|
})]
|
|
2028
3001
|
})] }),
|
|
2029
3002
|
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
2030
|
-
className: `block text-xs font-semibold mb-1 ${i ? "text-zinc-200" : "text-gray-
|
|
3003
|
+
className: `block text-xs font-semibold mb-1.5 ${i ? "text-zinc-200" : "text-gray-800"}`,
|
|
2031
3004
|
children: "Password"
|
|
2032
3005
|
}), /* @__PURE__ */ m("div", {
|
|
2033
3006
|
className: "relative",
|
|
2034
3007
|
children: [/* @__PURE__ */ p("div", {
|
|
2035
|
-
className:
|
|
2036
|
-
children: /* @__PURE__ */ p(
|
|
3008
|
+
className: "absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",
|
|
3009
|
+
children: /* @__PURE__ */ p(_e, {
|
|
3010
|
+
size: 15,
|
|
3011
|
+
style: { color: r }
|
|
3012
|
+
})
|
|
2037
3013
|
}), /* @__PURE__ */ p("input", {
|
|
2038
3014
|
type: "password",
|
|
2039
3015
|
required: !0,
|
|
2040
|
-
value:
|
|
3016
|
+
value: te,
|
|
2041
3017
|
onChange: (e) => D(e.target.value),
|
|
2042
3018
|
placeholder: "Enter password",
|
|
2043
|
-
className: `w-full pl-
|
|
3019
|
+
className: `w-full pl-10 pr-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${i ? "bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900" : "bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white"}`,
|
|
3020
|
+
style: {
|
|
3021
|
+
borderLeftWidth: "3.5px",
|
|
3022
|
+
borderLeftStyle: "solid",
|
|
3023
|
+
borderLeftColor: r
|
|
3024
|
+
},
|
|
3025
|
+
onFocus: (e) => {
|
|
3026
|
+
e.currentTarget.style.borderColor = r, e.currentTarget.style.boxShadow = `0 0 0 3px color-mix(in srgb, ${r} 25%, transparent), 0 4px 16px 0 rgba(0,0,0,0.06)`;
|
|
3027
|
+
},
|
|
3028
|
+
onBlur: (e) => {
|
|
3029
|
+
e.currentTarget.style.borderColor = i ? "#3f3f46" : "#d1d5db", e.currentTarget.style.borderLeftColor = r, e.currentTarget.style.boxShadow = "none";
|
|
3030
|
+
}
|
|
2044
3031
|
})]
|
|
2045
3032
|
})] }),
|
|
2046
3033
|
/* @__PURE__ */ m("div", {
|
|
@@ -2048,7 +3035,7 @@ var ye = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
|
|
|
2048
3035
|
children: [/* @__PURE__ */ p("button", {
|
|
2049
3036
|
type: "button",
|
|
2050
3037
|
onClick: () => {
|
|
2051
|
-
|
|
3038
|
+
A(T), h("request_code"), S(null), w(null);
|
|
2052
3039
|
},
|
|
2053
3040
|
className: "font-semibold hover:underline cursor-pointer",
|
|
2054
3041
|
style: { color: r },
|
|
@@ -2056,7 +3043,7 @@ var ye = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
|
|
|
2056
3043
|
}), /* @__PURE__ */ p("button", {
|
|
2057
3044
|
type: "button",
|
|
2058
3045
|
onClick: () => {
|
|
2059
|
-
|
|
3046
|
+
A(T), h("reset"), S(null), w(null);
|
|
2060
3047
|
},
|
|
2061
3048
|
className: "font-semibold hover:underline cursor-pointer",
|
|
2062
3049
|
style: { color: r },
|
|
@@ -2065,10 +3052,10 @@ var ye = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
|
|
|
2065
3052
|
}),
|
|
2066
3053
|
/* @__PURE__ */ p("button", {
|
|
2067
3054
|
type: "submit",
|
|
2068
|
-
disabled:
|
|
3055
|
+
disabled: g,
|
|
2069
3056
|
style: { backgroundColor: r },
|
|
2070
|
-
className: "w-full py-2.5 px-4 text-white text-sm font-bold rounded-
|
|
2071
|
-
children:
|
|
3057
|
+
className: "w-full py-2.5 px-4 text-white text-sm font-bold rounded-xl hover:opacity-90 transition-all shadow-md flex items-center justify-center cursor-pointer disabled:opacity-50 hover:shadow-lg",
|
|
3058
|
+
children: g ? /* @__PURE__ */ m("div", {
|
|
2072
3059
|
className: "flex items-center gap-2",
|
|
2073
3060
|
children: [/* @__PURE__ */ m("svg", {
|
|
2074
3061
|
className: "animate-spin h-4 w-4 text-white",
|
|
@@ -2093,12 +3080,12 @@ var ye = ({ apiClient: e, storage: t, logger: n, primaryColor: r, isDark: i = !1
|
|
|
2093
3080
|
})
|
|
2094
3081
|
]
|
|
2095
3082
|
})
|
|
2096
|
-
})
|
|
3083
|
+
})]
|
|
2097
3084
|
});
|
|
2098
3085
|
};
|
|
2099
3086
|
//#endregion
|
|
2100
3087
|
//#region src/widget/components/EventWidgetReact.tsx
|
|
2101
|
-
function
|
|
3088
|
+
function Ze(e) {
|
|
2102
3089
|
if (!e) return "bottom-right";
|
|
2103
3090
|
switch (e) {
|
|
2104
3091
|
case "bottom-left":
|
|
@@ -2110,7 +3097,7 @@ function be(e) {
|
|
|
2110
3097
|
default: return "bottom-right";
|
|
2111
3098
|
}
|
|
2112
3099
|
}
|
|
2113
|
-
var
|
|
3100
|
+
var Qe = (e) => {
|
|
2114
3101
|
switch (e) {
|
|
2115
3102
|
case "bottom-left": return {
|
|
2116
3103
|
bottom: "20px",
|
|
@@ -2137,59 +3124,59 @@ var xe = (e) => {
|
|
|
2137
3124
|
left: "auto"
|
|
2138
3125
|
};
|
|
2139
3126
|
}
|
|
2140
|
-
},
|
|
3127
|
+
}, $e = (e) => {
|
|
2141
3128
|
switch (e) {
|
|
2142
3129
|
case "bottom-left": return "bottom-5 left-5";
|
|
2143
3130
|
case "top-right": return "top-5 right-5";
|
|
2144
3131
|
case "top-left": return "top-5 left-5";
|
|
2145
3132
|
default: return "bottom-5 right-5";
|
|
2146
3133
|
}
|
|
2147
|
-
},
|
|
2148
|
-
let [t, n] = d("registration"), [r, i] = d(e.displayMode !== "popup"), [o, c] = d(!1), [h, y] = d([]), [
|
|
3134
|
+
}, et = ({ config: e }) => {
|
|
3135
|
+
let [t, n] = d("registration"), [r, i] = d(e.displayMode !== "popup"), [o, c] = d(!1), [h, y] = d([]), [ee, b] = d(""), [x, S] = d(null), [C, w] = d(!0), [T, E] = d(""), [te, D] = d(!1), [ne, O] = d(null), [k, A] = d(null), [j, M] = d(() => Ze(e.position)), [N, ie] = d(null), [P, ae] = d(null), [F, I] = d(!1), [oe, se] = d(!1), ce = u(null), L = u(null), R = u(!1);
|
|
2149
3136
|
s(() => {
|
|
2150
|
-
e.position &&
|
|
3137
|
+
e.position && M(Ze(e.position));
|
|
2151
3138
|
}, [e.position]);
|
|
2152
|
-
let
|
|
3139
|
+
let z = e.themeMode === "dark" || e.theme?.mode === "dark", B = e.theme?.primaryColor || "#2563eb", V = !!e.isAbstract, U = e.headerBannerImage, ue = e.listBackgroundImage, W = l(() => new g(e.debug), [e.debug]), G = l(() => new _(e.baseUrl, e.eventSlug, W, e.timeoutMs ?? 12e4), [
|
|
2153
3140
|
e.baseUrl,
|
|
2154
3141
|
e.eventSlug,
|
|
2155
|
-
|
|
3142
|
+
W,
|
|
2156
3143
|
e.timeoutMs
|
|
2157
|
-
]),
|
|
3144
|
+
]), K = l(() => new v(e.eventSlug), [e.eventSlug]), q = u(e.displayMode), J = u(null), [Y, fe] = d(null);
|
|
2158
3145
|
s(() => {
|
|
2159
|
-
|
|
2160
|
-
}, [
|
|
3146
|
+
K.getXrefId();
|
|
3147
|
+
}, [K]), s(() => {
|
|
2161
3148
|
if (!r) return;
|
|
2162
|
-
let t =
|
|
2163
|
-
t &&
|
|
3149
|
+
let t = K.getXrefId();
|
|
3150
|
+
t && G.getDraft(t).then((t) => {
|
|
2164
3151
|
let n = t?.data || t;
|
|
2165
|
-
n && n.registration_type && (
|
|
3152
|
+
n && n.registration_type && (fe(n), e.onEvent?.("draft_loaded", n));
|
|
2166
3153
|
}).catch((e) => {
|
|
2167
|
-
|
|
3154
|
+
W.log("No draft found for this session", e);
|
|
2168
3155
|
});
|
|
2169
3156
|
}, [
|
|
2170
3157
|
r,
|
|
3158
|
+
G,
|
|
2171
3159
|
K,
|
|
2172
|
-
|
|
2173
|
-
G
|
|
3160
|
+
W
|
|
2174
3161
|
]);
|
|
2175
|
-
let
|
|
2176
|
-
if (!
|
|
2177
|
-
let e = { ...
|
|
2178
|
-
if (
|
|
2179
|
-
e.name =
|
|
2180
|
-
let t =
|
|
3162
|
+
let X = l(() => {
|
|
3163
|
+
if (!Y || !x || String(Y.registration_type) !== String(x.id)) return {};
|
|
3164
|
+
let e = { ...Y.custom_data || {} };
|
|
3165
|
+
if (Y.salutation && (e.salutation = Y.salutation, e.title = Y.salutation), Y.name) {
|
|
3166
|
+
e.name = Y.name, e.full_name = Y.name, e.fullName = Y.name;
|
|
3167
|
+
let t = Y.name.trim().split(/\s+/);
|
|
2181
3168
|
t.length > 0 && !e.first_name && (e.first_name = t[0]), t.length > 1 && !e.last_name && (e.last_name = t.slice(1).join(" "));
|
|
2182
3169
|
}
|
|
2183
|
-
return
|
|
2184
|
-
let n =
|
|
3170
|
+
return Y.email && (e.email = Y.email), Y.phone && (e.phone = Y.phone, e.mobile = Y.phone, e.phoneNumber = Y.phone), (x?.form_schema?.fields || []).forEach((t) => {
|
|
3171
|
+
let n = Je(t.id, t.label);
|
|
2185
3172
|
e[t.id] === void 0 && e[n] !== void 0 && (e[t.id] = e[n]);
|
|
2186
3173
|
}), e;
|
|
2187
|
-
}, [
|
|
3174
|
+
}, [Y, x]);
|
|
2188
3175
|
s(() => () => {
|
|
2189
|
-
|
|
3176
|
+
J.current && clearTimeout(J.current);
|
|
2190
3177
|
}, []);
|
|
2191
|
-
let
|
|
2192
|
-
|
|
3178
|
+
let pe = a((t) => {
|
|
3179
|
+
J.current && clearTimeout(J.current), J.current = setTimeout(async () => {
|
|
2193
3180
|
if (!Object.values(t).some((e) => e !== "" && e != null)) return;
|
|
2194
3181
|
let n = /* @__PURE__ */ new Set([
|
|
2195
3182
|
"salutation",
|
|
@@ -2205,54 +3192,56 @@ var xe = (e) => {
|
|
|
2205
3192
|
"phoneNumber",
|
|
2206
3193
|
"selected_items",
|
|
2207
3194
|
"custom_data"
|
|
2208
|
-
]), r =
|
|
3195
|
+
]), r = x?.form_schema?.fields || [], i = /* @__PURE__ */ new Map();
|
|
2209
3196
|
r.forEach((e) => i.set(e.id, e));
|
|
2210
3197
|
let a = { ...t.custom_data || {} };
|
|
2211
3198
|
for (let [e, r] of Object.entries(t)) if (!n.has(e)) {
|
|
2212
|
-
let t =
|
|
3199
|
+
let t = Je(e, i.get(e)?.label);
|
|
2213
3200
|
a[t] = r, t !== e && (a[e] = r);
|
|
2214
3201
|
}
|
|
2215
3202
|
let o = {
|
|
2216
|
-
xref_id:
|
|
3203
|
+
xref_id: K.getXrefId(),
|
|
2217
3204
|
salutation: t.salutation || t.title || "",
|
|
2218
3205
|
name: t.name || t.fullName || t.full_name || [t.firstName, t.lastName].filter(Boolean).join(" ") || "",
|
|
2219
3206
|
email: t.email || "",
|
|
2220
3207
|
phone: t.phone || t.mobile || t.phoneNumber || "",
|
|
2221
|
-
registration_type:
|
|
3208
|
+
registration_type: x?.id,
|
|
2222
3209
|
custom_data: a,
|
|
2223
|
-
selected_items: t.selected_items || []
|
|
3210
|
+
selected_items: t.selected_items || [],
|
|
3211
|
+
...V ? { accept_review_file: !0 } : {}
|
|
2224
3212
|
};
|
|
2225
3213
|
try {
|
|
2226
|
-
await
|
|
3214
|
+
await G.trackProgress(o), e.onEvent?.("draft_saved", o);
|
|
2227
3215
|
} catch (e) {
|
|
2228
|
-
|
|
3216
|
+
W.error("Failed to save draft progress", e);
|
|
2229
3217
|
}
|
|
2230
3218
|
}, 600);
|
|
2231
3219
|
}, [
|
|
2232
|
-
q,
|
|
2233
3220
|
K,
|
|
2234
|
-
|
|
3221
|
+
G,
|
|
3222
|
+
x,
|
|
2235
3223
|
e,
|
|
2236
|
-
|
|
3224
|
+
W,
|
|
3225
|
+
V
|
|
2237
3226
|
]);
|
|
2238
3227
|
s(() => {
|
|
2239
|
-
|
|
3228
|
+
q.current !== e.displayMode && (q.current = e.displayMode, i(e.displayMode !== "popup"), c(!1));
|
|
2240
3229
|
}, [e.displayMode]), s(() => {
|
|
2241
|
-
|
|
2242
|
-
y(t?.data?.types || []), (t?.data?.event_name || t?.data?.title || t?.data?.name) &&
|
|
3230
|
+
G.getFormSchema().then((t) => {
|
|
3231
|
+
y(t?.data?.types || []), (t?.data?.event_name || t?.data?.title || t?.data?.name) && b(t.data.event_name || t.data.title || t.data.name), e.onEvent?.("form_loaded", t?.data);
|
|
2243
3232
|
}).catch((t) => {
|
|
2244
|
-
|
|
3233
|
+
W.error("Failed to load schema", t), y([]);
|
|
2245
3234
|
let n = {
|
|
2246
3235
|
type: "schema_load",
|
|
2247
3236
|
message: t?.message || "Failed to load event schema",
|
|
2248
3237
|
error: t
|
|
2249
3238
|
};
|
|
2250
3239
|
e.onEvent?.("error", n), e.onError?.(n);
|
|
2251
|
-
}).finally(() =>
|
|
2252
|
-
}, [
|
|
2253
|
-
let
|
|
2254
|
-
|
|
2255
|
-
let n =
|
|
3240
|
+
}).finally(() => w(!1));
|
|
3241
|
+
}, [G]);
|
|
3242
|
+
let me = async (t) => {
|
|
3243
|
+
J.current && clearTimeout(J.current), w(!0), O(null);
|
|
3244
|
+
let n = K.getXrefId(), r = /* @__PURE__ */ new Set([
|
|
2256
3245
|
"salutation",
|
|
2257
3246
|
"title",
|
|
2258
3247
|
"name",
|
|
@@ -2268,11 +3257,11 @@ var xe = (e) => {
|
|
|
2268
3257
|
"selected_items",
|
|
2269
3258
|
"custom_data",
|
|
2270
3259
|
"xref_id"
|
|
2271
|
-
]), i =
|
|
3260
|
+
]), i = x?.form_schema?.fields || [], a = /* @__PURE__ */ new Map();
|
|
2272
3261
|
i.forEach((e) => a.set(e.id, e));
|
|
2273
3262
|
let o = { ...t.custom_data || {} };
|
|
2274
3263
|
for (let [e, n] of Object.entries(t)) if (!r.has(e)) {
|
|
2275
|
-
let t =
|
|
3264
|
+
let t = Je(e, a.get(e)?.label);
|
|
2276
3265
|
o[t] = n, t !== e && (o[e] = n);
|
|
2277
3266
|
}
|
|
2278
3267
|
let s = {
|
|
@@ -2281,77 +3270,78 @@ var xe = (e) => {
|
|
|
2281
3270
|
name: t.name || t.fullName || t.full_name || [t.firstName, t.lastName].filter(Boolean).join(" ") || "",
|
|
2282
3271
|
email: t.email || "",
|
|
2283
3272
|
phone: t.phone || t.mobile || t.phoneNumber || "",
|
|
2284
|
-
registration_type:
|
|
3273
|
+
registration_type: x.id,
|
|
2285
3274
|
custom_data: o,
|
|
2286
3275
|
selected_items: t.selected_items || []
|
|
2287
3276
|
};
|
|
3277
|
+
V && (s.accept_review_file = !0);
|
|
2288
3278
|
try {
|
|
2289
|
-
let t = await
|
|
2290
|
-
|
|
2291
|
-
let n = t?.data?.payment_url || t?.payment_url || null;
|
|
2292
|
-
|
|
3279
|
+
let t = await G.submitRegistration(s);
|
|
3280
|
+
K.updateXrefId(), fe(null);
|
|
3281
|
+
let n = V ? null : t?.data?.payment_url || t?.payment_url || null;
|
|
3282
|
+
A(n), n && typeof n == "string" && n.trim() !== "" && window.open(n, "_blank", "noopener,noreferrer"), D(!0);
|
|
2293
3283
|
let r = {
|
|
2294
|
-
registrationType:
|
|
3284
|
+
registrationType: x.id,
|
|
2295
3285
|
payload: s,
|
|
2296
3286
|
response: t,
|
|
2297
3287
|
paymentUrl: n
|
|
2298
3288
|
};
|
|
2299
3289
|
e.onEvent?.("submitted", r), e.onRegister?.(r), e.onRegistered?.(r);
|
|
2300
3290
|
} catch (t) {
|
|
2301
|
-
|
|
3291
|
+
W.error("Submission failed", t);
|
|
2302
3292
|
let n = t?.message || "Registration failed. Please check your information and try again.", r = {
|
|
2303
3293
|
type: "submit_error",
|
|
2304
3294
|
message: n,
|
|
2305
3295
|
error: t
|
|
2306
3296
|
};
|
|
2307
|
-
e.onEvent?.("error", r), e.onError?.(r),
|
|
3297
|
+
e.onEvent?.("error", r), e.onError?.(r), O(n);
|
|
2308
3298
|
} finally {
|
|
2309
|
-
|
|
3299
|
+
w(!1);
|
|
2310
3300
|
}
|
|
2311
|
-
},
|
|
2312
|
-
D(!1),
|
|
2313
|
-
},
|
|
2314
|
-
if (e.stopPropagation(), e.button !== 0 || !
|
|
2315
|
-
let t =
|
|
2316
|
-
|
|
3301
|
+
}, he = () => {
|
|
3302
|
+
D(!1), O(null), A(null), S(null), fe(null);
|
|
3303
|
+
}, ge = a((e) => {
|
|
3304
|
+
if (e.stopPropagation(), e.button !== 0 || !ce.current) return;
|
|
3305
|
+
let t = ce.current.getBoundingClientRect();
|
|
3306
|
+
L.current = {
|
|
2317
3307
|
startX: e.clientX,
|
|
2318
3308
|
startY: e.clientY,
|
|
2319
3309
|
rect: t,
|
|
2320
|
-
corner:
|
|
2321
|
-
},
|
|
2322
|
-
}, [
|
|
3310
|
+
corner: j
|
|
3311
|
+
}, R.current = !1, I(!0);
|
|
3312
|
+
}, [j]);
|
|
2323
3313
|
if (s(() => {
|
|
2324
|
-
if (!
|
|
3314
|
+
if (!F) return;
|
|
2325
3315
|
let t = (e) => {
|
|
2326
|
-
if (!
|
|
2327
|
-
let t = e.clientX -
|
|
2328
|
-
|
|
3316
|
+
if (!L.current) return;
|
|
3317
|
+
let t = e.clientX - L.current.startX, n = e.clientY - L.current.startY;
|
|
3318
|
+
R.current || Math.hypot(t, n) > 5 && (R.current = !0), R.current && ie({
|
|
2329
3319
|
x: t,
|
|
2330
3320
|
y: n
|
|
2331
3321
|
});
|
|
2332
3322
|
}, n = (t) => {
|
|
2333
|
-
if (!
|
|
2334
|
-
|
|
3323
|
+
if (!L.current) {
|
|
3324
|
+
I(!1), ie(null), R.current = !1;
|
|
2335
3325
|
return;
|
|
2336
3326
|
}
|
|
2337
|
-
let { rect: n, startX: r, startY: i } =
|
|
2338
|
-
if (
|
|
2339
|
-
|
|
3327
|
+
let { rect: n, startX: r, startY: i } = L.current, a = t.clientX - r, o = t.clientY - i, s = R.current;
|
|
3328
|
+
if (L.current = null, I(!1), setTimeout(() => {
|
|
3329
|
+
R.current = !1;
|
|
2340
3330
|
}, 100), !s) {
|
|
2341
|
-
|
|
3331
|
+
ie(null);
|
|
2342
3332
|
return;
|
|
2343
3333
|
}
|
|
2344
|
-
let c = n.left + a, l = n.top + o, u = c + n.width / 2, d = l + n.height / 2, f = typeof window < "u" ? window.innerWidth : 1024, p = typeof window < "u" ? window.innerHeight : 768, m = u >= f / 2, h = d >= p / 2, g = h ? m ? "bottom-right" : "bottom-left" : m ? "top-right" : "top-left", _ = m ? f - n.width - 20 : 20, v = h ? p - n.height - 20 : 20, y = c - _,
|
|
2345
|
-
|
|
2346
|
-
transform: `translate3d(${y}px, ${
|
|
3334
|
+
let c = n.left + a, l = n.top + o, u = c + n.width / 2, d = l + n.height / 2, f = typeof window < "u" ? window.innerWidth : 1024, p = typeof window < "u" ? window.innerHeight : 768, m = u >= f / 2, h = d >= p / 2, g = h ? m ? "bottom-right" : "bottom-left" : m ? "top-right" : "top-left", _ = m ? f - n.width - 20 : 20, v = h ? p - n.height - 20 : 20, y = c - _, ee = l - v;
|
|
3335
|
+
ae({
|
|
3336
|
+
transform: `translate3d(${y}px, ${ee}px, 0)`,
|
|
2347
3337
|
transition: "none"
|
|
2348
|
-
}),
|
|
3338
|
+
}), ie(null), M(g), e.onEvent?.("position_changed", { position: g }), requestAnimationFrame(() => {
|
|
2349
3339
|
requestAnimationFrame(() => {
|
|
2350
|
-
|
|
3340
|
+
ae({
|
|
2351
3341
|
transform: "translate3d(0, 0, 0)",
|
|
2352
3342
|
transition: "transform 0.35s cubic-bezier(0.16, 1, 0.3, 1)"
|
|
2353
3343
|
}), setTimeout(() => {
|
|
2354
|
-
|
|
3344
|
+
ae(null);
|
|
2355
3345
|
}, 360);
|
|
2356
3346
|
});
|
|
2357
3347
|
});
|
|
@@ -2359,39 +3349,39 @@ var xe = (e) => {
|
|
|
2359
3349
|
return window.addEventListener("pointermove", t), window.addEventListener("pointerup", n), window.addEventListener("pointercancel", n), () => {
|
|
2360
3350
|
window.removeEventListener("pointermove", t), window.removeEventListener("pointerup", n), window.removeEventListener("pointercancel", n);
|
|
2361
3351
|
};
|
|
2362
|
-
}, [
|
|
3352
|
+
}, [F, e]), !r && e.displayMode === "popup") {
|
|
2363
3353
|
let e = {
|
|
2364
|
-
...
|
|
2365
|
-
...
|
|
2366
|
-
transform: `translate3d(${
|
|
3354
|
+
...Qe(j),
|
|
3355
|
+
...N ? {
|
|
3356
|
+
transform: `translate3d(${N.x}px, ${N.y}px, 0) scale(1.05)`,
|
|
2367
3357
|
transition: "none",
|
|
2368
3358
|
userSelect: "none"
|
|
2369
|
-
} :
|
|
2370
|
-
transform:
|
|
2371
|
-
transition:
|
|
3359
|
+
} : P ? {
|
|
3360
|
+
transform: P.transform,
|
|
3361
|
+
transition: P.transition
|
|
2372
3362
|
} : { transition: "all 0.3s cubic-bezier(0.16, 1, 0.3, 1)" }
|
|
2373
|
-
}, t =
|
|
3363
|
+
}, t = oe || F;
|
|
2374
3364
|
return /* @__PURE__ */ m("div", {
|
|
2375
|
-
ref:
|
|
2376
|
-
onMouseEnter: () =>
|
|
2377
|
-
onMouseLeave: () =>
|
|
2378
|
-
className: `fixed ${
|
|
3365
|
+
ref: ce,
|
|
3366
|
+
onMouseEnter: () => se(!0),
|
|
3367
|
+
onMouseLeave: () => se(!1),
|
|
3368
|
+
className: `fixed ${$e(j)} z-50 select-none group`,
|
|
2379
3369
|
style: e,
|
|
2380
3370
|
children: [/* @__PURE__ */ p("div", {
|
|
2381
|
-
onPointerDown:
|
|
3371
|
+
onPointerDown: ge,
|
|
2382
3372
|
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"}`,
|
|
2383
3373
|
title: "Hold and drag to change position",
|
|
2384
|
-
children: /* @__PURE__ */ p(
|
|
3374
|
+
children: /* @__PURE__ */ p(De, {
|
|
2385
3375
|
size: 13,
|
|
2386
3376
|
className: "pointer-events-none text-white"
|
|
2387
3377
|
})
|
|
2388
3378
|
}), /* @__PURE__ */ p("button", {
|
|
2389
3379
|
type: "button",
|
|
2390
3380
|
onClick: (e) => {
|
|
2391
|
-
e.stopPropagation(), !
|
|
3381
|
+
e.stopPropagation(), !F && i(!0);
|
|
2392
3382
|
},
|
|
2393
3383
|
className: "w-16 h-16 rounded-full text-white shadow-xl flex items-center justify-center cursor-pointer hover:scale-105 active:scale-95 transition-transform",
|
|
2394
|
-
style: { backgroundColor:
|
|
3384
|
+
style: { backgroundColor: B },
|
|
2395
3385
|
title: "Click to open registration",
|
|
2396
3386
|
children: /* @__PURE__ */ p("span", {
|
|
2397
3387
|
className: "font-bold text-sm tracking-wide pointer-events-none",
|
|
@@ -2400,13 +3390,35 @@ var xe = (e) => {
|
|
|
2400
3390
|
})]
|
|
2401
3391
|
});
|
|
2402
3392
|
}
|
|
2403
|
-
let
|
|
2404
|
-
return
|
|
2405
|
-
className:
|
|
2406
|
-
style:
|
|
2407
|
-
|
|
3393
|
+
let _e = e.displayMode === "fullscreen" || e.displayMode === "popup" && o, ve = e.backgroundImage || e.theme?.backgroundImage, Z = e.displayMode === "widget", ye = `${ve ? z ? "bg-zinc-950 text-white" : "bg-slate-100/90 text-gray-900" : z ? "bg-zinc-950 text-white" : "bg-[#fbf7f9] text-gray-900"} flex flex-col transition-all duration-300 ease-in-out relative `, Q = { fontFamily: e.theme?.fontFamily || "sans-serif" };
|
|
3394
|
+
return _e ? (ye += "fixed inset-0 z-[9999] rounded-none overflow-hidden ", Q.width = "100vw", Q.height = "100vh") : e.displayMode === "popup" ? (ye += `fixed ${$e(j)} z-50 rounded-xl shadow-2xl border ${z ? "border-zinc-800" : "border-gray-200"} overflow-hidden `, Q.width = e.width || "400px", Q.height = e.height || "700px", Q.maxHeight = "90vh", Q.maxWidth = "calc(100vw - 32px)", Object.assign(Q, Qe(j))) : (ye += "w-full min-h-screen border-none shadow-none rounded-none ", Q.width = "100%", Q.minHeight = "100vh"), /* @__PURE__ */ m("div", {
|
|
3395
|
+
className: ye,
|
|
3396
|
+
style: {
|
|
3397
|
+
...Q,
|
|
3398
|
+
overflow: Z ? "visible" : "clip"
|
|
3399
|
+
},
|
|
3400
|
+
onScroll: (e) => {
|
|
3401
|
+
Z || (e.currentTarget.scrollTop !== 0 && (e.currentTarget.scrollTop = 0), e.currentTarget.scrollLeft !== 0 && (e.currentTarget.scrollLeft = 0));
|
|
3402
|
+
},
|
|
3403
|
+
children: [ve && /* @__PURE__ */ m("div", {
|
|
3404
|
+
className: "absolute inset-0 pointer-events-none overflow-hidden z-0 select-none",
|
|
3405
|
+
children: [/* @__PURE__ */ p("div", {
|
|
3406
|
+
className: "absolute inset-0 bg-cover bg-center bg-no-repeat transition-opacity duration-700 pointer-events-none",
|
|
3407
|
+
style: {
|
|
3408
|
+
backgroundImage: `url(${ve})`,
|
|
3409
|
+
backgroundSize: "cover",
|
|
3410
|
+
backgroundPosition: "center",
|
|
3411
|
+
backgroundRepeat: "no-repeat",
|
|
3412
|
+
opacity: z ? .55 : .85,
|
|
3413
|
+
filter: z ? "saturate(85%) contrast(105%)" : "saturate(95%) contrast(100%)"
|
|
3414
|
+
}
|
|
3415
|
+
}), /* @__PURE__ */ p("div", {
|
|
3416
|
+
className: "absolute inset-0 pointer-events-none",
|
|
3417
|
+
style: { background: z ? "linear-gradient(180deg, rgba(9,9,11,0.45) 0%, rgba(9,9,11,0.65) 100%)" : "linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(248,250,252,0.18) 100%)" }
|
|
3418
|
+
})]
|
|
3419
|
+
}), C ? /* @__PURE__ */ m("div", {
|
|
2408
3420
|
className: "flex h-full items-center justify-center font-medium",
|
|
2409
|
-
style: { color:
|
|
3421
|
+
style: { color: B },
|
|
2410
3422
|
children: [/* @__PURE__ */ m("svg", {
|
|
2411
3423
|
className: "animate-spin -ml-1 mr-3 h-8 w-8",
|
|
2412
3424
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2425,12 +3437,12 @@ var xe = (e) => {
|
|
|
2425
3437
|
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"
|
|
2426
3438
|
})]
|
|
2427
3439
|
}), "Processing..."]
|
|
2428
|
-
}) :
|
|
2429
|
-
className: `flex flex-col h-full relative overflow-y-auto ${
|
|
3440
|
+
}) : te ? k ? /* @__PURE__ */ m("div", {
|
|
3441
|
+
className: `flex flex-col h-full relative overflow-y-auto ${z ? "bg-black text-white" : "bg-white text-gray-900"}`,
|
|
2430
3442
|
children: [/* @__PURE__ */ m("div", {
|
|
2431
3443
|
className: "p-4 shadow-sm flex justify-between items-center z-10",
|
|
2432
3444
|
style: {
|
|
2433
|
-
backgroundColor:
|
|
3445
|
+
backgroundColor: B,
|
|
2434
3446
|
color: "white"
|
|
2435
3447
|
},
|
|
2436
3448
|
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
|
|
@@ -2445,11 +3457,11 @@ var xe = (e) => {
|
|
|
2445
3457
|
onClick: () => c(!o),
|
|
2446
3458
|
title: o ? "Minimize" : "Expand",
|
|
2447
3459
|
className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
|
|
2448
|
-
children: p(o ?
|
|
3460
|
+
children: p(o ? Te : Ce, { size: 18 })
|
|
2449
3461
|
}), /* @__PURE__ */ p("button", {
|
|
2450
3462
|
onClick: () => i(!1),
|
|
2451
3463
|
className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
|
|
2452
|
-
children: /* @__PURE__ */ p(
|
|
3464
|
+
children: /* @__PURE__ */ p($, { size: 24 })
|
|
2453
3465
|
})] })
|
|
2454
3466
|
})]
|
|
2455
3467
|
}), /* @__PURE__ */ m("div", {
|
|
@@ -2458,72 +3470,72 @@ var xe = (e) => {
|
|
|
2458
3470
|
/* @__PURE__ */ p("div", {
|
|
2459
3471
|
className: "w-16 h-16 rounded-full flex items-center justify-center mb-4 text-2xl shadow-md",
|
|
2460
3472
|
style: {
|
|
2461
|
-
backgroundColor: `color-mix(in srgb, ${
|
|
2462
|
-
color:
|
|
3473
|
+
backgroundColor: `color-mix(in srgb, ${B} 12%, transparent)`,
|
|
3474
|
+
color: B
|
|
2463
3475
|
},
|
|
2464
3476
|
children: "💳"
|
|
2465
3477
|
}),
|
|
2466
3478
|
/* @__PURE__ */ p("h3", {
|
|
2467
|
-
className: `text-2xl font-bold mb-2 ${
|
|
3479
|
+
className: `text-2xl font-bold mb-2 ${z ? "text-white" : "text-gray-900"}`,
|
|
2468
3480
|
children: "Done Your Payment First"
|
|
2469
3481
|
}),
|
|
2470
3482
|
/* @__PURE__ */ p("p", {
|
|
2471
|
-
className: `text-sm mb-6 max-w-xs leading-relaxed ${
|
|
3483
|
+
className: `text-sm mb-6 max-w-xs leading-relaxed ${z ? "text-zinc-300" : "text-gray-600"}`,
|
|
2472
3484
|
children: "Please complete your payment in the new tab to confirm your booking and finalize your registration."
|
|
2473
3485
|
}),
|
|
2474
3486
|
/* @__PURE__ */ m("div", {
|
|
2475
3487
|
className: "w-full max-w-xs space-y-3",
|
|
2476
3488
|
children: [/* @__PURE__ */ m("a", {
|
|
2477
|
-
href:
|
|
3489
|
+
href: k,
|
|
2478
3490
|
target: "_blank",
|
|
2479
3491
|
rel: "noopener noreferrer",
|
|
2480
3492
|
className: "flex items-center justify-center gap-2 font-bold px-5 py-3 rounded-lg transition-opacity hover:opacity-90 text-white shadow-md w-full",
|
|
2481
|
-
style: { backgroundColor:
|
|
2482
|
-
children: [/* @__PURE__ */ p("span", { children: "Open Payment Page" }), /* @__PURE__ */ p(
|
|
3493
|
+
style: { backgroundColor: B },
|
|
3494
|
+
children: [/* @__PURE__ */ p("span", { children: "Open Payment Page" }), /* @__PURE__ */ p(de, { size: 16 })]
|
|
2483
3495
|
}), /* @__PURE__ */ p("button", {
|
|
2484
|
-
onClick:
|
|
2485
|
-
className: `w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${
|
|
3496
|
+
onClick: he,
|
|
3497
|
+
className: `w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${z ? "text-zinc-400 hover:text-white" : "text-gray-500 hover:text-gray-900"}`,
|
|
2486
3498
|
children: "Register Another Person"
|
|
2487
3499
|
})]
|
|
2488
3500
|
})
|
|
2489
3501
|
]
|
|
2490
3502
|
})]
|
|
2491
3503
|
}) : /* @__PURE__ */ m("div", {
|
|
2492
|
-
className: `flex flex-col h-full items-center justify-center p-8 text-center relative ${
|
|
3504
|
+
className: `flex flex-col h-full items-center justify-center p-8 text-center relative ${z ? "bg-black text-white" : "bg-white text-gray-900"}`,
|
|
2493
3505
|
children: [
|
|
2494
3506
|
e.displayMode === "popup" && /* @__PURE__ */ p("div", {
|
|
2495
3507
|
className: "absolute top-4 right-4 flex items-center gap-2",
|
|
2496
3508
|
children: /* @__PURE__ */ p("button", {
|
|
2497
3509
|
onClick: () => i(!1),
|
|
2498
|
-
className: `cursor-pointer ${
|
|
2499
|
-
children: /* @__PURE__ */ p(
|
|
3510
|
+
className: `cursor-pointer ${z ? "text-zinc-400 hover:text-white" : "text-gray-400 hover:text-gray-900"}`,
|
|
3511
|
+
children: /* @__PURE__ */ p($, { size: 24 })
|
|
2500
3512
|
})
|
|
2501
3513
|
}),
|
|
2502
3514
|
/* @__PURE__ */ p("div", {
|
|
2503
3515
|
className: "w-20 h-20 rounded-full flex items-center justify-center mb-6 text-4xl shadow-md",
|
|
2504
3516
|
style: {
|
|
2505
|
-
backgroundColor:
|
|
3517
|
+
backgroundColor: B,
|
|
2506
3518
|
color: "white"
|
|
2507
3519
|
},
|
|
2508
3520
|
children: "✓"
|
|
2509
3521
|
}),
|
|
2510
3522
|
/* @__PURE__ */ p("h2", {
|
|
2511
|
-
className: `text-3xl font-bold mb-3 ${
|
|
2512
|
-
children: "Thank You!"
|
|
3523
|
+
className: `text-3xl font-bold mb-3 ${z ? "text-white" : "text-gray-900"}`,
|
|
3524
|
+
children: V ? "Submitted" : "Thank You!"
|
|
2513
3525
|
}),
|
|
2514
3526
|
/* @__PURE__ */ p("p", {
|
|
2515
|
-
className: `mb-8 ${
|
|
2516
|
-
children: "Your registration has been successfully received."
|
|
3527
|
+
className: `mb-8 ${z ? "text-zinc-300" : "text-gray-600"}`,
|
|
3528
|
+
children: V ? "Your abstract has been submitted successfully." : "Your registration has been successfully received."
|
|
2517
3529
|
}),
|
|
2518
3530
|
/* @__PURE__ */ p("button", {
|
|
2519
|
-
onClick:
|
|
2520
|
-
style: { backgroundColor:
|
|
3531
|
+
onClick: he,
|
|
3532
|
+
style: { backgroundColor: B },
|
|
2521
3533
|
className: "text-white font-bold py-3 px-8 rounded-md hover:opacity-90 transition-opacity shadow-md cursor-pointer",
|
|
2522
|
-
children: "Register Another Person"
|
|
3534
|
+
children: V ? "Submit Again" : "Register Another Person"
|
|
2523
3535
|
})
|
|
2524
3536
|
]
|
|
2525
|
-
}) :
|
|
2526
|
-
className: `flex flex-col h-full relative overflow-y-auto ${
|
|
3537
|
+
}) : ne ? /* @__PURE__ */ m("div", {
|
|
3538
|
+
className: `flex flex-col h-full relative overflow-y-auto ${z ? "bg-black text-white" : "bg-white text-gray-900"}`,
|
|
2527
3539
|
children: [/* @__PURE__ */ m("div", {
|
|
2528
3540
|
className: "p-4 shadow-sm flex justify-between items-center z-10 bg-red-600 text-white",
|
|
2529
3541
|
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
|
|
@@ -2537,161 +3549,332 @@ var xe = (e) => {
|
|
|
2537
3549
|
children: e.displayMode === "popup" && /* @__PURE__ */ p("button", {
|
|
2538
3550
|
onClick: () => i(!1),
|
|
2539
3551
|
className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer",
|
|
2540
|
-
children: /* @__PURE__ */ p(
|
|
3552
|
+
children: /* @__PURE__ */ p($, { size: 24 })
|
|
2541
3553
|
})
|
|
2542
3554
|
})]
|
|
2543
3555
|
}), /* @__PURE__ */ m("div", {
|
|
2544
3556
|
className: "flex-1 flex flex-col items-center justify-center p-6 text-center",
|
|
2545
3557
|
children: [
|
|
2546
3558
|
/* @__PURE__ */ p("div", {
|
|
2547
|
-
className: `w-16 h-16 rounded-full flex items-center justify-center mb-4 text-2xl shadow-md border ${
|
|
3559
|
+
className: `w-16 h-16 rounded-full flex items-center justify-center mb-4 text-2xl shadow-md border ${z ? "bg-red-950/60 text-red-400 border-red-900" : "bg-red-50 text-red-600 border-red-200"}`,
|
|
2548
3560
|
children: "✕"
|
|
2549
3561
|
}),
|
|
2550
3562
|
/* @__PURE__ */ p("h3", {
|
|
2551
|
-
className: `text-2xl font-bold mb-2 ${
|
|
3563
|
+
className: `text-2xl font-bold mb-2 ${z ? "text-white" : "text-gray-900"}`,
|
|
2552
3564
|
children: "Submission Error"
|
|
2553
3565
|
}),
|
|
2554
3566
|
/* @__PURE__ */ p("p", {
|
|
2555
|
-
className: `text-sm mb-6 max-w-xs leading-relaxed ${
|
|
2556
|
-
children:
|
|
3567
|
+
className: `text-sm mb-6 max-w-xs leading-relaxed ${z ? "text-zinc-300" : "text-gray-600"}`,
|
|
3568
|
+
children: ne
|
|
2557
3569
|
}),
|
|
2558
3570
|
/* @__PURE__ */ m("div", {
|
|
2559
3571
|
className: "w-full max-w-xs space-y-3",
|
|
2560
3572
|
children: [/* @__PURE__ */ p("button", {
|
|
2561
|
-
onClick: () =>
|
|
2562
|
-
style: { backgroundColor:
|
|
3573
|
+
onClick: () => O(null),
|
|
3574
|
+
style: { backgroundColor: B },
|
|
2563
3575
|
className: "flex items-center justify-center gap-2 font-bold px-5 py-3 rounded-lg transition-opacity hover:opacity-90 text-white shadow-md w-full cursor-pointer",
|
|
2564
3576
|
children: /* @__PURE__ */ p("span", { children: "Try Again" })
|
|
2565
3577
|
}), /* @__PURE__ */ p("button", {
|
|
2566
3578
|
onClick: () => {
|
|
2567
|
-
|
|
3579
|
+
O(null), S(null);
|
|
2568
3580
|
},
|
|
2569
|
-
className: `w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${
|
|
3581
|
+
className: `w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${z ? "text-zinc-400 hover:text-white" : "text-gray-500 hover:text-gray-900"}`,
|
|
2570
3582
|
children: "Choose Another Ticket"
|
|
2571
3583
|
})]
|
|
2572
3584
|
})
|
|
2573
3585
|
]
|
|
2574
3586
|
})]
|
|
2575
|
-
}) :
|
|
2576
|
-
schema:
|
|
3587
|
+
}) : x ? /* @__PURE__ */ p(qe, {
|
|
3588
|
+
schema: x.form_schema,
|
|
3589
|
+
ticketType: x,
|
|
2577
3590
|
theme: e.theme,
|
|
2578
3591
|
displayMode: e.displayMode,
|
|
3592
|
+
backgroundImage: e.backgroundImage || e.theme?.backgroundImage,
|
|
2579
3593
|
isExpanded: o,
|
|
2580
3594
|
onToggleExpand: () => c(!o),
|
|
2581
3595
|
onClose: () => i(!1),
|
|
2582
|
-
onSubmit:
|
|
2583
|
-
onChange:
|
|
2584
|
-
initialValues:
|
|
2585
|
-
isDark:
|
|
2586
|
-
apiClient:
|
|
2587
|
-
storage:
|
|
3596
|
+
onSubmit: me,
|
|
3597
|
+
onChange: pe,
|
|
3598
|
+
initialValues: X,
|
|
3599
|
+
isDark: z,
|
|
3600
|
+
apiClient: G,
|
|
3601
|
+
storage: K,
|
|
2588
3602
|
onError: e.onError,
|
|
2589
3603
|
onEvent: e.onEvent,
|
|
3604
|
+
showReviewFields: V,
|
|
2590
3605
|
onBack: () => {
|
|
2591
|
-
|
|
3606
|
+
J.current && clearTimeout(J.current), S(null);
|
|
2592
3607
|
}
|
|
2593
3608
|
}) : /* @__PURE__ */ m("div", {
|
|
2594
|
-
className: `flex flex-col h-full
|
|
3609
|
+
className: `flex flex-col ${Z ? "w-full flex-1" : "h-full min-h-0"} ${z ? "bg-zinc-950 text-white" : "bg-[#fbf7f9] text-gray-900"}`,
|
|
2595
3610
|
children: [
|
|
2596
3611
|
/* @__PURE__ */ m("div", {
|
|
2597
|
-
className: "
|
|
3612
|
+
className: "relative overflow-hidden shadow-xs z-10 shrink-0 border-b border-white/10",
|
|
2598
3613
|
style: {
|
|
2599
|
-
backgroundColor:
|
|
3614
|
+
backgroundColor: B,
|
|
3615
|
+
background: `linear-gradient(110deg, ${B} 0%, ${B} 40%, color-mix(in srgb, ${B} 85%, black) 100%)`,
|
|
2600
3616
|
color: "white"
|
|
2601
3617
|
},
|
|
2602
|
-
children: [/* @__PURE__ */ m("div", {
|
|
2603
|
-
className: "
|
|
2604
|
-
children:
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
3618
|
+
children: [U && /* @__PURE__ */ m("div", {
|
|
3619
|
+
className: "absolute inset-y-0 right-0 flex max-w-[65%] pointer-events-none select-none",
|
|
3620
|
+
children: [/* @__PURE__ */ p("img", {
|
|
3621
|
+
src: U,
|
|
3622
|
+
alt: "",
|
|
3623
|
+
"aria-hidden": "true",
|
|
3624
|
+
className: "h-full w-auto object-cover object-right"
|
|
3625
|
+
}), /* @__PURE__ */ p("div", {
|
|
3626
|
+
className: "absolute inset-y-0 left-0 w-2/5",
|
|
3627
|
+
style: { background: `linear-gradient(to right, color-mix(in srgb, ${B} 88%, black) 0%, transparent 100%)` }
|
|
3628
|
+
})]
|
|
3629
|
+
}), /* @__PURE__ */ m("div", {
|
|
3630
|
+
className: "relative z-[1] px-5 sm:px-8 py-4 sm:py-5 flex justify-between items-center gap-3 min-w-0",
|
|
3631
|
+
children: [/* @__PURE__ */ m("div", {
|
|
3632
|
+
className: "flex items-center gap-3 min-w-0",
|
|
3633
|
+
children: [/* @__PURE__ */ p("div", {
|
|
3634
|
+
className: "w-10 h-10 rounded-xl bg-white/20 backdrop-blur-md flex items-center justify-center shrink-0 border border-white/30 shadow-xs",
|
|
3635
|
+
children: /* @__PURE__ */ p(Le, {
|
|
3636
|
+
size: 20,
|
|
3637
|
+
className: "text-white"
|
|
3638
|
+
})
|
|
3639
|
+
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("div", {
|
|
3640
|
+
className: "flex items-center gap-2",
|
|
3641
|
+
children: [/* @__PURE__ */ p("h2", {
|
|
3642
|
+
className: "text-xl sm:text-2xl font-black tracking-tight",
|
|
3643
|
+
children: V ? "Abstract Submission" : t === "registration" ? ee : "Attendee Portal"
|
|
3644
|
+
}), /* @__PURE__ */ p("span", {
|
|
3645
|
+
className: "text-2xs font-extrabold px-2 py-0.5 rounded-full bg-white/20 backdrop-blur-md uppercase tracking-wider text-white border border-white/30 hidden sm:inline-block",
|
|
3646
|
+
children: "Official Portal"
|
|
3647
|
+
})]
|
|
3648
|
+
}), /* @__PURE__ */ p("p", {
|
|
3649
|
+
className: "text-xs opacity-90 mt-0.5",
|
|
3650
|
+
children: V ? "Select a form type below to submit your abstract" : t === "registration" ? "Select a registration form type below to begin your application" : "Registration & Profile Management"
|
|
3651
|
+
})] })]
|
|
3652
|
+
}), /* @__PURE__ */ p("div", {
|
|
3653
|
+
className: "flex items-center gap-3",
|
|
3654
|
+
children: e.displayMode === "popup" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("button", {
|
|
3655
|
+
onClick: () => c(!o),
|
|
3656
|
+
title: o ? "Minimize" : "Expand",
|
|
3657
|
+
className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer p-1",
|
|
3658
|
+
children: p(o ? Te : Ce, { size: 18 })
|
|
3659
|
+
}), /* @__PURE__ */ p("button", {
|
|
3660
|
+
onClick: () => i(!1),
|
|
3661
|
+
className: "opacity-80 hover:opacity-100 transition-opacity cursor-pointer p-1",
|
|
3662
|
+
children: /* @__PURE__ */ p($, { size: 22 })
|
|
3663
|
+
})] })
|
|
3664
|
+
})]
|
|
2620
3665
|
})]
|
|
2621
3666
|
}),
|
|
2622
|
-
/* @__PURE__ */ m("div", {
|
|
2623
|
-
className: `flex border-b shrink-0 shadow-2xs ${
|
|
3667
|
+
!V && /* @__PURE__ */ m("div", {
|
|
3668
|
+
className: `flex border-b shrink-0 shadow-2xs ${z ? "border-zinc-800 bg-zinc-900" : "border-gray-200 bg-white"}`,
|
|
2624
3669
|
children: [/* @__PURE__ */ m("button", {
|
|
2625
3670
|
type: "button",
|
|
2626
3671
|
onClick: () => n("registration"),
|
|
2627
3672
|
className: "flex-1 py-3 text-sm font-semibold text-center transition-all cursor-pointer relative",
|
|
2628
|
-
style: { color: t === "registration" ?
|
|
2629
|
-
children: [
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
3673
|
+
style: { color: t === "registration" ? B : z ? "#a1a1aa" : "#6b7280" },
|
|
3674
|
+
children: [
|
|
3675
|
+
/* @__PURE__ */ p("span", { children: "Registration Forms" }),
|
|
3676
|
+
/* @__PURE__ */ p("span", {
|
|
3677
|
+
className: "ml-1.5 text-xs px-2 py-0.5 rounded-full bg-gray-100 dark:bg-zinc-800 font-bold",
|
|
3678
|
+
children: h.length
|
|
3679
|
+
}),
|
|
3680
|
+
t === "registration" && /* @__PURE__ */ p("span", {
|
|
3681
|
+
className: "absolute bottom-0 left-0 right-0 h-0.5",
|
|
3682
|
+
style: { backgroundColor: B }
|
|
3683
|
+
})
|
|
3684
|
+
]
|
|
2633
3685
|
}), /* @__PURE__ */ m("button", {
|
|
2634
3686
|
type: "button",
|
|
2635
3687
|
onClick: () => n("attendee"),
|
|
2636
3688
|
className: "flex-1 py-3 text-sm font-semibold text-center transition-all cursor-pointer relative",
|
|
2637
|
-
style: { color: t === "attendee" ?
|
|
2638
|
-
children: ["Attendee Login", t === "attendee" && /* @__PURE__ */ p("span", {
|
|
3689
|
+
style: { color: t === "attendee" ? B : z ? "#a1a1aa" : "#6b7280" },
|
|
3690
|
+
children: [/* @__PURE__ */ p("span", { children: "Attendee Login" }), t === "attendee" && /* @__PURE__ */ p("span", {
|
|
2639
3691
|
className: "absolute bottom-0 left-0 right-0 h-0.5",
|
|
2640
|
-
style: { backgroundColor:
|
|
3692
|
+
style: { backgroundColor: B }
|
|
2641
3693
|
})]
|
|
2642
3694
|
})]
|
|
2643
3695
|
}),
|
|
2644
|
-
t === "registration" ? /* @__PURE__ */ p("div", {
|
|
2645
|
-
className:
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
3696
|
+
V || t === "registration" ? /* @__PURE__ */ p("div", {
|
|
3697
|
+
className: `${Z ? "w-full flex-1" : "overflow-y-auto flex-1 min-h-0 overscroll-contain"} relative ${e.backgroundImage || e.theme?.backgroundImage ? "bg-transparent" : z ? "bg-zinc-950" : "bg-[#fbf7f9]"}`,
|
|
3698
|
+
style: ue ? {
|
|
3699
|
+
backgroundImage: `linear-gradient(${z ? "rgba(9,9,11,0.88), rgba(9,9,11,0.88)" : "rgba(251,247,249,0.86), rgba(251,247,249,0.86)"}), url(${ue})`,
|
|
3700
|
+
backgroundSize: "cover",
|
|
3701
|
+
backgroundPosition: "center",
|
|
3702
|
+
backgroundRepeat: "no-repeat",
|
|
3703
|
+
backgroundAttachment: Z ? "fixed" : "scroll"
|
|
3704
|
+
} : void 0,
|
|
3705
|
+
children: /* @__PURE__ */ m("div", {
|
|
3706
|
+
className: "max-w-6xl mx-auto w-full px-4 sm:px-6 py-6 sm:py-8 space-y-6",
|
|
2655
3707
|
children: [/* @__PURE__ */ p("div", {
|
|
2656
|
-
className: `
|
|
2657
|
-
children:
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
3708
|
+
className: `p-4 rounded-2xl border transition-all shadow-xs ${z ? "bg-zinc-900/90 border-zinc-800" : "bg-white border-pink-100/80 shadow-[0_2px_12px_rgba(217,70,239,0.03)]"}`,
|
|
3709
|
+
children: /* @__PURE__ */ m("div", {
|
|
3710
|
+
className: "relative w-full md:w-72",
|
|
3711
|
+
children: [
|
|
3712
|
+
/* @__PURE__ */ p("input", {
|
|
3713
|
+
type: "text",
|
|
3714
|
+
value: T,
|
|
3715
|
+
onChange: (e) => E(e.target.value),
|
|
3716
|
+
placeholder: "Search form types...",
|
|
3717
|
+
className: `w-full pl-9 pr-8 py-2 text-xs leading-5 rounded-xl border transition-all ${z ? "bg-zinc-800/80 border-zinc-700 text-white placeholder-zinc-500 focus:outline-none focus:ring-2 focus:ring-fuchsia-500/20" : "bg-[#faf4f8] border-[#f0e2ed] text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-fuchsia-500/20"}`
|
|
3718
|
+
}),
|
|
3719
|
+
/* @__PURE__ */ p("div", {
|
|
3720
|
+
className: "absolute inset-y-0 left-3 flex items-center pointer-events-none text-gray-400",
|
|
3721
|
+
children: /* @__PURE__ */ p(Fe, {
|
|
3722
|
+
size: 14,
|
|
3723
|
+
className: "block"
|
|
3724
|
+
})
|
|
3725
|
+
}),
|
|
3726
|
+
T && /* @__PURE__ */ p("button", {
|
|
3727
|
+
type: "button",
|
|
3728
|
+
onClick: () => E(""),
|
|
3729
|
+
className: "absolute inset-y-0 right-2.5 flex items-center text-gray-400 hover:text-gray-600 text-xs cursor-pointer",
|
|
3730
|
+
children: "✕"
|
|
3731
|
+
})
|
|
3732
|
+
]
|
|
3733
|
+
})
|
|
3734
|
+
}), (() => {
|
|
3735
|
+
let t = T.trim().toLowerCase(), n = t ? h.filter((e) => [
|
|
3736
|
+
e.type,
|
|
3737
|
+
e.name,
|
|
3738
|
+
e.category,
|
|
3739
|
+
e.description,
|
|
2662
3740
|
e.currency,
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
3741
|
+
e.price,
|
|
3742
|
+
e.tax_info,
|
|
3743
|
+
...Array.isArray(e.perks) ? e.perks : []
|
|
3744
|
+
].filter((e) => e != null && e !== "").join(" ").toLowerCase().includes(t)) : h;
|
|
3745
|
+
return h.length === 0 ? null : n.length === 0 ? /* @__PURE__ */ m("div", {
|
|
3746
|
+
className: `text-center py-16 rounded-2xl border ${z ? "bg-zinc-900 border-zinc-800 text-zinc-400" : "bg-white border-pink-100 text-gray-500"}`,
|
|
3747
|
+
children: [
|
|
3748
|
+
/* @__PURE__ */ p("p", {
|
|
3749
|
+
className: "text-base font-bold",
|
|
3750
|
+
children: "No form types matched your search"
|
|
3751
|
+
}),
|
|
3752
|
+
/* @__PURE__ */ p("p", {
|
|
3753
|
+
className: "text-xs mt-1",
|
|
3754
|
+
children: "Try a different search term."
|
|
3755
|
+
}),
|
|
3756
|
+
/* @__PURE__ */ p("button", {
|
|
3757
|
+
onClick: () => E(""),
|
|
3758
|
+
className: "mt-4 px-4 py-2 rounded-xl text-xs font-bold text-white shadow-xs cursor-pointer",
|
|
3759
|
+
style: { backgroundColor: B },
|
|
3760
|
+
children: "Clear Search"
|
|
3761
|
+
})
|
|
3762
|
+
]
|
|
3763
|
+
}) : /* @__PURE__ */ p("div", {
|
|
3764
|
+
className: Z ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" : "space-y-4",
|
|
3765
|
+
children: n.map((t) => {
|
|
3766
|
+
let n = !!(e.backgroundImage || e.theme?.backgroundImage), r = t.form_schema?.fields?.length || 0, i = t.price !== void 0 && t.price !== null && t.price !== "", a = i && (Number(t.price) === 0 || String(t.price).toLowerCase() === "free"), o = Array.isArray(t.perks) ? t.perks : [];
|
|
3767
|
+
return /* @__PURE__ */ m("div", {
|
|
3768
|
+
onClick: () => S(t),
|
|
3769
|
+
className: `rounded-2xl p-6 cursor-pointer transition-all duration-300 relative border border-l-4 flex flex-col justify-between group hover:-translate-y-1 ${n ? z ? "bg-black/40 border-white/10 hover:bg-black/55 backdrop-blur-md shadow-sm" : "bg-white/40 border-white/60 hover:bg-white/65 backdrop-blur-md shadow-sm" : z ? "bg-zinc-900 border-zinc-800 hover:border-zinc-700 shadow-sm" : "bg-white border-pink-100/90 hover:border-pink-200 shadow-[0_4px_20px_rgba(217,70,239,0.05)] hover:shadow-[0_8px_30px_rgba(217,70,239,0.12)]"}`,
|
|
3770
|
+
style: { borderLeftColor: B },
|
|
3771
|
+
children: [/* @__PURE__ */ m("div", { children: [
|
|
3772
|
+
(t.category || t.seats_left) && /* @__PURE__ */ m("div", {
|
|
3773
|
+
className: "flex items-center justify-between gap-2 mb-3",
|
|
3774
|
+
children: [t.category && /* @__PURE__ */ p("span", {
|
|
3775
|
+
className: `text-2xs font-extrabold uppercase tracking-wider px-2.5 py-1 rounded-full border ${z ? "bg-zinc-800 border-zinc-700 text-zinc-300" : "bg-pink-50 border-pink-200/80 text-[#86198f]"}`,
|
|
3776
|
+
children: t.category
|
|
3777
|
+
}), t.seats_left && /* @__PURE__ */ m("span", {
|
|
3778
|
+
className: `text-2xs font-semibold px-2 py-0.5 rounded-full border flex items-center gap-1 ${z ? "bg-zinc-800 text-zinc-400 border-zinc-700" : "bg-gray-100 text-gray-600 border-gray-200"}`,
|
|
3779
|
+
children: [/* @__PURE__ */ p(H, { size: 10 }), /* @__PURE__ */ p("span", { children: t.seats_left })]
|
|
3780
|
+
})]
|
|
3781
|
+
}),
|
|
3782
|
+
/* @__PURE__ */ p("h3", {
|
|
3783
|
+
className: `text-lg sm:text-xl font-bold leading-snug group-hover:text-fuchsia-600 transition-colors ${z ? "text-white" : "text-gray-900"}`,
|
|
3784
|
+
children: t.type || t.name
|
|
3785
|
+
}),
|
|
3786
|
+
i && /* @__PURE__ */ m("div", {
|
|
3787
|
+
className: "mt-3",
|
|
3788
|
+
children: [/* @__PURE__ */ p("div", {
|
|
3789
|
+
className: "flex items-baseline gap-1.5",
|
|
3790
|
+
children: /* @__PURE__ */ p("span", {
|
|
3791
|
+
className: "text-2xl sm:text-3xl font-black tracking-tight",
|
|
3792
|
+
style: { color: B },
|
|
3793
|
+
children: a ? "Free" : [t.currency, Number(t.price).toLocaleString()].filter(Boolean).join(" ")
|
|
3794
|
+
})
|
|
3795
|
+
}), t.tax_info && /* @__PURE__ */ p("p", {
|
|
3796
|
+
className: "text-2xs text-gray-500 dark:text-zinc-400 mt-0.5 font-medium",
|
|
3797
|
+
children: t.tax_info
|
|
3798
|
+
})]
|
|
3799
|
+
}),
|
|
3800
|
+
t.description && /* @__PURE__ */ p("p", {
|
|
3801
|
+
className: `text-xs mt-3 leading-relaxed ${z ? "text-zinc-300" : "text-gray-600"}`,
|
|
3802
|
+
children: t.description
|
|
3803
|
+
}),
|
|
3804
|
+
o.length > 0 && /* @__PURE__ */ m("div", {
|
|
3805
|
+
className: "mt-4 space-y-2",
|
|
3806
|
+
children: [/* @__PURE__ */ p("p", {
|
|
3807
|
+
className: "text-2xs font-bold uppercase tracking-wider text-gray-400 dark:text-zinc-500",
|
|
3808
|
+
children: "What's Included:"
|
|
3809
|
+
}), o.map((e, t) => /* @__PURE__ */ m("div", {
|
|
3810
|
+
className: "flex items-start gap-2 text-xs",
|
|
3811
|
+
children: [/* @__PURE__ */ p(le, {
|
|
3812
|
+
size: 13,
|
|
3813
|
+
className: "shrink-0 mt-0.5",
|
|
3814
|
+
style: { color: B }
|
|
3815
|
+
}), /* @__PURE__ */ p("span", {
|
|
3816
|
+
className: z ? "text-zinc-300" : "text-gray-700",
|
|
3817
|
+
children: e
|
|
3818
|
+
})]
|
|
3819
|
+
}, t))]
|
|
3820
|
+
})
|
|
3821
|
+
] }), /* @__PURE__ */ m("div", {
|
|
3822
|
+
className: "mt-6 flex items-center justify-between gap-3",
|
|
3823
|
+
children: [/* @__PURE__ */ m("span", {
|
|
3824
|
+
className: "text-2xs font-medium text-gray-500 dark:text-zinc-400",
|
|
3825
|
+
children: [
|
|
3826
|
+
"📋 ",
|
|
3827
|
+
r,
|
|
3828
|
+
" fields to fill"
|
|
3829
|
+
]
|
|
3830
|
+
}), /* @__PURE__ */ m("button", {
|
|
3831
|
+
type: "button",
|
|
3832
|
+
className: "inline-flex items-center gap-1.5 text-xs font-bold px-3.5 py-2 rounded-xl text-white shadow-sm transition-all group-hover:shadow-md group-hover:scale-105 cursor-pointer",
|
|
3833
|
+
style: { backgroundColor: B },
|
|
3834
|
+
children: [/* @__PURE__ */ p("span", { children: "Select Form" }), /* @__PURE__ */ p(re, {
|
|
3835
|
+
size: 13,
|
|
3836
|
+
className: "transition-transform group-hover:translate-x-0.5"
|
|
3837
|
+
})]
|
|
3838
|
+
})]
|
|
3839
|
+
})]
|
|
3840
|
+
}, t.id);
|
|
3841
|
+
})
|
|
3842
|
+
});
|
|
3843
|
+
})()]
|
|
3844
|
+
})
|
|
2668
3845
|
}) : /* @__PURE__ */ p("div", {
|
|
2669
|
-
className: "flex-1 overflow-hidden
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
3846
|
+
className: `flex flex-col ${Z ? "w-full flex-1" : "flex-1 overflow-hidden min-h-0"}`,
|
|
3847
|
+
style: Z ? void 0 : { overflow: "clip" },
|
|
3848
|
+
onScroll: Z ? void 0 : (e) => {
|
|
3849
|
+
e.currentTarget.scrollTop !== 0 && (e.currentTarget.scrollTop = 0), e.currentTarget.scrollLeft !== 0 && (e.currentTarget.scrollLeft = 0);
|
|
3850
|
+
},
|
|
3851
|
+
children: /* @__PURE__ */ p(Xe, {
|
|
3852
|
+
apiClient: G,
|
|
3853
|
+
storage: K,
|
|
3854
|
+
logger: W,
|
|
3855
|
+
primaryColor: B,
|
|
3856
|
+
isDark: z,
|
|
3857
|
+
backgroundImage: e.backgroundImage || e.theme?.backgroundImage,
|
|
3858
|
+
isWidgetPage: Z,
|
|
2676
3859
|
onEvent: e.onEvent,
|
|
2677
3860
|
onError: e.onError
|
|
2678
3861
|
})
|
|
2679
3862
|
})
|
|
2680
3863
|
]
|
|
2681
|
-
})
|
|
3864
|
+
})]
|
|
2682
3865
|
});
|
|
2683
|
-
}, we = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-500:oklch(72.3% .219 149.579);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-blue-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-950:oklch(28.2% .091 267.935);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-900:oklch(21% .006 285.885);--color-zinc-950:oklch(14.1% .005 285.823);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-md:28rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.inset-y-0{inset-block:0}.-top-1\\.5{top:calc(var(--spacing) * -1.5)}.top-1\\/2{top:50%}.top-4{top:calc(var(--spacing) * 4)}.top-5{top:calc(var(--spacing) * 5)}.right-0{right:0}.right-4{right:calc(var(--spacing) * 4)}.right-5{right:calc(var(--spacing) * 5)}.bottom-0{bottom:0}.bottom-5{bottom:calc(var(--spacing) * 5)}.-left-1\\.5{left:calc(var(--spacing) * -1.5)}.left-0{left:0}.left-2\\.5{left:calc(var(--spacing) * 2.5)}.left-5{left:calc(var(--spacing) * 5)}.z-10{z-index:10}.z-50{z-index:50}.z-\\[9999\\]{z-index:9999}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-mx-1\\.5{margin-inline:calc(var(--spacing) * -1.5)}.mx-1{margin-inline:var(--spacing)}.mx-auto{margin-inline:auto}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mr-3{margin-right:calc(var(--spacing) * 3)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.ml-2{margin-left:calc(var(--spacing) * 2)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-\\[650px\\]{height:650px}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-4{width:calc(var(--spacing) * 4)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-full{width:100%}.max-w-6xl{max-width:var(--container-6xl)}.max-w-md{max-width:var(--container-md)}.max-w-xs{max-width:var(--container-xs)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:0}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-900\\/50{border-color:#7b330680}@supports (color:color-mix(in lab, red, red)){.border-amber-900\\/50{border-color:color-mix(in oklab, var(--color-amber-900) 50%, transparent)}}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-800{border-color:var(--color-blue-800)}.border-blue-800\\/80{border-color:#193cb8cc}@supports (color:color-mix(in lab, red, red)){.border-blue-800\\/80{border-color:color-mix(in oklab, var(--color-blue-800) 80%, transparent)}}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-800\\/80{border-color:#005f46cc}@supports (color:color-mix(in lab, red, red)){.border-emerald-800\\/80{border-color:color-mix(in oklab, var(--color-emerald-800) 80%, transparent)}}.border-emerald-900{border-color:var(--color-emerald-900)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-900{border-color:var(--color-gray-900)}.border-green-200{border-color:var(--color-green-200)}.border-purple-200{border-color:var(--color-purple-200)}.border-purple-600{border-color:var(--color-purple-600)}.border-red-200{border-color:var(--color-red-200)}.border-red-900{border-color:var(--color-red-900)}.border-red-900\\/50{border-color:#82181a80}@supports (color:color-mix(in lab, red, red)){.border-red-900\\/50{border-color:color-mix(in oklab, var(--color-red-900) 50%, transparent)}}.border-red-900\\/60{border-color:#82181a99}@supports (color:color-mix(in lab, red, red)){.border-red-900\\/60{border-color:color-mix(in oklab, var(--color-red-900) 60%, transparent)}}.border-slate-200{border-color:var(--color-slate-200)}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-zinc-700{border-color:var(--color-zinc-700)}.border-zinc-800{border-color:var(--color-zinc-800)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-950\\/60{background-color:#46190199}@supports (color:color-mix(in lab, red, red)){.bg-amber-950\\/60{background-color:color-mix(in oklab, var(--color-amber-950) 60%, transparent)}}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-50\\/40{background-color:#eff6ff66}@supports (color:color-mix(in lab, red, red)){.bg-blue-50\\/40{background-color:color-mix(in oklab, var(--color-blue-50) 40%, transparent)}}.bg-blue-600{background-color:var(--color-blue-600)}.bg-blue-950\\/40{background-color:#16245666}@supports (color:color-mix(in lab, red, red)){.bg-blue-950\\/40{background-color:color-mix(in oklab, var(--color-blue-950) 40%, transparent)}}.bg-blue-950\\/50{background-color:#16245680}@supports (color:color-mix(in lab, red, red)){.bg-blue-950\\/50{background-color:color-mix(in oklab, var(--color-blue-950) 50%, transparent)}}.bg-blue-950\\/60{background-color:#16245699}@supports (color:color-mix(in lab, red, red)){.bg-blue-950\\/60{background-color:color-mix(in oklab, var(--color-blue-950) 60%, transparent)}}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-950\\/60{background-color:#002c2299}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/60{background-color:color-mix(in oklab, var(--color-emerald-950) 60%, transparent)}}.bg-emerald-950\\/80{background-color:#002c22cc}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/80{background-color:color-mix(in oklab, var(--color-emerald-950) 80%, transparent)}}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-600{background-color:var(--color-purple-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-600{background-color:var(--color-red-600)}.bg-red-950\\/40{background-color:#46080966}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/40{background-color:color-mix(in oklab, var(--color-red-950) 40%, transparent)}}.bg-red-950\\/50{background-color:#46080980}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/50{background-color:color-mix(in oklab, var(--color-red-950) 50%, transparent)}}.bg-red-950\\/60{background-color:#46080999}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/60{background-color:color-mix(in oklab, var(--color-red-950) 60%, transparent)}}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-white{background-color:var(--color-white)}.bg-zinc-800{background-color:var(--color-zinc-800)}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-zinc-900\\/60{background-color:#18181b99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/60{background-color:color-mix(in oklab, var(--color-zinc-900) 60%, transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.bg-zinc-950\\/60{background-color:#09090b99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-950\\/60{background-color:color-mix(in oklab, var(--color-zinc-950) 60%, transparent)}}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-12{padding:calc(var(--spacing) * 12)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\\.5{padding-block:calc(var(--spacing) * 3.5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-10{padding-block:calc(var(--spacing) * 10)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-amber-400{color:var(--color-amber-400)}.text-amber-700{color:var(--color-amber-700)}.text-blue-300{color:var(--color-blue-300)}.text-blue-400{color:var(--color-blue-400)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-800{color:var(--color-emerald-800)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-700{color:var(--color-green-700)}.text-green-800{color:var(--color-green-800)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-white{color:var(--color-white)}.text-zinc-200{color:var(--color-zinc-200)}.text-zinc-300{color:var(--color-zinc-300)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.placeholder-zinc-500::placeholder{color:var(--color-zinc-500)}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.contrast-200{--tw-contrast:contrast(200%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\\:pointer-events-auto:is(:where(.group):hover *){pointer-events:auto}.group-hover\\:scale-100:is(:where(.group):hover *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:border-solid:hover{--tw-border-style:solid;border-style:solid}.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:border-zinc-500:hover{border-color:var(--color-zinc-500)}.hover\\:border-zinc-700:hover{border-color:var(--color-zinc-700)}.hover\\:bg-black:hover{background-color:var(--color-black)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\\:bg-red-900\\/50:hover{background-color:#82181a80}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-red-900\\/50:hover{background-color:color-mix(in oklab, var(--color-red-900) 50%, transparent)}}.hover\\:bg-zinc-800:hover{background-color:var(--color-zinc-800)}.hover\\:text-blue-300:hover{color:var(--color-blue-300)}.hover\\:text-gray-900:hover{color:var(--color-gray-900)}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-90:hover{opacity:.9}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:cursor-grabbing:active{cursor:grabbing}.disabled\\:opacity-50:disabled{opacity:.5}@media (width>=48rem){.md\\:inline-block{display:inline-block}.md\\:w-1\\/2{width:50%}.md\\:pr-3{padding-right:calc(var(--spacing) * 3)}}@media (width>=64rem){.lg\\:w-1\\/3{width:33.3333%}.lg\\:w-2\\/3{width:66.6667%}.lg\\:flex-row{flex-direction:row}}@media (prefers-color-scheme:dark){.dark\\:border-zinc-800{border-color:var(--color-zinc-800)}.dark\\:bg-red-950\\/40{background-color:#46080966}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-red-950\\/40{background-color:color-mix(in oklab, var(--color-red-950) 40%, transparent)}}.dark\\:text-emerald-400{color:var(--color-emerald-400)}.dark\\:text-red-400{color:var(--color-red-400)}}}:host{all:initial;font-family:inherit}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}", Te = ({ children: e, useShadow: t = !0 }) => {
|
|
3866
|
+
}, tt = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-blue-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-400:oklch(67.3% .182 276.935);--color-fuchsia-100:oklch(95.2% .037 318.852);--color-fuchsia-200:oklch(90.3% .076 319.62);--color-fuchsia-300:oklch(83.3% .145 321.434);--color-fuchsia-500:oklch(66.7% .295 322.15);--color-fuchsia-600:oklch(59.1% .293 322.896);--color-fuchsia-700:oklch(51.8% .253 323.949);--color-fuchsia-800:oklch(45.2% .211 324.591);--color-fuchsia-950:oklch(29.3% .136 325.661);--color-pink-50:oklch(97.1% .014 343.198);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-200:oklch(89.9% .061 343.231);--color-pink-300:oklch(82.3% .12 346.018);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-900:oklch(21% .006 285.885);--color-zinc-950:oklch(14.1% .005 285.823);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-3xl:48rem;--container-4xl:56rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-xl:24px;--blur-3xl:64px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{inset-block:0}.-top-1\\.5{top:calc(var(--spacing) * -1.5)}.-top-16{top:calc(var(--spacing) * -16)}.top-0{top:0}.top-1\\/2{top:50%}.top-1\\/3{top:33.3333%}.top-4{top:calc(var(--spacing) * 4)}.top-5{top:calc(var(--spacing) * 5)}.top-18{top:calc(var(--spacing) * 18)}.-right-16{right:calc(var(--spacing) * -16)}.right-0{right:0}.right-1\\/4{right:25%}.right-2\\.5{right:calc(var(--spacing) * 2.5)}.right-4{right:calc(var(--spacing) * 4)}.right-5{right:calc(var(--spacing) * 5)}.-bottom-10{bottom:calc(var(--spacing) * -10)}.bottom-0{bottom:0}.bottom-5{bottom:calc(var(--spacing) * 5)}.-left-1\\.5{left:calc(var(--spacing) * -1.5)}.-left-20{left:calc(var(--spacing) * -20)}.left-0{left:0}.left-2\\.5{left:calc(var(--spacing) * 2.5)}.left-3{left:calc(var(--spacing) * 3)}.left-5{left:calc(var(--spacing) * 5)}.z-0{z-index:0}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1\\]{z-index:1}.z-\\[9999\\]{z-index:9999}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-mx-1\\.5{margin-inline:calc(var(--spacing) * -1.5)}.mx-auto{margin-inline:auto}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mr-3{margin-right:calc(var(--spacing) * 3)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.ml-1{margin-left:var(--spacing)}.ml-1\\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-64{height:calc(var(--spacing) * 64)}.h-72{height:calc(var(--spacing) * 72)}.h-80{height:calc(var(--spacing) * 80)}.h-\\[2\\.5px\\]{height:2.5px}.h-\\[3px\\]{height:3px}.h-full{height:100%}.min-h-0{min-height:0}.min-h-screen{min-height:100vh}.w-2\\/5{width:40%}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-auto{width:auto}.w-full{width:100%}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\\[65\\%\\]{max-width:65%}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[220px\\]{max-width:220px}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:0}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-\\[\\#f0e2ed\\]{border-color:#f0e2ed}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-900\\/50{border-color:#7b330680}@supports (color:color-mix(in lab, red, red)){.border-amber-900\\/50{border-color:color-mix(in oklab, var(--color-amber-900) 50%, transparent)}}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-800{border-color:var(--color-blue-800)}.border-blue-800\\/80{border-color:#193cb8cc}@supports (color:color-mix(in lab, red, red)){.border-blue-800\\/80{border-color:color-mix(in oklab, var(--color-blue-800) 80%, transparent)}}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-700{border-color:var(--color-emerald-700)}.border-emerald-800\\/80{border-color:#005f46cc}@supports (color:color-mix(in lab, red, red)){.border-emerald-800\\/80{border-color:color-mix(in oklab, var(--color-emerald-800) 80%, transparent)}}.border-emerald-900{border-color:var(--color-emerald-900)}.border-fuchsia-200{border-color:var(--color-fuchsia-200)}.border-fuchsia-500{border-color:var(--color-fuchsia-500)}.border-fuchsia-600{border-color:var(--color-fuchsia-600)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-200\\/80{border-color:#e5e7ebcc}@supports (color:color-mix(in lab, red, red)){.border-gray-200\\/80{border-color:color-mix(in oklab, var(--color-gray-200) 80%, transparent)}}.border-gray-200\\/90{border-color:#e5e7ebe6}@supports (color:color-mix(in lab, red, red)){.border-gray-200\\/90{border-color:color-mix(in oklab, var(--color-gray-200) 90%, transparent)}}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-900{border-color:var(--color-gray-900)}.border-green-200{border-color:var(--color-green-200)}.border-pink-100{border-color:var(--color-pink-100)}.border-pink-100\\/80{border-color:#fce7f3cc}@supports (color:color-mix(in lab, red, red)){.border-pink-100\\/80{border-color:color-mix(in oklab, var(--color-pink-100) 80%, transparent)}}.border-pink-100\\/90{border-color:#fce7f3e6}@supports (color:color-mix(in lab, red, red)){.border-pink-100\\/90{border-color:color-mix(in oklab, var(--color-pink-100) 90%, transparent)}}.border-pink-200\\/60{border-color:#fccee899}@supports (color:color-mix(in lab, red, red)){.border-pink-200\\/60{border-color:color-mix(in oklab, var(--color-pink-200) 60%, transparent)}}.border-pink-200\\/80{border-color:#fccee8cc}@supports (color:color-mix(in lab, red, red)){.border-pink-200\\/80{border-color:color-mix(in oklab, var(--color-pink-200) 80%, transparent)}}.border-red-200{border-color:var(--color-red-200)}.border-red-700{border-color:var(--color-red-700)}.border-red-900{border-color:var(--color-red-900)}.border-red-900\\/40{border-color:#82181a66}@supports (color:color-mix(in lab, red, red)){.border-red-900\\/40{border-color:color-mix(in oklab, var(--color-red-900) 40%, transparent)}}.border-red-900\\/60{border-color:#82181a99}@supports (color:color-mix(in lab, red, red)){.border-red-900\\/60{border-color:color-mix(in oklab, var(--color-red-900) 60%, transparent)}}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-white\\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.border-white\\/10{border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.border-white\\/12{border-color:#ffffff1f}@supports (color:color-mix(in lab, red, red)){.border-white\\/12{border-color:color-mix(in oklab, var(--color-white) 12%, transparent)}}.border-white\\/30{border-color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.border-white\\/30{border-color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.border-white\\/60{border-color:#fff9}@supports (color:color-mix(in lab, red, red)){.border-white\\/60{border-color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.border-white\\/70{border-color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.border-white\\/70{border-color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.border-zinc-700{border-color:var(--color-zinc-700)}.border-zinc-800{border-color:var(--color-zinc-800)}.bg-\\[\\#faf4f8\\]{background-color:#faf4f8}.bg-\\[\\#fbf7f9\\]{background-color:#fbf7f9}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-50\\/80{background-color:#fffbebcc}@supports (color:color-mix(in lab, red, red)){.bg-amber-50\\/80{background-color:color-mix(in oklab, var(--color-amber-50) 80%, transparent)}}.bg-amber-950\\/60{background-color:#46190199}@supports (color:color-mix(in lab, red, red)){.bg-amber-950\\/60{background-color:color-mix(in oklab, var(--color-amber-950) 60%, transparent)}}.bg-black{background-color:var(--color-black)}.bg-black\\/35{background-color:#00000059}@supports (color:color-mix(in lab, red, red)){.bg-black\\/35{background-color:color-mix(in oklab, var(--color-black) 35%, transparent)}}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab, red, red)){.bg-black\\/40{background-color:color-mix(in oklab, var(--color-black) 40%, transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-50\\/70{background-color:#eff6ffb3}@supports (color:color-mix(in lab, red, red)){.bg-blue-50\\/70{background-color:color-mix(in oklab, var(--color-blue-50) 70%, transparent)}}.bg-blue-50\\/80{background-color:#eff6ffcc}@supports (color:color-mix(in lab, red, red)){.bg-blue-50\\/80{background-color:color-mix(in oklab, var(--color-blue-50) 80%, transparent)}}.bg-blue-600{background-color:var(--color-blue-600)}.bg-blue-950\\/50{background-color:#16245680}@supports (color:color-mix(in lab, red, red)){.bg-blue-950\\/50{background-color:color-mix(in oklab, var(--color-blue-950) 50%, transparent)}}.bg-blue-950\\/60{background-color:#16245699}@supports (color:color-mix(in lab, red, red)){.bg-blue-950\\/60{background-color:color-mix(in oklab, var(--color-blue-950) 60%, transparent)}}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-950\\/60{background-color:#002c2299}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/60{background-color:color-mix(in oklab, var(--color-emerald-950) 60%, transparent)}}.bg-emerald-950\\/80{background-color:#002c22cc}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/80{background-color:color-mix(in oklab, var(--color-emerald-950) 80%, transparent)}}.bg-emerald-950\\/95{background-color:#002c22f2}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/95{background-color:color-mix(in oklab, var(--color-emerald-950) 95%, transparent)}}.bg-fuchsia-100{background-color:var(--color-fuchsia-100)}.bg-fuchsia-600{background-color:var(--color-fuchsia-600)}.bg-gray-50\\/80{background-color:#f9fafbcc}@supports (color:color-mix(in lab, red, red)){.bg-gray-50\\/80{background-color:color-mix(in oklab, var(--color-gray-50) 80%, transparent)}}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-100\\/70{background-color:#f3f4f6b3}@supports (color:color-mix(in lab, red, red)){.bg-gray-100\\/70{background-color:color-mix(in oklab, var(--color-gray-100) 70%, transparent)}}.bg-gray-100\\/80{background-color:#f3f4f6cc}@supports (color:color-mix(in lab, red, red)){.bg-gray-100\\/80{background-color:color-mix(in oklab, var(--color-gray-100) 80%, transparent)}}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-50\\/80{background-color:#f0fdf4cc}@supports (color:color-mix(in lab, red, red)){.bg-green-50\\/80{background-color:color-mix(in oklab, var(--color-green-50) 80%, transparent)}}.bg-green-100\\/80{background-color:#dcfce7cc}@supports (color:color-mix(in lab, red, red)){.bg-green-100\\/80{background-color:color-mix(in oklab, var(--color-green-100) 80%, transparent)}}.bg-pink-50{background-color:var(--color-pink-50)}.bg-pink-50\\/70{background-color:#fdf2f8b3}@supports (color:color-mix(in lab, red, red)){.bg-pink-50\\/70{background-color:color-mix(in oklab, var(--color-pink-50) 70%, transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-50\\/70{background-color:#fef2f2b3}@supports (color:color-mix(in lab, red, red)){.bg-red-50\\/70{background-color:color-mix(in oklab, var(--color-red-50) 70%, transparent)}}.bg-red-50\\/80{background-color:#fef2f2cc}@supports (color:color-mix(in lab, red, red)){.bg-red-50\\/80{background-color:color-mix(in oklab, var(--color-red-50) 80%, transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-red-950\\/40{background-color:#46080966}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/40{background-color:color-mix(in oklab, var(--color-red-950) 40%, transparent)}}.bg-red-950\\/50{background-color:#46080980}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/50{background-color:color-mix(in oklab, var(--color-red-950) 50%, transparent)}}.bg-red-950\\/60{background-color:#46080999}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/60{background-color:color-mix(in oklab, var(--color-red-950) 60%, transparent)}}.bg-red-950\\/95{background-color:#460809f2}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/95{background-color:color-mix(in oklab, var(--color-red-950) 95%, transparent)}}.bg-slate-50\\/80{background-color:#f8fafccc}@supports (color:color-mix(in lab, red, red)){.bg-slate-50\\/80{background-color:color-mix(in oklab, var(--color-slate-50) 80%, transparent)}}.bg-slate-100\\/90{background-color:#f1f5f9e6}@supports (color:color-mix(in lab, red, red)){.bg-slate-100\\/90{background-color:color-mix(in oklab, var(--color-slate-100) 90%, transparent)}}.bg-slate-900{background-color:var(--color-slate-900)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\\/10{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.bg-white\\/20{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.bg-white\\/28{background-color:#ffffff47}@supports (color:color-mix(in lab, red, red)){.bg-white\\/28{background-color:color-mix(in oklab, var(--color-white) 28%, transparent)}}.bg-white\\/40{background-color:#fff6}@supports (color:color-mix(in lab, red, red)){.bg-white\\/40{background-color:color-mix(in oklab, var(--color-white) 40%, transparent)}}.bg-white\\/65{background-color:#ffffffa6}@supports (color:color-mix(in lab, red, red)){.bg-white\\/65{background-color:color-mix(in oklab, var(--color-white) 65%, transparent)}}.bg-white\\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.bg-white\\/70{background-color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.bg-white\\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.bg-white\\/90{background-color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.bg-white\\/95{background-color:#fffffff2}@supports (color:color-mix(in lab, red, red)){.bg-white\\/95{background-color:color-mix(in oklab, var(--color-white) 95%, transparent)}}.bg-zinc-800{background-color:var(--color-zinc-800)}.bg-zinc-800\\/60{background-color:#27272a99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-800\\/60{background-color:color-mix(in oklab, var(--color-zinc-800) 60%, transparent)}}.bg-zinc-800\\/80{background-color:#27272acc}@supports (color:color-mix(in lab, red, red)){.bg-zinc-800\\/80{background-color:color-mix(in oklab, var(--color-zinc-800) 80%, transparent)}}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-zinc-900\\/40{background-color:#18181b66}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/40{background-color:color-mix(in oklab, var(--color-zinc-900) 40%, transparent)}}.bg-zinc-900\\/60{background-color:#18181b99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/60{background-color:color-mix(in oklab, var(--color-zinc-900) 60%, transparent)}}.bg-zinc-900\\/65{background-color:#18181ba6}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/65{background-color:color-mix(in oklab, var(--color-zinc-900) 65%, transparent)}}.bg-zinc-900\\/90{background-color:#18181be6}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/90{background-color:color-mix(in oklab, var(--color-zinc-900) 90%, transparent)}}.bg-zinc-900\\/95{background-color:#18181bf2}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/95{background-color:color-mix(in oklab, var(--color-zinc-900) 95%, transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.bg-zinc-950\\/60{background-color:#09090b99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-950\\/60{background-color:color-mix(in oklab, var(--color-zinc-950) 60%, transparent)}}.bg-cover{background-size:cover}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.object-cover{object-fit:cover}.object-right{object-position:right}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pr-2\\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-3\\.5{padding-right:calc(var(--spacing) * 3.5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3\\.5{padding-left:calc(var(--spacing) * 3.5)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-10{padding-left:calc(var(--spacing) * 10)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.text-\\[\\#86198f\\]{color:#86198f}.text-amber-300{color:var(--color-amber-300)}.text-amber-400{color:var(--color-amber-400)}.text-amber-500{color:var(--color-amber-500)}.text-amber-700{color:var(--color-amber-700)}.text-blue-300{color:var(--color-blue-300)}.text-blue-400{color:var(--color-blue-400)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-800{color:var(--color-emerald-800)}.text-fuchsia-600{color:var(--color-fuchsia-600)}.text-fuchsia-700{color:var(--color-fuchsia-700)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-700{color:var(--color-green-700)}.text-green-800{color:var(--color-green-800)}.text-indigo-400{color:var(--color-indigo-400)}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.text-white\\/60{color:#fff9}@supports (color:color-mix(in lab, red, red)){.text-white\\/60{color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.text-zinc-100{color:var(--color-zinc-100)}.text-zinc-200{color:var(--color-zinc-200)}.text-zinc-300{color:var(--color-zinc-300)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.placeholder-\\[\\#a89bb0\\]::placeholder{color:#a89bb0}.placeholder-gray-400::placeholder{color:var(--color-gray-400)}.placeholder-gray-500::placeholder{color:var(--color-gray-500)}.placeholder-zinc-400::placeholder{color:var(--color-zinc-400)}.placeholder-zinc-500::placeholder{color:var(--color-zinc-500)}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.opacity-100{opacity:1}.opacity-\\[0\\.03\\]{opacity:.03}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_2px_12px_rgba\\(217\\,70\\,239\\,0\\.03\\)\\]{--tw-shadow:0 2px 12px var(--tw-shadow-color,#d946ef08);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_2px_12px_rgba\\(217\\,70\\,239\\,0\\.04\\)\\]{--tw-shadow:0 2px 12px var(--tw-shadow-color,#d946ef0a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_2px_16px_rgba\\(217\\,70\\,239\\,0\\.04\\)\\]{--tw-shadow:0 2px 16px var(--tw-shadow-color,#d946ef0a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_4px_20px_rgba\\(217\\,70\\,239\\,0\\.05\\)\\]{--tw-shadow:0 4px 20px var(--tw-shadow-color,#d946ef0d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.blur-3xl{--tw-blur:blur(var(--blur-3xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.contrast-200{--tw-contrast:contrast(200%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\\:pointer-events-auto:is(:where(.group):hover *){pointer-events:auto}.group-hover\\:translate-x-0\\.5:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-hover\\:scale-100:is(:where(.group):hover *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\\:text-fuchsia-600:is(:where(.group):hover *){color:var(--color-fuchsia-600)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\\:shadow-md:is(:where(.group):hover *){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:-translate-y-1:hover{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:border-pink-200:hover{border-color:var(--color-pink-200)}.hover\\:border-pink-300:hover{border-color:var(--color-pink-300)}.hover\\:border-zinc-600:hover{border-color:var(--color-zinc-600)}.hover\\:border-zinc-700:hover{border-color:var(--color-zinc-700)}.hover\\:bg-black:hover{background-color:var(--color-black)}.hover\\:bg-black\\/55:hover{background-color:#0000008c}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-black\\/55:hover{background-color:color-mix(in oklab, var(--color-black) 55%, transparent)}}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-pink-100\\/80:hover{background-color:#fce7f3cc}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-pink-100\\/80:hover{background-color:color-mix(in oklab, var(--color-pink-100) 80%, transparent)}}.hover\\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\\:bg-red-900\\/50:hover{background-color:#82181a80}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-red-900\\/50:hover{background-color:color-mix(in oklab, var(--color-red-900) 50%, transparent)}}.hover\\:bg-red-900\\/60:hover{background-color:#82181a99}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-red-900\\/60:hover{background-color:color-mix(in oklab, var(--color-red-900) 60%, transparent)}}.hover\\:bg-slate-100\\/50:hover{background-color:#f1f5f980}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-slate-100\\/50:hover{background-color:color-mix(in oklab, var(--color-slate-100) 50%, transparent)}}.hover\\:bg-white\\/35:hover{background-color:#ffffff59}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/35:hover{background-color:color-mix(in oklab, var(--color-white) 35%, transparent)}}.hover\\:bg-white\\/50:hover{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/50:hover{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.hover\\:bg-white\\/65:hover{background-color:#ffffffa6}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/65:hover{background-color:color-mix(in oklab, var(--color-white) 65%, transparent)}}.hover\\:text-blue-300:hover{color:var(--color-blue-300)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-gray-900:hover{color:var(--color-gray-900)}.hover\\:text-red-500:hover{color:var(--color-red-500)}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-90:hover{opacity:.9}.hover\\:opacity-95:hover{opacity:.95}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-\\[0_8px_30px_rgba\\(217\\,70\\,239\\,0\\.12\\)\\]:hover{--tw-shadow:0 8px 30px var(--tw-shadow-color,#d946ef1f);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:shadow-sm:hover{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus\\:border-gray-400:focus{border-color:var(--color-gray-400)}.focus\\:border-zinc-500:focus{border-color:var(--color-zinc-500)}.focus\\:bg-white:focus{background-color:var(--color-white)}.focus\\:bg-zinc-900:focus{background-color:var(--color-zinc-900)}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-fuchsia-500\\/20:focus{--tw-ring-color:#e12afb33}@supports (color:color-mix(in lab, red, red)){.focus\\:ring-fuchsia-500\\/20:focus{--tw-ring-color:color-mix(in oklab, var(--color-fuchsia-500) 20%, transparent)}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:scale-\\[0\\.99\\]:active{scale:.99}.active\\:cursor-grabbing:active{cursor:grabbing}.disabled\\:opacity-50:disabled{opacity:.5}@media (width>=40rem){.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:p-4{padding:calc(var(--spacing) * 4)}.sm\\:p-5{padding:calc(var(--spacing) * 5)}.sm\\:p-6{padding:calc(var(--spacing) * 6)}.sm\\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\\:px-8{padding-inline:calc(var(--spacing) * 8)}.sm\\:py-5{padding-block:calc(var(--spacing) * 5)}.sm\\:py-8{padding-block:calc(var(--spacing) * 8)}.sm\\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.sm\\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.sm\\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sm\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media (width>=48rem){.md\\:block{display:block}.md\\:w-1\\/2{width:50%}.md\\:w-72{width:calc(var(--spacing) * 72)}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=64rem){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (prefers-color-scheme:dark){.dark\\:border-fuchsia-800{border-color:var(--color-fuchsia-800)}.dark\\:border-zinc-700{border-color:var(--color-zinc-700)}.dark\\:border-zinc-800{border-color:var(--color-zinc-800)}.dark\\:bg-fuchsia-950\\/80{background-color:#4b004fcc}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-fuchsia-950\\/80{background-color:color-mix(in oklab, var(--color-fuchsia-950) 80%, transparent)}}.dark\\:bg-white{background-color:var(--color-white)}.dark\\:bg-zinc-800{background-color:var(--color-zinc-800)}.dark\\:bg-zinc-900{background-color:var(--color-zinc-900)}.dark\\:text-fuchsia-300{color:var(--color-fuchsia-300)}.dark\\:text-gray-900{color:var(--color-gray-900)}.dark\\:text-white{color:var(--color-white)}.dark\\:text-zinc-200{color:var(--color-zinc-200)}.dark\\:text-zinc-300{color:var(--color-zinc-300)}.dark\\:text-zinc-400{color:var(--color-zinc-400)}.dark\\:text-zinc-500{color:var(--color-zinc-500)}@media (hover:hover){.dark\\:hover\\:bg-zinc-800:hover{background-color:var(--color-zinc-800)}.dark\\:hover\\:bg-zinc-900\\/50:hover{background-color:#18181b80}@supports (color:color-mix(in lab, red, red)){.dark\\:hover\\:bg-zinc-900\\/50:hover{background-color:color-mix(in oklab, var(--color-zinc-900) 50%, transparent)}}.dark\\:hover\\:text-white:hover{color:var(--color-white)}}}}:host{all:initial;font-family:inherit}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}", nt = ({ children: e, useShadow: t = !0 }) => {
|
|
2684
3867
|
let n = u(null), [r, i] = d(null);
|
|
2685
3868
|
return c(() => {
|
|
2686
3869
|
if (typeof document > "u" || !n.current || !t) return;
|
|
2687
3870
|
let e = n.current.shadowRoot, r = null;
|
|
2688
3871
|
if (e) r = e.querySelector(".voxket-widget-root");
|
|
2689
3872
|
else {
|
|
2690
|
-
n.current.setAttribute("data-voxket-shadow-host", ""), n.current.style.cssText = "width: 100%; height: 100%; display: block; position: relative;", e = n.current.attachShadow({ mode: "open" });
|
|
3873
|
+
n.current.setAttribute("data-voxket-shadow-host", ""), n.current.style.cssText = "width: 100%; min-height: 100%; display: block; position: relative;", e = n.current.attachShadow({ mode: "open" });
|
|
2691
3874
|
let t = document.createElement("style");
|
|
2692
3875
|
t.innerText = ":host, *, *::before, *::after, ::backdrop {\n --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate-x: initial;\n --tw-rotate-y: initial; --tw-rotate-z: initial; --tw-skew-x: initial;\n --tw-skew-y: initial; --tw-space-y-reverse: 0; --tw-space-x-reverse: 0;\n --tw-border-style: solid; --tw-shadow: 0 0 #0000;\n --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff;\n }", e.appendChild(t);
|
|
2693
3876
|
let i = document.createElement("style");
|
|
2694
|
-
i.textContent =
|
|
3877
|
+
i.textContent = tt, e.appendChild(i), r = document.createElement("div"), r.className = "voxket-widget-root", r.style.cssText = "\n all: initial;\n box-sizing: border-box !important;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif !important;\n font-size: 14px !important;\n color: #1a1a1a !important; \n position: relative !important;\n width: 100% !important;\n min-height: 100% !important;\n display: block !important;\n background-color: transparent !important;\n ", e.appendChild(r);
|
|
2695
3878
|
}
|
|
2696
3879
|
r && i(r);
|
|
2697
3880
|
}, [t]), t ? /* @__PURE__ */ p("div", {
|
|
@@ -2699,7 +3882,7 @@ var xe = (e) => {
|
|
|
2699
3882
|
className: "w-full h-full",
|
|
2700
3883
|
children: r && e ? h(e, r) : null
|
|
2701
3884
|
}) : /* @__PURE__ */ p(f, { children: e });
|
|
2702
|
-
},
|
|
3885
|
+
}, rt = ({ config: e }) => t.createElement(nt, { useShadow: !0 }, t.createElement(et, { config: e })), it = class {
|
|
2703
3886
|
config;
|
|
2704
3887
|
container = null;
|
|
2705
3888
|
root = null;
|
|
@@ -2708,16 +3891,16 @@ var xe = (e) => {
|
|
|
2708
3891
|
}
|
|
2709
3892
|
mount(n) {
|
|
2710
3893
|
if (this.container = typeof n == "string" ? document.getElementById(n) : n, !this.container) throw Error("EventWidget: Mount container not found.");
|
|
2711
|
-
this.root ||= e(this.container), this.root.render(t.createElement(
|
|
3894
|
+
this.root ||= e(this.container), this.root.render(t.createElement(rt, { config: this.config }));
|
|
2712
3895
|
}
|
|
2713
3896
|
updateConfig(e) {
|
|
2714
3897
|
this.config = {
|
|
2715
3898
|
...this.config,
|
|
2716
3899
|
...e
|
|
2717
|
-
}, this.root && this.root.render(t.createElement(
|
|
3900
|
+
}, this.root && this.root.render(t.createElement(rt, { config: this.config }));
|
|
2718
3901
|
}
|
|
2719
3902
|
setConfig(e) {
|
|
2720
|
-
this.config = e, this.root && this.root.render(t.createElement(
|
|
3903
|
+
this.config = e, this.root && this.root.render(t.createElement(rt, { config: this.config }));
|
|
2721
3904
|
}
|
|
2722
3905
|
unmount() {
|
|
2723
3906
|
if (this.root) {
|
|
@@ -2727,4 +3910,4 @@ var xe = (e) => {
|
|
|
2727
3910
|
}
|
|
2728
3911
|
};
|
|
2729
3912
|
//#endregion
|
|
2730
|
-
export {
|
|
3913
|
+
export { rt as EventWidget, it as EventWidgetClient };
|