@levo-so/studio 0.3.1 → 0.3.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.
- package/{BillingStep-DNg2PTXV.js → BillingStep-DhK0Mkjr.js} +1 -1
- package/{Button-DUBI4k7m.js → Button-Ho7QJuCT.js} +32 -30
- package/{EntryCard-B3wpp5oI.js → EntryCard-BfwGbFzQ.js} +1 -1
- package/{KBChatWidget-BAvoYVFq.js → KBChatWidget-0dtBwnDA.js} +383 -435
- package/{LoginCard-CaLgm9c4.js → LoginCard-CMeVif-w.js} +2 -2
- package/{LoginForm-CLUpD3qG.js → LoginForm-DhGQD4uI.js} +11 -11
- package/{LoginModal-D9jhZlJr.js → LoginModal-Ui2GnSje.js} +2 -2
- package/{ModalManager-7Nhr8gTs.js → ModalManager-BW3Dol7F.js} +1 -1
- package/{PendingApprovalCard-ARwwmFAe.js → PendingApprovalCard-BlyH59Vy.js} +1 -1
- package/{PopupRenderer-Bncp54gB-DTM3Wdxp.js → PopupRenderer-DBKtkdmH-Ws7F9GmP.js} +234 -228
- package/{ProfileCard-CnL0X_Ui.js → ProfileCard-DFgmQMUO.js} +1 -1
- package/{bookingCard-C0_NNfko.js → bookingCard-DUMPxFp4.js} +2 -2
- package/{dist-DanVCpXe.js → dist-Ckw19x6H.js} +5 -4
- package/index.d.ts +18 -26
- package/index.js +3399 -2998
- package/{kbChat-DnIItqUJ.js → kbChat-BuTZ4Ytf.js} +31 -26
- package/package.json +7 -7
- package/pillChrome-CrJ9a5vj.js +30 -0
- package/studio.css +1 -1
- package/pillChrome-BHFzM9re.js +0 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./Button-
|
|
2
|
+
import { t as e } from "./Button-Ho7QJuCT.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, l as t, m as n, o as r, r as i, t as a, u as o } from "./PopupRenderer-DBKtkdmH-Ws7F9GmP.js";
|
|
4
4
|
import { n as s } from "./AuthProvider-CFQqiIf1.js";
|
|
5
|
-
import { n as c } from "./ModalManager-
|
|
5
|
+
import { n as c } from "./ModalManager-BW3Dol7F.js";
|
|
6
6
|
import { t as l } from "./cn-BL52QQS4.js";
|
|
7
7
|
import { c as u } from "react/compiler-runtime";
|
|
8
8
|
import { $isIdentityContextReady as d } from "@levo-so/insights/stores";
|
|
@@ -23,66 +23,66 @@ import oe from "isomorphic-dompurify";
|
|
|
23
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
|
-
}, k = _(() => import("./PopupRenderer-
|
|
27
|
-
let
|
|
28
|
-
if (
|
|
26
|
+
}, k = _(() => import("./PopupRenderer-DBKtkdmH-Ws7F9GmP.js").then((e) => e.i).then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), A = (e) => {
|
|
27
|
+
let n = u(9), { siteId: r, pageId: i } = e, { fetch: a, logger: o } = f(), [s, c] = S(null), l = x(!1), p, h;
|
|
28
|
+
if (n[0] !== a || n[1] !== o || n[2] !== r ? (p = () => {
|
|
29
29
|
if (l.current) return;
|
|
30
30
|
let e = () => {
|
|
31
|
-
l.current || (l.current = !0, O(a,
|
|
32
|
-
|
|
31
|
+
l.current || (l.current = !0, O(a, r ? { site_id: r } : void 0).then((e) => {
|
|
32
|
+
t(e), c(e);
|
|
33
33
|
}).catch((e) => {
|
|
34
|
-
o?.error("Failed to fetch popups", { exception: e }),
|
|
34
|
+
o?.error("Failed to fetch popups", { exception: e }), t([]), c([]);
|
|
35
35
|
}).finally(j));
|
|
36
36
|
};
|
|
37
37
|
if (d.get()) {
|
|
38
38
|
e();
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
-
let
|
|
42
|
-
|
|
41
|
+
let n = d.listen((t) => {
|
|
42
|
+
t && (n(), e());
|
|
43
43
|
});
|
|
44
|
-
return () =>
|
|
44
|
+
return () => n();
|
|
45
45
|
}, h = [
|
|
46
46
|
a,
|
|
47
47
|
o,
|
|
48
|
-
|
|
49
|
-
],
|
|
48
|
+
r
|
|
49
|
+
], 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;
|
|
50
50
|
let g;
|
|
51
|
-
|
|
51
|
+
n[5] === Symbol.for("react.memo_cache_sentinel") ? (g = {
|
|
52
52
|
position: "relative",
|
|
53
53
|
zIndex: 99999
|
|
54
|
-
},
|
|
54
|
+
}, n[5] = g) : g = n[5];
|
|
55
55
|
let _;
|
|
56
|
-
return
|
|
56
|
+
return n[6] !== i || n[7] !== s ? (_ = /* @__PURE__ */ w("div", {
|
|
57
57
|
style: g,
|
|
58
58
|
children: /* @__PURE__ */ w(m, { children: /* @__PURE__ */ w(k, {
|
|
59
59
|
popups: s,
|
|
60
|
-
pageId:
|
|
60
|
+
pageId: i
|
|
61
61
|
}) })
|
|
62
|
-
}),
|
|
62
|
+
}), n[6] = i, n[7] = s, n[8] = _) : _ = n[8], _;
|
|
63
63
|
};
|
|
64
64
|
function j() {
|
|
65
|
-
return
|
|
65
|
+
return o(!1);
|
|
66
66
|
}
|
|
67
67
|
var M = () => {
|
|
68
|
-
let
|
|
69
|
-
return
|
|
68
|
+
let t = u(3), n = E(i), r = E(e), a = se, o = ce, s;
|
|
69
|
+
return t[0] !== r || t[1] !== n ? (s = {
|
|
70
70
|
popups: n,
|
|
71
|
-
isLoading:
|
|
71
|
+
isLoading: r,
|
|
72
72
|
openPopup: a,
|
|
73
73
|
closePopup: o
|
|
74
|
-
},
|
|
74
|
+
}, t[0] = r, t[1] = n, t[2] = s) : s = t[2], s;
|
|
75
75
|
};
|
|
76
|
-
function se(
|
|
77
|
-
let
|
|
78
|
-
|
|
76
|
+
function se(e) {
|
|
77
|
+
let t = i.get().find((t) => t.id === e);
|
|
78
|
+
t && n(t, {
|
|
79
79
|
force: !0,
|
|
80
80
|
trigger_type: "manual"
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
function ce() {
|
|
84
|
-
let e =
|
|
85
|
-
e &&
|
|
84
|
+
let e = a.get().active_popup_id;
|
|
85
|
+
e && r(e);
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region src/providers/BlockContext.tsx
|
|
@@ -107,7 +107,8 @@ var N = h({
|
|
|
107
107
|
renderMode: t.renderMode,
|
|
108
108
|
workspace_id: t.workspace_id,
|
|
109
109
|
pageSource: t.pageSource,
|
|
110
|
-
languageVariants: t.languageVariants
|
|
110
|
+
languageVariants: t.languageVariants,
|
|
111
|
+
language: t.language
|
|
111
112
|
}), [
|
|
112
113
|
n,
|
|
113
114
|
r,
|
|
@@ -118,7 +119,8 @@ var N = h({
|
|
|
118
119
|
t.renderMode,
|
|
119
120
|
t.workspace_id,
|
|
120
121
|
t.pageSource,
|
|
121
|
-
t.languageVariants
|
|
122
|
+
t.languageVariants,
|
|
123
|
+
t.language
|
|
122
124
|
]);
|
|
123
125
|
return /* @__PURE__ */ w(N.Provider, {
|
|
124
126
|
value: i,
|