@levo-so/studio 0.2.1 → 0.2.3

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.
Files changed (40) hide show
  1. package/{BillingStep-D4P_J_PJ.js → BillingStep-mq3o5Hrf.js} +1 -1
  2. package/{Button-CmwbMGFV.js → Button-DIDhszPV.js} +69 -69
  3. package/{DateTimeWidget-CG9ylSgA.js → DateTimeWidget-DHUmirf1.js} +3 -3
  4. package/{EntryCard-FxB1uCis.js → EntryCard-DiMic9hv.js} +3 -3
  5. package/{KBChatWidget-_kcueoxi.js → KBChatWidget-hquzCtvm.js} +1 -1
  6. package/{LoginCard-D8ZVZjbR.js → LoginCard-Cs9X8LC8.js} +3 -3
  7. package/{LoginForm-Cg5F4guy.js → LoginForm-CLUpD3qG.js} +2 -2
  8. package/{LoginModal-Cn6Nsuz3.js → LoginModal-D9jhZlJr.js} +3 -3
  9. package/{MessageCard-Bx6pC8wW.js → MessageCard-CJltLT2a.js} +2 -2
  10. package/{MessageFooter-CsY4uBIJ.js → MessageFooter-CrhrI-su.js} +1 -1
  11. package/{ModalManager-BIKunQ8D.js → ModalManager-7Nhr8gTs.js} +1 -1
  12. package/{PendingApprovalCard-0ORO4y9v.js → PendingApprovalCard-wW8Ko-w8.js} +3 -3
  13. package/{PhoneWidget-CZr1PZ4G.js → PhoneWidget-BQEfbyV4.js} +3 -3
  14. package/{PopupRenderer-Bncp54gB-BOJj-taW.js → PopupRenderer-Bncp54gB-CQloeJYR.js} +1 -1
  15. package/{ProfileCard-C2lXYYkC.js → ProfileCard-BhnTmQaE.js} +4 -4
  16. package/{RichTextWidget-Dcq-NsEi.js → RichTextWidget-CStx2PMn.js} +3 -3
  17. package/Spinner-HCqR1eGW.js +7 -0
  18. package/{StripePaymentModal-DfFlmYsp.js → StripePaymentModal-Cw-AlxTS.js} +17 -17
  19. package/{VerifyButton-6BIXAEGp.js → VerifyButton-kdxRhJWI.js} +1 -1
  20. package/{bookingCard-CZ3Jj9sL.js → bookingCard-BSRCH57N.js} +201 -201
  21. package/cn-BL52QQS4.js +6 -0
  22. package/{dialog-CznAfWcE.js → dialog-RrTP-MGm.js} +32 -32
  23. package/{dist-B91ZHPA-.js → dist-D3lGqLBP.js} +5 -5
  24. package/index.js +1376 -1373
  25. package/{kbChat-BpJkUcpv.js → kbChat-g2bupQqp.js} +2 -2
  26. package/package.json +4 -4
  27. package/Spinner-wdUA5kVe.js +0 -7
  28. /package/{Beams-CDt4Mt3M.js → Beams-DVEhileN.js} +0 -0
  29. /package/{CollectionField-D25BVweU.js → CollectionField-CD6ok1A3.js} +0 -0
  30. /package/{CollectionInput-CG-Pu_51.js → CollectionInput-DyNbxIZ8.js} +0 -0
  31. /package/{Dots-DadBreAs.js → Dots-vp0H1Md3.js} +0 -0
  32. /package/{Gradient-CPoU73FR.js → Gradient-_5G8Qm5s.js} +0 -0
  33. /package/{Grid-CAXyHMvM.js → Grid-D694XUrO.js} +0 -0
  34. /package/{Popover-Dt4--ulK.js → Popover-V2O1gz6N.js} +0 -0
  35. /package/{Tooltip-DreKXbTO.js → Tooltip-DTnCNEcE.js} +0 -0
  36. /package/{Waves-DPbfUhRX.js → Waves-DeNoq6Bo.js} +0 -0
  37. /package/{authentication-BSNkm1-l.js → authentication-TdyaDNTn.js} +0 -0
  38. /package/{card-DFSlAwCq.js → card-Cb4m0p4i.js} +0 -0
  39. /package/{pillChrome-B4uuWJhY.js → pillChrome-Cx8qlbsn.js} +0 -0
  40. /package/{useLogin-mEuzGlb2.js → useLogin-BhysESLW.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as e } from "./Button-CmwbMGFV.js";
