@levo-so/studio 0.1.104 → 0.1.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{BillingStep-2cKT5Pir.js → BillingStep-BNRcxjRl.js} +1 -1
- package/{Button-DtPwDEN0.js → Button-BIpdwMrO.js} +29 -29
- package/{EntryCard-j4uZb2cE.js → EntryCard-yFsTPjEj.js} +2 -2
- package/{LoginCard-asvOHIRg.js → LoginCard-CUapIHAo.js} +2 -2
- package/{LoginForm-BdsPVHdO.js → LoginForm-n-6Z7eVb.js} +1 -1
- package/{LoginModal-CyvbEK26.js → LoginModal-wyVhIJk8.js} +3 -3
- package/{MessageCard-lrXKEsBP.js → MessageCard-C2fU_Bo_.js} +1 -1
- package/{MessageFooter-D-dCrzJH.js → MessageFooter-4qIEK91O.js} +1 -1
- package/{ModalManager-BcPk4sbK.js → ModalManager-D-yKU_15.js} +1 -1
- package/{PendingApprovalCard-hYkupl9A.js → PendingApprovalCard-CDZRD8Jm.js} +2 -2
- package/{PopupRenderer-C7OHYphU-IWM6d7gW.js → PopupRenderer-CV5HY1dP-DlAn5Rc8.js} +281 -280
- package/{bookingCard-BdV2YSkq.js → bookingCard-MDpR8SL_.js} +3 -3
- package/collection.d.ts +5 -4
- package/collection.js +3 -3
- package/{dist-CsX9NP5P.js → dist-BjFMATnH.js} +1258 -896
- package/index.js +457 -449
- package/{generateRadiusScale-BpcgkGtN.js → inlineCollectionTheme-WpCvMKrW.js} +19 -4
- package/package.json +4 -4
- package/studio.css +1 -1
- package/{utils-CZLafTgN.js → utils-B01DL3RB.js} +1 -1
- package/widgets-NzmPF3Ji.js +215 -0
- package/widgets-eu5zXTf-.js +0 -230
- /package/{StripePaymentModal-DrLMN18M.js → StripePaymentModal-Do1xHctU.js} +0 -0
- /package/{dialog-C8-iHixJ.js → dialog-DoxC50i0.js} +0 -0
- /package/{useLogin-B2qE8710.js → useLogin-D4A5iRey.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./Button-
|
|
2
|
+
import { t as e } from "./Button-BIpdwMrO.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,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./Dialog-IrII0ugb.js";
|
|
3
|
-
import {
|
|
3
|
+
import { c as e, i as t, n, o as r, s as i, t as a, u as o } from "./PopupRenderer-CV5HY1dP-DlAn5Rc8.js";
|
|
4
4
|
import { n as s } from "./AuthProvider-C6bvedwF.js";
|
|
5
|
-
import { n as c } from "./ModalManager-
|
|
5
|
+
import { n as c } from "./ModalManager-D-yKU_15.js";
|
|
6
6
|
import { c as l } from "react/compiler-runtime";
|
|
7
7
|
import { $isIdentityContextReady as u } from "@levo-so/insights/stores";
|
|
8
8
|
import { cn as d, useLevo as f } from "@levo-so/react";
|
|
@@ -20,66 +20,66 @@ import re from "next/link";
|
|
|
20
20
|
var ie = async (e, t) => {
|
|
21
21
|
let n = {};
|
|
22
22
|
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 ?? [];
|
|
23
|
-
}, ae = _(() => import("./PopupRenderer-
|
|
24
|
-
let
|
|
25
|
-
if (
|
|
23
|
+
}, ae = _(() => import("./PopupRenderer-CV5HY1dP-DlAn5Rc8.js").then((e) => e.a).then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), k = (t) => {
|
|
24
|
+
let n = l(9), { siteId: r, pageId: i } = t, { fetch: a, logger: o } = f(), [s, c] = S(null), d = x(!1), p, h;
|
|
25
|
+
if (n[0] !== a || n[1] !== o || n[2] !== r ? (p = () => {
|
|
26
26
|
if (d.current) return;
|
|
27
|
-
let
|
|
28
|
-
d.current || (d.current = !0, ie(a, r ? { site_id: r } : void 0).then((
|
|
29
|
-
|
|
30
|
-
}).catch((
|
|
31
|
-
o?.error("Failed to fetch popups", { exception:
|
|
27
|
+
let t = () => {
|
|
28
|
+
d.current || (d.current = !0, ie(a, r ? { site_id: r } : void 0).then((t) => {
|
|
29
|
+
e(t), c(t);
|
|
30
|
+
}).catch((t) => {
|
|
31
|
+
o?.error("Failed to fetch popups", { exception: t }), e([]), c([]);
|
|
32
32
|
}).finally(A));
|
|
33
33
|
};
|
|
34
34
|
if (u.get()) {
|
|
35
|
-
|
|
35
|
+
t();
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
let
|
|
39
|
-
|
|
38
|
+
let n = u.listen((e) => {
|
|
39
|
+
e && (n(), t());
|
|
40
40
|
});
|
|
41
|
-
return () =>
|
|
41
|
+
return () => n();
|
|
42
42
|
}, h = [
|
|
43
43
|
a,
|
|
44
44
|
o,
|
|
45
45
|
r
|
|
46
|
-
],
|
|
46
|
+
], n[0] = a, n[1] = o, n[2] = r, n[3] = p, n[4] = h) : (p = n[3], h = n[4]), y(p, h), !s || s.length === 0) return null;
|
|
47
47
|
let g;
|
|
48
|
-
|
|
48
|
+
n[5] === Symbol.for("react.memo_cache_sentinel") ? (g = {
|
|
49
49
|
position: "relative",
|
|
50
50
|
zIndex: 99999
|
|
51
|
-
},
|
|
51
|
+
}, n[5] = g) : g = n[5];
|
|
52
52
|
let _;
|
|
53
|
-
return
|
|
53
|
+
return n[6] !== i || n[7] !== s ? (_ = /* @__PURE__ */ w("div", {
|
|
54
54
|
style: g,
|
|
55
55
|
children: /* @__PURE__ */ w(m, { children: /* @__PURE__ */ w(ae, {
|
|
56
56
|
popups: s,
|
|
57
57
|
pageId: i
|
|
58
58
|
}) })
|
|
59
|
-
}),
|
|
59
|
+
}), n[6] = i, n[7] = s, n[8] = _) : _ = n[8], _;
|
|
60
60
|
};
|
|
61
61
|
function A() {
|
|
62
|
-
return
|
|
62
|
+
return i(!1);
|
|
63
63
|
}
|
|
64
64
|
var j = () => {
|
|
65
|
-
let e = l(3),
|
|
66
|
-
return e[0] !== r || e[1] !==
|
|
67
|
-
popups:
|
|
65
|
+
let e = l(3), t = E(a), r = E(n), i = M, o = N, s;
|
|
66
|
+
return e[0] !== r || e[1] !== t ? (s = {
|
|
67
|
+
popups: t,
|
|
68
68
|
isLoading: r,
|
|
69
69
|
openPopup: i,
|
|
70
|
-
closePopup:
|
|
71
|
-
}, e[0] = r, e[1] =
|
|
70
|
+
closePopup: o
|
|
71
|
+
}, e[0] = r, e[1] = t, e[2] = s) : s = e[2], s;
|
|
72
72
|
};
|
|
73
73
|
function M(e) {
|
|
74
|
-
let n =
|
|
75
|
-
n &&
|
|
74
|
+
let n = a.get().find((t) => t.id === e);
|
|
75
|
+
n && t(n, {
|
|
76
76
|
force: !0,
|
|
77
77
|
trigger_type: "manual"
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
function N() {
|
|
81
|
-
let
|
|
82
|
-
|
|
81
|
+
let e = r.get().active_popup_id;
|
|
82
|
+
e && o(e);
|
|
83
83
|
}
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region src/providers/BlockContext.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as e } from "./dist-
|
|
2
|
+
import { r as e } from "./dist-BjFMATnH.js";
|
|
3
3
|
import { n as t } from "./AuthProvider-C6bvedwF.js";
|
|
4
4
|
import { t as n } from "./card-5ooLmYSr.js";
|
|
5
|
-
import { t as r } from "./MessageFooter-
|
|
5
|
+
import { t as r } from "./MessageFooter-4qIEK91O.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 { t as e } from "./LoginForm-
|
|
2
|
+
import { t as e } from "./LoginForm-n-6Z7eVb.js";
|
|
3
3
|
import { t } from "./card-5ooLmYSr.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";
|
|
@@ -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-CDZRD8Jm.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,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./useLogin-
|
|
2
|
+
import { t as e } from "./useLogin-D4A5iRey.js";
|
|
3
3
|
import { c as t, t as n } from "./authentication-hnV1BI8s.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";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as e } from "./AuthProvider-C6bvedwF.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-D-yKU_15.js";
|
|
4
|
+
import { a as n, n as r, o as i, r as a, t as o } from "./dialog-DoxC50i0.js";
|
|
5
|
+
import { t as s } from "./LoginForm-n-6Z7eVb.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
2
|
import { t as e } from "./card-5ooLmYSr.js";
|
|
3
|
-
import { t } from "./MessageFooter-
|
|
3
|
+
import { t } from "./MessageFooter-4qIEK91O.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-C6bvedwF.js";
|
|
3
|
-
import { t } from "./useLogin-
|
|
3
|
+
import { t } from "./useLogin-D4A5iRey.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-wyVhIJk8.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-
|
|
2
|
+
import { r as e } from "./dist-BjFMATnH.js";
|
|
3
3
|
import { t } from "./card-5ooLmYSr.js";
|
|
4
|
-
import { t as n } from "./MessageFooter-
|
|
4
|
+
import { t as n } from "./MessageFooter-4qIEK91O.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 = {
|