@levo-so/studio 0.1.101 → 0.1.102
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/Beams-DkcjMVZl.js +102 -0
- package/{BillingStep-Brc1Mzo3.js → BillingStep-BTRobf00.js} +1 -1
- package/{Button-XTKnNIl9.js → Button-DTrN8kki.js} +32 -18
- package/{Input-Btdc1Dee.js → CollectionField-7uXvhxYK.js} +57 -76
- package/CollectionInput-lHOvWWav.js +147 -0
- package/{DateTimeWidget-B5lBr0_R.js → DateTimeWidget-BHCP5osb.js} +9 -9
- package/Dots-BrEPvoj3.js +100 -0
- package/{EntryCard-DTcx6wfA.js → EntryCard-CqZlbw1Z.js} +6 -6
- package/Grid-B4XWU9eL.js +99 -0
- package/{LoginCard-CnHmCKUF.js → LoginCard-DWLnYJJU.js} +3 -3
- package/{LoginForm-Ck-xFaDg.js → LoginForm-CEUbBeE3.js} +23 -22
- package/{LoginModal-BdYM8INu.js → LoginModal-AWNLO49X.js} +3 -3
- package/{MessageCard-ChDBqLVG.js → MessageCard-C5ULcfuw.js} +2 -2
- package/{MessageFooter-AzAtJWMo.js → MessageFooter-CATwNJJU.js} +1 -1
- package/{ModalManager-SggxCIno.js → ModalManager-DQXhkmyC.js} +1 -1
- package/{PendingApprovalCard-C6ORDqrY.js → PendingApprovalCard-BowwZMBu.js} +3 -3
- package/{PhoneWidget-BRIAve47.js → PhoneWidget-C6uZmrk8.js} +3 -3
- package/{Popover-BdKCElnb.js → Popover-Du4iigVw.js} +1 -1
- package/RichTextWidget-iYdVRBGB.js +112 -0
- package/Toolbar-BHi_B-nE.js +737 -0
- package/{Tooltip-BOq5vSOW.js → Tooltip-K_gFzjOa.js} +1 -1
- package/{VerifyButton-Bl2QqMpB.js → VerifyButton-D21AOIX3.js} +2 -2
- package/authentication-fXmNYss1.js +36 -0
- package/{bookingCard-D3ZSjq-P.js → bookingCard--NlgtcJs.js} +3 -3
- package/collection.d.ts +83 -0
- package/collection.js +9 -8
- package/{dist-DuTd566a.js → dist-x5VFEnQl.js} +1132 -1059
- package/index.d.ts +43 -7
- package/index.js +1517 -1441
- package/inlineRteTheme-Cn_Vqgsm.js +23 -0
- package/{nodeAlignment-BZbdafVA.js → nodeAlignment-DoVbjk29.js} +39 -60
- package/package.json +2 -2
- package/studio.css +1 -1
- package/useLogin-D2VCOHYI.js +127 -0
- package/{utils-kDaDLLGt.js → utils-Bh9uGjo1.js} +1 -1
- package/{widgets-CWDiqXm9.js → widgets-CG5Z_dk7.js} +48 -48
- package/Beams-B0O3uyYF.js +0 -118
- package/CollectionInput-cmJ0RXzG.js +0 -132
- package/Dots-DjezbpLp.js +0 -137
- package/Grid-C9aUfXM-.js +0 -145
- package/RichTextWidget-CjEoGecM.js +0 -1136
- /package/{Gradient-B1K9Yi04.js → Gradient-B4Er9hym.js} +0 -0
- /package/{StripePaymentModal-BHIBBvRj.js → StripePaymentModal-DC-ySB_o.js} +0 -0
- /package/{Waves-BkaAfGqA.js → Waves-kW-EBDdJ.js} +0 -0
- /package/{card-BQr9258p.js → card-BwNr7kQS.js} +0 -0
- /package/{dialog-Dw6n_36P.js → dialog-CCWrvmHd.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./getFieldValidations-DZnDgNI0.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as ee } from "./CollectionInput-
|
|
4
|
-
import { a as r, i, n as a, r as o, t as s } from "./Popover-
|
|
2
|
+
import { t, u as n } from "./CollectionField-7uXvhxYK.js";
|
|
3
|
+
import { t as ee } from "./CollectionInput-lHOvWWav.js";
|
|
4
|
+
import { a as r, i, n as a, r as o, t as s } from "./Popover-Du4iigVw.js";
|
|
5
5
|
import { useEffect as te, useRef as c, useState as l } from "react";
|
|
6
6
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
7
|
import { FieldInterfaces as f } from "@levo-so/core";
|
|
@@ -118,11 +118,11 @@ var ie = "rpx4b10", ae = "rpx4b11", oe = "rpx4b12", se = "rpx4b14 _6o7s4x0", ce
|
|
|
118
118
|
c[11] !== k || c[12] !== O ? (A = Pe(O), Ke = Fe(A, k), c[11] = k, c[12] = O, c[13] = A, c[14] = Ke) : (A = c[13], Ke = c[14]);
|
|
119
119
|
let qe = Ke, j, M, N, P, F, I, L, R, z, B, V, H, U, W, G, Je, K, q, Ye, Xe, Ze, Qe, $e, et, tt, nt, J, Y, rt, X, it, at, ot, st, ct, Z, lt, ut, dt, ft, pt, Q, mt;
|
|
120
120
|
if (c[15] !== qe || c[16] !== k || c[17] !== Ge || c[18] !== Ne || c[19] !== ze || c[20] !== We || c[21] !== Me || c[22] !== S || c[23] !== w || c[24] !== T || c[25] !== Le || c[26] !== E || c[27] !== D || c[28] !== A || c[29] !== O) {
|
|
121
|
-
let e = g(),
|
|
122
|
-
c[73] !== k || c[74] !== T || c[75] !== A ? (
|
|
121
|
+
let e = g(), n;
|
|
122
|
+
c[73] !== k || c[74] !== T || c[75] !== A ? (n = (e) => {
|
|
123
123
|
e && (k && A && e.setHours(A.getHours(), A.getMinutes(), 0, 0), T(e.toISOString()), k || Be(!1));
|
|
124
|
-
}, c[73] = k, c[74] = T, c[75] = A, c[76] =
|
|
125
|
-
let te =
|
|
124
|
+
}, c[73] = k, c[74] = T, c[75] = A, c[76] = n) : n = c[76];
|
|
125
|
+
let te = n, l;
|
|
126
126
|
c[77] === T ? l = c[78] : (l = (e) => {
|
|
127
127
|
T(e.toISOString());
|
|
128
128
|
}, c[77] = T, c[78] = l), L = l;
|
|
@@ -131,7 +131,7 @@ var ie = "rpx4b10", ae = "rpx4b11", oe = "rpx4b12", se = "rpx4b14 _6o7s4x0", ce
|
|
|
131
131
|
e.preventDefault(), e.stopPropagation(), T(null);
|
|
132
132
|
}, c[79] = T, c[80] = d);
|
|
133
133
|
let f = d;
|
|
134
|
-
I =
|
|
134
|
+
I = t, lt = Ne, ut = Le, dt = Ge, ft = S, pt = We, Q = Me, F = a, st = ze, ct = Be;
|
|
135
135
|
let p;
|
|
136
136
|
c[81] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ u(re, { size: 18 }), c[81] = p) : p = c[81];
|
|
137
137
|
let m;
|
|
@@ -210,7 +210,7 @@ var ie = "rpx4b10", ae = "rpx4b11", oe = "rpx4b12", se = "rpx4b14 _6o7s4x0", ce
|
|
|
210
210
|
let bt;
|
|
211
211
|
c[132] === Symbol.for("react.memo_cache_sentinel") ? (bt = /* @__PURE__ */ u("div", {
|
|
212
212
|
className: le,
|
|
213
|
-
children: /* @__PURE__ */ u(
|
|
213
|
+
children: /* @__PURE__ */ u(n, {
|
|
214
214
|
variant: "ghost",
|
|
215
215
|
size: "sm",
|
|
216
216
|
onClick: () => Be(!1),
|
package/Dots-BrEPvoj3.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
import * as r from "motion/react-m";
|
|
5
|
+
//#region src/components/backgroundPresets/Dots.tsx
|
|
6
|
+
var i = 200, a = e.memo(({ className: a, dotColor: o, dotSize: s, spacing: c, isAnimated: l = !1, speed: u }) => {
|
|
7
|
+
let d = o ?? "#00ff00", f = Math.max(Number(s) || 2, .1), p = Math.max(Number(c) || 30, 1), m = Math.max(Number(u) || 1, .01), h = `dots-${e.useId().replace(/:/g, "")}`, g = e.useMemo(() => l ? Array.from({ length: i }, (e, t) => {
|
|
8
|
+
let n = Math.abs(Math.sin(t * 12.9898) * 43758.5453) % 1, r = Math.abs(Math.sin(t * 39.346) * 43758.5453) % 1, i = Math.abs(Math.sin(t * 71.123) * 43758.5453) % 1, a = 2 + Math.abs(Math.sin(t * 15.987) * 43758.5453) % 1 * 4;
|
|
9
|
+
return {
|
|
10
|
+
id: t,
|
|
11
|
+
x: n * 100,
|
|
12
|
+
y: r * 100,
|
|
13
|
+
delay: i * 3,
|
|
14
|
+
amp: a
|
|
15
|
+
};
|
|
16
|
+
}) : [], [l]);
|
|
17
|
+
return /* @__PURE__ */ t("div", {
|
|
18
|
+
className: a,
|
|
19
|
+
style: {
|
|
20
|
+
position: "absolute",
|
|
21
|
+
inset: 0,
|
|
22
|
+
display: "flex",
|
|
23
|
+
height: "100%",
|
|
24
|
+
width: "100%",
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
justifyContent: "center",
|
|
27
|
+
overflow: "hidden",
|
|
28
|
+
zIndex: -1
|
|
29
|
+
},
|
|
30
|
+
children: /* @__PURE__ */ n("svg", {
|
|
31
|
+
style: {
|
|
32
|
+
pointerEvents: "none",
|
|
33
|
+
position: "absolute",
|
|
34
|
+
inset: 0,
|
|
35
|
+
height: "100%",
|
|
36
|
+
width: "100%"
|
|
37
|
+
},
|
|
38
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ t("title", { children: "Dots" }),
|
|
41
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("pattern", {
|
|
42
|
+
id: h,
|
|
43
|
+
x: "0",
|
|
44
|
+
y: "0",
|
|
45
|
+
width: p,
|
|
46
|
+
height: p,
|
|
47
|
+
patternUnits: "userSpaceOnUse",
|
|
48
|
+
children: /* @__PURE__ */ t("circle", {
|
|
49
|
+
cx: p / 2,
|
|
50
|
+
cy: p / 2,
|
|
51
|
+
r: f,
|
|
52
|
+
fill: d
|
|
53
|
+
})
|
|
54
|
+
}) }),
|
|
55
|
+
/* @__PURE__ */ t("rect", {
|
|
56
|
+
width: "100%",
|
|
57
|
+
height: "100%",
|
|
58
|
+
fill: `url(#${h})`
|
|
59
|
+
}),
|
|
60
|
+
l ? g.map((e) => /* @__PURE__ */ t(r.circle, {
|
|
61
|
+
r: f,
|
|
62
|
+
fill: d,
|
|
63
|
+
initial: {
|
|
64
|
+
cx: `${e.x}%`,
|
|
65
|
+
cy: `${e.y}%`,
|
|
66
|
+
opacity: .3
|
|
67
|
+
},
|
|
68
|
+
animate: {
|
|
69
|
+
opacity: [
|
|
70
|
+
.3,
|
|
71
|
+
.9,
|
|
72
|
+
.3
|
|
73
|
+
],
|
|
74
|
+
cx: [
|
|
75
|
+
`${e.x}%`,
|
|
76
|
+
`${e.x + e.amp}%`,
|
|
77
|
+
`${e.x - e.amp}%`,
|
|
78
|
+
`${e.x}%`
|
|
79
|
+
],
|
|
80
|
+
cy: [
|
|
81
|
+
`${e.y}%`,
|
|
82
|
+
`${e.y - e.amp}%`,
|
|
83
|
+
`${e.y + e.amp}%`,
|
|
84
|
+
`${e.y}%`
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
transition: {
|
|
88
|
+
duration: Math.max(.1, 8 / m),
|
|
89
|
+
repeat: Infinity,
|
|
90
|
+
ease: "easeInOut",
|
|
91
|
+
delay: e.delay
|
|
92
|
+
}
|
|
93
|
+
}, e.id)) : null
|
|
94
|
+
]
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
}, (e, t) => e.className === t.className && e.dotColor === t.dotColor && e.dotSize === t.dotSize && e.spacing === t.spacing && e.isAnimated === t.isAnimated && e.speed === t.speed);
|
|
98
|
+
a.displayName = "BackgroundDots";
|
|
99
|
+
//#endregion
|
|
100
|
+
export { a as BackgroundDots };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as n } from "./card-
|
|
5
|
-
import { t as r } from "./MessageFooter-
|
|
2
|
+
import { n as e } from "./AuthProvider-56TywIOB.js";
|
|
3
|
+
import { r as t } from "./dist-x5VFEnQl.js";
|
|
4
|
+
import { t as n } from "./card-BwNr7kQS.js";
|
|
5
|
+
import { t as r } from "./MessageFooter-CATwNJJU.js";
|
|
6
6
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
7
|
var o = {
|
|
8
8
|
header: "_header_emo7t_1",
|
|
@@ -10,7 +10,7 @@ var o = {
|
|
|
10
10
|
subtitle: "_subtitle_emo7t_15",
|
|
11
11
|
formContainer: "_formContainer_emo7t_21"
|
|
12
12
|
}, s = ({ logo: s, siteName: c, workspaceId: l, options: u, onSuccess: d }) => {
|
|
13
|
-
let { account: f } =
|
|
13
|
+
let { account: f } = e();
|
|
14
14
|
return /* @__PURE__ */ a(n, {
|
|
15
15
|
logo: s,
|
|
16
16
|
siteName: c,
|
|
@@ -29,7 +29,7 @@ var o = {
|
|
|
29
29
|
/* @__PURE__ */ i(r, {}),
|
|
30
30
|
f && /* @__PURE__ */ i("div", {
|
|
31
31
|
className: o.formContainer,
|
|
32
|
-
children: /* @__PURE__ */ i(
|
|
32
|
+
children: /* @__PURE__ */ i(t, {
|
|
33
33
|
collection_id: u?.collection || "",
|
|
34
34
|
workspace_id: l,
|
|
35
35
|
uiConfig: {
|
package/Grid-B4XWU9eL.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/backgroundPresets/Grid.tsx
|
|
5
|
+
var r = e.memo(({ spacing: e, lineWidth: r, lineColor: i, patternId: a }) => /* @__PURE__ */ n("svg", {
|
|
6
|
+
style: {
|
|
7
|
+
pointerEvents: "none",
|
|
8
|
+
position: "absolute",
|
|
9
|
+
inset: 0,
|
|
10
|
+
height: "100%",
|
|
11
|
+
width: "100%"
|
|
12
|
+
},
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ t("title", { children: "Grid Lines" }),
|
|
16
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("pattern", {
|
|
17
|
+
id: a,
|
|
18
|
+
x: "0",
|
|
19
|
+
y: "0",
|
|
20
|
+
width: e,
|
|
21
|
+
height: e,
|
|
22
|
+
patternUnits: "userSpaceOnUse",
|
|
23
|
+
children: /* @__PURE__ */ t("path", {
|
|
24
|
+
d: `M ${e} 0 L 0 0 0 ${e}`,
|
|
25
|
+
fill: "none",
|
|
26
|
+
stroke: i,
|
|
27
|
+
strokeWidth: r
|
|
28
|
+
})
|
|
29
|
+
}) }),
|
|
30
|
+
/* @__PURE__ */ t("rect", {
|
|
31
|
+
width: "100%",
|
|
32
|
+
height: "100%",
|
|
33
|
+
fill: `url(#${a})`
|
|
34
|
+
})
|
|
35
|
+
]
|
|
36
|
+
}));
|
|
37
|
+
r.displayName = "BackgroundGrid.Svg";
|
|
38
|
+
var i = e.memo(({ className: i, lineColor: a, lineWidth: o, spacing: s, isInteractive: c = !1, hoverColor: l = "#93c5fd", hoverRadius: u = 180 }) => {
|
|
39
|
+
let d = a ?? "#333333", f = Math.max(o ?? 1, .1), p = Math.max(s ?? 50, 1), m = e.useRef(null), h = `grid-${e.useId().replace(/:/g, "")}`, g = e.useRef(null), _ = e.useRef({
|
|
40
|
+
x: 0,
|
|
41
|
+
y: 0
|
|
42
|
+
}), v = e.useCallback((e) => {
|
|
43
|
+
let t = m.current;
|
|
44
|
+
if (!t) return;
|
|
45
|
+
let n = t.getBoundingClientRect();
|
|
46
|
+
_.current.x = e.clientX - n.left, _.current.y = e.clientY - n.top, g.current ??= requestAnimationFrame(() => {
|
|
47
|
+
g.current = null;
|
|
48
|
+
let { x: e, y: n } = _.current;
|
|
49
|
+
t.style.setProperty("--mx", `${e}px`), t.style.setProperty("--my", `${n}px`), t.style.setProperty("--mo", "1");
|
|
50
|
+
});
|
|
51
|
+
}, []), y = e.useCallback(() => {
|
|
52
|
+
let e = m.current;
|
|
53
|
+
e && e.style.setProperty("--mo", "0");
|
|
54
|
+
}, []);
|
|
55
|
+
return e.useEffect(() => () => {
|
|
56
|
+
g.current != null && cancelAnimationFrame(g.current);
|
|
57
|
+
}, []), /* @__PURE__ */ n("div", {
|
|
58
|
+
ref: m,
|
|
59
|
+
className: i,
|
|
60
|
+
onPointerMove: c ? v : void 0,
|
|
61
|
+
onPointerLeave: c ? y : void 0,
|
|
62
|
+
style: {
|
|
63
|
+
position: "absolute",
|
|
64
|
+
inset: 0,
|
|
65
|
+
overflow: "hidden",
|
|
66
|
+
zIndex: -1,
|
|
67
|
+
...c ? {
|
|
68
|
+
"--mx": "-9999px",
|
|
69
|
+
"--my": "-9999px",
|
|
70
|
+
"--mo": "0"
|
|
71
|
+
} : {}
|
|
72
|
+
},
|
|
73
|
+
children: [/* @__PURE__ */ t(r, {
|
|
74
|
+
spacing: p,
|
|
75
|
+
lineWidth: f,
|
|
76
|
+
lineColor: d,
|
|
77
|
+
patternId: h
|
|
78
|
+
}), c ? /* @__PURE__ */ t("div", {
|
|
79
|
+
style: {
|
|
80
|
+
position: "absolute",
|
|
81
|
+
inset: 0,
|
|
82
|
+
pointerEvents: "none",
|
|
83
|
+
opacity: "var(--mo, 0)",
|
|
84
|
+
transition: "opacity 200ms ease-out",
|
|
85
|
+
WebkitMaskImage: `radial-gradient(circle ${u}px at var(--mx) var(--my), #000 0%, transparent 70%)`,
|
|
86
|
+
maskImage: `radial-gradient(circle ${u}px at var(--mx) var(--my), #000 0%, transparent 70%)`
|
|
87
|
+
},
|
|
88
|
+
children: /* @__PURE__ */ t(r, {
|
|
89
|
+
spacing: p,
|
|
90
|
+
lineWidth: f,
|
|
91
|
+
lineColor: l,
|
|
92
|
+
patternId: `${h}-hover`
|
|
93
|
+
})
|
|
94
|
+
}) : null]
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
i.displayName = "BackgroundGrid";
|
|
98
|
+
//#endregion
|
|
99
|
+
export { i as BackgroundGrid };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./LoginForm-
|
|
3
|
-
import { t } from "./card-
|
|
2
|
+
import { t as e } from "./LoginForm-CEUbBeE3.js";
|
|
3
|
+
import { t } from "./card-BwNr7kQS.js";
|
|
4
4
|
import { Suspense as n, lazy as r, useState as i } from "react";
|
|
5
5
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
6
|
var s = {
|
|
@@ -8,7 +8,7 @@ var s = {
|
|
|
8
8
|
title: "_title_s7k8g_7",
|
|
9
9
|
subtitle: "_subtitle_s7k8g_14",
|
|
10
10
|
formWrapper: "_formWrapper_s7k8g_20"
|
|
11
|
-
}, c = r(() => import("./PendingApprovalCard-
|
|
11
|
+
}, c = r(() => import("./PendingApprovalCard-BowwZMBu.js")), l = ({ logo: r, siteName: l, page: u }) => {
|
|
12
12
|
let [d, f] = i(!1), [p, m] = i(!1), h = u.access?.find((e) => e.kind === "gating" && e.enabled)?.options;
|
|
13
13
|
return p ? /* @__PURE__ */ a(n, {
|
|
14
14
|
fallback: /* @__PURE__ */ a("div", {}),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { t as e } from "./useLogin-D2VCOHYI.js";
|
|
3
|
+
import { c as t, t as n } from "./authentication-fXmNYss1.js";
|
|
3
4
|
import { useEffect as r, useMemo as i, useRef as a, useState as o } from "react";
|
|
4
5
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
6
|
import { getLevoError as u } from "@levo-so/core";
|
|
@@ -250,11 +251,11 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
|
|
|
250
251
|
children: "×"
|
|
251
252
|
})]
|
|
252
253
|
})
|
|
253
|
-
}), V = ({ onMagicLinkSent:
|
|
254
|
-
let { sendMagicLink: a } =
|
|
254
|
+
}), V = ({ onMagicLinkSent: n, onPendingApproval: i }) => {
|
|
255
|
+
let { sendMagicLink: a } = e(), [s, d] = o(!1), [f, p] = o(null);
|
|
255
256
|
r(() => {
|
|
256
|
-
|
|
257
|
-
}, [s,
|
|
257
|
+
n?.(s);
|
|
258
|
+
}, [s, n]);
|
|
258
259
|
let m = v({
|
|
259
260
|
initialValues: { email: "" },
|
|
260
261
|
validationSchema: M,
|
|
@@ -361,8 +362,8 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
|
|
|
361
362
|
})
|
|
362
363
|
]
|
|
363
364
|
}) : null;
|
|
364
|
-
}, W = ({ onPendingApproval:
|
|
365
|
-
let { sendOTP: r, verifyOTP: i, resendOTP: a } =
|
|
365
|
+
}, W = ({ onPendingApproval: n }) => {
|
|
366
|
+
let { sendOTP: r, verifyOTP: i, resendOTP: a } = e(), [s, d] = o(!1), [f, p] = o(null), [m, h] = o(!1), g = v({
|
|
366
367
|
initialValues: {
|
|
367
368
|
email: "",
|
|
368
369
|
otp: ""
|
|
@@ -370,13 +371,13 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
|
|
|
370
371
|
validationSchema: s ? k : O,
|
|
371
372
|
validateOnChange: !1,
|
|
372
373
|
validateOnBlur: !1,
|
|
373
|
-
onSubmit: async (
|
|
374
|
+
onSubmit: async (e, { setSubmitting: a, setFieldError: o }) => {
|
|
374
375
|
try {
|
|
375
|
-
p(null), s ? await i(
|
|
376
|
-
} catch (
|
|
377
|
-
let r = u(
|
|
376
|
+
p(null), s ? await i(e.email, e.otp) : (await r({ email: e.email }), d(!0));
|
|
377
|
+
} catch (e) {
|
|
378
|
+
let r = u(e);
|
|
378
379
|
if (t(r.code)) {
|
|
379
|
-
|
|
380
|
+
n?.();
|
|
380
381
|
return;
|
|
381
382
|
}
|
|
382
383
|
r.hasFieldErrors ? r.fieldErrors.forEach((e) => {
|
|
@@ -592,8 +593,8 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
|
|
|
592
593
|
children: "Edit"
|
|
593
594
|
})]
|
|
594
595
|
})] });
|
|
595
|
-
}, q = ({ onPendingApproval:
|
|
596
|
-
let { sendOTP: r, verifyOTP: i, resendOTP: a } =
|
|
596
|
+
}, q = ({ onPendingApproval: n }) => {
|
|
597
|
+
let { sendOTP: r, verifyOTP: i, resendOTP: a } = e(), [s, d] = o(!1), [f, p] = o(null), [m, h] = o(!1), g = v({
|
|
597
598
|
initialValues: {
|
|
598
599
|
phone: "",
|
|
599
600
|
otp: ""
|
|
@@ -601,16 +602,16 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
|
|
|
601
602
|
validationSchema: s ? j : A,
|
|
602
603
|
validateOnChange: !1,
|
|
603
604
|
validateOnBlur: !1,
|
|
604
|
-
onSubmit: async (
|
|
605
|
+
onSubmit: async (e, { setSubmitting: a, setFieldError: o }) => {
|
|
605
606
|
try {
|
|
606
|
-
p(null), s ? await i(
|
|
607
|
-
phone:
|
|
607
|
+
p(null), s ? await i(e.phone, e.otp) : (await r({
|
|
608
|
+
phone: e.phone,
|
|
608
609
|
medium: "whatsapp"
|
|
609
610
|
}), d(!0));
|
|
610
|
-
} catch (
|
|
611
|
-
let r = u(
|
|
611
|
+
} catch (e) {
|
|
612
|
+
let r = u(e);
|
|
612
613
|
if (t(r.code)) {
|
|
613
|
-
|
|
614
|
+
n?.();
|
|
614
615
|
return;
|
|
615
616
|
}
|
|
616
617
|
r.hasFieldErrors ? r.fieldErrors.forEach((e) => {
|
|
@@ -738,7 +739,7 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
|
|
|
738
739
|
},
|
|
739
740
|
onError: (e) => {
|
|
740
741
|
let t = u(e);
|
|
741
|
-
a?.error("OAuth login failed", t
|
|
742
|
+
a?.error("OAuth login failed", { exception: t }), r && r(t);
|
|
742
743
|
},
|
|
743
744
|
children: i?.map((e) => /* @__PURE__ */ c(Y, { method: e }, e))
|
|
744
745
|
})
|
|
@@ -760,7 +761,7 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
|
|
|
760
761
|
/* @__PURE__ */ c("div", { className: z.dividerLine })
|
|
761
762
|
]
|
|
762
763
|
})] }), Q = ({ className: r, oAuthTitle: a = "Studio", page: o, magicLinkSent: s, setMagicLinkSent: u, oAuthMethods: d, onPendingApproval: p }) => {
|
|
763
|
-
let { refetchLoginStatus: m } =
|
|
764
|
+
let { refetchLoginStatus: m } = e(), h = i(() => o?.access?.[0]?.kind === "authentication" && o?.access?.[0]?.options?.primary_method || "otp", [o?.access]), g = i(() => d || o?.access?.[0]?.kind === "authentication" && o?.access?.[0]?.options?.methods?.filter((e) => n.includes(e)) || [], [o?.access, d]);
|
|
764
765
|
return /* @__PURE__ */ l("div", {
|
|
765
766
|
className: `${z.container} ${r || ""}`,
|
|
766
767
|
children: [g.length > 0 && !s && /* @__PURE__ */ c(Z, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as e } from "./AuthProvider-56TywIOB.js";
|
|
3
|
-
import { n as t } from "./ModalManager-
|
|
4
|
-
import { a as n, n as r, o as i, r as a, t as o } from "./dialog-
|
|
5
|
-
import { t as s } from "./LoginForm-
|
|
3
|
+
import { n as t } from "./ModalManager-DQXhkmyC.js";
|
|
4
|
+
import { a as n, n as r, o as i, r as a, t as o } from "./dialog-CCWrvmHd.js";
|
|
5
|
+
import { t as s } from "./LoginForm-CEUbBeE3.js";
|
|
6
6
|
import { useEffect as c } from "react";
|
|
7
7
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
var d = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./card-
|
|
3
|
-
import { t } from "./MessageFooter-
|
|
2
|
+
import { t as e } from "./card-BwNr7kQS.js";
|
|
3
|
+
import { t } from "./MessageFooter-CATwNJJU.js";
|
|
4
4
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/accessCard/MessageCard.tsx
|
|
6
6
|
var i = ({ logo: i, siteName: a, options: o, message: s }) => /* @__PURE__ */ r(e, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as e } from "./AuthProvider-56TywIOB.js";
|
|
3
|
-
import {
|
|
3
|
+
import { t } from "./useLogin-D2VCOHYI.js";
|
|
4
4
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
5
|
import i from "libphonenumber-js";
|
|
6
6
|
var a = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Suspense as e, createContext as t, lazy as n, useCallback as r, useContext as i, useState as a } from "react";
|
|
3
3
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
4
|
//#region src/context/ModalManager.tsx
|
|
5
|
-
var c = n(() => import("./LoginModal-
|
|
5
|
+
var c = n(() => import("./LoginModal-AWNLO49X.js")), l = t({
|
|
6
6
|
availableModals: ["login"],
|
|
7
7
|
openModals: { key: null },
|
|
8
8
|
openModal: () => ({}),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as e } from "./dist-
|
|
3
|
-
import { t } from "./card-
|
|
4
|
-
import { t as n } from "./MessageFooter-
|
|
2
|
+
import { r as e } from "./dist-x5VFEnQl.js";
|
|
3
|
+
import { t } from "./card-BwNr7kQS.js";
|
|
4
|
+
import { t as n } from "./MessageFooter-CATwNJJU.js";
|
|
5
5
|
import { useState as r } from "react";
|
|
6
6
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
7
|
var s = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as e } from "./getFieldValidations-DZnDgNI0.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as n } from "./VerifyButton-
|
|
5
|
-
import { t as r } from "./CollectionInput-
|
|
3
|
+
import { t } from "./CollectionField-7uXvhxYK.js";
|
|
4
|
+
import { t as n } from "./VerifyButton-D21AOIX3.js";
|
|
5
|
+
import { t as r } from "./CollectionInput-lHOvWWav.js";
|
|
6
6
|
import { useState as i } from "react";
|
|
7
7
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
8
|
import { c as s } from "react/compiler-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e } from "./getFieldValidations-DZnDgNI0.js";
|
|
2
|
-
import {
|
|
2
|
+
import { d as t } from "./CollectionField-7uXvhxYK.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
import { c as r } from "react/compiler-runtime";
|
|
5
5
|
import i from "clsx";
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { i as e, r as t, t as ee } from "./Toolbar-BHi_B-nE.js";
|
|
3
|
+
import { t as te } from "./getFieldValidations-DZnDgNI0.js";
|
|
4
|
+
import { n as ne, r as re, t as n } from "./inlineRteTheme-Cn_Vqgsm.js";
|
|
5
|
+
import { l as ie, t as r } from "./CollectionField-7uXvhxYK.js";
|
|
6
|
+
import { i as ae } from "./Tooltip-K_gFzjOa.js";
|
|
7
|
+
import { useEffect as i, useState as oe } from "react";
|
|
8
|
+
import { jsx as a, jsxs as se } from "react/jsx-runtime";
|
|
9
|
+
import { c as o } from "react/compiler-runtime";
|
|
10
|
+
import s from "clsx";
|
|
11
|
+
import { useController as c } from "react-hook-form";
|
|
12
|
+
//#region ../../libraries/react-collection/dist/widgets/richTextWidget/RichTextWidget.cssm.js
|
|
13
|
+
var ce = "_1vx76w30", le = "_1vx76w33", ue = "_1vx76w34", de = { style: n({ baseSpacing: ".875rem" }) }, l = (n) => {
|
|
14
|
+
let l = o(58), { field: u } = n, [d, fe] = oe(!1), { key: f, label: p, helper_text: m, readonly: h, placeholder: pe } = u, g = f === void 0 ? "" : f, _ = p === void 0 ? "" : p, v = m === void 0 ? "" : m, y = h === void 0 ? !1 : h, b;
|
|
15
|
+
l[0] === u ? b = l[1] : (b = te(u), l[0] = u, l[1] = b);
|
|
16
|
+
let x;
|
|
17
|
+
l[2] !== g || l[3] !== b ? (x = {
|
|
18
|
+
name: g,
|
|
19
|
+
rules: b
|
|
20
|
+
}, l[2] = g, l[3] = b, l[4] = x) : x = l[4];
|
|
21
|
+
let { field: me, fieldState: he } = c(x), { value: S, onBlur: C, onChange: w, disabled: T } = me, E = pe || "Write something ...", D;
|
|
22
|
+
l[5] === E ? D = l[6] : (D = t({ placeholder: E }), l[5] = E, l[6] = D);
|
|
23
|
+
let O = S || "", k = !T && !y, A;
|
|
24
|
+
l[7] === Symbol.for("react.memo_cache_sentinel") ? (A = { attributes: {
|
|
25
|
+
autocomplete: "off",
|
|
26
|
+
autocorrect: "off",
|
|
27
|
+
autocapitalize: "off",
|
|
28
|
+
class: re
|
|
29
|
+
} }, l[7] = A) : A = l[7];
|
|
30
|
+
let j;
|
|
31
|
+
l[8] === w ? j = l[9] : (j = (e) => {
|
|
32
|
+
let { editor: t } = e;
|
|
33
|
+
return w(t.getHTML());
|
|
34
|
+
}, l[8] = w, l[9] = j);
|
|
35
|
+
let M;
|
|
36
|
+
l[10] !== O || l[11] !== k || l[12] !== j || l[13] !== D ? (M = {
|
|
37
|
+
extensions: D,
|
|
38
|
+
content: O,
|
|
39
|
+
editable: k,
|
|
40
|
+
editorProps: A,
|
|
41
|
+
onUpdate: j,
|
|
42
|
+
immediatelyRender: !1
|
|
43
|
+
}, l[10] = O, l[11] = k, l[12] = j, l[13] = D, l[14] = M) : M = l[14];
|
|
44
|
+
let N = (0, e.useEditor)(M), P;
|
|
45
|
+
l[15] !== N || l[16] !== d || l[17] !== S ? (P = () => {
|
|
46
|
+
N?.commands && !d && (N.commands.setContent(S || ""), fe(!0));
|
|
47
|
+
}, l[15] = N, l[16] = d, l[17] = S, l[18] = P) : P = l[18];
|
|
48
|
+
let F;
|
|
49
|
+
l[19] === S ? F = l[20] : (F = [S], l[19] = S, l[20] = F), i(P, F);
|
|
50
|
+
let I, L;
|
|
51
|
+
l[21] !== T || l[22] !== N || l[23] !== y ? (I = () => {
|
|
52
|
+
N && N.setEditable(!T && !y);
|
|
53
|
+
}, L = [
|
|
54
|
+
N,
|
|
55
|
+
T,
|
|
56
|
+
y
|
|
57
|
+
], l[21] = T, l[22] = N, l[23] = y, l[24] = I, l[25] = L) : (I = l[24], L = l[25]), i(I, L);
|
|
58
|
+
let R, z;
|
|
59
|
+
l[26] !== N || l[27] !== C ? (R = () => {
|
|
60
|
+
if (N) return N.on("blur", C), () => {
|
|
61
|
+
N.off("blur", C);
|
|
62
|
+
};
|
|
63
|
+
}, z = [N, C], l[26] = N, l[27] = C, l[28] = R, l[29] = z) : (R = l[28], z = l[29]), i(R, z);
|
|
64
|
+
let B = he?.error?.message, V = !!u?.required, H = T && "_1vx76w31", U = y && "_1vx76w32", W;
|
|
65
|
+
l[30] !== H || l[31] !== U ? (W = s(ce, H, U), l[30] = H, l[31] = U, l[32] = W) : W = l[32];
|
|
66
|
+
let G;
|
|
67
|
+
l[33] === N ? G = l[34] : (G = { editor: N }, l[33] = N, l[34] = G);
|
|
68
|
+
let K, q;
|
|
69
|
+
l[35] === Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ a(ee, {}), q = /* @__PURE__ */ a(ie, { orientation: "horizontal" }), l[35] = K, l[36] = q) : (K = l[35], q = l[36]);
|
|
70
|
+
let J;
|
|
71
|
+
l[37] === N?.commands ? J = l[38] : (J = () => N?.commands.focus(), l[37] = N?.commands, l[38] = J);
|
|
72
|
+
let Y;
|
|
73
|
+
l[39] === N ? Y = l[40] : (Y = /* @__PURE__ */ a(e.EditorContent, { editor: N }), l[39] = N, l[40] = Y);
|
|
74
|
+
let X;
|
|
75
|
+
l[41] !== J || l[42] !== Y ? (X = /* @__PURE__ */ se("div", {
|
|
76
|
+
className: le,
|
|
77
|
+
children: [
|
|
78
|
+
K,
|
|
79
|
+
q,
|
|
80
|
+
/* @__PURE__ */ a("div", {
|
|
81
|
+
className: ue,
|
|
82
|
+
onClick: J,
|
|
83
|
+
children: Y
|
|
84
|
+
})
|
|
85
|
+
]
|
|
86
|
+
}), l[41] = J, l[42] = Y, l[43] = X) : X = l[43];
|
|
87
|
+
let Z;
|
|
88
|
+
l[44] !== G || l[45] !== X ? (Z = /* @__PURE__ */ a(ne, {
|
|
89
|
+
theme: de,
|
|
90
|
+
children: /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(e.EditorContext.Provider, {
|
|
91
|
+
value: G,
|
|
92
|
+
children: X
|
|
93
|
+
}) })
|
|
94
|
+
}), l[44] = G, l[45] = X, l[46] = Z) : Z = l[46];
|
|
95
|
+
let Q;
|
|
96
|
+
l[47] !== W || l[48] !== Z ? (Q = /* @__PURE__ */ a("div", {
|
|
97
|
+
className: W,
|
|
98
|
+
children: Z
|
|
99
|
+
}), l[47] = W, l[48] = Z, l[49] = Q) : Q = l[49];
|
|
100
|
+
let $;
|
|
101
|
+
return l[50] !== v || l[51] !== g || l[52] !== _ || l[53] !== y || l[54] !== B || l[55] !== V || l[56] !== Q ? ($ = /* @__PURE__ */ a(r, {
|
|
102
|
+
error: B,
|
|
103
|
+
helperText: v,
|
|
104
|
+
readOnly: y,
|
|
105
|
+
label: _,
|
|
106
|
+
htmlFor: g,
|
|
107
|
+
isRequired: V,
|
|
108
|
+
children: Q
|
|
109
|
+
}), l[50] = v, l[51] = g, l[52] = _, l[53] = y, l[54] = B, l[55] = V, l[56] = Q, l[57] = $) : $ = l[57], $;
|
|
110
|
+
};
|
|
111
|
+
//#endregion
|
|
112
|
+
export { l as RichTextWidget, l as default };
|