2
+ import { t as e } from "./Button-DIDhszPV.js";
3
3
  import { useState as t } from "react";
4
4
  import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  //#region src/components/bookingCard/BillingStep.tsx
@@ -1,44 +1,44 @@
1
1
  "use client";
2
2
  import "./Dialog-IrII0ugb.js";
3
- import { a as e, c as t, h as n, l as r, n as i, r as a, t as o } from "./PopupRenderer-Bncp54gB-BOJj-taW.js";
3
+ import { a as e, c as t, h as n, l as r, n as i, r as a, t as o } from "./PopupRenderer-Bncp54gB-CQloeJYR.js";
4
4
  import { n as s } from "./AuthProvider-CFQqiIf1.js";
5
- import { n as c } from "./ModalManager-BIKunQ8D.js";
6
- import { c as l } from "react/compiler-runtime";
7
- import { $isIdentityContextReady as u } from "@levo-so/insights/stores";
8
- import { useLevo as d } from "@levo-so/react";
9
- import * as f from "react";
10
- import { Suspense as p, createContext as m, forwardRef as h, lazy as g, memo as _, useContext as v, useEffect as y, useMemo as b, useRef as x, useState as S } from "react";
5
+ import { n as c } from "./ModalManager-7Nhr8gTs.js";
6
+ import { t as l } from "./cn-BL52QQS4.js";
7
+ import { c as u } from "react/compiler-runtime";
8
+ import { $isIdentityContextReady as d } from "@levo-so/insights/stores";
9
+ import { useLevo as f } from "@levo-so/react";
10
+ import * as p from "react";
11
+ import { Suspense as m, createContext as h, forwardRef as g, lazy as _, memo as v, useContext as ee, useEffect as y, useMemo as b, useRef as x, useState as S } from "react";
11
12
  import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
12
13
  import "clsx";
13
14
  import "@tabler/icons-react";
14
15
  import { useStore as E } from "@nanostores/react";
15
- import { animate as ee, scroll as te } from "motion/react";
16
- import ne from "html-react-parser";
17
- import { cn as D } from "@levo/utils/cn";
18
- import { LoaderCircle as O } from "lucide-react";
19
- import * as k from "motion/react-m";
20
- import re from "next/link";
21
- import ie from "isomorphic-dompurify";
16
+ import { animate as te, scroll as ne } from "motion/react";
17
+ import D from "html-react-parser";
18
+ import { LoaderCircle as re } from "lucide-react";
19
+ import * as ie from "motion/react-m";
20
+ import ae from "next/link";
21
+ import oe from "isomorphic-dompurify";
22
22
  //#region ../../libraries/popups/dist/index.js
