@levo-so/site-runtime 0.3.15 → 0.3.17
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/CollectionField-DCAXOmBN.js +270 -0
- package/DateTimeWidget-I0LvR-tO.js +255 -0
- package/{Dialog-dT7y641z.js → Dialog-D-vRkU9N.js} +1 -1
- package/{KBChatWidget-GRi6sLpp.js → KBChatWidget-BMuZ-VI3.js} +222 -222
- package/{LevoProvider-Bsjkcwc8.js → LevoProvider-BkbKrvrI.js} +8 -8
- package/PhoneWidget-DPECohGT.js +99 -0
- package/{Popover-C29yJ7rz.js → Popover-Cr0-X_ch.js} +1 -1
- package/{PopupBody-BI-MJqmd-DgTQEzda.js → PopupBody-BI-MJqmd-BnSl6jJr.js} +23 -23
- package/{PopupRenderer-D66Gx63H-Cd9xJv33.js → PopupRenderer-D66Gx63H-B_CFOeCl.js} +47 -47
- package/{RichTextWidget-DfakML79.js → RichTextWidget-C1QECDcg.js} +127 -127
- package/{RteThemeProvider-BQmfSXSl.js → RteThemeProvider-CMbSaFRQ.js} +1 -1
- package/{ThemeProvider-DutrjSTF.js → ThemeProvider-DlFehjh1.js} +30 -30
- package/{Tooltip-CQB0LyxK.js → Tooltip-BKQ5rIDh.js} +1 -1
- package/{VerifyButton-BUT70lgz.js → VerifyButton-D0cj9Z5Q.js} +38 -38
- package/blog-content.js +67 -67
- package/{dist-6AIgW_iB.js → dist-C6-eVcUB.js} +10 -10
- package/{dist-CEdznbFW.js → dist-CXoCodlj.js} +1175 -1099
- package/index.js +407 -407
- package/{kbChat-a2dXSeRc.js → kbChat-DtZ4vuCZ.js} +26 -26
- package/package.json +3 -3
- package/popups.js +1 -1
- package/{usePopupRedirect-CAAdcpaW-Ddjyf4KK.js → usePopupRedirect-CAAdcpaW-BDa44PXN.js} +14 -14
- package/CollectionField-C-6a1ud4.js +0 -270
- package/DateTimeWidget-U3lD0q1q.js +0 -255
- package/PhoneWidget-DQQa4bL6.js +0 -99
package/blog-content.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as e } from "./dist-
|
|
3
|
-
import { t } from "./LevoProvider-
|
|
2
|
+
import { r as e } from "./dist-CXoCodlj.js";
|
|
3
|
+
import { t } from "./LevoProvider-BkbKrvrI.js";
|
|
4
4
|
import { t as n } from "./inlineBaseTheme-BB9e6h5f.js";
|
|
5
|
-
import { t as r } from "./dist-
|
|
5
|
+
import { t as r } from "./dist-C6-eVcUB.js";
|
|
6
6
|
import { _ as i, a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x } from "./react-Cj_U6VZQ.js";
|
|
7
7
|
import { i as S, n as C, r as w, t as T } from "./content.cssm-XdMsTGIB.js";
|
|
8
|
-
import { t as E } from "./RteThemeProvider-
|
|
8
|
+
import { t as E } from "./RteThemeProvider-CMbSaFRQ.js";
|
|
9
9
|
import { getLevoError as ee } from "@levo-so/core";
|
|
10
10
|
import { c as D } from "react/compiler-runtime";
|
|
11
|
-
import O, {
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
11
|
+
import O, { createContext as te, use as ne, useContext as re, useEffect as ie, useState as k } from "react";
|
|
12
|
+
import ae, { clsx as oe } from "clsx";
|
|
13
|
+
import { Fragment as se, jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
14
|
+
import { createRuntimeFn as ce } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
15
15
|
import { Extension as M, InputRule as le, Node as N, createAtomBlockMarkdownSpec as ue, isNodeSelection as de, mergeAttributes as P, nodePasteRule as fe } from "@tiptap/core";
|
|
16
16
|
import { NodeSelection as F, Selection as pe, TextSelection as I } from "@tiptap/pm/state";
|
|
17
17
|
import { Blockquote as me } from "@tiptap/extension-blockquote";
|
|
@@ -33,7 +33,7 @@ import { Typography as Le } from "@tiptap/extension-typography";
|
|
|
33
33
|
import { UniqueID as Re } from "@tiptap/extension-unique-id";
|
|
34
34
|
//#region ../../libraries/blog-renderer/dist/views/BookmarkView.cssm.js
|
|
35
35
|
var ze = "_2zpuyk0", Be = "_2zpuyk1", Ve = "_2zpuyk2", He = "_2zpuyk3", Ue = "_2zpuyk4", We = "_2zpuyk6 _2zpuyk5", Ge = "_2zpuyk7 _2zpuyk5", Ke = "_2zpuyk9", L = "_2zpuyka", qe = "_2zpuykb", Je = (e) => {
|
|
36
|
-
let n = D(30), { blogId: r, postId: i, workspaceId: a, interactive: o } = e, s = o === void 0 ? !0 : o, { blog: c, workspace: l, logger: u } = t(), d = a ?? l, [f, p] =
|
|
36
|
+
let n = D(30), { blogId: r, postId: i, workspaceId: a, interactive: o } = e, s = o === void 0 ? !0 : o, { blog: c, workspace: l, logger: u } = t(), d = a ?? l, [f, p] = k(!0), [m, h] = k(null), g, _;
|
|
37
37
|
if (n[0] !== c || n[1] !== r || n[2] !== u || n[3] !== i || n[4] !== d ? (g = () => {
|
|
38
38
|
if (!r || !i) {
|
|
39
39
|
p(!1);
|
|
@@ -57,11 +57,11 @@ var ze = "_2zpuyk0", Be = "_2zpuyk1", Ve = "_2zpuyk2", He = "_2zpuyk3", Ue = "_2
|
|
|
57
57
|
i,
|
|
58
58
|
d,
|
|
59
59
|
u
|
|
60
|
-
], n[0] = c, n[1] = r, n[2] = u, n[3] = i, n[4] = d, n[5] = g, n[6] = _) : (g = n[5], _ = n[6]),
|
|
60
|
+
], n[0] = c, n[1] = r, n[2] = u, n[3] = i, n[4] = d, n[5] = g, n[6] = _) : (g = n[5], _ = n[6]), ie(g, _), f) {
|
|
61
61
|
let e;
|
|
62
|
-
n[7] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
62
|
+
n[7] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ A("div", { className: Ge }), n[7] = e) : e = n[7];
|
|
63
63
|
let t;
|
|
64
|
-
n[8] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */
|
|
64
|
+
n[8] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ A("div", {
|
|
65
65
|
className: L,
|
|
66
66
|
style: {
|
|
67
67
|
height: "1rem",
|
|
@@ -69,28 +69,28 @@ var ze = "_2zpuyk0", Be = "_2zpuyk1", Ve = "_2zpuyk2", He = "_2zpuyk3", Ue = "_2
|
|
|
69
69
|
}
|
|
70
70
|
}), n[8] = t) : t = n[8];
|
|
71
71
|
let r;
|
|
72
|
-
n[9] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
72
|
+
n[9] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ A("div", {
|
|
73
73
|
className: L,
|
|
74
74
|
style: { width: "100%" }
|
|
75
75
|
}), n[9] = r) : r = n[9];
|
|
76
76
|
let i;
|
|
77
|
-
n[10] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */
|
|
77
|
+
n[10] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ A("div", {
|
|
78
78
|
className: L,
|
|
79
79
|
style: { width: "92%" }
|
|
80
80
|
}), n[10] = i) : i = n[10];
|
|
81
81
|
let a;
|
|
82
|
-
return n[11] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */
|
|
82
|
+
return n[11] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ A("div", {
|
|
83
83
|
className: ze,
|
|
84
|
-
children: /* @__PURE__ */
|
|
84
|
+
children: /* @__PURE__ */ j("div", {
|
|
85
85
|
className: `${Be} ${Ke}`,
|
|
86
|
-
children: [e, /* @__PURE__ */
|
|
86
|
+
children: [e, /* @__PURE__ */ j("div", {
|
|
87
87
|
className: Ve,
|
|
88
|
-
children: [t, /* @__PURE__ */
|
|
88
|
+
children: [t, /* @__PURE__ */ j("div", {
|
|
89
89
|
className: qe,
|
|
90
90
|
children: [
|
|
91
91
|
r,
|
|
92
92
|
i,
|
|
93
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ A("div", {
|
|
94
94
|
className: L,
|
|
95
95
|
style: { width: "60%" }
|
|
96
96
|
})
|
|
@@ -104,31 +104,31 @@ var ze = "_2zpuyk0", Be = "_2zpuyk1", Ve = "_2zpuyk2", He = "_2zpuyk3", Ue = "_2
|
|
|
104
104
|
let v = m.cover_image?.location, y = m.canonical_url || void 0, b = s ? y : void 0, x;
|
|
105
105
|
n[12] === s ? x = n[13] : (x = s ? void 0 : { pointerEvents: "none" }, n[12] = s, n[13] = x);
|
|
106
106
|
let S = s ? void 0 : -1, C;
|
|
107
|
-
n[14] !== v || n[15] !== m.title ? (C = v ? /* @__PURE__ */
|
|
107
|
+
n[14] !== v || n[15] !== m.title ? (C = v ? /* @__PURE__ */ A("img", {
|
|
108
108
|
className: We,
|
|
109
109
|
src: v,
|
|
110
110
|
alt: m.title,
|
|
111
111
|
loading: "lazy"
|
|
112
|
-
}) : /* @__PURE__ */
|
|
112
|
+
}) : /* @__PURE__ */ A("div", { className: Ge }), n[14] = v, n[15] = m.title, n[16] = C) : C = n[16];
|
|
113
113
|
let w;
|
|
114
|
-
n[17] === m.title ? w = n[18] : (w = /* @__PURE__ */
|
|
114
|
+
n[17] === m.title ? w = n[18] : (w = /* @__PURE__ */ A("h3", {
|
|
115
115
|
className: He,
|
|
116
116
|
children: m.title
|
|
117
117
|
}), n[17] = m.title, n[18] = w);
|
|
118
118
|
let T;
|
|
119
|
-
n[19] === m.summary ? T = n[20] : (T = m.summary ? /* @__PURE__ */
|
|
119
|
+
n[19] === m.summary ? T = n[20] : (T = m.summary ? /* @__PURE__ */ A("p", {
|
|
120
120
|
className: Ue,
|
|
121
121
|
children: m.summary
|
|
122
122
|
}) : null, n[19] = m.summary, n[20] = T);
|
|
123
123
|
let E;
|
|
124
|
-
n[21] !== w || n[22] !== T ? (E = /* @__PURE__ */
|
|
124
|
+
n[21] !== w || n[22] !== T ? (E = /* @__PURE__ */ j("div", {
|
|
125
125
|
className: Ve,
|
|
126
126
|
children: [w, T]
|
|
127
127
|
}), n[21] = w, n[22] = T, n[23] = E) : E = n[23];
|
|
128
128
|
let O;
|
|
129
|
-
return n[24] !== E || n[25] !== b || n[26] !== x || n[27] !== S || n[28] !== C ? (O = /* @__PURE__ */
|
|
129
|
+
return n[24] !== E || n[25] !== b || n[26] !== x || n[27] !== S || n[28] !== C ? (O = /* @__PURE__ */ A("div", {
|
|
130
130
|
className: ze,
|
|
131
|
-
children: /* @__PURE__ */
|
|
131
|
+
children: /* @__PURE__ */ j("a", {
|
|
132
132
|
className: Be,
|
|
133
133
|
href: b,
|
|
134
134
|
target: "_blank",
|
|
@@ -142,7 +142,7 @@ var ze = "_2zpuyk0", Be = "_2zpuyk1", Ve = "_2zpuyk2", He = "_2zpuyk3", Ue = "_2
|
|
|
142
142
|
let t = D(3), { node: n } = e, r = n?.attrs?.blogId, i = n?.attrs?.postId;
|
|
143
143
|
if (!r || !i) return null;
|
|
144
144
|
let a;
|
|
145
|
-
return t[0] !== r || t[1] !== i ? (a = /* @__PURE__ */
|
|
145
|
+
return t[0] !== r || t[1] !== i ? (a = /* @__PURE__ */ A(Je, {
|
|
146
146
|
blogId: r,
|
|
147
147
|
postId: i
|
|
148
148
|
}), t[0] = r, t[1] = i, t[2] = a) : a = t[2], a;
|
|
@@ -522,7 +522,7 @@ var ze = "_2zpuyk0", Be = "_2zpuyk1", Ve = "_2zpuyk2", He = "_2zpuyk3", Ue = "_2
|
|
|
522
522
|
unsetCallout: () => ({ commands: e }) => e.lift(this.name)
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
|
-
}), at = _e.configure({ defaultLanguage: null }), ot = "_10e5beq0", st =
|
|
525
|
+
}), at = _e.configure({ defaultLanguage: null }), ot = "_10e5beq0", st = ce({
|
|
526
526
|
defaultClassName: "_10e5beq1",
|
|
527
527
|
variantClassNames: { layout: {
|
|
528
528
|
"sidebar-left": "_10e5beq2",
|
|
@@ -1231,7 +1231,7 @@ var Rt = M.create({
|
|
|
1231
1231
|
let t = D(10), { label: n, href: r, target: i, actionType: a, onActivate: o } = e, s = n || "Button";
|
|
1232
1232
|
if (tt(a) === "button") {
|
|
1233
1233
|
let e;
|
|
1234
|
-
return t[0] !== o || t[1] !== s ? (e = /* @__PURE__ */
|
|
1234
|
+
return t[0] !== o || t[1] !== s ? (e = /* @__PURE__ */ A("button", {
|
|
1235
1235
|
className: R,
|
|
1236
1236
|
type: "button",
|
|
1237
1237
|
onClick: o,
|
|
@@ -1241,7 +1241,7 @@ var Rt = M.create({
|
|
|
1241
1241
|
let c = i === "_blank" ? "_blank" : "_self", l;
|
|
1242
1242
|
t[3] === r ? l = t[4] : (l = nt(r), t[3] = r, t[4] = l);
|
|
1243
1243
|
let u = l, d = c === "_blank" ? "noopener noreferrer" : void 0, f;
|
|
1244
|
-
return t[5] !== u || t[6] !== c || t[7] !== d || t[8] !== s ? (f = /* @__PURE__ */
|
|
1244
|
+
return t[5] !== u || t[6] !== c || t[7] !== d || t[8] !== s ? (f = /* @__PURE__ */ A("a", {
|
|
1245
1245
|
className: R,
|
|
1246
1246
|
href: u,
|
|
1247
1247
|
target: c,
|
|
@@ -1254,7 +1254,7 @@ var Rt = M.create({
|
|
|
1254
1254
|
let a = i, { openPopup: o } = r(), s = a.popupId, c;
|
|
1255
1255
|
t[2] !== o || t[3] !== s ? (c = s ? () => o(s) : void 0, t[2] = o, t[3] = s, t[4] = c) : c = t[4];
|
|
1256
1256
|
let l;
|
|
1257
|
-
t[5] !== a.actionType || t[6] !== a.href || t[7] !== a.label || t[8] !== a.target || t[9] !== c ? (l = /* @__PURE__ */
|
|
1257
|
+
t[5] !== a.actionType || t[6] !== a.href || t[7] !== a.label || t[8] !== a.target || t[9] !== c ? (l = /* @__PURE__ */ A(Jt, {
|
|
1258
1258
|
label: a.label,
|
|
1259
1259
|
href: a.href,
|
|
1260
1260
|
target: a.target,
|
|
@@ -1262,7 +1262,7 @@ var Rt = M.create({
|
|
|
1262
1262
|
onActivate: c
|
|
1263
1263
|
}), t[5] = a.actionType, t[6] = a.href, t[7] = a.label, t[8] = a.target, t[9] = c, t[10] = l) : l = t[10];
|
|
1264
1264
|
let u;
|
|
1265
|
-
return t[11] !== a.align || t[12] !== a.size || t[13] !== a.variant || t[14] !== l ? (u = /* @__PURE__ */
|
|
1265
|
+
return t[11] !== a.align || t[12] !== a.size || t[13] !== a.variant || t[14] !== l ? (u = /* @__PURE__ */ A("div", {
|
|
1266
1266
|
"data-type": "button",
|
|
1267
1267
|
"data-variant": a.variant,
|
|
1268
1268
|
"data-size": a.size,
|
|
@@ -1275,7 +1275,7 @@ var Rt = M.create({
|
|
|
1275
1275
|
if (e.type === "text") return e.value;
|
|
1276
1276
|
if (e.type === "element") {
|
|
1277
1277
|
let { className: n, ...r } = e.properties || {};
|
|
1278
|
-
return
|
|
1278
|
+
return O.createElement(e.tagName, {
|
|
1279
1279
|
key: t,
|
|
1280
1280
|
...r,
|
|
1281
1281
|
className: Array.isArray(n) ? n.join(" ") : n
|
|
@@ -1298,15 +1298,15 @@ var Rt = M.create({
|
|
|
1298
1298
|
}
|
|
1299
1299
|
return "";
|
|
1300
1300
|
}, Qt = ({ node: e, children: t }) => {
|
|
1301
|
-
let n =
|
|
1302
|
-
if (!i) return /* @__PURE__ */
|
|
1301
|
+
let n = ne(Xt()), r = e?.attrs?.language, i = $(e);
|
|
1302
|
+
if (!i) return /* @__PURE__ */ A("pre", { children: /* @__PURE__ */ A("code", { children: t }) });
|
|
1303
1303
|
let a;
|
|
1304
1304
|
try {
|
|
1305
1305
|
a = r && n.registered(r) ? n.highlight(r, i) : n.highlightAuto(i);
|
|
1306
1306
|
} catch {
|
|
1307
|
-
return /* @__PURE__ */
|
|
1307
|
+
return /* @__PURE__ */ A("pre", { children: /* @__PURE__ */ A("code", { children: i }) });
|
|
1308
1308
|
}
|
|
1309
|
-
return !a || !a.children || a.children.length === 0 ? /* @__PURE__ */
|
|
1309
|
+
return !a || !a.children || a.children.length === 0 ? /* @__PURE__ */ A("pre", { children: /* @__PURE__ */ A("code", { children: i }) }) : /* @__PURE__ */ A("pre", { children: /* @__PURE__ */ A("code", {
|
|
1310
1310
|
className: r ? `language-${r}` : "",
|
|
1311
1311
|
children: a.children.map((e, t) => Zt(e, `code-${t}`))
|
|
1312
1312
|
}) });
|
|
@@ -1314,24 +1314,24 @@ var Rt = M.create({
|
|
|
1314
1314
|
let t = D(9), n;
|
|
1315
1315
|
t[0] === e.node ? n = t[1] : (n = $(e.node), t[0] = e.node, t[1] = n);
|
|
1316
1316
|
let r = n, i;
|
|
1317
|
-
t[2] === r ? i = t[3] : (i = /* @__PURE__ */
|
|
1317
|
+
t[2] === r ? i = t[3] : (i = /* @__PURE__ */ A("pre", { children: /* @__PURE__ */ A("code", { children: r }) }), t[2] = r, t[3] = i);
|
|
1318
1318
|
let a;
|
|
1319
|
-
t[4] === e ? a = t[5] : (a = /* @__PURE__ */
|
|
1319
|
+
t[4] === e ? a = t[5] : (a = /* @__PURE__ */ A(Qt, { ...e }), t[4] = e, t[5] = a);
|
|
1320
1320
|
let o;
|
|
1321
|
-
return t[6] !== i || t[7] !== a ? (o = /* @__PURE__ */
|
|
1321
|
+
return t[6] !== i || t[7] !== a ? (o = /* @__PURE__ */ A(O.Suspense, {
|
|
1322
1322
|
fallback: i,
|
|
1323
1323
|
children: a
|
|
1324
1324
|
}), t[6] = i, t[7] = a, t[8] = o) : o = t[8], o;
|
|
1325
|
-
}, en =
|
|
1325
|
+
}, en = te({
|
|
1326
1326
|
open: !1,
|
|
1327
1327
|
toggle: () => {}
|
|
1328
1328
|
}), tn = (e) => {
|
|
1329
|
-
let t = D(15), { node: n, children: r } = e, [i, a] =
|
|
1329
|
+
let t = D(15), { node: n, children: r } = e, [i, a] = k(!!n.attrs?.open), o;
|
|
1330
1330
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = () => a(an), t[0] = o) : o = t[0];
|
|
1331
1331
|
let s = o, c = i && "is-open", l;
|
|
1332
|
-
t[1] === c ? l = t[2] : (l =
|
|
1332
|
+
t[1] === c ? l = t[2] : (l = oe("details", c), t[1] = c, t[2] = l);
|
|
1333
1333
|
let u;
|
|
1334
|
-
t[3] === i ? u = t[4] : (u = /* @__PURE__ */
|
|
1334
|
+
t[3] === i ? u = t[4] : (u = /* @__PURE__ */ A("button", {
|
|
1335
1335
|
type: "button",
|
|
1336
1336
|
"aria-expanded": i,
|
|
1337
1337
|
onClick: s
|
|
@@ -1342,23 +1342,23 @@ var Rt = M.create({
|
|
|
1342
1342
|
toggle: s
|
|
1343
1343
|
}, t[5] = i, t[6] = d);
|
|
1344
1344
|
let f;
|
|
1345
|
-
t[7] !== r || t[8] !== d ? (f = /* @__PURE__ */
|
|
1345
|
+
t[7] !== r || t[8] !== d ? (f = /* @__PURE__ */ A("div", { children: /* @__PURE__ */ A(en.Provider, {
|
|
1346
1346
|
value: d,
|
|
1347
1347
|
children: r
|
|
1348
1348
|
}) }), t[7] = r, t[8] = d, t[9] = f) : f = t[9];
|
|
1349
1349
|
let p;
|
|
1350
|
-
return t[10] !== i || t[11] !== l || t[12] !== u || t[13] !== f ? (p = /* @__PURE__ */
|
|
1350
|
+
return t[10] !== i || t[11] !== l || t[12] !== u || t[13] !== f ? (p = /* @__PURE__ */ j("div", {
|
|
1351
1351
|
className: l,
|
|
1352
1352
|
"data-open": i,
|
|
1353
1353
|
children: [u, f]
|
|
1354
1354
|
}), t[10] = i, t[11] = l, t[12] = u, t[13] = f, t[14] = p) : p = t[14], p;
|
|
1355
1355
|
}, nn = (e) => {
|
|
1356
|
-
let t = D(7), { children: n } = e, { open: r, toggle: i } =
|
|
1356
|
+
let t = D(7), { children: n } = e, { open: r, toggle: i } = re(en), a;
|
|
1357
1357
|
t[0] === i ? a = t[1] : (a = (e) => {
|
|
1358
1358
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), i());
|
|
1359
1359
|
}, t[0] = i, t[1] = a);
|
|
1360
1360
|
let o;
|
|
1361
|
-
return t[2] !== n || t[3] !== r || t[4] !== a || t[5] !== i ? (o = /* @__PURE__ */
|
|
1361
|
+
return t[2] !== n || t[3] !== r || t[4] !== a || t[5] !== i ? (o = /* @__PURE__ */ A("summary", {
|
|
1362
1362
|
role: "button",
|
|
1363
1363
|
tabIndex: 0,
|
|
1364
1364
|
"aria-expanded": r,
|
|
@@ -1367,10 +1367,10 @@ var Rt = M.create({
|
|
|
1367
1367
|
children: n
|
|
1368
1368
|
}), t[2] = n, t[3] = r, t[4] = a, t[5] = i, t[6] = o) : o = t[6], o;
|
|
1369
1369
|
}, rn = (e) => {
|
|
1370
|
-
let t = D(5), { children: n } = e, { open: r } =
|
|
1370
|
+
let t = D(5), { children: n } = e, { open: r } = re(en), i;
|
|
1371
1371
|
t[0] === r ? i = t[1] : (i = r ? {} : { hidden: !0 }, t[0] = r, t[1] = i);
|
|
1372
1372
|
let a;
|
|
1373
|
-
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */
|
|
1373
|
+
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ A("div", {
|
|
1374
1374
|
"data-type": "detailsContent",
|
|
1375
1375
|
...i,
|
|
1376
1376
|
children: n
|
|
@@ -1385,7 +1385,7 @@ var on = "_10kj0ro0", sn = "_10kj0ro1", cn = "_10kj0ro2", ln = (e) => e ? typeof
|
|
|
1385
1385
|
let t = D(15), { node: n, children: r, imageRef: i, imageProps: a, caption: o } = e, s = n.attrs, { src: c, alt: l, srcset: u, showCaption: d } = s, f = s["data-link-href"], p = n.content.childCount > 0, m = o === void 0 ? r : o, h = (d || p) && m != null;
|
|
1386
1386
|
if (!c) return null;
|
|
1387
1387
|
let g = l || "", _ = u || void 0, v;
|
|
1388
|
-
t[0] !== a || t[1] !== i || t[2] !== c || t[3] !== g || t[4] !== _ ? (v = /* @__PURE__ */
|
|
1388
|
+
t[0] !== a || t[1] !== i || t[2] !== c || t[3] !== g || t[4] !== _ ? (v = /* @__PURE__ */ A("img", {
|
|
1389
1389
|
ref: i,
|
|
1390
1390
|
src: c,
|
|
1391
1391
|
alt: g,
|
|
@@ -1395,19 +1395,19 @@ var on = "_10kj0ro0", sn = "_10kj0ro1", cn = "_10kj0ro2", ln = (e) => e ? typeof
|
|
|
1395
1395
|
...a
|
|
1396
1396
|
}), t[0] = a, t[1] = i, t[2] = c, t[3] = g, t[4] = _, t[5] = v) : v = t[5];
|
|
1397
1397
|
let y = v, b;
|
|
1398
|
-
t[6] !== y || t[7] !== f ? (b = f ? /* @__PURE__ */
|
|
1398
|
+
t[6] !== y || t[7] !== f ? (b = f ? /* @__PURE__ */ A("a", {
|
|
1399
1399
|
href: f,
|
|
1400
1400
|
target: "_blank",
|
|
1401
1401
|
rel: "noopener noreferrer",
|
|
1402
1402
|
children: y
|
|
1403
1403
|
}) : y, t[6] = y, t[7] = f, t[8] = b) : b = t[8];
|
|
1404
1404
|
let x;
|
|
1405
|
-
t[9] !== m || t[10] !== h ? (x = h && /* @__PURE__ */
|
|
1406
|
-
className:
|
|
1405
|
+
t[9] !== m || t[10] !== h ? (x = h && /* @__PURE__ */ A("div", {
|
|
1406
|
+
className: oe("figcaption", "_10kj0ro3"),
|
|
1407
1407
|
children: m
|
|
1408
1408
|
}), t[9] = m, t[10] = h, t[11] = x) : x = t[11];
|
|
1409
1409
|
let S;
|
|
1410
|
-
return t[12] !== b || t[13] !== x ? (S = /* @__PURE__ */
|
|
1410
|
+
return t[12] !== b || t[13] !== x ? (S = /* @__PURE__ */ j(se, { children: [b, x] }), t[12] = b, t[13] = x, t[14] = S) : S = t[14], S;
|
|
1411
1411
|
}, dn = (e) => {
|
|
1412
1412
|
let t = D(13), { node: n, children: r } = e, i = n.attrs, a = i["data-align"];
|
|
1413
1413
|
if (!i.src) return null;
|
|
@@ -1416,18 +1416,18 @@ var on = "_10kj0ro0", sn = "_10kj0ro1", cn = "_10kj0ro2", ln = (e) => e ? typeof
|
|
|
1416
1416
|
let s;
|
|
1417
1417
|
t[2] === o ? s = t[3] : (s = { width: o }, t[2] = o, t[3] = s);
|
|
1418
1418
|
let c;
|
|
1419
|
-
t[4] !== r || t[5] !== n ? (c = /* @__PURE__ */
|
|
1419
|
+
t[4] !== r || t[5] !== n ? (c = /* @__PURE__ */ A(un, {
|
|
1420
1420
|
node: n,
|
|
1421
1421
|
children: r
|
|
1422
1422
|
}), t[4] = r, t[5] = n, t[6] = c) : c = t[6];
|
|
1423
1423
|
let l;
|
|
1424
|
-
t[7] !== s || t[8] !== c ? (l = /* @__PURE__ */
|
|
1424
|
+
t[7] !== s || t[8] !== c ? (l = /* @__PURE__ */ A("div", {
|
|
1425
1425
|
className: sn,
|
|
1426
1426
|
style: s,
|
|
1427
1427
|
children: c
|
|
1428
1428
|
}), t[7] = s, t[8] = c, t[9] = l) : l = t[9];
|
|
1429
1429
|
let u;
|
|
1430
|
-
return t[10] !== a || t[11] !== l ? (u = /* @__PURE__ */
|
|
1430
|
+
return t[10] !== a || t[11] !== l ? (u = /* @__PURE__ */ A("div", {
|
|
1431
1431
|
"data-align": a,
|
|
1432
1432
|
className: on,
|
|
1433
1433
|
children: l
|
|
@@ -1446,7 +1446,7 @@ var on = "_10kj0ro0", sn = "_10kj0ro1", cn = "_10kj0ro2", ln = (e) => e ? typeof
|
|
|
1446
1446
|
let d;
|
|
1447
1447
|
n[2] === s ? d = n[3] : (d = { style: s ? { pointerEvents: "none" } : {} }, n[2] = s, n[3] = d);
|
|
1448
1448
|
let f;
|
|
1449
|
-
return n[4] !== r || n[5] !== s || n[6] !== c || n[7] !== d || n[8] !== i ? (f = /* @__PURE__ */
|
|
1449
|
+
return n[4] !== r || n[5] !== s || n[6] !== c || n[7] !== d || n[8] !== i ? (f = /* @__PURE__ */ A(e, {
|
|
1450
1450
|
collection_id: r,
|
|
1451
1451
|
formVariant: c,
|
|
1452
1452
|
submitButtonConfig: l,
|
|
@@ -1460,9 +1460,9 @@ var on = "_10kj0ro0", sn = "_10kj0ro1", cn = "_10kj0ro2", ln = (e) => e ? typeof
|
|
|
1460
1460
|
let n = D(4), { node: r } = e, i = r?.attrs?.collectionId, a = r?.attrs?.variant, { workspace: o } = t();
|
|
1461
1461
|
if (!i || !o) return null;
|
|
1462
1462
|
let s;
|
|
1463
|
-
return n[0] !== i || n[1] !== a || n[2] !== o ? (s = /* @__PURE__ */
|
|
1463
|
+
return n[0] !== i || n[1] !== a || n[2] !== o ? (s = /* @__PURE__ */ A("div", {
|
|
1464
1464
|
className: fn,
|
|
1465
|
-
children: /* @__PURE__ */
|
|
1465
|
+
children: /* @__PURE__ */ A(pn, {
|
|
1466
1466
|
collectionId: i,
|
|
1467
1467
|
workspaceId: o,
|
|
1468
1468
|
variant: a
|
|
@@ -1474,7 +1474,7 @@ var on = "_10kj0ro0", sn = "_10kj0ro1", cn = "_10kj0ro2", ln = (e) => e ? typeof
|
|
|
1474
1474
|
let i = r["data-align"] ?? "center", a;
|
|
1475
1475
|
t[0] === r.width ? a = t[1] : (a = B(r.width) ? { width: mt(r.width) } : void 0, t[0] = r.width, t[1] = a);
|
|
1476
1476
|
let o = r["data-id"] ?? void 0, s = r["data-mimetype"] ?? void 0, c = r.muted || r.autoplay, l;
|
|
1477
|
-
t[2] !== r.autoplay || t[3] !== r.controls || t[4] !== r.loop || t[5] !== r.src || t[6] !== o || t[7] !== s || t[8] !== c ? (l = /* @__PURE__ */
|
|
1477
|
+
t[2] !== r.autoplay || t[3] !== r.controls || t[4] !== r.loop || t[5] !== r.src || t[6] !== o || t[7] !== s || t[8] !== c ? (l = /* @__PURE__ */ A("video", {
|
|
1478
1478
|
src: r.src,
|
|
1479
1479
|
"data-id": o,
|
|
1480
1480
|
"data-mimetype": s,
|
|
@@ -1486,7 +1486,7 @@ var on = "_10kj0ro0", sn = "_10kj0ro1", cn = "_10kj0ro2", ln = (e) => e ? typeof
|
|
|
1486
1486
|
preload: "metadata"
|
|
1487
1487
|
}), t[2] = r.autoplay, t[3] = r.controls, t[4] = r.loop, t[5] = r.src, t[6] = o, t[7] = s, t[8] = c, t[9] = l) : l = t[9];
|
|
1488
1488
|
let u;
|
|
1489
|
-
return t[10] !== i || t[11] !== a || t[12] !== l ? (u = /* @__PURE__ */
|
|
1489
|
+
return t[10] !== i || t[11] !== a || t[12] !== l ? (u = /* @__PURE__ */ A("div", {
|
|
1490
1490
|
"data-type": "videoBlock",
|
|
1491
1491
|
"data-align": i,
|
|
1492
1492
|
style: a,
|
|
@@ -1770,16 +1770,16 @@ var on = "_10kj0ro0", sn = "_10kj0ro1", cn = "_10kj0ro2", ln = (e) => e ? typeof
|
|
|
1770
1770
|
} }
|
|
1771
1771
|
}), t[6] = r, t[7] = s);
|
|
1772
1772
|
let c = s, l;
|
|
1773
|
-
t[8] === n ? l = t[9] : (l =
|
|
1773
|
+
t[8] === n ? l = t[9] : (l = ae(T, n), t[8] = n, t[9] = l);
|
|
1774
1774
|
let u;
|
|
1775
|
-
t[10] !== c || t[11] !== i || t[12] !== a || t[13] !== l ? (u = /* @__PURE__ */
|
|
1775
|
+
t[10] !== c || t[11] !== i || t[12] !== a || t[13] !== l ? (u = /* @__PURE__ */ A("div", {
|
|
1776
1776
|
ref: i,
|
|
1777
1777
|
className: l,
|
|
1778
1778
|
...a,
|
|
1779
1779
|
children: c
|
|
1780
1780
|
}), t[10] = c, t[11] = i, t[12] = a, t[13] = l, t[14] = u) : u = t[14];
|
|
1781
1781
|
let d;
|
|
1782
|
-
return t[15] !== u || t[16] !== o ? (d = /* @__PURE__ */
|
|
1782
|
+
return t[15] !== u || t[16] !== o ? (d = /* @__PURE__ */ A(E, {
|
|
1783
1783
|
theme: o,
|
|
1784
1784
|
children: u
|
|
1785
1785
|
}), t[15] = u, t[16] = o, t[17] = d) : d = t[17], d;
|
|
@@ -1791,7 +1791,7 @@ var on = "_10kj0ro0", sn = "_10kj0ro1", cn = "_10kj0ro2", ln = (e) => e ? typeof
|
|
|
1791
1791
|
return t.json ? t.json : typeof t.html == "string" ? t.html.trim() ? En(t.html) : null : t.type === "doc" ? t : null;
|
|
1792
1792
|
}, kn = ({ content: e, ...t }) => {
|
|
1793
1793
|
let n = On(e);
|
|
1794
|
-
return n ? /* @__PURE__ */
|
|
1794
|
+
return n ? /* @__PURE__ */ A(Dn, {
|
|
1795
1795
|
content: n,
|
|
1796
1796
|
...t
|
|
1797
1797
|
}) : null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { t } from "./LevoProvider-
|
|
2
|
+
import { t } from "./LevoProvider-BkbKrvrI.js";
|
|
3
3
|
import { a as n, c as r, i, l as a, o, t as s, u as c } from "./popupState-JmpeKzgM-D_77LiAa.js";
|
|
4
4
|
import { t as l } from "./react-B9yvlbH0.js";
|
|
5
5
|
import { c as u } from "react/compiler-runtime";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { Suspense as d, lazy as f, useEffect as p, useRef as m, useState as h } from "react";
|
|
7
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
8
8
|
import { $isIdentityContextReady as _ } from "@levo-so/insights/stores";
|
|
9
9
|
//#region ../../libraries/popups/dist/index.js
|
|
10
10
|
var v = /* @__PURE__ */ e({
|
|
@@ -14,12 +14,12 @@ var v = /* @__PURE__ */ e({
|
|
|
14
14
|
}), y = async (e, t) => {
|
|
15
15
|
let n = {};
|
|
16
16
|
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 ?? [];
|
|
17
|
-
}, b =
|
|
18
|
-
let n = u(9), { siteId: r, pageId: i } = e, { fetch: a, logger: s } = t(), [c, l] =
|
|
17
|
+
}, b = f(() => import("./PopupRenderer-D66Gx63H-B_CFOeCl.js").then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), x = (e) => {
|
|
18
|
+
let n = u(9), { siteId: r, pageId: i } = e, { fetch: a, logger: s } = t(), [c, l] = h(null), f = m(!1), v, x;
|
|
19
19
|
if (n[0] !== a || n[1] !== s || n[2] !== r ? (v = () => {
|
|
20
|
-
if (
|
|
20
|
+
if (f.current) return;
|
|
21
21
|
let e = () => {
|
|
22
|
-
|
|
22
|
+
f.current || (f.current = !0, y(a, r ? { site_id: r } : void 0).then((e) => {
|
|
23
23
|
o(e), l(e);
|
|
24
24
|
}).catch((e) => {
|
|
25
25
|
s?.error("Failed to fetch popups", { exception: e }), o([]), l([]);
|
|
@@ -37,16 +37,16 @@ var v = /* @__PURE__ */ e({
|
|
|
37
37
|
a,
|
|
38
38
|
s,
|
|
39
39
|
r
|
|
40
|
-
], n[0] = a, n[1] = s, n[2] = r, n[3] = v, n[4] = x) : (v = n[3], x = n[4]),
|
|
40
|
+
], n[0] = a, n[1] = s, n[2] = r, n[3] = v, n[4] = x) : (v = n[3], x = n[4]), p(v, x), !c || c.length === 0) return null;
|
|
41
41
|
let C;
|
|
42
42
|
n[5] === Symbol.for("react.memo_cache_sentinel") ? (C = {
|
|
43
43
|
position: "relative",
|
|
44
44
|
zIndex: 99999
|
|
45
45
|
}, n[5] = C) : C = n[5];
|
|
46
46
|
let w;
|
|
47
|
-
return n[6] !== i || n[7] !== c ? (w = /* @__PURE__ */
|
|
47
|
+
return n[6] !== i || n[7] !== c ? (w = /* @__PURE__ */ g("div", {
|
|
48
48
|
style: C,
|
|
49
|
-
children: /* @__PURE__ */ d
|
|
49
|
+
children: /* @__PURE__ */ g(d, { children: /* @__PURE__ */ g(b, {
|
|
50
50
|
popups: c,
|
|
51
51
|
pageId: i
|
|
52
52
|
}) })
|