@levo-so/studio 0.1.56 → 0.1.57

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.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as C, jsxs as a } from "react/jsx-runtime";
3
3
  import r from "react";
4
- import { m as c } from "./index-ChtnTSnt.js";
4
+ import { m as c } from "./index-ChfbB6-A.js";
5
5
  const h = r.memo(
6
6
  ({
7
7
  className: o,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as l, jsxs as w } from "react/jsx-runtime";
3
3
  import h from "react";
4
- import { m as x } from "./index-ChtnTSnt.js";
4
+ import { m as x } from "./index-ChfbB6-A.js";
5
5
  const g = h.memo(
6
6
  ({
7
7
  className: i,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import o from "react";
4
- import { m as r } from "./index-ChtnTSnt.js";
4
+ import { m as r } from "./index-ChfbB6-A.js";
5
5
  const s = o.memo(
6
6
  ({
7
7
  className: e,
@@ -1,31 +1,31 @@
1
1
  "use client";
2
2
  import { jsx as o, jsxs as g } from "react/jsx-runtime";
3
- import r from "react";
4
- import { m as d } from "./index-ChtnTSnt.js";
5
- const p = r.memo(
3
+ import n from "react";
4
+ import { m as w } from "./index-ChfbB6-A.js";
5
+ const x = n.memo(
6
6
  ({
7
7
  className: e,
8
8
  lineColor: t = "#333333",
9
- lineWidth: n = 1,
9
+ lineWidth: r = 1,
10
10
  spacing: i = 50,
11
11
  // Interactive mode props
12
12
  isInteractive: u = !1,
13
- hoverColor: s = "#93c5fd",
14
- rows: a = 150,
15
- cols: h = 100
13
+ hoverColor: d = "#93c5fd",
14
+ rows: s = 150,
15
+ cols: a = 100
16
16
  }) => {
17
- const y = r.useMemo(() => new Array(a).fill(1), [a]), f = r.useMemo(() => new Array(h).fill(1), [h]), l = r.useMemo(
17
+ const y = n.useMemo(() => new Array(s).fill(1), [s]), f = n.useMemo(() => new Array(a).fill(1), [a]), l = n.useMemo(
18
18
  () => ({
19
19
  rowStyle: {
20
20
  height: `${i}px`,
21
21
  width: `${i * 2}px`,
22
- borderLeft: `${n}px solid ${t}`
22
+ borderLeft: `${r}px solid ${t}`
23
23
  },
24
24
  colStyle: {
25
25
  height: `${i}px`,
26
26
  width: `${i * 2}px`,
27
- borderTop: `${n}px solid ${t}`,
28
- borderRight: `${n}px solid ${t}`
27
+ borderTop: `${r}px solid ${t}`,
28
+ borderRight: `${r}px solid ${t}`
29
29
  },
30
30
  iconStyle: {
31
31
  top: `${-i / 3.8}px`,
@@ -33,18 +33,18 @@ const p = r.memo(
33
33
  color: t
34
34
  }
35
35
  }),
36
- [i, n, t]
37
- ), c = r.useMemo(
36
+ [i, r, t]
37
+ ), h = n.useMemo(
38
38
  () => ({
39
39
  hover: {
40
- backgroundColor: s,
40
+ backgroundColor: d,
41
41
  transition: { duration: 0 }
42
42
  },
43
43
  animate: {
44
44
  transition: { duration: 2 }
45
45
  }
46
46
  }),
47
- [s]
47
+ [d]
48
48
  );
49
49
  return u ? /* @__PURE__ */ o(
50
50
  "div",
@@ -75,17 +75,17 @@ const p = r.memo(
75
75
  width: "100%",
76
76
  padding: "1rem"
77
77
  },
78
- children: y.map((x, m) => /* @__PURE__ */ o(
79
- d.div,
78
+ children: y.map(($, c) => /* @__PURE__ */ o(
79
+ w.div,
80
80
  {
81
81
  style: { ...l.rowStyle, position: "relative" },
82
- children: f.map(($, w) => /* @__PURE__ */ o(
83
- d.div,
82
+ children: f.map((v, m) => /* @__PURE__ */ o(
83
+ w.div,
84
84
  {
85
- whileHover: c.hover,
86
- animate: c.animate,
85
+ whileHover: h.hover,
86
+ animate: h.animate,
87
87
  style: { ...l.colStyle, position: "relative" },
88
- children: w % 2 === 0 && m % 2 === 0 ? /* @__PURE__ */ o(
88
+ children: m % 2 === 0 && c % 2 === 0 ? /* @__PURE__ */ o(
89
89
  "svg",
90
90
  {
91
91
  xmlns: "http://www.w3.org/2000/svg",
@@ -112,10 +112,10 @@ const p = r.memo(
112
112
  }
113
113
  ) : null
114
114
  },
115
- `col-${w}`
115
+ `col-${m}`
116
116
  ))
117
117
  },
118
- `row-${m}`
118
+ `row-${c}`
119
119
  ))
120
120
  }
121
121
  )
@@ -158,19 +158,12 @@ const p = r.memo(
158
158
  height: i,
159
159
  patternUnits: "userSpaceOnUse",
160
160
  children: /* @__PURE__ */ o(
161
- d.path,
161
+ "path",
162
162
  {
163
163
  d: `M ${i} 0 L 0 0 0 ${i}`,
164
164
  fill: "none",
165
165
  stroke: t,
166
- strokeWidth: n,
167
- initial: { opacity: 0.2 },
168
- animate: { opacity: [0.2, 0.5, 0.2] },
169
- transition: {
170
- duration: 3,
171
- repeat: 1 / 0,
172
- ease: "easeInOut"
173
- }
166
+ strokeWidth: r
174
167
  }
175
168
  )
176
169
  }
@@ -185,7 +178,7 @@ const p = r.memo(
185
178
  // Custom comparison function for better memoization
186
179
  (e, t) => e.className === t.className && e.lineColor === t.lineColor && e.lineWidth === t.lineWidth && e.spacing === t.spacing && e.isInteractive === t.isInteractive && e.hoverColor === t.hoverColor && e.rows === t.rows && e.cols === t.cols
187
180
  );
188
- p.displayName = "BackgroundGrid";
181
+ x.displayName = "BackgroundGrid";
189
182
  export {
190
- p as BackgroundGrid
183
+ x as BackgroundGrid
191
184
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as e, jsxs as a } from "react/jsx-runtime";
3
3
  import u from "react";
4
- import { m as d } from "./index-ChtnTSnt.js";
4
+ import { m as d } from "./index-ChfbB6-A.js";
5
5
  const g = u.memo(
6
6
  ({
7
7
  className: p,
@@ -1,6 +1,8 @@
1
+ import { ILevoFormContext } from '@levo-so/react-collection';
1
2
  import { BaseElementProps } from '../components/withBlockProps';
2
3
  export declare const Form: import('../components/withBlockProps').WithBlockPropsComponent<BaseElementProps & {
3
4
  className?: string;
5
+ theme?: ILevoFormContext["theme"];
4
6
  }>;
5
7
  export default Form;
6
8
  //# sourceMappingURL=Form.d.ts.map
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
3
3
  import { A as o } from "./index-DHHPZcEh.js";
4
- import { M as r } from "./index-CncAiMll.js";
4
+ import { M as r } from "./index-DurprJto.js";
5
5
  const c = "_header_1vjty_1", l = "_iconContainer_1vjty_6", d = "_icon_1vjty_6", m = "_title_1vjty_18", _ = "_subtitle_1vjty_26", h = "_messageContainer_1vjty_33", v = "_message_1vjty_33", s = {
6
6
  header: c,
7
7
  iconContainer: l,
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsxs as r, jsx as t } from "react/jsx-runtime";
3
- import { L as i } from "./index-ChtnTSnt.js";
3
+ import { L as i } from "./index-ChfbB6-A.js";
4
4
  import { A as n } from "./index-DHHPZcEh.js";
5
5
  const a = "_header_s7k8g_1", c = "_title_s7k8g_7", l = "_subtitle_s7k8g_14", d = "_formWrapper_s7k8g_20", e = {
6
6
  header: a,
@@ -2,8 +2,8 @@
2
2
  import { jsxs as a, jsx as r } from "react/jsx-runtime";
3
3
  import { CollectionFormBuilder as c } from "@levo-so/react-collection";
4
4
  import { A as n } from "./index-DHHPZcEh.js";
5
- import { M as o } from "./index-CncAiMll.js";
6
- import { u as h } from "./index-ChtnTSnt.js";
5
+ import { M as o } from "./index-DurprJto.js";
6
+ import { u as h } from "./index-ChfbB6-A.js";
7
7
  const u = "_header_emo7t_1", f = "_title_emo7t_8", _ = "_subtitle_emo7t_15", C = "_formContainer_emo7t_21", i = {
8
8
  header: u,
9
9
  title: f,
@@ -200,7 +200,7 @@ function so(e, t) {
200
200
  };
201
201
  return { schedule: Jt.reduce((v, w) => {
202
202
  const S = i[w];
203
- return v[w] = (C, N = !1, E = !1) => (n || x(), S.schedule(C, N, E)), v;
203
+ return v[w] = (C, k = !1, E = !1) => (n || x(), S.schedule(C, k, E)), v;
204
204
  }, {}), cancel: (v) => {
205
205
  for (let w = 0; w < Jt.length; w++)
206
206
  i[Jt[w]].cancel(v);
@@ -564,16 +564,16 @@ function un(e = G.visualDuration, t = G.bounce) {
564
564
  if (g < 1) {
565
565
  const S = Xn(y, g);
566
566
  v = (C) => {
567
- const N = Math.exp(-g * y * C);
568
- return i - N * ((m + g * y * x) / S * Math.sin(S * C) + x * Math.cos(S * C));
567
+ const k = Math.exp(-g * y * C);
568
+ return i - k * ((m + g * y * x) / S * Math.sin(S * C) + x * Math.cos(S * C));
569
569
  };
570
570
  } else if (g === 1)
571
571
  v = (S) => i - Math.exp(-y * S) * (x + (m + y * x) * S);
572
572
  else {
573
573
  const S = y * Math.sqrt(g * g - 1);
574
574
  v = (C) => {
575
- const N = Math.exp(-g * y * C), E = Math.min(S * C, 300);
576
- return i - N * ((m + g * y * x) * Math.sinh(E) + S * x * Math.cosh(E)) / S;
575
+ const k = Math.exp(-g * y * C), E = Math.min(S * C, 300);
576
+ return i - k * ((m + g * y * x) * Math.sinh(E) + S * x * Math.cosh(E)) / S;
577
577
  };
578
578
  }
579
579
  const w = {
@@ -583,15 +583,15 @@ function un(e = G.visualDuration, t = G.bounce) {
583
583
  if (f)
584
584
  a.done = S >= d;
585
585
  else {
586
- let N = S === 0 ? m : 0;
587
- g < 1 && (N = S === 0 ? /* @__PURE__ */ be(m) : po(v, S, C));
588
- const E = Math.abs(N) <= s, k = Math.abs(i - C) <= r;
589
- a.done = E && k;
586
+ let k = S === 0 ? m : 0;
587
+ g < 1 && (k = S === 0 ? /* @__PURE__ */ be(m) : po(v, S, C));
588
+ const E = Math.abs(k) <= s, V = Math.abs(i - C) <= r;
589
+ a.done = E && V;
590
590
  }
591
591
  return a.value = a.done ? i : C, a;
592
592
  },
593
593
  toString: () => {
594
- const S = Math.min(Vs(w), cn), C = fo((N) => w.next(S * N).value, S, 30);
594
+ const S = Math.min(Vs(w), cn), C = fo((k) => w.next(S * k).value, S, 30);
595
595
  return S + "ms " + C;
596
596
  },
597
597
  toTransition: () => {
@@ -612,11 +612,11 @@ function Yn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
612
612
  const x = d + g, y = i === void 0 ? x : i(x);
613
613
  y !== x && (g = y - d);
614
614
  const b = (E) => -g * Math.exp(-E / s), v = (E) => y + b(E), w = (E) => {
615
- const k = b(E), j = v(E);
616
- h.done = Math.abs(k) <= c, h.value = h.done ? y : j;
615
+ const V = b(E), R = v(E);
616
+ h.done = Math.abs(V) <= c, h.value = h.done ? y : R;
617
617
  };
618
618
  let S, C;
619
- const N = (E) => {
619
+ const k = (E) => {
620
620
  f(h.value) && (S = E, C = un({
621
621
  keyframes: [h.value, m(h.value)],
622
622
  velocity: po(v, E, h.value),
@@ -627,11 +627,11 @@ function Yn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
627
627
  restSpeed: u
628
628
  }));
629
629
  };
630
- return N(0), {
630
+ return k(0), {
631
631
  calculatedDuration: null,
632
632
  next: (E) => {
633
- let k = !1;
634
- return !C && S === void 0 && (k = !0, w(E), N(E)), S !== void 0 && E >= S ? C.next(E - S) : (!k && w(E), h);
633
+ let V = !1;
634
+ return !C && S === void 0 && (V = !0, w(E), k(E)), S !== void 0 && E >= S ? C.next(E - S) : (!V && w(E), h);
635
635
  }
636
636
  };
637
637
  }
@@ -780,15 +780,15 @@ class Rs extends Os {
780
780
  let v = this.currentTime, w = s;
781
781
  if (d) {
782
782
  const E = Math.min(this.currentTime, r) / a;
783
- let k = Math.floor(E), j = E % 1;
784
- !j && E >= 1 && (j = 1), j === 1 && k--, k = Math.min(k, d + 1), !!(k % 2) && (h === "reverse" ? (j = 1 - j, f && (j -= f / a)) : h === "mirror" && (w = i)), v = ke(0, 1, j) * a;
783
+ let V = Math.floor(E), R = E % 1;
784
+ !R && E >= 1 && (R = 1), R === 1 && V--, V = Math.min(V, d + 1), !!(V % 2) && (h === "reverse" ? (R = 1 - R, f && (R -= f / a)) : h === "mirror" && (w = i)), v = ke(0, 1, R) * a;
785
785
  }
786
786
  const S = b ? { done: !1, value: u[0] } : w.next(v);
787
787
  o && (S.value = o(S.value));
788
788
  let { done: C } = S;
789
789
  !b && l !== null && (C = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
790
- const N = this.holdTime === null && (this.state === "finished" || this.state === "running" && C);
791
- return N && m !== Yn && (S.value = Is(u, this.options, x, this.speed)), g && g(S.value), N && this.finish(), S;
790
+ const k = this.holdTime === null && (this.state === "finished" || this.state === "running" && C);
791
+ return k && m !== Yn && (S.value = Is(u, this.options, x, this.speed)), g && g(S.value), k && this.finish(), S;
792
792
  }
793
793
  /**
794
794
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -3088,42 +3088,42 @@ function Wd(e) {
3088
3088
  !v && !b.prevProp || // Or if the prop doesn't define an animation
3089
3089
  xn(v) || typeof v == "boolean")
3090
3090
  continue;
3091
- const N = zd(b.prevProp, v);
3092
- let E = N || // If we're making this variant active, we want to always make it active
3091
+ const k = zd(b.prevProp, v);
3092
+ let E = k || // If we're making this variant active, we want to always make it active
3093
3093
  y === l && b.isActive && !C && w || // If we removed a higher-priority variant (i is in reverse order)
3094
- x > m && w, k = !1;
3095
- const j = Array.isArray(v) ? v : [v];
3096
- let re = j.reduce(r(y), {});
3094
+ x > m && w, V = !1;
3095
+ const R = Array.isArray(v) ? v : [v];
3096
+ let re = R.reduce(r(y), {});
3097
3097
  S === !1 && (re = {});
3098
- const { prevResolvedValues: V = {} } = b, A = {
3099
- ...V,
3098
+ const { prevResolvedValues: N = {} } = b, A = {
3099
+ ...N,
3100
3100
  ...re
3101
- }, _ = (R) => {
3102
- E = !0, h.has(R) && (k = !0, h.delete(R)), b.needsAnimating[R] = !0;
3103
- const $ = e.getValue(R);
3104
- $ && ($.liveStyle = !1);
3101
+ }, _ = (B) => {
3102
+ E = !0, h.has(B) && (V = !0, h.delete(B)), b.needsAnimating[B] = !0;
3103
+ const F = e.getValue(B);
3104
+ F && (F.liveStyle = !1);
3105
3105
  };
3106
- for (const R in A) {
3107
- const $ = re[R], P = V[R];
3108
- if (f.hasOwnProperty(R))
3106
+ for (const B in A) {
3107
+ const F = re[B], P = N[B];
3108
+ if (f.hasOwnProperty(B))
3109
3109
  continue;
3110
- let B = !1;
3111
- ls($) && ls(P) ? B = !ia($, P) : B = $ !== P, B ? $ != null ? _(R) : h.add(R) : $ !== void 0 && h.has(R) ? _(R) : b.protectedKeys[R] = !0;
3110
+ let D = !1;
3111
+ ls(F) && ls(P) ? D = !ia(F, P) : D = F !== P, D ? F != null ? _(B) : h.add(B) : F !== void 0 && h.has(B) ? _(B) : b.protectedKeys[B] = !0;
3112
3112
  }
3113
3113
  b.prevProp = v, b.prevResolvedValues = re, b.isActive && (f = { ...f, ...re }), s && e.blockInitialAnimation && (E = !1);
3114
- const M = C && N;
3115
- E && (!M || k) && d.push(...j.map((R) => {
3116
- const $ = { type: y };
3117
- if (typeof R == "string" && s && !M && e.manuallyAnimateOnMount && e.parent) {
3118
- const { parent: P } = e, B = ut(P, R);
3119
- if (P.enteringChildren && B) {
3120
- const { delayChildren: W } = B.transition || {};
3121
- $.delay = ra(P.enteringChildren, e, W);
3114
+ const M = C && k;
3115
+ E && (!M || V) && d.push(...R.map((B) => {
3116
+ const F = { type: y };
3117
+ if (typeof B == "string" && s && !M && e.manuallyAnimateOnMount && e.parent) {
3118
+ const { parent: P } = e, D = ut(P, B);
3119
+ if (P.enteringChildren && D) {
3120
+ const { delayChildren: W } = D.transition || {};
3121
+ F.delay = ra(P.enteringChildren, e, W);
3122
3122
  }
3123
3123
  }
3124
3124
  return {
3125
- animation: R,
3126
- options: $
3125
+ animation: B,
3126
+ options: F
3127
3127
  };
3128
3128
  }));
3129
3129
  }
@@ -5187,21 +5187,21 @@ const jf = "_button_1je4h_2", Wf = "_content_1je4h_70", zf = "_icon_1je4h_77", U
5187
5187
  )
5188
5188
  ] }) : null;
5189
5189
  }, Ea = () => {
5190
- const { membership: e, logger: t, audience: n } = mt(), { isLoggedIn: s, isVerifying: r, isAuthLoading: o, setAuthState: i } = xt(), [a, l] = I(!1), [c, u] = I(!1), [d, h] = I(!1), [f, m] = I(!1), [g, x] = I(""), [y, b] = I(""), [v, w] = I(null), S = (V, A) => {
5190
+ const { membership: e, logger: t, audience: n } = mt(), { isLoggedIn: s, isVerifying: r, isAuthLoading: o, setAuthState: i } = xt(), [a, l] = I(!1), [c, u] = I(!1), [d, h] = I(!1), [f, m] = I(!1), [g, x] = I(""), [y, b] = I(""), [v, w] = I(null), S = (N, A) => {
5191
5191
  !g || !g.includes("@") || (l(!0), w(null), e == null || e.requestOtp({
5192
5192
  content: g
5193
5193
  }).then(() => {
5194
- h(!0), l(!1), V && V();
5194
+ h(!0), l(!1), N && N();
5195
5195
  }).catch((_) => {
5196
5196
  const M = Ut(_);
5197
5197
  w(M), t == null || t.error("Failed to send OTP", M.message), l(!1), A && A(M);
5198
5198
  }));
5199
- }, C = (V) => {
5199
+ }, C = (N) => {
5200
5200
  !y || y.length !== 4 || (i({ isAuthLoading: !0, isVerifying: !0 }), w(null), e == null || e.signInWithOtp({
5201
5201
  content: g,
5202
5202
  code: y
5203
5203
  }).then((A) => {
5204
- V != null && V.onLoginSuccess && (V == null || V.onLoginSuccess(A)), i({
5204
+ N != null && N.onLoginSuccess && (N == null || N.onLoginSuccess(A)), i({
5205
5205
  account: A,
5206
5206
  isAuthLoading: !1,
5207
5207
  isVerifying: !1,
@@ -5213,24 +5213,24 @@ const jf = "_button_1je4h_2", Wf = "_content_1je4h_70", zf = "_icon_1je4h_77", U
5213
5213
  isAuthLoading: !1,
5214
5214
  isVerifying: !1,
5215
5215
  isLoggedIn: !1
5216
- }), V != null && V.onLoginError && (V == null || V.onLoginError(A));
5216
+ }), N != null && N.onLoginError && (N == null || N.onLoginError(A));
5217
5217
  }));
5218
- }, N = (V, A) => {
5218
+ }, k = (N, A) => {
5219
5219
  !g || !g.includes("@") || (u(!0), m(!1), w(null), e == null || e.requestOtp({
5220
5220
  content: g
5221
5221
  }).then(() => {
5222
- m(!0), u(!1), V && V();
5222
+ m(!0), u(!1), N && N();
5223
5223
  }).catch((_) => {
5224
5224
  w(_), t == null || t.error("Failed to resend OTP", _.message), u(!1), A && A(_);
5225
5225
  }));
5226
- }, E = a || r, k = (V) => {
5226
+ }, E = a || r, V = (N) => {
5227
5227
  var A, _;
5228
5228
  i({ isAuthLoading: !0 }), (_ = (A = e == null ? void 0 : e.getMe()) == null ? void 0 : A.then((M) => {
5229
5229
  M ? (i({
5230
5230
  account: M,
5231
5231
  isAuthLoading: !1,
5232
5232
  isLoggedIn: !0
5233
- }), V == null || V(M)) : i({
5233
+ }), N == null || N(M)) : i({
5234
5234
  account: null,
5235
5235
  isAuthLoading: !1,
5236
5236
  isLoggedIn: !1
@@ -5246,7 +5246,7 @@ const jf = "_button_1je4h_2", Wf = "_content_1je4h_70", zf = "_icon_1je4h_77", U
5246
5246
  return {
5247
5247
  isLoading: E,
5248
5248
  isSendingOtp: a,
5249
- resendOTP: N,
5249
+ resendOTP: k,
5250
5250
  isVerifying: r,
5251
5251
  isResendingOtp: c,
5252
5252
  otpSent: d,
@@ -5260,16 +5260,16 @@ const jf = "_button_1je4h_2", Wf = "_content_1je4h_70", zf = "_icon_1je4h_77", U
5260
5260
  isLoggedIn: s,
5261
5261
  sendOTP: S,
5262
5262
  verifyOTP: C,
5263
- handleReset: (V = !1) => {
5264
- l(!1), u(!1), h(!1), m(!1), b(""), V || x("");
5263
+ handleReset: (N = !1) => {
5264
+ l(!1), u(!1), h(!1), m(!1), b(""), N || x("");
5265
5265
  },
5266
- refetchLoginStatus: k,
5267
- signOut: (V, A) => {
5266
+ refetchLoginStatus: V,
5267
+ signOut: (N, A) => {
5268
5268
  var _, M;
5269
5269
  i({ isSignOutLoading: !0 }), w(null), (M = (_ = e == null ? void 0 : e.signOut()) == null ? void 0 : _.then(() => {
5270
- V && V(), k(), i({ isSignOutLoading: !1 }), n == null || n.identify();
5271
- })) == null || M.catch((F) => {
5272
- w(F), t == null || t.error("Sign out failed", F.message), i({ isSignOutLoading: !1 }), A && A(F);
5270
+ N && N(), V(), i({ isSignOutLoading: !1 }), n == null || n.identify();
5271
+ })) == null || M.catch((j) => {
5272
+ w(j), t == null || t.error("Sign out failed", j.message), i({ isSignOutLoading: !1 }), A && A(j);
5273
5273
  });
5274
5274
  },
5275
5275
  lastError: v,
@@ -6082,8 +6082,8 @@ function nm(e) {
6082
6082
  axisVelocity: i.axisVelocity,
6083
6083
  axisMovement: i.axisMovement,
6084
6084
  get axisMovementProjection() {
6085
- return $n(M.axisMovement, M.axisVelocity.map(function(F) {
6086
- return Fp(F);
6085
+ return $n(M.axisMovement, M.axisVelocity.map(function(j) {
6086
+ return Fp(j);
6087
6087
  }));
6088
6088
  }
6089
6089
  }, _);
@@ -6091,31 +6091,31 @@ function nm(e) {
6091
6091
  previous: c
6092
6092
  })), c = M;
6093
6093
  }, f = function(_, M) {
6094
- var F = o, R = F.preventWheelAction, $ = M[0], P = M[1], B = M[2];
6095
- if (typeof R == "boolean") return R;
6096
- switch (R) {
6094
+ var j = o, B = j.preventWheelAction, F = M[0], P = M[1], D = M[2];
6095
+ if (typeof B == "boolean") return B;
6096
+ switch (B) {
6097
6097
  case "x":
6098
- return Math.abs($) >= _;
6098
+ return Math.abs(F) >= _;
6099
6099
  case "y":
6100
6100
  return Math.abs(P) >= _;
6101
6101
  case "z":
6102
- return Math.abs(B) >= _;
6102
+ return Math.abs(D) >= _;
6103
6103
  default:
6104
- return jn && console.warn("unsupported preventWheelAction value: " + R, "warn"), !1;
6104
+ return jn && console.warn("unsupported preventWheelAction value: " + B, "warn"), !1;
6105
6105
  }
6106
6106
  }, m = function(_) {
6107
- var M = Zp(qp(Xp(_), o.reverseSign)), F = M.axisDelta, R = M.timeStamp, $ = Ti(F);
6108
- if (_.preventDefault && f($, F) && _.preventDefault(), i.isStarted ? i.isMomentum && $ > Math.max(2, i.lastAbsDelta * 2) && (E(!0), C()) : C(), $ === 0 && Object.is && Object.is(_.deltaX, -0)) {
6107
+ var M = Zp(qp(Xp(_), o.reverseSign)), j = M.axisDelta, B = M.timeStamp, F = Ti(j);
6108
+ if (_.preventDefault && f(F, j) && _.preventDefault(), i.isStarted ? i.isMomentum && F > Math.max(2, i.lastAbsDelta * 2) && (E(!0), C()) : C(), F === 0 && Object.is && Object.is(_.deltaX, -0)) {
6109
6109
  l = !0;
6110
6110
  return;
6111
6111
  }
6112
- a = _, i.axisMovement = $n(i.axisMovement, F), i.lastAbsDelta = $, i.scrollPointsToMerge.push({
6113
- axisDelta: F,
6114
- timeStamp: R
6112
+ a = _, i.axisMovement = $n(i.axisMovement, j), i.lastAbsDelta = F, i.scrollPointsToMerge.push({
6113
+ axisDelta: j,
6114
+ timeStamp: B
6115
6115
  }), g(), h({
6116
- axisDelta: F,
6116
+ axisDelta: j,
6117
6117
  isStart: !i.isStartPublished
6118
- }), i.isStartPublished = !0, N();
6118
+ }), i.isStartPublished = !0, k();
6119
6119
  }, g = function() {
6120
6120
  i.scrollPointsToMerge.length === em ? (i.scrollPoints.unshift({
6121
6121
  axisDeltaSum: i.scrollPointsToMerge.map(function(_) {
@@ -6130,19 +6130,19 @@ function nm(e) {
6130
6130
  return _ / i.willEndTimeout;
6131
6131
  });
6132
6132
  }, y = function() {
6133
- var _ = i.scrollPoints, M = _[0], F = _[1];
6134
- if (!(!F || !M)) {
6135
- var R = M.timeStamp - F.timeStamp;
6136
- if (R <= 0) {
6133
+ var _ = i.scrollPoints, M = _[0], j = _[1];
6134
+ if (!(!j || !M)) {
6135
+ var B = M.timeStamp - j.timeStamp;
6136
+ if (B <= 0) {
6137
6137
  jn && console.warn("invalid deltaTime");
6138
6138
  return;
6139
6139
  }
6140
- var $ = M.axisDeltaSum.map(function(B) {
6141
- return B / R;
6142
- }), P = $.map(function(B, W) {
6143
- return B / (i.axisVelocity[W] || 1);
6140
+ var F = M.axisDeltaSum.map(function(D) {
6141
+ return D / B;
6142
+ }), P = F.map(function(D, W) {
6143
+ return D / (i.axisVelocity[W] || 1);
6144
6144
  });
6145
- i.axisVelocity = $, i.accelerationFactors.push(P), b(R);
6145
+ i.axisVelocity = F, i.accelerationFactors.push(P), b(B);
6146
6146
  }
6147
6147
  }, b = function(_) {
6148
6148
  var M = Math.ceil(_ / 10) * 10 * 1.2;
@@ -6155,11 +6155,11 @@ function nm(e) {
6155
6155
  S();
6156
6156
  return;
6157
6157
  }
6158
- var _ = i.accelerationFactors.slice(Ei * -1), M = _.every(function(F) {
6159
- var R = !!F.reduce(function(P, B) {
6160
- return P && P < 1 && P === B ? 1 : 0;
6161
- }), $ = F.filter(v).length === F.length;
6162
- return R || $;
6158
+ var _ = i.accelerationFactors.slice(Ei * -1), M = _.every(function(j) {
6159
+ var B = !!j.reduce(function(P, D) {
6160
+ return P && P < 1 && P === D ? 1 : 0;
6161
+ }), F = j.filter(v).length === j.length;
6162
+ return B || F;
6163
6163
  });
6164
6164
  M && S(), i.accelerationFactors = _;
6165
6165
  }
@@ -6167,7 +6167,7 @@ function nm(e) {
6167
6167
  i.isMomentum = !0;
6168
6168
  }, C = function() {
6169
6169
  i = Ai(), i.isStarted = !0, i.startTime = Date.now(), c = void 0, l = !1;
6170
- }, N = /* @__PURE__ */ function() {
6170
+ }, k = /* @__PURE__ */ function() {
6171
6171
  var A;
6172
6172
  return function() {
6173
6173
  clearTimeout(A), A = setTimeout(E, i.willEndTimeout);
@@ -6179,13 +6179,13 @@ function nm(e) {
6179
6179
  }) : h({
6180
6180
  isEnding: !0
6181
6181
  }), i.isMomentum = !1, i.isStarted = !1);
6182
- }, k = Hp(u), j = k.observe, re = k.unobserve, V = k.disconnect;
6182
+ }, V = Hp(u), R = V.observe, re = V.unobserve, N = V.disconnect;
6183
6183
  return d(e), pt({
6184
6184
  on: n,
6185
6185
  off: s,
6186
- observe: j,
6186
+ observe: R,
6187
6187
  unobserve: re,
6188
- disconnect: V,
6188
+ disconnect: N,
6189
6189
  feedWheel: u,
6190
6190
  updateOptions: d
6191
6191
  });
@@ -6211,11 +6211,11 @@ function Qs(e) {
6211
6211
  reverseSign: [!0, !0, !1]
6212
6212
  });
6213
6213
  function y() {
6214
- N = (g === "x" ? f.containerRect.width : f.containerRect.height) / 2;
6214
+ k = (g === "x" ? f.containerRect.width : f.containerRect.height) / 2;
6215
6215
  }
6216
- var b = x.observe(m), v = x.on("wheel", $), w = !1, S, C = 0, N = 0, E = !1;
6216
+ var b = x.observe(m), v = x.on("wheel", F), w = !1, S, C = 0, k = 0, E = !1;
6217
6217
  y(), o.on("resize", y);
6218
- function k(P) {
6218
+ function V(P) {
6219
6219
  try {
6220
6220
  S = new MouseEvent("mousedown", P.event), M(S);
6221
6221
  } catch {
@@ -6223,30 +6223,30 @@ function Qs(e) {
6223
6223
  }
6224
6224
  w = !0, C = 0, re(), t.wheelDraggingClass && m.classList.add(t.wheelDraggingClass);
6225
6225
  }
6226
- function j(P) {
6227
- w = !1, M(_("mouseup", P)), V(), t.wheelDraggingClass && m.classList.remove(t.wheelDraggingClass);
6226
+ function R(P) {
6227
+ w = !1, M(_("mouseup", P)), N(), t.wheelDraggingClass && m.classList.remove(t.wheelDraggingClass);
6228
6228
  }
6229
6229
  function re() {
6230
6230
  document.documentElement.addEventListener("mousemove", A, !0), document.documentElement.addEventListener("mouseup", A, !0), document.documentElement.addEventListener("mousedown", A, !0);
6231
6231
  }
6232
- function V() {
6232
+ function N() {
6233
6233
  document.documentElement.removeEventListener("mousemove", A, !0), document.documentElement.removeEventListener("mouseup", A, !0), document.documentElement.removeEventListener("mousedown", A, !0);
6234
6234
  }
6235
6235
  function A(P) {
6236
6236
  w && P.isTrusted && P.stopImmediatePropagation();
6237
6237
  }
6238
- function _(P, B) {
6238
+ function _(P, D) {
6239
6239
  var W, Q;
6240
6240
  if (g === f.options.axis) {
6241
- var Ee = B.axisMovement;
6241
+ var Ee = D.axisMovement;
6242
6242
  W = Ee[0], Q = Ee[1];
6243
6243
  } else {
6244
- var D = B.axisMovement;
6245
- Q = D[0], W = D[1];
6244
+ var $ = D.axisMovement;
6245
+ Q = $[0], W = $[1];
6246
6246
  }
6247
- var ue = F(B), ae = ue.isAtBoundary;
6247
+ var ue = j(D), ae = ue.isAtBoundary;
6248
6248
  if (ae) {
6249
- var U = Math.min(C / N, 1), _e = 0.25 + U * 0.5, Ae = W > 0 ? -1 : 1, Ue = C * Ae, Re = Ue * _e;
6249
+ var U = Math.min(C / k, 1), _e = 0.25 + U * 0.5, Ae = W > 0 ? -1 : 1, Ue = C * Ae, Re = Ue * _e;
6250
6250
  W += Re, Q += Re;
6251
6251
  }
6252
6252
  if (!f.options.skipSnaps && !f.options.dragFree) {
@@ -6269,28 +6269,28 @@ function Qs(e) {
6269
6269
  function M(P) {
6270
6270
  o.containerNode().dispatchEvent(P);
6271
6271
  }
6272
- function F(P) {
6273
- var B = P.axisDelta, W = B[0], Q = B[1], Ee = o.scrollProgress(), D = Ee < 1, ue = Ee > 0, ae = g === "x" ? W : Q, U = ae < 0, _e = ae > 0, Ae = U && !D || _e && !ue;
6272
+ function j(P) {
6273
+ var D = P.axisDelta, W = D[0], Q = D[1], Ee = o.scrollProgress(), $ = Ee < 1, ue = Ee > 0, ae = g === "x" ? W : Q, U = ae < 0, _e = ae > 0, Ae = U && !$ || _e && !ue;
6274
6274
  return {
6275
6275
  isAtBoundary: Ae,
6276
6276
  primaryAxisDelta: ae
6277
6277
  };
6278
6278
  }
6279
- function R(P) {
6280
- var B = F(P), W = B.isAtBoundary, Q = B.primaryAxisDelta;
6279
+ function B(P) {
6280
+ var D = j(P), W = D.isAtBoundary, Q = D.primaryAxisDelta;
6281
6281
  if (W && !P.isMomentum) {
6282
- if (C += Math.abs(Q), C > N)
6283
- return E = !0, j(P), !0;
6282
+ if (C += Math.abs(Q), C > k)
6283
+ return E = !0, R(P), !0;
6284
6284
  } else
6285
6285
  C = 0;
6286
6286
  return !1;
6287
6287
  }
6288
- function $(P) {
6289
- var B = P.axisDelta, W = B[0], Q = B[1], Ee = g === "x" ? W : Q, D = g === "x" ? Q : W, ue = P.isMomentum && P.previous && !P.previous.isMomentum, ae = P.isEnding && !P.isMomentum || ue, U = Math.abs(Ee) > Math.abs(D);
6290
- U && !w && !P.isMomentum && !E && k(P), E && P.isEnding && (E = !1), w && (R(P) || (ae ? j(P) : M(_("mousemove", P))));
6288
+ function F(P) {
6289
+ var D = P.axisDelta, W = D[0], Q = D[1], Ee = g === "x" ? W : Q, $ = g === "x" ? Q : W, ue = P.isMomentum && P.previous && !P.previous.isMomentum, ae = P.isEnding && !P.isMomentum || ue, U = Math.abs(Ee) > Math.abs($);
6290
+ U && !w && !P.isMomentum && !E && V(P), E && P.isEnding && (E = !1), w && (B(P) || (ae ? R(P) : M(_("mousemove", P))));
6291
6291
  }
6292
6292
  n = function() {
6293
- b(), v(), o.off("resize", y), V();
6293
+ b(), v(), o.off("resize", y), N();
6294
6294
  };
6295
6295
  }
6296
6296
  var r = {
@@ -6323,7 +6323,7 @@ const Na = z.forwardRef(
6323
6323
  generatedClassName: l,
6324
6324
  ...c
6325
6325
  }, u) => {
6326
- var C, N, E;
6326
+ var C, k, E, V;
6327
6327
  const d = [Qs()];
6328
6328
  (C = i == null ? void 0 : i.carousel) != null && C.autoScroll && d.push(
6329
6329
  Cl({
@@ -6333,7 +6333,7 @@ const Na = z.forwardRef(
6333
6333
  stopOnInteraction: i.carousel.stopOnInteraction ?? !0,
6334
6334
  stopOnMouseEnter: i.carousel.stopOnMouseEnter ?? !1
6335
6335
  })
6336
- ), (N = i == null ? void 0 : i.carousel) != null && N.autoPlay && d.push(
6336
+ ), (k = i == null ? void 0 : i.carousel) != null && k.autoPlay && d.push(
6337
6337
  Pl({
6338
6338
  delay: (i.carousel.time_per_slide ?? 4) * 1e3,
6339
6339
  stopOnFocusIn: i.carousel.stopOnFocusIn ?? !1,
@@ -6345,18 +6345,19 @@ const Na = z.forwardRef(
6345
6345
  {
6346
6346
  ...t,
6347
6347
  loop: ((E = i == null ? void 0 : i.carousel) == null ? void 0 : E.loop) ?? !1,
6348
+ direction: ((V = i == null ? void 0 : i.carousel) == null ? void 0 : V.direction) ?? "ltr",
6348
6349
  axis: e === "horizontal" ? "x" : "y"
6349
6350
  },
6350
6351
  d
6351
- ), [m, g] = z.useState(!1), [x, y] = z.useState(!1), b = z.useCallback((k) => {
6352
- k && (g(k.canScrollPrev()), y(k.canScrollNext()));
6352
+ ), [m, g] = z.useState(!1), [x, y] = z.useState(!1), b = z.useCallback((R) => {
6353
+ R && (g(R.canScrollPrev()), y(R.canScrollNext()));
6353
6354
  }, []), v = z.useCallback(() => {
6354
6355
  f == null || f.scrollPrev();
6355
6356
  }, [f]), w = z.useCallback(() => {
6356
6357
  f == null || f.scrollNext();
6357
6358
  }, [f]), S = z.useCallback(
6358
- (k) => {
6359
- k.key === "ArrowLeft" ? (k.preventDefault(), v()) : k.key === "ArrowRight" && (k.preventDefault(), w());
6359
+ (R) => {
6360
+ R.key === "ArrowLeft" ? (R.preventDefault(), v()) : R.key === "ArrowRight" && (R.preventDefault(), w());
6360
6361
  },
6361
6362
  [v, w]
6362
6363
  );
@@ -6754,17 +6755,17 @@ const dm = (e) => um.get(e) || null, hm = (e) => {
6754
6755
  }
6755
6756
  return t;
6756
6757
  }, mm = Oe(
6757
- () => import("./Beams-BZojhXPB.js").then((e) => ({ default: e.BackgroundBeams }))
6758
+ () => import("./Beams-CjOdmyD4.js").then((e) => ({ default: e.BackgroundBeams }))
6758
6759
  ), gm = Oe(
6759
- () => import("./Dots-CcGlHm7F.js").then((e) => ({ default: e.BackgroundDots }))
6760
+ () => import("./Dots-BlGBjcwD.js").then((e) => ({ default: e.BackgroundDots }))
6760
6761
  ), ym = Oe(
6761
- () => import("./Grid-DNt6KikT.js").then((e) => ({ default: e.BackgroundGrid }))
6762
+ () => import("./Grid-BO_h2CxQ.js").then((e) => ({ default: e.BackgroundGrid }))
6762
6763
  ), vm = Oe(
6763
- () => import("./Gradient-3UANzbFj.js").then((e) => ({
6764
+ () => import("./Gradient-YhY9Pvdr.js").then((e) => ({
6764
6765
  default: e.BackgroundGradient
6765
6766
  }))
6766
6767
  ), bm = Oe(
6767
- () => import("./Waves-CzMQ6uqz.js").then((e) => ({ default: e.BackgroundWaves }))
6768
+ () => import("./Waves-SaFLO-Gq.js").then((e) => ({ default: e.BackgroundWaves }))
6768
6769
  ), Ba = vn(() => /* @__PURE__ */ p("div", { className: "absolute inset-0 z-[-1] bg-transparent" }));
6769
6770
  Ba.displayName = "EffectFallback";
6770
6771
  const Da = vn(
@@ -6920,7 +6921,7 @@ const fy = J(ja), Wa = xe(
6920
6921
  isVideo: u,
6921
6922
  ...d
6922
6923
  }, h) => {
6923
- var g, x, y, b, v, w, S, C, N, E, k, j, re, V, A, _;
6924
+ var g, x, y, b, v, w, S, C, k, E, V, R, re, N, A, _;
6924
6925
  const f = t ?? o;
6925
6926
  return f != null && f.location ? u || f.type === "video" || f.location.match(/\.(mp4|webm|ogg|mov)$/i) ? /* @__PURE__ */ T(
6926
6927
  "video",
@@ -6936,7 +6937,7 @@ const fy = J(ja), Wa = xe(
6936
6937
  loop: (v = i == null ? void 0 : i.media) == null ? void 0 : v.loop,
6937
6938
  muted: ((w = i == null ? void 0 : i.media) == null ? void 0 : w.muted) !== !1,
6938
6939
  controls: (S = i == null ? void 0 : i.media) == null ? void 0 : S.controls,
6939
- poster: (N = (C = i == null ? void 0 : i.media) == null ? void 0 : C.poster) == null ? void 0 : N.location,
6940
+ poster: (k = (C = i == null ? void 0 : i.media) == null ? void 0 : C.poster) == null ? void 0 : k.location,
6940
6941
  preload: (E = i == null ? void 0 : i.media) != null && E.high_priority ? "auto" : "metadata",
6941
6942
  playsInline: !0,
6942
6943
  ...d,
@@ -6959,10 +6960,10 @@ const fy = J(ja), Wa = xe(
6959
6960
  "data-levo_element_type": "Media",
6960
6961
  className: O(e, c),
6961
6962
  src: f.location,
6962
- srcSet: (k = f.srcset) == null ? void 0 : k.path,
6963
- alt: ((j = i == null ? void 0 : i.image) == null ? void 0 : j.alt) ?? n,
6963
+ srcSet: (V = f.srcset) == null ? void 0 : V.path,
6964
+ alt: ((R = i == null ? void 0 : i.image) == null ? void 0 : R.alt) ?? n,
6964
6965
  width: ((re = i == null ? void 0 : i.image) == null ? void 0 : re.width) ?? s,
6965
- height: ((V = i == null ? void 0 : i.image) == null ? void 0 : V.height) ?? r,
6966
+ height: ((N = i == null ? void 0 : i.image) == null ? void 0 : N.height) ?? r,
6966
6967
  decoding: "async",
6967
6968
  loading: (A = i == null ? void 0 : i.media) != null && A.high_priority ? "eager" : "lazy",
6968
6969
  fetchPriority: (_ = i == null ? void 0 : i.media) != null && _.high_priority ? "high" : "low",
@@ -7171,8 +7172,8 @@ const by = J(Ya), Lm = Oe(
7171
7172
  () => import("@levo-so/react-collection").then((e) => ({
7172
7173
  default: e.CollectionFormRenderer
7173
7174
  }))
7174
- ), km = ({ elementKey: e, generatedClassName: t, config: n, className: s }) => {
7175
- var r, o, i;
7175
+ ), km = ({ elementKey: e, generatedClassName: t, config: n, className: s, theme: r }) => {
7176
+ var o, i, a;
7176
7177
  return /* @__PURE__ */ p(
7177
7178
  "div",
7178
7179
  {
@@ -7190,10 +7191,11 @@ const by = J(Ya), Lm = Oe(
7190
7191
  },
7191
7192
  submitButtonConfig: {
7192
7193
  show: !0,
7193
- text: ((r = n == null ? void 0 : n.form) == null ? void 0 : r.submit_button_label) ?? "Submit"
7194
+ text: ((o = n == null ? void 0 : n.form) == null ? void 0 : o.submit_button_label) ?? "Submit"
7194
7195
  },
7195
- fetchedSchema: (o = n == null ? void 0 : n.form) == null ? void 0 : o.schema,
7196
- hiddenFields: (i = n == null ? void 0 : n.form) == null ? void 0 : i.hidden_fields
7196
+ fetchedSchema: (i = n == null ? void 0 : n.form) == null ? void 0 : i.schema,
7197
+ hiddenFields: (a = n == null ? void 0 : n.form) == null ? void 0 : a.hidden_fields,
7198
+ theme: r
7197
7199
  }
7198
7200
  ) })
7199
7201
  }
@@ -7717,8 +7719,8 @@ const er = z.memo(
7717
7719
  er.displayName = "LevoBlock";
7718
7720
  const Zm = "_loadingContainer_1d4on_1", Jm = {
7719
7721
  loadingContainer: Zm
7720
- }, Qm = Oe(() => import("./index-YYhmca3b.js")), eg = Oe(() => import("./index-DEfqGdFN.js")), tg = Oe(
7721
- () => import("./index-BoqJQUB1.js")
7722
+ }, Qm = Oe(() => import("./index-BP4Q9Ed6.js")), eg = Oe(() => import("./index-C5YVd5mP.js")), tg = Oe(
7723
+ () => import("./index-BFUEWnWU.js")
7722
7724
  ), Mi = {
7723
7725
  "authentication.NOT_LOGGED_IN": ({ logo: e, siteName: t }) => /* @__PURE__ */ p(ct, { fallback: /* @__PURE__ */ p("div", {}), children: /* @__PURE__ */ p(Qm, { logo: e, siteName: t }) }),
7724
7726
  "gating.ENTRY_NOT_FOUND": ({
@@ -7754,14 +7756,14 @@ const Zm = "_loadingContainer_1d4on_1", Jm = {
7754
7756
  const s = mt(), { isLoggedIn: r, account: o, isAuthLoaded: i } = xt(), [a, l] = I(!((y = e.access) != null && y.length)), [c, u] = I(
7755
7757
  null
7756
7758
  ), [d, h] = I(!!((b = e.access) != null && b.length)), [f, m] = I(null), g = async () => {
7757
- var v, w, S, C, N;
7759
+ var v, w, S, C, k;
7758
7760
  h(!0);
7759
7761
  try {
7760
- const E = await ((S = (w = (v = s == null ? void 0 : s.fetch) == null ? void 0 : v.url(`/v1/builder/page/${e.id}/check-access`)) == null ? void 0 : w.post()) == null ? void 0 : S.json()), k = (C = E == null ? void 0 : E.content) == null ? void 0 : C.data;
7761
- u(k), k != null && k.has_access ? (l(!0), m(null)) : (m(k.code || "unknown"), l(!1));
7762
+ const E = await ((S = (w = (v = s == null ? void 0 : s.fetch) == null ? void 0 : v.url(`/v1/builder/page/${e.id}/check-access`)) == null ? void 0 : w.post()) == null ? void 0 : S.json()), V = (C = E == null ? void 0 : E.content) == null ? void 0 : C.data;
7763
+ u(V), V != null && V.has_access ? (l(!0), m(null)) : (m(V.code || "unknown"), l(!1));
7762
7764
  } catch (E) {
7763
- const k = Ut(E);
7764
- (N = s == null ? void 0 : s.logger) == null || N.error("Failed to check page access", k.message), l(!0);
7765
+ const V = Ut(E);
7766
+ (k = s == null ? void 0 : s.logger) == null || k.error("Failed to check page access", V.message), l(!0);
7765
7767
  } finally {
7766
7768
  h(!1);
7767
7769
  }
@@ -9387,7 +9389,7 @@ const Oi = "levoContent_", Ri = {
9387
9389
  fontUrl: t.length ? `https://fonts.googleapis.com/css2?${t.map((r) => `family=${r}:wght@300;400;500;600;700;900`).join("&")}&display=swap` : ""
9388
9390
  };
9389
9391
  }, xg = (e) => {
9390
- var t, n, s, r, o, i, a, l, c, u, d, h, f, m, g, x, y, b, v, w, S, C, N, E;
9392
+ var t, n, s, r, o, i, a, l, c, u, d, h, f, m, g, x, y, b, v, w, S, C, k, E;
9391
9393
  return {
9392
9394
  "--color-brand": ie((n = (t = e.colors) == null ? void 0 : t.brand) == null ? void 0 : n.main),
9393
9395
  "--color-brand-foreground": ie((r = (s = e.colors) == null ? void 0 : s.brand) == null ? void 0 : r.foreground),
@@ -9409,7 +9411,7 @@ const Oi = "levoContent_", Ri = {
9409
9411
  "--font-body": ((w = e.fonts) == null ? void 0 : w.body) || "",
9410
9412
  "--base-radius": `${((S = e.sizes) == null ? void 0 : S.radius) || "4px"}`,
9411
9413
  "--base-spacing": `${((C = e.sizes) == null ? void 0 : C.spacing) || "4px"}`,
9412
- "--base-font-size": `${((N = e.sizes) == null ? void 0 : N.fontSize) || "1rem"}`,
9414
+ "--base-font-size": `${((k = e.sizes) == null ? void 0 : k.fontSize) || "1rem"}`,
9413
9415
  "--default-shadow": ((E = e.effects) == null ? void 0 : E.shadow) || "0 2px 4px rgba(0, 0, 0, 0.1)"
9414
9416
  };
9415
9417
  }, wg = (e) => {
@@ -9487,11 +9489,11 @@ const Oi = "levoContent_", Ri = {
9487
9489
  html: `${c}${u}`
9488
9490
  };
9489
9491
  }, Sg = (e, t, n) => {
9490
- var w, S, C, N;
9492
+ var w, S, C, k;
9491
9493
  const s = e == null ? void 0 : e.meta, r = t == null ? void 0 : t.theme, o = (s == null ? void 0 : s.og_url) || n, i = tr({
9492
9494
  pageTheme: r,
9493
9495
  blocks: e == null ? void 0 : e.blocks
9494
- }).html, a = (s == null ? void 0 : s.meta_title) || `${e == null ? void 0 : e.title} | ${t == null ? void 0 : t.name}`, l = (s == null ? void 0 : s.meta_description) || (e == null ? void 0 : e.description), c = t != null && t.domain ? `https://${t == null ? void 0 : t.domain}${n}` : n, u = (s == null ? void 0 : s.og_title) || (s == null ? void 0 : s.meta_title) || `${e == null ? void 0 : e.title} | ${t == null ? void 0 : t.name}`, d = (s == null ? void 0 : s.og_description) || (s == null ? void 0 : s.meta_description) || (e == null ? void 0 : e.description), h = t != null && t.domain ? `https://${t == null ? void 0 : t.domain}${o}` : o, f = t == null ? void 0 : t.name, m = (w = s == null ? void 0 : s.og_image) == null ? void 0 : w.location, g = s != null && s.disable_indexing ? "noindex, nofollow" : "all", x = ((S = t == null ? void 0 : t.icon) == null ? void 0 : S.location) ?? "https://app.levo.so/favicon.ico", y = (C = t == null ? void 0 : t.settings) == null ? void 0 : C.head_code, b = (N = e == null ? void 0 : e.settings) == null ? void 0 : N.structured_data_json;
9496
+ }).html, a = (s == null ? void 0 : s.meta_title) || `${e == null ? void 0 : e.title} | ${t == null ? void 0 : t.name}`, l = (s == null ? void 0 : s.meta_description) || (e == null ? void 0 : e.description), c = t != null && t.domain ? `https://${t == null ? void 0 : t.domain}${n}` : n, u = (s == null ? void 0 : s.og_title) || (s == null ? void 0 : s.meta_title) || `${e == null ? void 0 : e.title} | ${t == null ? void 0 : t.name}`, d = (s == null ? void 0 : s.og_description) || (s == null ? void 0 : s.meta_description) || (e == null ? void 0 : e.description), h = t != null && t.domain ? `https://${t == null ? void 0 : t.domain}${o}` : o, f = t == null ? void 0 : t.name, m = (w = s == null ? void 0 : s.og_image) == null ? void 0 : w.location, g = s != null && s.disable_indexing ? "noindex, nofollow" : "all", x = ((S = t == null ? void 0 : t.icon) == null ? void 0 : S.location) ?? "https://app.levo.so/favicon.ico", y = (C = t == null ? void 0 : t.settings) == null ? void 0 : C.head_code, b = (k = e == null ? void 0 : e.settings) == null ? void 0 : k.structured_data_json;
9495
9497
  let v = `
9496
9498
  <title>${a}</title>
9497
9499
  <meta name="description" content="${l}" />
@@ -10075,12 +10077,12 @@ const Un = {
10075
10077
  title: t,
10076
10078
  buttonText: n = "Register Now"
10077
10079
  }) => {
10078
- const s = mt(), [r, o] = I([]), [i, a] = I(!0), { isOpen: l, onOpen: c, onClose: u } = Ig(), [d, h] = I(!1), [f, m] = I(null), [g, x] = I(void 0), [y, b] = I(""), [v, w] = I(null), [S, C] = I(!1), [N, E] = I(null), [k, j] = I(!1), [re, V] = I(1), { workspace: A } = xt(), _ = () => {
10079
- w(null), x(void 0), E(null), C(!1), b(""), u(), V(1), Ee();
10080
+ const s = mt(), [r, o] = I([]), [i, a] = I(!0), { isOpen: l, onOpen: c, onClose: u } = Ig(), [d, h] = I(!1), [f, m] = I(null), [g, x] = I(void 0), [y, b] = I(""), [v, w] = I(null), [S, C] = I(!1), [k, E] = I(null), [V, R] = I(!1), [re, N] = I(1), { workspace: A } = xt(), _ = () => {
10081
+ w(null), x(void 0), E(null), C(!1), b(""), u(), N(1), Ee();
10080
10082
  }, M = async () => {
10081
10083
  var _e, Ae, Ue, Re, fe, Be, Tt, St, nr, sr, rr;
10082
10084
  h(!0);
10083
- const D = { ...P }, { name: ue, email: ae, ...U } = D;
10085
+ const $ = { ...P }, { name: ue, email: ae, ...U } = $;
10084
10086
  try {
10085
10087
  const Y = await ((Ue = (Ae = (_e = s == null ? void 0 : s.fetch) == null ? void 0 : _e.url(`/v1/event/event/${e}/booking/create-new-booking`)) == null ? void 0 : Ae.options({
10086
10088
  headers: {
@@ -10098,7 +10100,7 @@ const Un = {
10098
10100
  }
10099
10101
  ]
10100
10102
  }).json());
10101
- _(), Y.status && ((fe = (Re = Y == null ? void 0 : Y.content) == null ? void 0 : Re.meta) != null && fe.key ? R({
10103
+ _(), Y.status && ((fe = (Re = Y == null ? void 0 : Y.content) == null ? void 0 : Re.meta) != null && fe.key ? B({
10102
10104
  key: (Tt = (Be = Y == null ? void 0 : Y.content) == null ? void 0 : Be.meta) == null ? void 0 : Tt.key,
10103
10105
  amount: (St = Y == null ? void 0 : Y.content.data) == null ? void 0 : St.unit_amount,
10104
10106
  currency: "INR",
@@ -10109,17 +10111,17 @@ const Un = {
10109
10111
  console.error(Y), gl(Y);
10110
10112
  }
10111
10113
  h(!1);
10112
- }, { Razorpay: F } = dl(), R = async (D) => {
10114
+ }, { Razorpay: j } = dl(), B = async ($) => {
10113
10115
  const ue = {
10114
- key: D.key,
10115
- amount: D.amount,
10116
- currency: D.currency,
10117
- order_id: D.order_id,
10116
+ key: $.key,
10117
+ amount: $.amount,
10118
+ currency: $.currency,
10119
+ order_id: $.order_id,
10118
10120
  name: (A == null ? void 0 : A.name) ?? "",
10119
10121
  description: "Event Registration",
10120
10122
  handler: (U) => {
10121
10123
  var _e, Ae, Ue, Re;
10122
- (Re = (Ue = (Ae = (_e = s == null ? void 0 : s.fetch) == null ? void 0 : _e.url(`/v1/event/booking/${D.booking_id}/confirm-booking`)) == null ? void 0 : Ae.options({
10124
+ (Re = (Ue = (Ae = (_e = s == null ? void 0 : s.fetch) == null ? void 0 : _e.url(`/v1/event/booking/${$.booking_id}/confirm-booking`)) == null ? void 0 : Ae.options({
10123
10125
  headers: {
10124
10126
  Origin: (A == null ? void 0 : A.id) || ""
10125
10127
  }
@@ -10140,7 +10142,7 @@ const Un = {
10140
10142
  theme: {
10141
10143
  color: "#FC751A"
10142
10144
  }
10143
- }, ae = new F(ue);
10145
+ }, ae = new j(ue);
10144
10146
  ae.on("payment.failed", (U) => {
10145
10147
  console.log(
10146
10148
  U.error.code,
@@ -10152,11 +10154,11 @@ const Un = {
10152
10154
  U.error.metadata.payment_id
10153
10155
  );
10154
10156
  }), ae.open();
10155
- }, $ = async () => {
10156
- var D, ue, ae;
10157
+ }, F = async () => {
10158
+ var $, ue, ae;
10157
10159
  C(!0), E(null);
10158
10160
  try {
10159
- const U = await ((ae = (ue = (D = s == null ? void 0 : s.fetch) == null ? void 0 : D.url(`/v1/event/event/${e}/coupon/validate-coupon-code`)) == null ? void 0 : ue.options({
10161
+ const U = await ((ae = (ue = ($ = s == null ? void 0 : s.fetch) == null ? void 0 : $.url(`/v1/event/event/${e}/coupon/validate-coupon-code`)) == null ? void 0 : ue.options({
10160
10162
  headers: {
10161
10163
  Origin: (A == null ? void 0 : A.id) || "",
10162
10164
  "Content-type": "application/json"
@@ -10172,22 +10174,22 @@ const Un = {
10172
10174
  }
10173
10175
  ]
10174
10176
  }).json());
10175
- U.status && (w(U.content.data), b(y)), j(!1), C(!1);
10177
+ U.status && (w(U.content.data), b(y)), R(!1), C(!1);
10176
10178
  } catch (U) {
10177
10179
  console.error(U), C(!1);
10178
10180
  }
10179
10181
  };
10180
10182
  ee(() => {
10181
- var D;
10182
- e && (a(!0), (D = Og(s, e, (A == null ? void 0 : A.id) ?? "")) == null || D.then((ue) => {
10183
+ var $;
10184
+ e && (a(!0), ($ = Og(s, e, (A == null ? void 0 : A.id) ?? "")) == null || $.then((ue) => {
10183
10185
  o(ue), a(!1);
10184
10186
  }));
10185
10187
  }, [e]), ee(() => {
10186
- (f == null ? void 0 : f.unit_amount) === 0 && (r == null ? void 0 : r.length) === 1 && V(2);
10188
+ (f == null ? void 0 : f.unit_amount) === 0 && (r == null ? void 0 : r.length) === 1 && N(2);
10187
10189
  }, [f, l]), ee(() => {
10188
10190
  (r == null ? void 0 : r.length) > 0 && m(r[0] || null);
10189
10191
  }, [r]);
10190
- const { values: P, handleChange: B, handleBlur: W, handleSubmit: Q, resetForm: Ee } = il({
10192
+ const { values: P, handleChange: D, handleBlur: W, handleSubmit: Q, resetForm: Ee } = il({
10191
10193
  initialValues: { name: "", email: "" },
10192
10194
  onSubmit: () => {
10193
10195
  M();
@@ -10212,13 +10214,13 @@ const Un = {
10212
10214
  {
10213
10215
  className: O(
10214
10216
  "flex h-fit max-w-[90%] flex-col rounded-lg bg-white p-4 md:w-[40%]",
10215
- k ? "md:max-w-[30%]" : "md:max-w-[40%]"
10217
+ V ? "md:max-w-[30%]" : "md:max-w-[40%]"
10216
10218
  ),
10217
10219
  children: [
10218
10220
  /* @__PURE__ */ T(
10219
10221
  "div",
10220
10222
  {
10221
- className: `mb-4 flex w-full items-start justify-between ${k ? "" : "pb-[6px]"} `,
10223
+ className: `mb-4 flex w-full items-start justify-between ${V ? "" : "pb-[6px]"} `,
10222
10224
  children: [
10223
10225
  /* @__PURE__ */ T("h2", { className: "text-lg font-semibold", children: [
10224
10226
  "Register for ",
@@ -10237,7 +10239,7 @@ const Un = {
10237
10239
  ]
10238
10240
  }
10239
10241
  ),
10240
- /* @__PURE__ */ p("div", { children: re === 1 ? /* @__PURE__ */ p("div", { children: k ? /* @__PURE__ */ T("div", { children: [
10242
+ /* @__PURE__ */ p("div", { children: re === 1 ? /* @__PURE__ */ p("div", { children: V ? /* @__PURE__ */ T("div", { children: [
10241
10243
  /* @__PURE__ */ T("div", { className: "flex items-center justify-between text-center", children: [
10242
10244
  /* @__PURE__ */ p(
10243
10245
  "button",
@@ -10246,7 +10248,7 @@ const Un = {
10246
10248
  className: "rounded-md p-0 hover:bg-gray-100 focus:outline-none",
10247
10249
  "aria-label": "Back",
10248
10250
  onClick: () => {
10249
- E(null), C(!1), b(""), j(!1);
10251
+ E(null), C(!1), b(""), R(!1);
10250
10252
  },
10251
10253
  children: /* @__PURE__ */ p(Lg, {})
10252
10254
  }
@@ -10264,12 +10266,12 @@ const Un = {
10264
10266
  placeholder: "Enter Coupon Code",
10265
10267
  value: y,
10266
10268
  disabled: !!v,
10267
- onChange: (D) => {
10268
- b(D.target.value);
10269
+ onChange: ($) => {
10270
+ b($.target.value);
10269
10271
  }
10270
10272
  }
10271
10273
  ),
10272
- N && /* @__PURE__ */ p("p", { className: "text-red-400", children: N })
10274
+ k && /* @__PURE__ */ p("p", { className: "text-red-400", children: k })
10273
10275
  ] }),
10274
10276
  /* @__PURE__ */ p(
10275
10277
  "button",
@@ -10277,7 +10279,7 @@ const Un = {
10277
10279
  type: "button",
10278
10280
  className: "flex items-center justify-center rounded-md bg-yellow-500 px-3 py-2 text-white transition duration-300 ease-in-out hover:bg-yellow-600",
10279
10281
  "aria-label": "Apply Coupon",
10280
- onClick: () => $(),
10282
+ onClick: () => F(),
10281
10283
  style: {
10282
10284
  marginLeft: y ? "0" : "-4rem",
10283
10285
  zIndex: y ? "1" : "-1"
@@ -10289,26 +10291,26 @@ const Un = {
10289
10291
  /* @__PURE__ */ p("p", { className: "text-md my-5 text-gray-500", children: "Available Coupons:" })
10290
10292
  ] }) : /* @__PURE__ */ T("div", { children: [
10291
10293
  /* @__PURE__ */ T("div", { className: "flex w-full flex-col justify-between md:flex-row", children: [
10292
- /* @__PURE__ */ p("div", { className: "flex w-full flex-col gap-3 md:w-[55%]", children: r.map((D) => /* @__PURE__ */ p(
10294
+ /* @__PURE__ */ p("div", { className: "flex w-full flex-col gap-3 md:w-[55%]", children: r.map(($) => /* @__PURE__ */ p(
10293
10295
  "div",
10294
10296
  {
10295
- className: `flex cursor-pointer items-center justify-between rounded-md border border-gray-300 px-3 py-2 transition duration-300 hover:bg-gray-100 ${D._id === (f == null ? void 0 : f._id) ? "border-l-2 border-l-pink-600" : ""} `,
10297
+ className: `flex cursor-pointer items-center justify-between rounded-md border border-gray-300 px-3 py-2 transition duration-300 hover:bg-gray-100 ${$._id === (f == null ? void 0 : f._id) ? "border-l-2 border-l-pink-600" : ""} `,
10296
10298
  onClick: () => {
10297
- b(""), w(null), E(null), C(!1), m(D);
10299
+ b(""), w(null), E(null), C(!1), m($);
10298
10300
  },
10299
10301
  children: /* @__PURE__ */ T(
10300
10302
  "div",
10301
10303
  {
10302
- className: `${D._id === (f == null ? void 0 : f._id) ? "-ml-[2px]" : "ml-0"}`,
10304
+ className: `${$._id === (f == null ? void 0 : f._id) ? "-ml-[2px]" : "ml-0"}`,
10303
10305
  children: [
10304
- /* @__PURE__ */ p("p", { className: "text-md", children: D.title }),
10305
- /* @__PURE__ */ p("p", { className: "-mt-[2px] mb-1 text-xs text-gray-600", children: D.description }),
10306
- /* @__PURE__ */ p("p", { className: "text-md", children: nt(D) })
10306
+ /* @__PURE__ */ p("p", { className: "text-md", children: $.title }),
10307
+ /* @__PURE__ */ p("p", { className: "-mt-[2px] mb-1 text-xs text-gray-600", children: $.description }),
10308
+ /* @__PURE__ */ p("p", { className: "text-md", children: nt($) })
10307
10309
  ]
10308
10310
  }
10309
10311
  )
10310
10312
  },
10311
- D._id
10313
+ $._id
10312
10314
  )) }),
10313
10315
  /* @__PURE__ */ T("div", { className: "w-full md:w-[40%]", children: [
10314
10316
  /* @__PURE__ */ T("div", { className: "mt-4 flex min-h-[250px] flex-col justify-between rounded-md border border-gray-300 p-4 md:mt-0", children: [
@@ -10375,7 +10377,7 @@ const Un = {
10375
10377
  "div",
10376
10378
  {
10377
10379
  className: ` ${f ? "h-[50px] py-3" : "py-3"} flex cursor-pointer items-center justify-between border-b border-b-gray-300 pr-1 pl-4 transition-all duration-200 hover:bg-gray-200`,
10378
- onClick: () => f ? j(!0) : null,
10380
+ onClick: () => f ? R(!0) : null,
10379
10381
  children: [
10380
10382
  /* @__PURE__ */ p("span", { children: "Apply Coupon" }),
10381
10383
  /* @__PURE__ */ p("span", { children: /* @__PURE__ */ p(kg, {}) })
@@ -10388,7 +10390,7 @@ const Un = {
10388
10390
  Me,
10389
10391
  {
10390
10392
  elementKey: "",
10391
- onClick: () => V(2),
10393
+ onClick: () => N(2),
10392
10394
  className: "rounded-lg px-6 py-2 font-semibold",
10393
10395
  children: "Next"
10394
10396
  }
@@ -10403,7 +10405,7 @@ const Un = {
10403
10405
  placeholder: "Name",
10404
10406
  name: "name",
10405
10407
  value: P.name,
10406
- onChange: B,
10408
+ onChange: D,
10407
10409
  onBlur: W,
10408
10410
  required: !0
10409
10411
  }
@@ -10418,7 +10420,7 @@ const Un = {
10418
10420
  placeholder: "Email",
10419
10421
  name: "email",
10420
10422
  value: P.email,
10421
- onChange: B,
10423
+ onChange: D,
10422
10424
  onBlur: W,
10423
10425
  type: "email",
10424
10426
  required: !0
@@ -10432,7 +10434,7 @@ const Un = {
10432
10434
  elementKey: "",
10433
10435
  className: "rounded-lg bg-gray-100 px-6 py-2 font-semibold text-black hover:bg-gray-200",
10434
10436
  type: "button",
10435
- onClick: () => V(1),
10437
+ onClick: () => N(1),
10436
10438
  disabled: d,
10437
10439
  children: "Back"
10438
10440
  }
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsxs as e, jsx as s } from "react/jsx-runtime";
3
- import { u as i, a } from "./index-ChtnTSnt.js";
3
+ import { u as i, a } from "./index-ChfbB6-A.js";
4
4
  const g = "_footnote_v8hnh_1", r = "_footnoteText_v8hnh_11", c = "_logoutButton_v8hnh_17", t = {
5
5
  footnote: g,
6
6
  footnoteText: r,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { q as s, o, A as t, p as r, w as n, ay as i, ax as g, b as l, d as c, j as C, n as u, v as d, x as S, a6 as T, ad as m, B as A, c as E, e as P, f as h, g as B, i as p, h as f, C as v, aj as k, aw as M, F as R, H as y, a7 as I, l as L, I as b, k as H, a3 as K, ab as O, ac as V, t as _, ah as x, M as F, az as D, aA as G, s as N, P as U, r as w, ai as z, aF as W, S as j, ak as q, a4 as J, a5 as X, T as Y, U as Q, ae as Z, ag as $, a9 as aa, af as ea, ar as sa, aq as oa, a2 as ta, J as ra, aa as na, O as ia, a8 as ga, au as la, N as ca, K as Ca, aC as ua, aD as da, ap as Sa, z as Ta, at as ma, an as Aa, aB as Ea, $ as Pa, D as ha, _ as Ba, Z as pa, a1 as fa, X as va, a0 as ka, ao as Ma, av as Ra, am as ya, al as Ia, W as La, Y as ba, aE as Ha, E as Ka, u as Oa, y as Va, V as _a, as as xa, Q as Fa, R as Da, G as Ga } from "./index-ChtnTSnt.js";
1
+ import { q as s, o, A as t, p as r, w as n, ay as i, ax as g, b as l, d as c, j as C, n as u, v as d, x as S, a6 as T, ad as m, B as A, c as E, e as P, f as h, g as B, i as p, h as f, C as v, aj as k, aw as M, F as R, H as y, a7 as I, l as L, I as b, k as H, a3 as K, ab as O, ac as V, t as _, ah as x, M as F, az as D, aA as G, s as N, P as U, r as w, ai as z, aF as W, S as j, ak as q, a4 as J, a5 as X, T as Y, U as Q, ae as Z, ag as $, a9 as aa, af as ea, ar as sa, aq as oa, a2 as ta, J as ra, aa as na, O as ia, a8 as ga, au as la, N as ca, K as Ca, aC as ua, aD as da, ap as Sa, z as Ta, at as ma, an as Aa, aB as Ea, $ as Pa, D as ha, _ as Ba, Z as pa, a1 as fa, X as va, a0 as ka, ao as Ma, av as Ra, am as ya, al as Ia, W as La, Y as ba, aE as Ha, E as Ka, u as Oa, y as Va, V as _a, as as xa, Q as Fa, R as Da, G as Ga } from "./index-ChfbB6-A.js";
2
2
  export {
3
3
  s as AccordionContent,
4
4
  o as AccordionItem,
@@ -140,6 +140,7 @@ export interface IFieldConfig {
140
140
  stopOnFocusIn?: boolean;
141
141
  stopOnInteraction?: boolean;
142
142
  stopOnMouseEnter?: boolean;
143
+ direction?: "ltr" | "rtl";
143
144
  };
144
145
  image?: {
145
146
  high_priority?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levo-so/studio",
3
- "version": "0.1.56",
3
+ "version": "0.1.57",
4
4
  "author": "Levo Engineering <devs@theinternetfolks.com>",
5
5
  "description": "Levo Studio components and utilities for building block-based pages",
6
6
  "type": "module",