23
- var ae = async (e, t) => {
23
+ var O = async (e, t) => {
24
24
  let n = {};
25
25
  return t?.site_id && (n.site_id = t.site_id), t?.locale && (n.locale = t.locale), t?.country && (n.country = t.country), (await e.url("/v1/studio/popup/list-active").query(n).get().json())?.content?.data ?? [];
26
- }, oe = g(() => import("./PopupRenderer-Bncp54gB-BOJj-taW.js").then((e) => e.o).then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), A = (e) => {
27
- let t = l(9), { siteId: n, pageId: r } = e, { fetch: a, logger: o } = d(), [s, c] = S(null), f = x(!1), m, h;
28
- if (t[0] !== a || t[1] !== o || t[2] !== n ? (m = () => {
29
- if (f.current) return;
26
+ }, k = _(() => import("./PopupRenderer-Bncp54gB-CQloeJYR.js").then((e) => e.o).then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), A = (e) => {
27
+ let t = u(9), { siteId: n, pageId: r } = e, { fetch: a, logger: o } = f(), [s, c] = S(null), l = x(!1), p, h;
28
+ if (t[0] !== a || t[1] !== o || t[2] !== n ? (p = () => {
29
+ if (l.current) return;
30
30
  let e = () => {
31
- f.current || (f.current = !0, ae(a, n ? { site_id: n } : void 0).then((e) => {
31
+ l.current || (l.current = !0, O(a, n ? { site_id: n } : void 0).then((e) => {
32
32
  i(e), c(e);
33
33
  }).catch((e) => {
34
34
  o?.error("Failed to fetch popups", { exception: e }), i([]), c([]);
35
35
  }).finally(j));
36
36
  };
37
- if (u.get()) {
37
+ if (d.get()) {
38
38
  e();
39
39
  return;
40
40
  }
41
- let t = u.listen((n) => {
41
+ let t = d.listen((n) => {
42
42
  n && (t(), e());
43
43
  });
44
44
  return () => t();
@@ -46,7 +46,7 @@ var ae = async (e, t) => {
46
46
  a,
47
47
  o,
48
48
  n
49
- ], t[0] = a, t[1] = o, t[2] = n, t[3] = m, t[4] = h) : (m = t[3], h = t[4]), y(m, h), !s || s.length === 0) return null;
49
+ ], t[0] = a, t[1] = o, t[2] = n, t[3] = p, t[4] = h) : (p = t[3], h = t[4]), y(p, h), !s || s.length === 0) return null;
50
50
  let g;
51
51
  t[5] === Symbol.for("react.memo_cache_sentinel") ? (g = {
52
52
  position: "relative",
@@ -55,7 +55,7 @@ var ae = async (e, t) => {
55
55
  let _;
56
56
  return t[6] !== r || t[7] !== s ? (_ = /* @__PURE__ */ w("div", {
57
57
  style: g,
58
- children: /* @__PURE__ */ w(p, { children: /* @__PURE__ */ w(oe, {
58
+ children: /* @__PURE__ */ w(m, { children: /* @__PURE__ */ w(k, {
59
59
  popups: s,
60
60
  pageId: r
61
61
  }) })
@@ -65,7 +65,7 @@ function j() {
65
65
  return a(!1);
66
66
  }
67
67
  var M = () => {
68
- let e = l(3), n = E(t), i = E(r), a = N, o = se, s;
68
+ let e = u(3), n = E(t), i = E(r), a = se, o = ce, s;
69
69
  return e[0] !== i || e[1] !== n ? (s = {
70
70
  popups: n,
71
71
  isLoading: i,
@@ -73,25 +73,25 @@ var M = () => {
73
73
  closePopup: o
74
74
  }, e[0] = i, e[1] = n, e[2] = s) : s = e[2], s;
75
75
  };
76
- function N(n) {
76
+ function se(n) {
77
77
  let r = t.get().find((e) => e.id === n);
78
78
  r && e(r, {
79
79
  force: !0,
80
80
  trigger_type: "manual"
81
81
  });
82
82
  }
83
- function se() {
83
+ function ce() {
84
84
  let e = n.get().active_popup_id;
85
85
  e && o(e);
86
86
  }
87
87
  //#endregion
88
88
  //#region src/providers/BlockContext.tsx
89
- var P = m({
89
+ var N = h({
90
90
  isStudio: !1,
91
91
  renderMode: "live",
92
92
  workspace_id: "",
93
93
  pageSource: []
94
- }), ce = ({ children: e, value: t }) => {
94
+ }), le = ({ children: e, value: t }) => {
95
95
  let [n, r] = S(t.parsedBlockData);
96
96
  y(() => {
97
97
  r((e) => t.parsedBlockData === e ? e : t.parsedBlockData);
@@ -120,12 +120,12 @@ var P = m({
120
120
  t.pageSource,
121
121
  t.languageVariants
122
122
  ]);
123
- return /* @__PURE__ */ w(P.Provider, {
123
+ return /* @__PURE__ */ w(N.Provider, {
124
124
  value: i,
125
125
  children: e
126
126
  });
127
- }, F = () => v(P), le = () => {
128
- let { languageVariants: e } = F();
127
+ }, P = () => ee(N), F = () => {
128
+ let { languageVariants: e } = P();
129
129
  return { languageVariants: e ?? [] };
130
130
  }, I = {
131
131
  opacity: 1,
@@ -231,8 +231,8 @@ var P = m({
231
231
  i,
232
232
  a
233
233
  ]), q = ({ children: e, ...t }) => {
234
- let { isStudio: n, renderMode: r } = F();
235
- return n ? e : /* @__PURE__ */ w(re, {
234
+ let { isStudio: n, renderMode: r } = P();
235
+ return n ? e : /* @__PURE__ */ w(ae, {
236
236
  ...t,
237
237
  children: e
238
238
  });
@@ -314,9 +314,9 @@ var P = m({
314
314
  r !== i && typeof r == "number" && typeof i == "number" && (a[e] = [r, i]);
315
315
  }
316
316
  if (Object.keys(a).length === 0) return;
317
- let c = ee(e, a, { ease: "linear" });
317
+ let c = te(e, a, { ease: "linear" });
318
318
  try {
319
- return te(c, {
319
+ return ne(c, {
320
320
  target: e,
321
321
  offset: [i.start, i.end]
322
322
  });
@@ -361,8 +361,8 @@ var P = m({
361
361
  children: e
362
362
  });
363
363
  }, X = (e) => {
364
- let t = k.create(e), n = ({ elementKey: n, children: r, ...i }) => {
365
- let { parsedBlockData: a, renderMode: o } = F(), { config: s, styles: c, content: l, id: u } = a || {}, d = s ? B(s, n) : void 0, f = c ? B(c, n) : void 0, p = l ? B(l, n) : void 0, m = b(() => {
364
+ let t = ie.create(e), n = ({ elementKey: n, children: r, ...i }) => {
365
+ let { parsedBlockData: a, renderMode: o } = P(), { config: s, styles: c, content: l, id: u } = a || {}, d = s ? B(s, n) : void 0, f = c ? B(c, n) : void 0, p = l ? B(l, n) : void 0, m = b(() => {
366
366
  let e = d || {}, t = i.config || {}, n = e.selectedVariants || {}, r = t.selectedVariants || {};
367
367
  return {
368
368
  ...e,
@@ -416,90 +416,90 @@ var P = m({
416
416
  })
417
417
  });
418
418
  };
419
- return n.displayName = `withBlockProps(${e.displayName || e.name || "Component"})`, _(n);
420
- }, Z = h(({ className: e, config: t, content: n, elementKey: r, generatedClassName: i, styles: a, noElementKey: o, ...s }, c) => {
419
+ return n.displayName = `withBlockProps(${e.displayName || e.name || "Component"})`, v(n);
420
+ }, Z = g(({ className: e, config: t, content: n, elementKey: r, generatedClassName: i, styles: a, noElementKey: o, ...s }, c) => {
421
421
  if (!n) return /* @__PURE__ */ w("span", {
422
422
  ref: c,
423
423
  style: { display: "none" }
424
424
  });
425
- let { kind: l, data: u } = n, d = t?.icon?.alt, f = D(e, i), p = {
425
+ let { kind: u, data: d } = n, f = t?.icon?.alt, p = l(e, i), m = {
426
426
  "data-levo_element_key": o ? void 0 : r,
427
427
  "data-levo_element_type": "Icon",
428
- className: f,
428
+ className: p,
429
429
  ...s
430
- }, m = d ? {
431
- "aria-label": d,
430
+ }, h = f ? {
431
+ "aria-label": f,
432
432
  role: "img"
433
433
  } : {};
434
- switch (l) {
434
+ switch (u) {
435
435
  case "emoji": return /* @__PURE__ */ w("p", {
436
436
  style: {
437
437
  width: "auto",
438
438
  height: "auto",
439
- ...p.style
439
+ ...m.style
440
440
  },
441
441
  ref: c,
442
- ...p,
443
442
  ...m,
444
- children: u?.unicode
443
+ ...h,
444
+ children: d?.unicode
445
445
  });
446
446
  case "icon": {
447
- let e = u;
447
+ let e = d;
448
448
  return e?.svgCode ? /* @__PURE__ */ w("div", {
449
449
  ref: c,
450
- ...p,
451
450
  ...m,
451
+ ...h,
452
452
  style: {
453
453
  display: a?.display ? void 0 : "inline-block",
454
- ...p.style
454
+ ...m.style
455
455
  },
456
456
  dangerouslySetInnerHTML: { __html: e.svgCode }
457
457
  }) : /* @__PURE__ */ w("span", {
458
458
  ref: c,
459
- ...p
459
+ ...m
460
460
  });
461
461
  }
462
462
  case "custom": return /* @__PURE__ */ w("img", {
463
463
  ref: c,
464
- src: u?.location,
465
- srcSet: u?.srcset?.path,
464
+ src: d?.location,
465
+ srcSet: d?.srcset?.path,
466
466
  decoding: "async",
467
- alt: d ?? "icon",
468
- ...p
467
+ alt: f ?? "icon",
468
+ ...m
469
469
  });
470
470
  default: return /* @__PURE__ */ w("span", {
471
471
  ref: c,
472
- ...p
472
+ ...m
473
473
  });
474
474
  }
475
475
  });
476
476
  Z.displayName = "BaseIcon";
477
- var Q = X(Z), $ = f.forwardRef(({ className: e, isLoading: t, loadingText: n, children: r, config: i = {}, styles: a, content: o, elementKey: s, generatedClassName: c, ...l }, u) => {
478
- let d = r ?? o, f = i, p = typeof d == "string" ? ne(ie.sanitize(d)) : d, m = (e, t) => e?.enabled ? /* @__PURE__ */ w(Q, {
477
+ var Q = X(Z), $ = p.forwardRef(({ className: e, isLoading: t, loadingText: n, children: r, config: i = {}, styles: a, content: o, elementKey: s, generatedClassName: c, ...u }, d) => {
478
+ let f = r ?? o, p = i, m = typeof f == "string" ? D(oe.sanitize(f)) : f, h = (e, t) => e?.enabled ? /* @__PURE__ */ w(Q, {
479
479
  noElementKey: !0,
480
480
  elementKey: `${s}_${t}Icon`
481
481
  }) : null;
482
- return d ? /* @__PURE__ */ w("button", {
482
+ return f ? /* @__PURE__ */ w("button", {
483
483
  "data-levo_element_key": s,
484
484
  "data-levo_element_type": "Button",
485
485
  type: "button",
486
- className: D("inline-flex items-center justify-center", e, c),
487
- ref: u,
488
- ...l,
489
- children: t ? /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(O, { className: D("h-4 w-4 animate-spin", n ? "mr-2" : "") }), n] }) : /* @__PURE__ */ T(C, { children: [
490
- m(f?.button_icons?.left, "left"),
486
+ className: l("inline-flex items-center justify-center", e, c),
487
+ ref: d,
488
+ ...u,
489
+ children: t ? /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(re, { className: l("h-4 w-4 animate-spin", n ? "mr-2" : "") }), n] }) : /* @__PURE__ */ T(C, { children: [
490
+ h(p?.button_icons?.left, "left"),
491
491
  /* @__PURE__ */ w("span", {
492
492
  className: "button-content",
493
- children: p
493
+ children: m
494
494
  }),
495
- m(f?.button_icons?.right, "right")
495
+ h(p?.button_icons?.right, "right")
496
496
  ] })
497
497
  }) : /* @__PURE__ */ w("span", {
498
- ref: u,
498
+ ref: d,
499
499
  style: { display: "none" }
500
500
  });
501
501
  });
502
502
  $.displayName = "BaseButton";
503
503
  var fe = X($);
504
504
  //#endregion
505
- export { F as _, W as a, A as b, U as c, G as d, L as f, ce as g, I as h, X as i, H as l, z as m, fe as n, B as o, R as p, Q as r, V as s, $ as t, K as u, le as v, M as y };
505
+ export { P as _, W as a, A as b, U as c, G as d, L as f, le as g, I as h, X as i, H as l, z as m, fe as n, B as o, R as p, Q as r, V as s, $ as t, K as u, F as v, M as y };
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./Button-lUfKisu8.js";
2
- import { r as t, t as n } from "./CollectionField-D25BVweU.js";
3
- import { t as ee } from "./CollectionInput-CG-Pu_51.js";
4
- import { a as r, i, n as a, r as o, t as s } from "./Popover-Dt4--ulK.js";
2
+ import { r as t, t as n } from "./CollectionField-CD6ok1A3.js";
3
+ import { t as ee } from "./CollectionInput-DyNbxIZ8.js";
4
+ import { a as r, i, n as a, r as o, t as s } from "./Popover-V2O1gz6N.js";
5
5
  import { c as te } from "react/compiler-runtime";
6
6
  import { useEffect as ne, useRef as c, useState as l } from "react";
7
7
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { n as e } from "./dist-B91ZHPA-.js";
2
+ import { n as e } from "./dist-D3lGqLBP.js";
3
3
  import { n as t } from "./AuthProvider-CFQqiIf1.js";
4
- import { t as n } from "./card-DFSlAwCq.js";
5
- import { t as r } from "./MessageFooter-CsY4uBIJ.js";
4
+ import { t as n } from "./card-Cb4m0p4i.js";
5
+ import { t as r } from "./MessageFooter-CrhrI-su.js";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
7
  var o = {
8
8
  header: "_header_emo7t_1",
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { a as e, c as t, f as n, h as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./pillChrome-B4uuWJhY.js";
2
+ import { a as e, c as t, f as n, h as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./pillChrome-Cx8qlbsn.js";
3
3
  import { Children as m, createContext as h, isValidElement as g, useCallback as _, useContext as v, useEffect as y, useLayoutEffect as b, useRef as x, useState as S } from "react";
4
4
  import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
5
5
  import { ArrowUp as E, Check as D, ChevronDown as O, Copy as k, MessageSquarePlus as A, Mic as j, RefreshCw as M, Sparkles as ee, Square as N, X as P } from "lucide-react";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as e } from "./LoginForm-Cg5F4guy.js";
3
- import { t } from "./card-DFSlAwCq.js";
2
+ import { t as e } from "./LoginForm-CLUpD3qG.js";
3
+ import { t } from "./card-Cb4m0p4i.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-0ORO4y9v.js")), l = ({ logo: r, siteName: l, page: u }) => {
11
+ }, c = r(() => import("./PendingApprovalCard-wW8Ko-w8.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,6 +1,6 @@
1
1
  "use client";
2
- import { t as e } from "./useLogin-mEuzGlb2.js";
3
- import { c as t, t as n } from "./authentication-BSNkm1-l.js";
2
+ import { t as e } from "./useLogin-BhysESLW.js";
3
+ import { c as t, t as n } from "./authentication-TdyaDNTn.js";
4
4
  import { LevoOAuth as r, errorHandler as i, successToast as a, useLevo as o } from "@levo-so/react";
5
5
  import { useEffect as s, useMemo as c, useRef as l, useState as u } from "react";
6
6
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { n as e } from "./AuthProvider-CFQqiIf1.js";
3
- import { n as t } from "./ModalManager-BIKunQ8D.js";
4
- import { a as n, n as r, o as i, r as a, t as o } from "./dialog-CznAfWcE.js";
5
- import { t as s } from "./LoginForm-Cg5F4guy.js";
3
+ import { n as t } from "./ModalManager-7Nhr8gTs.js";
4
+ import { a as n, n as r, o as i, r as a, t as o } from "./dialog-RrTP-MGm.js";
5
+ import { t as s } from "./LoginForm-CLUpD3qG.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-DFSlAwCq.js";
3
- import { t } from "./MessageFooter-CsY4uBIJ.js";
2
+ import { t as e } from "./card-Cb4m0p4i.js";
3
+ import { t } from "./MessageFooter-CrhrI-su.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-CFQqiIf1.js";
3
- import { t } from "./useLogin-mEuzGlb2.js";
3
+ import { t } from "./useLogin-BhysESLW.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-Cn6Nsuz3.js")), l = t({
5
+ var c = n(() => import("./LoginModal-D9jhZlJr.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 { n as e } from "./dist-B91ZHPA-.js";
3
- import { t } from "./card-DFSlAwCq.js";
4
- import { t as n } from "./MessageFooter-CsY4uBIJ.js";
2
+ import { n as e } from "./dist-D3lGqLBP.js";
3
+ import { t } from "./card-Cb4m0p4i.js";
4
+ import { t as n } from "./MessageFooter-CrhrI-su.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,7 +1,7 @@
1
1
  "use client";
2
- import { r as e, t } from "./CollectionField-D25BVweU.js";
3
- import { t as n } from "./VerifyButton-6BIXAEGp.js";
4
- import { t as r } from "./CollectionInput-CG-Pu_51.js";
2
+ import { r as e, t } from "./CollectionField-CD6ok1A3.js";
3
+ import { t as n } from "./VerifyButton-kdxRhJWI.js";
4
+ import { t as r } from "./CollectionInput-DyNbxIZ8.js";
5
5
  import { c as ee } from "react/compiler-runtime";
6
6
  import { useState as i } from "react";
7
7
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
@@ -2280,7 +2280,7 @@ var lt = se([R, L], (e, t) => ({
2280
2280
  ...r,
2281
2281
  children: a
2282
2282
  }) : null;
2283
- }, Pt = A(() => import("./dist-B91ZHPA-.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), Ft = {
2283
+ }, Pt = A(() => import("./dist-D3lGqLBP.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), Ft = {
2284
2284
  left: Ot,
2285
2285
  center: kt,
2286
2286
  right: At
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { r as e } from "./dist-B91ZHPA-.js";
2
+ import { r as e } from "./dist-D3lGqLBP.js";
3
3
  import { n as t } from "./AuthProvider-CFQqiIf1.js";
4
- import { t as n } from "./Spinner-wdUA5kVe.js";
5
- import { t as r } from "./card-DFSlAwCq.js";
6
- import { t as i } from "./MessageFooter-CsY4uBIJ.js";
4
+ import { t as n } from "./Spinner-HCqR1eGW.js";
5
+ import { t as r } from "./card-Cb4m0p4i.js";
6
+ import { t as i } from "./MessageFooter-CrhrI-su.js";
7
7
  import { useLevo as a } from "@levo-so/react";
8
8
  import { useEffect as o, useState as s } from "react";
9
9
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
@@ -2,9 +2,9 @@
2
2
  import { t as e } from "./Button-lUfKisu8.js";
3
3
  import { i as t, o as n, t as r } from "./nodeAlignment-DS9_DLGB.js";
4
4
  import { t as i } from "./RteThemeProvider-DxYOzcck.js";
5
- import { n as a, r as o, t as s } from "./CollectionField-D25BVweU.js";
6
- import { i as c, n as l, r as u, t as d } from "./Tooltip-DreKXbTO.js";
7
- import { a as f, i as p, n as m, o as h, r as g } from "./Popover-Dt4--ulK.js";
5
+ import { n as a, r as o, t as s } from "./CollectionField-CD6ok1A3.js";
6
+ import { i as c, n as l, r as u, t as d } from "./Tooltip-DTnCNEcE.js";
7
+ import { a as f, i as p, n as m, o as h, r as g } from "./Popover-V2O1gz6N.js";
8
8
  import { c as _ } from "react/compiler-runtime";
9
9
  import { forwardRef as v, useEffect as y, useState as b } from "react";
10
10
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
@@ -0,0 +1,7 @@
1
+ import { t as e } from "./cn-BL52QQS4.js";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { Loader2 as n } from "lucide-react";
4
+ //#region src/components/Spinner.tsx
5
+ var r = ({ className: r }) => /* @__PURE__ */ t(n, { className: e("h-8 w-8 animate-spin font-light", r) });
6
+ //#endregion
7
+ export { r as t };
@@ -1,18 +1,18 @@
1
1
  "use client";
2
- import { useCallback as e, useState as t } from "react";
3
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
- import { cn as i } from "@levo/utils/cn";
2
+ import { t as e } from "./cn-BL52QQS4.js";
3
+ import { useCallback as t, useState as n } from "react";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  import { XIcon as a } from "lucide-react";
6
6
  import { Portal as o } from "radix-ui";
7
7
  import { EmbeddedCheckout as s, EmbeddedCheckoutProvider as c } from "@stripe/react-stripe-js";
8
8
  //#region src/hooks/useStripePayment.tsx
9
9
  var l = () => {
10
- let [n, r] = t(null), [i, a] = t(null), [o, s] = t(!1), [c, l] = t(null);
10
+ let [e, r] = n(null), [i, a] = n(null), [o, s] = n(!1), [c, l] = n(null);
11
11
  return {
12
- stripePromise: n,
12
+ stripePromise: e,
13
13
  config: i,
14
14
  isOpen: o,
15
- openStripeCheckout: e(async (e) => {
15
+ openStripeCheckout: t(async (e) => {
16
16
  try {
17
17
  let { loadStripe: t } = await import("@stripe/stripe-js");
18
18
  r(t(e.key)), a({ clientSecret: e.client_secret }), s(!0);
@@ -20,34 +20,34 @@ var l = () => {
20
20
  console.error("Failed to initialize Stripe checkout:", e);
21
21
  }
22
22
  }, []),
23
- closeStripeCheckout: e(() => {
23
+ closeStripeCheckout: t(() => {
24
24
  s(!1), setTimeout(() => {
25
25
  a(null), r(null);
26
26
  }, 300);
27
27
  }, []),
28
28
  onComplete: c,
29
- setOnComplete: e((e) => {
29
+ setOnComplete: t((e) => {
30
30
  l(() => e);
31
31
  }, [])
32
32
  };
33
- }, u = ({ isOpen: e, onClose: t, stripePromise: l, clientSecret: u, onComplete: d }) => !e || !l || !u ? null : /* @__PURE__ */ n(o.Root, { children: /* @__PURE__ */ n("div", {
33
+ }, u = ({ isOpen: t, onClose: n, stripePromise: l, clientSecret: u, onComplete: d }) => !t || !l || !u ? null : /* @__PURE__ */ r(o.Root, { children: /* @__PURE__ */ r("div", {
34
34
  className: "fixed inset-0 z-100 flex items-start justify-center overflow-y-auto bg-black/50 p-4 pt-8 md:p-6 md:pt-10",
35
- children: /* @__PURE__ */ r("div", {
36
- className: i("relative flex w-full flex-col overflow-hidden rounded-2xl bg-white shadow-2xl", "max-w-[98vw] md:max-w-[1000px] lg:max-w-[1100px]", "min-h-[500px]", "my-auto", "fade-in-0 zoom-in-95 animate-in duration-200"),
37
- children: [/* @__PURE__ */ n("button", {
35
+ children: /* @__PURE__ */ i("div", {
36
+ className: e("relative flex w-full flex-col overflow-hidden rounded-2xl bg-white shadow-2xl", "max-w-[98vw] md:max-w-[1000px] lg:max-w-[1100px]", "min-h-[500px]", "my-auto", "fade-in-0 zoom-in-95 animate-in duration-200"),
37
+ children: [/* @__PURE__ */ r("button", {
38
38
  type: "button",
39
- onClick: t,
39
+ onClick: n,
40
40
  className: "absolute top-4 right-4 z-10 rounded-full bg-white/90 p-2.5 text-gray-500 shadow-md backdrop-blur-sm transition-all hover:bg-white hover:text-gray-700",
41
- children: /* @__PURE__ */ n(a, { className: "size-5" })
42
- }), /* @__PURE__ */ n("div", {
41
+ children: /* @__PURE__ */ r(a, { className: "size-5" })
42
+ }), /* @__PURE__ */ r("div", {
43
43
  className: "flex-1 overflow-hidden rounded-2xl py-6",
44
- children: /* @__PURE__ */ n(c, {
44
+ children: /* @__PURE__ */ r(c, {
45
45
  stripe: l,
46
46
  options: {
47
47
  clientSecret: u,
48
48
  onComplete: d
49
49
  },
50
- children: /* @__PURE__ */ n(s, { className: "stripe-embedded-checkout h-full" })
50
+ children: /* @__PURE__ */ r(s, { className: "stripe-embedded-checkout h-full" })
51
51
  })
52
52
  })]
53
53
  })
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { i as e, n as t, o as n, t as r } from "./Dialog-IrII0ugb.js";
3
3
  import { t as i } from "./Button-lUfKisu8.js";
4
- import { t as a } from "./CollectionInput-CG-Pu_51.js";
4
+ import { t as a } from "./CollectionInput-DyNbxIZ8.js";
5
5
  import { c as o } from "react/compiler-runtime";
6
6
  import { errorToast as s, successToast as c, useLevo as l } from "@levo-so/react";
7
7
  import { useEffect as u, useState as d } from "react";