@levo-so/site-runtime 0.3.20 → 0.3.21
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-ByiYjJ0S.js +251 -0
- package/BookingCard-DdwLHVGw.js +816 -0
- package/CollectionLabel-CmUFfc_7.js +35 -0
- package/DateTimeWidget-Bk2tk_CT.js +254 -0
- package/{KBChatWidget-BMuZ-VI3.js → KBChatWidget-BXRRgelS.js} +1 -1
- package/{PhoneWidget-DPECohGT.js → PhoneWidget-FWE3jD_L.js} +3 -5
- package/{Popover-Cr0-X_ch.js → Popover-MSrVDAzg.js} +7 -7
- package/PopupBody-DWM55Zh5-B3ysApDM.js +158 -0
- package/PopupDialog-DwAAJ8JS-DkxjZaJL.js +260 -0
- package/PopupRenderer-BVtV4b9I-Dot4Syse.js +207 -0
- package/{RichTextWidget-C1QECDcg.js → RichTextWidget-KnIKESAD.js} +134 -135
- package/{RteThemeProvider-CMbSaFRQ.js → RteThemeProvider-DtTXGcCT.js} +2 -3
- package/Sonner-BsE4Y_t4.js +21 -0
- package/blog-content.js +8 -9
- package/dist-BVFCdirT.js +4471 -0
- package/dist-DEXGyFeH.js +376 -0
- package/index.js +12 -13
- package/{themeVars.cssm-ByhhC2Jm.js → inlineBaseTheme-DcNdMEYp.js} +35 -5
- package/{inlineCollectionTheme-CWcMCUti.js → inlineCollectionTheme-DjXuH3bK.js} +1 -1
- package/{inlineRteTheme-CRPtkNXy.js → inlineRteTheme-BYGIJM7P.js} +1 -1
- package/{kbChat-DtZ4vuCZ.js → kbChat-eFsau7hG.js} +2 -2
- package/package.json +23 -23
- package/{pillChrome-CEpWGNZB.js → pillChrome-Dy3ApFI5.js} +5 -5
- package/popups.js +1 -1
- package/{react-Cj_U6VZQ.js → react-CENbCy5d.js} +6 -5
- package/script.esm-uVCZU25S.js +62 -0
- package/start.js +1 -1
- package/styles.css +1 -1
- package/theme.cssm-iXnQwMCp.js +238 -0
- package/CollectionField-DCAXOmBN.js +0 -270
- package/CollectionInput-BJ__qcbk.js +0 -147
- package/DateTimeWidget-I0LvR-tO.js +0 -255
- package/Dialog-D-vRkU9N.js +0 -130
- package/LevoProvider-BkbKrvrI.js +0 -20
- package/PopupBody-BI-MJqmd-a-l3CaKZ.js +0 -159
- package/PopupRenderer-D66Gx63H-DpcNpbtU.js +0 -388
- package/ThemeProvider-DlFehjh1.js +0 -116
- package/Tooltip-BKQ5rIDh.js +0 -67
- package/VerifyButton-D0cj9Z5Q.js +0 -192
- package/createThemeExtension-4AUn51iJ.js +0 -15
- package/dist-IxiGbP-3.js +0 -3783
- package/dist-_lwl0kZw.js +0 -79
- package/inlineBaseTheme-BB9e6h5f.js +0 -9
- package/popupState-JmpeKzgM-D_77LiAa.js +0 -229
- package/react-B9yvlbH0.js +0 -74
- package/theme.cssm-DUzmx76l.js +0 -4
- package/usePopupRedirect-CAAdcpaW-BDa44PXN.js +0 -82
- /package/{content.cssm-XdMsTGIB.js → content.cssm-D_LSloGW.js} +0 -0
- /package/{es-CGQflL9T.js → es-CK20DkgT.js} +0 -0
- /package/{rolldown-runtime-CAFD8bLK.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
- /package/{routes-CyKmkoRM.js → routes-DO1BLfh9.js} +0 -0
- /package/{rteTheme.cssm-W4gTOijw.js → rteTheme.cssm-BRxusHY4.js} +0 -0
- /package/{script.esm-wR2d7rrv.js → script.esm-D4nvz3-k.js} +0 -0
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./ThemeProvider-DlFehjh1.js";
|
|
2
|
-
import { i as t, t as n } from "./LevoProvider-BkbKrvrI.js";
|
|
3
|
-
import { a as r, c as i, l as a, o, s, u as c } from "./Dialog-D-vRkU9N.js";
|
|
4
|
-
import { t as l } from "./theme.cssm-DUzmx76l.js";
|
|
5
|
-
import { d as u, f as d, l as f, n as p, o as m } from "./popupState-JmpeKzgM-D_77LiAa.js";
|
|
6
|
-
import { n as h, r as g, t as _ } from "./react-B9yvlbH0.js";
|
|
7
|
-
import { t as v } from "./rteTheme.cssm-W4gTOijw.js";
|
|
8
|
-
import { a as y, d as b, f as x, g as S, h as C, l as w, m as T, n as E, o as D, p as O, s as ee, t as te, u as k } from "./usePopupRedirect-CAAdcpaW-BDa44PXN.js";
|
|
9
|
-
import { c as A } from "react/compiler-runtime";
|
|
10
|
-
import { Suspense as j, lazy as M, useEffect as N, useRef as P } from "react";
|
|
11
|
-
import F from "clsx";
|
|
12
|
-
import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
13
|
-
import { IconX as z } from "@tabler/icons-react";
|
|
14
|
-
import { $activity as B, $isIdentityContextReady as ne, $pageLifecycle as re, $scrollBehavior as V, $session as ie, getTabCount as H } from "@levo-so/insights/stores";
|
|
15
|
-
//#region ../../libraries/levocn/dist/theme/utils/googleFonts.js
|
|
16
|
-
var U = "wght@300;400;500;600;700;900", W = (e) => !!e && e !== "inherit" && !e.includes(",") && !e.includes("var("), G = (...e) => {
|
|
17
|
-
let t = Array.from(new Set(e.filter((e) => typeof e == "string").map((e) => e.trim()).filter(W)));
|
|
18
|
-
return t.length === 0 ? null : `https://fonts.googleapis.com/css2?${t.map((e) => `family=${e.replace(/ /g, "+")}:${U}`).join("&")}&display=swap`;
|
|
19
|
-
}, K = (e) => {
|
|
20
|
-
if (document.querySelector(`link[rel="preconnect"][href="${e}"]`)) return;
|
|
21
|
-
let t = document.createElement("link");
|
|
22
|
-
t.rel = "preconnect", t.href = e, t.crossOrigin = "anonymous", document.head.appendChild(t);
|
|
23
|
-
}, q = (e) => {
|
|
24
|
-
let t = `family=${e.replace(/ /g, "+")}:`;
|
|
25
|
-
return Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href*=\"fonts.googleapis.com\"]")).some((e) => e.href.includes(t));
|
|
26
|
-
}, J = (...e) => {
|
|
27
|
-
let t = A(5), n = e, r;
|
|
28
|
-
t[0] === n ? r = t[1] : (r = n.filter(Y).map(ae).join("|"), t[0] = n, t[1] = r);
|
|
29
|
-
let i = r, a, o;
|
|
30
|
-
t[2] === i ? (a = t[3], o = t[4]) : (a = () => {
|
|
31
|
-
let e = G(...(i ? i.split("|") : []).filter(oe));
|
|
32
|
-
if (!e) return;
|
|
33
|
-
K("https://fonts.googleapis.com"), K("https://fonts.gstatic.com");
|
|
34
|
-
let t = document.createElement("link");
|
|
35
|
-
t.rel = "stylesheet", t.href = e, t.crossOrigin = "anonymous", t.setAttribute("data-levo-fonts", e), document.head.appendChild(t);
|
|
36
|
-
}, o = [i], t[2] = i, t[3] = a, t[4] = o), N(a, o);
|
|
37
|
-
};
|
|
38
|
-
function Y(e) {
|
|
39
|
-
return typeof e == "string" && e.trim() !== "";
|
|
40
|
-
}
|
|
41
|
-
function ae(e) {
|
|
42
|
-
return e.trim();
|
|
43
|
-
}
|
|
44
|
-
function oe(e) {
|
|
45
|
-
return !q(e);
|
|
46
|
-
}
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region ../../libraries/popups/dist/PopupDialog-DeOpYgDM.js
|
|
49
|
-
var se = (e) => (e ?? "16:9").replace(":", " / "), ce = (e) => {
|
|
50
|
-
if (e.content.coverImage?.srcset) return Object.entries(e.content.coverImage.srcset).filter(([e]) => e !== "path").map(([e, t]) => `${t} ${e}`).join(", ");
|
|
51
|
-
}, le = (e) => {
|
|
52
|
-
let t = A(18), { popup: n, disableInteraction: r, children: i } = e, { content: a } = n, o = C(n), s = !!o && !r, c;
|
|
53
|
-
t[0] !== a.coverImage || t[1] !== a.coverImageFocus || t[2] !== n ? (c = a.coverImage && /* @__PURE__ */ L("img", {
|
|
54
|
-
src: a.coverImage.location,
|
|
55
|
-
srcSet: ce(n),
|
|
56
|
-
alt: "",
|
|
57
|
-
className: "_1gklkndl",
|
|
58
|
-
style: a.coverImageFocus ? { objectPosition: a.coverImageFocus.replace("-", " ") } : void 0
|
|
59
|
-
}), t[0] = a.coverImage, t[1] = a.coverImageFocus, t[2] = n, t[3] = c) : c = t[3];
|
|
60
|
-
let l = c, u;
|
|
61
|
-
t[4] === a.coverImageRatio ? u = t[5] : (u = se(a.coverImageRatio), t[4] = a.coverImageRatio, t[5] = u);
|
|
62
|
-
let d;
|
|
63
|
-
t[6] === u ? d = t[7] : (d = { aspectRatio: u }, t[6] = u, t[7] = d);
|
|
64
|
-
let f = d, p;
|
|
65
|
-
t[8] !== a.action || t[9] !== a.coverImage || t[10] !== s || t[11] !== l || t[12] !== f || t[13] !== o ? (p = a.coverImage && (s ? /* @__PURE__ */ L("button", {
|
|
66
|
-
type: "button",
|
|
67
|
-
className: F("_1gklkndj", "_1gklkndk"),
|
|
68
|
-
style: f,
|
|
69
|
-
onClick: o ?? void 0,
|
|
70
|
-
"aria-label": a.action?.type === "redirect" ? a.action.label : void 0,
|
|
71
|
-
children: l
|
|
72
|
-
}) : /* @__PURE__ */ L("div", {
|
|
73
|
-
className: "_1gklkndj",
|
|
74
|
-
style: f,
|
|
75
|
-
children: l
|
|
76
|
-
})), t[8] = a.action, t[9] = a.coverImage, t[10] = s, t[11] = l, t[12] = f, t[13] = o, t[14] = p) : p = t[14];
|
|
77
|
-
let m;
|
|
78
|
-
return t[15] !== i || t[16] !== p ? (m = /* @__PURE__ */ R("div", {
|
|
79
|
-
className: b,
|
|
80
|
-
children: [p, i]
|
|
81
|
-
}), t[15] = i, t[16] = p, t[17] = m) : m = t[17], m;
|
|
82
|
-
}, ue = (t) => {
|
|
83
|
-
let n = A(19), r, i, a, o, s;
|
|
84
|
-
n[0] === t ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5]) : ({children: r, popupTheme: i, siteTheme: o, style: s, ...a} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s);
|
|
85
|
-
let c;
|
|
86
|
-
n[6] !== i || n[7] !== o ? (c = i ?? (o ? g(o) : null), n[6] = i, n[7] = o, n[8] = c) : c = n[8];
|
|
87
|
-
let u = c;
|
|
88
|
-
J(u?.fonts?.heading, u?.fonts?.body);
|
|
89
|
-
let d;
|
|
90
|
-
n[9] === Symbol.for("react.memo_cache_sentinel") ? (d = F(l, v), n[9] = d) : d = n[9];
|
|
91
|
-
let f;
|
|
92
|
-
n[10] === u ? f = n[11] : (f = h(u), n[10] = u, n[11] = f);
|
|
93
|
-
let p;
|
|
94
|
-
n[12] !== s || n[13] !== f ? (p = {
|
|
95
|
-
...f,
|
|
96
|
-
...s
|
|
97
|
-
}, n[12] = s, n[13] = f, n[14] = p) : p = n[14];
|
|
98
|
-
let m;
|
|
99
|
-
return n[15] !== r || n[16] !== a || n[17] !== p ? (m = /* @__PURE__ */ L(e, {
|
|
100
|
-
className: d,
|
|
101
|
-
cssReset: !0,
|
|
102
|
-
style: p,
|
|
103
|
-
...a,
|
|
104
|
-
children: r
|
|
105
|
-
}), n[15] = r, n[16] = a, n[17] = p, n[18] = m) : m = n[18], m;
|
|
106
|
-
}, de = M(() => import("./PopupBody-BI-MJqmd-a-l3CaKZ.js").then((e) => e.n).then((e) => ({ default: e.PopupBody }))), fe = (e) => {
|
|
107
|
-
let t = A(7), { size: n } = e, r = n ?? "medium", i;
|
|
108
|
-
t[0] === r ? i = t[1] : (i = k({ size: r }), t[0] = r, t[1] = i);
|
|
109
|
-
let a, o, s;
|
|
110
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ L("div", { className: O }), o = /* @__PURE__ */ L("div", { className: y }), s = /* @__PURE__ */ L("div", { className: E }), t[2] = a, t[3] = o, t[4] = s) : (a = t[2], o = t[3], s = t[4]);
|
|
111
|
-
let c;
|
|
112
|
-
return t[5] === i ? c = t[6] : (c = /* @__PURE__ */ R("div", {
|
|
113
|
-
className: i,
|
|
114
|
-
children: [
|
|
115
|
-
a,
|
|
116
|
-
o,
|
|
117
|
-
s
|
|
118
|
-
]
|
|
119
|
-
}), t[5] = i, t[6] = c), c;
|
|
120
|
-
}, X = () => {
|
|
121
|
-
let e = A(8), { popup: t } = T(), n;
|
|
122
|
-
e[0] === t.content.size ? n = e[1] : (n = /* @__PURE__ */ L(fe, { size: t.content.size }), e[0] = t.content.size, e[1] = n);
|
|
123
|
-
let r;
|
|
124
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ L(de, {}), e[2] = r) : r = e[2];
|
|
125
|
-
let i;
|
|
126
|
-
e[3] === n ? i = e[4] : (i = /* @__PURE__ */ L(j, {
|
|
127
|
-
fallback: n,
|
|
128
|
-
children: r
|
|
129
|
-
}), e[3] = n, e[4] = i);
|
|
130
|
-
let a;
|
|
131
|
-
return e[5] !== t || e[6] !== i ? (a = /* @__PURE__ */ L(le, {
|
|
132
|
-
popup: t,
|
|
133
|
-
children: i
|
|
134
|
-
}), e[5] = t, e[6] = i, e[7] = a) : a = e[7], a;
|
|
135
|
-
}, pe = (e) => e.content.position || "top-right", me = (e) => {
|
|
136
|
-
switch (e) {
|
|
137
|
-
case "close-press": return "close_button";
|
|
138
|
-
case "outside-press": return "outside_click";
|
|
139
|
-
case "escape-key": return "escape_key";
|
|
140
|
-
default: return "programmatic";
|
|
141
|
-
}
|
|
142
|
-
}, he = () => {
|
|
143
|
-
let e = A(32), { popup: t, callbacks: n } = T(), { placement: l, id: f } = t, p = _(u).active_popup_id === f, m = P(!1), h, g;
|
|
144
|
-
e[0] !== n || e[1] !== p || e[2] !== t ? (h = () => {
|
|
145
|
-
p && !m.current && (m.current = !0, n?.onPopupOpen?.(t, { trigger_type: d() })), p || (m.current = !1);
|
|
146
|
-
}, g = [
|
|
147
|
-
p,
|
|
148
|
-
t,
|
|
149
|
-
n
|
|
150
|
-
], e[0] = n, e[1] = p, e[2] = t, e[3] = h, e[4] = g) : (h = e[3], g = e[4]), N(h, g);
|
|
151
|
-
let v = te(), y, b, S, C, E, D, O, k;
|
|
152
|
-
if (e[5] !== v || e[6] !== p || e[7] !== l || e[8] !== t) {
|
|
153
|
-
let n = pe(t), u = l === "popup", d = l === "slide_in";
|
|
154
|
-
b = o, E = p, e[17] === v ? D = e[18] : (D = (e, t) => !e && v(me(t?.reason)), e[17] = v, e[18] = D), O = u, k = !u, y = i, e[19] === u ? S = e[20] : (S = u && /* @__PURE__ */ L(a, {}), e[19] = u, e[20] = S), C = u ? /* @__PURE__ */ L(c, {
|
|
155
|
-
className: ee,
|
|
156
|
-
children: /* @__PURE__ */ R(s.Popup, {
|
|
157
|
-
className: w({ placement: l }),
|
|
158
|
-
children: [/* @__PURE__ */ L(r, {
|
|
159
|
-
variant: "ghost",
|
|
160
|
-
size: "icon-xs",
|
|
161
|
-
className: x,
|
|
162
|
-
"aria-label": "Close popup",
|
|
163
|
-
children: /* @__PURE__ */ L(z, { size: 16 })
|
|
164
|
-
}), /* @__PURE__ */ L(X, {})]
|
|
165
|
-
})
|
|
166
|
-
}) : /* @__PURE__ */ R(s.Popup, {
|
|
167
|
-
className: F(w({
|
|
168
|
-
placement: l,
|
|
169
|
-
position: n
|
|
170
|
-
}), d && "_1gklkndd"),
|
|
171
|
-
children: [/* @__PURE__ */ L(r, {
|
|
172
|
-
variant: "ghost",
|
|
173
|
-
size: "icon-xs",
|
|
174
|
-
className: x,
|
|
175
|
-
"aria-label": "Close popup",
|
|
176
|
-
children: /* @__PURE__ */ L(z, { size: 16 })
|
|
177
|
-
}), /* @__PURE__ */ L(X, {})]
|
|
178
|
-
}), e[5] = v, e[6] = p, e[7] = l, e[8] = t, e[9] = y, e[10] = b, e[11] = S, e[12] = C, e[13] = E, e[14] = D, e[15] = O, e[16] = k;
|
|
179
|
-
} else y = e[9], b = e[10], S = e[11], C = e[12], E = e[13], D = e[14], O = e[15], k = e[16];
|
|
180
|
-
let j;
|
|
181
|
-
e[21] !== y || e[22] !== S || e[23] !== C ? (j = /* @__PURE__ */ R(y, { children: [S, C] }), e[21] = y, e[22] = S, e[23] = C, e[24] = j) : j = e[24];
|
|
182
|
-
let M;
|
|
183
|
-
return e[25] !== b || e[26] !== E || e[27] !== D || e[28] !== O || e[29] !== k || e[30] !== j ? (M = /* @__PURE__ */ L(b, {
|
|
184
|
-
open: E,
|
|
185
|
-
onOpenChange: D,
|
|
186
|
-
modal: O,
|
|
187
|
-
disablePointerDismissal: k,
|
|
188
|
-
children: j
|
|
189
|
-
}), e[25] = b, e[26] = E, e[27] = D, e[28] = O, e[29] = k, e[30] = j, e[31] = M) : M = e[31], M;
|
|
190
|
-
}, ge = 3e4, _e = 5e3, ve = 5e3, ye = 100, be = .5, xe = 5, Se = (e) => {
|
|
191
|
-
if (typeof document > "u") return () => {};
|
|
192
|
-
let t = !1, n = Date.now(), r = [], i = 0, a = null, o = () => Date.now() - n >= ge, s = () => {
|
|
193
|
-
t || (t = !0, c(), e());
|
|
194
|
-
}, c = () => {
|
|
195
|
-
a &&= (clearTimeout(a), null);
|
|
196
|
-
}, l = () => {
|
|
197
|
-
if (r.length < 2) return 0;
|
|
198
|
-
let e = r[0], t = r[r.length - 1], n = t.t - e.t;
|
|
199
|
-
return n === 0 ? 0 : (e.y - t.y) / n;
|
|
200
|
-
}, u = () => r.reduce((e, t) => t.y > e ? t.y : e, 0), d = (e) => {
|
|
201
|
-
r.push({
|
|
202
|
-
y: e.clientY,
|
|
203
|
-
t: Date.now()
|
|
204
|
-
}), r.length > xe && r.shift();
|
|
205
|
-
}, f = (e) => {
|
|
206
|
-
t || !o() || e.clientY > 0 || u() < ye || Date.now() - i < ve || l() < be || (c(), a = setTimeout(s, _e));
|
|
207
|
-
}, p = () => {
|
|
208
|
-
c();
|
|
209
|
-
}, m = () => {
|
|
210
|
-
i = Date.now();
|
|
211
|
-
}, h = re.listen((e) => {
|
|
212
|
-
o() && (e === "hidden" || e === "frozen") && s();
|
|
213
|
-
});
|
|
214
|
-
return document.addEventListener("mousemove", d, { passive: !0 }), document.addEventListener("mouseleave", f), document.addEventListener("mouseenter", p), window.addEventListener("scroll", m, { passive: !0 }), () => {
|
|
215
|
-
c(), document.removeEventListener("mousemove", d), document.removeEventListener("mouseleave", f), document.removeEventListener("mouseenter", p), window.removeEventListener("scroll", m), h();
|
|
216
|
-
};
|
|
217
|
-
}, Z = (e, t) => {
|
|
218
|
-
if (!e) return null;
|
|
219
|
-
let n = setTimeout(() => p(t, { trigger_type: "time_on_page" }), e);
|
|
220
|
-
return () => clearTimeout(n);
|
|
221
|
-
}, Ce = (e, t) => {
|
|
222
|
-
if (e === void 0) return null;
|
|
223
|
-
let n = !1;
|
|
224
|
-
return V.listen((r) => {
|
|
225
|
-
n || r.depth >= e && (n = !0, p(t, { trigger_type: "scroll_depth" }));
|
|
226
|
-
});
|
|
227
|
-
}, we = (e) => {
|
|
228
|
-
let t = !1;
|
|
229
|
-
return B.listen((n) => {
|
|
230
|
-
t || n.status === "idle" && (t = !0, p(e, { trigger_type: "inactivity" }));
|
|
231
|
-
});
|
|
232
|
-
}, Te = (e, t) => {
|
|
233
|
-
let n = A(11), r = t === void 0 ? !0 : t, { triggers: i, id: a } = e, o = _(ne), s;
|
|
234
|
-
n[0] === Symbol.for("react.memo_cache_sentinel") ? (s = [], n[0] = s) : s = n[0];
|
|
235
|
-
let c = P(s), l;
|
|
236
|
-
n[1] !== r || n[2] !== o || n[3] !== e || n[4] !== i ? (l = () => {
|
|
237
|
-
if (!r || !o || !i) return;
|
|
238
|
-
let t = [];
|
|
239
|
-
if (i.time_on_page.enabled) {
|
|
240
|
-
let n = Z(i.time_on_page.delay_ms, e);
|
|
241
|
-
n && t.push(n);
|
|
242
|
-
}
|
|
243
|
-
if (i.scroll_depth.enabled) {
|
|
244
|
-
let n = Ce(i.scroll_depth.percent, e);
|
|
245
|
-
n && t.push(n);
|
|
246
|
-
}
|
|
247
|
-
return i.exit_intent.enabled && t.push(Se(() => p(e, { trigger_type: "exit_intent" }))), i.inactivity.enabled && t.push(we(e)), c.current = t, () => {
|
|
248
|
-
t.forEach(Ee), c.current = [];
|
|
249
|
-
};
|
|
250
|
-
}, n[1] = r, n[2] = o, n[3] = e, n[4] = i, n[5] = l) : l = n[5];
|
|
251
|
-
let u;
|
|
252
|
-
n[6] !== r || n[7] !== o || n[8] !== a || n[9] !== i ? (u = [
|
|
253
|
-
r,
|
|
254
|
-
o,
|
|
255
|
-
a,
|
|
256
|
-
i
|
|
257
|
-
], n[6] = r, n[7] = o, n[8] = a, n[9] = i, n[10] = u) : u = n[10], N(l, u);
|
|
258
|
-
};
|
|
259
|
-
function Ee(e) {
|
|
260
|
-
return e();
|
|
261
|
-
}
|
|
262
|
-
var Q = (e, t) => {
|
|
263
|
-
switch (e.match_type) {
|
|
264
|
-
case "is_all_pages": return !0;
|
|
265
|
-
case "is": return e.page_id ? t.pageId === e.page_id ? e.value == null || e.value === t.path : !1 : e.value != null && e.value === t.path;
|
|
266
|
-
case "contains": return e.value != null && t.path.includes(e.value);
|
|
267
|
-
case "begins_with": return e.value != null && t.path.startsWith(e.value);
|
|
268
|
-
default: return !1;
|
|
269
|
-
}
|
|
270
|
-
}, $ = (e, t) => {
|
|
271
|
-
switch (e.match_type) {
|
|
272
|
-
case "exact": return t === e.value;
|
|
273
|
-
case "contains": return t.includes(e.value);
|
|
274
|
-
case "domain": try {
|
|
275
|
-
let n = new URL(t).hostname, r = e.value.toLowerCase();
|
|
276
|
-
return n === r || n.endsWith(`.${r}`);
|
|
277
|
-
} catch {
|
|
278
|
-
return !1;
|
|
279
|
-
}
|
|
280
|
-
default: return !1;
|
|
281
|
-
}
|
|
282
|
-
}, De = (e, t, n) => {
|
|
283
|
-
let r = e.pages?.exclude ?? [];
|
|
284
|
-
if (r.length > 0 && r.some((e) => Q(e, t))) return !1;
|
|
285
|
-
let i = e.pages?.include ?? [];
|
|
286
|
-
if (i.length > 0 && !i.some((e) => Q(e, t))) return !1;
|
|
287
|
-
let a = e.referrer?.include ?? [];
|
|
288
|
-
if (a.length > 0 && (!n || !a.some((e) => $(e, n)))) return !1;
|
|
289
|
-
let o = e.referrer?.exclude ?? [];
|
|
290
|
-
return !(o.length > 0 && n && o.some((e) => $(e, n)));
|
|
291
|
-
}, Oe = (e) => {
|
|
292
|
-
let t = A(4), { pageId: n } = e, { popup: r } = T(), i;
|
|
293
|
-
bb0: {
|
|
294
|
-
if (!r.target) {
|
|
295
|
-
i = !0;
|
|
296
|
-
break bb0;
|
|
297
|
-
}
|
|
298
|
-
if (typeof window > "u") {
|
|
299
|
-
i = !1;
|
|
300
|
-
break bb0;
|
|
301
|
-
}
|
|
302
|
-
let e;
|
|
303
|
-
if (t[0] !== n || t[1] !== r.target) {
|
|
304
|
-
let i = ie.get().identity?.referrer?.raw || document.referrer || null, a = new URL(window.location.href, window.location.origin);
|
|
305
|
-
e = De(r.target, {
|
|
306
|
-
pageId: n,
|
|
307
|
-
path: a.pathname
|
|
308
|
-
}, i), t[0] = n, t[1] = r.target, t[2] = e;
|
|
309
|
-
} else e = t[2];
|
|
310
|
-
i = e;
|
|
311
|
-
}
|
|
312
|
-
let a = i;
|
|
313
|
-
if (Te(r, a), !a) return null;
|
|
314
|
-
let o;
|
|
315
|
-
return t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ L(he, {}), t[3] = o) : o = t[3], o;
|
|
316
|
-
}, ke = () => {
|
|
317
|
-
let e = V.get(), t = B.get();
|
|
318
|
-
return {
|
|
319
|
-
trigger_scroll_depth: e.depth,
|
|
320
|
-
trigger_scroll_speed: e.speedCategory,
|
|
321
|
-
trigger_scroll_direction: e.direction,
|
|
322
|
-
trigger_activity_status: t.status,
|
|
323
|
-
trigger_activity_seconds: t.seconds,
|
|
324
|
-
trigger_tab_count: H()
|
|
325
|
-
};
|
|
326
|
-
}, Ae = (e) => {
|
|
327
|
-
let r = A(18), { popups: i, pageId: a } = e, o = t(), s = n(), c, l;
|
|
328
|
-
r[0] === i ? (c = r[1], l = r[2]) : (c = () => {
|
|
329
|
-
m(i), f(!1);
|
|
330
|
-
}, l = [i], r[0] = i, r[1] = c, r[2] = l), N(c, l);
|
|
331
|
-
let u;
|
|
332
|
-
r[3] === o ? u = r[4] : (u = (e, t) => {
|
|
333
|
-
!o || typeof o.track != "function" || o?.track(e, t);
|
|
334
|
-
}, r[3] = o, r[4] = u);
|
|
335
|
-
let d = u, p = je, h;
|
|
336
|
-
r[5] === d ? h = r[6] : (h = {
|
|
337
|
-
onPopupOpen: (e, t) => {
|
|
338
|
-
d("popup.view", {
|
|
339
|
-
...p(e),
|
|
340
|
-
trigger_type: t.trigger_type,
|
|
341
|
-
language: e.language,
|
|
342
|
-
...ke()
|
|
343
|
-
});
|
|
344
|
-
},
|
|
345
|
-
onPopupClose: (e, t) => {
|
|
346
|
-
d("popup.close", {
|
|
347
|
-
...p(e),
|
|
348
|
-
trigger_type: t.trigger_type,
|
|
349
|
-
dismiss_reason: t.dismiss_reason,
|
|
350
|
-
time_shown_ms: t.time_shown_ms
|
|
351
|
-
});
|
|
352
|
-
},
|
|
353
|
-
onAction: (e, t) => {
|
|
354
|
-
d("popup.action", {
|
|
355
|
-
...p(e),
|
|
356
|
-
...t
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
}, r[5] = d, r[6] = h);
|
|
360
|
-
let g = h, _;
|
|
361
|
-
if (r[7] !== g || r[8] !== s || r[9] !== a || r[10] !== i) {
|
|
362
|
-
let e;
|
|
363
|
-
r[12] !== g || r[13] !== s || r[14] !== a ? (e = (e) => /* @__PURE__ */ L(ue, {
|
|
364
|
-
popupTheme: e.theme,
|
|
365
|
-
siteTheme: e.site?.theme,
|
|
366
|
-
children: /* @__PURE__ */ L(D, {
|
|
367
|
-
popup: e,
|
|
368
|
-
callbacks: g,
|
|
369
|
-
client: s,
|
|
370
|
-
children: /* @__PURE__ */ L(Oe, { pageId: a })
|
|
371
|
-
})
|
|
372
|
-
}, e.id), r[12] = g, r[13] = s, r[14] = a, r[15] = e) : e = r[15], _ = i.map(e), r[7] = g, r[8] = s, r[9] = a, r[10] = i, r[11] = _;
|
|
373
|
-
} else _ = r[11];
|
|
374
|
-
let v;
|
|
375
|
-
return r[16] === _ ? v = r[17] : (v = /* @__PURE__ */ L(I, { children: _ }), r[16] = _, r[17] = v), v;
|
|
376
|
-
};
|
|
377
|
-
function je(e) {
|
|
378
|
-
return {
|
|
379
|
-
resource: "builder.popup",
|
|
380
|
-
identifier: e.id,
|
|
381
|
-
popup_title: e.title,
|
|
382
|
-
placement: e.placement,
|
|
383
|
-
popup_action_kind: e.content.action?.type || "none"
|
|
384
|
-
};
|
|
385
|
-
}
|
|
386
|
-
var Me = /* @__PURE__ */ S({ PopupRenderer: () => Ae });
|
|
387
|
-
//#endregion
|
|
388
|
-
export { Me as t };
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { c as e } from "react/compiler-runtime";
|
|
2
|
-
import { createContext as t, useContext as n, useEffect as r, useMemo as i, useRef as a } from "react";
|
|
3
|
-
import o from "clsx";
|
|
4
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
5
|
-
import { createRuntimeFn as c } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
-
//#region ../../libraries/levocn/dist/ui/button/Button.cssm.js
|
|
7
|
-
var l = c({
|
|
8
|
-
defaultClassName: "_1a7d0ek1 _1a7d0ek0",
|
|
9
|
-
variantClassNames: {
|
|
10
|
-
variant: {
|
|
11
|
-
default: "_1a7d0ek2",
|
|
12
|
-
outline: "_1a7d0ek3",
|
|
13
|
-
secondary: "_1a7d0ek4",
|
|
14
|
-
ghost: "_1a7d0ek5",
|
|
15
|
-
destructive: "_1a7d0ek6",
|
|
16
|
-
link: "_1a7d0ek7"
|
|
17
|
-
},
|
|
18
|
-
size: {
|
|
19
|
-
default: "_1a7d0ek8",
|
|
20
|
-
xs: "_1a7d0ek9",
|
|
21
|
-
sm: "_1a7d0eka",
|
|
22
|
-
lg: "_1a7d0ekb",
|
|
23
|
-
icon: "_1a7d0ekc",
|
|
24
|
-
"icon-xs": "_1a7d0ekd",
|
|
25
|
-
"icon-sm": "_1a7d0eke",
|
|
26
|
-
"icon-lg": "_1a7d0ekf"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
defaultVariants: {
|
|
30
|
-
variant: "default",
|
|
31
|
-
size: "default"
|
|
32
|
-
},
|
|
33
|
-
compoundVariants: []
|
|
34
|
-
}), u = (t) => {
|
|
35
|
-
let n = e(14), r, i, a, c, u;
|
|
36
|
-
n[0] === t ? (r = n[1], i = n[2], a = n[3], c = n[4], u = n[5]) : ({className: r, variant: u, size: a, type: c, ...i} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a, n[4] = c, n[5] = u);
|
|
37
|
-
let d = c === void 0 ? "button" : c, f;
|
|
38
|
-
n[6] !== r || n[7] !== a || n[8] !== u ? (f = o(l({
|
|
39
|
-
variant: u,
|
|
40
|
-
size: a
|
|
41
|
-
}), r), n[6] = r, n[7] = a, n[8] = u, n[9] = f) : f = n[9];
|
|
42
|
-
let p;
|
|
43
|
-
return n[10] !== i || n[11] !== f || n[12] !== d ? (p = /* @__PURE__ */ s("button", {
|
|
44
|
-
"data-slot": "button",
|
|
45
|
-
type: d,
|
|
46
|
-
className: f,
|
|
47
|
-
...i
|
|
48
|
-
}), n[10] = i, n[11] = f, n[12] = d, n[13] = p) : p = n[13], p;
|
|
49
|
-
}, d = "_1er5g5a0", f = /* @__PURE__ */ new Set(), p = {}, m = t(null), h = () => {
|
|
50
|
-
let t = e(1), r = n(m);
|
|
51
|
-
if (!r) {
|
|
52
|
-
let e;
|
|
53
|
-
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = {
|
|
54
|
-
portalRef: { current: null },
|
|
55
|
-
classes: f,
|
|
56
|
-
overrides: p
|
|
57
|
-
}, t[0] = e) : e = t[0], e;
|
|
58
|
-
}
|
|
59
|
-
return r;
|
|
60
|
-
}, g = ({ children: e, cssReset: t, className: c, style: l, portalToThemeRoot: u, ...h }) => {
|
|
61
|
-
let g = n(m), _ = a(null), v = !g && t !== !1 ? d : "", y = g?.classes ?? f, b = g?.overrides ?? p, x = i(() => {
|
|
62
|
-
let e = c ? c.split(/\s+/).filter(Boolean) : [], t = new Set(y);
|
|
63
|
-
for (let n of e) t.add(n);
|
|
64
|
-
return {
|
|
65
|
-
portalRef: _,
|
|
66
|
-
classes: t,
|
|
67
|
-
overrides: {
|
|
68
|
-
...b,
|
|
69
|
-
...l
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
}, [
|
|
73
|
-
y,
|
|
74
|
-
c,
|
|
75
|
-
b,
|
|
76
|
-
l
|
|
77
|
-
]);
|
|
78
|
-
r(() => {
|
|
79
|
-
if (u) return;
|
|
80
|
-
let e = document.createElement("div");
|
|
81
|
-
return document.body.appendChild(e), _.current = e, () => {
|
|
82
|
-
document.body.removeChild(e), _.current = null;
|
|
83
|
-
};
|
|
84
|
-
}, [u]), r(() => {
|
|
85
|
-
if (u) return;
|
|
86
|
-
let e = _.current;
|
|
87
|
-
if (!e) return;
|
|
88
|
-
e.className = o(v, ...x.classes), e.style.cssText = "";
|
|
89
|
-
let t = {
|
|
90
|
-
display: "contents",
|
|
91
|
-
...x.overrides
|
|
92
|
-
};
|
|
93
|
-
for (let [n, r] of Object.entries(t)) r != null && e.style.setProperty(n, String(r));
|
|
94
|
-
}, [
|
|
95
|
-
x.classes,
|
|
96
|
-
x.overrides,
|
|
97
|
-
v,
|
|
98
|
-
u
|
|
99
|
-
]);
|
|
100
|
-
let S = o(v, ...c ? c.split(/\s+/).filter((e) => e && !y.has(e)) : []);
|
|
101
|
-
return /* @__PURE__ */ s(m.Provider, {
|
|
102
|
-
value: x,
|
|
103
|
-
children: /* @__PURE__ */ s("div", {
|
|
104
|
-
...u ? { ref: _ } : {},
|
|
105
|
-
...S ? { className: S } : {},
|
|
106
|
-
style: {
|
|
107
|
-
display: "contents",
|
|
108
|
-
...l
|
|
109
|
-
},
|
|
110
|
-
...h,
|
|
111
|
-
children: e
|
|
112
|
-
})
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
//#endregion
|
|
116
|
-
export { l as i, g as n, u as r, h as t };
|
package/Tooltip-BKQ5rIDh.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { i as e, t } from "./ThemeProvider-DlFehjh1.js";
|
|
2
|
-
import { c as n } from "react/compiler-runtime";
|
|
3
|
-
import r from "clsx";
|
|
4
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
-
import { Tooltip as o } from "@base-ui/react/tooltip";
|
|
6
|
-
//#region ../../libraries/levocn/dist/ui/tooltip/Tooltip.cssm.js
|
|
7
|
-
var s = "_3zwjqd0", c = "_3zwjqd1", l = "_3zwjqd2", u = (e) => {
|
|
8
|
-
let t = n(6), r, a;
|
|
9
|
-
t[0] === e ? (r = t[1], a = t[2]) : ({delay: a, ...r} = e, t[0] = e, t[1] = r, t[2] = a);
|
|
10
|
-
let s = a === void 0 ? 0 : a, c;
|
|
11
|
-
return t[3] !== s || t[4] !== r ? (c = /* @__PURE__ */ i(o.Provider, {
|
|
12
|
-
"data-slot": "tooltip-provider",
|
|
13
|
-
delay: s,
|
|
14
|
-
...r
|
|
15
|
-
}), t[3] = s, t[4] = r, t[5] = c) : c = t[5], c;
|
|
16
|
-
}, d = (e) => {
|
|
17
|
-
let t = n(4), r;
|
|
18
|
-
t[0] === e ? r = t[1] : ({...r} = e, t[0] = e, t[1] = r);
|
|
19
|
-
let a;
|
|
20
|
-
return t[2] === r ? a = t[3] : (a = /* @__PURE__ */ i(o.Root, {
|
|
21
|
-
"data-slot": "tooltip",
|
|
22
|
-
...r
|
|
23
|
-
}), t[2] = r, t[3] = a), a;
|
|
24
|
-
}, f = (t) => {
|
|
25
|
-
let a = n(12), s, c, l, u;
|
|
26
|
-
a[0] === t ? (s = a[1], c = a[2], l = a[3], u = a[4]) : ({className: s, variant: u, size: l, ...c} = t, a[0] = t, a[1] = s, a[2] = c, a[3] = l, a[4] = u);
|
|
27
|
-
let d;
|
|
28
|
-
a[5] !== s || a[6] !== l || a[7] !== u ? (d = r(e({
|
|
29
|
-
variant: u,
|
|
30
|
-
size: l
|
|
31
|
-
}), s), a[5] = s, a[6] = l, a[7] = u, a[8] = d) : d = a[8];
|
|
32
|
-
let f;
|
|
33
|
-
return a[9] !== c || a[10] !== d ? (f = /* @__PURE__ */ i(o.Trigger, {
|
|
34
|
-
className: d,
|
|
35
|
-
...c
|
|
36
|
-
}), a[9] = c, a[10] = d, a[11] = f) : f = a[11], f;
|
|
37
|
-
}, p = (e) => {
|
|
38
|
-
let u = n(24), d, f, p, m, h, g, _;
|
|
39
|
-
u[0] === e ? (d = u[1], f = u[2], p = u[3], m = u[4], h = u[5], g = u[6], _ = u[7]) : ({className: f, side: m, sideOffset: h, align: g, alignOffset: _, children: d, ...p} = e, u[0] = e, u[1] = d, u[2] = f, u[3] = p, u[4] = m, u[5] = h, u[6] = g, u[7] = _);
|
|
40
|
-
let v = m === void 0 ? "top" : m, y = h === void 0 ? 8 : h, b = g === void 0 ? "center" : g, x = _ === void 0 ? 0 : _, { portalRef: S } = t(), C;
|
|
41
|
-
u[8] === f ? C = u[9] : (C = r(s, f), u[8] = f, u[9] = C);
|
|
42
|
-
let w;
|
|
43
|
-
u[10] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ i(o.Arrow, { className: c }), u[10] = w) : w = u[10];
|
|
44
|
-
let T;
|
|
45
|
-
u[11] !== d || u[12] !== p || u[13] !== C ? (T = /* @__PURE__ */ a(o.Popup, {
|
|
46
|
-
"data-slot": "tooltip-content",
|
|
47
|
-
className: C,
|
|
48
|
-
...p,
|
|
49
|
-
children: [d, w]
|
|
50
|
-
}), u[11] = d, u[12] = p, u[13] = C, u[14] = T) : T = u[14];
|
|
51
|
-
let E;
|
|
52
|
-
u[15] !== b || u[16] !== x || u[17] !== v || u[18] !== y || u[19] !== T ? (E = /* @__PURE__ */ i(o.Positioner, {
|
|
53
|
-
align: b,
|
|
54
|
-
alignOffset: x,
|
|
55
|
-
side: v,
|
|
56
|
-
sideOffset: y,
|
|
57
|
-
className: l,
|
|
58
|
-
children: T
|
|
59
|
-
}), u[15] = b, u[16] = x, u[17] = v, u[18] = y, u[19] = T, u[20] = E) : E = u[20];
|
|
60
|
-
let D;
|
|
61
|
-
return u[21] !== S || u[22] !== E ? (D = /* @__PURE__ */ i(o.Portal, {
|
|
62
|
-
container: S,
|
|
63
|
-
children: E
|
|
64
|
-
}), u[21] = S, u[22] = E, u[23] = D) : D = u[23], D;
|
|
65
|
-
};
|
|
66
|
-
//#endregion
|
|
67
|
-
export { u as i, f as n, p as r, d as t };
|