@levo-so/studio 0.1.103 → 0.1.105
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/{BillingStep-BA3H9BVu.js → BillingStep-2cKT5Pir.js} +1 -1
- package/{Button-CZycqusY.js → Button-DtPwDEN0.js} +3 -3
- package/{DateTimeWidget-DP_nMhqe.js → DateTimeWidget-DPHIhkAi.js} +1 -1
- package/{EntryCard-CQpKNX7G.js → EntryCard-j4uZb2cE.js} +3 -3
- package/{LoginCard-Cyvm-y_q.js → LoginCard-asvOHIRg.js} +3 -3
- package/{LoginModal-Cyw_XKvz.js → LoginModal-CyvbEK26.js} +2 -2
- package/{MessageCard-C2lNTxFx.js → MessageCard-lrXKEsBP.js} +2 -2
- package/{ModalManager-DHkd0Zdb.js → ModalManager-BcPk4sbK.js} +1 -1
- package/{PendingApprovalCard-C8iZjo06.js → PendingApprovalCard-hYkupl9A.js} +3 -3
- package/{PopupRenderer-C7OHYphU-Ct5T6tWM.js → PopupRenderer-C7OHYphU-IWM6d7gW.js} +2 -2
- package/{RichTextWidget-BqlcssWt.js → RichTextWidget-18XLL8wW.js} +31 -30
- package/{Toolbar-BwxoYWO_.js → Toolbar-Y6JtgPFn.js} +152 -245
- package/{bookingCard-BDyuBC6X.js → bookingCard-BdV2YSkq.js} +2 -2
- package/collection.js +8 -8
- package/{dist-CG-pwDW0.js → dist-CsX9NP5P.js} +2 -2
- package/index.js +191 -186
- package/package.json +41 -55
- package/rolldown-runtime-CAFD8bLK.js +11 -0
- /package/{Beams-DboMUgCv.js → Beams-DEybrmUZ.js} +0 -0
- /package/{Dots-a8xSboDv.js → Dots-CMyy77GM.js} +0 -0
- /package/{Gradient-NacpoDCM.js → Gradient-DBn_zXzI.js} +0 -0
- /package/{Grid-BJQvxnks.js → Grid-kGCr-6by.js} +0 -0
- /package/{LoginForm-_44FtvWg.js → LoginForm-BdsPVHdO.js} +0 -0
- /package/{MessageFooter-59Pziq3i.js → MessageFooter-D-dCrzJH.js} +0 -0
- /package/{PhoneWidget-CxxxDXkz.js → PhoneWidget-BOFhs8Ra.js} +0 -0
- /package/{Popover-DOvRAGzc.js → Popover-O1poOHk2.js} +0 -0
- /package/{Waves-DUuT_IFr.js → Waves-DjLcbiBu.js} +0 -0
- /package/{card-E2LKF9nT.js → card-5ooLmYSr.js} +0 -0
package/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as e, t } from "./inlineRteTheme-Ajq9PNpQ.js";
|
|
3
|
-
import { _ as n, g as r, v as i } from "./PopupRenderer-C7OHYphU-
|
|
3
|
+
import { _ as n, g as r, v as i } from "./PopupRenderer-C7OHYphU-IWM6d7gW.js";
|
|
4
4
|
import { t as a } from "./RteThemeProvider-Cfepkyer.js";
|
|
5
5
|
import { n as o, r as s, t as c } from "./nodeAlignment-DKCIjzlR.js";
|
|
6
|
-
import { _ as l, a as u, b as d, c as f, d as p, f as m, g as h, h as g, i as _, l as v, m as y, n as b, o as x, p as S, r as C, s as w, t as T, u as E, v as D, y as O } from "./Button-
|
|
6
|
+
import { _ as l, a as u, b as d, c as f, d as p, f as m, g as h, h as g, i as _, l as v, m as y, n as b, o as x, p as S, r as C, s as w, t as T, u as E, v as D, y as O } from "./Button-DtPwDEN0.js";
|
|
7
7
|
import { n as k, t as A } from "./AuthProvider-C6bvedwF.js";
|
|
8
|
-
import { n as j, t as ee } from "./ModalManager-
|
|
8
|
+
import { n as j, t as ee } from "./ModalManager-BcPk4sbK.js";
|
|
9
9
|
import { c as M, h as te } from "./widgets-eu5zXTf-.js";
|
|
10
10
|
import { a as ne, i as re, n as ie, o as ae, r as oe, s as se, t as ce } from "./dialog-C8-iHixJ.js";
|
|
11
11
|
import { t as le } from "./useLogin-B2qE8710.js";
|
|
@@ -42,26 +42,24 @@ import { Typography as st } from "@tiptap/extension-typography";
|
|
|
42
42
|
import { Underline as ct } from "@tiptap/extension-underline";
|
|
43
43
|
import { UniqueID as lt } from "@tiptap/extension-unique-id";
|
|
44
44
|
import { Extension as ut, Node as dt, isNodeSelection as ft, mergeAttributes as pt } from "@tiptap/core";
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import { COMMENT_STATUS as Vt, FORUM_POST_KIND as Ht, FORUM_POST_STATUS as Ut, FieldInterfaces as Wt, getLevoError as G } from "@levo-so/core";
|
|
45
|
+
import { Blockquote as mt } from "@tiptap/extension-blockquote";
|
|
46
|
+
import { CodeBlock as ht } from "@tiptap/extension-code-block";
|
|
47
|
+
import { Details as gt, DetailsContent as _t, DetailsSummary as vt } from "@tiptap/extension-details";
|
|
48
|
+
import yt from "@tiptap/extension-horizontal-rule";
|
|
49
|
+
import { TaskItem as bt, TaskList as xt } from "@tiptap/extension-list";
|
|
50
|
+
import { Image as St } from "@tiptap/extension-image";
|
|
51
|
+
import { cellAround as Ct, columnResizing as wt, tableEditing as Tt } from "@tiptap/pm/tables";
|
|
52
|
+
import { TextSelection as Et } from "@tiptap/pm/state";
|
|
53
|
+
import { TableCell as Dt, TableHeader as Ot, TableRow as kt } from "@tiptap/extension-table";
|
|
54
|
+
import { Table as At } from "@tiptap/extension-table/table";
|
|
55
|
+
import { AnimatePresence as jt, LazyMotion as Mt, domAnimation as Nt, motion as Pt } from "motion/react";
|
|
56
|
+
import Ft from "html-react-parser";
|
|
57
|
+
import { formatRgb as It, oklch as Lt, parse as Rt, rgb as zt, wcagContrast as Bt } from "culori";
|
|
58
|
+
import { deepmerge as Vt } from "deepmerge-ts";
|
|
59
|
+
import { COMMENT_STATUS as Ht, FORUM_POST_KIND as Ut, FORUM_POST_STATUS as Wt, FieldInterfaces as Gt, getLevoError as G } from "@levo-so/core";
|
|
61
60
|
import K from "dayjs";
|
|
62
|
-
import { AlertCircle as
|
|
63
|
-
import { Accordion as
|
|
64
|
-
import { Blockquote as Fn } from "@tiptap/extension-blockquote";
|
|
61
|
+
import { AlertCircle as Kt, Archive as qt, ArrowBigDown as Jt, ArrowBigUp as Yt, ArrowLeft as Xt, ArrowRight as Zt, BadgeCheck as Qt, Check as $t, CheckCircle as en, CheckIcon as tn, ChevronDown as nn, ChevronDownIcon as rn, ChevronLeftIcon as an, ChevronRightIcon as on, Clock as sn, Download as cn, Edit as ln, ExternalLink as un, EyeOff as dn, FileText as fn, Flag as pn, Info as mn, Link2 as hn, Loader2 as gn, Lock as _n, LogOut as vn, MessageCircleMore as yn, MoreVertical as bn, Search as xn, SearchX as Sn, Send as Cn, Share2 as wn, Tag as Tn, Trash2 as En, User as Dn, X as On, XIcon as kn } from "lucide-react";
|
|
62
|
+
import { Accordion as An, Avatar as jn, Popover as Mn, Portal as Nn, Tabs as Pn, Tooltip as Fn } from "radix-ui";
|
|
65
63
|
import { Youtube as In } from "@tiptap/extension-youtube";
|
|
66
64
|
import Ln from "embla-carousel-auto-scroll";
|
|
67
65
|
import Rn from "embla-carousel-autoplay";
|
|
@@ -283,7 +281,7 @@ var Zn = dt.create({
|
|
|
283
281
|
attrs: e
|
|
284
282
|
}) };
|
|
285
283
|
}
|
|
286
|
-
}), nr =
|
|
284
|
+
}), nr = ht.configure({ defaultLanguage: null }), rr = "_10e5beq0", ir = ze({
|
|
287
285
|
defaultClassName: "_10e5beq1",
|
|
288
286
|
variantClassNames: { layout: {
|
|
289
287
|
"sidebar-left": "_10e5beq2",
|
|
@@ -350,11 +348,11 @@ var Zn = dt.create({
|
|
|
350
348
|
name: "detailsKit",
|
|
351
349
|
addExtensions() {
|
|
352
350
|
let e = [];
|
|
353
|
-
return this.options.details !== !1 && e.push(
|
|
351
|
+
return this.options.details !== !1 && e.push(gt.extend({ group: "layoutBlock" }).configure({
|
|
354
352
|
persist: !0,
|
|
355
353
|
HTMLAttributes: { class: "details" },
|
|
356
354
|
...this.options.details || {}
|
|
357
|
-
})), this.options.detailsSummary !== !1 && e.push(
|
|
355
|
+
})), this.options.detailsSummary !== !1 && e.push(vt.configure(this.options.detailsSummary)), this.options.detailsContent !== !1 && e.push(_t.configure(this.options.detailsContent)), e;
|
|
358
356
|
}
|
|
359
357
|
}), ur = dt.create({
|
|
360
358
|
name: "iframe",
|
|
@@ -414,7 +412,7 @@ var Zn = dt.create({
|
|
|
414
412
|
return n && t.replaceRangeWith(r.from, r.to, i), !0;
|
|
415
413
|
} };
|
|
416
414
|
}
|
|
417
|
-
}), dr =
|
|
415
|
+
}), dr = yt.extend({ renderHTML() {
|
|
418
416
|
return [
|
|
419
417
|
"div",
|
|
420
418
|
pt(this.options.HTMLAttributes, { "data-type": this.name }),
|
|
@@ -432,7 +430,7 @@ function pr(e) {
|
|
|
432
430
|
let t = { src: e.src || "" };
|
|
433
431
|
return e.alt && (t.alt = e.alt), e.title && (t.title = e.title), e.width && (t.width = e.width), e.height && (t.height = e.height), e.srcset && (t.srcset = e.srcset), t;
|
|
434
432
|
}
|
|
435
|
-
var mr =
|
|
433
|
+
var mr = St.extend({
|
|
436
434
|
name: "imageBlock",
|
|
437
435
|
content: "inline*",
|
|
438
436
|
addAttributes() {
|
|
@@ -556,18 +554,18 @@ var gr = ut.create({
|
|
|
556
554
|
toggleNodeBackgroundColor: e((e, t) => hr(e, t || ""))
|
|
557
555
|
};
|
|
558
556
|
}
|
|
559
|
-
}), _r = 35, vr = 120, yr =
|
|
557
|
+
}), _r = 35, vr = 120, yr = At.extend({
|
|
560
558
|
group: "layoutBlock",
|
|
561
559
|
addProseMirrorPlugins() {
|
|
562
560
|
let e = this.options.resizable && this.editor.isEditable, t = this.options.cellMinWidth < vr ? vr : this.options.cellMinWidth;
|
|
563
|
-
return [...e ? [
|
|
561
|
+
return [...e ? [wt({
|
|
564
562
|
handleWidth: this.options.handleWidth,
|
|
565
563
|
cellMinWidth: _r,
|
|
566
564
|
defaultCellMinWidth: t,
|
|
567
565
|
lastColumnResizable: this.options.lastColumnResizable
|
|
568
|
-
})] : [],
|
|
566
|
+
})] : [], Tt({ allowTableNodeSelection: this.options.allowTableNodeSelection })];
|
|
569
567
|
}
|
|
570
|
-
}), br =
|
|
568
|
+
}), br = Dt.extend({
|
|
571
569
|
content: "paragraph+",
|
|
572
570
|
addAttributes() {
|
|
573
571
|
return { ...this.parent?.() };
|
|
@@ -588,18 +586,18 @@ var gr = ut.create({
|
|
|
588
586
|
return {
|
|
589
587
|
...this.parent?.(),
|
|
590
588
|
"Mod-a": () => {
|
|
591
|
-
let { state: e, view: t } = this.editor, { selection: n, doc: r } = e, i = n.$anchor, a =
|
|
589
|
+
let { state: e, view: t } = this.editor, { selection: n, doc: r } = e, i = n.$anchor, a = Ct(i);
|
|
592
590
|
if (!a) return !1;
|
|
593
591
|
let o = r.nodeAt(a.pos);
|
|
594
592
|
if (!o || !o.textContent) return !1;
|
|
595
593
|
let s = a.pos + 1, c = a.pos + o.nodeSize - 1;
|
|
596
594
|
if (s >= c) return !0;
|
|
597
|
-
let l = r.resolve(s), u = r.resolve(c), d =
|
|
595
|
+
let l = r.resolve(s), u = r.resolve(c), d = Et.between(l, u, 1);
|
|
598
596
|
return !d || e.selection.eq(d) || t.dispatch(e.tr.setSelection(d)), !0;
|
|
599
597
|
}
|
|
600
598
|
};
|
|
601
599
|
}
|
|
602
|
-
}), xr =
|
|
600
|
+
}), xr = Ot.extend({
|
|
603
601
|
content: "paragraph+",
|
|
604
602
|
addAttributes() {
|
|
605
603
|
return { ...this.parent?.() };
|
|
@@ -623,7 +621,7 @@ var gr = ut.create({
|
|
|
623
621
|
return this.options.table !== !1 && e.push(yr.configure({
|
|
624
622
|
...this.options.table,
|
|
625
623
|
renderWrapper: !0
|
|
626
|
-
})), this.options.tableCell !== !1 && e.push(br.configure(this.options.tableCell)), this.options.tableHeader !== !1 && e.push(xr.configure(this.options.tableHeader)), this.options.tableRow !== !1 && e.push(
|
|
624
|
+
})), this.options.tableCell !== !1 && e.push(br.configure(this.options.tableCell)), this.options.tableHeader !== !1 && e.push(xr.configure(this.options.tableHeader)), this.options.tableRow !== !1 && e.push(kt.configure(this.options.tableRow)), e;
|
|
627
625
|
}
|
|
628
626
|
}), Cr = {
|
|
629
627
|
Box: { field_interface: "BoxWidget" },
|
|
@@ -894,9 +892,9 @@ var zr = (e) => ({
|
|
|
894
892
|
r
|
|
895
893
|
]);
|
|
896
894
|
let o = n ? "Generation stopped" : r ? "Stopping..." : t ? "Done!" : e[i], s = n ? "cancelled" : r ? "stopping" : t ? "done" : i;
|
|
897
|
-
return /* @__PURE__ */ U(
|
|
895
|
+
return /* @__PURE__ */ U(jt, {
|
|
898
896
|
mode: "wait",
|
|
899
|
-
children: /* @__PURE__ */ U(
|
|
897
|
+
children: /* @__PURE__ */ U(Pt.span, {
|
|
900
898
|
initial: {
|
|
901
899
|
opacity: 0,
|
|
902
900
|
y: 8
|
|
@@ -922,7 +920,7 @@ var zr = (e) => ({
|
|
|
922
920
|
});
|
|
923
921
|
}, Ur = ({ totalBlocksCount: e, blocksGenerationInfo: t, isCompleted: n, isCancelled: r, isStopping: i, onStop: a }) => {
|
|
924
922
|
let o = t.filter((e) => e.status === null).length, s = e > 0 ? Math.round(o / e * 100) : 0;
|
|
925
|
-
return /* @__PURE__ */ U(
|
|
923
|
+
return /* @__PURE__ */ U(Pt.div, {
|
|
926
924
|
initial: {
|
|
927
925
|
opacity: 0,
|
|
928
926
|
y: 20
|
|
@@ -949,7 +947,7 @@ var zr = (e) => ({
|
|
|
949
947
|
justifyContent: "center",
|
|
950
948
|
zIndex: 70
|
|
951
949
|
},
|
|
952
|
-
children: /* @__PURE__ */ W(
|
|
950
|
+
children: /* @__PURE__ */ W(Pt.div, {
|
|
953
951
|
animate: { scale: r ? [1.08, 1] : 1 },
|
|
954
952
|
transition: {
|
|
955
953
|
duration: .3,
|
|
@@ -975,7 +973,7 @@ var zr = (e) => ({
|
|
|
975
973
|
alignItems: "center",
|
|
976
974
|
gap: "3px"
|
|
977
975
|
},
|
|
978
|
-
children: r ? /* @__PURE__ */ W(
|
|
976
|
+
children: r ? /* @__PURE__ */ W(Pt.svg, {
|
|
979
977
|
initial: { scale: 0 },
|
|
980
978
|
animate: { scale: 1 },
|
|
981
979
|
transition: {
|
|
@@ -992,7 +990,7 @@ var zr = (e) => ({
|
|
|
992
990
|
strokeLinecap: "round",
|
|
993
991
|
strokeLinejoin: "round",
|
|
994
992
|
children: [/* @__PURE__ */ U("title", { children: "Stopped" }), /* @__PURE__ */ U("polyline", { points: "20 6 9 17 4 12" })]
|
|
995
|
-
}) : i ? /* @__PURE__ */ W(
|
|
993
|
+
}) : i ? /* @__PURE__ */ W(Pt.svg, {
|
|
996
994
|
animate: { rotate: 360 },
|
|
997
995
|
transition: {
|
|
998
996
|
duration: 1,
|
|
@@ -1007,7 +1005,7 @@ var zr = (e) => ({
|
|
|
1007
1005
|
strokeWidth: "2.5",
|
|
1008
1006
|
strokeLinecap: "round",
|
|
1009
1007
|
children: [/* @__PURE__ */ U("title", { children: "Stopping" }), /* @__PURE__ */ U("path", { d: "M12 2a10 10 0 0 1 10 10" })]
|
|
1010
|
-
}) : n ? /* @__PURE__ */ W(
|
|
1008
|
+
}) : n ? /* @__PURE__ */ W(Pt.svg, {
|
|
1011
1009
|
initial: { scale: 0 },
|
|
1012
1010
|
animate: { scale: 1 },
|
|
1013
1011
|
transition: {
|
|
@@ -1028,7 +1026,7 @@ var zr = (e) => ({
|
|
|
1028
1026
|
0,
|
|
1029
1027
|
1,
|
|
1030
1028
|
2
|
|
1031
|
-
].map((e) => /* @__PURE__ */ U(
|
|
1029
|
+
].map((e) => /* @__PURE__ */ U(Pt.div, {
|
|
1032
1030
|
animate: {
|
|
1033
1031
|
opacity: [
|
|
1034
1032
|
.3,
|
|
@@ -1078,7 +1076,7 @@ var zr = (e) => ({
|
|
|
1078
1076
|
borderRadius: "2px",
|
|
1079
1077
|
overflow: "hidden"
|
|
1080
1078
|
},
|
|
1081
|
-
children: /* @__PURE__ */ U(
|
|
1079
|
+
children: /* @__PURE__ */ U(Pt.div, {
|
|
1082
1080
|
initial: { width: 0 },
|
|
1083
1081
|
animate: { width: `${n || r ? 100 : s}%` },
|
|
1084
1082
|
transition: {
|
|
@@ -1315,7 +1313,7 @@ var zr = (e) => ({
|
|
|
1315
1313
|
}, e.id) : null;
|
|
1316
1314
|
}),
|
|
1317
1315
|
u.map((e) => /* @__PURE__ */ U(Wr, { overlay: e }, `generation-${e.status}-${e.id}`)),
|
|
1318
|
-
/* @__PURE__ */ U(
|
|
1316
|
+
/* @__PURE__ */ U(jt, { children: i && /* @__PURE__ */ U(Ur, {
|
|
1319
1317
|
totalBlocksCount: c,
|
|
1320
1318
|
blocksGenerationInfo: l,
|
|
1321
1319
|
isCompleted: a,
|
|
@@ -1657,7 +1655,7 @@ var li = (e, t) => e ? e.replace(/\{([\w.-]+)\}/g, (e, n) => {
|
|
|
1657
1655
|
if (typeof e.g != "number" || e.g < 0 || e.g > 255) return console.log(`Invalid green value: ${e.g}. Must be a number between 0 and 255. Using default color.`), t;
|
|
1658
1656
|
if (typeof e.b != "number" || e.b < 0 || e.b > 255) return console.log(`Invalid blue value: ${e.b}. Must be a number between 0 and 255. Using default color.`), t;
|
|
1659
1657
|
if (e.a !== void 0 && (typeof e.a != "number" || e.a < 0 || e.a > 1)) return console.log(`Invalid alpha value: ${e.a}. Must be a number between 0 and 1. Using default color.`), t;
|
|
1660
|
-
let n =
|
|
1658
|
+
let n = Lt(zt({
|
|
1661
1659
|
mode: "rgb",
|
|
1662
1660
|
r: e.r / 255,
|
|
1663
1661
|
g: e.g / 255,
|
|
@@ -1679,16 +1677,16 @@ var li = (e, t) => e ? e.replace(/\{([\w.-]+)\}/g, (e, n) => {
|
|
|
1679
1677
|
let t = "rgb(0, 0, 0)";
|
|
1680
1678
|
if (typeof e != "string") return console.log(`Invalid OKLCH string: ${e}. Must be a string. Using default color.`), t;
|
|
1681
1679
|
try {
|
|
1682
|
-
let n =
|
|
1680
|
+
let n = Rt(e);
|
|
1683
1681
|
if (!n) return console.log(`Invalid OKLCH string format: ${e}. Unable to parse color. Using default color.`), t;
|
|
1684
|
-
let r =
|
|
1685
|
-
return r ?
|
|
1682
|
+
let r = zt(n);
|
|
1683
|
+
return r ? It(r) || (console.log(`Failed to format RGB color as string for OKLCH input: ${e}. Using default color.`), t) : (console.log(`Failed to convert OKLCH string ${e} to RGB format. Using default color.`), t);
|
|
1686
1684
|
} catch (n) {
|
|
1687
1685
|
return console.log(`Error converting OKLCH string ${e} to RGBA:`, n), t;
|
|
1688
1686
|
}
|
|
1689
1687
|
}, pi = (e) => {
|
|
1690
1688
|
try {
|
|
1691
|
-
let t =
|
|
1689
|
+
let t = Rt(e);
|
|
1692
1690
|
return t !== void 0 && t.mode === "oklch";
|
|
1693
1691
|
} catch {
|
|
1694
1692
|
return !1;
|
|
@@ -1702,9 +1700,9 @@ var li = (e, t) => e ? e.replace(/\{([\w.-]+)\}/g, (e, n) => {
|
|
|
1702
1700
|
};
|
|
1703
1701
|
if (typeof e != "string") return console.log(`Invalid hex color: ${e}. Must be a string. Using default color.`), t;
|
|
1704
1702
|
try {
|
|
1705
|
-
let n =
|
|
1703
|
+
let n = Rt(e);
|
|
1706
1704
|
if (!n) return console.log(`Failed to parse hex color: ${e}. Using default color.`), t;
|
|
1707
|
-
let r =
|
|
1705
|
+
let r = Lt(n);
|
|
1708
1706
|
return r ? {
|
|
1709
1707
|
l: r.l,
|
|
1710
1708
|
c: r.c,
|
|
@@ -1723,10 +1721,10 @@ var li = (e, t) => e ? e.replace(/\{([\w.-]+)\}/g, (e, n) => {
|
|
|
1723
1721
|
};
|
|
1724
1722
|
if (typeof e != "string") return console.log(`Invalid OKLCH string: ${e}. Must be a string. Using default color.`), t;
|
|
1725
1723
|
try {
|
|
1726
|
-
let n =
|
|
1724
|
+
let n = Rt(e);
|
|
1727
1725
|
if (!n) return console.log(`Invalid OKLCH string format: ${e}. Unable to parse color. Using default color.`), t;
|
|
1728
1726
|
if (n.mode !== "oklch") return console.log(`Invalid OKLCH string: ${e}. Parsed color is not in OKLCH format. Using default color.`), t;
|
|
1729
|
-
let r =
|
|
1727
|
+
let r = Lt(n);
|
|
1730
1728
|
return r ? {
|
|
1731
1729
|
l: r.l,
|
|
1732
1730
|
c: r.c,
|
|
@@ -1740,7 +1738,7 @@ var li = (e, t) => e ? e.replace(/\{([\w.-]+)\}/g, (e, n) => {
|
|
|
1740
1738
|
let t = "rgba(0, 0, 0, 1)";
|
|
1741
1739
|
if (!e) return t;
|
|
1742
1740
|
try {
|
|
1743
|
-
let n =
|
|
1741
|
+
let n = Lt({
|
|
1744
1742
|
mode: "oklch",
|
|
1745
1743
|
l: e.l,
|
|
1746
1744
|
c: e.c,
|
|
@@ -1748,8 +1746,8 @@ var li = (e, t) => e ? e.replace(/\{([\w.-]+)\}/g, (e, n) => {
|
|
|
1748
1746
|
alpha: e.alpha || 1
|
|
1749
1747
|
});
|
|
1750
1748
|
if (!n) return console.log("Failed to create OKLCH color object from:", e), t;
|
|
1751
|
-
let r =
|
|
1752
|
-
return r ?
|
|
1749
|
+
let r = zt(n);
|
|
1750
|
+
return r ? It(r) || (console.log("Failed to format RGB color as string:", e), t) : (console.log("Failed to convert OKLCH to RGB:", e), t);
|
|
1753
1751
|
} catch (e) {
|
|
1754
1752
|
return console.log("Error converting OKLCH to RGBA:", e), t;
|
|
1755
1753
|
}
|
|
@@ -1759,15 +1757,15 @@ var li = (e, t) => e ? e.replace(/\{([\w.-]+)\}/g, (e, n) => {
|
|
|
1759
1757
|
try {
|
|
1760
1758
|
let n;
|
|
1761
1759
|
if (typeof e == "string") {
|
|
1762
|
-
if (n =
|
|
1763
|
-
} else if (n =
|
|
1760
|
+
if (n = Rt(e), !n) return console.log(`Invalid OKLCH string format: ${e}. Unable to parse color. Using default color.`), e.startsWith("#") ? e : t;
|
|
1761
|
+
} else if (n = Lt({
|
|
1764
1762
|
mode: "oklch",
|
|
1765
1763
|
l: e.l,
|
|
1766
1764
|
c: e.c,
|
|
1767
1765
|
h: e.h || 0,
|
|
1768
1766
|
alpha: e.alpha || 1
|
|
1769
1767
|
}), !n) return console.log("Failed to create OKLCH color object from:", e), t;
|
|
1770
|
-
let r =
|
|
1768
|
+
let r = zt(n);
|
|
1771
1769
|
if (!r) return console.log("Failed to convert OKLCH to RGB:", e), t;
|
|
1772
1770
|
let i = (e) => Math.max(0, Math.min(255, Math.round(e))), a = i((r.r || 0) * 255), o = i((r.g || 0) * 255), s = i((r.b || 0) * 255), c = (e) => {
|
|
1773
1771
|
let t = e.toString(16);
|
|
@@ -1777,7 +1775,7 @@ var li = (e, t) => e ? e.replace(/\{([\w.-]+)\}/g, (e, n) => {
|
|
|
1777
1775
|
} catch (e) {
|
|
1778
1776
|
return console.log("Error converting OKLCH to hexcode:", e), t;
|
|
1779
1777
|
}
|
|
1780
|
-
}, vi = (e, t) =>
|
|
1778
|
+
}, vi = (e, t) => Bt(Y(e), Y(t)), yi = (e) => {
|
|
1781
1779
|
let { l: t, c: n, h: r, alpha: i = 1 } = e;
|
|
1782
1780
|
t = Math.max(0, Math.min(1, t)), n = Math.max(0, Math.min(.4, n)), r = (r % 360 + 360) % 360;
|
|
1783
1781
|
let a = n;
|
|
@@ -2970,7 +2968,7 @@ var li = (e, t) => e ? e.replace(/\{([\w.-]+)\}/g, (e, n) => {
|
|
|
2970
2968
|
});
|
|
2971
2969
|
}), n;
|
|
2972
2970
|
}, qi = ({ pageTheme: e, blocks: t = [], pageID: n, device: r }) => {
|
|
2973
|
-
let i =
|
|
2971
|
+
let i = Vt(zi, e ?? {}), { fonts: a, fontUrl: o, fontTags: s } = Bi(i), c = Ui(i), l = {
|
|
2974
2972
|
theme: Object.entries(c).map(([e, t]) => `${e}:${t}`).join(";"),
|
|
2975
2973
|
default: Ki(i, r),
|
|
2976
2974
|
blocks: Wi(t)
|
|
@@ -3423,8 +3421,8 @@ var li = (e, t) => e ? e.replace(/\{([\w.-]+)\}/g, (e, n) => {
|
|
|
3423
3421
|
url: o?.toString()
|
|
3424
3422
|
}), null;
|
|
3425
3423
|
}
|
|
3426
|
-
}, da = ({ children: e, strict: t }) => /* @__PURE__ */ U(
|
|
3427
|
-
features:
|
|
3424
|
+
}, da = ({ children: e, strict: t }) => /* @__PURE__ */ U(Mt, {
|
|
3425
|
+
features: Nt,
|
|
3428
3426
|
strict: t,
|
|
3429
3427
|
children: e
|
|
3430
3428
|
}), fa = (e) => {
|
|
@@ -3821,7 +3819,7 @@ var Ca = ({ site: e }) => {
|
|
|
3821
3819
|
siteSlug: e?.slug,
|
|
3822
3820
|
siteName: e?.name
|
|
3823
3821
|
})] });
|
|
3824
|
-
}, wa = { loadingContainer: "_loadingContainer_1d4on_1" }, Ta = I(() => import("./LoginCard-
|
|
3822
|
+
}, wa = { loadingContainer: "_loadingContainer_1d4on_1" }, Ta = I(() => import("./LoginCard-asvOHIRg.js")), Ea = I(() => import("./EntryCard-j4uZb2cE.js")), Da = I(() => import("./MessageCard-lrXKEsBP.js")), Oa = {
|
|
3825
3823
|
"authentication.NOT_LOGGED_IN": ({ logo: e, siteName: t, page: n }) => /* @__PURE__ */ U(Oe, {
|
|
3826
3824
|
fallback: /* @__PURE__ */ U("div", {}),
|
|
3827
3825
|
children: /* @__PURE__ */ U(Ta, {
|
|
@@ -3897,19 +3895,26 @@ var Ca = ({ site: e }) => {
|
|
|
3897
3895
|
site: a,
|
|
3898
3896
|
page: t,
|
|
3899
3897
|
authOverride: s,
|
|
3900
|
-
children: [
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3898
|
+
children: [
|
|
3899
|
+
n === "live" && /* @__PURE__ */ U(Ce, { id: t?.id }),
|
|
3900
|
+
n === "live" && /* @__PURE__ */ U(d, {
|
|
3901
|
+
siteId: a?.id,
|
|
3902
|
+
pageId: t?.id
|
|
3903
|
+
}),
|
|
3904
|
+
t?.blocks?.map((a, s) => /* @__PURE__ */ U(ba, {
|
|
3905
|
+
renderMode: n,
|
|
3906
|
+
blocks: i,
|
|
3907
|
+
parsedBlockData: a,
|
|
3908
|
+
blockData: e?.blocks?.[s],
|
|
3909
|
+
pageContext: r?.page,
|
|
3910
|
+
pageMeta: r?.meta,
|
|
3911
|
+
blockContext: r?.blocks[a.id],
|
|
3912
|
+
workspace_id: o.id,
|
|
3913
|
+
pageSource: t?.source
|
|
3914
|
+
}, a.id))
|
|
3915
|
+
]
|
|
3911
3916
|
}),
|
|
3912
|
-
u ?
|
|
3917
|
+
u ? Ft(u) : null,
|
|
3913
3918
|
!c && o?.feature_flag?.branding && /* @__PURE__ */ U(Ca, { site: a })
|
|
3914
3919
|
]
|
|
3915
3920
|
});
|
|
@@ -3997,7 +4002,7 @@ var La = ({ blocks: e, studioData: t, site: n, workspace_id: r }) => {
|
|
|
3997
4002
|
pageTheme: n.theme,
|
|
3998
4003
|
blocks: [t.blockData]
|
|
3999
4004
|
}).html) : "";
|
|
4000
|
-
return t?.parsedBlockData ? /* @__PURE__ */ W(H, { children: [
|
|
4005
|
+
return t?.parsedBlockData ? /* @__PURE__ */ W(H, { children: [Ft(a), /* @__PURE__ */ U("div", {
|
|
4001
4006
|
"data-levo-element": "page",
|
|
4002
4007
|
"data-levo-page-id": i,
|
|
4003
4008
|
children: /* @__PURE__ */ U(ba, {
|
|
@@ -4030,7 +4035,7 @@ var La = ({ blocks: e, studioData: t, site: n, workspace_id: r }) => {
|
|
|
4030
4035
|
};
|
|
4031
4036
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
4032
4037
|
}, []), n?.parsedPageData ? /* @__PURE__ */ W(H, { children: [
|
|
4033
|
-
/* @__PURE__ */ U("div", { children:
|
|
4038
|
+
/* @__PURE__ */ U("div", { children: Ft(o) }),
|
|
4034
4039
|
t ? /* @__PURE__ */ U(oi, {
|
|
4035
4040
|
isPageGenerating: n.pageData?.is_generating ?? !1,
|
|
4036
4041
|
isGenerationCancelled: n.pageData?.generation_cancelled ?? !1,
|
|
@@ -4130,7 +4135,7 @@ var La = ({ blocks: e, studioData: t, site: n, workspace_id: r }) => {
|
|
|
4130
4135
|
//#endregion
|
|
4131
4136
|
//#region src/elements/accordion/index.tsx
|
|
4132
4137
|
function Va({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ...o }) {
|
|
4133
|
-
return /* @__PURE__ */ U(
|
|
4138
|
+
return /* @__PURE__ */ U(An.Root, {
|
|
4134
4139
|
"data-levo_element_key": t,
|
|
4135
4140
|
"data-levo_element_type": "AccordionRoot",
|
|
4136
4141
|
className: N("AccordionRoot", e, n),
|
|
@@ -4139,7 +4144,7 @@ function Va({ className: e, elementKey: t, generatedClassName: n, content: r, co
|
|
|
4139
4144
|
}
|
|
4140
4145
|
Va.displayName = "BaseAccordionRoot";
|
|
4141
4146
|
function Ha({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ...o }) {
|
|
4142
|
-
return /* @__PURE__ */ U(
|
|
4147
|
+
return /* @__PURE__ */ U(An.Item, {
|
|
4143
4148
|
"data-levo_element_key": t,
|
|
4144
4149
|
"data-levo_element_type": "AccordionItem",
|
|
4145
4150
|
className: N(Ba.accordionItem, e, n),
|
|
@@ -4148,20 +4153,20 @@ function Ha({ className: e, elementKey: t, generatedClassName: n, content: r, co
|
|
|
4148
4153
|
}
|
|
4149
4154
|
Ha.displayName = "BaseAccordionItem";
|
|
4150
4155
|
function Ua({ className: e, children: t, elementKey: n, generatedClassName: r, content: i, config: a, styles: o, ...s }) {
|
|
4151
|
-
return /* @__PURE__ */ U(
|
|
4156
|
+
return /* @__PURE__ */ U(An.Header, {
|
|
4152
4157
|
className: Ba.accordionHeader,
|
|
4153
|
-
children: /* @__PURE__ */ W(
|
|
4158
|
+
children: /* @__PURE__ */ W(An.Trigger, {
|
|
4154
4159
|
"data-levo_element_key": n,
|
|
4155
4160
|
"data-levo_element_type": "AccordionTrigger",
|
|
4156
4161
|
className: N(Ba.accordionTrigger, e, r),
|
|
4157
4162
|
...s,
|
|
4158
|
-
children: [t, /* @__PURE__ */ U(
|
|
4163
|
+
children: [t, /* @__PURE__ */ U(nn, { className: Ba.accordionChevron })]
|
|
4159
4164
|
})
|
|
4160
4165
|
});
|
|
4161
4166
|
}
|
|
4162
4167
|
Ua.displayName = "BaseAccordionTrigger";
|
|
4163
4168
|
function Wa({ className: e, children: t, elementKey: n, generatedClassName: r, content: i, config: a, styles: o, ...s }) {
|
|
4164
|
-
return /* @__PURE__ */ U(
|
|
4169
|
+
return /* @__PURE__ */ U(An.Content, {
|
|
4165
4170
|
className: N(Ba.accordionContent, e),
|
|
4166
4171
|
...s,
|
|
4167
4172
|
children: /* @__PURE__ */ U("div", {
|
|
@@ -4185,7 +4190,7 @@ var Ga = _(Va), Ka = _(Ha), qa = _(Ua), Ja = _(Wa), Ya = () => [
|
|
|
4185
4190
|
Ue,
|
|
4186
4191
|
et,
|
|
4187
4192
|
$e,
|
|
4188
|
-
|
|
4193
|
+
mt,
|
|
4189
4194
|
qe,
|
|
4190
4195
|
ct,
|
|
4191
4196
|
Ze.configure({ openOnClick: !1 }),
|
|
@@ -4208,8 +4213,8 @@ var Ga = _(Va), Ka = _(Ha), qa = _(Ua), Ja = _(Wa), Ya = () => [
|
|
|
4208
4213
|
"blockquoteFigure",
|
|
4209
4214
|
"codeBlock"
|
|
4210
4215
|
] }),
|
|
4211
|
-
|
|
4212
|
-
|
|
4216
|
+
xt.configure({ itemTypeName: "taskItem" }),
|
|
4217
|
+
bt.configure({ nested: !0 }),
|
|
4213
4218
|
Sr.configure({ table: { cellMinWidth: 120 } }),
|
|
4214
4219
|
mr,
|
|
4215
4220
|
c,
|
|
@@ -4571,7 +4576,7 @@ var Eo = F.forwardRef(({ className: e, ...t }, n) => {
|
|
|
4571
4576
|
disabled: !a,
|
|
4572
4577
|
onClick: i,
|
|
4573
4578
|
...t,
|
|
4574
|
-
children: [/* @__PURE__ */ U(
|
|
4579
|
+
children: [/* @__PURE__ */ U(Xt, { className: "h-4 w-4" }), /* @__PURE__ */ U("span", {
|
|
4575
4580
|
className: "sr-only",
|
|
4576
4581
|
children: "Previous slide"
|
|
4577
4582
|
})]
|
|
@@ -4586,7 +4591,7 @@ var Do = F.forwardRef(({ className: e, ...t }, n) => {
|
|
|
4586
4591
|
disabled: !a,
|
|
4587
4592
|
onClick: i,
|
|
4588
4593
|
...t,
|
|
4589
|
-
children: [/* @__PURE__ */ U(
|
|
4594
|
+
children: [/* @__PURE__ */ U(Zt, { className: "h-4 w-4" }), /* @__PURE__ */ U("span", {
|
|
4590
4595
|
className: "sr-only",
|
|
4591
4596
|
children: "Next slide"
|
|
4592
4597
|
})]
|
|
@@ -4624,7 +4629,7 @@ var Ao = _(Co), jo = Ae(({ children: e, className: t, elementKey: n, generatedCl
|
|
|
4624
4629
|
children: [/* @__PURE__ */ U(_o, { backgroundVideo: a?.backgroundVideo }), e]
|
|
4625
4630
|
}));
|
|
4626
4631
|
jo.displayName = "BaseContainer";
|
|
4627
|
-
var Mo = _(jo), No = I(() => import("./dist-
|
|
4632
|
+
var Mo = _(jo), No = I(() => import("./dist-CsX9NP5P.js").then((e) => e.t).then((e) => ({ default: e.CollectionForm }))), Po = _(({ elementKey: e, generatedClassName: t, config: n, className: r, initialValues: i, theme: a, onSubmit: o, isLoading: s }) => /* @__PURE__ */ U("div", {
|
|
4628
4633
|
"data-levo_element_key": e,
|
|
4629
4634
|
className: N(r, t),
|
|
4630
4635
|
children: /* @__PURE__ */ U(Oe, {
|
|
@@ -4646,7 +4651,7 @@ var Mo = _(jo), No = I(() => import("./dist-CG-pwDW0.js").then((e) => e.t).then(
|
|
|
4646
4651
|
isLoading: s
|
|
4647
4652
|
})
|
|
4648
4653
|
})
|
|
4649
|
-
})), Fo = I(() => import("./dist-
|
|
4654
|
+
})), Fo = I(() => import("./dist-CsX9NP5P.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormRenderer }))), Io = I(() => import("./bookingCard-BdV2YSkq.js").then((e) => ({ default: e.BookingCard }))), Lo = I(() => import("./BillingStep-2cKT5Pir.js").then((e) => ({ default: e.BillingStep }))), Ro = _(({ elementKey: e, generatedClassName: t, config: n, className: r, initialValues: a, theme: o }) => {
|
|
4650
4655
|
let s = P(), { workspace: c } = k(), l = z(() => {
|
|
4651
4656
|
if (!n?.theme && !o) return;
|
|
4652
4657
|
let e = n?.theme;
|
|
@@ -4881,13 +4886,13 @@ var zo = ({ forumKey: e, selectedCategories: t, onCategoryToggle: n, className:
|
|
|
4881
4886
|
submitJoinRequest: async () => !1,
|
|
4882
4887
|
refreshMembershipStatus: async () => {}
|
|
4883
4888
|
} : e;
|
|
4884
|
-
}, Uo =
|
|
4889
|
+
}, Uo = Fn.Provider, Wo = Fn.Root, Go = Fn.Trigger, Ko = Fn.Portal, qo = Ee.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ U(Fn.Content, {
|
|
4885
4890
|
ref: r,
|
|
4886
4891
|
sideOffset: t,
|
|
4887
4892
|
className: N("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 animate-in overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-popover-foreground text-xs shadow-md data-[state=closed]:animate-out", e),
|
|
4888
4893
|
...n
|
|
4889
4894
|
}));
|
|
4890
|
-
qo.displayName =
|
|
4895
|
+
qo.displayName = Fn.Content.displayName;
|
|
4891
4896
|
var Jo = ({ children: e, label: t, labelClassName: n, asChild: r = !0, contentProps: i = {}, side: a }) => /* @__PURE__ */ W(Wo, { children: [t && /* @__PURE__ */ U(Ko, { children: /* @__PURE__ */ U(qo, {
|
|
4892
4897
|
side: a,
|
|
4893
4898
|
className: n,
|
|
@@ -4949,7 +4954,7 @@ var Jo = ({ children: e, label: t, labelClassName: n, asChild: r = !0, contentPr
|
|
|
4949
4954
|
slideFromRight: "_slideFromRight_ob3yj_1",
|
|
4950
4955
|
slideFromLeft: "_slideFromLeft_ob3yj_1",
|
|
4951
4956
|
slideFromBottom: "_slideFromBottom_ob3yj_1"
|
|
4952
|
-
}, Zo =
|
|
4957
|
+
}, Zo = Mn.Root, Qo = Ee.forwardRef(({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ...o }, s) => /* @__PURE__ */ U(Mn.Trigger, {
|
|
4953
4958
|
ref: s,
|
|
4954
4959
|
"data-levo_element_key": t,
|
|
4955
4960
|
"data-levo_element_type": "PopoverTrigger",
|
|
@@ -4957,9 +4962,9 @@ var Jo = ({ children: e, label: t, labelClassName: n, asChild: r = !0, contentPr
|
|
|
4957
4962
|
...o
|
|
4958
4963
|
}));
|
|
4959
4964
|
Qo.displayName = "BasePopoverTrigger";
|
|
4960
|
-
var $o = Ee.forwardRef(({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, inPortal: o = !0, portalContainer: s, align: c = "center", sideOffset: l = 4, ...u }, d) => /* @__PURE__ */ U(H, { children: o ? /* @__PURE__ */ U(
|
|
4965
|
+
var $o = Ee.forwardRef(({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, inPortal: o = !0, portalContainer: s, align: c = "center", sideOffset: l = 4, ...u }, d) => /* @__PURE__ */ U(H, { children: o ? /* @__PURE__ */ U(Mn.Portal, {
|
|
4961
4966
|
container: s,
|
|
4962
|
-
children: /* @__PURE__ */ U(
|
|
4967
|
+
children: /* @__PURE__ */ U(Mn.Content, {
|
|
4963
4968
|
ref: d,
|
|
4964
4969
|
align: c,
|
|
4965
4970
|
sideOffset: l,
|
|
@@ -4968,7 +4973,7 @@ var $o = Ee.forwardRef(({ className: e, elementKey: t, generatedClassName: n, co
|
|
|
4968
4973
|
className: N(Xo.popoverContent, e, n),
|
|
4969
4974
|
...u
|
|
4970
4975
|
})
|
|
4971
|
-
}) : /* @__PURE__ */ U(
|
|
4976
|
+
}) : /* @__PURE__ */ U(Mn.Content, {
|
|
4972
4977
|
ref: d,
|
|
4973
4978
|
align: c,
|
|
4974
4979
|
sideOffset: l,
|
|
@@ -5047,7 +5052,7 @@ var es = _(Qo), ts = _($o), ns = ({ children: e, triggerContainerStyles: t, useC
|
|
|
5047
5052
|
n ? i?.(!1) : f(!1), c?.();
|
|
5048
5053
|
},
|
|
5049
5054
|
className: "flex cursor-pointer items-center gap-1.5 rounded-md border border-[#D1D6E1] bg-white px-1.5 py-1.5 font-medium text-sm transition-colors hover:bg-gray-50 disabled:opacity-50",
|
|
5050
|
-
children: /* @__PURE__ */ U(
|
|
5055
|
+
children: /* @__PURE__ */ U(On, { size: 16 })
|
|
5051
5056
|
}),
|
|
5052
5057
|
l === "create" && /* @__PURE__ */ U("p", {
|
|
5053
5058
|
className: "font-semibold text-lg text-text-1",
|
|
@@ -5075,7 +5080,7 @@ var es = _(Qo), ts = _($o), ns = ({ children: e, triggerContainerStyles: t, useC
|
|
|
5075
5080
|
children: [/* @__PURE__ */ U("span", {
|
|
5076
5081
|
className: "text-text-1",
|
|
5077
5082
|
children: te.find((e) => e._id === A)?.name || "Category"
|
|
5078
|
-
}), /* @__PURE__ */ U(
|
|
5083
|
+
}), /* @__PURE__ */ U(nn, { className: "size-4 text-text-2" })]
|
|
5079
5084
|
})
|
|
5080
5085
|
}), /* @__PURE__ */ U(ts, {
|
|
5081
5086
|
elementKey: "category-content",
|
|
@@ -5087,7 +5092,7 @@ var es = _(Qo), ts = _($o), ns = ({ children: e, triggerContainerStyles: t, useC
|
|
|
5087
5092
|
j(e._id), M(!1);
|
|
5088
5093
|
},
|
|
5089
5094
|
className: N("flex w-full cursor-pointer items-center justify-between rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-gray-100", A === e._id ? "font-medium text-text-1" : "text-text-2"),
|
|
5090
|
-
children: [/* @__PURE__ */ U("span", { children: e.name }), A === e._id && /* @__PURE__ */ U(
|
|
5095
|
+
children: [/* @__PURE__ */ U("span", { children: e.name }), A === e._id && /* @__PURE__ */ U($t, { className: "size-4 text-brand" })]
|
|
5091
5096
|
}, e._id))
|
|
5092
5097
|
})]
|
|
5093
5098
|
}),
|
|
@@ -5178,11 +5183,11 @@ var es = _(Qo), ts = _($o), ns = ({ children: e, triggerContainerStyles: t, useC
|
|
|
5178
5183
|
},
|
|
5179
5184
|
disabled: C || l === "edit",
|
|
5180
5185
|
className: N("flex h-8 w-fit cursor-pointer items-center gap-2 rounded-lg border px-2 font-medium text-sm transition-colors", "disabled:cursor-not-allowed disabled:opacity-80", T ? "border-brand bg-brand text-white hover:bg-brand/90" : "border-[#D1D6E1] bg-white text-text-1 hover:bg-gray-50"),
|
|
5181
|
-
children: /* @__PURE__ */ U(
|
|
5186
|
+
children: /* @__PURE__ */ U(hn, { size: 16 })
|
|
5182
5187
|
})
|
|
5183
5188
|
}), /* @__PURE__ */ W("div", {
|
|
5184
5189
|
className: "flex items-center gap-2 text-sm text-text-2/80",
|
|
5185
|
-
children: [/* @__PURE__ */ W("span", { children: ["Your post will appear as @", me] }), /* @__PURE__ */ U(
|
|
5190
|
+
children: [/* @__PURE__ */ W("span", { children: ["Your post will appear as @", me] }), /* @__PURE__ */ U(mn, { className: "size-4 text-text-1" })]
|
|
5186
5191
|
})]
|
|
5187
5192
|
})
|
|
5188
5193
|
]
|
|
@@ -5251,7 +5256,7 @@ var rs = (e) => {
|
|
|
5251
5256
|
type: "button",
|
|
5252
5257
|
className: "hidden h-6 w-6 cursor-pointer items-center justify-center rounded-sm text-gray-800 hover:bg-gray-100 sm:flex",
|
|
5253
5258
|
onClick: S,
|
|
5254
|
-
children: /* @__PURE__ */ U(
|
|
5259
|
+
children: /* @__PURE__ */ U(Xt, { size: 20 })
|
|
5255
5260
|
}),
|
|
5256
5261
|
/* @__PURE__ */ W(Wc, {
|
|
5257
5262
|
className: "h-8 w-8 rounded-full ring-2 ring-gray-100",
|
|
@@ -5271,7 +5276,7 @@ var rs = (e) => {
|
|
|
5271
5276
|
children: [/* @__PURE__ */ U("p", {
|
|
5272
5277
|
className: "cursor-pointer font-semibold text-sm text-text-1",
|
|
5273
5278
|
children: _ ? e?.organization?.name ?? "-" : [e.created_by?.first_name, e.created_by?.last_name].filter(Boolean).join(" ") || e.created_by?.username
|
|
5274
|
-
}), _ && /* @__PURE__ */ U(
|
|
5279
|
+
}), _ && /* @__PURE__ */ U(Qt, {
|
|
5275
5280
|
size: 18,
|
|
5276
5281
|
fill: "#1d9bf0",
|
|
5277
5282
|
stroke: "white"
|
|
@@ -5297,7 +5302,7 @@ var rs = (e) => {
|
|
|
5297
5302
|
e.preventDefault(), e.stopPropagation(), m(!0);
|
|
5298
5303
|
},
|
|
5299
5304
|
className: "flex h-8 w-8 cursor-pointer items-center justify-center rounded text-gray-600 hover:bg-gray-100",
|
|
5300
|
-
children: /* @__PURE__ */ U(
|
|
5305
|
+
children: /* @__PURE__ */ U(bn, { size: 20 })
|
|
5301
5306
|
})
|
|
5302
5307
|
}), /* @__PURE__ */ W(ts, {
|
|
5303
5308
|
elementKey: "post_menu_content",
|
|
@@ -5310,14 +5315,14 @@ var rs = (e) => {
|
|
|
5310
5315
|
m(!1), i ? i() : g(!0);
|
|
5311
5316
|
},
|
|
5312
5317
|
className: "flex w-full cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-left text-gray-700 text-sm hover:bg-gray-100",
|
|
5313
|
-
children: [/* @__PURE__ */ U(
|
|
5318
|
+
children: [/* @__PURE__ */ U(ln, { size: 16 }), /* @__PURE__ */ U("span", { children: "Edit Post Body" })]
|
|
5314
5319
|
}), /* @__PURE__ */ W("button", {
|
|
5315
5320
|
type: "button",
|
|
5316
5321
|
onClick: () => {
|
|
5317
5322
|
m(!1), u(!0);
|
|
5318
5323
|
},
|
|
5319
5324
|
className: "flex w-full cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-left text-red-600 text-sm hover:bg-red-50",
|
|
5320
|
-
children: [/* @__PURE__ */ U(
|
|
5325
|
+
children: [/* @__PURE__ */ U(En, { size: 16 }), /* @__PURE__ */ U("span", { children: "Delete" })]
|
|
5321
5326
|
})]
|
|
5322
5327
|
})]
|
|
5323
5328
|
})]
|
|
@@ -5415,7 +5420,7 @@ var rs = (e) => {
|
|
|
5415
5420
|
}
|
|
5416
5421
|
},
|
|
5417
5422
|
disabled: s || !h,
|
|
5418
|
-
children: /* @__PURE__ */ U(
|
|
5423
|
+
children: /* @__PURE__ */ U(Yt, {
|
|
5419
5424
|
size: 18,
|
|
5420
5425
|
fill: l ? "currentColor" : "none"
|
|
5421
5426
|
})
|
|
@@ -5449,7 +5454,7 @@ var rs = (e) => {
|
|
|
5449
5454
|
}
|
|
5450
5455
|
},
|
|
5451
5456
|
disabled: s || !h,
|
|
5452
|
-
children: /* @__PURE__ */ U(
|
|
5457
|
+
children: /* @__PURE__ */ U(Jt, {
|
|
5453
5458
|
size: 18,
|
|
5454
5459
|
fill: d ? "currentColor" : "none"
|
|
5455
5460
|
})
|
|
@@ -5474,7 +5479,7 @@ var rs = (e) => {
|
|
|
5474
5479
|
let i = t?.replace(/\{[^}]+\}/g, e?.slug);
|
|
5475
5480
|
!n && i && (window.location.href = i);
|
|
5476
5481
|
},
|
|
5477
|
-
children: [/* @__PURE__ */ U(
|
|
5482
|
+
children: [/* @__PURE__ */ U(yn, { size: 20 }), /* @__PURE__ */ U("span", {
|
|
5478
5483
|
className: "",
|
|
5479
5484
|
children: e.comments_count
|
|
5480
5485
|
})]
|
|
@@ -5489,7 +5494,7 @@ var rs = (e) => {
|
|
|
5489
5494
|
};
|
|
5490
5495
|
navigator.share && navigator.canShare(i) && navigator?.share(i);
|
|
5491
5496
|
},
|
|
5492
|
-
children: [/* @__PURE__ */ U(
|
|
5497
|
+
children: [/* @__PURE__ */ U(wn, { size: 16 }), /* @__PURE__ */ U("span", {
|
|
5493
5498
|
className: "",
|
|
5494
5499
|
children: "Share"
|
|
5495
5500
|
})]
|
|
@@ -5519,7 +5524,7 @@ var rs = (e) => {
|
|
|
5519
5524
|
children: [/* @__PURE__ */ U("h3", {
|
|
5520
5525
|
className: "line-clamp-2 font-semibold text-text-1 leading-snug transition-colors group-hover:text-text-1",
|
|
5521
5526
|
children: e?.metadata?.meta_title || e?.url
|
|
5522
|
-
}), /* @__PURE__ */ U(
|
|
5527
|
+
}), /* @__PURE__ */ U(un, {
|
|
5523
5528
|
size: 18,
|
|
5524
5529
|
className: "mt-1 flex-shrink-0 text-text-2"
|
|
5525
5530
|
})]
|
|
@@ -5638,7 +5643,7 @@ var rs = (e) => {
|
|
|
5638
5643
|
children: [/* @__PURE__ */ U("span", {
|
|
5639
5644
|
className: `font-medium ${o ? "text-blue-700" : "text-gray-900"}`,
|
|
5640
5645
|
children: e?.label
|
|
5641
|
-
}), o && /* @__PURE__ */ U(
|
|
5646
|
+
}), o && /* @__PURE__ */ U(en, {
|
|
5642
5647
|
size: 18,
|
|
5643
5648
|
className: "text-blue-500"
|
|
5644
5649
|
})]
|
|
@@ -5716,26 +5721,26 @@ var rs = (e) => {
|
|
|
5716
5721
|
});
|
|
5717
5722
|
}, vs = (e) => {
|
|
5718
5723
|
switch (e) {
|
|
5719
|
-
case
|
|
5720
|
-
icon: /* @__PURE__ */ U(
|
|
5724
|
+
case Wt.unpublished: return {
|
|
5725
|
+
icon: /* @__PURE__ */ U(dn, { size: 14 }),
|
|
5721
5726
|
label: "Unpublished",
|
|
5722
5727
|
tooltip: "This post has been removed from public visibility by moderator or owner",
|
|
5723
5728
|
className: "bg-gray-100 text-gray-700 border-gray-300"
|
|
5724
5729
|
};
|
|
5725
|
-
case
|
|
5726
|
-
icon: /* @__PURE__ */ U(
|
|
5730
|
+
case Wt.archived: return {
|
|
5731
|
+
icon: /* @__PURE__ */ U(qt, { size: 14 }),
|
|
5727
5732
|
label: "Archived",
|
|
5728
5733
|
tooltip: "This post has been archived and no more activity is allowed",
|
|
5729
5734
|
className: "bg-gray-100 text-gray-700 border-gray-300"
|
|
5730
5735
|
};
|
|
5731
|
-
case
|
|
5732
|
-
icon: /* @__PURE__ */ U(
|
|
5736
|
+
case Wt.pending_moderation: return {
|
|
5737
|
+
icon: /* @__PURE__ */ U(sn, { size: 14 }),
|
|
5733
5738
|
label: "Pending Moderation",
|
|
5734
5739
|
tooltip: "This post is awaiting approval as auto-approve is turned off",
|
|
5735
5740
|
className: "bg-yellow-100 text-yellow-700 border-yellow-300"
|
|
5736
5741
|
};
|
|
5737
|
-
case
|
|
5738
|
-
icon: /* @__PURE__ */ U(
|
|
5742
|
+
case Wt.flagged: return {
|
|
5743
|
+
icon: /* @__PURE__ */ U(pn, { size: 14 }),
|
|
5739
5744
|
label: "Flagged",
|
|
5740
5745
|
tooltip: "This post has been flagged by AI and is awaiting manual moderation",
|
|
5741
5746
|
className: "bg-red-100 text-red-700 border-red-300"
|
|
@@ -5755,26 +5760,26 @@ var rs = (e) => {
|
|
|
5755
5760
|
}) }) : null;
|
|
5756
5761
|
}, bs = (e) => {
|
|
5757
5762
|
switch (e) {
|
|
5758
|
-
case
|
|
5759
|
-
icon: /* @__PURE__ */ U(
|
|
5763
|
+
case Wt.archived: return {
|
|
5764
|
+
icon: /* @__PURE__ */ U(qt, { size: 14 }),
|
|
5760
5765
|
label: "Archived",
|
|
5761
5766
|
tooltip: "This post has been archived and no more activity is allowed",
|
|
5762
5767
|
className: "bg-gray-100 text-gray-700 border-gray-300"
|
|
5763
5768
|
};
|
|
5764
|
-
case
|
|
5765
|
-
icon: /* @__PURE__ */ U(
|
|
5769
|
+
case Ht.flagged: return {
|
|
5770
|
+
icon: /* @__PURE__ */ U(pn, { size: 14 }),
|
|
5766
5771
|
label: "Flagged",
|
|
5767
5772
|
tooltip: "This comment has been flagged by AI",
|
|
5768
5773
|
className: "bg-red-100 text-red-700 border-red-300"
|
|
5769
5774
|
};
|
|
5770
|
-
case
|
|
5771
|
-
icon: /* @__PURE__ */ U(
|
|
5775
|
+
case Ht.pending_moderation: return {
|
|
5776
|
+
icon: /* @__PURE__ */ U(sn, { size: 14 }),
|
|
5772
5777
|
label: "Pending Moderation",
|
|
5773
5778
|
tooltip: "This comment is pending moderation as auto-approve is turned off",
|
|
5774
5779
|
className: "bg-yellow-100 text-yellow-700 border-yellow-300"
|
|
5775
5780
|
};
|
|
5776
|
-
case
|
|
5777
|
-
icon: /* @__PURE__ */ U(
|
|
5781
|
+
case Ht.unpublished: return {
|
|
5782
|
+
icon: /* @__PURE__ */ U(dn, { size: 14 }),
|
|
5778
5783
|
label: "Unpublished",
|
|
5779
5784
|
tooltip: "This comment has been removed from public visibility by moderator or owner",
|
|
5780
5785
|
className: "bg-gray-100 text-gray-700 border-gray-300"
|
|
@@ -5968,7 +5973,7 @@ var Os = ({ isParent: e = !0 }) => {
|
|
|
5968
5973
|
isLoading: d,
|
|
5969
5974
|
className: "flex w-fit flex-nowrap whitespace-nowrap [&_span]:flex [&_span]:items-center [&_span]:gap-2",
|
|
5970
5975
|
disabled: d || !p?.trim(),
|
|
5971
|
-
children: [/* @__PURE__ */ U(
|
|
5976
|
+
children: [/* @__PURE__ */ U(Cn, { size: 16 }), /* @__PURE__ */ U("span", {
|
|
5972
5977
|
className: "mb-0.5 text-sm",
|
|
5973
5978
|
children: "Send"
|
|
5974
5979
|
})]
|
|
@@ -6041,7 +6046,7 @@ var As = ({ comment: e, avatarStyles: t }) => {
|
|
|
6041
6046
|
children: [/* @__PURE__ */ U("p", {
|
|
6042
6047
|
className: "font-semibold text-text-1 text-xs",
|
|
6043
6048
|
children: z(() => t ? e?.organization?.name : [e?.author?.first_name, e?.author?.last_name].filter(Boolean).join(" ") || e?.author?.username, [e, t])
|
|
6044
|
-
}), t && /* @__PURE__ */ U(
|
|
6049
|
+
}), t && /* @__PURE__ */ U(Qt, {
|
|
6045
6050
|
size: 18,
|
|
6046
6051
|
fill: "#1d9bf0",
|
|
6047
6052
|
stroke: "white"
|
|
@@ -6060,7 +6065,7 @@ var As = ({ comment: e, avatarStyles: t }) => {
|
|
|
6060
6065
|
}, Ms = ({ replyCount: e, ...t }) => /* @__PURE__ */ W(cs, {
|
|
6061
6066
|
className: "cursor-pointer bg-white",
|
|
6062
6067
|
...t,
|
|
6063
|
-
children: [/* @__PURE__ */ U(
|
|
6068
|
+
children: [/* @__PURE__ */ U(yn, { size: 16 }), /* @__PURE__ */ U("span", {
|
|
6064
6069
|
className: "text-xs",
|
|
6065
6070
|
children: e
|
|
6066
6071
|
})]
|
|
@@ -6110,7 +6115,7 @@ var As = ({ comment: e, avatarStyles: t }) => {
|
|
|
6110
6115
|
}
|
|
6111
6116
|
},
|
|
6112
6117
|
disabled: u || !v,
|
|
6113
|
-
children: /* @__PURE__ */ U(
|
|
6118
|
+
children: /* @__PURE__ */ U(Yt, {
|
|
6114
6119
|
size: 18,
|
|
6115
6120
|
fill: f ? "currentColor" : "none"
|
|
6116
6121
|
})
|
|
@@ -6154,7 +6159,7 @@ var As = ({ comment: e, avatarStyles: t }) => {
|
|
|
6154
6159
|
}
|
|
6155
6160
|
},
|
|
6156
6161
|
disabled: u || !v,
|
|
6157
|
-
children: /* @__PURE__ */ U(
|
|
6162
|
+
children: /* @__PURE__ */ U(Jt, {
|
|
6158
6163
|
size: 18,
|
|
6159
6164
|
fill: m ? "currentColor" : "none"
|
|
6160
6165
|
})
|
|
@@ -6397,7 +6402,7 @@ var Fs = ({ wrapperStyles: e }) => /* @__PURE__ */ W("div", {
|
|
|
6397
6402
|
type: "button",
|
|
6398
6403
|
onClick: () => v(!_),
|
|
6399
6404
|
className: "flex items-center gap-1.5 font-semibold text-sm text-text-1 transition-colors hover:text-text-1",
|
|
6400
|
-
children: [/* @__PURE__ */ U("span", { children: k }), /* @__PURE__ */ U(
|
|
6405
|
+
children: [/* @__PURE__ */ U("span", { children: k }), /* @__PURE__ */ U(nn, {
|
|
6401
6406
|
size: 16,
|
|
6402
6407
|
className: `transition-transform ${_ ? "rotate-180" : ""}`
|
|
6403
6408
|
})]
|
|
@@ -6517,20 +6522,20 @@ var Fs = ({ wrapperStyles: e }) => /* @__PURE__ */ W("div", {
|
|
|
6517
6522
|
})] });
|
|
6518
6523
|
}, Hs = ({ post: e, isRenderedSolo: t = !1 }) => {
|
|
6519
6524
|
switch (e?.kind) {
|
|
6520
|
-
case
|
|
6525
|
+
case Ut.gallery: return /* @__PURE__ */ U(fs, {
|
|
6521
6526
|
post: e,
|
|
6522
6527
|
isRenderedSolo: t
|
|
6523
6528
|
});
|
|
6524
|
-
case
|
|
6525
|
-
case
|
|
6526
|
-
case
|
|
6529
|
+
case Ut.link: return /* @__PURE__ */ U(ds, { post: e });
|
|
6530
|
+
case Ut.poll: return /* @__PURE__ */ U(_s, { post: e });
|
|
6531
|
+
case Ut.post:
|
|
6527
6532
|
default: return null;
|
|
6528
6533
|
}
|
|
6529
6534
|
}, Us = () => /* @__PURE__ */ W("div", {
|
|
6530
6535
|
className: "flex flex-col items-center justify-center gap-2 rounded-lg border border-[#E5E5E5] bg-gray-50/60 p-8",
|
|
6531
6536
|
children: [/* @__PURE__ */ U("div", {
|
|
6532
6537
|
className: "flex h-12 w-12 items-center justify-center rounded-full bg-gray-200",
|
|
6533
|
-
children: /* @__PURE__ */ U(
|
|
6538
|
+
children: /* @__PURE__ */ U(En, {
|
|
6534
6539
|
size: 24,
|
|
6535
6540
|
className: "text-text-1"
|
|
6536
6541
|
})
|
|
@@ -6592,7 +6597,7 @@ var Fs = ({ wrapperStyles: e }) => /* @__PURE__ */ W("div", {
|
|
|
6592
6597
|
children: [
|
|
6593
6598
|
/* @__PURE__ */ U("div", {
|
|
6594
6599
|
className: "flex size-12 items-center justify-center rounded-full bg-green-100",
|
|
6595
|
-
children: /* @__PURE__ */ U(
|
|
6600
|
+
children: /* @__PURE__ */ U($t, { className: "size-6 text-green-600" })
|
|
6596
6601
|
}),
|
|
6597
6602
|
/* @__PURE__ */ U("p", {
|
|
6598
6603
|
className: "text-center font-medium text-sm text-text-1",
|
|
@@ -6640,7 +6645,7 @@ var Fs = ({ wrapperStyles: e }) => /* @__PURE__ */ W("div", {
|
|
|
6640
6645
|
}),
|
|
6641
6646
|
n && /* @__PURE__ */ W("div", {
|
|
6642
6647
|
className: "flex items-center gap-2 rounded-md bg-red-50 px-3 py-2 text-red-600 text-sm",
|
|
6643
|
-
children: [/* @__PURE__ */ U(
|
|
6648
|
+
children: [/* @__PURE__ */ U(Kt, { className: "size-4 flex-shrink-0" }), /* @__PURE__ */ U("span", { children: n })]
|
|
6644
6649
|
}),
|
|
6645
6650
|
/* @__PURE__ */ U("button", {
|
|
6646
6651
|
type: "button",
|
|
@@ -6654,7 +6659,7 @@ var Fs = ({ wrapperStyles: e }) => /* @__PURE__ */ W("div", {
|
|
|
6654
6659
|
},
|
|
6655
6660
|
disabled: t,
|
|
6656
6661
|
className: N("inline-flex w-full items-center justify-center rounded-md bg-brand px-4 py-2.5 font-medium text-brand-foreground text-sm transition-colors", "hover:bg-brand/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", "cursor-pointer disabled:pointer-events-none disabled:opacity-50"),
|
|
6657
|
-
children: t ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(
|
|
6662
|
+
children: t ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(gn, { className: "mr-2 size-4 animate-spin" }), "Submitting..."] }) : "Request to Join"
|
|
6658
6663
|
})
|
|
6659
6664
|
]
|
|
6660
6665
|
});
|
|
@@ -6702,7 +6707,7 @@ var Fs = ({ wrapperStyles: e }) => /* @__PURE__ */ W("div", {
|
|
|
6702
6707
|
children: [
|
|
6703
6708
|
/* @__PURE__ */ U("div", {
|
|
6704
6709
|
className: N("flex size-12 items-center justify-center rounded-full", f ? "bg-amber-100" : "bg-gray-100"),
|
|
6705
|
-
children: f ? /* @__PURE__ */ U(
|
|
6710
|
+
children: f ? /* @__PURE__ */ U(sn, { className: "size-5 text-amber-600" }) : /* @__PURE__ */ U(_n, { className: "size-5 text-text-2" })
|
|
6706
6711
|
}),
|
|
6707
6712
|
/* @__PURE__ */ U("p", {
|
|
6708
6713
|
className: "font-semibold text-sm text-text-1",
|
|
@@ -6758,7 +6763,7 @@ var Fs = ({ wrapperStyles: e }) => /* @__PURE__ */ W("div", {
|
|
|
6758
6763
|
children: [
|
|
6759
6764
|
/* @__PURE__ */ U("div", {
|
|
6760
6765
|
className: "flex size-14 items-center justify-center rounded-full bg-amber-100",
|
|
6761
|
-
children: /* @__PURE__ */ U(
|
|
6766
|
+
children: /* @__PURE__ */ U(sn, { className: "size-6 text-amber-600" })
|
|
6762
6767
|
}),
|
|
6763
6768
|
/* @__PURE__ */ U("p", {
|
|
6764
6769
|
className: "text-center font-semibold text-sm text-text-1",
|
|
@@ -6829,7 +6834,7 @@ var Fs = ({ wrapperStyles: e }) => /* @__PURE__ */ W("div", {
|
|
|
6829
6834
|
children: [
|
|
6830
6835
|
/* @__PURE__ */ U("div", {
|
|
6831
6836
|
className: N("flex size-14 items-center justify-center rounded-full", m ? "bg-amber-100" : "bg-gray-100"),
|
|
6832
|
-
children: m ? /* @__PURE__ */ U(
|
|
6837
|
+
children: m ? /* @__PURE__ */ U(sn, { className: "size-6 text-amber-600" }) : /* @__PURE__ */ U(_n, { className: "size-6 text-text-2" })
|
|
6833
6838
|
}),
|
|
6834
6839
|
/* @__PURE__ */ U(ae, {
|
|
6835
6840
|
className: "text-center font-semibold text-lg",
|
|
@@ -6872,7 +6877,7 @@ var Fs = ({ wrapperStyles: e }) => /* @__PURE__ */ W("div", {
|
|
|
6872
6877
|
});
|
|
6873
6878
|
}, Qs = ({ inputStyles: e, ...t }) => /* @__PURE__ */ U(Ds, {
|
|
6874
6879
|
inputStyles: N("border-[#D1D6E1] bg-white text-sm placeholder:text-[#717C91] focus-visible:ring-1 focus-visible:ring-[#D1D6E1] sm:placeholder:text-sm", e),
|
|
6875
|
-
leftIcon: /* @__PURE__ */ U(
|
|
6880
|
+
leftIcon: /* @__PURE__ */ U(xn, { size: 16 }),
|
|
6876
6881
|
...t
|
|
6877
6882
|
}), $s = Ae(({ children: e, className: t, config: n, content: r, styles: i, elementKey: a, generatedClassName: o, ...s }, c) => {
|
|
6878
6883
|
let l = e ?? r;
|
|
@@ -6882,7 +6887,7 @@ var Fs = ({ wrapperStyles: e }) => /* @__PURE__ */ W("div", {
|
|
|
6882
6887
|
"data-levo_element_type": "Heading",
|
|
6883
6888
|
className: N(t, o),
|
|
6884
6889
|
...s,
|
|
6885
|
-
children: l ?
|
|
6890
|
+
children: l ? Ft(l) : ""
|
|
6886
6891
|
}) : null;
|
|
6887
6892
|
});
|
|
6888
6893
|
$s.displayName = "BaseHeading";
|
|
@@ -6894,7 +6899,7 @@ var ec = _($s), tc = Ae(({ className: e, elementKey: t, generatedClassName: n, c
|
|
|
6894
6899
|
"data-levo_element_type": "Iframe",
|
|
6895
6900
|
className: N(e, n, s && "[&>*]:pointer-events-none"),
|
|
6896
6901
|
...a,
|
|
6897
|
-
children: typeof r == "string" ?
|
|
6902
|
+
children: typeof r == "string" ? Ft(r) : ""
|
|
6898
6903
|
});
|
|
6899
6904
|
});
|
|
6900
6905
|
tc.displayName = "BaseIframe";
|
|
@@ -7161,7 +7166,7 @@ var mc = (e) => dc[e] || null, hc = (e) => {
|
|
|
7161
7166
|
break;
|
|
7162
7167
|
}
|
|
7163
7168
|
return t;
|
|
7164
|
-
}, yc = I(() => import("./Beams-
|
|
7169
|
+
}, yc = I(() => import("./Beams-DEybrmUZ.js").then((e) => ({ default: e.BackgroundBeams }))), bc = I(() => import("./Dots-CMyy77GM.js").then((e) => ({ default: e.BackgroundDots }))), xc = I(() => import("./Grid-kGCr-6by.js").then((e) => ({ default: e.BackgroundGrid }))), Sc = I(() => import("./Gradient-DBn_zXzI.js").then((e) => ({ default: e.BackgroundGradient }))), Cc = I(() => import("./Waves-DjLcbiBu.js").then((e) => ({ default: e.BackgroundWaves }))), wc = je(() => /* @__PURE__ */ U("div", { className: "absolute inset-0 z-[-1] bg-transparent" }));
|
|
7165
7170
|
wc.displayName = "EffectFallback";
|
|
7166
7171
|
var Tc = je(({ config: e }) => {
|
|
7167
7172
|
let { type: t, colors: n, settings: r } = e, i = z(() => {
|
|
@@ -7247,9 +7252,9 @@ var Dc = Ae(({ children: e, className: t, elementKey: n, generatedClassName: r,
|
|
|
7247
7252
|
]
|
|
7248
7253
|
}));
|
|
7249
7254
|
Dc.displayName = "BaseSection";
|
|
7250
|
-
var Oc = _(Dc), kc =
|
|
7255
|
+
var Oc = _(Dc), kc = Pn.Root;
|
|
7251
7256
|
function Ac({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ref: o, ...s }) {
|
|
7252
|
-
return /* @__PURE__ */ U(
|
|
7257
|
+
return /* @__PURE__ */ U(Pn.List, {
|
|
7253
7258
|
ref: o,
|
|
7254
7259
|
"data-levo_element_key": t,
|
|
7255
7260
|
"data-levo_element_type": "TabsList",
|
|
@@ -7259,7 +7264,7 @@ function Ac({ className: e, elementKey: t, generatedClassName: n, content: r, co
|
|
|
7259
7264
|
}
|
|
7260
7265
|
Ac.displayName = "BaseTabsList";
|
|
7261
7266
|
function jc({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ref: o, ...s }) {
|
|
7262
|
-
return /* @__PURE__ */ U(
|
|
7267
|
+
return /* @__PURE__ */ U(Pn.Trigger, {
|
|
7263
7268
|
ref: o,
|
|
7264
7269
|
"data-levo_element_key": t,
|
|
7265
7270
|
"data-levo_element_type": "TabsTrigger",
|
|
@@ -7270,7 +7275,7 @@ function jc({ className: e, elementKey: t, generatedClassName: n, content: r, co
|
|
|
7270
7275
|
}
|
|
7271
7276
|
jc.displayName = "BaseTabsTrigger";
|
|
7272
7277
|
function Mc({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ref: o, ...s }) {
|
|
7273
|
-
return /* @__PURE__ */ U(
|
|
7278
|
+
return /* @__PURE__ */ U(Pn.Content, {
|
|
7274
7279
|
ref: o,
|
|
7275
7280
|
"data-levo_element_key": t,
|
|
7276
7281
|
"data-levo_element_type": "TabsContent",
|
|
@@ -7287,7 +7292,7 @@ var Nc = _(Ac), Pc = _(jc), Fc = _(Mc), Ic = { TypographyBaseStyles: "_Typograph
|
|
|
7287
7292
|
"data-levo_element_type": "Typography",
|
|
7288
7293
|
className: N(Ic.TypographyBaseStyles, t, o, !l && "text-muted-foreground"),
|
|
7289
7294
|
...s,
|
|
7290
|
-
children: l ?
|
|
7295
|
+
children: l ? Ft(l) : ""
|
|
7291
7296
|
});
|
|
7292
7297
|
});
|
|
7293
7298
|
Lc.displayName = "BaseTypography";
|
|
@@ -7361,12 +7366,12 @@ var Rc = _(Lc), Q = {
|
|
|
7361
7366
|
children: [/* @__PURE__ */ W("button", {
|
|
7362
7367
|
className: Q.userMenuItem,
|
|
7363
7368
|
onClick: l,
|
|
7364
|
-
children: [/* @__PURE__ */ U(
|
|
7369
|
+
children: [/* @__PURE__ */ U(Dn, { size: 16 }), /* @__PURE__ */ U("span", { children: "Profile" })]
|
|
7365
7370
|
}), /* @__PURE__ */ W("button", {
|
|
7366
7371
|
className: N(Q.userMenuItem, Q.logoutItem),
|
|
7367
7372
|
onClick: u,
|
|
7368
7373
|
disabled: a,
|
|
7369
|
-
children: [a ? /* @__PURE__ */ U("div", { className: Q.spinner }) : /* @__PURE__ */ U(
|
|
7374
|
+
children: [a ? /* @__PURE__ */ U("div", { className: Q.spinner }) : /* @__PURE__ */ U(vn, { size: 16 }), /* @__PURE__ */ U("span", { children: a ? "Logging out..." : "Logout" })]
|
|
7370
7375
|
})]
|
|
7371
7376
|
})]
|
|
7372
7377
|
})] }) : /* @__PURE__ */ U(b, {
|
|
@@ -7389,7 +7394,7 @@ var Rc = _(Lc), Q = {
|
|
|
7389
7394
|
children: [
|
|
7390
7395
|
/* @__PURE__ */ U("div", {
|
|
7391
7396
|
className: "flex size-16 items-center justify-center rounded-full bg-green-100",
|
|
7392
|
-
children: /* @__PURE__ */ U(
|
|
7397
|
+
children: /* @__PURE__ */ U(en, { className: "size-8 text-green-600" })
|
|
7393
7398
|
}),
|
|
7394
7399
|
/* @__PURE__ */ W("div", {
|
|
7395
7400
|
className: "text-center",
|
|
@@ -7453,7 +7458,7 @@ var Rc = _(Lc), Q = {
|
|
|
7453
7458
|
target: "_blank",
|
|
7454
7459
|
rel: "noopener noreferrer",
|
|
7455
7460
|
className: "flex w-full items-center justify-center gap-2 rounded-lg border border-gray-200 bg-gray-50 px-4 py-2.5 font-medium text-gray-700 text-sm transition-colors hover:bg-gray-100",
|
|
7456
|
-
children: [/* @__PURE__ */ U(
|
|
7461
|
+
children: [/* @__PURE__ */ U(cn, { className: "size-4" }), "Download Invoice"]
|
|
7457
7462
|
})
|
|
7458
7463
|
})
|
|
7459
7464
|
] })
|
|
@@ -7640,7 +7645,7 @@ var Rc = _(Lc), Q = {
|
|
|
7640
7645
|
let A = () => {
|
|
7641
7646
|
g(null), v(null), m("loading"), S(null), t();
|
|
7642
7647
|
};
|
|
7643
|
-
return e ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(
|
|
7648
|
+
return e ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(Nn.Root, { children: /* @__PURE__ */ U("div", {
|
|
7644
7649
|
className: "fixed inset-0 z-100 flex justify-center bg-black/50 pt-24",
|
|
7645
7650
|
children: /* @__PURE__ */ W("div", {
|
|
7646
7651
|
className: N("flex h-fit w-[90%] max-w-[500px] flex-col rounded-lg bg-white p-6"),
|
|
@@ -7657,7 +7662,7 @@ var Rc = _(Lc), Q = {
|
|
|
7657
7662
|
type: "button",
|
|
7658
7663
|
onClick: A,
|
|
7659
7664
|
className: "rounded-md p-2 hover:bg-gray-100 focus:outline-none",
|
|
7660
|
-
children: /* @__PURE__ */ U(
|
|
7665
|
+
children: /* @__PURE__ */ U(kn, { className: "size-4" })
|
|
7661
7666
|
})]
|
|
7662
7667
|
}), /* @__PURE__ */ W("div", { children: [
|
|
7663
7668
|
x && /* @__PURE__ */ U("div", {
|
|
@@ -7694,7 +7699,7 @@ var Rc = _(Lc), Q = {
|
|
|
7694
7699
|
//#endregion
|
|
7695
7700
|
//#region src/components/ui/base/avatar.tsx
|
|
7696
7701
|
function Wc({ className: e, ...t }) {
|
|
7697
|
-
return /* @__PURE__ */ U(
|
|
7702
|
+
return /* @__PURE__ */ U(jn.Root, {
|
|
7698
7703
|
"data-slot": "avatar",
|
|
7699
7704
|
className: N("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", e),
|
|
7700
7705
|
...t
|
|
@@ -7703,7 +7708,7 @@ function Wc({ className: e, ...t }) {
|
|
|
7703
7708
|
function Gc({ className: e, isActive: t, ...n }) {
|
|
7704
7709
|
return /* @__PURE__ */ W("div", {
|
|
7705
7710
|
className: "relative inline-block h-full w-full overflow-hidden",
|
|
7706
|
-
children: [/* @__PURE__ */ U(
|
|
7711
|
+
children: [/* @__PURE__ */ U(jn.Image, {
|
|
7707
7712
|
"data-slot": "avatar-image",
|
|
7708
7713
|
className: N("aspect-square size-full", e),
|
|
7709
7714
|
...n
|
|
@@ -7711,7 +7716,7 @@ function Gc({ className: e, isActive: t, ...n }) {
|
|
|
7711
7716
|
});
|
|
7712
7717
|
}
|
|
7713
7718
|
function Kc({ className: e, ...t }) {
|
|
7714
|
-
return /* @__PURE__ */ U(
|
|
7719
|
+
return /* @__PURE__ */ U(jn.Image, {
|
|
7715
7720
|
"data-slot": "avatar-image",
|
|
7716
7721
|
className: N("aspect-square size-full", e),
|
|
7717
7722
|
...t
|
|
@@ -7720,7 +7725,7 @@ function Kc({ className: e, ...t }) {
|
|
|
7720
7725
|
function qc({ className: e, isActive: t, ...n }) {
|
|
7721
7726
|
return /* @__PURE__ */ W("div", {
|
|
7722
7727
|
className: "relative inline-block h-full w-full overflow-hidden",
|
|
7723
|
-
children: [/* @__PURE__ */ U(
|
|
7728
|
+
children: [/* @__PURE__ */ U(jn.Fallback, {
|
|
7724
7729
|
"data-slot": "avatar-fallback",
|
|
7725
7730
|
className: N("flex size-full items-center justify-center rounded-full bg-muted", e),
|
|
7726
7731
|
...n
|
|
@@ -7728,7 +7733,7 @@ function qc({ className: e, isActive: t, ...n }) {
|
|
|
7728
7733
|
});
|
|
7729
7734
|
}
|
|
7730
7735
|
function Jc({ className: e, ...t }) {
|
|
7731
|
-
return /* @__PURE__ */ U(
|
|
7736
|
+
return /* @__PURE__ */ U(jn.Fallback, {
|
|
7732
7737
|
"data-slot": "avatar-fallback",
|
|
7733
7738
|
className: N("flex size-full items-center justify-center rounded-full bg-muted", e),
|
|
7734
7739
|
...t
|
|
@@ -7817,7 +7822,7 @@ var el = ({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout:
|
|
|
7817
7822
|
className: e,
|
|
7818
7823
|
...n
|
|
7819
7824
|
}),
|
|
7820
|
-
Chevron: ({ className: e, orientation: t, ...n }) => U(t === "left" ?
|
|
7825
|
+
Chevron: ({ className: e, orientation: t, ...n }) => U(t === "left" ? an : t === "right" ? on : rn, {
|
|
7821
7826
|
className: N("size-4", e),
|
|
7822
7827
|
...n
|
|
7823
7828
|
}),
|
|
@@ -7897,7 +7902,7 @@ var rl = {
|
|
|
7897
7902
|
className: "h-36 w-full rounded object-cover sm:h-full sm:max-h-36 sm:min-h-16 sm:w-36"
|
|
7898
7903
|
}) : /* @__PURE__ */ U("div", {
|
|
7899
7904
|
className: "flex h-36 w-full items-center justify-center rounded bg-gray-100 sm:h-full sm:max-h-36 sm:min-h-16 sm:w-36",
|
|
7900
|
-
children: /* @__PURE__ */ U(
|
|
7905
|
+
children: /* @__PURE__ */ U(fn, {
|
|
7901
7906
|
size: 32,
|
|
7902
7907
|
className: "text-gray-400"
|
|
7903
7908
|
})
|
|
@@ -8009,7 +8014,7 @@ var rl = {
|
|
|
8009
8014
|
placeholder: "Search...",
|
|
8010
8015
|
value: r,
|
|
8011
8016
|
onChange: (e) => m(e.target.value),
|
|
8012
|
-
leftIcon: /* @__PURE__ */ U(
|
|
8017
|
+
leftIcon: /* @__PURE__ */ U(xn, {
|
|
8013
8018
|
size: 16,
|
|
8014
8019
|
className: "text-text-2"
|
|
8015
8020
|
}),
|
|
@@ -8040,7 +8045,7 @@ var rl = {
|
|
|
8040
8045
|
}),
|
|
8041
8046
|
!l && d && !s && a.length === 0 && r.length >= 2 && /* @__PURE__ */ W("div", {
|
|
8042
8047
|
className: "flex flex-col items-center gap-2 px-4 py-8 text-center text-muted-foreground text-sm",
|
|
8043
|
-
children: [/* @__PURE__ */ U(
|
|
8048
|
+
children: [/* @__PURE__ */ U(Sn, {
|
|
8044
8049
|
size: 32,
|
|
8045
8050
|
className: "opacity-40"
|
|
8046
8051
|
}), /* @__PURE__ */ W("p", { children: [
|
|
@@ -8083,7 +8088,7 @@ var rl = {
|
|
|
8083
8088
|
borderColor: "var(--color-border)"
|
|
8084
8089
|
},
|
|
8085
8090
|
children: [
|
|
8086
|
-
/* @__PURE__ */ U(
|
|
8091
|
+
/* @__PURE__ */ U(xn, {
|
|
8087
8092
|
size: 16,
|
|
8088
8093
|
className: "shrink-0"
|
|
8089
8094
|
}),
|
|
@@ -8099,7 +8104,7 @@ var rl = {
|
|
|
8099
8104
|
onClick: () => r(!0),
|
|
8100
8105
|
className: "flex h-full w-full cursor-pointer items-center justify-center px-3 py-2 text-sm text-text-2 hover:text-text-1",
|
|
8101
8106
|
"aria-label": "Search",
|
|
8102
|
-
children: /* @__PURE__ */ U(
|
|
8107
|
+
children: /* @__PURE__ */ U(xn, {
|
|
8103
8108
|
size: 20,
|
|
8104
8109
|
className: "shrink-0"
|
|
8105
8110
|
})
|
|
@@ -8228,15 +8233,15 @@ var rl = {
|
|
|
8228
8233
|
let { field_interface: t = "", key: n = "", hidden: r } = e.field;
|
|
8229
8234
|
if (!t || !n || r) return null;
|
|
8230
8235
|
switch (t) {
|
|
8231
|
-
case
|
|
8232
|
-
case
|
|
8233
|
-
case
|
|
8236
|
+
case Gt.TextWidget: return /* @__PURE__ */ U(fl, { ...e });
|
|
8237
|
+
case Gt.DropdownWidget: return /* @__PURE__ */ U(dl, { ...e });
|
|
8238
|
+
case Gt.CheckboxWidget: return /* @__PURE__ */ U(dl, { ...e });
|
|
8234
8239
|
default: return null;
|
|
8235
8240
|
}
|
|
8236
8241
|
}, ml = [
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
|
|
8242
|
+
Gt?.DropdownWidget,
|
|
8243
|
+
Gt?.TextWidget,
|
|
8244
|
+
Gt?.CheckboxWidget
|
|
8240
8245
|
], hl = {
|
|
8241
8246
|
id: "LEVO_FILTER_SEARCH",
|
|
8242
8247
|
key: "search",
|
|
@@ -8471,7 +8476,7 @@ var rl = {
|
|
|
8471
8476
|
className: "rounded-md p-2 hover:bg-gray-50 focus:outline-none",
|
|
8472
8477
|
"aria-label": "Back",
|
|
8473
8478
|
onClick: o,
|
|
8474
|
-
children: /* @__PURE__ */ U(
|
|
8479
|
+
children: /* @__PURE__ */ U(an, { className: "size-4" })
|
|
8475
8480
|
}),
|
|
8476
8481
|
/* @__PURE__ */ W("p", {
|
|
8477
8482
|
className: "font-semibold text-md",
|
|
@@ -8503,7 +8508,7 @@ var rl = {
|
|
|
8503
8508
|
zIndex: e ? "1" : "-1"
|
|
8504
8509
|
},
|
|
8505
8510
|
isLoading: r,
|
|
8506
|
-
children: /* @__PURE__ */ U(
|
|
8511
|
+
children: /* @__PURE__ */ U(tn, { className: "h-fit" })
|
|
8507
8512
|
})]
|
|
8508
8513
|
}),
|
|
8509
8514
|
c.length > 0 && /* @__PURE__ */ W("div", {
|
|
@@ -8997,7 +9002,7 @@ var rl = {
|
|
|
8997
9002
|
className: "flex max-w-16 items-center gap-2",
|
|
8998
9003
|
children: [/* @__PURE__ */ U("div", {
|
|
8999
9004
|
className: "rounded bg-green-500 p-2",
|
|
9000
|
-
children: /* @__PURE__ */ U(
|
|
9005
|
+
children: /* @__PURE__ */ U(Tn, {
|
|
9001
9006
|
size: 16,
|
|
9002
9007
|
className: "text-white"
|
|
9003
9008
|
})
|
|
@@ -9016,7 +9021,7 @@ var rl = {
|
|
|
9016
9021
|
onClick: s,
|
|
9017
9022
|
className: "rounded-md p-1 text-green-600 transition-colors hover:bg-green-100 hover:text-green-800",
|
|
9018
9023
|
"aria-label": "Remove coupon",
|
|
9019
|
-
children: /* @__PURE__ */ U(
|
|
9024
|
+
children: /* @__PURE__ */ U(On, { size: 18 })
|
|
9020
9025
|
})]
|
|
9021
9026
|
}), /* @__PURE__ */ W("div", {
|
|
9022
9027
|
className: "text-green-700 text-xs",
|
|
@@ -9042,7 +9047,7 @@ var rl = {
|
|
|
9042
9047
|
className: "rounded-full bg-gray-200 px-2 py-0.5 text-gray-600 text-xs",
|
|
9043
9048
|
children: a
|
|
9044
9049
|
})]
|
|
9045
|
-
}), /* @__PURE__ */ U("span", { children: /* @__PURE__ */ U(
|
|
9050
|
+
}), /* @__PURE__ */ U("span", { children: /* @__PURE__ */ U(on, {}) })]
|
|
9046
9051
|
})]
|
|
9047
9052
|
})]
|
|
9048
9053
|
}), /* @__PURE__ */ U("div", {
|
|
@@ -9274,7 +9279,7 @@ var Dl = async (e, t, n) => {
|
|
|
9274
9279
|
children: "No tickets available for this event."
|
|
9275
9280
|
})
|
|
9276
9281
|
}),
|
|
9277
|
-
/* @__PURE__ */ U(
|
|
9282
|
+
/* @__PURE__ */ U(Nn.Root, { children: l && /* @__PURE__ */ U("div", {
|
|
9278
9283
|
className: "fixed inset-0 z-100 flex justify-center bg-black/50 pt-24",
|
|
9279
9284
|
children: /* @__PURE__ */ W("div", {
|
|
9280
9285
|
className: N("flex h-fit max-w-[90%] flex-col rounded-lg bg-white p-4 md:w-[40%]", D ? "md:max-w-[30%]" : "md:max-w-[40%]"),
|
|
@@ -9291,7 +9296,7 @@ var Dl = async (e, t, n) => {
|
|
|
9291
9296
|
type: "button",
|
|
9292
9297
|
onClick: ae,
|
|
9293
9298
|
className: "rounded-md p-2 hover:bg-gray-100 focus:outline-none",
|
|
9294
|
-
children: /* @__PURE__ */ U(
|
|
9299
|
+
children: /* @__PURE__ */ U(kn, { className: "size-4" })
|
|
9295
9300
|
})]
|
|
9296
9301
|
}), /* @__PURE__ */ W("div", { children: [ee && /* @__PURE__ */ U("div", {
|
|
9297
9302
|
className: "mb-4 rounded-md bg-red-50 p-3 text-red-600 text-sm",
|