@levo-so/site-runtime 0.3.16 → 0.3.18

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.
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { r as e } from "./ThemeProvider-DutrjSTF.js";
3
- import { t } from "./LevoProvider-Bsjkcwc8.js";
2
+ import { r as e } from "./ThemeProvider-DlFehjh1.js";
3
+ import { t } from "./LevoProvider-BkbKrvrI.js";
4
4
  import { t as n } from "./CollectionInput-BJ__qcbk.js";
5
- import { i as r, n as i, o as a, t as o } from "./Dialog-dT7y641z.js";
5
+ import { i as r, n as i, o as a, t as o } from "./Dialog-D-vRkU9N.js";
6
6
  import { c as s } from "react/compiler-runtime";
7
- import c from "clsx";
8
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
9
- import { useEffect as f, useState as p } from "react";
7
+ import { useEffect as c, useState as l } from "react";
8
+ import u from "clsx";
9
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
10
10
  import { IconCircleCheck as m, IconLoader as h } from "@tabler/icons-react";
11
11
  import { toast as g } from "sonner";
12
12
  //#region ../../libraries/levocn/dist/ui/spinner/Spinner.cssm.js
@@ -14,9 +14,9 @@ var _ = "_1k4xirc1", v = (e) => {
14
14
  let t = s(8), n, r;
15
15
  t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
16
16
  let i;
17
- t[3] === n ? i = t[4] : (i = c(_, n), t[3] = n, t[4] = i);
17
+ t[3] === n ? i = t[4] : (i = u(_, n), t[3] = n, t[4] = i);
18
18
  let a;
19
- return t[5] !== r || t[6] !== i ? (a = /* @__PURE__ */ u(h, {
19
+ return t[5] !== r || t[6] !== i ? (a = /* @__PURE__ */ f(h, {
20
20
  role: "status",
21
21
  "aria-label": "Loading",
22
22
  className: i,
@@ -36,42 +36,42 @@ var _ = "_1k4xirc1", v = (e) => {
36
36
  position: "bottom-right",
37
37
  ...n
38
38
  });
39
- }, x = "_6o7s4x0", S = "qkytrb0", C = "qkytrb1", w = "qkytrb2", T = "qkytrb3", E = "qkytrb4", D = "qkytrb5", O = "qkytrb6", k = ({ isOpen: s, onClose: c, value: l, type: m = "email", onVerifySuccess: h }) => {
40
- let { membership: g } = t(), [_, v] = p(""), [k, A] = p(!1), [j, M] = p(!1), [N, P] = p(30);
41
- return f(() => {
39
+ }, x = "_6o7s4x0", S = "qkytrb0", C = "qkytrb1", w = "qkytrb2", T = "qkytrb3", E = "qkytrb4", D = "qkytrb5", O = "qkytrb6", k = ({ isOpen: s, onClose: u, value: d, type: m = "email", onVerifySuccess: h }) => {
40
+ let { membership: g } = t(), [_, v] = l(""), [k, A] = l(!1), [j, M] = l(!1), [N, P] = l(30);
41
+ return c(() => {
42
42
  let e;
43
43
  return s && N > 0 && (e = setInterval(() => {
44
44
  P((e) => e - 1);
45
45
  }, 1e3)), () => clearInterval(e);
46
- }, [s, N]), f(() => {
46
+ }, [s, N]), c(() => {
47
47
  s && (v(""), P(30), A(!1), M(!1));
48
- }, [s]), /* @__PURE__ */ u(a, {
48
+ }, [s]), /* @__PURE__ */ f(a, {
49
49
  open: s,
50
50
  onOpenChange: (e) => {
51
- e || c();
51
+ e || u();
52
52
  },
53
- children: /* @__PURE__ */ d(i, {
53
+ children: /* @__PURE__ */ p(i, {
54
54
  className: x,
55
- children: [/* @__PURE__ */ u(o, { children: /* @__PURE__ */ u(r, { children: `Verify ${m === "email" ? "Email" : "Phone"}` }) }), /* @__PURE__ */ d("div", {
55
+ children: [/* @__PURE__ */ f(o, { children: /* @__PURE__ */ f(r, { children: `Verify ${m === "email" ? "Email" : "Phone"}` }) }), /* @__PURE__ */ p("div", {
56
56
  className: S,
57
57
  children: [
58
- /* @__PURE__ */ d("div", {
58
+ /* @__PURE__ */ p("div", {
59
59
  className: C,
60
60
  children: [
61
61
  "Enter the 4-digit code sent to ",
62
- /* @__PURE__ */ u("strong", { children: l }),
62
+ /* @__PURE__ */ f("strong", { children: d }),
63
63
  ".",
64
64
  " ",
65
- /* @__PURE__ */ u("button", {
66
- onClick: () => c(),
65
+ /* @__PURE__ */ f("button", {
66
+ onClick: () => u(),
67
67
  className: w,
68
68
  children: "Change?"
69
69
  })
70
70
  ]
71
71
  }),
72
- /* @__PURE__ */ u("div", {
72
+ /* @__PURE__ */ f("div", {
73
73
  className: T,
74
- children: /* @__PURE__ */ u(n, {
74
+ children: /* @__PURE__ */ f(n, {
75
75
  value: _,
76
76
  onChange: (e) => {
77
77
  v(e.target.value.replace(/\D/g, "").slice(0, 4));
@@ -81,17 +81,17 @@ var _ = "_1k4xirc1", v = (e) => {
81
81
  className: D
82
82
  })
83
83
  }),
84
- /* @__PURE__ */ d("div", {
84
+ /* @__PURE__ */ p("div", {
85
85
  className: E,
86
- children: [/* @__PURE__ */ u(e, {
86
+ children: [/* @__PURE__ */ f(e, {
87
87
  onClick: async () => {
88
88
  if (!(!_ || _.length !== 4)) {
89
89
  A(!0);
90
90
  try {
91
91
  await g?.signInWithOtp({
92
- content: l,
92
+ content: d,
93
93
  code: _
94
- }), b("Verification successful"), h(l), c();
94
+ }), b("Verification successful"), h(d), u();
95
95
  } catch (e) {
96
96
  let t = e;
97
97
  y(t?.message || "Invalid OTP", t?.title || "Verification Failed");
@@ -103,19 +103,19 @@ var _ = "_1k4xirc1", v = (e) => {
103
103
  disabled: _.length !== 4 || k,
104
104
  className: "w-full",
105
105
  children: k ? "Verifying..." : "Verify"
106
- }), /* @__PURE__ */ u("div", {
106
+ }), /* @__PURE__ */ f("div", {
107
107
  className: O,
108
- children: N > 0 ? /* @__PURE__ */ d("span", { children: [
108
+ children: N > 0 ? /* @__PURE__ */ p("span", { children: [
109
109
  "Resend code in ",
110
110
  N,
111
111
  "s"
112
- ] }) : /* @__PURE__ */ u("button", {
112
+ ] }) : /* @__PURE__ */ f("button", {
113
113
  onClick: async () => {
114
114
  if (!(N > 0)) {
115
115
  M(!0);
116
116
  try {
117
117
  await g?.requestOtp({
118
- content: l,
118
+ content: d,
119
119
  medium: m === "phone" ? "whatsapp" : "email"
120
120
  }), b("OTP resent successfully"), P(30);
121
121
  } catch (e) {
@@ -137,7 +137,7 @@ var _ = "_1k4xirc1", v = (e) => {
137
137
  })
138
138
  });
139
139
  }, A = "jfrbe10", j = "jfrbe11", M = "jfrbe12", N = ({ value: n, type: r, isVerified: i, onVerifySuccess: a, onStateChange: o }) => {
140
- let { membership: s } = t(), [c, f] = p(!1), [h, g] = p(!1), _ = (e) => {
140
+ let { membership: s } = t(), [c, u] = l(!1), [h, g] = l(!1), _ = (e) => {
141
141
  o && o(e);
142
142
  }, b = async () => {
143
143
  let e = n?.trim()?.toLowerCase();
@@ -154,7 +154,7 @@ var _ = "_1k4xirc1", v = (e) => {
154
154
  await s?.requestOtp({
155
155
  content: e,
156
156
  medium: r === "phone" ? "whatsapp" : "email"
157
- }), f(!0);
157
+ }), u(!0);
158
158
  } catch (e) {
159
159
  let t = e;
160
160
  y(t?.message || "Failed to send OTP", t?.title || "Error"), _(!1);
@@ -162,23 +162,23 @@ var _ = "_1k4xirc1", v = (e) => {
162
162
  g(!1);
163
163
  }
164
164
  }, x = () => {
165
- f(!1), _(!1);
165
+ u(!1), _(!1);
166
166
  };
167
- return i ? /* @__PURE__ */ d("div", {
167
+ return i ? /* @__PURE__ */ p("div", {
168
168
  className: A,
169
- children: [/* @__PURE__ */ u(m, { className: M }), /* @__PURE__ */ u("span", {
169
+ children: [/* @__PURE__ */ f(m, { className: M }), /* @__PURE__ */ f("span", {
170
170
  className: j,
171
171
  children: "Verified"
172
172
  })]
173
- }) : /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(e, {
173
+ }) : /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(e, {
174
174
  size: "default",
175
175
  variant: "ghost",
176
176
  onClick: b,
177
177
  onMouseDown: (e) => e.preventDefault(),
178
178
  disabled: !n || h,
179
179
  type: "button",
180
- children: h ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(v, { size: 14 }), "Sending..."] }) : "Verify"
181
- }), c && /* @__PURE__ */ u(k, {
180
+ children: h ? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(v, { size: 14 }), "Sending..."] }) : "Verify"
181
+ }), c && /* @__PURE__ */ f(k, {
182
182
  isOpen: c,
183
183
  onClose: x,
184
184
  value: n?.trim()?.toLowerCase() || "",
package/blog-content.js CHANGED
@@ -1,17 +1,17 @@
1
1
  "use client";
2
- import { r as e } from "./dist-Y-Rc8Xqh.js";
3
- import { t } from "./LevoProvider-Bsjkcwc8.js";
2
+ import { r as e } from "./dist-IxiGbP-3.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-B1BSD6Np.js";
5
+ import { t as r } from "./dist-_lwl0kZw.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-BQmfSXSl.js";
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, { clsx as te } from "clsx";
12
- import { Fragment as ne, jsx as k, jsxs as A } from "react/jsx-runtime";
13
- import { createRuntimeFn as re } from "@vanilla-extract/recipes/createRuntimeFn";
14
- import ie, { createContext as ae, use as oe, useContext as se, useEffect as ce, useState as j } from "react";
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] = j(!0), [m, h] = j(null), g, _;
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]), ce(g, _), f) {
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__ */ k("div", { className: Ge }), n[7] = e) : e = n[7];
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__ */ k("div", {
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__ */ k("div", {
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__ */ k("div", {
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__ */ k("div", {
82
+ return n[11] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ A("div", {
83
83
  className: ze,
84
- children: /* @__PURE__ */ A("div", {
84
+ children: /* @__PURE__ */ j("div", {
85
85
  className: `${Be} ${Ke}`,
86
- children: [e, /* @__PURE__ */ A("div", {
86
+ children: [e, /* @__PURE__ */ j("div", {
87
87
  className: Ve,
88
- children: [t, /* @__PURE__ */ A("div", {
88
+ children: [t, /* @__PURE__ */ j("div", {
89
89
  className: qe,
90
90
  children: [
91
91
  r,
92
92
  i,
93
- /* @__PURE__ */ k("div", {
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__ */ k("img", {
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__ */ k("div", { className: Ge }), n[14] = v, n[15] = m.title, n[16] = C) : C = n[16];
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__ */ k("h3", {
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__ */ k("p", {
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__ */ A("div", {
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__ */ k("div", {
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__ */ A("a", {
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__ */ k(Je, {
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 = re({
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__ */ k("button", {
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__ */ k("a", {
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__ */ k(Jt, {
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__ */ k("div", {
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 ie.createElement(e.tagName, {
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 = oe(Xt()), r = e?.attrs?.language, i = $(e);
1302
- if (!i) return /* @__PURE__ */ k("pre", { children: /* @__PURE__ */ k("code", { children: t }) });
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__ */ k("pre", { children: /* @__PURE__ */ k("code", { children: i }) });
1307
+ return /* @__PURE__ */ A("pre", { children: /* @__PURE__ */ A("code", { children: i }) });
1308
1308
  }
1309
- return !a || !a.children || a.children.length === 0 ? /* @__PURE__ */ k("pre", { children: /* @__PURE__ */ k("code", { children: i }) }) : /* @__PURE__ */ k("pre", { children: /* @__PURE__ */ k("code", {
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__ */ k("pre", { children: /* @__PURE__ */ k("code", { children: r }) }), t[2] = r, t[3] = i);
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__ */ k(Qt, { ...e }), t[4] = e, t[5] = a);
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__ */ k(ie.Suspense, {
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 = ae({
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] = j(!!n.attrs?.open), o;
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 = te("details", c), t[1] = c, 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__ */ k("button", {
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__ */ k("div", { children: /* @__PURE__ */ k(en.Provider, {
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__ */ A("div", {
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 } = se(en), a;
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__ */ k("summary", {
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 } = se(en), i;
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__ */ k("div", {
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__ */ k("img", {
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__ */ k("a", {
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__ */ k("div", {
1406
- className: te("figcaption", "_10kj0ro3"),
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__ */ A(ne, { children: [b, x] }), t[12] = b, t[13] = x, t[14] = S) : S = t[14], S;
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__ */ k(un, {
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__ */ k("div", {
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__ */ k("div", {
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__ */ k(e, {
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__ */ k("div", {
1463
+ return n[0] !== i || n[1] !== a || n[2] !== o ? (s = /* @__PURE__ */ A("div", {
1464
1464
  className: fn,
1465
- children: /* @__PURE__ */ k(pn, {
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__ */ k("video", {
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__ */ k("div", {
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 = O(T, n), t[8] = n, 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__ */ k("div", {
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__ */ k(E, {
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__ */ k(Dn, {
1794
+ return n ? /* @__PURE__ */ A(Dn, {
1795
1795
  content: n,
1796
1796
  ...t
1797
1797
  }) : null;