@levo-so/studio 0.2.2 → 0.3.1
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-mq3o5Hrf.js → BillingStep-DNg2PTXV.js} +1 -1
- package/{Button-DIDhszPV.js → Button-DUBI4k7m.js} +2 -2
- package/{EntryCard-DiMic9hv.js → EntryCard-B3wpp5oI.js} +1 -1
- package/{KBChatWidget-hquzCtvm.js → KBChatWidget-BAvoYVFq.js} +400 -389
- package/{LoginCard-Cs9X8LC8.js → LoginCard-CaLgm9c4.js} +1 -1
- package/{PendingApprovalCard-wW8Ko-w8.js → PendingApprovalCard-ARwwmFAe.js} +1 -1
- package/{PopupRenderer-Bncp54gB-CQloeJYR.js → PopupRenderer-Bncp54gB-DTM3Wdxp.js} +1 -1
- package/{ProfileCard-BhnTmQaE.js → ProfileCard-CnL0X_Ui.js} +1 -1
- package/{bookingCard-BSRCH57N.js → bookingCard-C0_NNfko.js} +2 -2
- package/{dist-D3lGqLBP.js → dist-DanVCpXe.js} +357 -356
- package/index.d.ts +28 -1
- package/index.js +676 -626
- package/kbChat-DnIItqUJ.js +168 -0
- package/package.json +3 -3
- package/pillChrome-BHFzM9re.js +20 -0
- package/studio.css +1 -1
- package/kbChat-g2bupQqp.js +0 -163
- package/pillChrome-Cx8qlbsn.js +0 -16
package/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { i as e, n as t, o as n, r, t as i } from "./nodeAlignment-DS9_DLGB.js";
|
|
3
|
-
import { _ as a, g as o, v as s } from "./PopupRenderer-Bncp54gB-
|
|
3
|
+
import { _ as a, g as o, v as s } from "./PopupRenderer-Bncp54gB-DTM3Wdxp.js";
|
|
4
4
|
import { t as c } from "./inlineCollectionTheme-D2w17LHX.js";
|
|
5
5
|
import { t as l } from "./RteThemeProvider-DxYOzcck.js";
|
|
6
|
-
import { i as u, n as d } from "./dist-
|
|
7
|
-
import { _ as f, a as p, b as m, c as h, d as g, f as _, g as v, h as y, i as b, l as x, m as S, n as C, o as w, p as T, r as E, s as
|
|
8
|
-
import { n as
|
|
9
|
-
import { n as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { a as
|
|
13
|
-
import { t as
|
|
14
|
-
import { n as
|
|
15
|
-
import { a as
|
|
16
|
-
import { c as
|
|
17
|
-
import { LevoInsightsBlock as
|
|
18
|
-
import * as
|
|
19
|
-
import
|
|
6
|
+
import { i as u, n as d } from "./dist-DanVCpXe.js";
|
|
7
|
+
import { _ as f, a as p, b as m, c as h, d as g, f as _, g as v, h as y, i as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as ee, y as te } from "./Button-DUBI4k7m.js";
|
|
8
|
+
import { n as A, t as ne } from "./AuthProvider-CFQqiIf1.js";
|
|
9
|
+
import { n as j, t as re } from "./ModalManager-7Nhr8gTs.js";
|
|
10
|
+
import { t as M } from "./cn-BL52QQS4.js";
|
|
11
|
+
import { t as ie } from "./Spinner-HCqR1eGW.js";
|
|
12
|
+
import { a as ae, i as oe, n as se, o as ce, r as le, s as ue, t as de } from "./dialog-RrTP-MGm.js";
|
|
13
|
+
import { t as fe } from "./useLogin-BhysESLW.js";
|
|
14
|
+
import { n as pe, t as me } from "./StripePaymentModal-Cw-AlxTS.js";
|
|
15
|
+
import { a as he, c as ge, i as _e, l as ve, n as ye, o as be, r as xe, s as Se, t as Ce } from "./authentication-TdyaDNTn.js";
|
|
16
|
+
import { c as N } from "react/compiler-runtime";
|
|
17
|
+
import { LevoInsightsBlock as we, LevoInsightsPage as Te, errorHandler as Ee, useLevo as P } from "@levo-so/react";
|
|
18
|
+
import * as De from "react";
|
|
19
|
+
import F, { Fragment as Oe, Suspense as ke, createContext as Ae, forwardRef as je, lazy as I, memo as Me, use as Ne, useCallback as Pe, useContext as Fe, useEffect as L, useId as Ie, useLayoutEffect as Le, useMemo as R, useRef as z, useState as B, useSyncExternalStore as Re } from "react";
|
|
20
20
|
import { Fragment as V, jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
21
21
|
import ze, { clsx as Be } from "clsx";
|
|
22
22
|
import { createRuntimeFn as Ve } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
@@ -921,7 +921,7 @@ function qr() {
|
|
|
921
921
|
Wr !== null && (cancelAnimationFrame(Wr), Wr = null);
|
|
922
922
|
}
|
|
923
923
|
function Jr(e) {
|
|
924
|
-
let t = z(null), n = z(!1), r = z(/* @__PURE__ */ new Set()), i = Re(
|
|
924
|
+
let t = z(null), n = z(!1), r = z(/* @__PURE__ */ new Set()), i = Re(Pe((e) => (r.current.add(e), () => r.current.delete(e)), []), Pe(() => n.current, []));
|
|
925
925
|
return L(() => {
|
|
926
926
|
if (!e) {
|
|
927
927
|
n.current && (n.current = !1, r.current.forEach((e) => e()));
|
|
@@ -1659,7 +1659,7 @@ var $r = ({ label: e, disabled: t, onClick: n, children: r, variant: i = "defaul
|
|
|
1659
1659
|
},
|
|
1660
1660
|
children: [
|
|
1661
1661
|
/* @__PURE__ */ H("style", { children: "\n @keyframes shimmer {\n 0% { background-position: 200% 0; }\n 100% { background-position: -200% 0; }\n }\n @keyframes scanLine {\n 0% { top: 0%; opacity: 0; }\n 5% { opacity: 1; }\n 50% { top: calc(100% - 2px); }\n 55% { opacity: 0.6; }\n 95% { opacity: 1; }\n 100% { top: 0%; opacity: 0; }\n }\n " }),
|
|
1662
|
-
Object.keys(f).map((t) => /* @__PURE__ */ U(
|
|
1662
|
+
Object.keys(f).map((t) => /* @__PURE__ */ U(Oe, { children: [/* @__PURE__ */ H(di, {
|
|
1663
1663
|
type: t,
|
|
1664
1664
|
item: e.hovered[t],
|
|
1665
1665
|
isSelected: !1,
|
|
@@ -1872,7 +1872,7 @@ var Ti = ({ isPageGenerating: e = !1, isGenerationCancelled: t = !1, totalBlocks
|
|
|
1872
1872
|
payload: n
|
|
1873
1873
|
}, "*")), m.current = null;
|
|
1874
1874
|
}, 300);
|
|
1875
|
-
},
|
|
1875
|
+
}, D = (e) => {
|
|
1876
1876
|
e.preventDefault(), m.current &&= (clearTimeout(m.current), null), o((e) => {
|
|
1877
1877
|
let t = vi(e);
|
|
1878
1878
|
if (t) {
|
|
@@ -1888,10 +1888,10 @@ var Ti = ({ isPageGenerating: e = !1, isGenerationCancelled: t = !1, totalBlocks
|
|
|
1888
1888
|
}
|
|
1889
1889
|
return e;
|
|
1890
1890
|
});
|
|
1891
|
-
},
|
|
1891
|
+
}, O = () => {
|
|
1892
1892
|
S(!0), window.parent.postMessage({ type: J.STOP_GENERATION }, "*");
|
|
1893
|
-
},
|
|
1894
|
-
let t =
|
|
1893
|
+
}, k = a.selected.block?.element ?? null, ee = k ? Array.from(document.querySelectorAll(`[${q.BLOCK}]`)) : [], te = k ? ee.indexOf(k) : -1, A = te > 0, ne = te >= 0 && te < ee.length - 1, j = (e) => {
|
|
1894
|
+
let t = k?.dataset?.levoBlockId;
|
|
1895
1895
|
t && window.parent.postMessage({
|
|
1896
1896
|
type: J.PREVIEW_MOVE_BLOCK,
|
|
1897
1897
|
payload: {
|
|
@@ -1899,14 +1899,14 @@ var Ti = ({ isPageGenerating: e = !1, isGenerationCancelled: t = !1, totalBlocks
|
|
|
1899
1899
|
direction: e
|
|
1900
1900
|
}
|
|
1901
1901
|
}, "*");
|
|
1902
|
-
},
|
|
1903
|
-
let e =
|
|
1902
|
+
}, re = () => {
|
|
1903
|
+
let e = k?.dataset?.levoBlockId;
|
|
1904
1904
|
e && window.parent.postMessage({
|
|
1905
1905
|
type: J.PREVIEW_DELETE_BLOCK,
|
|
1906
1906
|
payload: { blockId: e }
|
|
1907
1907
|
}, "*");
|
|
1908
|
-
},
|
|
1909
|
-
let e =
|
|
1908
|
+
}, M = () => {
|
|
1909
|
+
let e = k?.dataset?.levoBlockId;
|
|
1910
1910
|
e && window.parent.postMessage({
|
|
1911
1911
|
type: J.PREVIEW_OPEN_BLOCK_PANEL,
|
|
1912
1912
|
payload: {
|
|
@@ -1914,13 +1914,13 @@ var Ti = ({ isPageGenerating: e = !1, isGenerationCancelled: t = !1, totalBlocks
|
|
|
1914
1914
|
tab: "block"
|
|
1915
1915
|
}
|
|
1916
1916
|
}, "*");
|
|
1917
|
-
},
|
|
1918
|
-
let e =
|
|
1917
|
+
}, ie = () => {
|
|
1918
|
+
let e = k?.dataset?.levoBlockId;
|
|
1919
1919
|
e && window.parent.postMessage({
|
|
1920
1920
|
type: J.PREVIEW_DUPLICATE_BLOCK,
|
|
1921
1921
|
payload: { blockId: e }
|
|
1922
1922
|
}, "*");
|
|
1923
|
-
},
|
|
1923
|
+
}, ae = (e) => {
|
|
1924
1924
|
if (e.source === window.parent) switch (e.data.type) {
|
|
1925
1925
|
case J.STUDIO_SELECT: {
|
|
1926
1926
|
let t = gi(e.data.payload);
|
|
@@ -1983,8 +1983,8 @@ var Ti = ({ isPageGenerating: e = !1, isGenerationCancelled: t = !1, totalBlocks
|
|
|
1983
1983
|
return C.current = e, () => clearTimeout(n);
|
|
1984
1984
|
}
|
|
1985
1985
|
!e && !C.current && g(!1), C.current = e;
|
|
1986
|
-
}, [e, t]), L(() => (document.addEventListener("mouseover", w), document.addEventListener("mouseleave", T), document.addEventListener("click", E), document.addEventListener("dblclick",
|
|
1987
|
-
document.removeEventListener("mouseover", w), document.removeEventListener("mouseleave", T), document.removeEventListener("click", E), document.removeEventListener("dblclick",
|
|
1986
|
+
}, [e, t]), L(() => (document.addEventListener("mouseover", w), document.addEventListener("mouseleave", T), document.addEventListener("click", E), document.addEventListener("dblclick", D), window.addEventListener("message", ae), window.parent.postMessage({ type: J.PREVIEW_READY }, "*"), () => {
|
|
1987
|
+
document.removeEventListener("mouseover", w), document.removeEventListener("mouseleave", T), document.removeEventListener("click", E), document.removeEventListener("dblclick", D), window.removeEventListener("message", ae), m.current &&= (clearTimeout(m.current), null);
|
|
1988
1988
|
}), []), /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(fi, {
|
|
1989
1989
|
selections: a,
|
|
1990
1990
|
userHighlights: l,
|
|
@@ -1997,15 +1997,15 @@ var Ti = ({ isPageGenerating: e = !1, isGenerationCancelled: t = !1, totalBlocks
|
|
|
1997
1997
|
totalBlocksCount: n,
|
|
1998
1998
|
blocksGenerationInfo: r,
|
|
1999
1999
|
generationStatusOverlays: f,
|
|
2000
|
-
onStopGeneration:
|
|
2000
|
+
onStopGeneration: O
|
|
2001
2001
|
}), /* @__PURE__ */ H(Zr, {
|
|
2002
2002
|
selectedBlock: a.selected.block,
|
|
2003
|
-
canMoveUp:
|
|
2004
|
-
canMoveDown:
|
|
2005
|
-
onMove:
|
|
2006
|
-
onDelete:
|
|
2007
|
-
onDuplicate:
|
|
2008
|
-
onOpenLayouts:
|
|
2003
|
+
canMoveUp: A,
|
|
2004
|
+
canMoveDown: ne,
|
|
2005
|
+
onMove: j,
|
|
2006
|
+
onDelete: re,
|
|
2007
|
+
onDuplicate: ie,
|
|
2008
|
+
onOpenLayouts: M
|
|
2009
2009
|
})] });
|
|
2010
2010
|
}, Ei = (e, t) => {
|
|
2011
2011
|
let n = t?.settings?.body_code ?? "", r = e?.settings?.body_code ?? "";
|
|
@@ -4289,7 +4289,7 @@ var qi = (e, t) => {
|
|
|
4289
4289
|
strict: t,
|
|
4290
4290
|
children: e
|
|
4291
4291
|
}), No = (e) => {
|
|
4292
|
-
let t =
|
|
4292
|
+
let t = P(), { blockData: n, parsedBlockData: r, setParsedBlockData: i, pageContext: a, blockContext: o, workspace_id: s } = f(), c = {
|
|
4293
4293
|
page: 1,
|
|
4294
4294
|
...(r?.source?.find((t) => t.field_key === e))?.params?.query
|
|
4295
4295
|
}, [l, u] = B(c), [d, p] = B(!1), [m, h] = B(o?.[e]), g = (e) => {
|
|
@@ -4338,7 +4338,7 @@ var qi = (e, t) => {
|
|
|
4338
4338
|
meta: m?.content?.meta
|
|
4339
4339
|
};
|
|
4340
4340
|
}, Po = (e) => {
|
|
4341
|
-
let t =
|
|
4341
|
+
let t = P(), { parsedBlockData: n, blockContext: r, workspace_id: i } = f(), a = n?.source?.find((t) => t.field_key === e), o = {
|
|
4342
4342
|
page: 1,
|
|
4343
4343
|
...a?.params?.query
|
|
4344
4344
|
}, [s, c] = B(o), [l, u] = B(!1), [d, p] = B(r?.[e]), m = (e) => {
|
|
@@ -4460,21 +4460,21 @@ var qi = (e, t) => {
|
|
|
4460
4460
|
getAllBlocks() {
|
|
4461
4461
|
return this.blocks;
|
|
4462
4462
|
}
|
|
4463
|
-
}, zo = Ro.getInstance(), Bo = Jt(() => import("./kbChat-
|
|
4463
|
+
}, zo = Ro.getInstance(), Bo = Jt(() => import("./kbChat-DnIItqUJ.js"), { ssr: !1 }), Vo = ({ workspace: e, site: t }) => /* @__PURE__ */ H(Bo, {
|
|
4464
4464
|
workspaceId: e?.id,
|
|
4465
4465
|
siteName: t?.name ?? e?.name,
|
|
4466
4466
|
siteLogo: t?.logo?.location,
|
|
4467
4467
|
siteIcon: t?.icon?.location,
|
|
4468
4468
|
showBranding: !!e?.feature_flag?.branding,
|
|
4469
4469
|
siteSlug: t?.slug
|
|
4470
|
-
}), Ho =
|
|
4471
|
-
let i =
|
|
4470
|
+
}), Ho = F.memo(({ block_key: e, block_version: t, blocks: n, ...r }) => {
|
|
4471
|
+
let i = F.useMemo(() => `${e}:${t}`, [e, t]), a = n[i];
|
|
4472
4472
|
if (!a) return console.warn(`[LevoBlock.tsx] Block Not Found - ${i}`), null;
|
|
4473
4473
|
let { settings: o, source: s, ...c } = r;
|
|
4474
4474
|
return /* @__PURE__ */ H(a, { ...c });
|
|
4475
4475
|
});
|
|
4476
4476
|
Ho.displayName = "BlockSelector";
|
|
4477
|
-
var Uo =
|
|
4477
|
+
var Uo = F.memo(({ html_id: e, renderMode: t = "live", blocks: n, parsedBlockData: r, blockData: i, pageContext: a, pageMeta: o, blockContext: s, workspace_id: c, pageSource: l, languageVariants: u }) => /* @__PURE__ */ H(v, {
|
|
4478
4478
|
value: {
|
|
4479
4479
|
parsedBlockData: r,
|
|
4480
4480
|
blockData: i,
|
|
@@ -4490,7 +4490,7 @@ var Uo = P.memo(({ html_id: e, renderMode: t = "live", blocks: n, parsedBlockDat
|
|
|
4490
4490
|
id: e ?? r.id,
|
|
4491
4491
|
"data-levo-element": "block",
|
|
4492
4492
|
"data-levo-block-id": r.id,
|
|
4493
|
-
children: [t === "live" && /* @__PURE__ */ H(
|
|
4493
|
+
children: [t === "live" && /* @__PURE__ */ H(we, { id: r.id }), /* @__PURE__ */ H(Ho, {
|
|
4494
4494
|
id: r.id,
|
|
4495
4495
|
block_key: r.key,
|
|
4496
4496
|
block_version: r.version,
|
|
@@ -4690,8 +4690,8 @@ var Ko = ({ site: e }) => {
|
|
|
4690
4690
|
siteSlug: e?.slug,
|
|
4691
4691
|
siteName: e?.name
|
|
4692
4692
|
})] });
|
|
4693
|
-
}, qo = { loadingContainer: "_loadingContainer_1d4on_1" }, Jo =
|
|
4694
|
-
"authentication.NOT_LOGGED_IN": ({ logo: e, siteName: t, page: n }) => /* @__PURE__ */ H(
|
|
4693
|
+
}, qo = { loadingContainer: "_loadingContainer_1d4on_1" }, Jo = I(() => import("./LoginCard-CaLgm9c4.js")), Yo = I(() => import("./EntryCard-B3wpp5oI.js")), Xo = I(() => import("./MessageCard-CJltLT2a.js")), Zo = I(() => import("./ProfileCard-CnL0X_Ui.js")), Qo = {
|
|
4694
|
+
"authentication.NOT_LOGGED_IN": ({ logo: e, siteName: t, page: n }) => /* @__PURE__ */ H(ke, {
|
|
4695
4695
|
fallback: /* @__PURE__ */ H("div", {}),
|
|
4696
4696
|
children: /* @__PURE__ */ H(Jo, {
|
|
4697
4697
|
logo: e,
|
|
@@ -4699,7 +4699,7 @@ var Ko = ({ site: e }) => {
|
|
|
4699
4699
|
page: n
|
|
4700
4700
|
})
|
|
4701
4701
|
}),
|
|
4702
|
-
"gating.ENTRY_NOT_FOUND": ({ logo: e, siteName: t, accessResponse: n, page: r, onSuccess: i }) => /* @__PURE__ */ H(
|
|
4702
|
+
"gating.ENTRY_NOT_FOUND": ({ logo: e, siteName: t, accessResponse: n, page: r, onSuccess: i }) => /* @__PURE__ */ H(ke, {
|
|
4703
4703
|
fallback: /* @__PURE__ */ H("div", {}),
|
|
4704
4704
|
children: /* @__PURE__ */ H(Yo, {
|
|
4705
4705
|
logo: e,
|
|
@@ -4709,7 +4709,7 @@ var Ko = ({ site: e }) => {
|
|
|
4709
4709
|
onSuccess: i
|
|
4710
4710
|
})
|
|
4711
4711
|
}),
|
|
4712
|
-
"gating.ENTRY_CONDITION_NOT_FULFILLED": ({ logo: e, siteName: t, accessResponse: n }) => /* @__PURE__ */ H(
|
|
4712
|
+
"gating.ENTRY_CONDITION_NOT_FULFILLED": ({ logo: e, siteName: t, accessResponse: n }) => /* @__PURE__ */ H(ke, {
|
|
4713
4713
|
fallback: /* @__PURE__ */ H("div", {}),
|
|
4714
4714
|
children: /* @__PURE__ */ H(Xo, {
|
|
4715
4715
|
logo: e,
|
|
@@ -4718,7 +4718,7 @@ var Ko = ({ site: e }) => {
|
|
|
4718
4718
|
message: n?.message
|
|
4719
4719
|
})
|
|
4720
4720
|
}),
|
|
4721
|
-
"profile.CONDITION_NOT_FULFILLED": ({ logo: e, siteName: t, accessResponse: n, onSuccess: r }) => /* @__PURE__ */ H(
|
|
4721
|
+
"profile.CONDITION_NOT_FULFILLED": ({ logo: e, siteName: t, accessResponse: n, onSuccess: r }) => /* @__PURE__ */ H(ke, {
|
|
4722
4722
|
fallback: /* @__PURE__ */ H("div", {}),
|
|
4723
4723
|
children: /* @__PURE__ */ H(Zo, {
|
|
4724
4724
|
logo: e,
|
|
@@ -4728,7 +4728,7 @@ var Ko = ({ site: e }) => {
|
|
|
4728
4728
|
})
|
|
4729
4729
|
})
|
|
4730
4730
|
}, $o = ({ page: e, site: t, children: n, authOverride: r }) => {
|
|
4731
|
-
let i =
|
|
4731
|
+
let i = P(), { isLoggedIn: a, account: o, isAuthLoaded: s } = A(), [c, l] = B(!e.access?.length), [u, d] = B(null), [f, p] = B(!!e.access?.length), [m, h] = B(null), g = async () => {
|
|
4732
4732
|
p(!0);
|
|
4733
4733
|
try {
|
|
4734
4734
|
let t = (await i?.fetch?.url(`/v1/studio/page/${e.id}/check-access`)?.post()?.json())?.content?.data;
|
|
@@ -4750,7 +4750,7 @@ var Ko = ({ site: e }) => {
|
|
|
4750
4750
|
]), c || r?.enabled) return /* @__PURE__ */ H(V, { children: n });
|
|
4751
4751
|
if (f) return /* @__PURE__ */ U("div", {
|
|
4752
4752
|
className: qo.loadingContainer,
|
|
4753
|
-
children: [/* @__PURE__ */ H(
|
|
4753
|
+
children: [/* @__PURE__ */ H(ie, {}), " Checking access"]
|
|
4754
4754
|
});
|
|
4755
4755
|
if (m && m in Qo) {
|
|
4756
4756
|
let n = Qo[m];
|
|
@@ -4764,7 +4764,7 @@ var Ko = ({ site: e }) => {
|
|
|
4764
4764
|
}
|
|
4765
4765
|
return null;
|
|
4766
4766
|
}, es = ({ pageData: e, parsedPageData: t, renderMode: n = "live", context: r, blocks: i, site: a, workspace: o, authOverride: s, disableBranding: c }) => {
|
|
4767
|
-
let { isLoggedIn: l } =
|
|
4767
|
+
let { isLoggedIn: l } = A(), u = Ei(t, a);
|
|
4768
4768
|
return /* @__PURE__ */ U("div", {
|
|
4769
4769
|
"data-levo-element": "page",
|
|
4770
4770
|
"data-levo-page-id": t?.id,
|
|
@@ -4776,7 +4776,7 @@ var Ko = ({ site: e }) => {
|
|
|
4776
4776
|
page: t,
|
|
4777
4777
|
authOverride: s,
|
|
4778
4778
|
children: [
|
|
4779
|
-
n === "live" && /* @__PURE__ */ H(
|
|
4779
|
+
n === "live" && /* @__PURE__ */ H(Te, { id: t?.id }),
|
|
4780
4780
|
n === "live" && /* @__PURE__ */ H(m, {
|
|
4781
4781
|
siteId: a?.id,
|
|
4782
4782
|
pageId: t?.id
|
|
@@ -4803,14 +4803,14 @@ var Ko = ({ site: e }) => {
|
|
|
4803
4803
|
!c && o?.feature_flag?.branding && /* @__PURE__ */ H(Ko, { site: a })
|
|
4804
4804
|
]
|
|
4805
4805
|
});
|
|
4806
|
-
}, ts = ({ pageData: e, parsedPageData: t, renderMode: n = "live", context: r, blocks: i, site: a, workspace: o, authOverride: s, disableBranding: c }) => /* @__PURE__ */ H(
|
|
4806
|
+
}, ts = ({ pageData: e, parsedPageData: t, renderMode: n = "live", context: r, blocks: i, site: a, workspace: o, authOverride: s, disableBranding: c }) => /* @__PURE__ */ H(ke, {
|
|
4807
4807
|
fallback: /* @__PURE__ */ H("center", { className: "flex h-screen w-full items-center justify-center" }),
|
|
4808
4808
|
children: /* @__PURE__ */ H(Mo, {
|
|
4809
4809
|
strict: !0,
|
|
4810
|
-
children: /* @__PURE__ */ H(
|
|
4810
|
+
children: /* @__PURE__ */ H(ne, {
|
|
4811
4811
|
workspace: o,
|
|
4812
4812
|
authOverride: s,
|
|
4813
|
-
children: /* @__PURE__ */ H(
|
|
4813
|
+
children: /* @__PURE__ */ H(re, {
|
|
4814
4814
|
siteName: a?.name,
|
|
4815
4815
|
children: /* @__PURE__ */ H(es, {
|
|
4816
4816
|
authOverride: s,
|
|
@@ -4944,7 +4944,7 @@ var ss = ({ blocks: e, studioData: t, site: n, workspace_id: r }) => {
|
|
|
4944
4944
|
})
|
|
4945
4945
|
] }) : null;
|
|
4946
4946
|
}, ls = ({ blocks: e }) => {
|
|
4947
|
-
let [t, n] = B(null), [r, i] = B({}), [a, o] = B(null), s =
|
|
4947
|
+
let [t, n] = B(null), [r, i] = B({}), [a, o] = B(null), s = Pe((e) => {
|
|
4948
4948
|
let { data: t } = e, { type: a, payload: s } = t;
|
|
4949
4949
|
switch (a) {
|
|
4950
4950
|
case J.PREVIEW_TYPE:
|
|
@@ -5046,7 +5046,7 @@ function ps({ className: e, elementKey: t, generatedClassName: n, content: r, co
|
|
|
5046
5046
|
return /* @__PURE__ */ H(Pn.Root, {
|
|
5047
5047
|
"data-levo_element_key": t,
|
|
5048
5048
|
"data-levo_element_type": "AccordionRoot",
|
|
5049
|
-
className:
|
|
5049
|
+
className: M("AccordionRoot", e, n),
|
|
5050
5050
|
...o
|
|
5051
5051
|
});
|
|
5052
5052
|
}
|
|
@@ -5055,7 +5055,7 @@ function ms({ className: e, elementKey: t, generatedClassName: n, content: r, co
|
|
|
5055
5055
|
return /* @__PURE__ */ H(Pn.Item, {
|
|
5056
5056
|
"data-levo_element_key": t,
|
|
5057
5057
|
"data-levo_element_type": "AccordionItem",
|
|
5058
|
-
className:
|
|
5058
|
+
className: M(fs.accordionItem, e, n),
|
|
5059
5059
|
...o
|
|
5060
5060
|
});
|
|
5061
5061
|
}
|
|
@@ -5066,7 +5066,7 @@ function hs({ className: e, children: t, elementKey: n, generatedClassName: r, c
|
|
|
5066
5066
|
children: /* @__PURE__ */ U(Pn.Trigger, {
|
|
5067
5067
|
"data-levo_element_key": n,
|
|
5068
5068
|
"data-levo_element_type": "AccordionTrigger",
|
|
5069
|
-
className:
|
|
5069
|
+
className: M(fs.accordionTrigger, e, r),
|
|
5070
5070
|
...s,
|
|
5071
5071
|
children: [t, /* @__PURE__ */ H(on, { className: fs.accordionChevron })]
|
|
5072
5072
|
})
|
|
@@ -5075,19 +5075,19 @@ function hs({ className: e, children: t, elementKey: n, generatedClassName: r, c
|
|
|
5075
5075
|
hs.displayName = "BaseAccordionTrigger";
|
|
5076
5076
|
function gs({ className: e, children: t, elementKey: n, generatedClassName: r, content: i, config: a, styles: o, ...s }) {
|
|
5077
5077
|
return /* @__PURE__ */ H(Pn.Content, {
|
|
5078
|
-
className:
|
|
5078
|
+
className: M(fs.accordionContent, e),
|
|
5079
5079
|
...s,
|
|
5080
5080
|
children: /* @__PURE__ */ H("div", {
|
|
5081
5081
|
"data-levo_element_key": n,
|
|
5082
5082
|
"data-levo_element_type": "AccordionContent",
|
|
5083
|
-
className:
|
|
5083
|
+
className: M(fs.accordionContentText, r),
|
|
5084
5084
|
children: t
|
|
5085
5085
|
})
|
|
5086
5086
|
});
|
|
5087
5087
|
}
|
|
5088
5088
|
gs.displayName = "BaseAccordionContent";
|
|
5089
5089
|
var _s = b(ps), vs = b(ms), ys = b(hs), bs = b(gs), xs = "_2zpuyk0", Ss = "_2zpuyk1", Cs = "_2zpuyk2", ws = "_2zpuyk3", Ts = "_2zpuyk4", Es = "_2zpuyk6 _2zpuyk5", Ds = "_2zpuyk7 _2zpuyk5", Os = "_2zpuyk9", ks = "_2zpuyka", As = "_2zpuykb", js = (e) => {
|
|
5090
|
-
let t =
|
|
5090
|
+
let t = N(30), { blogId: n, postId: r, workspaceId: i, interactive: a } = e, o = a === void 0 ? !0 : a, { blog: s, workspace: c, logger: l } = P(), u = i ?? c, [d, f] = B(!0), [p, m] = B(null), h, g;
|
|
5091
5091
|
if (t[0] !== s || t[1] !== n || t[2] !== l || t[3] !== r || t[4] !== u ? (h = () => {
|
|
5092
5092
|
if (!n || !r) {
|
|
5093
5093
|
f(!1);
|
|
@@ -5193,7 +5193,7 @@ var _s = b(ps), vs = b(ms), ys = b(hs), bs = b(gs), xs = "_2zpuyk0", Ss = "_2zpu
|
|
|
5193
5193
|
})
|
|
5194
5194
|
}), t[24] = T, t[25] = y, t[26] = b, t[27] = x, t[28] = S, t[29] = E) : E = t[29], E;
|
|
5195
5195
|
}, Ms = (e) => {
|
|
5196
|
-
let t =
|
|
5196
|
+
let t = N(3), { node: n } = e, r = n?.attrs?.blogId, i = n?.attrs?.postId;
|
|
5197
5197
|
if (!r || !i) return null;
|
|
5198
5198
|
let a;
|
|
5199
5199
|
return t[0] !== r || t[1] !== i ? (a = /* @__PURE__ */ H(js, {
|
|
@@ -5201,7 +5201,7 @@ var _s = b(ps), vs = b(ms), ys = b(hs), bs = b(gs), xs = "_2zpuyk0", Ss = "_2zpu
|
|
|
5201
5201
|
postId: i
|
|
5202
5202
|
}), t[0] = r, t[1] = i, t[2] = a) : a = t[2], a;
|
|
5203
5203
|
}, Ns = (e) => {
|
|
5204
|
-
let t =
|
|
5204
|
+
let t = N(10), { label: n, href: r, target: i, actionType: a, onActivate: o } = e, s = n || "Button";
|
|
5205
5205
|
if (sr(a) === "button") {
|
|
5206
5206
|
let e;
|
|
5207
5207
|
return t[0] !== o || t[1] !== s ? (e = /* @__PURE__ */ H("button", {
|
|
@@ -5222,9 +5222,9 @@ var _s = b(ps), vs = b(ms), ys = b(hs), bs = b(gs), xs = "_2zpuyk0", Ss = "_2zpu
|
|
|
5222
5222
|
children: s
|
|
5223
5223
|
}), t[5] = u, t[6] = c, t[7] = d, t[8] = s, t[9] = f) : f = t[9], f;
|
|
5224
5224
|
}, Ps = (e) => {
|
|
5225
|
-
let t =
|
|
5225
|
+
let t = N(16), { node: n } = e, r;
|
|
5226
5226
|
t[0] === n?.attrs ? r = t[1] : (r = n?.attrs ?? {}, t[0] = n?.attrs, t[1] = r);
|
|
5227
|
-
let i = r, { openPopup: a } =
|
|
5227
|
+
let i = r, { openPopup: a } = te(), o = i.popupId, s;
|
|
5228
5228
|
t[2] !== a || t[3] !== o ? (s = o ? () => a(o) : void 0, t[2] = a, t[3] = o, t[4] = s) : s = t[4];
|
|
5229
5229
|
let c;
|
|
5230
5230
|
t[5] !== i.actionType || t[6] !== i.href || t[7] !== i.label || t[8] !== i.target || t[9] !== s ? (c = /* @__PURE__ */ H(Ns, {
|
|
@@ -5246,7 +5246,7 @@ var _s = b(ps), vs = b(ms), ys = b(hs), bs = b(gs), xs = "_2zpuyk0", Ss = "_2zpu
|
|
|
5246
5246
|
if (e.type === "text") return e.value;
|
|
5247
5247
|
if (e.type === "element") {
|
|
5248
5248
|
let { className: n, ...r } = e.properties || {};
|
|
5249
|
-
return
|
|
5249
|
+
return F.createElement(e.tagName, {
|
|
5250
5250
|
key: t,
|
|
5251
5251
|
...r,
|
|
5252
5252
|
className: Array.isArray(n) ? n.join(" ") : n
|
|
@@ -5269,7 +5269,7 @@ var _s = b(ps), vs = b(ms), ys = b(hs), bs = b(gs), xs = "_2zpuyk0", Ss = "_2zpu
|
|
|
5269
5269
|
}
|
|
5270
5270
|
return "";
|
|
5271
5271
|
}, Rs = ({ node: e, children: t }) => {
|
|
5272
|
-
let n =
|
|
5272
|
+
let n = Ne(Fs), r = e?.attrs?.language, i = Ls(e);
|
|
5273
5273
|
if (!i) return /* @__PURE__ */ H("pre", { children: /* @__PURE__ */ H("code", { children: t }) });
|
|
5274
5274
|
let a;
|
|
5275
5275
|
try {
|
|
@@ -5282,19 +5282,19 @@ var _s = b(ps), vs = b(ms), ys = b(hs), bs = b(gs), xs = "_2zpuyk0", Ss = "_2zpu
|
|
|
5282
5282
|
children: a.children.map((e, t) => Is(e, `code-${t}`))
|
|
5283
5283
|
}) });
|
|
5284
5284
|
}, zs = (e) => {
|
|
5285
|
-
let t =
|
|
5285
|
+
let t = N(9), n;
|
|
5286
5286
|
t[0] === e.node ? n = t[1] : (n = Ls(e.node), t[0] = e.node, t[1] = n);
|
|
5287
5287
|
let r = n, i;
|
|
5288
5288
|
t[2] === r ? i = t[3] : (i = /* @__PURE__ */ H("pre", { children: /* @__PURE__ */ H("code", { children: r }) }), t[2] = r, t[3] = i);
|
|
5289
5289
|
let a;
|
|
5290
5290
|
t[4] === e ? a = t[5] : (a = /* @__PURE__ */ H(Rs, { ...e }), t[4] = e, t[5] = a);
|
|
5291
5291
|
let o;
|
|
5292
|
-
return t[6] !== i || t[7] !== a ? (o = /* @__PURE__ */ H(
|
|
5292
|
+
return t[6] !== i || t[7] !== a ? (o = /* @__PURE__ */ H(F.Suspense, {
|
|
5293
5293
|
fallback: i,
|
|
5294
5294
|
children: a
|
|
5295
5295
|
}), t[6] = i, t[7] = a, t[8] = o) : o = t[8], o;
|
|
5296
|
-
}, Bs =
|
|
5297
|
-
let t =
|
|
5296
|
+
}, Bs = Ae({ open: !1 }), Vs = (e) => {
|
|
5297
|
+
let t = N(14), { node: n, children: r } = e, [i, a] = B(n.attrs?.open || !1), o = i && "is-open", s;
|
|
5298
5298
|
t[0] === o ? s = t[1] : (s = Be("details", o), t[0] = o, t[1] = s);
|
|
5299
5299
|
let c;
|
|
5300
5300
|
t[2] === i ? c = t[3] : (c = /* @__PURE__ */ H("button", {
|
|
@@ -5315,10 +5315,10 @@ var _s = b(ps), vs = b(ms), ys = b(hs), bs = b(gs), xs = "_2zpuyk0", Ss = "_2zpu
|
|
|
5315
5315
|
children: [c, u]
|
|
5316
5316
|
}), t[9] = i, t[10] = s, t[11] = c, t[12] = u, t[13] = d) : d = t[13], d;
|
|
5317
5317
|
}, Hs = (e) => {
|
|
5318
|
-
let t =
|
|
5318
|
+
let t = N(2), { children: n } = e, r;
|
|
5319
5319
|
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ H("summary", { children: n }), t[0] = n, t[1] = r), r;
|
|
5320
5320
|
}, Us = (e) => {
|
|
5321
|
-
let t =
|
|
5321
|
+
let t = N(5), { children: n } = e, { open: r } = Fe(Bs), i;
|
|
5322
5322
|
t[0] === r ? i = t[1] : (i = r ? {} : { hidden: !0 }, t[0] = r, t[1] = i);
|
|
5323
5323
|
let a;
|
|
5324
5324
|
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ H("div", {
|
|
@@ -5327,7 +5327,7 @@ var _s = b(ps), vs = b(ms), ys = b(hs), bs = b(gs), xs = "_2zpuyk0", Ss = "_2zpu
|
|
|
5327
5327
|
children: n
|
|
5328
5328
|
}), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
|
|
5329
5329
|
}, Ws = "_10kj0ro0", Gs = "_10kj0ro1", Ks = "_10kj0ro2", qs = (e) => e ? typeof e == "string" && e.endsWith("%") ? e : `${e}px` : "fit-content", Js = (e) => {
|
|
5330
|
-
let t =
|
|
5330
|
+
let t = N(15), { node: n, children: r, imageRef: i, imageProps: a, caption: o } = e, s = n.attrs, { src: c, alt: l, srcset: u, showCaption: d } = s, f = s["data-link-href"], p = n.content.childCount > 0, m = o === void 0 ? r : o, h = (d || p) && m != null;
|
|
5331
5331
|
if (!c) return null;
|
|
5332
5332
|
let g = l || "", _ = u || void 0, v;
|
|
5333
5333
|
t[0] !== a || t[1] !== i || t[2] !== c || t[3] !== g || t[4] !== _ ? (v = /* @__PURE__ */ H("img", {
|
|
@@ -5354,7 +5354,7 @@ var _s = b(ps), vs = b(ms), ys = b(hs), bs = b(gs), xs = "_2zpuyk0", Ss = "_2zpu
|
|
|
5354
5354
|
let S;
|
|
5355
5355
|
return t[12] !== b || t[13] !== x ? (S = /* @__PURE__ */ U(V, { children: [b, x] }), t[12] = b, t[13] = x, t[14] = S) : S = t[14], S;
|
|
5356
5356
|
}, Ys = (e) => {
|
|
5357
|
-
let t =
|
|
5357
|
+
let t = N(13), { node: n, children: r } = e, i = n.attrs, a = i["data-align"];
|
|
5358
5358
|
if (!i.src) return null;
|
|
5359
5359
|
let o;
|
|
5360
5360
|
t[0] === i.width ? o = t[1] : (o = qs(i.width), t[0] = i.width, t[1] = o);
|
|
@@ -5378,7 +5378,7 @@ var _s = b(ps), vs = b(ms), ys = b(hs), bs = b(gs), xs = "_2zpuyk0", Ss = "_2zpu
|
|
|
5378
5378
|
children: l
|
|
5379
5379
|
}), t[10] = a, t[11] = l, t[12] = u) : u = t[12], u;
|
|
5380
5380
|
}, Xs = "_1dotpmp0", Zs = (e) => {
|
|
5381
|
-
let t =
|
|
5381
|
+
let t = N(10), { collectionId: n, workspaceId: r, preview: i, variant: a } = e, o = i === void 0 ? !1 : i, s = a ?? void 0, c;
|
|
5382
5382
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
5383
5383
|
show: !0,
|
|
5384
5384
|
text: "Submit"
|
|
@@ -5402,7 +5402,7 @@ var _s = b(ps), vs = b(ms), ys = b(hs), bs = b(gs), xs = "_2zpuyk0", Ss = "_2zpu
|
|
|
5402
5402
|
theme: u
|
|
5403
5403
|
}), t[4] = n, t[5] = o, t[6] = s, t[7] = u, t[8] = r, t[9] = f) : f = t[9], f;
|
|
5404
5404
|
}, Qs = (e) => {
|
|
5405
|
-
let t =
|
|
5405
|
+
let t = N(4), { node: n } = e, r = n?.attrs?.collectionId, i = n?.attrs?.variant, { workspace: a } = P();
|
|
5406
5406
|
if (!r || !a) return null;
|
|
5407
5407
|
let o;
|
|
5408
5408
|
return t[0] !== r || t[1] !== i || t[2] !== a ? (o = /* @__PURE__ */ H("div", {
|
|
@@ -5470,7 +5470,7 @@ var _s = b(ps), vs = b(ms), ys = b(hs), bs = b(gs), xs = "_2zpuyk0", Ss = "_2zpu
|
|
|
5470
5470
|
wr,
|
|
5471
5471
|
ar
|
|
5472
5472
|
], ec = (e) => He(e, $s), tc = (e) => {
|
|
5473
|
-
let t =
|
|
5473
|
+
let t = N(18), r, i, a, o, s;
|
|
5474
5474
|
t[0] === e ? (r = t[1], i = t[2], a = t[3], o = t[4], s = t[5]) : ({content: i, className: r, ref: a, theme: s, ...o} = e, t[0] = e, t[1] = r, t[2] = i, t[3] = a, t[4] = o, t[5] = s);
|
|
5475
5475
|
let c;
|
|
5476
5476
|
t[6] === i ? c = t[7] : (c = Ue({
|
|
@@ -5521,7 +5521,7 @@ var _s = b(ps), vs = b(ms), ys = b(hs), bs = b(gs), xs = "_2zpuyk0", Ss = "_2zpu
|
|
|
5521
5521
|
content: u,
|
|
5522
5522
|
"data-levo_element_key": a,
|
|
5523
5523
|
"data-levo_element_type": "BlogContent",
|
|
5524
|
-
className:
|
|
5524
|
+
className: M("mx-0 min-h-6 w-auto max-w-none", t, o),
|
|
5525
5525
|
theme: d ? { style: d } : void 0,
|
|
5526
5526
|
...l
|
|
5527
5527
|
});
|
|
@@ -5550,30 +5550,30 @@ var rc = b(nc), ic = ({ backgroundVideo: e }) => e?.media?.location ? /* @__PURE
|
|
|
5550
5550
|
inset: 0,
|
|
5551
5551
|
zIndex: -1
|
|
5552
5552
|
}
|
|
5553
|
-
})] }) : null, ac =
|
|
5553
|
+
})] }) : null, ac = je(({ children: e, className: t, elementKey: n, generatedClassName: r, content: i, config: a, styles: o, ...s }, c) => /* @__PURE__ */ U("div", {
|
|
5554
5554
|
ref: c,
|
|
5555
5555
|
"data-levo_element_key": n,
|
|
5556
5556
|
"data-levo_element_type": "Box",
|
|
5557
|
-
className:
|
|
5557
|
+
className: M(t, r),
|
|
5558
5558
|
...s,
|
|
5559
5559
|
children: [/* @__PURE__ */ H(ic, { backgroundVideo: a?.backgroundVideo }), e]
|
|
5560
5560
|
}));
|
|
5561
5561
|
ac.displayName = "BaseBox";
|
|
5562
|
-
var oc = b(ac), sc =
|
|
5562
|
+
var oc = b(ac), sc = F.createContext(null);
|
|
5563
5563
|
function cc() {
|
|
5564
|
-
let e =
|
|
5564
|
+
let e = F.useContext(sc);
|
|
5565
5565
|
if (!e) throw Error("useCarousel must be used within a <Carousel />");
|
|
5566
5566
|
return e;
|
|
5567
5567
|
}
|
|
5568
5568
|
var lc = (e) => {
|
|
5569
|
-
let [t, n] =
|
|
5569
|
+
let [t, n] = F.useState(0), [r, i] = F.useState([]), a = F.useCallback((t) => {
|
|
5570
5570
|
e && e.scrollTo(t);
|
|
5571
|
-
}, [e]), o =
|
|
5571
|
+
}, [e]), o = F.useCallback((e) => {
|
|
5572
5572
|
e && i(e.scrollSnapList());
|
|
5573
|
-
}, []), s =
|
|
5573
|
+
}, []), s = F.useCallback((e) => {
|
|
5574
5574
|
e && n(e.selectedScrollSnap());
|
|
5575
5575
|
}, []);
|
|
5576
|
-
return
|
|
5576
|
+
return F.useEffect(() => {
|
|
5577
5577
|
e && (o(e), s(e), e.on("reInit", o).on("reInit", s).on("select", s));
|
|
5578
5578
|
}, [
|
|
5579
5579
|
e,
|
|
@@ -5584,7 +5584,7 @@ var lc = (e) => {
|
|
|
5584
5584
|
scrollSnaps: r,
|
|
5585
5585
|
onDotButtonClick: a
|
|
5586
5586
|
};
|
|
5587
|
-
}, uc =
|
|
5587
|
+
}, uc = F.forwardRef(({ orientation: e = "horizontal", opts: t, setApi: n, className: r, children: i, elementKey: a, config: o, styles: s, generatedClassName: c, ...l }, u) => {
|
|
5588
5588
|
let d = [Jn()];
|
|
5589
5589
|
o?.carousel?.autoScroll && d.push(Gn({
|
|
5590
5590
|
speed: o.carousel.speed ?? 2,
|
|
@@ -5604,18 +5604,18 @@ var lc = (e) => {
|
|
|
5604
5604
|
loop: o?.carousel?.loop ?? !1,
|
|
5605
5605
|
direction: o?.carousel?.autoScroll ? void 0 : o?.carousel?.direction ?? "ltr",
|
|
5606
5606
|
axis: e === "horizontal" ? "x" : "y"
|
|
5607
|
-
}, d), [m, h] =
|
|
5607
|
+
}, d), [m, h] = F.useState(!1), [g, _] = F.useState(!1), v = F.useCallback((e) => {
|
|
5608
5608
|
e && (h(e.canScrollPrev()), _(e.canScrollNext()));
|
|
5609
|
-
}, []), y =
|
|
5609
|
+
}, []), y = F.useCallback(() => {
|
|
5610
5610
|
p?.scrollPrev();
|
|
5611
|
-
}, [p]), b =
|
|
5611
|
+
}, [p]), b = F.useCallback(() => {
|
|
5612
5612
|
p?.scrollNext();
|
|
5613
|
-
}, [p]), x =
|
|
5613
|
+
}, [p]), x = F.useCallback((e) => {
|
|
5614
5614
|
e.key === "ArrowLeft" ? (e.preventDefault(), y()) : e.key === "ArrowRight" && (e.preventDefault(), b());
|
|
5615
5615
|
}, [y, b]);
|
|
5616
|
-
return
|
|
5616
|
+
return F.useEffect(() => {
|
|
5617
5617
|
!p || !n || n(p);
|
|
5618
|
-
}, [p, n]),
|
|
5618
|
+
}, [p, n]), F.useEffect(() => {
|
|
5619
5619
|
if (p) return v(p), p.on("reInit", v), p.on("select", v), () => {
|
|
5620
5620
|
p?.off("select", v);
|
|
5621
5621
|
};
|
|
@@ -5637,7 +5637,7 @@ var lc = (e) => {
|
|
|
5637
5637
|
ref: u,
|
|
5638
5638
|
"data-levo_element_key": a,
|
|
5639
5639
|
onKeyDownCapture: x,
|
|
5640
|
-
className:
|
|
5640
|
+
className: M("relative", c, r),
|
|
5641
5641
|
role: "region",
|
|
5642
5642
|
"aria-roledescription": "carousel",
|
|
5643
5643
|
...l,
|
|
@@ -5646,35 +5646,35 @@ var lc = (e) => {
|
|
|
5646
5646
|
});
|
|
5647
5647
|
});
|
|
5648
5648
|
uc.displayName = "BaseCarousel";
|
|
5649
|
-
var dc =
|
|
5649
|
+
var dc = F.forwardRef(({ className: e, ...t }, n) => {
|
|
5650
5650
|
let { carouselRef: r, orientation: i } = cc();
|
|
5651
5651
|
return /* @__PURE__ */ H("div", {
|
|
5652
5652
|
ref: r,
|
|
5653
5653
|
className: "overflow-hidden",
|
|
5654
5654
|
children: /* @__PURE__ */ H("div", {
|
|
5655
5655
|
ref: n,
|
|
5656
|
-
className:
|
|
5656
|
+
className: M("flex", i === "horizontal" ? "-ml-4" : "-mt-4 flex-col", e),
|
|
5657
5657
|
...t
|
|
5658
5658
|
})
|
|
5659
5659
|
});
|
|
5660
5660
|
});
|
|
5661
5661
|
dc.displayName = "CarouselContent";
|
|
5662
|
-
var fc =
|
|
5662
|
+
var fc = F.forwardRef(({ className: e, ...t }, n) => {
|
|
5663
5663
|
let { orientation: r } = cc();
|
|
5664
5664
|
return /* @__PURE__ */ H("div", {
|
|
5665
5665
|
ref: n,
|
|
5666
5666
|
role: "group",
|
|
5667
5667
|
"aria-roledescription": "slide",
|
|
5668
|
-
className:
|
|
5668
|
+
className: M("carousel-item min-w-0 shrink-0 grow-0", r === "horizontal" ? "pl-4" : "pt-4", e),
|
|
5669
5669
|
...t
|
|
5670
5670
|
});
|
|
5671
5671
|
});
|
|
5672
5672
|
fc.displayName = "CarouselItem";
|
|
5673
|
-
var pc =
|
|
5673
|
+
var pc = F.forwardRef(({ className: e, ...t }, n) => {
|
|
5674
5674
|
let { orientation: r, scrollPrev: i, canScrollPrev: a } = cc();
|
|
5675
|
-
return /* @__PURE__ */ U(
|
|
5675
|
+
return /* @__PURE__ */ U(O, {
|
|
5676
5676
|
ref: n,
|
|
5677
|
-
className:
|
|
5677
|
+
className: M("absolute h-8 w-8 rounded-full", r === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", e),
|
|
5678
5678
|
disabled: !a,
|
|
5679
5679
|
onClick: i,
|
|
5680
5680
|
...t,
|
|
@@ -5685,11 +5685,11 @@ var pc = P.forwardRef(({ className: e, ...t }, n) => {
|
|
|
5685
5685
|
});
|
|
5686
5686
|
});
|
|
5687
5687
|
pc.displayName = "CarouselPrevious";
|
|
5688
|
-
var mc =
|
|
5688
|
+
var mc = F.forwardRef(({ className: e, ...t }, n) => {
|
|
5689
5689
|
let { orientation: r, scrollNext: i, canScrollNext: a } = cc();
|
|
5690
|
-
return /* @__PURE__ */ U(
|
|
5690
|
+
return /* @__PURE__ */ U(O, {
|
|
5691
5691
|
ref: n,
|
|
5692
|
-
className:
|
|
5692
|
+
className: M("absolute h-8 w-8 rounded-full", r === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", e),
|
|
5693
5693
|
disabled: !a,
|
|
5694
5694
|
onClick: i,
|
|
5695
5695
|
...t,
|
|
@@ -5700,41 +5700,41 @@ var mc = P.forwardRef(({ className: e, ...t }, n) => {
|
|
|
5700
5700
|
});
|
|
5701
5701
|
});
|
|
5702
5702
|
mc.displayName = "CarouselNext";
|
|
5703
|
-
var hc =
|
|
5703
|
+
var hc = F.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ H("button", {
|
|
5704
5704
|
ref: r,
|
|
5705
5705
|
type: "button",
|
|
5706
|
-
className:
|
|
5706
|
+
className: M("relative inline-flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border-0 bg-transparent p-0 transition-all", "after:flex after:h-3.5 after:w-3.5 after:items-center after:justify-center after:rounded-full after:border-2 after:border-gray-200 after:content-['']", "hover:after:border-gray-400", e),
|
|
5707
5707
|
...n,
|
|
5708
5708
|
children: t
|
|
5709
5709
|
}));
|
|
5710
5710
|
hc.displayName = "CarouselDotButton";
|
|
5711
|
-
var gc =
|
|
5711
|
+
var gc = F.forwardRef(({ className: e, ...t }, n) => {
|
|
5712
5712
|
let { api: r } = cc(), { selectedIndex: i, scrollSnaps: a, onDotButtonClick: o } = lc(r);
|
|
5713
5713
|
return /* @__PURE__ */ H("div", {
|
|
5714
5714
|
ref: n,
|
|
5715
|
-
className:
|
|
5715
|
+
className: M("mt-4 flex flex-wrap items-center justify-center gap-0", e),
|
|
5716
5716
|
...t,
|
|
5717
5717
|
children: a.map((e, t) => /* @__PURE__ */ H(hc, {
|
|
5718
5718
|
onClick: () => o(t),
|
|
5719
|
-
className:
|
|
5719
|
+
className: M(t === i && "after:border-white after:bg-white"),
|
|
5720
5720
|
"aria-label": `Go to slide ${t + 1}`
|
|
5721
5721
|
}, t))
|
|
5722
5722
|
});
|
|
5723
5723
|
});
|
|
5724
5724
|
gc.displayName = "CarouselDots";
|
|
5725
|
-
var _c = b(uc), vc =
|
|
5725
|
+
var _c = b(uc), vc = je(({ children: e, className: t, elementKey: n, generatedClassName: r, content: i, config: a, styles: o, ...s }, c) => /* @__PURE__ */ U("div", {
|
|
5726
5726
|
ref: c,
|
|
5727
5727
|
"data-levo_element_key": n,
|
|
5728
5728
|
"data-levo_element_type": "Container",
|
|
5729
|
-
className:
|
|
5729
|
+
className: M(t, r),
|
|
5730
5730
|
...s,
|
|
5731
5731
|
children: [/* @__PURE__ */ H(ic, { backgroundVideo: a?.backgroundVideo }), e]
|
|
5732
5732
|
}));
|
|
5733
5733
|
vc.displayName = "BaseContainer";
|
|
5734
|
-
var yc = b(vc), bc =
|
|
5734
|
+
var yc = b(vc), bc = I(() => import("./dist-DanVCpXe.js").then((e) => e.t).then((e) => ({ default: e.CollectionForm }))), xc = b(({ elementKey: e, generatedClassName: t, config: n, className: r, initialValues: i, theme: a, onSubmit: o, isLoading: s }) => /* @__PURE__ */ H("div", {
|
|
5735
5735
|
"data-levo_element_key": e,
|
|
5736
|
-
className:
|
|
5737
|
-
children: /* @__PURE__ */ H(
|
|
5736
|
+
className: M(r, t),
|
|
5737
|
+
children: /* @__PURE__ */ H(ke, {
|
|
5738
5738
|
fallback: /* @__PURE__ */ H("div", {}),
|
|
5739
5739
|
children: /* @__PURE__ */ H(bc, {
|
|
5740
5740
|
uiConfig: {
|
|
@@ -5753,8 +5753,8 @@ var yc = b(vc), bc = F(() => import("./dist-D3lGqLBP.js").then((e) => e.t).then(
|
|
|
5753
5753
|
isLoading: s
|
|
5754
5754
|
})
|
|
5755
5755
|
})
|
|
5756
|
-
})), Sc =
|
|
5757
|
-
let o =
|
|
5756
|
+
})), Sc = I(() => import("./dist-DanVCpXe.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormRenderer }))), Cc = I(() => import("./bookingCard-C0_NNfko.js").then((e) => ({ default: e.BookingCard }))), wc = I(() => import("./BillingStep-DNg2PTXV.js").then((e) => ({ default: e.BillingStep }))), Tc = b(({ elementKey: e, generatedClassName: t, config: n, className: r, initialValues: i, theme: a }) => {
|
|
5757
|
+
let o = P(), { workspace: l, isLoggedIn: u, isAuthLoaded: d } = A(), f = R(() => {
|
|
5758
5758
|
if (!n?.theme && !a) return;
|
|
5759
5759
|
let e = n?.theme;
|
|
5760
5760
|
if (!e) return a;
|
|
@@ -5833,15 +5833,15 @@ var yc = b(vc), bc = F(() => import("./dist-D3lGqLBP.js").then((e) => e.t).then(
|
|
|
5833
5833
|
};
|
|
5834
5834
|
return p.isLoading ? /* @__PURE__ */ H("div", {
|
|
5835
5835
|
"data-levo_element_key": e,
|
|
5836
|
-
className:
|
|
5836
|
+
className: M(r, t),
|
|
5837
5837
|
children: /* @__PURE__ */ H("div", {
|
|
5838
5838
|
className: "flex items-center justify-center py-8",
|
|
5839
5839
|
children: /* @__PURE__ */ H("div", { className: "size-6 animate-spin rounded-full border-2 border-gray-300 border-t-orange-500" })
|
|
5840
5840
|
})
|
|
5841
5841
|
}) : h.active ? /* @__PURE__ */ H("div", {
|
|
5842
5842
|
"data-levo_element_key": e,
|
|
5843
|
-
className:
|
|
5844
|
-
children: /* @__PURE__ */ H(
|
|
5843
|
+
className: M(r, t),
|
|
5844
|
+
children: /* @__PURE__ */ H(ke, {
|
|
5845
5845
|
fallback: /* @__PURE__ */ H("div", {}),
|
|
5846
5846
|
children: /* @__PURE__ */ H(wc, {
|
|
5847
5847
|
onSubmit: async (e) => {
|
|
@@ -5857,8 +5857,8 @@ var yc = b(vc), bc = F(() => import("./dist-D3lGqLBP.js").then((e) => e.t).then(
|
|
|
5857
5857
|
})
|
|
5858
5858
|
}) : p.showCard && p.summary ? /* @__PURE__ */ H("div", {
|
|
5859
5859
|
"data-levo_element_key": e,
|
|
5860
|
-
className:
|
|
5861
|
-
children: /* @__PURE__ */ H(
|
|
5860
|
+
className: M(r, t),
|
|
5861
|
+
children: /* @__PURE__ */ H(ke, {
|
|
5862
5862
|
fallback: /* @__PURE__ */ H("div", {}),
|
|
5863
5863
|
children: /* @__PURE__ */ H(Cc, {
|
|
5864
5864
|
summary: p.summary,
|
|
@@ -5875,8 +5875,8 @@ var yc = b(vc), bc = F(() => import("./dist-D3lGqLBP.js").then((e) => e.t).then(
|
|
|
5875
5875
|
})
|
|
5876
5876
|
}) : /* @__PURE__ */ H("div", {
|
|
5877
5877
|
"data-levo_element_key": e,
|
|
5878
|
-
className:
|
|
5879
|
-
children: /* @__PURE__ */ H(
|
|
5878
|
+
className: M(r, t),
|
|
5879
|
+
children: /* @__PURE__ */ H(ke, {
|
|
5880
5880
|
fallback: /* @__PURE__ */ H("div", {}),
|
|
5881
5881
|
children: /* @__PURE__ */ H(Sc, {
|
|
5882
5882
|
uiConfig: {
|
|
@@ -5916,14 +5916,14 @@ var yc = b(vc), bc = F(() => import("./dist-D3lGqLBP.js").then((e) => e.t).then(
|
|
|
5916
5916
|
function Z({ className: e, ...t }) {
|
|
5917
5917
|
return /* @__PURE__ */ H("div", {
|
|
5918
5918
|
"data-slot": "skeleton",
|
|
5919
|
-
className:
|
|
5919
|
+
className: M("animate-pulse rounded-md bg-gray-200", e),
|
|
5920
5920
|
...t
|
|
5921
5921
|
});
|
|
5922
5922
|
}
|
|
5923
5923
|
//#endregion
|
|
5924
5924
|
//#region src/elements/forum/categoryFilter/CategoryFilter.tsx
|
|
5925
5925
|
var Ec = ({ forumKey: e, selectedCategories: t, onCategoryToggle: n, className: r }) => {
|
|
5926
|
-
let { fetch: i, logger: a } =
|
|
5926
|
+
let { fetch: i, logger: a } = P(), [o, s] = B([]), [c, l] = B(!1), [u, d] = B(!1), f = z(!1), p = Pe(async () => {
|
|
5927
5927
|
if (!(!e || f.current)) {
|
|
5928
5928
|
l(!0), d(!1);
|
|
5929
5929
|
try {
|
|
@@ -5952,15 +5952,15 @@ var Ec = ({ forumKey: e, selectedCategories: t, onCategoryToggle: n, className:
|
|
|
5952
5952
|
,
|
|
5953
5953
|
,
|
|
5954
5954
|
,
|
|
5955
|
-
]].map((e, t) => /* @__PURE__ */ H(Z, { className:
|
|
5956
|
-
className:
|
|
5955
|
+
]].map((e, t) => /* @__PURE__ */ H(Z, { className: M("h-8 w-20 rounded-full", r) }, `category-skeleton-${t}`)) }) : u ? /* @__PURE__ */ H("p", {
|
|
5956
|
+
className: M("text-red-500 text-sm", r),
|
|
5957
5957
|
children: "Failed to load categories"
|
|
5958
5958
|
}) : o.length === 0 ? null : /* @__PURE__ */ H(V, { children: o.map((e) => /* @__PURE__ */ H("button", {
|
|
5959
5959
|
onClick: () => n(e._id),
|
|
5960
|
-
className:
|
|
5960
|
+
className: M("rounded-sm border border-[#E5E5E5] px-3 py-1.5 font-medium text-text-1 text-xs uppercase transition-colors", t.includes(e._id) ? "border-brand/25 bg-brand/5" : "bg-white"),
|
|
5961
5961
|
children: e.name
|
|
5962
5962
|
}, e._id)) });
|
|
5963
|
-
}, Dc =
|
|
5963
|
+
}, Dc = Ae(void 0), Oc = ({ children: e, forum: t, isMember: n, isLoadingMembership: r, isInviteOnly: i, canInteractWithPosts: a, canInteractWithComments: o, joinRequest: s = null, isJoinRequestPending: c = !1, allowJoinRequests: l = !1, submitJoinRequest: u = async () => !1, refreshMembershipStatus: d = async () => {} }) => /* @__PURE__ */ H(Dc.Provider, {
|
|
5964
5964
|
value: {
|
|
5965
5965
|
forum: t,
|
|
5966
5966
|
isMember: n,
|
|
@@ -5990,10 +5990,10 @@ var Ec = ({ forumKey: e, selectedCategories: t, onCategoryToggle: n, className:
|
|
|
5990
5990
|
submitJoinRequest: async () => !1,
|
|
5991
5991
|
refreshMembershipStatus: async () => {}
|
|
5992
5992
|
} : e;
|
|
5993
|
-
}, Ac = Bn.Provider, jc = Bn.Root, Mc = Bn.Trigger, Nc = Bn.Portal, Pc =
|
|
5993
|
+
}, Ac = Bn.Provider, jc = Bn.Root, Mc = Bn.Trigger, Nc = Bn.Portal, Pc = De.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ H(Bn.Content, {
|
|
5994
5994
|
ref: r,
|
|
5995
5995
|
sideOffset: t,
|
|
5996
|
-
className:
|
|
5996
|
+
className: M("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),
|
|
5997
5997
|
...n
|
|
5998
5998
|
}));
|
|
5999
5999
|
Pc.displayName = Bn.Content.displayName;
|
|
@@ -6009,13 +6009,13 @@ var Fc = ({ children: e, label: t, labelClassName: n, asChild: r = !0, contentPr
|
|
|
6009
6009
|
let u = () => {
|
|
6010
6010
|
o || (i?.(), t(!1));
|
|
6011
6011
|
};
|
|
6012
|
-
return /* @__PURE__ */ H(
|
|
6012
|
+
return /* @__PURE__ */ H(de, {
|
|
6013
6013
|
open: e,
|
|
6014
6014
|
onOpenChange: (e) => {
|
|
6015
6015
|
!o && !e && u();
|
|
6016
6016
|
},
|
|
6017
|
-
children: /* @__PURE__ */ U(
|
|
6018
|
-
className:
|
|
6017
|
+
children: /* @__PURE__ */ U(se, {
|
|
6018
|
+
className: M("max-w-md gap-0 space-y-2 overflow-hidden p-0"),
|
|
6019
6019
|
showCloseButton: !1,
|
|
6020
6020
|
children: [/* @__PURE__ */ U("div", {
|
|
6021
6021
|
className: "space-y-2 px-0 py-0",
|
|
@@ -6042,7 +6042,7 @@ var Fc = ({ children: e, label: t, labelClassName: n, asChild: r = !0, contentPr
|
|
|
6042
6042
|
},
|
|
6043
6043
|
disabled: o,
|
|
6044
6044
|
isLoading: o,
|
|
6045
|
-
className:
|
|
6045
|
+
className: M("", l),
|
|
6046
6046
|
children: c
|
|
6047
6047
|
})]
|
|
6048
6048
|
})]
|
|
@@ -6058,15 +6058,15 @@ var Fc = ({ children: e, label: t, labelClassName: n, asChild: r = !0, contentPr
|
|
|
6058
6058
|
slideFromRight: "_slideFromRight_ob3yj_1",
|
|
6059
6059
|
slideFromLeft: "_slideFromLeft_ob3yj_1",
|
|
6060
6060
|
slideFromBottom: "_slideFromBottom_ob3yj_1"
|
|
6061
|
-
}, Rc = Ln.Root, zc =
|
|
6061
|
+
}, Rc = Ln.Root, zc = De.forwardRef(({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ...o }, s) => /* @__PURE__ */ H(Ln.Trigger, {
|
|
6062
6062
|
ref: s,
|
|
6063
6063
|
"data-levo_element_key": t,
|
|
6064
6064
|
"data-levo_element_type": "PopoverTrigger",
|
|
6065
|
-
className:
|
|
6065
|
+
className: M("PopoverTrigger", e, n),
|
|
6066
6066
|
...o
|
|
6067
6067
|
}));
|
|
6068
6068
|
zc.displayName = "BasePopoverTrigger";
|
|
6069
|
-
var Bc =
|
|
6069
|
+
var Bc = De.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__ */ H(V, { children: o ? /* @__PURE__ */ H(Ln.Portal, {
|
|
6070
6070
|
container: s,
|
|
6071
6071
|
children: /* @__PURE__ */ H(Ln.Content, {
|
|
6072
6072
|
ref: d,
|
|
@@ -6074,7 +6074,7 @@ var Bc = Oe.forwardRef(({ className: e, elementKey: t, generatedClassName: n, co
|
|
|
6074
6074
|
sideOffset: l,
|
|
6075
6075
|
"data-levo_element_key": t,
|
|
6076
6076
|
"data-levo_element_type": "PopoverContent",
|
|
6077
|
-
className:
|
|
6077
|
+
className: M(Lc.popoverContent, e, n),
|
|
6078
6078
|
...u
|
|
6079
6079
|
})
|
|
6080
6080
|
}) : /* @__PURE__ */ H(Ln.Content, {
|
|
@@ -6083,42 +6083,42 @@ var Bc = Oe.forwardRef(({ className: e, elementKey: t, generatedClassName: n, co
|
|
|
6083
6083
|
sideOffset: l,
|
|
6084
6084
|
"data-levo_element_key": t,
|
|
6085
6085
|
"data-levo_element_type": "PopoverContent",
|
|
6086
|
-
className:
|
|
6086
|
+
className: M(Lc.popoverContent, e, n),
|
|
6087
6087
|
...u
|
|
6088
6088
|
}) }));
|
|
6089
6089
|
Bc.displayName = "BasePopoverContent";
|
|
6090
6090
|
var Vc = b(zc), Hc = b(Bc), Uc = ({ children: e, triggerContainerStyles: t, useCustomOpenState: n = !1, isOpen: r, handleCreateForumPostModalOpen: i, isCreateForumPostModalReady: a = !1, forumKey: o, onSuccess: s, onClose: c, mode: l = "create", initialValues: u }) => {
|
|
6091
|
-
let [d, f] = B(!1), { account: p, workspace: m } =
|
|
6091
|
+
let [d, f] = B(!1), { account: p, workspace: m } = A(), { fetch: h, logger: g } = P(), [_] = B("myself"), [v, y] = B(""), [b, x] = B(""), [S, w] = B(!1), [T, E] = B(!1), [D, O] = B(""), [k, ee] = B(""), [te, ne] = B(!1), [j, re] = B([]), [ie, ce] = B(!1), le = z(!1), [fe, pe] = B(l === "create");
|
|
6092
6092
|
L(() => {
|
|
6093
6093
|
if (l === "edit" && u) {
|
|
6094
|
-
y(u.title || ""), x(u.content || ""), u.kind === "link" && (E(!0),
|
|
6094
|
+
y(u.title || ""), x(u.content || ""), u.kind === "link" && (E(!0), O(u.url || ""));
|
|
6095
6095
|
let e = u.categories?.[0], t = typeof e == "string" ? e : e?._id;
|
|
6096
|
-
t &&
|
|
6096
|
+
t && ee(t), pe(!0);
|
|
6097
6097
|
}
|
|
6098
6098
|
}, [l, u]);
|
|
6099
|
-
let
|
|
6100
|
-
if (!(!o ||
|
|
6101
|
-
|
|
6099
|
+
let me = Pe(async () => {
|
|
6100
|
+
if (!(!o || le.current || ie)) {
|
|
6101
|
+
ce(!0);
|
|
6102
6102
|
try {
|
|
6103
6103
|
let e = await h.url(`/v1/community/${o}/category/list`).post({ limit: -1 }).json();
|
|
6104
|
-
e?.content?.data && (
|
|
6104
|
+
e?.content?.data && (re(e.content.data), le.current = !0);
|
|
6105
6105
|
} catch (e) {
|
|
6106
6106
|
let t = W(e);
|
|
6107
6107
|
g?.error("Failed to fetch categories", { exception: t });
|
|
6108
6108
|
} finally {
|
|
6109
|
-
|
|
6109
|
+
ce(!1);
|
|
6110
6110
|
}
|
|
6111
6111
|
}
|
|
6112
6112
|
}, [
|
|
6113
6113
|
o,
|
|
6114
6114
|
h,
|
|
6115
6115
|
g,
|
|
6116
|
-
|
|
6116
|
+
ie
|
|
6117
6117
|
]);
|
|
6118
6118
|
L(() => {
|
|
6119
|
-
|
|
6120
|
-
}, [
|
|
6121
|
-
let
|
|
6119
|
+
me();
|
|
6120
|
+
}, [me]);
|
|
6121
|
+
let he = R(() => {
|
|
6122
6122
|
if (_ === "workspace" && m?.name) return m.name;
|
|
6123
6123
|
if (p?.username) return p.username;
|
|
6124
6124
|
let e = [p?.first_name, p?.last_name]?.filter(Boolean);
|
|
@@ -6128,24 +6128,24 @@ var Vc = b(zc), Hc = b(Bc), Uc = ({ children: e, triggerContainerStyles: t, useC
|
|
|
6128
6128
|
p,
|
|
6129
6129
|
m
|
|
6130
6130
|
]);
|
|
6131
|
-
return /* @__PURE__ */ U(
|
|
6131
|
+
return /* @__PURE__ */ U(de, {
|
|
6132
6132
|
open: n ? r : d,
|
|
6133
6133
|
onOpenChange: n ? i : (e) => {
|
|
6134
6134
|
f(!!e);
|
|
6135
6135
|
},
|
|
6136
|
-
children: [e && /* @__PURE__ */ H(
|
|
6136
|
+
children: [e && /* @__PURE__ */ H(ue, {
|
|
6137
6137
|
asChild: !0,
|
|
6138
6138
|
children: /* @__PURE__ */ H("div", {
|
|
6139
|
-
className:
|
|
6139
|
+
className: M("", t),
|
|
6140
6140
|
children: e
|
|
6141
6141
|
})
|
|
6142
|
-
}), /* @__PURE__ */ U(
|
|
6142
|
+
}), /* @__PURE__ */ U(se, {
|
|
6143
6143
|
"data-prevent-post-navigation": !0,
|
|
6144
6144
|
className: "!max-w-[638px] flex flex-col gap-y-6",
|
|
6145
6145
|
autoFocus: !1,
|
|
6146
6146
|
showCloseButton: !1,
|
|
6147
6147
|
children: [
|
|
6148
|
-
/* @__PURE__ */ U(
|
|
6148
|
+
/* @__PURE__ */ U(ae, {
|
|
6149
6149
|
className: "!flex-row items-center justify-between",
|
|
6150
6150
|
children: [/* @__PURE__ */ U("div", {
|
|
6151
6151
|
className: "flex items-center gap-3",
|
|
@@ -6170,10 +6170,10 @@ var Vc = b(zc), Hc = b(Bc), Uc = ({ children: e, triggerContainerStyles: t, useC
|
|
|
6170
6170
|
}), /* @__PURE__ */ U("div", {
|
|
6171
6171
|
className: "flex items-center gap-2",
|
|
6172
6172
|
children: [
|
|
6173
|
-
l === "create" &&
|
|
6174
|
-
l === "create" && !
|
|
6175
|
-
open:
|
|
6176
|
-
onOpenChange:
|
|
6173
|
+
l === "create" && ie && /* @__PURE__ */ H("div", { className: "h-8 w-24 animate-pulse rounded-md bg-gray-200" }),
|
|
6174
|
+
l === "create" && !ie && j?.length > 0 && /* @__PURE__ */ U(Rc, {
|
|
6175
|
+
open: te,
|
|
6176
|
+
onOpenChange: ne,
|
|
6177
6177
|
children: [/* @__PURE__ */ H(Vc, {
|
|
6178
6178
|
elementKey: "category-trigger",
|
|
6179
6179
|
asChild: !0,
|
|
@@ -6183,20 +6183,20 @@ var Vc = b(zc), Hc = b(Bc), Uc = ({ children: e, triggerContainerStyles: t, useC
|
|
|
6183
6183
|
className: "flex h-8 cursor-pointer items-center gap-1.5 rounded-md border border-[#D1D6E1] bg-white px-3 py-1.5 font-medium text-sm transition-colors hover:bg-gray-50 disabled:opacity-50",
|
|
6184
6184
|
children: [/* @__PURE__ */ H("span", {
|
|
6185
6185
|
className: "text-text-1",
|
|
6186
|
-
children:
|
|
6186
|
+
children: j.find((e) => e._id === k)?.name || "Category"
|
|
6187
6187
|
}), /* @__PURE__ */ H(on, { className: "size-4 text-text-2" })]
|
|
6188
6188
|
})
|
|
6189
6189
|
}), /* @__PURE__ */ H(Hc, {
|
|
6190
6190
|
elementKey: "category-content",
|
|
6191
6191
|
align: "end",
|
|
6192
6192
|
className: "!w-[unset] !p-1 min-w-36 rounded-lg border border-gray-200 bg-white shadow-lg",
|
|
6193
|
-
children:
|
|
6193
|
+
children: j.map((e) => /* @__PURE__ */ U("button", {
|
|
6194
6194
|
type: "button",
|
|
6195
6195
|
onClick: () => {
|
|
6196
|
-
|
|
6196
|
+
ee(e._id), ne(!1);
|
|
6197
6197
|
},
|
|
6198
|
-
className:
|
|
6199
|
-
children: [/* @__PURE__ */ H("span", { children: e.name }),
|
|
6198
|
+
className: M("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", k === e._id ? "font-medium text-text-1" : "text-text-2"),
|
|
6199
|
+
children: [/* @__PURE__ */ H("span", { children: e.name }), k === e._id && /* @__PURE__ */ H(nn, { className: "size-4 text-brand" })]
|
|
6200
6200
|
}, e._id))
|
|
6201
6201
|
})]
|
|
6202
6202
|
}),
|
|
@@ -6213,9 +6213,9 @@ var Vc = b(zc), Hc = b(Bc), Uc = ({ children: e, triggerContainerStyles: t, useC
|
|
|
6213
6213
|
title: v.trim(),
|
|
6214
6214
|
content: b.trim() || void 0
|
|
6215
6215
|
};
|
|
6216
|
-
T &&
|
|
6216
|
+
T && D.trim() && (t.kind = "link", t.url = D.trim()), k && (t.categories = [k]), e = await h.url(`/v1/community/${o}/post/create-single`).post(t).json();
|
|
6217
6217
|
}
|
|
6218
|
-
e?.content?.data && (y(""), x(""), E(!1),
|
|
6218
|
+
e?.content?.data && (y(""), x(""), E(!1), O(""), ee(""), s?.(e.content.data), c?.());
|
|
6219
6219
|
} catch (e) {
|
|
6220
6220
|
let t = W(e);
|
|
6221
6221
|
g?.error(l === "edit" ? "Failed to update post" : "Failed to create post", { exception: t });
|
|
@@ -6224,7 +6224,7 @@ var Vc = b(zc), Hc = b(Bc), Uc = ({ children: e, triggerContainerStyles: t, useC
|
|
|
6224
6224
|
}
|
|
6225
6225
|
}
|
|
6226
6226
|
},
|
|
6227
|
-
disabled: !
|
|
6227
|
+
disabled: !fe || S || !v.trim(),
|
|
6228
6228
|
className: "!h-8 !border-none flex w-fit flex-nowrap whitespace-nowrap [&_span]:flex [&_span]:items-center [&_span]:gap-2",
|
|
6229
6229
|
isLoading: S,
|
|
6230
6230
|
loadingText: l === "edit" ? "Updating..." : "Creating...",
|
|
@@ -6236,7 +6236,7 @@ var Vc = b(zc), Hc = b(Bc), Uc = ({ children: e, triggerContainerStyles: t, useC
|
|
|
6236
6236
|
]
|
|
6237
6237
|
})]
|
|
6238
6238
|
}),
|
|
6239
|
-
|
|
6239
|
+
fe ? /* @__PURE__ */ U("div", {
|
|
6240
6240
|
className: "space-y-4",
|
|
6241
6241
|
children: [
|
|
6242
6242
|
/* @__PURE__ */ H(ml, {
|
|
@@ -6249,7 +6249,7 @@ var Vc = b(zc), Hc = b(Bc), Uc = ({ children: e, triggerContainerStyles: t, useC
|
|
|
6249
6249
|
value: v,
|
|
6250
6250
|
onChange: (e) => y(e.target.value),
|
|
6251
6251
|
disabled: S || l === "edit",
|
|
6252
|
-
inputStyles:
|
|
6252
|
+
inputStyles: M("h-12 border-[#D1D6E1] bg-white font-medium text-base placeholder:text-[#717C91] focus-visible:ring-1 focus-visible:ring-[#D1D6E1]", l === "edit" && "cursor-not-allowed bg-gray-50")
|
|
6253
6253
|
}),
|
|
6254
6254
|
/* @__PURE__ */ H(qu, {
|
|
6255
6255
|
name: "content",
|
|
@@ -6266,8 +6266,8 @@ var Vc = b(zc), Hc = b(Bc), Uc = ({ children: e, triggerContainerStyles: t, useC
|
|
|
6266
6266
|
T && /* @__PURE__ */ H(ml, {
|
|
6267
6267
|
name: "link",
|
|
6268
6268
|
placeholder: "Enter URL",
|
|
6269
|
-
value:
|
|
6270
|
-
onChange: (e) =>
|
|
6269
|
+
value: D,
|
|
6270
|
+
onChange: (e) => O(e.target.value),
|
|
6271
6271
|
disabled: S || l === "edit",
|
|
6272
6272
|
inputStyles: "border-[#D1D6E1] text-sm placeholder:text-[#717C91] bg-white focus-visible:ring-[#D1D6E1] focus-visible:ring-1 h-10"
|
|
6273
6273
|
})
|
|
@@ -6276,22 +6276,22 @@ var Vc = b(zc), Hc = b(Bc), Uc = ({ children: e, triggerContainerStyles: t, useC
|
|
|
6276
6276
|
className: "space-y-4",
|
|
6277
6277
|
children: [/* @__PURE__ */ H("div", { className: "h-12 animate-pulse rounded-md bg-gray-200" }), /* @__PURE__ */ H("div", { className: "h-64 animate-pulse rounded-md bg-gray-200" })]
|
|
6278
6278
|
}),
|
|
6279
|
-
/* @__PURE__ */ U(
|
|
6279
|
+
/* @__PURE__ */ U(oe, {
|
|
6280
6280
|
className: "!justify-between flex",
|
|
6281
6281
|
children: [/* @__PURE__ */ H("div", {
|
|
6282
6282
|
className: "flex items-center gap-2",
|
|
6283
6283
|
children: /* @__PURE__ */ H("button", {
|
|
6284
6284
|
type: "button",
|
|
6285
6285
|
onClick: () => {
|
|
6286
|
-
E(!T), T &&
|
|
6286
|
+
E(!T), T && O("");
|
|
6287
6287
|
},
|
|
6288
6288
|
disabled: S || l === "edit",
|
|
6289
|
-
className:
|
|
6289
|
+
className: M("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"),
|
|
6290
6290
|
children: /* @__PURE__ */ H(yn, { size: 16 })
|
|
6291
6291
|
})
|
|
6292
6292
|
}), /* @__PURE__ */ U("div", {
|
|
6293
6293
|
className: "flex items-center gap-2 text-sm text-text-2/80",
|
|
6294
|
-
children: [/* @__PURE__ */ U("span", { children: ["Your post will appear as @",
|
|
6294
|
+
children: [/* @__PURE__ */ U("span", { children: ["Your post will appear as @", he] }), /* @__PURE__ */ H(_n, { className: "size-4 text-text-1" })]
|
|
6295
6295
|
})]
|
|
6296
6296
|
})
|
|
6297
6297
|
]
|
|
@@ -6323,7 +6323,7 @@ var Wc = (e) => {
|
|
|
6323
6323
|
return "";
|
|
6324
6324
|
}
|
|
6325
6325
|
}, Gc = ({ post: e, isRenderedSolo: t, forumKey: n, postListingPageURL: r, onEditClick: i, onPostUpdated: a }) => {
|
|
6326
|
-
let { account: o } =
|
|
6326
|
+
let { account: o } = A(), { fetch: s, logger: c } = P(), [l, u] = B(!1), [d, f] = B(!1), [p, m] = B(!1), [h, g] = B(!1), _ = R(() => !!(e?.organization && e?.organization?.badge_granted_at), [e]), v = R(() => {
|
|
6327
6327
|
let t = e?.organization?.name?.split(" ") || [];
|
|
6328
6328
|
return t?.length > 1 ? t?.map((e) => e?.charAt(0)?.toUpperCase())?.join("") : t?.at(0)?.slice(0, 2)?.toUpperCase();
|
|
6329
6329
|
}, [e?.organization]), y = R(() => {
|
|
@@ -6485,11 +6485,11 @@ var Wc = (e) => {
|
|
|
6485
6485
|
className: "max-w-none text-sm text-text-2 leading-relaxed",
|
|
6486
6486
|
children: /* @__PURE__ */ H("div", { dangerouslySetInnerHTML: { __html: e.content || "" } })
|
|
6487
6487
|
}), Yc = ({ className: e, children: t, ...n }) => /* @__PURE__ */ H("div", {
|
|
6488
|
-
className:
|
|
6488
|
+
className: M("flex items-center gap-1 rounded-lg border border-[#D1D6E1] bg-[#F0F4FA] px-2 py-1 font-semibold text-sm", e),
|
|
6489
6489
|
...n,
|
|
6490
6490
|
children: t
|
|
6491
6491
|
}), Xc = ({ post: e, forumKey: t }) => {
|
|
6492
|
-
let { fetch: n, logger: r } =
|
|
6492
|
+
let { fetch: n, logger: r } = P(), { isLoggedIn: i } = A(), { openModal: a } = j(), { canInteractWithPosts: o } = kc(), [s, c] = B(!1), [l, u] = B(!!e?.upvoted_at), [d, f] = B(!!e?.downvoted_at), [p, m] = B((e.upvote_count ?? 0) - (e.downvote_count ?? 0)), h = !i || o;
|
|
6493
6493
|
return L(() => {
|
|
6494
6494
|
m((e.upvote_count ?? 0) - (e.downvote_count ?? 0));
|
|
6495
6495
|
}, [e?.upvote_count, e?.downvote_count]), L(() => {
|
|
@@ -6501,7 +6501,7 @@ var Wc = (e) => {
|
|
|
6501
6501
|
children: [
|
|
6502
6502
|
/* @__PURE__ */ H("button", {
|
|
6503
6503
|
type: "button",
|
|
6504
|
-
className:
|
|
6504
|
+
className: M("flex cursor-pointer items-center rounded-sm px-0.5 transition-all duration-200", !h && "cursor-not-allowed opacity-50"),
|
|
6505
6505
|
onClick: async (o) => {
|
|
6506
6506
|
if (o.stopPropagation(), o.preventDefault(), !i) {
|
|
6507
6507
|
a("login", {});
|
|
@@ -6530,12 +6530,12 @@ var Wc = (e) => {
|
|
|
6530
6530
|
})
|
|
6531
6531
|
}),
|
|
6532
6532
|
/* @__PURE__ */ H("span", {
|
|
6533
|
-
className:
|
|
6533
|
+
className: M("font-semibold text-sm"),
|
|
6534
6534
|
children: p
|
|
6535
6535
|
}),
|
|
6536
6536
|
/* @__PURE__ */ H("button", {
|
|
6537
6537
|
type: "button",
|
|
6538
|
-
className:
|
|
6538
|
+
className: M("flex cursor-pointer items-center rounded-sm px-0.5 transition-all duration-200", !h && "cursor-not-allowed opacity-50"),
|
|
6539
6539
|
onClick: async (o) => {
|
|
6540
6540
|
if (o.stopPropagation(), o.preventDefault(), !i) {
|
|
6541
6541
|
a("login", {});
|
|
@@ -6566,7 +6566,7 @@ var Wc = (e) => {
|
|
|
6566
6566
|
]
|
|
6567
6567
|
});
|
|
6568
6568
|
}, Zc = ({ post: e, postDetailPageURLPattern: t, isRenderedSolo: n = !1, actionsLoadingState: r, forumKey: i }) => /* @__PURE__ */ H("div", {
|
|
6569
|
-
className:
|
|
6569
|
+
className: M("mt-0"),
|
|
6570
6570
|
children: /* @__PURE__ */ H("div", {
|
|
6571
6571
|
className: "flex items-center justify-between",
|
|
6572
6572
|
children: /* @__PURE__ */ U("div", {
|
|
@@ -6577,7 +6577,7 @@ var Wc = (e) => {
|
|
|
6577
6577
|
forumKey: i
|
|
6578
6578
|
}),
|
|
6579
6579
|
r?.comments ? /* @__PURE__ */ H(Z, { className: "h-7.5 w-14 rounded-lg" }) : /* @__PURE__ */ U(Yc, {
|
|
6580
|
-
className:
|
|
6580
|
+
className: M("cursor-pointer gap-1.5", n && "cursor-default"),
|
|
6581
6581
|
onClick: (r) => {
|
|
6582
6582
|
r.stopPropagation(), r.preventDefault();
|
|
6583
6583
|
let i = t?.replace(/\{[^}]+\}/g, e?.slug);
|
|
@@ -6703,7 +6703,7 @@ var Wc = (e) => {
|
|
|
6703
6703
|
})
|
|
6704
6704
|
});
|
|
6705
6705
|
}, el = ({ option: e, post: t, setPost: n }) => {
|
|
6706
|
-
let { fetch: r, logger: i } =
|
|
6706
|
+
let { fetch: r, logger: i } = P(), a = R(() => {
|
|
6707
6707
|
let e = G(t?.expires_at), n = G();
|
|
6708
6708
|
return e?.isValid() ? !!n?.isAfter(e) : !1;
|
|
6709
6709
|
}, [t?.expires_at]), o = t?.user_voted_option === e?._id, s = !!t?.user_voted_option, c = t?.vote_count, l = R(() => Number.isFinite(c) && Number.isFinite(e?.count) && typeof c == "number" && c > 0 ? (e.count / c * 100)?.toFixed(0) : null, [t, e]), u = async (t, o) => {
|
|
@@ -6738,7 +6738,7 @@ var Wc = (e) => {
|
|
|
6738
6738
|
type: "button",
|
|
6739
6739
|
onClick: () => u(t, e._id),
|
|
6740
6740
|
disabled: a,
|
|
6741
|
-
className:
|
|
6741
|
+
className: M("w-full cursor-pointer rounded-lg border-2 p-4 text-left transition-all duration-200", o ? "border-blue-500 bg-blue-50 shadow-sm" : s || a ? "border-gray-200 bg-gray-50" : "border-gray-200 hover:border-blue-300 hover:bg-blue-50/50", a && "cursor-not-allowed"),
|
|
6742
6742
|
children: [
|
|
6743
6743
|
/* @__PURE__ */ U("div", {
|
|
6744
6744
|
className: "mb-2 flex items-center justify-between",
|
|
@@ -6858,7 +6858,7 @@ var Wc = (e) => {
|
|
|
6858
6858
|
side: "top",
|
|
6859
6859
|
labelClassName: "bg-[#171717] text-white",
|
|
6860
6860
|
children: /* @__PURE__ */ U("div", {
|
|
6861
|
-
className:
|
|
6861
|
+
className: M("flex cursor-pointer items-center gap-1.5 rounded-md border px-2 py-1 font-medium text-xs", t.className),
|
|
6862
6862
|
children: [t.icon, /* @__PURE__ */ H("span", { children: t.label })]
|
|
6863
6863
|
})
|
|
6864
6864
|
}) }) : null;
|
|
@@ -6897,7 +6897,7 @@ var Wc = (e) => {
|
|
|
6897
6897
|
side: "top",
|
|
6898
6898
|
labelClassName: "bg-[#171717] text-white",
|
|
6899
6899
|
children: /* @__PURE__ */ U("div", {
|
|
6900
|
-
className:
|
|
6900
|
+
className: M("flex h-[30px] cursor-pointer items-center gap-1.5 rounded-md border px-2 py-1 font-medium text-xs", t.className),
|
|
6901
6901
|
children: [t.icon, /* @__PURE__ */ H("span", { children: t.label })]
|
|
6902
6902
|
})
|
|
6903
6903
|
}) }) : null;
|
|
@@ -6908,20 +6908,20 @@ function ll({ className: e, type: t, ...n }) {
|
|
|
6908
6908
|
return /* @__PURE__ */ H("input", {
|
|
6909
6909
|
type: t,
|
|
6910
6910
|
"data-slot": "input",
|
|
6911
|
-
className:
|
|
6911
|
+
className: M("flex h-10 w-full min-w-0 rounded-md border border-border bg-transparent px-3 py-1 text-base text-text-1 shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-text-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30", "focus-visible:border-border focus-visible:ring-[3px] focus-visible:ring-brand/80", "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", e),
|
|
6912
6912
|
...n
|
|
6913
6913
|
});
|
|
6914
6914
|
}
|
|
6915
6915
|
//#endregion
|
|
6916
6916
|
//#region src/components/ui/form/utils/FieldError.tsx
|
|
6917
6917
|
var ul = ({ children: e }) => /* @__PURE__ */ H("p", {
|
|
6918
|
-
className:
|
|
6918
|
+
className: M("mt-2 font-medium text-red-400 text-xs"),
|
|
6919
6919
|
children: e
|
|
6920
6920
|
}), dl = ({ children: e, styles: t = "" }) => /* @__PURE__ */ H("p", {
|
|
6921
|
-
className:
|
|
6921
|
+
className: M("font-medium text-muted-foreground text-xs", t),
|
|
6922
6922
|
children: e
|
|
6923
6923
|
}), fl = ({ children: e, isRequired: t, className: n, ...r }) => /* @__PURE__ */ U("label", {
|
|
6924
|
-
className:
|
|
6924
|
+
className: M("mb-1 block flex-1 select-none text-sm leading-normal peer-disabled:cursor-not-allowed peer-disabled:opacity-70", n),
|
|
6925
6925
|
...r,
|
|
6926
6926
|
children: [
|
|
6927
6927
|
e,
|
|
@@ -6932,9 +6932,9 @@ var ul = ({ children: e }) => /* @__PURE__ */ H("p", {
|
|
|
6932
6932
|
})
|
|
6933
6933
|
]
|
|
6934
6934
|
}), pl = ({ error: e, touched: t = !1, helperText: n, containerStyles: r, helperTextStyles: i, readOnly: a, children: o, label: s, labelStyles: c, isRequired: l, name: u }) => /* @__PURE__ */ H("div", {
|
|
6935
|
-
className:
|
|
6935
|
+
className: M("form-control w-full", a ? "pointer-events-none" : "", r),
|
|
6936
6936
|
children: /* @__PURE__ */ U("div", {
|
|
6937
|
-
className:
|
|
6937
|
+
className: M("w-full shrink-0", "sm:flex-1"),
|
|
6938
6938
|
children: [
|
|
6939
6939
|
s && /* @__PURE__ */ H(fl, {
|
|
6940
6940
|
htmlFor: u,
|
|
@@ -6945,7 +6945,7 @@ var ul = ({ children: e }) => /* @__PURE__ */ H("p", {
|
|
|
6945
6945
|
o,
|
|
6946
6946
|
t && e && /* @__PURE__ */ H(ul, { children: e }),
|
|
6947
6947
|
n && /* @__PURE__ */ H("div", {
|
|
6948
|
-
className:
|
|
6948
|
+
className: M("break-word mt-2 w-full"),
|
|
6949
6949
|
children: /* @__PURE__ */ H(dl, {
|
|
6950
6950
|
styles: i,
|
|
6951
6951
|
children: n
|
|
@@ -6953,7 +6953,7 @@ var ul = ({ children: e }) => /* @__PURE__ */ H("p", {
|
|
|
6953
6953
|
})
|
|
6954
6954
|
]
|
|
6955
6955
|
})
|
|
6956
|
-
}), ml =
|
|
6956
|
+
}), ml = De.forwardRef(({ label: e, type: t, name: n, isRequired: r, labelStyles: i, leftIcon: a, rightIcon: o, leftIconBoxStyles: s, rightIconBoxStyles: c, containerStyles: l, helperTextStyles: u, inputStyles: d, value: f, disabled: p, inputProps: m, placeholder: h, readOnly: g, id: _, onChange: v, onBlur: y, error: b, helperText: x, touched: S, inputContainerStyles: C, leftIconBoxProps: w, rightIconBoxProps: T }, E) => /* @__PURE__ */ U(pl, {
|
|
6957
6957
|
containerStyles: l,
|
|
6958
6958
|
helperTextStyles: u,
|
|
6959
6959
|
error: b,
|
|
@@ -6963,13 +6963,13 @@ var ul = ({ children: e }) => /* @__PURE__ */ H("p", {
|
|
|
6963
6963
|
children: [e && /* @__PURE__ */ H(fl, {
|
|
6964
6964
|
htmlFor: n,
|
|
6965
6965
|
isRequired: r,
|
|
6966
|
-
className:
|
|
6966
|
+
className: M("text-3", i),
|
|
6967
6967
|
children: e
|
|
6968
6968
|
}), /* @__PURE__ */ U("div", {
|
|
6969
|
-
className:
|
|
6969
|
+
className: M("relative w-full", C),
|
|
6970
6970
|
children: [
|
|
6971
6971
|
a ? /* @__PURE__ */ H("div", {
|
|
6972
|
-
className:
|
|
6972
|
+
className: M("absolute top-0 bottom-0 left-0 flex w-9 items-center justify-center overflow-hidden rounded-l-md", "border border-transparent", s),
|
|
6973
6973
|
...w,
|
|
6974
6974
|
children: a
|
|
6975
6975
|
}) : null,
|
|
@@ -6981,14 +6981,14 @@ var ul = ({ children: e }) => /* @__PURE__ */ H("p", {
|
|
|
6981
6981
|
value: f,
|
|
6982
6982
|
disabled: p,
|
|
6983
6983
|
readOnly: g,
|
|
6984
|
-
className:
|
|
6984
|
+
className: M("bg-brand-foreground text-brand", g ? "focus-visible:ring-0" : "", a ? "pl-11" : "", o ? "pr-11" : "", d),
|
|
6985
6985
|
onChange: v,
|
|
6986
6986
|
onBlur: y,
|
|
6987
6987
|
ref: E,
|
|
6988
6988
|
...m
|
|
6989
6989
|
}),
|
|
6990
6990
|
o ? /* @__PURE__ */ H("div", {
|
|
6991
|
-
className:
|
|
6991
|
+
className: M("absolute top-0 right-0 bottom-0 flex w-9 items-center justify-center overflow-hidden rounded-r-md", "border border-transparent", c),
|
|
6992
6992
|
...T,
|
|
6993
6993
|
children: o
|
|
6994
6994
|
}) : null
|
|
@@ -6999,7 +6999,7 @@ ml.displayName = "FormInput";
|
|
|
6999
6999
|
//#endregion
|
|
7000
7000
|
//#region src/elements/forum/comments/ReplyBox.tsx
|
|
7001
7001
|
var hl = ({ isParent: e = !0 }) => {
|
|
7002
|
-
let { isLoggedIn: t, account: n } =
|
|
7002
|
+
let { isLoggedIn: t, account: n } = A(), r = R(() => {
|
|
7003
7003
|
let e = [n?.first_name, n?.last_name]?.filter(Boolean);
|
|
7004
7004
|
return e?.length === 1 ? e?.at(0)?.slice(0, 2)?.toUpperCase() : e?.length > 1 ? e?.map((e) => e?.at(0)?.toUpperCase()).join("") : n?.username?.slice(0, 2)?.toUpperCase();
|
|
7005
7005
|
}, [n]), i = R(() => {
|
|
@@ -7013,17 +7013,17 @@ var hl = ({ isParent: e = !0 }) => {
|
|
|
7013
7013
|
return null;
|
|
7014
7014
|
}, [n]);
|
|
7015
7015
|
return t ? /* @__PURE__ */ U(Fu, {
|
|
7016
|
-
className:
|
|
7016
|
+
className: M(e ? "h-10 w-10" : "h-[40px] w-[40px]"),
|
|
7017
7017
|
children: [/* @__PURE__ */ H(Lu, {
|
|
7018
7018
|
src: i?.media?.location,
|
|
7019
7019
|
alt: i?.alt || "User Profile"
|
|
7020
7020
|
}), /* @__PURE__ */ H(zu, {
|
|
7021
|
-
className:
|
|
7021
|
+
className: M("bg-brand text-brand-foreground", !e && "text-sm"),
|
|
7022
7022
|
children: r
|
|
7023
7023
|
})]
|
|
7024
7024
|
}) : null;
|
|
7025
7025
|
}, gl = ({ post: e, isParent: t = !1, parentCommentId: n = null, onCommentAdded: r, forumKey: i }) => {
|
|
7026
|
-
let { fetch: a, logger: o } =
|
|
7026
|
+
let { fetch: a, logger: o } = P(), { account: s, isLoggedIn: c } = A(), { openModal: l } = j(), { canInteractWithComments: u } = kc(), [d, f] = B(!1), [p, m] = B("");
|
|
7027
7027
|
if (c && !u) return null;
|
|
7028
7028
|
let h = () => {
|
|
7029
7029
|
c || l("login", {});
|
|
@@ -7049,7 +7049,7 @@ var hl = ({ isParent: e = !0 }) => {
|
|
|
7049
7049
|
}
|
|
7050
7050
|
};
|
|
7051
7051
|
return /* @__PURE__ */ U("div", {
|
|
7052
|
-
className:
|
|
7052
|
+
className: M("flex w-full items-start gap-3", !t && "gap-2.5"),
|
|
7053
7053
|
children: [/* @__PURE__ */ H(hl, { isParent: t }), /* @__PURE__ */ U("div", {
|
|
7054
7054
|
className: "flex w-full items-start justify-between gap-4",
|
|
7055
7055
|
children: [/* @__PURE__ */ H("div", {
|
|
@@ -7123,7 +7123,7 @@ var _l = ({ comment: e, avatarStyles: t }) => {
|
|
|
7123
7123
|
return null;
|
|
7124
7124
|
}, [e]);
|
|
7125
7125
|
return /* @__PURE__ */ U(Fu, {
|
|
7126
|
-
className:
|
|
7126
|
+
className: M("h-[28px] w-[28px]", t),
|
|
7127
7127
|
children: [/* @__PURE__ */ H(Lu, {
|
|
7128
7128
|
src: a?.media?.location,
|
|
7129
7129
|
alt: a?.alt || "User Profile"
|
|
@@ -7174,7 +7174,7 @@ var _l = ({ comment: e, avatarStyles: t }) => {
|
|
|
7174
7174
|
children: e
|
|
7175
7175
|
})]
|
|
7176
7176
|
}), bl = ({ comment: e, forumKey: t, userEngagementHashMap: n, setUserEngagementHashMap: r }) => {
|
|
7177
|
-
let { fetch: i, logger: a } =
|
|
7177
|
+
let { fetch: i, logger: a } = P(), { isLoggedIn: o } = A(), { openModal: s } = j(), { canInteractWithComments: c } = kc(), l = n?.[e?._id], [u, d] = B(!1), [f, p] = B(!!l?.upvoted_at), [m, h] = B(!!l?.downvoted_at), [g, _] = B((e.upvote_count ?? 0) - (e.downvote_count ?? 0)), v = !o || c;
|
|
7178
7178
|
return L(() => {
|
|
7179
7179
|
_((e.upvote_count ?? 0) - (e.downvote_count ?? 0));
|
|
7180
7180
|
}, [e?.upvote_count, e?.downvote_count]), L(() => {
|
|
@@ -7186,7 +7186,7 @@ var _l = ({ comment: e, avatarStyles: t }) => {
|
|
|
7186
7186
|
children: [
|
|
7187
7187
|
/* @__PURE__ */ H("button", {
|
|
7188
7188
|
type: "button",
|
|
7189
|
-
className:
|
|
7189
|
+
className: M("flex cursor-pointer items-center rounded-sm px-0.5 transition-all duration-200", !v && "cursor-not-allowed opacity-50"),
|
|
7190
7190
|
onClick: async (n) => {
|
|
7191
7191
|
if (n.stopPropagation(), n.preventDefault(), !o) {
|
|
7192
7192
|
s("login", {});
|
|
@@ -7225,12 +7225,12 @@ var _l = ({ comment: e, avatarStyles: t }) => {
|
|
|
7225
7225
|
})
|
|
7226
7226
|
}),
|
|
7227
7227
|
/* @__PURE__ */ H("span", {
|
|
7228
|
-
className:
|
|
7228
|
+
className: M("font-semibold text-sm"),
|
|
7229
7229
|
children: g
|
|
7230
7230
|
}),
|
|
7231
7231
|
/* @__PURE__ */ H("button", {
|
|
7232
7232
|
type: "button",
|
|
7233
|
-
className:
|
|
7233
|
+
className: M("flex cursor-pointer items-center rounded-sm px-0.5 transition-all duration-200", !v && "cursor-not-allowed opacity-50"),
|
|
7234
7234
|
onClick: async (n) => {
|
|
7235
7235
|
if (n.stopPropagation(), n.preventDefault(), !o) {
|
|
7236
7236
|
s("login", {});
|
|
@@ -7273,7 +7273,7 @@ var _l = ({ comment: e, avatarStyles: t }) => {
|
|
|
7273
7273
|
}, xl = ({ forumKey: e, post: t, comment: n, replyCount: r, onReplyAdded: i, onToggleReplies: a, showReplyBox: o, userEngagementHashMap: s, setUserEngagementHashMap: c }) => {
|
|
7274
7274
|
let l = !!n?.parent;
|
|
7275
7275
|
return /* @__PURE__ */ U("div", {
|
|
7276
|
-
className:
|
|
7276
|
+
className: M("w-full space-y-3"),
|
|
7277
7277
|
children: [/* @__PURE__ */ U("div", {
|
|
7278
7278
|
className: "flex items-center justify-between",
|
|
7279
7279
|
children: [/* @__PURE__ */ U("div", {
|
|
@@ -7313,19 +7313,19 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7313
7313
|
}), Cl = ({ comment: e, replyCount: t, showReplies: n, isShowMoreActive: r }) => {
|
|
7314
7314
|
let i = t === 0 ? 2 : t + (n ? 2 : 1) + +!!r;
|
|
7315
7315
|
return n ? /* @__PURE__ */ H(V, { children: Array(i).fill(0).map((e, n) => /* @__PURE__ */ U("div", {
|
|
7316
|
-
className:
|
|
7316
|
+
className: M("relative col-start-1 col-end-2", n === i - 1 && "grid h-full grid-cols-2 grid-rows-4"),
|
|
7317
7317
|
style: {
|
|
7318
7318
|
gridRowStart: n + 2,
|
|
7319
7319
|
gridRowEnd: n + 2 + 1
|
|
7320
7320
|
},
|
|
7321
7321
|
children: [
|
|
7322
|
-
n < i - 1 && /* @__PURE__ */ H("div", { className:
|
|
7323
|
-
t === 0 && n === i - 1 && /* @__PURE__ */ H(V, { children: /* @__PURE__ */ H("div", { className:
|
|
7324
|
-
t > 0 && /* @__PURE__ */ H(V, { children: (n === i - 1 || n > 1) && /* @__PURE__ */ H(V, { children: /* @__PURE__ */ H("div", { className:
|
|
7322
|
+
n < i - 1 && /* @__PURE__ */ H("div", { className: M("absolute top-0 bottom-0 left-1/2 -translate-x-1/2 border-gray-200 border-l", n === 0 && "top-2") }),
|
|
7323
|
+
t === 0 && n === i - 1 && /* @__PURE__ */ H(V, { children: /* @__PURE__ */ H("div", { className: M("absolute top-0 right-0 left-[14px] h-[72px] rounded-bl-md border-gray-200 border-b border-l") }) }),
|
|
7324
|
+
t > 0 && /* @__PURE__ */ H(V, { children: (n === i - 1 || n > 1) && /* @__PURE__ */ H(V, { children: /* @__PURE__ */ H("div", { className: M("absolute top-0 right-0 left-[14px] h-[30px] rounded-bl-md border-gray-200 border-b border-l", r && n === i - 1 && "h-[20px]") }) }) })
|
|
7325
7325
|
]
|
|
7326
7326
|
}, n)) }) : null;
|
|
7327
7327
|
}, wl = ({ forumKey: e, post: t, comment: n, onChildReplyAdded: r, index: i, userEngagementHashMap: a, setUserEngagementHashMap: o }) => {
|
|
7328
|
-
let { fetch: s, logger: c } =
|
|
7328
|
+
let { fetch: s, logger: c } = P(), [l, u] = B(n?.replies || []), [d, f] = B(1), [p, m] = B((n?.replies?.length ?? 0) >= 5), [h, g] = B(!1), [_, v] = B(!1), [y, b] = B(!1), [x, S] = B(typeof n?.reply_count == "number" ? n.reply_count : 0), C = !n?.parent, w = async (t) => {
|
|
7329
7329
|
if (C) try {
|
|
7330
7330
|
g(!0);
|
|
7331
7331
|
let r = await s.url(`/v1/community/${e}/comment/${n._id}/get-replies`).post({
|
|
@@ -7344,13 +7344,13 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7344
7344
|
w(d + 1);
|
|
7345
7345
|
}, E = (e) => {
|
|
7346
7346
|
u((t) => [e, ...t]), S((e) => e + 1), r?.();
|
|
7347
|
-
}, ee = () => {
|
|
7348
|
-
S((e) => e + 1), r?.();
|
|
7349
7347
|
}, D = () => {
|
|
7348
|
+
S((e) => e + 1), r?.();
|
|
7349
|
+
}, O = () => {
|
|
7350
7350
|
v((e) => !e), b((e) => !e);
|
|
7351
7351
|
};
|
|
7352
7352
|
return /* @__PURE__ */ U("div", {
|
|
7353
|
-
className:
|
|
7353
|
+
className: M("grid w-full grid-cols-[30px_1fr] gap-x-1.5 gap-y-0", !C && "col-start-2 row-span-1 mt-4"),
|
|
7354
7354
|
style: {
|
|
7355
7355
|
gridTemplateRows: `repeat(${(_ ? l?.length : 0) + 2},minmax(0px,auto))`,
|
|
7356
7356
|
...C ? {} : { gridRowStart: (i ?? 0) + 3 + 1 }
|
|
@@ -7384,7 +7384,7 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7384
7384
|
comment: n,
|
|
7385
7385
|
replyCount: x,
|
|
7386
7386
|
onReplyAdded: E,
|
|
7387
|
-
onToggleReplies:
|
|
7387
|
+
onToggleReplies: O,
|
|
7388
7388
|
showReplyBox: y,
|
|
7389
7389
|
userEngagementHashMap: a,
|
|
7390
7390
|
setUserEngagementHashMap: o,
|
|
@@ -7394,7 +7394,7 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7394
7394
|
_ && Array.isArray(l) && l.length > 0 && l.map((r, i) => /* @__PURE__ */ H(wl, {
|
|
7395
7395
|
comment: r,
|
|
7396
7396
|
post: t,
|
|
7397
|
-
onChildReplyAdded:
|
|
7397
|
+
onChildReplyAdded: D,
|
|
7398
7398
|
index: i,
|
|
7399
7399
|
userEngagementHashMap: a,
|
|
7400
7400
|
setUserEngagementHashMap: o,
|
|
@@ -7433,7 +7433,7 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7433
7433
|
]
|
|
7434
7434
|
})]
|
|
7435
7435
|
}), El = ({ forumKey: e, post: t, onCommentCountChange: n }) => {
|
|
7436
|
-
let { fetch: r, logger: i } =
|
|
7436
|
+
let { fetch: r, logger: i } = P(), [a, o] = B(!0), [s, c] = B(!1), [l, u] = B([]), [d, f] = B(1), [p, m] = B(!1), [h, g] = B("desc"), [_, v] = B(!1), y = z(null), [b, x] = B(t?.comments_count ?? 0), [S, C] = B({}), w = async (n = 1, a = h) => {
|
|
7437
7437
|
try {
|
|
7438
7438
|
let i = n === 1;
|
|
7439
7439
|
i ? o(!0) : c(!0);
|
|
@@ -7463,7 +7463,7 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7463
7463
|
f(e), w(e);
|
|
7464
7464
|
}, E = (e) => {
|
|
7465
7465
|
u((t) => [e, ...t]), x((e) => e + 1), n?.(1);
|
|
7466
|
-
},
|
|
7466
|
+
}, D = (e) => {
|
|
7467
7467
|
g(e), v(!1), f(1), w(1, e);
|
|
7468
7468
|
};
|
|
7469
7469
|
L(() => {
|
|
@@ -7478,13 +7478,13 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7478
7478
|
document.removeEventListener("mousedown", e);
|
|
7479
7479
|
};
|
|
7480
7480
|
}, []);
|
|
7481
|
-
let
|
|
7481
|
+
let O = [{
|
|
7482
7482
|
value: "desc",
|
|
7483
7483
|
label: "Most Recent"
|
|
7484
7484
|
}, {
|
|
7485
7485
|
value: "asc",
|
|
7486
7486
|
label: "Oldest"
|
|
7487
|
-
}],
|
|
7487
|
+
}], k = O.find((e) => e.value === h)?.label || "Most Recent";
|
|
7488
7488
|
return /* @__PURE__ */ U("div", {
|
|
7489
7489
|
className: "flex w-full flex-col gap-y-3.5",
|
|
7490
7490
|
children: [
|
|
@@ -7506,15 +7506,15 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7506
7506
|
type: "button",
|
|
7507
7507
|
onClick: () => v(!_),
|
|
7508
7508
|
className: "flex items-center gap-1.5 font-semibold text-sm text-text-1 transition-colors hover:text-text-1",
|
|
7509
|
-
children: [/* @__PURE__ */ H("span", { children:
|
|
7509
|
+
children: [/* @__PURE__ */ H("span", { children: k }), /* @__PURE__ */ H(on, {
|
|
7510
7510
|
size: 16,
|
|
7511
7511
|
className: `transition-transform ${_ ? "rotate-180" : ""}`
|
|
7512
7512
|
})]
|
|
7513
7513
|
}), _ && /* @__PURE__ */ H("div", {
|
|
7514
7514
|
className: "absolute top-full right-0 z-10 mt-2 flex min-w-[140px] flex-col gap-y-1 rounded-lg border border-gray-200 bg-white p-2 shadow-md",
|
|
7515
|
-
children:
|
|
7515
|
+
children: O.map((e) => /* @__PURE__ */ H("button", {
|
|
7516
7516
|
type: "button",
|
|
7517
|
-
onClick: () =>
|
|
7517
|
+
onClick: () => D(e.value),
|
|
7518
7518
|
className: `w-full rounded-md px-3 py-2 text-left font-medium text-sm transition-colors ${h === e.value ? "bg-brand text-brand-foreground" : "text-gray-700 hover:bg-gray-50"}`,
|
|
7519
7519
|
children: e.label
|
|
7520
7520
|
}, e.value))
|
|
@@ -7552,7 +7552,7 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7552
7552
|
]
|
|
7553
7553
|
});
|
|
7554
7554
|
}, Dl = () => {
|
|
7555
|
-
let { isLoggedIn: e, account: t } =
|
|
7555
|
+
let { isLoggedIn: e, account: t } = A(), n = R(() => {
|
|
7556
7556
|
let e = [t?.first_name, t?.last_name]?.filter(Boolean);
|
|
7557
7557
|
return e?.length === 1 ? e?.at(0)?.slice(0, 2)?.toUpperCase() : e?.length > 1 ? e?.map((e) => e?.at(0)?.toUpperCase()).join("") : t?.username?.slice(0, 2)?.toUpperCase();
|
|
7558
7558
|
}, [t]), r = R(() => {
|
|
@@ -7566,17 +7566,17 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7566
7566
|
return null;
|
|
7567
7567
|
}, [t]);
|
|
7568
7568
|
return e ? /* @__PURE__ */ U(Fu, {
|
|
7569
|
-
className:
|
|
7569
|
+
className: M("h-11 w-11"),
|
|
7570
7570
|
children: [/* @__PURE__ */ H(Lu, {
|
|
7571
7571
|
src: r?.media?.location,
|
|
7572
7572
|
alt: r?.alt || "User Profile"
|
|
7573
7573
|
}), /* @__PURE__ */ H(zu, {
|
|
7574
|
-
className:
|
|
7574
|
+
className: M("bg-brand text-brand-foreground"),
|
|
7575
7575
|
children: n
|
|
7576
7576
|
})]
|
|
7577
7577
|
}) : null;
|
|
7578
7578
|
}, Ol = ({ forumKey: e, onPostCreated: t }) => {
|
|
7579
|
-
let { forum: n, isMember: r, isLoadingMembership: i, isInviteOnly: a } = kc(), { isAuthLoaded: o, isLoggedIn: s, account: c } =
|
|
7579
|
+
let { forum: n, isMember: r, isLoadingMembership: i, isInviteOnly: a } = kc(), { isAuthLoaded: o, isLoggedIn: s, account: c } = A(), [l, u] = B(!1), d = (e) => {
|
|
7580
7580
|
t?.(e), u(!1);
|
|
7581
7581
|
}, f = R(() => {
|
|
7582
7582
|
if (!c) return "there";
|
|
@@ -7655,7 +7655,7 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7655
7655
|
post: e,
|
|
7656
7656
|
postDetailPageURLPattern: t ? null : n,
|
|
7657
7657
|
children: /* @__PURE__ */ U("div", {
|
|
7658
|
-
className:
|
|
7658
|
+
className: M("flex flex-col gap-3 rounded-lg border border-[#E5E5E5] bg-white p-3", t && "border-none px-0 py-0", o),
|
|
7659
7659
|
children: [
|
|
7660
7660
|
/* @__PURE__ */ H(Gc, {
|
|
7661
7661
|
post: e,
|
|
@@ -7697,7 +7697,7 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7697
7697
|
}) : /* @__PURE__ */ H(V, { children: t }), Nl = ({ onSubmit: e, isSubmitting: t, error: n, communityName: r = "this community", className: i }) => {
|
|
7698
7698
|
let [a, o] = B(""), [s, c] = B("idle");
|
|
7699
7699
|
return s === "success" ? /* @__PURE__ */ U("div", {
|
|
7700
|
-
className:
|
|
7700
|
+
className: M("flex flex-col items-center gap-3", i),
|
|
7701
7701
|
children: [
|
|
7702
7702
|
/* @__PURE__ */ H("div", {
|
|
7703
7703
|
className: "flex size-12 items-center justify-center rounded-full bg-green-100",
|
|
@@ -7717,7 +7717,7 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7717
7717
|
})
|
|
7718
7718
|
]
|
|
7719
7719
|
}) : /* @__PURE__ */ U("div", {
|
|
7720
|
-
className:
|
|
7720
|
+
className: M("flex w-full flex-col gap-4", i),
|
|
7721
7721
|
children: [
|
|
7722
7722
|
/* @__PURE__ */ U("div", {
|
|
7723
7723
|
className: "flex flex-col gap-1.5",
|
|
@@ -7762,7 +7762,7 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7762
7762
|
}
|
|
7763
7763
|
},
|
|
7764
7764
|
disabled: t,
|
|
7765
|
-
className:
|
|
7765
|
+
className: M("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"),
|
|
7766
7766
|
children: t ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(bn, { className: "mr-2 size-4 animate-spin" }), "Submitting..."] }) : "Request to Join"
|
|
7767
7767
|
})
|
|
7768
7768
|
]
|
|
@@ -7792,11 +7792,11 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7792
7792
|
]
|
|
7793
7793
|
})]
|
|
7794
7794
|
}), Fl = ({ communityName: e = "this community", className: t }) => {
|
|
7795
|
-
let { isLoggedIn: n } =
|
|
7795
|
+
let { isLoggedIn: n } = A(), { openModal: r } = j(), { isJoinRequestPending: i, allowJoinRequests: a, submitJoinRequest: o } = kc(), [s, c] = B(!1), [l, u] = B(null), d = () => {
|
|
7796
7796
|
r("login", {});
|
|
7797
7797
|
}, f = n && i;
|
|
7798
7798
|
return /* @__PURE__ */ U("div", {
|
|
7799
|
-
className:
|
|
7799
|
+
className: M("relative", t),
|
|
7800
7800
|
children: [/* @__PURE__ */ U("div", {
|
|
7801
7801
|
className: "pointer-events-none flex flex-col gap-y-4 blur-[2px]",
|
|
7802
7802
|
children: [
|
|
@@ -7810,7 +7810,7 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7810
7810
|
className: "flex max-w-sm flex-col items-center gap-3 rounded-xl border border-gray-200 bg-white p-6 text-center shadow-sm",
|
|
7811
7811
|
children: [
|
|
7812
7812
|
/* @__PURE__ */ H("div", {
|
|
7813
|
-
className:
|
|
7813
|
+
className: M("flex size-12 items-center justify-center rounded-full", f ? "bg-amber-100" : "bg-gray-100"),
|
|
7814
7814
|
children: f ? /* @__PURE__ */ H(un, { className: "size-5 text-amber-600" }) : /* @__PURE__ */ H(xn, { className: "size-5 text-text-2" })
|
|
7815
7815
|
}),
|
|
7816
7816
|
/* @__PURE__ */ H("p", {
|
|
@@ -7863,7 +7863,7 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7863
7863
|
})]
|
|
7864
7864
|
});
|
|
7865
7865
|
}, Il = ({ communityName: e = "this community", className: t }) => /* @__PURE__ */ U("div", {
|
|
7866
|
-
className:
|
|
7866
|
+
className: M("flex flex-col items-center gap-3", t),
|
|
7867
7867
|
children: [
|
|
7868
7868
|
/* @__PURE__ */ H("div", {
|
|
7869
7869
|
className: "flex size-14 items-center justify-center rounded-full bg-amber-100",
|
|
@@ -7914,7 +7914,7 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7914
7914
|
})
|
|
7915
7915
|
]
|
|
7916
7916
|
}), Rl = ({ isOpen: e, communityName: t = "this community", className: n }) => {
|
|
7917
|
-
let { isLoggedIn: r } =
|
|
7917
|
+
let { isLoggedIn: r } = A(), { openModal: i } = j(), { isJoinRequestPending: a, allowJoinRequests: o, submitJoinRequest: s } = kc(), [c, l] = B(!1), [u, d] = B(null), f = () => {
|
|
7918
7918
|
i("login", {});
|
|
7919
7919
|
}, p = async (e) => {
|
|
7920
7920
|
l(!0), d(null);
|
|
@@ -7926,32 +7926,32 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7926
7926
|
l(!1);
|
|
7927
7927
|
}
|
|
7928
7928
|
}, m = r && a;
|
|
7929
|
-
return /* @__PURE__ */ H(
|
|
7929
|
+
return /* @__PURE__ */ H(de, {
|
|
7930
7930
|
open: e,
|
|
7931
|
-
children: /* @__PURE__ */ H(
|
|
7932
|
-
className:
|
|
7931
|
+
children: /* @__PURE__ */ H(se, {
|
|
7932
|
+
className: M("max-w-md", n),
|
|
7933
7933
|
showCloseButton: !1,
|
|
7934
7934
|
onPointerDownOutside: (e) => e.preventDefault(),
|
|
7935
7935
|
onEscapeKeyDown: (e) => e.preventDefault(),
|
|
7936
|
-
children: /* @__PURE__ */ U(
|
|
7936
|
+
children: /* @__PURE__ */ U(ae, {
|
|
7937
7937
|
className: "items-center gap-4",
|
|
7938
7938
|
children: [
|
|
7939
7939
|
/* @__PURE__ */ H("div", {
|
|
7940
|
-
className:
|
|
7940
|
+
className: M("flex size-14 items-center justify-center rounded-full", m ? "bg-amber-100" : "bg-gray-100"),
|
|
7941
7941
|
children: m ? /* @__PURE__ */ H(un, { className: "size-6 text-amber-600" }) : /* @__PURE__ */ H(xn, { className: "size-6 text-text-2" })
|
|
7942
7942
|
}),
|
|
7943
|
-
/* @__PURE__ */ H(
|
|
7943
|
+
/* @__PURE__ */ H(ce, {
|
|
7944
7944
|
className: "text-center font-semibold text-lg",
|
|
7945
7945
|
children: m ? "Request Pending" : "Members Only Content"
|
|
7946
7946
|
}),
|
|
7947
|
-
r ? a ? /* @__PURE__ */ U(
|
|
7947
|
+
r ? a ? /* @__PURE__ */ U(le, {
|
|
7948
7948
|
className: "text-center text-sm text-text-2",
|
|
7949
7949
|
children: [
|
|
7950
7950
|
"Your request to join ",
|
|
7951
7951
|
t,
|
|
7952
7952
|
" is pending approval. You'll be notified once the admins review your request."
|
|
7953
7953
|
]
|
|
7954
|
-
}) : o ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(
|
|
7954
|
+
}) : o ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(le, {
|
|
7955
7955
|
className: "text-center text-sm text-text-2",
|
|
7956
7956
|
children: "This community is invite-only. Submit a request to join and get access to posts."
|
|
7957
7957
|
}), /* @__PURE__ */ H(Nl, {
|
|
@@ -7960,14 +7960,14 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7960
7960
|
error: u,
|
|
7961
7961
|
communityName: t,
|
|
7962
7962
|
className: "mt-2 w-full"
|
|
7963
|
-
})] }) : /* @__PURE__ */ U(
|
|
7963
|
+
})] }) : /* @__PURE__ */ U(le, {
|
|
7964
7964
|
className: "text-center text-sm text-text-2",
|
|
7965
7965
|
children: [
|
|
7966
7966
|
"You need to be a member of ",
|
|
7967
7967
|
t,
|
|
7968
7968
|
" to view posts. Please contact the community administrators for access."
|
|
7969
7969
|
]
|
|
7970
|
-
}) : /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(
|
|
7970
|
+
}) : /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(le, {
|
|
7971
7971
|
className: "text-center text-sm text-text-2",
|
|
7972
7972
|
children: "Please log in to access this community's content."
|
|
7973
7973
|
}), /* @__PURE__ */ H(C, {
|
|
@@ -7980,28 +7980,28 @@ var Sl = ({ wrapperStyles: e }) => /* @__PURE__ */ U("div", {
|
|
|
7980
7980
|
})
|
|
7981
7981
|
});
|
|
7982
7982
|
}, zl = ({ inputStyles: e, ...t }) => /* @__PURE__ */ H(ml, {
|
|
7983
|
-
inputStyles:
|
|
7983
|
+
inputStyles: M("border-[#D1D6E1] bg-white text-sm placeholder:text-[#717C91] focus-visible:ring-1 focus-visible:ring-[#D1D6E1] sm:placeholder:text-sm", e),
|
|
7984
7984
|
leftIcon: /* @__PURE__ */ H(Tn, { size: 16 }),
|
|
7985
7985
|
...t
|
|
7986
|
-
}), Bl =
|
|
7986
|
+
}), Bl = je(({ children: e, className: t, config: n, content: r, styles: i, elementKey: a, generatedClassName: o, ...s }, c) => {
|
|
7987
7987
|
let l = e ?? r;
|
|
7988
7988
|
return typeof l == "string" ? /* @__PURE__ */ H(`h${n?.heading?.level ?? 2}`, {
|
|
7989
7989
|
ref: c,
|
|
7990
7990
|
"data-levo_element_key": a,
|
|
7991
7991
|
"data-levo_element_type": "Heading",
|
|
7992
|
-
className:
|
|
7992
|
+
className: M(t, o),
|
|
7993
7993
|
...s,
|
|
7994
7994
|
children: l ? Lt(l) : ""
|
|
7995
7995
|
}) : null;
|
|
7996
7996
|
});
|
|
7997
7997
|
Bl.displayName = "BaseHeading";
|
|
7998
|
-
var Vl = b(Bl), Hl =
|
|
7998
|
+
var Vl = b(Bl), Hl = je(({ className: e, elementKey: t, generatedClassName: n, content: r, styles: i, ...a }, o) => {
|
|
7999
7999
|
let { isStudio: s } = f();
|
|
8000
8000
|
return /* @__PURE__ */ H("div", {
|
|
8001
8001
|
ref: o,
|
|
8002
8002
|
"data-levo_element_key": t,
|
|
8003
8003
|
"data-levo_element_type": "Iframe",
|
|
8004
|
-
className:
|
|
8004
|
+
className: M(e, n, s && "[&>*]:pointer-events-none"),
|
|
8005
8005
|
...a,
|
|
8006
8006
|
children: typeof r == "string" ? Lt(r) : ""
|
|
8007
8007
|
});
|
|
@@ -8028,7 +8028,7 @@ var ql = ({ responsive: e }) => {
|
|
|
8028
8028
|
media: Gl,
|
|
8029
8029
|
srcSet: n
|
|
8030
8030
|
})] });
|
|
8031
|
-
}, Jl =
|
|
8031
|
+
}, Jl = je(({ className: e, image: t, alt: n, width: r, height: i, config: a, content: o, styles: s, elementKey: c, generatedClassName: l, ...u }, d) => {
|
|
8032
8032
|
let f = t ?? o;
|
|
8033
8033
|
if (!f?.location) return /* @__PURE__ */ H("span", {
|
|
8034
8034
|
ref: d,
|
|
@@ -8038,7 +8038,7 @@ var ql = ({ responsive: e }) => {
|
|
|
8038
8038
|
ref: d,
|
|
8039
8039
|
"data-levo_element_key": c,
|
|
8040
8040
|
"data-levo_element_type": "Image",
|
|
8041
|
-
className:
|
|
8041
|
+
className: M(e, l),
|
|
8042
8042
|
src: f?.location,
|
|
8043
8043
|
srcSet: f?.srcset?.path,
|
|
8044
8044
|
alt: a?.image?.alt ?? n,
|
|
@@ -8055,20 +8055,20 @@ var ql = ({ responsive: e }) => {
|
|
|
8055
8055
|
});
|
|
8056
8056
|
});
|
|
8057
8057
|
Jl.displayName = "BaseImage";
|
|
8058
|
-
var Yl = b(Jl), Xl =
|
|
8058
|
+
var Yl = b(Jl), Xl = je(({ children: e, className: t, config: n, content: r, styles: i, elementKey: a, generatedClassName: o, ...s }, c) => {
|
|
8059
8059
|
let l = n?.action?.type === "external_link" ? n?.action?.value : n?.action?.type === "email" ? `mailto:${n?.action?.value}` : n?.action?.type === "phone" ? `tel:${n?.action?.value}` : "#";
|
|
8060
8060
|
return /* @__PURE__ */ H("a", {
|
|
8061
8061
|
ref: c,
|
|
8062
8062
|
"data-levo_element_key": a,
|
|
8063
8063
|
"data-levo_element_type": "Link",
|
|
8064
|
-
className:
|
|
8064
|
+
className: M(t, o),
|
|
8065
8065
|
href: l,
|
|
8066
8066
|
...s,
|
|
8067
8067
|
children: typeof e == "string" ? Lt(Wn.sanitize(e)) : e
|
|
8068
8068
|
});
|
|
8069
8069
|
});
|
|
8070
8070
|
Xl.displayName = "BaseLink";
|
|
8071
|
-
var Zl = b(Xl), Ql =
|
|
8071
|
+
var Zl = b(Xl), Ql = je(({ className: e, media: t, alt: n, width: r, height: i, content: a, config: o, styles: s, elementKey: c, generatedClassName: l, isVideo: u, ...d }, f) => {
|
|
8072
8072
|
let p = t ?? a;
|
|
8073
8073
|
if (!p?.location) return /* @__PURE__ */ H("span", {
|
|
8074
8074
|
ref: f,
|
|
@@ -8078,7 +8078,7 @@ var Zl = b(Xl), Ql = Me(({ className: e, media: t, alt: n, width: r, height: i,
|
|
|
8078
8078
|
ref: f,
|
|
8079
8079
|
"data-levo_element_key": c,
|
|
8080
8080
|
"data-levo_element_type": "Media",
|
|
8081
|
-
className:
|
|
8081
|
+
className: M(e, l),
|
|
8082
8082
|
width: o?.media?.width ?? r,
|
|
8083
8083
|
height: o?.media?.height ?? i,
|
|
8084
8084
|
"aria-label": o?.media?.alt ?? n,
|
|
@@ -8102,7 +8102,7 @@ var Zl = b(Xl), Ql = Me(({ className: e, media: t, alt: n, width: r, height: i,
|
|
|
8102
8102
|
ref: f,
|
|
8103
8103
|
"data-levo_element_key": c,
|
|
8104
8104
|
"data-levo_element_type": "Media",
|
|
8105
|
-
className:
|
|
8105
|
+
className: M(e, l),
|
|
8106
8106
|
src: p.location,
|
|
8107
8107
|
srcSet: p.srcset?.path,
|
|
8108
8108
|
alt: o?.image?.alt ?? n,
|
|
@@ -8302,9 +8302,9 @@ var au = (e) => nu[e] || null, ou = (e) => {
|
|
|
8302
8302
|
break;
|
|
8303
8303
|
}
|
|
8304
8304
|
return t;
|
|
8305
|
-
}, uu =
|
|
8305
|
+
}, uu = I(() => import("./Beams-DVEhileN.js").then((e) => ({ default: e.BackgroundBeams }))), du = I(() => import("./Dots-vp0H1Md3.js").then((e) => ({ default: e.BackgroundDots }))), fu = I(() => import("./Grid-D694XUrO.js").then((e) => ({ default: e.BackgroundGrid }))), pu = I(() => import("./Gradient-_5G8Qm5s.js").then((e) => ({ default: e.BackgroundGradient }))), mu = I(() => import("./Waves-DeNoq6Bo.js").then((e) => ({ default: e.BackgroundWaves }))), hu = Me(() => /* @__PURE__ */ H("div", { className: "absolute inset-0 z-[-1] bg-transparent" }));
|
|
8306
8306
|
hu.displayName = "EffectFallback";
|
|
8307
|
-
var gu =
|
|
8307
|
+
var gu = Me(({ config: e }) => {
|
|
8308
8308
|
let { type: t, colors: n, settings: r } = e, i = R(() => {
|
|
8309
8309
|
switch (t) {
|
|
8310
8310
|
case "beams": return {
|
|
@@ -8355,7 +8355,7 @@ var gu = Ne(({ config: e }) => {
|
|
|
8355
8355
|
}
|
|
8356
8356
|
});
|
|
8357
8357
|
gu.displayName = "EffectRenderer";
|
|
8358
|
-
var _u =
|
|
8358
|
+
var _u = Me(({ config: e, presetId: t }) => {
|
|
8359
8359
|
let n = R(() => {
|
|
8360
8360
|
if (t) {
|
|
8361
8361
|
let n = su(t);
|
|
@@ -8367,7 +8367,7 @@ var _u = Ne(({ config: e, presetId: t }) => {
|
|
|
8367
8367
|
}
|
|
8368
8368
|
return e || null;
|
|
8369
8369
|
}, [e, t]);
|
|
8370
|
-
return n ? /* @__PURE__ */ H(
|
|
8370
|
+
return n ? /* @__PURE__ */ H(ke, {
|
|
8371
8371
|
fallback: /* @__PURE__ */ H(hu, {}),
|
|
8372
8372
|
children: /* @__PURE__ */ H(gu, { config: n })
|
|
8373
8373
|
}) : null;
|
|
@@ -8375,11 +8375,11 @@ var _u = Ne(({ config: e, presetId: t }) => {
|
|
|
8375
8375
|
_u.displayName = "BackgroundEffects";
|
|
8376
8376
|
//#endregion
|
|
8377
8377
|
//#region src/elements/Section.tsx
|
|
8378
|
-
var vu =
|
|
8378
|
+
var vu = je(({ children: e, className: t, elementKey: n, generatedClassName: r, content: i, config: a, styles: o, ...s }, c) => /* @__PURE__ */ U("section", {
|
|
8379
8379
|
ref: c,
|
|
8380
8380
|
"data-levo_element_key": n,
|
|
8381
8381
|
"data-levo_element_type": "Section",
|
|
8382
|
-
className:
|
|
8382
|
+
className: M(t, r),
|
|
8383
8383
|
...s,
|
|
8384
8384
|
children: [
|
|
8385
8385
|
/* @__PURE__ */ H(ic, { backgroundVideo: a?.backgroundVideo }),
|
|
@@ -8394,7 +8394,7 @@ function xu({ className: e, elementKey: t, generatedClassName: n, content: r, co
|
|
|
8394
8394
|
ref: o,
|
|
8395
8395
|
"data-levo_element_key": t,
|
|
8396
8396
|
"data-levo_element_type": "TabsList",
|
|
8397
|
-
className:
|
|
8397
|
+
className: M("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", e, n),
|
|
8398
8398
|
...s
|
|
8399
8399
|
});
|
|
8400
8400
|
}
|
|
@@ -8404,7 +8404,7 @@ function Su({ className: e, elementKey: t, generatedClassName: n, content: r, co
|
|
|
8404
8404
|
ref: o,
|
|
8405
8405
|
"data-levo_element_key": t,
|
|
8406
8406
|
"data-levo_element_type": "TabsTrigger",
|
|
8407
|
-
className:
|
|
8407
|
+
className: M("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 font-medium text-sm ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", e, n),
|
|
8408
8408
|
...s,
|
|
8409
8409
|
children: r
|
|
8410
8410
|
});
|
|
@@ -8415,18 +8415,18 @@ function Cu({ className: e, elementKey: t, generatedClassName: n, content: r, co
|
|
|
8415
8415
|
ref: o,
|
|
8416
8416
|
"data-levo_element_key": t,
|
|
8417
8417
|
"data-levo_element_type": "TabsContent",
|
|
8418
|
-
className:
|
|
8418
|
+
className: M("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", e, n),
|
|
8419
8419
|
...s
|
|
8420
8420
|
});
|
|
8421
8421
|
}
|
|
8422
8422
|
Cu.displayName = "BaseTabsContent";
|
|
8423
|
-
var wu = b(xu), Tu = b(Su), Eu = b(Cu), Du = { TypographyBaseStyles: "_TypographyBaseStyles_wqur5_1" }, Ou =
|
|
8423
|
+
var wu = b(xu), Tu = b(Su), Eu = b(Cu), Du = { TypographyBaseStyles: "_TypographyBaseStyles_wqur5_1" }, Ou = je(({ children: e, className: t, content: n, config: r, styles: i, elementKey: a, generatedClassName: o, ...s }, c) => {
|
|
8424
8424
|
let l = Wn.sanitize(e || n);
|
|
8425
8425
|
return /* @__PURE__ */ H("div", {
|
|
8426
8426
|
ref: c,
|
|
8427
8427
|
"data-levo_element_key": a,
|
|
8428
8428
|
"data-levo_element_type": "Typography",
|
|
8429
|
-
className:
|
|
8429
|
+
className: M(Du.TypographyBaseStyles, t, o, !l && "text-muted-foreground"),
|
|
8430
8430
|
...s,
|
|
8431
8431
|
children: l ? Lt(l) : ""
|
|
8432
8432
|
});
|
|
@@ -8449,7 +8449,7 @@ var ku = b(Ou), Q = {
|
|
|
8449
8449
|
spinner: "_spinner_366z5_124",
|
|
8450
8450
|
spin: "_spin_366z5_124"
|
|
8451
8451
|
}, Au = ({ elementKey: e, className: t, config: n }) => {
|
|
8452
|
-
let { isLoggedIn: r, account: i, isSignOutLoading: a } =
|
|
8452
|
+
let { isLoggedIn: r, account: i, isSignOutLoading: a } = A(), { openModal: o } = j(), { signOut: s } = fe();
|
|
8453
8453
|
if (!n?.enabled) return null;
|
|
8454
8454
|
let c = () => {
|
|
8455
8455
|
o("login");
|
|
@@ -8463,7 +8463,7 @@ var ku = b(Ou), Q = {
|
|
|
8463
8463
|
return e && t ? `${e[0]}${t[0]}`.toUpperCase() : e ? e[0]?.toUpperCase() : n ? n[0]?.toUpperCase() : r ? r[0]?.toUpperCase() : "U";
|
|
8464
8464
|
};
|
|
8465
8465
|
return /* @__PURE__ */ H("div", {
|
|
8466
|
-
className:
|
|
8466
|
+
className: M(Q.userMenu, t),
|
|
8467
8467
|
"data-levo_element_key": e,
|
|
8468
8468
|
"data-levo_element_type": "UserMenu",
|
|
8469
8469
|
children: r ? /* @__PURE__ */ U(Rc, { children: [/* @__PURE__ */ H(Vc, {
|
|
@@ -8504,7 +8504,7 @@ var ku = b(Ou), Q = {
|
|
|
8504
8504
|
onClick: l,
|
|
8505
8505
|
children: [/* @__PURE__ */ H(jn, { size: 16 }), /* @__PURE__ */ H("span", { children: "Profile" })]
|
|
8506
8506
|
}), /* @__PURE__ */ U("button", {
|
|
8507
|
-
className:
|
|
8507
|
+
className: M(Q.userMenuItem, Q.logoutItem),
|
|
8508
8508
|
onClick: u,
|
|
8509
8509
|
disabled: a,
|
|
8510
8510
|
children: [a ? /* @__PURE__ */ H("div", { className: Q.spinner }) : /* @__PURE__ */ H(Sn, { size: 16 }), /* @__PURE__ */ H("span", { children: a ? "Logging out..." : "Logout" })]
|
|
@@ -8600,7 +8600,7 @@ var ku = b(Ou), Q = {
|
|
|
8600
8600
|
] })
|
|
8601
8601
|
]
|
|
8602
8602
|
}),
|
|
8603
|
-
/* @__PURE__ */ H(
|
|
8603
|
+
/* @__PURE__ */ H(O, {
|
|
8604
8604
|
elementKey: "booking-close-btn",
|
|
8605
8605
|
onClick: n,
|
|
8606
8606
|
className: "w-full rounded-lg px-4 py-3 font-semibold",
|
|
@@ -8671,7 +8671,7 @@ var ku = b(Ou), Q = {
|
|
|
8671
8671
|
})
|
|
8672
8672
|
]
|
|
8673
8673
|
}),
|
|
8674
|
-
/* @__PURE__ */ H(
|
|
8674
|
+
/* @__PURE__ */ H(O, {
|
|
8675
8675
|
elementKey: "booking-pay-btn",
|
|
8676
8676
|
onClick: t,
|
|
8677
8677
|
disabled: n,
|
|
@@ -8681,7 +8681,7 @@ var ku = b(Ou), Q = {
|
|
|
8681
8681
|
]
|
|
8682
8682
|
});
|
|
8683
8683
|
}, Pu = ({ isOpen: e, onClose: t, contentId: n, collectionKey: r }) => {
|
|
8684
|
-
let i =
|
|
8684
|
+
let i = P(), { workspace: a } = A(), { Razorpay: o } = Zn(), { stripePromise: s, config: c, isOpen: l, openStripeCheckout: u, closeStripeCheckout: d, setOnComplete: f } = pe(), [p, m] = B("loading"), [h, g] = B(null), [_, v] = B(null), [y, b] = B(!1), [x, S] = B(null), C = z(null), w = Pe(async (e) => {
|
|
8685
8685
|
try {
|
|
8686
8686
|
let t = await i?.fetch?.url(`/v1/payment/booking/${e}/summary`)?.options({ headers: { Origin: a?.id || "" } })?.get().json();
|
|
8687
8687
|
t?.status && t?.content?.data && v(t.content.data);
|
|
@@ -8694,7 +8694,7 @@ var ku = b(Ou), Q = {
|
|
|
8694
8694
|
i?.fetch?.url(`/v1/payment/booking/${h._id}/confirm`)?.options({ headers: { Origin: a?.id || "" } })?.post({ session_id: e })?.json().then(async (e) => {
|
|
8695
8695
|
e?.content?.data && (g(e.content.data), await w(e.content.data._id)), d(), C.current = null, m("confirmation");
|
|
8696
8696
|
}).catch((e) => {
|
|
8697
|
-
console.error("Failed to confirm booking after Stripe payment:", e),
|
|
8697
|
+
console.error("Failed to confirm booking after Stripe payment:", e), Ee(e), d(), C.current = null, m("confirmation");
|
|
8698
8698
|
});
|
|
8699
8699
|
}, E = async () => {
|
|
8700
8700
|
if (h) {
|
|
@@ -8710,14 +8710,14 @@ var ku = b(Ou), Q = {
|
|
|
8710
8710
|
currency: t.currency,
|
|
8711
8711
|
provider: "stripe",
|
|
8712
8712
|
reference_id: t.reference_id
|
|
8713
|
-
})) :
|
|
8713
|
+
})) : D(t);
|
|
8714
8714
|
} else S("Failed to initiate payment");
|
|
8715
8715
|
} catch (e) {
|
|
8716
|
-
console.error("Initiate payment error:", e),
|
|
8716
|
+
console.error("Initiate payment error:", e), Ee(e), S("Failed to initiate payment. Please try again.");
|
|
8717
8717
|
}
|
|
8718
8718
|
b(!1);
|
|
8719
8719
|
}
|
|
8720
|
-
},
|
|
8720
|
+
}, D = (e) => {
|
|
8721
8721
|
let t = new o({
|
|
8722
8722
|
key: e.key,
|
|
8723
8723
|
amount: e.amount,
|
|
@@ -8726,7 +8726,7 @@ var ku = b(Ou), Q = {
|
|
|
8726
8726
|
name: a?.name ?? "",
|
|
8727
8727
|
description: _?.instance_label || "Booking Payment",
|
|
8728
8728
|
handler: (e) => {
|
|
8729
|
-
|
|
8729
|
+
O({
|
|
8730
8730
|
order_id: e.razorpay_order_id,
|
|
8731
8731
|
payment_id: e.razorpay_payment_id,
|
|
8732
8732
|
signature: e.razorpay_signature
|
|
@@ -8742,14 +8742,14 @@ var ku = b(Ou), Q = {
|
|
|
8742
8742
|
t.on("payment.failed", (e) => {
|
|
8743
8743
|
console.error("Payment failed:", e.error), S("Payment failed. Please try again.");
|
|
8744
8744
|
}), t.open();
|
|
8745
|
-
},
|
|
8745
|
+
}, O = async (e) => {
|
|
8746
8746
|
if (h) {
|
|
8747
8747
|
b(!0);
|
|
8748
8748
|
try {
|
|
8749
8749
|
let t = await i?.fetch?.url(`/v1/payment/booking/${h._id}/confirm`)?.options({ headers: { Origin: a?.id || "" } })?.post(e).json();
|
|
8750
8750
|
t?.status && t?.content?.data ? (g(t.content.data), await w(t.content.data._id), m("confirmation")) : S("Failed to confirm payment");
|
|
8751
8751
|
} catch (e) {
|
|
8752
|
-
console.error("Confirm payment error:", e),
|
|
8752
|
+
console.error("Confirm payment error:", e), Ee(e), S("Failed to confirm payment. Please contact support.");
|
|
8753
8753
|
}
|
|
8754
8754
|
b(!1);
|
|
8755
8755
|
}
|
|
@@ -8767,7 +8767,7 @@ var ku = b(Ou), Q = {
|
|
|
8767
8767
|
g(t), await w(t._id), t.unit_amount === 0 || t.status === "confirmed" ? m("confirmation") : m("summary");
|
|
8768
8768
|
} else S("Failed to create booking");
|
|
8769
8769
|
} catch (e) {
|
|
8770
|
-
console.error("Create booking error:", e),
|
|
8770
|
+
console.error("Create booking error:", e), Ee(e), S("Failed to create booking. Please try again.");
|
|
8771
8771
|
}
|
|
8772
8772
|
})();
|
|
8773
8773
|
}, [
|
|
@@ -8778,13 +8778,13 @@ var ku = b(Ou), Q = {
|
|
|
8778
8778
|
a?.id,
|
|
8779
8779
|
w
|
|
8780
8780
|
]);
|
|
8781
|
-
let
|
|
8781
|
+
let k = () => {
|
|
8782
8782
|
g(null), v(null), m("loading"), S(null), t();
|
|
8783
8783
|
};
|
|
8784
8784
|
return e ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(Rn.Root, { children: /* @__PURE__ */ H("div", {
|
|
8785
8785
|
className: "fixed inset-0 z-100 flex justify-center bg-black/50 pt-24",
|
|
8786
8786
|
children: /* @__PURE__ */ U("div", {
|
|
8787
|
-
className:
|
|
8787
|
+
className: M("flex h-fit w-[90%] max-w-[500px] flex-col rounded-lg bg-white p-6"),
|
|
8788
8788
|
children: [/* @__PURE__ */ U("div", {
|
|
8789
8789
|
className: "mb-4 flex w-full items-start justify-between",
|
|
8790
8790
|
children: [/* @__PURE__ */ U("h2", {
|
|
@@ -8796,7 +8796,7 @@ var ku = b(Ou), Q = {
|
|
|
8796
8796
|
]
|
|
8797
8797
|
}), /* @__PURE__ */ H("button", {
|
|
8798
8798
|
type: "button",
|
|
8799
|
-
onClick:
|
|
8799
|
+
onClick: k,
|
|
8800
8800
|
className: "rounded-md p-2 hover:bg-gray-100 focus:outline-none",
|
|
8801
8801
|
children: /* @__PURE__ */ H(Nn, { className: "size-4" })
|
|
8802
8802
|
})]
|
|
@@ -8820,11 +8820,11 @@ var ku = b(Ou), Q = {
|
|
|
8820
8820
|
p === "confirmation" && h && /* @__PURE__ */ H(Mu, {
|
|
8821
8821
|
booking: h,
|
|
8822
8822
|
summary: _,
|
|
8823
|
-
onClose:
|
|
8823
|
+
onClose: k
|
|
8824
8824
|
})
|
|
8825
8825
|
] })]
|
|
8826
8826
|
})
|
|
8827
|
-
}) }), l && c && /* @__PURE__ */ H(
|
|
8827
|
+
}) }), l && c && /* @__PURE__ */ H(me, {
|
|
8828
8828
|
isOpen: l,
|
|
8829
8829
|
onClose: d,
|
|
8830
8830
|
stripePromise: s,
|
|
@@ -8837,7 +8837,7 @@ var ku = b(Ou), Q = {
|
|
|
8837
8837
|
function Fu({ className: e, ...t }) {
|
|
8838
8838
|
return /* @__PURE__ */ H(Fn.Root, {
|
|
8839
8839
|
"data-slot": "avatar",
|
|
8840
|
-
className:
|
|
8840
|
+
className: M("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", e),
|
|
8841
8841
|
...t
|
|
8842
8842
|
});
|
|
8843
8843
|
}
|
|
@@ -8846,7 +8846,7 @@ function Iu({ className: e, isActive: t, ...n }) {
|
|
|
8846
8846
|
className: "relative inline-block h-full w-full overflow-hidden",
|
|
8847
8847
|
children: [/* @__PURE__ */ H(Fn.Image, {
|
|
8848
8848
|
"data-slot": "avatar-image",
|
|
8849
|
-
className:
|
|
8849
|
+
className: M("aspect-square size-full", e),
|
|
8850
8850
|
...n
|
|
8851
8851
|
}), t && /* @__PURE__ */ H("span", { className: "absolute right-0 bottom-0 h-2.5 w-2.5 rounded-full border-2 border-white bg-green-500" })]
|
|
8852
8852
|
});
|
|
@@ -8854,7 +8854,7 @@ function Iu({ className: e, isActive: t, ...n }) {
|
|
|
8854
8854
|
function Lu({ className: e, ...t }) {
|
|
8855
8855
|
return /* @__PURE__ */ H(Fn.Image, {
|
|
8856
8856
|
"data-slot": "avatar-image",
|
|
8857
|
-
className:
|
|
8857
|
+
className: M("aspect-square size-full", e),
|
|
8858
8858
|
...t
|
|
8859
8859
|
});
|
|
8860
8860
|
}
|
|
@@ -8863,7 +8863,7 @@ function Ru({ className: e, isActive: t, ...n }) {
|
|
|
8863
8863
|
className: "relative inline-block h-full w-full overflow-hidden",
|
|
8864
8864
|
children: [/* @__PURE__ */ H(Fn.Fallback, {
|
|
8865
8865
|
"data-slot": "avatar-fallback",
|
|
8866
|
-
className:
|
|
8866
|
+
className: M("flex size-full items-center justify-center rounded-full bg-muted", e),
|
|
8867
8867
|
...n
|
|
8868
8868
|
}), t && /* @__PURE__ */ H("span", { className: "absolute right-0 bottom-0 h-2.5 w-2.5 rounded-full border-2 border-white bg-green-500" })]
|
|
8869
8869
|
});
|
|
@@ -8871,28 +8871,28 @@ function Ru({ className: e, isActive: t, ...n }) {
|
|
|
8871
8871
|
function zu({ className: e, ...t }) {
|
|
8872
8872
|
return /* @__PURE__ */ H(Fn.Fallback, {
|
|
8873
8873
|
"data-slot": "avatar-fallback",
|
|
8874
|
-
className:
|
|
8874
|
+
className: M("flex size-full items-center justify-center rounded-full bg-muted", e),
|
|
8875
8875
|
...t
|
|
8876
8876
|
});
|
|
8877
8877
|
}
|
|
8878
8878
|
function Bu({ className: e, ...t }) {
|
|
8879
8879
|
return /* @__PURE__ */ H("span", {
|
|
8880
8880
|
"data-slot": "avatar-badge",
|
|
8881
|
-
className:
|
|
8881
|
+
className: M("absolute right-0 bottom-0 z-10 inline-flex select-none items-center justify-center rounded-full bg-primary text-primary-foreground ring-2 ring-background", "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden", "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2", "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2", e),
|
|
8882
8882
|
...t
|
|
8883
8883
|
});
|
|
8884
8884
|
}
|
|
8885
8885
|
function Vu({ className: e, ...t }) {
|
|
8886
8886
|
return /* @__PURE__ */ H("div", {
|
|
8887
8887
|
"data-slot": "avatar-group",
|
|
8888
|
-
className:
|
|
8888
|
+
className: M("group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background", e),
|
|
8889
8889
|
...t
|
|
8890
8890
|
});
|
|
8891
8891
|
}
|
|
8892
8892
|
function Hu({ className: e, ...t }) {
|
|
8893
8893
|
return /* @__PURE__ */ H("div", {
|
|
8894
8894
|
"data-slot": "avatar-group-count",
|
|
8895
|
-
className:
|
|
8895
|
+
className: M("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground text-sm ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3", e),
|
|
8896
8896
|
...t
|
|
8897
8897
|
});
|
|
8898
8898
|
}
|
|
@@ -8901,14 +8901,14 @@ function Hu({ className: e, ...t }) {
|
|
|
8901
8901
|
function Uu({ className: e, ...t }) {
|
|
8902
8902
|
return /* @__PURE__ */ H("kbd", {
|
|
8903
8903
|
"data-slot": "kbd",
|
|
8904
|
-
className:
|
|
8904
|
+
className: M("pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm bg-muted in-data-[slot=tooltip-content]:bg-background/20 px-1 font-medium font-sans in-data-[slot=tooltip-content]:text-background text-muted-foreground text-xs dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3", e),
|
|
8905
8905
|
...t
|
|
8906
8906
|
});
|
|
8907
8907
|
}
|
|
8908
8908
|
function Wu({ className: e, ...t }) {
|
|
8909
8909
|
return /* @__PURE__ */ H("kbd", {
|
|
8910
8910
|
"data-slot": "kbd-group",
|
|
8911
|
-
className:
|
|
8911
|
+
className: M("inline-flex items-center gap-1", e),
|
|
8912
8912
|
...t
|
|
8913
8913
|
});
|
|
8914
8914
|
}
|
|
@@ -8916,7 +8916,7 @@ function Wu({ className: e, ...t }) {
|
|
|
8916
8916
|
//#region src/components/ui/Calendar.tsx
|
|
8917
8917
|
var Gu = ({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", formatters: i, components: a, ...o }) => /* @__PURE__ */ H(Qn, {
|
|
8918
8918
|
showOutsideDays: n,
|
|
8919
|
-
className:
|
|
8919
|
+
className: M("group/calendar bg-background p-0 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, e),
|
|
8920
8920
|
captionLayout: r,
|
|
8921
8921
|
formatters: {
|
|
8922
8922
|
formatMonthDropdown: (e) => e.toLocaleString("default", { month: "short" }),
|
|
@@ -8933,7 +8933,7 @@ var Gu = ({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout:
|
|
|
8933
8933
|
dropdowns: "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
8934
8934
|
dropdown_root: "relative focus:border-ring border border-input shadow-xs focus:ring-ring/50 focus:ring-[3px] rounded-md",
|
|
8935
8935
|
dropdown: "absolute bg-popover inset-0 opacity-0",
|
|
8936
|
-
caption_label:
|
|
8936
|
+
caption_label: M("select-none font-medium", r === "label" ? "text-sm" : "flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground"),
|
|
8937
8937
|
month_grid: "w-full border-collapse",
|
|
8938
8938
|
weekdays: "flex",
|
|
8939
8939
|
weekday: "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
|
|
@@ -8959,7 +8959,7 @@ var Gu = ({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout:
|
|
|
8959
8959
|
...n
|
|
8960
8960
|
}),
|
|
8961
8961
|
Chevron: ({ className: e, orientation: t, ...n }) => H(t === "left" ? cn : t === "right" ? ln : sn, {
|
|
8962
|
-
className:
|
|
8962
|
+
className: M("size-4", e),
|
|
8963
8963
|
...n
|
|
8964
8964
|
}),
|
|
8965
8965
|
WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */ H("td", {
|
|
@@ -8978,13 +8978,13 @@ var Gu = ({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout:
|
|
|
8978
8978
|
function Ku({ className: e, ...t }) {
|
|
8979
8979
|
return /* @__PURE__ */ H("textarea", {
|
|
8980
8980
|
"data-slot": "textarea",
|
|
8981
|
-
className:
|
|
8981
|
+
className: M("field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40", e),
|
|
8982
8982
|
...t
|
|
8983
8983
|
});
|
|
8984
8984
|
}
|
|
8985
8985
|
//#endregion
|
|
8986
8986
|
//#region src/components/ui/form/FormTextarea.tsx
|
|
8987
|
-
var qu =
|
|
8987
|
+
var qu = De.forwardRef(({ name: e, label: t, isRequired: n, labelStyles: r, containerStyles: i, disabled: a, placeholder: o, readOnly: s, textAreaProps: c, textAreaStyles: l, value: u, id: d, onBlur: f, onChange: p, error: m, helperText: h, touched: g }, _) => /* @__PURE__ */ U(pl, {
|
|
8988
8988
|
containerStyles: i,
|
|
8989
8989
|
error: m,
|
|
8990
8990
|
helperText: h,
|
|
@@ -8998,7 +8998,7 @@ var qu = Oe.forwardRef(({ name: e, label: t, isRequired: n, labelStyles: r, cont
|
|
|
8998
8998
|
}), /* @__PURE__ */ H(Ku, {
|
|
8999
8999
|
id: d || e,
|
|
9000
9000
|
name: e,
|
|
9001
|
-
className:
|
|
9001
|
+
className: M(s && "focus-visible:ring-0", l),
|
|
9002
9002
|
ref: _,
|
|
9003
9003
|
onChange: p,
|
|
9004
9004
|
onBlur: f,
|
|
@@ -9110,7 +9110,7 @@ var Ju = {
|
|
|
9110
9110
|
})]
|
|
9111
9111
|
})
|
|
9112
9112
|
}), Qu = ({ isOpen: e, handleGlobalSearchDialogOpen: t }) => {
|
|
9113
|
-
let n =
|
|
9113
|
+
let n = P(), [r, i] = B(""), [a, o] = B([]), [s, c] = B(!1), [l, u] = B(null), [d, f] = B(!1), p = Hn(Pe(async (e) => {
|
|
9114
9114
|
try {
|
|
9115
9115
|
let t = await n.fetch.url("/v1/builder/search").query({
|
|
9116
9116
|
q: e,
|
|
@@ -9123,17 +9123,17 @@ var Ju = {
|
|
|
9123
9123
|
} finally {
|
|
9124
9124
|
c(!1);
|
|
9125
9125
|
}
|
|
9126
|
-
}, [n]), 600), m =
|
|
9126
|
+
}, [n]), 600), m = Pe((e) => {
|
|
9127
9127
|
if (i(e), e.length < 2) {
|
|
9128
9128
|
p.cancel(), o([]), c(!1), u(null), e.length === 0 && f(!1);
|
|
9129
9129
|
return;
|
|
9130
9130
|
}
|
|
9131
9131
|
c(!0), u(null), p(e);
|
|
9132
9132
|
}, [p]);
|
|
9133
|
-
return /* @__PURE__ */ H(
|
|
9133
|
+
return /* @__PURE__ */ H(de, {
|
|
9134
9134
|
open: e,
|
|
9135
9135
|
onOpenChange: t,
|
|
9136
|
-
children: /* @__PURE__ */ U(
|
|
9136
|
+
children: /* @__PURE__ */ U(se, {
|
|
9137
9137
|
className: "flex max-w-[22rem]! animate-none! flex-col sm:max-w-2xl!",
|
|
9138
9138
|
showCloseButton: !1,
|
|
9139
9139
|
style: {
|
|
@@ -9210,7 +9210,7 @@ var Ju = {
|
|
|
9210
9210
|
};
|
|
9211
9211
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
9212
9212
|
}, []);
|
|
9213
|
-
let i =
|
|
9213
|
+
let i = Pe((e) => {
|
|
9214
9214
|
r(e);
|
|
9215
9215
|
}, []);
|
|
9216
9216
|
return /* @__PURE__ */ U(V, { children: [
|
|
@@ -9270,7 +9270,7 @@ var Ju = {
|
|
|
9270
9270
|
n?.[1] && (l[n[1]] = c[t] ?? "");
|
|
9271
9271
|
}), o.pathname = o.pathname.replace(/\{([^}]+)\}/g, (e, t) => l[t] ?? e), o.toString();
|
|
9272
9272
|
}, nd = (e) => e.split(/[-_]/)[0]?.toUpperCase() || e.toUpperCase(), rd = ({ elementKey: e, className: t, contentClassName: n, align: r = "end", config: i }) => {
|
|
9273
|
-
let { languageVariants: a } =
|
|
9273
|
+
let { languageVariants: a } = ee();
|
|
9274
9274
|
if (!i?.enabled) return null;
|
|
9275
9275
|
let o = /* @__PURE__ */ new Set(), s = a.filter((e) => !e.language || o.has(e.language) ? !1 : (o.add(e.language), !0));
|
|
9276
9276
|
if (s.length <= 1) return null;
|
|
@@ -9284,7 +9284,7 @@ var Ju = {
|
|
|
9284
9284
|
t && (window.location.href = t);
|
|
9285
9285
|
};
|
|
9286
9286
|
return /* @__PURE__ */ H("div", {
|
|
9287
|
-
className:
|
|
9287
|
+
className: M("inline-flex", t),
|
|
9288
9288
|
"data-levo_element_key": e,
|
|
9289
9289
|
"data-levo_element_type": "LanguageSwitcher",
|
|
9290
9290
|
children: /* @__PURE__ */ U(In.Root, { children: [/* @__PURE__ */ H(In.Trigger, {
|
|
@@ -9302,12 +9302,12 @@ var Ju = {
|
|
|
9302
9302
|
}), /* @__PURE__ */ H(In.Portal, { children: /* @__PURE__ */ H(In.Content, {
|
|
9303
9303
|
align: r,
|
|
9304
9304
|
sideOffset: 6,
|
|
9305
|
-
className:
|
|
9305
|
+
className: M("z-50 min-w-[10rem] overflow-hidden rounded-md border bg-page p-1 text-text-1 shadow-md [border-color:var(--color-border)]", n),
|
|
9306
9306
|
children: s.map((e) => {
|
|
9307
9307
|
let t = e.language === c?.language;
|
|
9308
9308
|
return /* @__PURE__ */ U(In.Item, {
|
|
9309
9309
|
onSelect: () => l(e),
|
|
9310
|
-
className:
|
|
9310
|
+
className: M("flex cursor-pointer items-center justify-between gap-3 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[highlighted]:bg-muted", t ? "font-medium text-text-1" : "text-text-2"),
|
|
9311
9311
|
children: [/* @__PURE__ */ H("span", { children: e.language_label || e.language }), t && /* @__PURE__ */ H(nn, {
|
|
9312
9312
|
size: 15,
|
|
9313
9313
|
className: "text-brand",
|
|
@@ -9350,8 +9350,8 @@ var Ju = {
|
|
|
9350
9350
|
...i,
|
|
9351
9351
|
unstyled: !0,
|
|
9352
9352
|
classNames: {
|
|
9353
|
-
container: () =>
|
|
9354
|
-
control: ({ isFocused: e, isMulti: t, isDisabled: n }) =>
|
|
9353
|
+
container: () => M("h-auto min-h-none w-full min-w-none"),
|
|
9354
|
+
control: ({ isFocused: e, isMulti: t, isDisabled: n }) => M("w-full pl-3", t ? "h-auto min-h-9!" : "!min-h-none h-9", "rounded-md border border-input bg-brand-foreground text-brand text-sm shadow-xs transition-[color,box-shadow] hover:cursor-pointer", "flex", e && "border-ring outline-none ring-[3px] ring-ring/50", o && "ring-0", n && "opacity-50", y),
|
|
9355
9355
|
input: () => "",
|
|
9356
9356
|
valueContainer: () => "gap-[4px] py-1",
|
|
9357
9357
|
singleValue: () => "",
|
|
@@ -9366,9 +9366,9 @@ var Ju = {
|
|
|
9366
9366
|
menuPortal: () => "z-9999!",
|
|
9367
9367
|
groupHeading: () => "ml-3 mt-2 mb-1 text-gray-500 text-sm",
|
|
9368
9368
|
placeholder: () => "text-gray-500 pl-1 py-0.5",
|
|
9369
|
-
option: ({ isSelected: e, isFocused: t }) =>
|
|
9369
|
+
option: ({ isSelected: e, isFocused: t }) => M("rounded px-3 py-2 font-medium text-sm hover:cursor-pointer", t && "bg-brand-foreground text-brand", e && "bg-brand-foreground text-brand"),
|
|
9370
9370
|
noOptionsMessage: () => "text-gray-500 p-2 bg-gray-50 border border-dashed border-gray-200 rounded-sm",
|
|
9371
|
-
menuList: () =>
|
|
9371
|
+
menuList: () => M("space-y-1", b)
|
|
9372
9372
|
}
|
|
9373
9373
|
}),
|
|
9374
9374
|
x
|
|
@@ -9485,189 +9485,227 @@ var Ju = {
|
|
|
9485
9485
|
value: s,
|
|
9486
9486
|
children: a?.map((e) => e && !e.hidden ? /* @__PURE__ */ H(ld, { field: e }, e?.key) : null)
|
|
9487
9487
|
});
|
|
9488
|
-
}, pd =
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
children: [/* @__PURE__ */ H("input", {
|
|
9523
|
-
type: "checkbox",
|
|
9524
|
-
name: "is_business_purchase",
|
|
9525
|
-
checked: e.is_business_purchase || !1,
|
|
9488
|
+
}, pd = [
|
|
9489
|
+
{
|
|
9490
|
+
key: "designation",
|
|
9491
|
+
label: "Designation",
|
|
9492
|
+
placeholder: "Product Manager",
|
|
9493
|
+
type: "text"
|
|
9494
|
+
},
|
|
9495
|
+
{
|
|
9496
|
+
key: "mobile",
|
|
9497
|
+
label: "Phone Number",
|
|
9498
|
+
placeholder: "+91 98765 43210",
|
|
9499
|
+
type: "tel"
|
|
9500
|
+
},
|
|
9501
|
+
{
|
|
9502
|
+
key: "organization",
|
|
9503
|
+
label: "Company Name",
|
|
9504
|
+
placeholder: "Acme Corporation",
|
|
9505
|
+
type: "text"
|
|
9506
|
+
}
|
|
9507
|
+
], md = ({ values: e, handleChange: t, handleBlur: n, handleSubmit: r, registerLoading: i, onBack: a, submitLabel: o, additionalFields: s = [] }) => {
|
|
9508
|
+
let c = pd.filter((e) => s.includes(e.key));
|
|
9509
|
+
return /* @__PURE__ */ U("form", {
|
|
9510
|
+
onSubmit: r,
|
|
9511
|
+
className: "flex flex-col gap-4",
|
|
9512
|
+
children: [
|
|
9513
|
+
/* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("label", {
|
|
9514
|
+
htmlFor: "name",
|
|
9515
|
+
className: "font-medium text-sm",
|
|
9516
|
+
children: "Name"
|
|
9517
|
+
}), /* @__PURE__ */ H("input", {
|
|
9518
|
+
className: "w-full rounded-lg border border-gray-300 px-3 py-2 focus:outline-none",
|
|
9519
|
+
placeholder: "Name",
|
|
9520
|
+
name: "name",
|
|
9521
|
+
value: e.name,
|
|
9526
9522
|
onChange: t,
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
}), /* @__PURE__ */ H("p", {
|
|
9533
|
-
className: "mt-1 text-gray-500 text-xs",
|
|
9534
|
-
children: "Check this if you're purchasing for a business and need a tax-compliant invoice"
|
|
9535
|
-
})] }),
|
|
9536
|
-
e.is_business_purchase && /* @__PURE__ */ U(V, { children: [
|
|
9537
|
-
/* @__PURE__ */ U("div", { children: [/* @__PURE__ */ U("label", {
|
|
9538
|
-
htmlFor: "business_name",
|
|
9523
|
+
onBlur: n,
|
|
9524
|
+
required: !0
|
|
9525
|
+
})] }),
|
|
9526
|
+
/* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("label", {
|
|
9527
|
+
htmlFor: "email",
|
|
9539
9528
|
className: "font-medium text-sm",
|
|
9540
|
-
children:
|
|
9541
|
-
className: "text-red-500",
|
|
9542
|
-
children: "*"
|
|
9543
|
-
})]
|
|
9529
|
+
children: "Email"
|
|
9544
9530
|
}), /* @__PURE__ */ H("input", {
|
|
9545
9531
|
className: "w-full rounded-lg border border-gray-300 px-3 py-2 focus:outline-none",
|
|
9546
|
-
placeholder: "
|
|
9547
|
-
name: "
|
|
9548
|
-
value: e.
|
|
9532
|
+
placeholder: "Email",
|
|
9533
|
+
name: "email",
|
|
9534
|
+
value: e.email,
|
|
9549
9535
|
onChange: t,
|
|
9550
9536
|
onBlur: n,
|
|
9551
|
-
|
|
9537
|
+
type: "email",
|
|
9538
|
+
required: !0
|
|
9552
9539
|
})] }),
|
|
9553
|
-
/* @__PURE__ */ U("div", { children: [/* @__PURE__ */
|
|
9554
|
-
htmlFor:
|
|
9540
|
+
c.map((r) => /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("label", {
|
|
9541
|
+
htmlFor: r.key,
|
|
9555
9542
|
className: "font-medium text-sm",
|
|
9556
|
-
children:
|
|
9557
|
-
className: "text-red-500",
|
|
9558
|
-
children: "*"
|
|
9559
|
-
})]
|
|
9543
|
+
children: r.label
|
|
9560
9544
|
}), /* @__PURE__ */ H("input", {
|
|
9561
9545
|
className: "w-full rounded-lg border border-gray-300 px-3 py-2 focus:outline-none",
|
|
9562
|
-
|
|
9563
|
-
|
|
9564
|
-
|
|
9546
|
+
id: r.key,
|
|
9547
|
+
placeholder: r.placeholder,
|
|
9548
|
+
name: r.key,
|
|
9549
|
+
value: e[r.key] || "",
|
|
9565
9550
|
onChange: t,
|
|
9566
9551
|
onBlur: n,
|
|
9567
|
-
|
|
9552
|
+
type: r.type,
|
|
9553
|
+
required: !0
|
|
9554
|
+
})] }, r.key)),
|
|
9555
|
+
/* @__PURE__ */ U("div", { children: [/* @__PURE__ */ U("label", {
|
|
9556
|
+
htmlFor: "is_business_purchase",
|
|
9557
|
+
className: "flex items-center gap-2 text-sm",
|
|
9558
|
+
children: [/* @__PURE__ */ H("input", {
|
|
9559
|
+
type: "checkbox",
|
|
9560
|
+
name: "is_business_purchase",
|
|
9561
|
+
checked: e.is_business_purchase || !1,
|
|
9562
|
+
onChange: t,
|
|
9563
|
+
className: "rounded border-gray-300"
|
|
9564
|
+
}), /* @__PURE__ */ H("span", {
|
|
9565
|
+
className: "font-medium",
|
|
9566
|
+
children: "Tax for Business"
|
|
9567
|
+
})]
|
|
9568
|
+
}), /* @__PURE__ */ H("p", {
|
|
9569
|
+
className: "mt-1 text-gray-500 text-xs",
|
|
9570
|
+
children: "Check this if you're purchasing for a business and need a tax-compliant invoice"
|
|
9568
9571
|
})] }),
|
|
9569
|
-
/* @__PURE__ */ U(
|
|
9570
|
-
/* @__PURE__ */ U("label", {
|
|
9572
|
+
e.is_business_purchase && /* @__PURE__ */ U(V, { children: [
|
|
9573
|
+
/* @__PURE__ */ U("div", { children: [/* @__PURE__ */ U("label", {
|
|
9574
|
+
htmlFor: "business_name",
|
|
9571
9575
|
className: "font-medium text-sm",
|
|
9572
|
-
children: ["
|
|
9576
|
+
children: ["Company Name ", /* @__PURE__ */ H("span", {
|
|
9573
9577
|
className: "text-red-500",
|
|
9574
9578
|
children: "*"
|
|
9575
9579
|
})]
|
|
9576
|
-
}),
|
|
9577
|
-
|
|
9578
|
-
|
|
9579
|
-
|
|
9580
|
-
|
|
9581
|
-
value: e.billing_details?.address?.line1 || "",
|
|
9580
|
+
}), /* @__PURE__ */ H("input", {
|
|
9581
|
+
className: "w-full rounded-lg border border-gray-300 px-3 py-2 focus:outline-none",
|
|
9582
|
+
placeholder: "Acme Corporation",
|
|
9583
|
+
name: "billing_details.name",
|
|
9584
|
+
value: e.billing_details?.name || "",
|
|
9582
9585
|
onChange: t,
|
|
9583
9586
|
onBlur: n,
|
|
9584
9587
|
required: e.is_business_purchase
|
|
9585
|
-
}),
|
|
9586
|
-
/* @__PURE__ */
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
onBlur: n
|
|
9593
|
-
}),
|
|
9594
|
-
/* @__PURE__ */ U("div", {
|
|
9595
|
-
className: "grid grid-cols-2 gap-2",
|
|
9596
|
-
children: [/* @__PURE__ */ H("input", {
|
|
9597
|
-
className: "w-full rounded-lg border border-gray-300 px-3 py-2 focus:outline-none",
|
|
9598
|
-
placeholder: "City",
|
|
9599
|
-
name: "billing_details.address.city",
|
|
9600
|
-
value: e.billing_details?.address?.city || "",
|
|
9601
|
-
onChange: t,
|
|
9602
|
-
onBlur: n,
|
|
9603
|
-
required: e.is_business_purchase
|
|
9604
|
-
}), /* @__PURE__ */ H("input", {
|
|
9605
|
-
className: "w-full rounded-lg border border-gray-300 px-3 py-2 focus:outline-none",
|
|
9606
|
-
placeholder: "State/Province",
|
|
9607
|
-
name: "billing_details.address.state",
|
|
9608
|
-
value: e.billing_details?.address?.state || "",
|
|
9609
|
-
onChange: t,
|
|
9610
|
-
onBlur: n,
|
|
9611
|
-
required: e.is_business_purchase
|
|
9588
|
+
})] }),
|
|
9589
|
+
/* @__PURE__ */ U("div", { children: [/* @__PURE__ */ U("label", {
|
|
9590
|
+
htmlFor: "business_tax_id",
|
|
9591
|
+
className: "font-medium text-sm",
|
|
9592
|
+
children: ["Tax ID / GST Number ", /* @__PURE__ */ H("span", {
|
|
9593
|
+
className: "text-red-500",
|
|
9594
|
+
children: "*"
|
|
9612
9595
|
})]
|
|
9613
|
-
}),
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9596
|
+
}), /* @__PURE__ */ H("input", {
|
|
9597
|
+
className: "w-full rounded-lg border border-gray-300 px-3 py-2 focus:outline-none",
|
|
9598
|
+
placeholder: "GST123456789",
|
|
9599
|
+
name: "billing_details.tax_id",
|
|
9600
|
+
value: e.billing_details?.tax_id || "",
|
|
9601
|
+
onChange: t,
|
|
9602
|
+
onBlur: n,
|
|
9603
|
+
required: e.is_business_purchase
|
|
9604
|
+
})] }),
|
|
9605
|
+
/* @__PURE__ */ U("div", { children: [
|
|
9606
|
+
/* @__PURE__ */ U("label", {
|
|
9607
|
+
htmlFor: "billing_details.address.line1",
|
|
9608
|
+
className: "font-medium text-sm",
|
|
9609
|
+
children: ["Business Address ", /* @__PURE__ */ H("span", {
|
|
9610
|
+
className: "text-red-500",
|
|
9611
|
+
children: "*"
|
|
9612
|
+
})]
|
|
9613
|
+
}),
|
|
9614
|
+
/* @__PURE__ */ H("input", {
|
|
9615
|
+
className: "mb-2 w-full rounded-lg border border-gray-300 px-3 py-2 focus:outline-none",
|
|
9616
|
+
placeholder: "Street Address Line 1",
|
|
9617
|
+
name: "billing_details.address.line1",
|
|
9618
|
+
value: e.billing_details?.address?.line1 || "",
|
|
9621
9619
|
onChange: t,
|
|
9622
9620
|
onBlur: n,
|
|
9623
9621
|
required: e.is_business_purchase
|
|
9624
|
-
}),
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9622
|
+
}),
|
|
9623
|
+
/* @__PURE__ */ H("input", {
|
|
9624
|
+
className: "mb-2 w-full rounded-lg border border-gray-300 px-3 py-2 focus:outline-none",
|
|
9625
|
+
placeholder: "Street Address Line 2 (Optional)",
|
|
9626
|
+
name: "billing_details.address.line2",
|
|
9627
|
+
value: e.billing_details?.address?.line2 || "",
|
|
9629
9628
|
onChange: t,
|
|
9630
|
-
onBlur: n
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9629
|
+
onBlur: n
|
|
9630
|
+
}),
|
|
9631
|
+
/* @__PURE__ */ U("div", {
|
|
9632
|
+
className: "grid grid-cols-2 gap-2",
|
|
9633
|
+
children: [/* @__PURE__ */ H("input", {
|
|
9634
|
+
className: "w-full rounded-lg border border-gray-300 px-3 py-2 focus:outline-none",
|
|
9635
|
+
placeholder: "City",
|
|
9636
|
+
name: "billing_details.address.city",
|
|
9637
|
+
value: e.billing_details?.address?.city || "",
|
|
9638
|
+
onChange: t,
|
|
9639
|
+
onBlur: n,
|
|
9640
|
+
required: e.is_business_purchase
|
|
9641
|
+
}), /* @__PURE__ */ H("input", {
|
|
9642
|
+
className: "w-full rounded-lg border border-gray-300 px-3 py-2 focus:outline-none",
|
|
9643
|
+
placeholder: "State/Province",
|
|
9644
|
+
name: "billing_details.address.state",
|
|
9645
|
+
value: e.billing_details?.address?.state || "",
|
|
9646
|
+
onChange: t,
|
|
9647
|
+
onBlur: n,
|
|
9648
|
+
required: e.is_business_purchase
|
|
9649
|
+
})]
|
|
9650
|
+
}),
|
|
9651
|
+
/* @__PURE__ */ U("div", {
|
|
9652
|
+
className: "mt-2 grid grid-cols-2 gap-2",
|
|
9653
|
+
children: [/* @__PURE__ */ H("input", {
|
|
9654
|
+
className: "w-full rounded-lg border border-gray-300 px-3 py-2 focus:outline-none",
|
|
9655
|
+
placeholder: "Postal Code",
|
|
9656
|
+
name: "billing_details.address.postal_code",
|
|
9657
|
+
value: e.billing_details?.address?.postal_code || "",
|
|
9658
|
+
onChange: t,
|
|
9659
|
+
onBlur: n,
|
|
9660
|
+
required: e.is_business_purchase
|
|
9661
|
+
}), /* @__PURE__ */ H("input", {
|
|
9662
|
+
className: "w-full rounded-lg border border-gray-300 px-3 py-2 focus:outline-none",
|
|
9663
|
+
placeholder: "Country",
|
|
9664
|
+
name: "billing_details.address.country",
|
|
9665
|
+
value: e.billing_details?.address?.country || "",
|
|
9666
|
+
onChange: t,
|
|
9667
|
+
onBlur: n,
|
|
9668
|
+
required: e.is_business_purchase
|
|
9669
|
+
})]
|
|
9670
|
+
})
|
|
9671
|
+
] })
|
|
9672
|
+
] }),
|
|
9673
|
+
/* @__PURE__ */ U("div", {
|
|
9674
|
+
className: "flex flex-col-reverse justify-end gap-4 md:flex-row",
|
|
9675
|
+
children: [/* @__PURE__ */ H(O, {
|
|
9676
|
+
elementKey: "",
|
|
9677
|
+
className: "rounded-lg bg-gray-100 px-6 py-2 font-semibold text-black hover:bg-gray-200",
|
|
9678
|
+
type: "button",
|
|
9679
|
+
onClick: a,
|
|
9680
|
+
disabled: i,
|
|
9681
|
+
children: "Back"
|
|
9682
|
+
}), /* @__PURE__ */ H(O, {
|
|
9683
|
+
elementKey: "",
|
|
9684
|
+
className: "rounded-lg px-6 py-2 font-semibold",
|
|
9685
|
+
type: "submit",
|
|
9686
|
+
isLoading: i,
|
|
9687
|
+
loadingText: "Submitting...",
|
|
9688
|
+
children: o
|
|
9689
|
+
})]
|
|
9690
|
+
})
|
|
9691
|
+
]
|
|
9692
|
+
});
|
|
9693
|
+
}, hd = {
|
|
9656
9694
|
USD: "$",
|
|
9657
9695
|
EUR: "€",
|
|
9658
9696
|
GBP: "£",
|
|
9659
9697
|
INR: "₹"
|
|
9660
|
-
}, $ = (e) => e?.unit_amount ? `${
|
|
9698
|
+
}, $ = (e) => e?.unit_amount ? `${hd[e.currency ?? "INR"]} ${(e.unit_amount ?? 0) / 100}` : "Free", gd = (e) => {
|
|
9661
9699
|
if (!e) return null;
|
|
9662
9700
|
let t = e.tax_enabled ?? !1, n = e.tax_inclusive ?? !1, r = e.taxes ?? [];
|
|
9663
9701
|
return !t || r.length === 0 ? null : n ? "(inclusive of taxes)" : "+ taxes";
|
|
9664
|
-
},
|
|
9702
|
+
}, _d = (e) => !!(e?.taxes && e.taxes.length > 0 && e.tax_amount !== void 0), vd = (e) => {
|
|
9665
9703
|
if (!e) return !1;
|
|
9666
9704
|
let t = e;
|
|
9667
9705
|
return t.tax_enabled === !0 && t.taxes !== void 0 && t.taxes.length > 0 && t.subtotal !== void 0;
|
|
9668
|
-
},
|
|
9706
|
+
}, yd = (e, t) => !t || e.tickets.length === 0 ? !0 : e.tickets.some((e) => typeof e == "string" ? e === t : e._id === t), bd = ({ couponCode: e, onCouponCodeChange: t, couponError: n, couponLoading: r, onValidateCoupon: i, publicCoupons: a, onBack: o, selectedTicket: s }) => {
|
|
9669
9707
|
let c = [...a].sort((e, t) => {
|
|
9670
|
-
let n =
|
|
9708
|
+
let n = yd(e, s?._id), r = yd(t, s?._id);
|
|
9671
9709
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
9672
9710
|
});
|
|
9673
9711
|
return /* @__PURE__ */ U("div", { children: [
|
|
@@ -9702,7 +9740,7 @@ var Ju = {
|
|
|
9702
9740
|
className: "mt-1 text-red-400 text-xs",
|
|
9703
9741
|
children: n
|
|
9704
9742
|
})]
|
|
9705
|
-
}), /* @__PURE__ */ H(
|
|
9743
|
+
}), /* @__PURE__ */ H(O, {
|
|
9706
9744
|
elementKey: "",
|
|
9707
9745
|
"aria-label": "Apply Coupon",
|
|
9708
9746
|
onClick: () => i(),
|
|
@@ -9716,12 +9754,12 @@ var Ju = {
|
|
|
9716
9754
|
}),
|
|
9717
9755
|
c.length > 0 && /* @__PURE__ */ U("div", {
|
|
9718
9756
|
className: "mt-4 flex flex-col gap-4",
|
|
9719
|
-
children: [c.filter((e) =>
|
|
9757
|
+
children: [c.filter((e) => yd(e, s?._id)).length > 0 && /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("p", {
|
|
9720
9758
|
className: "mb-2 text-gray-600 text-sm",
|
|
9721
9759
|
children: "Available Coupons"
|
|
9722
9760
|
}), /* @__PURE__ */ H("div", {
|
|
9723
9761
|
className: "flex flex-col gap-2",
|
|
9724
|
-
children: c.filter((e) =>
|
|
9762
|
+
children: c.filter((e) => yd(e, s?._id)).map((e) => /* @__PURE__ */ U("button", {
|
|
9725
9763
|
type: "button",
|
|
9726
9764
|
className: "flex flex-col gap-1 rounded-md border border-gray-300 border-dashed px-3 py-2 text-left transition hover:border-gray-400 hover:bg-gray-50",
|
|
9727
9765
|
onClick: () => {
|
|
@@ -9734,19 +9772,19 @@ var Ju = {
|
|
|
9734
9772
|
children: e.code
|
|
9735
9773
|
}), /* @__PURE__ */ H("span", {
|
|
9736
9774
|
className: "text-gray-500 text-sm",
|
|
9737
|
-
children: e.kind === "percent" ? `${e.percent_off}% off` : `${
|
|
9775
|
+
children: e.kind === "percent" ? `${e.percent_off}% off` : `${hd[e.currency ?? "INR"]} ${(e.amount_off ?? 0) / 100} off`
|
|
9738
9776
|
})]
|
|
9739
9777
|
}), e.description && /* @__PURE__ */ H("span", {
|
|
9740
9778
|
className: "text-gray-500 text-xs",
|
|
9741
9779
|
children: e.description
|
|
9742
9780
|
})]
|
|
9743
9781
|
}, e._id))
|
|
9744
|
-
})] }), c.filter((e) => !
|
|
9782
|
+
})] }), c.filter((e) => !yd(e, s?._id)).length > 0 && /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("p", {
|
|
9745
9783
|
className: "mb-2 text-gray-400 text-sm",
|
|
9746
9784
|
children: "Not Applicable"
|
|
9747
9785
|
}), /* @__PURE__ */ H("div", {
|
|
9748
9786
|
className: "flex flex-col gap-2",
|
|
9749
|
-
children: c.filter((e) => !
|
|
9787
|
+
children: c.filter((e) => !yd(e, s?._id)).map((e) => /* @__PURE__ */ U("button", {
|
|
9750
9788
|
type: "button",
|
|
9751
9789
|
disabled: !0,
|
|
9752
9790
|
className: "flex cursor-not-allowed flex-col gap-1 rounded-md border border-gray-200 border-dashed px-3 py-2 text-left opacity-50",
|
|
@@ -9757,7 +9795,7 @@ var Ju = {
|
|
|
9757
9795
|
children: e.code
|
|
9758
9796
|
}), /* @__PURE__ */ H("span", {
|
|
9759
9797
|
className: "text-gray-500 text-sm",
|
|
9760
|
-
children: e.kind === "percent" ? `${e.percent_off}% off` : `${
|
|
9798
|
+
children: e.kind === "percent" ? `${e.percent_off}% off` : `${hd[e.currency ?? "INR"]} ${(e.amount_off ?? 0) / 100} off`
|
|
9761
9799
|
})]
|
|
9762
9800
|
}), e.description && /* @__PURE__ */ H("span", {
|
|
9763
9801
|
className: "text-gray-500 text-xs",
|
|
@@ -9767,7 +9805,7 @@ var Ju = {
|
|
|
9767
9805
|
})] })]
|
|
9768
9806
|
})
|
|
9769
9807
|
] });
|
|
9770
|
-
},
|
|
9808
|
+
}, xd = ({ ticketData: e, paymentData: t, type: n }) => {
|
|
9771
9809
|
let [r, i] = B(!0), a = (t.total_amount || t.unit_amount) / 100, o = t.unit_amount === 0, s = (e) => new Intl.NumberFormat("en-IN", {
|
|
9772
9810
|
style: "currency",
|
|
9773
9811
|
currency: t.currency || "INR",
|
|
@@ -9956,14 +9994,14 @@ var Ju = {
|
|
|
9956
9994
|
]
|
|
9957
9995
|
})
|
|
9958
9996
|
}) });
|
|
9959
|
-
},
|
|
9960
|
-
let l =
|
|
9997
|
+
}, Sd = ({ tickets: e, selectedTicket: t, onSelectTicket: n, discount: r, couponCode: i, publicCouponsCount: a, onApplyCouponClick: o, onRemoveCoupon: s, onNext: c }) => {
|
|
9998
|
+
let l = vd(t), u = _d(r);
|
|
9961
9999
|
return /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ U("div", {
|
|
9962
10000
|
className: "flex max-h-[64dvh] w-full flex-col justify-between gap-6 overflow-y-auto md:max-h-[unset] md:flex-row",
|
|
9963
10001
|
children: [/* @__PURE__ */ H("div", {
|
|
9964
10002
|
className: "flex w-full flex-col gap-3 md:w-[55%]",
|
|
9965
10003
|
children: e.map((e) => /* @__PURE__ */ H("div", {
|
|
9966
|
-
className:
|
|
10004
|
+
className: M("flex cursor-pointer items-center justify-between rounded-md border border-gray-300 px-3 py-2 transition duration-300 hover:bg-gray-50", e._id === t?._id ? "border-brand border-l-2 bg-brand/10 hover:bg-brand/20" : ""),
|
|
9967
10005
|
onClick: () => n(e),
|
|
9968
10006
|
children: /* @__PURE__ */ U("div", {
|
|
9969
10007
|
className: `${e._id === t?._id ? "-ml-[2px]" : "ml-0"}`,
|
|
@@ -9978,9 +10016,9 @@ var Ju = {
|
|
|
9978
10016
|
}),
|
|
9979
10017
|
/* @__PURE__ */ U("p", {
|
|
9980
10018
|
className: "text-md",
|
|
9981
|
-
children: [$(e),
|
|
10019
|
+
children: [$(e), gd(e) && /* @__PURE__ */ U("span", {
|
|
9982
10020
|
className: "text-gray-500 text-sm",
|
|
9983
|
-
children: [" ",
|
|
10021
|
+
children: [" ", gd(e)]
|
|
9984
10022
|
})]
|
|
9985
10023
|
})
|
|
9986
10024
|
]
|
|
@@ -10242,7 +10280,7 @@ var Ju = {
|
|
|
10242
10280
|
})]
|
|
10243
10281
|
})
|
|
10244
10282
|
}) : /* @__PURE__ */ U("div", {
|
|
10245
|
-
className:
|
|
10283
|
+
className: M("flex cursor-pointer items-center justify-between border-b border-b-gray-300 pr-1 pl-4 transition-all duration-200 hover:bg-gray-50", t ? "h-[50px] py-3" : "py-3"),
|
|
10246
10284
|
onClick: () => t ? o() : null,
|
|
10247
10285
|
children: [/* @__PURE__ */ U("span", {
|
|
10248
10286
|
className: "flex items-center gap-2",
|
|
@@ -10255,7 +10293,7 @@ var Ju = {
|
|
|
10255
10293
|
})]
|
|
10256
10294
|
}), /* @__PURE__ */ H("div", {
|
|
10257
10295
|
className: "mt-3 flex justify-start",
|
|
10258
|
-
children: /* @__PURE__ */ H(
|
|
10296
|
+
children: /* @__PURE__ */ H(O, {
|
|
10259
10297
|
elementKey: "",
|
|
10260
10298
|
onClick: c,
|
|
10261
10299
|
className: "rounded-lg px-6 py-2 font-semibold",
|
|
@@ -10265,7 +10303,7 @@ var Ju = {
|
|
|
10265
10303
|
};
|
|
10266
10304
|
//#endregion
|
|
10267
10305
|
//#region src/components/registerModal/useCustomDisclosure.tsx
|
|
10268
|
-
function
|
|
10306
|
+
function Cd(e) {
|
|
10269
10307
|
let { isOpen: t = !1, onClose: n = () => {}, onOpen: r = () => {} } = e || {}, [i, a] = B(t), o = () => {
|
|
10270
10308
|
a(!0), r();
|
|
10271
10309
|
}, s = () => {
|
|
@@ -10292,83 +10330,88 @@ function Sd(e) {
|
|
|
10292
10330
|
}
|
|
10293
10331
|
//#endregion
|
|
10294
10332
|
//#region src/components/registerModal/RegisterModal.tsx
|
|
10295
|
-
var
|
|
10333
|
+
var wd = async (e, t, n) => {
|
|
10296
10334
|
try {
|
|
10297
10335
|
let r = new URLSearchParams();
|
|
10298
10336
|
return r.append("query", JSON.stringify({ where: { status: "active" } })), (await e.fetch?.url(`/v1/event/event/${t}/ticket/query?${r.toString()}`).options({ headers: { Origin: n || "" } }).get().json())?.content?.data;
|
|
10299
10337
|
} catch (e) {
|
|
10300
10338
|
console.log(e);
|
|
10301
10339
|
}
|
|
10302
|
-
},
|
|
10303
|
-
let
|
|
10304
|
-
|
|
10305
|
-
}, { Razorpay: ce } = Zn(), { stripePromise: le, config: ue, isOpen: de, openStripeCheckout: fe, closeStripeCheckout:
|
|
10340
|
+
}, Td = ({ eventID: e, title: t, external: n, buttonText: r = "Register Now", additionalFields: i = [] }) => {
|
|
10341
|
+
let a = P(), [o, s] = B([]), [c, l] = B(!0), { isOpen: u, onOpen: d, onClose: f } = Cd(), [p, m] = B(!1), [h, g] = B(null), [_, v] = B(void 0), [y, b] = B(""), [x, S] = B(null), [w, T] = B(!1), [E, D] = B(null), [O, k] = B(!1), [ee, te] = B(1), [ne, j] = B(null), [re, ie] = B([]), { workspace: ae } = A(), oe = z(null), se = () => {
|
|
10342
|
+
S(null), v(void 0), D(null), T(!1), b(""), j(null), f(), te(1), F();
|
|
10343
|
+
}, { Razorpay: ce } = Zn(), { stripePromise: le, config: ue, isOpen: de, openStripeCheckout: fe, closeStripeCheckout: he, setOnComplete: ge } = pe(), _e = () => {
|
|
10306
10344
|
let e = oe.current;
|
|
10307
|
-
e &&
|
|
10308
|
-
e?.content?.data &&
|
|
10345
|
+
e && a?.fetch?.url(`/v1/event/booking/${e.bookingId}/confirm-booking`)?.options({ headers: { Origin: ae?.id || "" } })?.post({ session_id: e.sessionId })?.json().then((e) => {
|
|
10346
|
+
e?.content?.data && v(e?.content?.data), he(), oe.current = null;
|
|
10309
10347
|
}).catch((e) => {
|
|
10310
|
-
console.error("Failed to confirm booking after Stripe payment:", e),
|
|
10348
|
+
console.error("Failed to confirm booking after Stripe payment:", e), Ee(e), he(), oe.current = null;
|
|
10311
10349
|
});
|
|
10312
10350
|
}, ve = async () => {
|
|
10313
|
-
|
|
10314
|
-
let { name: t, email: n, is_business_purchase: r, billing_details:
|
|
10351
|
+
m(!0), j(null);
|
|
10352
|
+
let { name: t, email: n, is_business_purchase: r, billing_details: o, designation: s, mobile: c, organization: l, ...u } = { ...we }, d = Object.fromEntries(Object.entries({
|
|
10353
|
+
designation: s,
|
|
10354
|
+
mobile: c,
|
|
10355
|
+
organization: l
|
|
10356
|
+
}).filter(([e, t]) => i.includes(e) && t));
|
|
10315
10357
|
try {
|
|
10316
|
-
let
|
|
10358
|
+
let i = {
|
|
10317
10359
|
event: e,
|
|
10318
|
-
coupon:
|
|
10360
|
+
coupon: y,
|
|
10319
10361
|
attendees: [{
|
|
10320
10362
|
name: t,
|
|
10321
10363
|
email: n,
|
|
10322
|
-
ticket:
|
|
10323
|
-
|
|
10364
|
+
ticket: h?._id,
|
|
10365
|
+
...d,
|
|
10366
|
+
details: u
|
|
10324
10367
|
}]
|
|
10325
10368
|
};
|
|
10326
|
-
r && (
|
|
10327
|
-
let
|
|
10328
|
-
if (!
|
|
10369
|
+
r && (i.is_business_purchase = !0, i.billing_details = o);
|
|
10370
|
+
let s = await a?.fetch?.url(`/v1/event/event/${e}/booking/create-new-booking`)?.options({ headers: { Origin: ae?.id || "" } })?.post(i).json();
|
|
10371
|
+
if (!s.status) j("Booking failed. Please try again.");
|
|
10329
10372
|
else {
|
|
10330
10373
|
se();
|
|
10331
|
-
let e =
|
|
10374
|
+
let e = s?.content?.meta;
|
|
10332
10375
|
if (e?.key) {
|
|
10333
|
-
let t =
|
|
10376
|
+
let t = s?.content.data?._id;
|
|
10334
10377
|
e.provider === "stripe" && e.client_secret ? (oe.current = t && e.session_id ? {
|
|
10335
10378
|
bookingId: t,
|
|
10336
10379
|
sessionId: e.session_id
|
|
10337
10380
|
} : null, ge(_e), await fe({
|
|
10338
10381
|
key: e.key,
|
|
10339
10382
|
client_secret: e.client_secret,
|
|
10340
|
-
amount:
|
|
10383
|
+
amount: s?.content.data?.unit_amount || 0,
|
|
10341
10384
|
currency: e.currency || "USD",
|
|
10342
10385
|
provider: "stripe",
|
|
10343
10386
|
reference_id: e.reference_id || ""
|
|
10344
10387
|
})) : ye({
|
|
10345
10388
|
key: e.key,
|
|
10346
|
-
amount:
|
|
10389
|
+
amount: s?.content.data?.unit_amount,
|
|
10347
10390
|
currency: e.currency || "INR",
|
|
10348
10391
|
order_id: e.order_id,
|
|
10349
10392
|
booking_id: t
|
|
10350
10393
|
});
|
|
10351
|
-
} else
|
|
10394
|
+
} else v(s?.content.data);
|
|
10352
10395
|
}
|
|
10353
10396
|
} catch (e) {
|
|
10354
|
-
|
|
10397
|
+
j(W(e).message || "Something went wrong. Please try again.");
|
|
10355
10398
|
}
|
|
10356
|
-
|
|
10399
|
+
m(!1);
|
|
10357
10400
|
}, ye = async (e) => {
|
|
10358
10401
|
let t = new ce({
|
|
10359
10402
|
key: e.key,
|
|
10360
10403
|
amount: e.amount,
|
|
10361
10404
|
currency: e.currency,
|
|
10362
10405
|
order_id: e.order_id,
|
|
10363
|
-
name:
|
|
10406
|
+
name: ae?.name ?? "",
|
|
10364
10407
|
description: "Event Registration",
|
|
10365
10408
|
handler: (t) => {
|
|
10366
|
-
|
|
10409
|
+
a?.fetch?.url(`/v1/event/booking/${e.booking_id}/confirm-booking`)?.options({ headers: { Origin: ae?.id || "" } })?.post({
|
|
10367
10410
|
order_id: t.razorpay_order_id,
|
|
10368
10411
|
payment_id: t.razorpay_payment_id,
|
|
10369
10412
|
signature: t.razorpay_signature
|
|
10370
10413
|
})?.json().then((e) => {
|
|
10371
|
-
e?.content?.data?.status &&
|
|
10414
|
+
e?.content?.data?.status && v(e?.content?.data);
|
|
10372
10415
|
});
|
|
10373
10416
|
},
|
|
10374
10417
|
prefill: {
|
|
@@ -10383,52 +10426,55 @@ var Cd = async (e, t, n) => {
|
|
|
10383
10426
|
}), t.open();
|
|
10384
10427
|
}, be = async () => {
|
|
10385
10428
|
try {
|
|
10386
|
-
let t = await
|
|
10387
|
-
t?.status && t?.content?.data &&
|
|
10429
|
+
let t = await a?.fetch?.url(`/v1/event/event/${e}/coupon/list-public-coupons`)?.options({ headers: { Origin: ae?.id || "" } })?.get().json();
|
|
10430
|
+
t?.status && t?.content?.data && ie(t.content.data);
|
|
10388
10431
|
} catch (e) {
|
|
10389
|
-
|
|
10432
|
+
a?.logger?.error("Failed to fetch public coupons", { exception: W(e) });
|
|
10390
10433
|
}
|
|
10391
10434
|
}, xe = async (t) => {
|
|
10392
|
-
let n = t ??
|
|
10393
|
-
|
|
10435
|
+
let n = t ?? y;
|
|
10436
|
+
T(!0), D(null);
|
|
10394
10437
|
try {
|
|
10395
|
-
let t = await
|
|
10438
|
+
let t = await a?.fetch?.url(`/v1/event/event/${e}/coupon/validate-coupon-code`)?.options({ headers: { Origin: ae?.id || "" } })?.post({
|
|
10396
10439
|
coupon: n,
|
|
10397
10440
|
event: e,
|
|
10398
10441
|
attendees: [{
|
|
10399
10442
|
name: "",
|
|
10400
10443
|
email: "",
|
|
10401
|
-
ticket:
|
|
10444
|
+
ticket: h?._id
|
|
10402
10445
|
}]
|
|
10403
10446
|
}).json();
|
|
10404
|
-
t.status && (
|
|
10447
|
+
t.status && (S(t.content.data), b(n)), k(!1), T(!1);
|
|
10405
10448
|
} catch (e) {
|
|
10406
|
-
|
|
10449
|
+
D(W(e).message), T(!1);
|
|
10407
10450
|
}
|
|
10408
10451
|
}, Se = (e) => {
|
|
10409
|
-
|
|
10452
|
+
b(""), S(null), D(null), T(!1), j(null), g(e);
|
|
10410
10453
|
}, Ce = () => {
|
|
10411
|
-
|
|
10412
|
-
},
|
|
10413
|
-
|
|
10454
|
+
S(null), D(null), b("");
|
|
10455
|
+
}, N = () => {
|
|
10456
|
+
D(null), T(!1), b(""), k(!1);
|
|
10414
10457
|
};
|
|
10415
10458
|
L(() => {
|
|
10416
10459
|
if (n) {
|
|
10417
|
-
|
|
10460
|
+
l(!1);
|
|
10418
10461
|
return;
|
|
10419
10462
|
}
|
|
10420
|
-
e && (
|
|
10421
|
-
|
|
10463
|
+
e && (l(!0), wd(a, e, ae?.id ?? "")?.then((e) => {
|
|
10464
|
+
s(e), e && e.length > 0 && g(e[0] || null), l(!1);
|
|
10422
10465
|
}));
|
|
10423
10466
|
}, [e, n]), L(() => {
|
|
10424
|
-
|
|
10425
|
-
}, [
|
|
10426
|
-
|
|
10427
|
-
}, [
|
|
10428
|
-
let { values:
|
|
10467
|
+
h?.unit_amount === 0 && o?.length === 1 && te(2);
|
|
10468
|
+
}, [h, u]), L(() => {
|
|
10469
|
+
u && e && be();
|
|
10470
|
+
}, [u, e]);
|
|
10471
|
+
let { values: we, handleBlur: Te, handleSubmit: De, resetForm: F, setFieldValue: Oe } = er({
|
|
10429
10472
|
initialValues: {
|
|
10430
10473
|
name: "",
|
|
10431
10474
|
email: "",
|
|
10475
|
+
designation: "",
|
|
10476
|
+
mobile: "",
|
|
10477
|
+
organization: "",
|
|
10432
10478
|
is_business_purchase: !1,
|
|
10433
10479
|
billing_details: {
|
|
10434
10480
|
name: "",
|
|
@@ -10449,32 +10495,35 @@ var Cd = async (e, t, n) => {
|
|
|
10449
10495
|
enableReinitialize: !0
|
|
10450
10496
|
}), ke = (e) => {
|
|
10451
10497
|
let { name: t, value: n, type: r, checked: i } = e.target;
|
|
10452
|
-
r === "checkbox" ?
|
|
10498
|
+
r === "checkbox" ? Oe(t, i) : Oe(t, n);
|
|
10453
10499
|
};
|
|
10454
|
-
if (n) return /* @__PURE__ */ H(
|
|
10455
|
-
|
|
10456
|
-
|
|
10457
|
-
|
|
10500
|
+
if (n) return /* @__PURE__ */ H(oc, {
|
|
10501
|
+
elementKey: "register_container",
|
|
10502
|
+
className: "my-2 w-fit",
|
|
10503
|
+
children: /* @__PURE__ */ H(C, {
|
|
10504
|
+
elementKey: "register_button",
|
|
10458
10505
|
className: "rounded-lg px-4 py-3 font-semibold",
|
|
10459
10506
|
onClick: () => window.open(n, "_blank", "noopener,noreferrer"),
|
|
10460
10507
|
children: r
|
|
10461
10508
|
})
|
|
10462
10509
|
});
|
|
10463
|
-
if (
|
|
10464
|
-
|
|
10465
|
-
|
|
10466
|
-
|
|
10510
|
+
if (c) return /* @__PURE__ */ H(oc, {
|
|
10511
|
+
elementKey: "register_container",
|
|
10512
|
+
className: "my-2 w-fit",
|
|
10513
|
+
children: /* @__PURE__ */ H(C, {
|
|
10514
|
+
elementKey: "register_button",
|
|
10467
10515
|
className: "rounded-lg px-4 py-2 font-bold",
|
|
10468
10516
|
children: "Loading..."
|
|
10469
10517
|
})
|
|
10470
10518
|
});
|
|
10471
|
-
let Ae =
|
|
10519
|
+
let Ae = x?.sale_amount === 0 || h?.unit_amount === 0 ? "Complete Registration" : "Pay";
|
|
10472
10520
|
return /* @__PURE__ */ U(V, { children: [
|
|
10473
|
-
/* @__PURE__ */ H(
|
|
10521
|
+
/* @__PURE__ */ H(oc, {
|
|
10522
|
+
elementKey: "register_container",
|
|
10474
10523
|
className: "my-2",
|
|
10475
|
-
children:
|
|
10476
|
-
elementKey: "",
|
|
10477
|
-
onClick:
|
|
10524
|
+
children: o?.length ? /* @__PURE__ */ H(C, {
|
|
10525
|
+
elementKey: "register_button",
|
|
10526
|
+
onClick: d,
|
|
10478
10527
|
className: "rounded-lg px-4 py-3 font-semibold",
|
|
10479
10528
|
children: r
|
|
10480
10529
|
}) : /* @__PURE__ */ H("p", {
|
|
@@ -10482,12 +10531,12 @@ var Cd = async (e, t, n) => {
|
|
|
10482
10531
|
children: "No tickets available for this event."
|
|
10483
10532
|
})
|
|
10484
10533
|
}),
|
|
10485
|
-
/* @__PURE__ */ H(Rn.Root, { children:
|
|
10534
|
+
/* @__PURE__ */ H(Rn.Root, { children: u && /* @__PURE__ */ H("div", {
|
|
10486
10535
|
className: "fixed inset-0 z-100 flex justify-center bg-black/50 pt-24",
|
|
10487
10536
|
children: /* @__PURE__ */ U("div", {
|
|
10488
|
-
className:
|
|
10537
|
+
className: M("flex h-fit max-w-[90%] flex-col rounded-lg bg-white p-4 md:w-[40%]", O ? "md:max-w-[30%]" : "md:max-w-[40%]"),
|
|
10489
10538
|
children: [/* @__PURE__ */ U("div", {
|
|
10490
|
-
className: `mb-4 flex w-full items-start justify-between ${
|
|
10539
|
+
className: `mb-4 flex w-full items-start justify-between ${O ? "" : "pb-[6px]"} `,
|
|
10491
10540
|
children: [/* @__PURE__ */ U("h2", {
|
|
10492
10541
|
className: "font-semibold text-lg",
|
|
10493
10542
|
children: [
|
|
@@ -10504,50 +10553,51 @@ var Cd = async (e, t, n) => {
|
|
|
10504
10553
|
}), /* @__PURE__ */ U("div", { children: [ne && /* @__PURE__ */ H("div", {
|
|
10505
10554
|
className: "mb-4 rounded-md bg-red-50 p-3 text-red-600 text-sm",
|
|
10506
10555
|
children: ne
|
|
10507
|
-
}),
|
|
10508
|
-
couponCode:
|
|
10509
|
-
onCouponCodeChange:
|
|
10510
|
-
couponError:
|
|
10511
|
-
couponLoading:
|
|
10556
|
+
}), ee === 1 ? /* @__PURE__ */ H("div", { children: O ? /* @__PURE__ */ H(bd, {
|
|
10557
|
+
couponCode: y,
|
|
10558
|
+
onCouponCodeChange: b,
|
|
10559
|
+
couponError: E,
|
|
10560
|
+
couponLoading: w,
|
|
10512
10561
|
onValidateCoupon: xe,
|
|
10513
|
-
publicCoupons:
|
|
10514
|
-
onBack:
|
|
10515
|
-
selectedTicket:
|
|
10516
|
-
}) : /* @__PURE__ */ H(
|
|
10517
|
-
tickets:
|
|
10518
|
-
selectedTicket:
|
|
10562
|
+
publicCoupons: re,
|
|
10563
|
+
onBack: N,
|
|
10564
|
+
selectedTicket: h
|
|
10565
|
+
}) : /* @__PURE__ */ H(Sd, {
|
|
10566
|
+
tickets: o,
|
|
10567
|
+
selectedTicket: h,
|
|
10519
10568
|
onSelectTicket: Se,
|
|
10520
|
-
discount:
|
|
10521
|
-
couponCode:
|
|
10522
|
-
publicCouponsCount:
|
|
10523
|
-
onApplyCouponClick: () =>
|
|
10569
|
+
discount: x,
|
|
10570
|
+
couponCode: y,
|
|
10571
|
+
publicCouponsCount: re.length,
|
|
10572
|
+
onApplyCouponClick: () => k(!0),
|
|
10524
10573
|
onRemoveCoupon: Ce,
|
|
10525
10574
|
onNext: () => te(2)
|
|
10526
|
-
}) }) : /* @__PURE__ */ H(
|
|
10527
|
-
values:
|
|
10575
|
+
}) }) : /* @__PURE__ */ H(md, {
|
|
10576
|
+
values: we,
|
|
10528
10577
|
handleChange: ke,
|
|
10529
10578
|
handleBlur: Te,
|
|
10530
|
-
handleSubmit:
|
|
10531
|
-
registerLoading:
|
|
10579
|
+
handleSubmit: De,
|
|
10580
|
+
registerLoading: p,
|
|
10532
10581
|
onBack: () => te(1),
|
|
10533
|
-
submitLabel: Ae
|
|
10582
|
+
submitLabel: Ae,
|
|
10583
|
+
additionalFields: i
|
|
10534
10584
|
})] })]
|
|
10535
10585
|
})
|
|
10536
10586
|
}) }),
|
|
10537
|
-
|
|
10538
|
-
paymentData:
|
|
10539
|
-
ticketData:
|
|
10587
|
+
_ && /* @__PURE__ */ H(xd, {
|
|
10588
|
+
paymentData: _,
|
|
10589
|
+
ticketData: o,
|
|
10540
10590
|
type: "confirm"
|
|
10541
10591
|
}),
|
|
10542
|
-
de && ue && /* @__PURE__ */ H(
|
|
10592
|
+
de && ue && /* @__PURE__ */ H(me, {
|
|
10543
10593
|
isOpen: de,
|
|
10544
|
-
onClose:
|
|
10594
|
+
onClose: he,
|
|
10545
10595
|
stripePromise: le,
|
|
10546
10596
|
clientSecret: ue.clientSecret,
|
|
10547
10597
|
onComplete: _e
|
|
10548
10598
|
})
|
|
10549
10599
|
] });
|
|
10550
|
-
},
|
|
10600
|
+
}, Ed = ({ blockInstance: e, blocks: t, theme: n }) => {
|
|
10551
10601
|
let r = Ie(), i = z(null), a = go({
|
|
10552
10602
|
pageTheme: n ?? so,
|
|
10553
10603
|
blocks: [e],
|
|
@@ -10571,13 +10621,13 @@ var Cd = async (e, t, n) => {
|
|
|
10571
10621
|
workspace_id: "devtools"
|
|
10572
10622
|
})
|
|
10573
10623
|
})] });
|
|
10574
|
-
},
|
|
10624
|
+
}, Dd = 300, Od = ({ label: e, value: t, onChange: n }) => {
|
|
10575
10625
|
let [r, i] = B(() => JSON.stringify(t, null, 2)), [a, o] = B(null), s = z(null), c = z(JSON.stringify(t, null, 2));
|
|
10576
10626
|
L(() => {
|
|
10577
10627
|
let e = JSON.stringify(t, null, 2);
|
|
10578
10628
|
e !== c.current && (c.current = e, i(e), o(null));
|
|
10579
10629
|
}, [t]);
|
|
10580
|
-
let l =
|
|
10630
|
+
let l = Pe((e) => {
|
|
10581
10631
|
let t = e.target.value;
|
|
10582
10632
|
i(t), s.current && clearTimeout(s.current), s.current = setTimeout(() => {
|
|
10583
10633
|
try {
|
|
@@ -10586,7 +10636,7 @@ var Cd = async (e, t, n) => {
|
|
|
10586
10636
|
} catch (e) {
|
|
10587
10637
|
o(e.message);
|
|
10588
10638
|
}
|
|
10589
|
-
},
|
|
10639
|
+
}, Dd);
|
|
10590
10640
|
}, [n]);
|
|
10591
10641
|
return L(() => () => {
|
|
10592
10642
|
s.current && clearTimeout(s.current);
|
|
@@ -10639,7 +10689,7 @@ var Cd = async (e, t, n) => {
|
|
|
10639
10689
|
})
|
|
10640
10690
|
]
|
|
10641
10691
|
});
|
|
10642
|
-
},
|
|
10692
|
+
}, kd = (e, t = 0) => {
|
|
10643
10693
|
let n = e.layouts[t];
|
|
10644
10694
|
if (!n) throw Error(`Layout index ${t} not found on block "${e.key}". Available: ${e.layouts.length}`);
|
|
10645
10695
|
let r = n.content && Object.keys(n.content).length > 0 ? n.content : Hr(e.content_schema), i = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -10668,7 +10718,7 @@ var Cd = async (e, t, n) => {
|
|
|
10668
10718
|
deleted_at: null,
|
|
10669
10719
|
site_version: "v2"
|
|
10670
10720
|
};
|
|
10671
|
-
},
|
|
10721
|
+
}, Ad = [
|
|
10672
10722
|
{
|
|
10673
10723
|
key: "content",
|
|
10674
10724
|
label: "Content"
|
|
@@ -10681,8 +10731,8 @@ var Cd = async (e, t, n) => {
|
|
|
10681
10731
|
key: "config",
|
|
10682
10732
|
label: "Config"
|
|
10683
10733
|
}
|
|
10684
|
-
],
|
|
10685
|
-
let [i, a] = B(r), [o, s] = B("content"), [c, l] = B(!0), u = R(() =>
|
|
10734
|
+
], jd = ({ schema: e, component: t, theme: n, defaultLayoutIndex: r = 0 }) => {
|
|
10735
|
+
let [i, a] = B(r), [o, s] = B("content"), [c, l] = B(!0), u = R(() => kd(e, i), [e, i]), [d, f] = B(u.content), [p, m] = B(u.styles), [h, g] = B(u.config), _ = R(() => ({
|
|
10686
10736
|
...u,
|
|
10687
10737
|
content: d,
|
|
10688
10738
|
styles: p,
|
|
@@ -10696,21 +10746,21 @@ var Cd = async (e, t, n) => {
|
|
|
10696
10746
|
e.key,
|
|
10697
10747
|
e.version,
|
|
10698
10748
|
t
|
|
10699
|
-
]), y =
|
|
10749
|
+
]), y = Pe((t) => {
|
|
10700
10750
|
let n = Number(t.target.value);
|
|
10701
10751
|
a(n);
|
|
10702
|
-
let r =
|
|
10752
|
+
let r = kd(e, n);
|
|
10703
10753
|
f(r.content), m(r.styles), g(r.config);
|
|
10704
|
-
}, [e]), b =
|
|
10705
|
-
let t =
|
|
10754
|
+
}, [e]), b = Pe(() => {
|
|
10755
|
+
let t = kd(e, i);
|
|
10706
10756
|
f(t.content), m(t.styles), g(t.config);
|
|
10707
10757
|
}, [e, i]);
|
|
10708
10758
|
return /* @__PURE__ */ U("div", {
|
|
10709
|
-
style:
|
|
10759
|
+
style: Md,
|
|
10710
10760
|
children: [
|
|
10711
10761
|
/* @__PURE__ */ H("div", {
|
|
10712
|
-
style:
|
|
10713
|
-
children: /* @__PURE__ */ H(
|
|
10762
|
+
style: Nd,
|
|
10763
|
+
children: /* @__PURE__ */ H(Ed, {
|
|
10714
10764
|
blockInstance: _,
|
|
10715
10765
|
blocks: v,
|
|
10716
10766
|
theme: n
|
|
@@ -10719,7 +10769,7 @@ var Cd = async (e, t, n) => {
|
|
|
10719
10769
|
!c && /* @__PURE__ */ H("button", {
|
|
10720
10770
|
type: "button",
|
|
10721
10771
|
onClick: () => l(!0),
|
|
10722
|
-
style:
|
|
10772
|
+
style: Pd,
|
|
10723
10773
|
title: "Open DevTools",
|
|
10724
10774
|
children: /* @__PURE__ */ U("svg", {
|
|
10725
10775
|
width: "18",
|
|
@@ -10734,10 +10784,10 @@ var Cd = async (e, t, n) => {
|
|
|
10734
10784
|
})
|
|
10735
10785
|
}),
|
|
10736
10786
|
c && /* @__PURE__ */ U("div", {
|
|
10737
|
-
style:
|
|
10787
|
+
style: Fd,
|
|
10738
10788
|
children: [
|
|
10739
10789
|
/* @__PURE__ */ U("div", {
|
|
10740
|
-
style:
|
|
10790
|
+
style: Id,
|
|
10741
10791
|
children: [/* @__PURE__ */ U("div", {
|
|
10742
10792
|
style: {
|
|
10743
10793
|
display: "flex",
|
|
@@ -10745,10 +10795,10 @@ var Cd = async (e, t, n) => {
|
|
|
10745
10795
|
gap: 8
|
|
10746
10796
|
},
|
|
10747
10797
|
children: [/* @__PURE__ */ H("span", {
|
|
10748
|
-
style:
|
|
10798
|
+
style: Ld,
|
|
10749
10799
|
children: e.title
|
|
10750
10800
|
}), /* @__PURE__ */ U("span", {
|
|
10751
|
-
style:
|
|
10801
|
+
style: Rd,
|
|
10752
10802
|
children: [
|
|
10753
10803
|
e.key,
|
|
10754
10804
|
":",
|
|
@@ -10765,7 +10815,7 @@ var Cd = async (e, t, n) => {
|
|
|
10765
10815
|
e.layouts.length > 1 && /* @__PURE__ */ H("select", {
|
|
10766
10816
|
value: i,
|
|
10767
10817
|
onChange: y,
|
|
10768
|
-
style:
|
|
10818
|
+
style: zd,
|
|
10769
10819
|
children: e.layouts.map((e, t) => /* @__PURE__ */ H("option", {
|
|
10770
10820
|
value: t,
|
|
10771
10821
|
children: e.title || e.key
|
|
@@ -10774,13 +10824,13 @@ var Cd = async (e, t, n) => {
|
|
|
10774
10824
|
/* @__PURE__ */ H("button", {
|
|
10775
10825
|
type: "button",
|
|
10776
10826
|
onClick: b,
|
|
10777
|
-
style:
|
|
10827
|
+
style: Bd,
|
|
10778
10828
|
children: "Reset"
|
|
10779
10829
|
}),
|
|
10780
10830
|
/* @__PURE__ */ H("button", {
|
|
10781
10831
|
type: "button",
|
|
10782
10832
|
onClick: () => l(!1),
|
|
10783
|
-
style:
|
|
10833
|
+
style: Vd,
|
|
10784
10834
|
title: "Collapse DevTools",
|
|
10785
10835
|
children: /* @__PURE__ */ U("svg", {
|
|
10786
10836
|
width: "14",
|
|
@@ -10808,13 +10858,13 @@ var Cd = async (e, t, n) => {
|
|
|
10808
10858
|
})]
|
|
10809
10859
|
}),
|
|
10810
10860
|
/* @__PURE__ */ H("div", {
|
|
10811
|
-
style:
|
|
10812
|
-
children:
|
|
10861
|
+
style: Hd,
|
|
10862
|
+
children: Ad.map((e) => /* @__PURE__ */ H("button", {
|
|
10813
10863
|
type: "button",
|
|
10814
10864
|
onClick: () => s(e.key),
|
|
10815
10865
|
style: {
|
|
10816
|
-
...
|
|
10817
|
-
...o === e.key ?
|
|
10866
|
+
...Ud,
|
|
10867
|
+
...o === e.key ? Wd : {}
|
|
10818
10868
|
},
|
|
10819
10869
|
children: e.label
|
|
10820
10870
|
}, e.key))
|
|
@@ -10827,7 +10877,7 @@ var Cd = async (e, t, n) => {
|
|
|
10827
10877
|
display: o === "content" ? "flex" : "none",
|
|
10828
10878
|
flexDirection: "column"
|
|
10829
10879
|
},
|
|
10830
|
-
children: /* @__PURE__ */ H(
|
|
10880
|
+
children: /* @__PURE__ */ H(Od, {
|
|
10831
10881
|
label: "content",
|
|
10832
10882
|
value: d,
|
|
10833
10883
|
onChange: f
|
|
@@ -10841,7 +10891,7 @@ var Cd = async (e, t, n) => {
|
|
|
10841
10891
|
display: o === "styles" ? "flex" : "none",
|
|
10842
10892
|
flexDirection: "column"
|
|
10843
10893
|
},
|
|
10844
|
-
children: /* @__PURE__ */ H(
|
|
10894
|
+
children: /* @__PURE__ */ H(Od, {
|
|
10845
10895
|
label: "styles",
|
|
10846
10896
|
value: p,
|
|
10847
10897
|
onChange: m
|
|
@@ -10855,7 +10905,7 @@ var Cd = async (e, t, n) => {
|
|
|
10855
10905
|
display: o === "config" ? "flex" : "none",
|
|
10856
10906
|
flexDirection: "column"
|
|
10857
10907
|
},
|
|
10858
|
-
children: /* @__PURE__ */ H(
|
|
10908
|
+
children: /* @__PURE__ */ H(Od, {
|
|
10859
10909
|
label: "config",
|
|
10860
10910
|
value: h,
|
|
10861
10911
|
onChange: g
|
|
@@ -10865,16 +10915,16 @@ var Cd = async (e, t, n) => {
|
|
|
10865
10915
|
})
|
|
10866
10916
|
]
|
|
10867
10917
|
});
|
|
10868
|
-
},
|
|
10918
|
+
}, Md = {
|
|
10869
10919
|
position: "relative",
|
|
10870
10920
|
width: "100%",
|
|
10871
10921
|
minHeight: "100vh",
|
|
10872
10922
|
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
|
|
10873
10923
|
color: "#1a1a1a"
|
|
10874
|
-
},
|
|
10924
|
+
}, Nd = {
|
|
10875
10925
|
width: "100%",
|
|
10876
10926
|
minHeight: "100vh"
|
|
10877
|
-
},
|
|
10927
|
+
}, Pd = {
|
|
10878
10928
|
position: "fixed",
|
|
10879
10929
|
bottom: 20,
|
|
10880
10930
|
right: 20,
|
|
@@ -10892,7 +10942,7 @@ var Cd = async (e, t, n) => {
|
|
|
10892
10942
|
justifyContent: "center",
|
|
10893
10943
|
color: "#374151",
|
|
10894
10944
|
transition: "transform 0.15s ease, box-shadow 0.15s ease"
|
|
10895
|
-
},
|
|
10945
|
+
}, Fd = {
|
|
10896
10946
|
position: "fixed",
|
|
10897
10947
|
top: 12,
|
|
10898
10948
|
right: 12,
|
|
@@ -10908,38 +10958,38 @@ var Cd = async (e, t, n) => {
|
|
|
10908
10958
|
boxShadow: "0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06)",
|
|
10909
10959
|
overflow: "hidden",
|
|
10910
10960
|
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"
|
|
10911
|
-
},
|
|
10961
|
+
}, Id = {
|
|
10912
10962
|
display: "flex",
|
|
10913
10963
|
alignItems: "center",
|
|
10914
10964
|
justifyContent: "space-between",
|
|
10915
10965
|
padding: "10px 12px",
|
|
10916
10966
|
borderBottom: "1px solid rgba(0,0,0,0.06)",
|
|
10917
10967
|
flexShrink: 0
|
|
10918
|
-
},
|
|
10968
|
+
}, Ld = {
|
|
10919
10969
|
fontSize: 13,
|
|
10920
10970
|
fontWeight: 600
|
|
10921
|
-
},
|
|
10971
|
+
}, Rd = {
|
|
10922
10972
|
fontSize: 10,
|
|
10923
10973
|
fontFamily: "monospace",
|
|
10924
10974
|
color: "#6b7280",
|
|
10925
10975
|
backgroundColor: "#f3f4f6",
|
|
10926
10976
|
padding: "2px 5px",
|
|
10927
10977
|
borderRadius: 4
|
|
10928
|
-
},
|
|
10978
|
+
}, zd = {
|
|
10929
10979
|
fontSize: 12,
|
|
10930
10980
|
padding: "3px 6px",
|
|
10931
10981
|
border: "1px solid #d1d5db",
|
|
10932
10982
|
borderRadius: 4,
|
|
10933
10983
|
backgroundColor: "#fff",
|
|
10934
10984
|
cursor: "pointer"
|
|
10935
|
-
},
|
|
10985
|
+
}, Bd = {
|
|
10936
10986
|
fontSize: 12,
|
|
10937
10987
|
padding: "3px 8px",
|
|
10938
10988
|
border: "1px solid #d1d5db",
|
|
10939
10989
|
borderRadius: 4,
|
|
10940
10990
|
backgroundColor: "#fff",
|
|
10941
10991
|
cursor: "pointer"
|
|
10942
|
-
},
|
|
10992
|
+
}, Vd = {
|
|
10943
10993
|
display: "flex",
|
|
10944
10994
|
alignItems: "center",
|
|
10945
10995
|
justifyContent: "center",
|
|
@@ -10950,11 +11000,11 @@ var Cd = async (e, t, n) => {
|
|
|
10950
11000
|
backgroundColor: "transparent",
|
|
10951
11001
|
cursor: "pointer",
|
|
10952
11002
|
color: "#6b7280"
|
|
10953
|
-
},
|
|
11003
|
+
}, Hd = {
|
|
10954
11004
|
display: "flex",
|
|
10955
11005
|
borderBottom: "1px solid rgba(0,0,0,0.06)",
|
|
10956
11006
|
flexShrink: 0
|
|
10957
|
-
},
|
|
11007
|
+
}, Ud = {
|
|
10958
11008
|
fontSize: 12,
|
|
10959
11009
|
padding: "7px 14px",
|
|
10960
11010
|
border: "none",
|
|
@@ -10962,11 +11012,11 @@ var Cd = async (e, t, n) => {
|
|
|
10962
11012
|
backgroundColor: "transparent",
|
|
10963
11013
|
cursor: "pointer",
|
|
10964
11014
|
color: "#6b7280"
|
|
10965
|
-
},
|
|
11015
|
+
}, Wd = {
|
|
10966
11016
|
color: "#1a1a1a",
|
|
10967
11017
|
borderBottomColor: "#1a1a1a",
|
|
10968
11018
|
fontWeight: 500
|
|
10969
|
-
},
|
|
11019
|
+
}, Gd = ["element", "group"], Kd = /* @__PURE__ */ "BoxWidget.ButtonWidget.LayoutWidget.HeadingWidget.IframeWidget.ImageWidget.IconWidget.MediaWidget.TypographyWidget.BlogContentWidget.CarouselWidget.FormWidget.ContainerWidget.UserMenuWidget.TabsListWidget.TabsTriggerWidget.TabsContentWidget.NavMenuWidget.CardWidget.TitleWidget.TextWidget.NumberWidget.URLWidget.ImageUploadWidget.MultiImageUploadWidget.TextareaWidget.RichTextWidget.DropdownWidget.SwitchWidget.DateWidget.ArrayWidget.RecordWidget".split("."), qd = Kd.reduce((e, t) => (e[t] = t, e), {}), Jd = [
|
|
10970
11020
|
"collection",
|
|
10971
11021
|
"event",
|
|
10972
11022
|
"blog",
|
|
@@ -10976,7 +11026,7 @@ var Cd = async (e, t, n) => {
|
|
|
10976
11026
|
"blog_author",
|
|
10977
11027
|
"blog_category",
|
|
10978
11028
|
"blog_tag"
|
|
10979
|
-
],
|
|
11029
|
+
], Yd = [
|
|
10980
11030
|
"linkedin",
|
|
10981
11031
|
"google",
|
|
10982
11032
|
"oauth",
|
|
@@ -10987,4 +11037,4 @@ var Cd = async (e, t, n) => {
|
|
|
10987
11037
|
"password"
|
|
10988
11038
|
];
|
|
10989
11039
|
//#endregion
|
|
10990
|
-
export {
|
|
11040
|
+
export { Ce as ALTERNATE_METHOD_VALUES, ye as ALTERNATIVE_AUTH_METHODS, bs as AccordionContent, vs as AccordionItem, _s as AccordionRoot, ys as AccordionTrigger, ne as AuthProvider, xe as AuthenticationOptions, Fu as Avatar, Bu as AvatarBadge, Ru as AvatarFallback, zu as AvatarFallbackV2, Vu as AvatarGroup, Hu as AvatarGroupCount, Iu as AvatarImage, Lu as AvatarImageV2, eu as BUILT_IN_PRESETS, _u as BackgroundEffects, nc as BaseBlogContent, O as BaseButton, vc as BaseContainer, Bl as BaseHeading, rd as BaseLanguageSwitcher, vu as BaseSection, Ou as BaseTypography, Au as BaseUserMenu, v as BlockProvider, Jd as BlockSourceModuleList, Ro as BlocksRegistry, rc as BlogContent, Mu as BookingConfirmation, Pu as BookingModal, Nu as BookingSummary, oc as Box, C as Button, Gu as Calendar, _c as Carousel, dc as CarouselContent, hc as CarouselDotButton, gc as CarouselDots, fc as CarouselItem, mc as CarouselNext, pc as CarouselPrevious, Ec as CategoryFilter, cl as CommentStatusBadge, El as Comments, Fl as CommentsRestrictionOverlay, yc as Container, Ol as CreateForumPost, q as DATA_ATTRIBUTES, ea as DATE_DISPLAYS, ta as DATE_FORMATS, ia as DATE_HOUR12_VALUES, ra as DATE_LOCALES, na as DATE_STYLES, aa as DEFAULT_DATE_SPEC, _ as DEFAULT_FROM_STATE, so as DEFAULT_THEME, T as DEFAULT_TRANSITION, S as DEFAULT_VIEWPORT, y as DEFAULT_VISIBLE_STATE, jd as DevTools, Ed as DevToolsPreview, xc as EditForm, Tc as Form, ml as FormInput, qu as FormTextarea, jl as ForumPost, Oc as ForumProvider, $u as GlobalSearch, Vl as Heading, Yd as IMembershipAuthenticationMethods, E as Icon, Ul as Iframe, Yl as Image, ll as Input, fd as IntegrationFilters, Nl as JoinRequestForm, Od as JsonEditor, Vo as KBChat, Uu as Kbd, Wu as KbdGroup, Gd as KindList, id as LanguageSwitcher, Mo as LazyMotionProvider, Uo as LevoBlock, ts as LevoPage, Zl as Link, J as MESSAGE_TYPES, Ko as MadeWithLevo, $l as Media, _e as PENDING_APPROVAL_ERROR_CODE, tu as PRESET_CATEGORIES, nu as PRESET_MAP, he as PRIMARY_AUTH_METHODS, be as PRIMARY_METHOD_VALUES, Il as PendingRequestState, Hc as PopoverContent, Rc as PopoverRoot, Vc as PopoverTrigger, m as PopupLoader, Zc as PostActions, Kc as PostCategory, Jc as PostContent, $c as PostGallery, Gc as PostHeader, Qc as PostLink, Ml as PostLinkWrapper, il as PostPoll, ol as PostStatusBadge, qc as PostTitle, Rl as PostsRestrictionOverlay, Ti as PreviewHighlighter, Td as RegisterModal, Pl as SampleCommentSkeleton, Ll as SamplePostSkeleton, zl as SearchInput, yu as Section, Fc as SimpleTooltipWrapper, Z as Skeleton, Yc as StatContainer, ls as StudioPreview, Kd as StudioWidgetList, qd as StudioWidgetMap, Eu as TabsContent, wu as TabsList, bu as TabsRoot, Tu as TabsTrigger, jc as Tooltip, Pc as TooltipContent, Nc as TooltipPortal, Ac as TooltipProvider, Mc as TooltipTrigger, ku as Typography, ju as UserMenu, Aa as VARIABLE_SINGLE_TOKEN_REGEX, ka as VARIABLE_TOKEN_REGEX, Ta as VARIABLE_TRANSFORMS, zo as blocksRegistry, td as buildLocalizedHref, Wi as clearContentCache, Ua as colorOptions, ec as convertHtmlToJSON, zr as convertKeysToPascalCase, Ya as cssOptionsMap, ua as dateSpecToArgs, Oa as evaluateVariableToken, So as fetchCollectionSchema, xo as fetchSource, us as findFieldSchema, ds as flattenVariableMatches, Va as generateAccentColor, Ei as generateBodyContent, Hr as generateDefaultContent, Pr as generateSchemaFromJSX, ho as generateThemeStyles, fo as generateThemeVariables, p as generateVariantClasses, iu as getAvailableCategories, su as getEffectConfigFromPresetId, Ao as getInitialPageContent, Ki as getKeysWithValue, w as getNestedValue, jo as getPageData, Do as getPageSource, ru as getPresetsByCategory, Ba as getWcagContrast, Ia as hexToOKLCH, Se as isAlternateMethod, D as isConfigWithVariants, ge as isPendingApprovalError, ve as isPrimaryMethod, Fa as isValidOKLCH, lo as normalizeColorName, uo as normalizeFontName, Pa as oklchStringToRGBA, za as oklchToHex, Ra as oklchToRGBA, Y as oklchToString, la as parseDateSpec, h as parseGroupContext, La as parseOKLCHString, Zi as parseVariableToken, Oo as parseVariablesFromResolvedSource, co as processFonts, go as processTheme, Gi as resetContentCache, Eo as resolveStyles, To as resolveVariables, Ma as rgbaToOKLCH, Na as rgbaToOKLCHString, lu as sanitizeBackgroundEffectConfig, x as sanitizeElementKey, Ui as schemaCache, kd as schemaToBlockInstance, ma as snapDateStyle, Hi as sourceCache, pa as stylesFor, A as useAuth, f as useBlockContext, k as useCommonProps, No as useContentEngine, Po as useContextEngine, lc as useDotButton, kc as useForumContext, g as useGeneratedClassName, ee as useLanguageVariants, fe as useLogin, Fo as usePageContext, Io as usePageMeta, pe as useStripePayment, Qi as variableTokenToString };
|