@levo-so/studio 0.2.3 → 0.3.2
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-mq3o5Hrf.js → BillingStep-D3OVeo3H.js} +1 -1
- package/{Button-DIDhszPV.js → Button-H07AsyeH.js} +31 -29
- package/{EntryCard-DiMic9hv.js → EntryCard-BfwGbFzQ.js} +1 -1
- package/KBChatWidget-BqcuZ1UF.js +1029 -0
- package/{LoginCard-Cs9X8LC8.js → LoginCard-DIZD6tfi.js} +1 -1
- package/{PendingApprovalCard-wW8Ko-w8.js → PendingApprovalCard-BlyH59Vy.js} +1 -1
- package/{PopupRenderer-Bncp54gB-CQloeJYR.js → PopupRenderer-DBKtkdmH-Ws7F9GmP.js} +234 -228
- package/{ProfileCard-BhnTmQaE.js → ProfileCard-DFgmQMUO.js} +1 -1
- package/{bookingCard-BSRCH57N.js → bookingCard-BKfK_WbW.js} +2 -2
- package/{dist-D3lGqLBP.js → dist-Ckw19x6H.js} +362 -360
- package/index.d.ts +39 -3
- package/index.js +1671 -1606
- package/kbChat-CfxwD3hz.js +173 -0
- package/package.json +3 -3
- package/pillChrome-CrJ9a5vj.js +30 -0
- package/studio.css +1 -1
- package/KBChatWidget-hquzCtvm.js +0 -1067
- package/kbChat-g2bupQqp.js +0 -163
- package/pillChrome-Cx8qlbsn.js +0 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./Button-
|
|
2
|
+
import { t as e } from "./Button-H07AsyeH.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,6 +1,6 @@
|
|
|
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
5
|
import { n as c } from "./ModalManager-7Nhr8gTs.js";
|
|
6
6
|
import { t as l } from "./cn-BL52QQS4.js";
|
|
@@ -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,
|