@chaibuilder/sdk 1.2.46 → 1.2.47
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/README.md +1 -1
- package/dist/{AddBlocks-Jse1nYBd.cjs → AddBlocks-_fhhS7Lm.cjs} +1 -1
- package/dist/{AddBlocks-wY7YpsXy.js → AddBlocks-cX8vIt0V.js} +7 -7
- package/dist/{CanvasArea-2widR9Ry.js → CanvasArea-HRipTJFS.js} +271 -263
- package/dist/CanvasArea-N3rYeBJV.cjs +55 -0
- package/dist/{ChaiBuilderEditor-74s7jELl.cjs → ChaiBuilderEditor-EtQOC5uy.cjs} +1 -1
- package/dist/{ChaiBuilderEditor-wriVkIG1.js → ChaiBuilderEditor-dKHRL-Es.js} +20 -20
- package/dist/{CurrentPage-UozVUoj8.cjs → CurrentPage-9FijxWbn.cjs} +1 -1
- package/dist/{CurrentPage--JhcSlGs.js → CurrentPage-U8ms8Hs7.js} +2 -2
- package/dist/{ListTree-qTfVR-jh.js → ListTree-OgLdyfQs.js} +1 -1
- package/dist/{ListTree-aFX8fD7v.cjs → ListTree-jOvHpo3_.cjs} +1 -1
- package/dist/{PagesPanel-1ZzPulaC.cjs → PagesPanel-8Cd6UYsh.cjs} +1 -1
- package/dist/{PagesPanel-qatBt4Nf.js → PagesPanel-MsUBq9Xx.js} +3 -3
- package/dist/{ProjectPanel-QUIcKWwM.cjs → ProjectPanel-KmnXPfxx.cjs} +1 -1
- package/dist/{ProjectPanel-Vp-EZS_Y.js → ProjectPanel-hsZG_Btj.js} +3 -3
- package/dist/{Settings-E_xif3_e.js → Settings-WcLqIeQy.js} +7 -7
- package/dist/{Settings-jKpJi5Wy.cjs → Settings-xVjTnVSf.cjs} +1 -1
- package/dist/{SidePanels-s_Yl7HhG.cjs → SidePanels-6zRgfZpi.cjs} +1 -1
- package/dist/{SidePanels-UEa90HOL.js → SidePanels-PmCljlnf.js} +2 -2
- package/dist/{ThemeConfiguration-IUuxGaDf.js → ThemeConfiguration-mkbFdePB.js} +17 -17
- package/dist/{ThemeConfiguration-YkPc6RGq.cjs → ThemeConfiguration-pt7TTAty.cjs} +1 -1
- package/dist/{Topbar-YzdQKElx.cjs → Topbar--m1E08Jl.cjs} +1 -1
- package/dist/{Topbar-C7Qfcatg.js → Topbar-FPywhpub.js} +1 -1
- package/dist/{UILibrariesPanel-qv8AiOn1.cjs → UILibrariesPanel-HhHGcexY.cjs} +1 -1
- package/dist/{UILibrariesPanel-didKK7tC.js → UILibrariesPanel-VrA2X4LO.js} +1 -1
- package/dist/{UnsplashImages-VkZ_KszK.js → UnsplashImages-7uAXYHPH.js} +1 -1
- package/dist/{UnsplashImages-QeZ65lKC.cjs → UnsplashImages-Yu0msAD8.cjs} +1 -1
- package/dist/{UploadImages-6drauLA-.js → UploadImages-5M0Q27R-.js} +1 -1
- package/dist/{UploadImages-igQroUtu.cjs → UploadImages-jS51ZcPG.cjs} +1 -1
- package/dist/{add-page-modal-rJ7OwdoX.js → add-page-modal-6o7MAbq-.js} +3 -3
- package/dist/{add-page-modal-esHlLYay.cjs → add-page-modal-KAbflupJ.cjs} +1 -1
- package/dist/{confirm-alert-08q_BmL6.cjs → confirm-alert-dow0GlxC.cjs} +1 -1
- package/dist/{confirm-alert-HfChUtfw.js → confirm-alert-jL0z_gFv.js} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{delete-page-modal-SOCB_9UB.cjs → delete-page-modal-EDQZneVM.cjs} +1 -1
- package/dist/{delete-page-modal-E3tO5Q1p.js → delete-page-modal-U5_JYYp7.js} +2 -2
- package/dist/email.cjs +1 -1
- package/dist/email.js +1 -1
- package/dist/{form-gRWwpKzq.cjs → form-KBtrnNWh.cjs} +1 -1
- package/dist/{form-hi_RCepy.js → form-Sgpl2fXL.js} +1 -1
- package/dist/functions-7ybAMUuA.js +31 -0
- package/dist/functions-yvRwasT2.cjs +1 -0
- package/dist/{index-3j3SZ9Pb.cjs → index-HjN7LtDT.cjs} +1 -1
- package/dist/{index-OnzJQ25d.js → index-po-naEa5.js} +2 -2
- package/dist/lib.cjs +2 -3
- package/dist/lib.d.ts +11 -11
- package/dist/lib.js +175 -100
- package/dist/{page-viewer-S3xZLu53.cjs → page-viewer-PfZEbcDZ.cjs} +1 -1
- package/dist/{page-viewer-K_8dfU3A.js → page-viewer-nLRRk7DR.js} +3 -3
- package/dist/{project-general-setting-vSkiqVk-.js → project-general-setting-D1UJdZ2D.js} +3 -3
- package/dist/{project-general-setting-IRQ9TNAd.cjs → project-general-setting-HO6zeum2.cjs} +1 -1
- package/dist/{project-seo-setting-b9jZC0dr.js → project-seo-setting-VIZWEMRk.js} +2 -2
- package/dist/{project-seo-setting-XHFqgtW9.cjs → project-seo-setting-gT9N1tnB.cjs} +1 -1
- package/dist/render.cjs +1 -1
- package/dist/render.d.ts +2 -1
- package/dist/render.js +82 -80
- package/dist/{single-page-detail-RG82dk4d.cjs → single-page-detail-To8TcpgJ.cjs} +1 -1
- package/dist/{single-page-detail-zHbO3vOI.js → single-page-detail-lQ8fujC5.js} +4 -4
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +1 -1
- package/dist/{useCanvasSettings-2Wzyf2PK.cjs → useCanvasSettings-7BXlDuLG.cjs} +1 -1
- package/dist/{useCanvasSettings-L2pW5boY.js → useCanvasSettings-UzjYHFG5.js} +1 -1
- package/package.json +1 -1
- package/dist/CanvasArea-pQP-jR11.cjs +0 -57
- package/dist/functions-ge87TVcc.js +0 -30
- package/dist/functions-sBiIevFh.cjs +0 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
var He = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
2
|
+
var Pe = (n, s, e) => s in n ? He(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
|
|
3
|
+
var E = (n, s, e) => (Pe(n, typeof s != "symbol" ? s + "" : s, e), e);
|
|
4
4
|
import { j as r } from "./jsx-runtime-WbnYoNE9.js";
|
|
5
|
-
import M, { createElement as
|
|
6
|
-
import { map as
|
|
7
|
-
import { ResetIcon as
|
|
8
|
-
import { j as
|
|
9
|
-
import { useTranslation as
|
|
5
|
+
import M, { createElement as ae, useCallback as O, useState as C, useEffect as w, Component as xe, Children as ze, Suspense as ve, useRef as le, useMemo as Oe } from "react";
|
|
6
|
+
import { map as H, includes as ce, toUpper as X, round as Ue, throttle as $e, has as ye, isEmpty as A, first as U, omit as We, pick as qe, get as f, isString as ee, memoize as Ke, each as Ye, find as Ge, filter as be, isNull as Xe } from "lodash-es";
|
|
7
|
+
import { ResetIcon as de, SunIcon as Qe, MoonIcon as Ze, MobileIcon as pe, LaptopIcon as Je, DesktopIcon as Ve, DotsVerticalIcon as et, EraserIcon as tt, ZoomInIcon as st, DragHandleDots2Icon as ot, ArrowUpIcon as nt, CopyIcon as rt, TrashIcon as it } from "@radix-ui/react-icons";
|
|
8
|
+
import { j as ke, B as W, v as we, aq as je, ar as at, as as lt, at as ct, o as te, X as dt, h as P, au as pt, av as ut, aw as ht, ax as mt, ay as gt, az as ft, aA as Ce, L as D, Y as N, A as xt, a as vt, b as $t, c as yt, d as bt, e as kt, f as wt, g as jt, a3 as Ct, aB as Dt, aC as _t, p as De, ap as z, aD as Bt, m as At, z as T, aE as _e, Q as It, aF as L, aG as St, i as se, w as Be, E as Ae, H as Ie, V as Et, aH as Mt, aI as Nt, aJ as Tt, F as Lt, aK as Ft, aL as Rt, aM as Ht, aN as Pt, M as zt, aO as Ot, ah as Se, a2 as Ut } from "./ChaiBuilderEditor-dKHRL-Es.js";
|
|
9
|
+
import { useTranslation as oe } from "react-i18next";
|
|
10
10
|
import { useAtom as y } from "jotai";
|
|
11
|
-
import { SparklesIcon as
|
|
12
|
-
import
|
|
11
|
+
import { SparklesIcon as Wt } from "lucide-react";
|
|
12
|
+
import ue from "react-dom";
|
|
13
13
|
import k from "prop-types";
|
|
14
|
-
import { Quill as
|
|
15
|
-
import { d as
|
|
16
|
-
import { flip as
|
|
17
|
-
import { useFloating as
|
|
18
|
-
import { useResizeObserver as
|
|
14
|
+
import { Quill as qt } from "react-quill";
|
|
15
|
+
import { d as ne, a as Ee } from "./atoms-ZOWyNoiC.js";
|
|
16
|
+
import { flip as Kt } from "@floating-ui/dom";
|
|
17
|
+
import { useFloating as Yt, shift as Gt } from "@floating-ui/react-dom";
|
|
18
|
+
import { useResizeObserver as Xt } from "@react-hookz/web";
|
|
19
19
|
import { useFeature as Qt } from "flagged";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { twMerge as
|
|
25
|
-
import { S as
|
|
26
|
-
import { getBlockComponent as
|
|
27
|
-
import { u as
|
|
28
|
-
import { Provider as
|
|
20
|
+
import Zt from "@tailwindcss/typography";
|
|
21
|
+
import Jt from "@tailwindcss/forms";
|
|
22
|
+
import Vt from "@tailwindcss/aspect-ratio";
|
|
23
|
+
import es from "tailwindcss-palette-generator";
|
|
24
|
+
import { twMerge as ts } from "tailwind-merge";
|
|
25
|
+
import { S as he, a as Me } from "./STRINGS--j49GZJP.js";
|
|
26
|
+
import { getBlockComponent as ss } from "@chaibuilder/runtime";
|
|
27
|
+
import { u as os } from "./useCanvasSettings-UzjYHFG5.js";
|
|
28
|
+
import { Provider as ns } from "react-wrap-balancer";
|
|
29
29
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
30
30
|
import "clsx";
|
|
31
31
|
import "@radix-ui/react-scroll-area";
|
|
@@ -55,43 +55,39 @@ import "cmdk";
|
|
|
55
55
|
import "@radix-ui/react-context-menu";
|
|
56
56
|
import "react-icons-picker";
|
|
57
57
|
import "react-hotkeys-hook";
|
|
58
|
-
const
|
|
59
|
-
const { hasUndo: n, hasRedo: s, undo: e, redo: t } =
|
|
58
|
+
const rs = () => {
|
|
59
|
+
const { hasUndo: n, hasRedo: s, undo: e, redo: t } = ke();
|
|
60
60
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex items-center", children: [
|
|
61
|
-
/* @__PURE__ */ r.jsx(
|
|
62
|
-
/* @__PURE__ */ r.jsx(
|
|
61
|
+
/* @__PURE__ */ r.jsx(W, { disabled: !n(), size: "sm", onClick: e, className: "rounded-full", variant: "ghost", children: /* @__PURE__ */ r.jsx(de, {}) }),
|
|
62
|
+
/* @__PURE__ */ r.jsx(W, { disabled: !s(), onClick: t, size: "sm", className: "rounded-full", variant: "ghost", children: /* @__PURE__ */ r.jsx(de, { className: "rotate-180 scale-y-[-1] transform" }) })
|
|
63
63
|
] });
|
|
64
64
|
};
|
|
65
|
-
function
|
|
66
|
-
const [n, s] =
|
|
65
|
+
function is() {
|
|
66
|
+
const [n, s] = we();
|
|
67
67
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex items-center", children: [
|
|
68
|
-
/* @__PURE__ */ r.jsx(
|
|
69
|
-
/* @__PURE__ */ r.
|
|
70
|
-
|
|
68
|
+
/* @__PURE__ */ r.jsx(Qe, { className: "size-4 shrink-0" }),
|
|
69
|
+
/* @__PURE__ */ r.jsx(
|
|
70
|
+
je,
|
|
71
71
|
{
|
|
72
72
|
id: "dark-mode-switch",
|
|
73
73
|
checked: n,
|
|
74
74
|
onCheckedChange: () => {
|
|
75
75
|
s(!n);
|
|
76
76
|
},
|
|
77
|
-
className: `${n ? "bg-violet-600" : "bg-violet-300"}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
className: `${n ? "translate-x-5" : "translate-x-0"}
|
|
86
|
-
pointer-events-none -mt-px inline-block h-[18px] w-[20px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
]
|
|
77
|
+
className: `${n ? "bg-violet-600" : "bg-violet-300"} relative ml-2 inline-flex h-[20px] w-[40px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,
|
|
78
|
+
children: /* @__PURE__ */ r.jsx(
|
|
79
|
+
"span",
|
|
80
|
+
{
|
|
81
|
+
"aria-hidden": "true",
|
|
82
|
+
className: `${n ? "translate-x-5" : "translate-x-0"} pointer-events-none -mt-px inline-block h-[18px] w-[20px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`
|
|
83
|
+
}
|
|
84
|
+
)
|
|
90
85
|
}
|
|
91
|
-
)
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ r.jsx(Ze, { className: "size-4 ml-3 shrink-0" })
|
|
92
88
|
] });
|
|
93
89
|
}
|
|
94
|
-
const
|
|
90
|
+
const me = ({ landscape: n = !1 }) => /* @__PURE__ */ r.jsxs(
|
|
95
91
|
"svg",
|
|
96
92
|
{
|
|
97
93
|
className: n ? "rotate-90" : "",
|
|
@@ -114,33 +110,33 @@ const pe = ({ landscape: n = !1 }) => /* @__PURE__ */ r.jsxs(
|
|
|
114
110
|
)
|
|
115
111
|
]
|
|
116
112
|
}
|
|
117
|
-
),
|
|
113
|
+
), as = [
|
|
118
114
|
{
|
|
119
115
|
title: "mobile_xs_title",
|
|
120
116
|
content: "mobile_xs_content",
|
|
121
117
|
breakpoint: "xs",
|
|
122
|
-
icon: /* @__PURE__ */ r.jsx(
|
|
118
|
+
icon: /* @__PURE__ */ r.jsx(pe, {}),
|
|
123
119
|
width: 400
|
|
124
120
|
},
|
|
125
121
|
{
|
|
126
122
|
title: "mobile_sm_title",
|
|
127
123
|
content: "mobile_sm_content",
|
|
128
124
|
breakpoint: "sm",
|
|
129
|
-
icon: /* @__PURE__ */ r.jsx(
|
|
125
|
+
icon: /* @__PURE__ */ r.jsx(pe, { className: "rotate-90" }),
|
|
130
126
|
width: 640
|
|
131
127
|
},
|
|
132
128
|
{
|
|
133
129
|
title: "tablet_md_title",
|
|
134
130
|
content: "tablet_md_content",
|
|
135
131
|
breakpoint: "md",
|
|
136
|
-
icon: /* @__PURE__ */ r.jsx(
|
|
132
|
+
icon: /* @__PURE__ */ r.jsx(me, {}),
|
|
137
133
|
width: 800
|
|
138
134
|
},
|
|
139
135
|
{
|
|
140
136
|
title: "tablet_lg_title",
|
|
141
137
|
content: "tablet_lg_content",
|
|
142
138
|
breakpoint: "lg",
|
|
143
|
-
icon: /* @__PURE__ */ r.jsx(
|
|
139
|
+
icon: /* @__PURE__ */ r.jsx(me, { landscape: !0 }),
|
|
144
140
|
width: 1024
|
|
145
141
|
},
|
|
146
142
|
{
|
|
@@ -154,10 +150,10 @@ const pe = ({ landscape: n = !1 }) => /* @__PURE__ */ r.jsxs(
|
|
|
154
150
|
title: "large_desktop_2xl_title",
|
|
155
151
|
content: "large_desktop_2xl_content",
|
|
156
152
|
breakpoint: "2xl",
|
|
157
|
-
icon: /* @__PURE__ */ r.jsx(
|
|
153
|
+
icon: /* @__PURE__ */ r.jsx(Ve, {}),
|
|
158
154
|
width: 1920
|
|
159
155
|
}
|
|
160
|
-
],
|
|
156
|
+
], ge = ({
|
|
161
157
|
title: n,
|
|
162
158
|
content: s,
|
|
163
159
|
currentBreakpoint: e,
|
|
@@ -166,10 +162,10 @@ const pe = ({ landscape: n = !1 }) => /* @__PURE__ */ r.jsxs(
|
|
|
166
162
|
icon: c,
|
|
167
163
|
onClick: a
|
|
168
164
|
}) => {
|
|
169
|
-
const { t: i } =
|
|
170
|
-
return /* @__PURE__ */ r.jsxs(
|
|
171
|
-
/* @__PURE__ */ r.jsx(
|
|
172
|
-
|
|
165
|
+
const { t: i } = oe();
|
|
166
|
+
return /* @__PURE__ */ r.jsxs(at, { children: [
|
|
167
|
+
/* @__PURE__ */ r.jsx(lt, { asChild: !0, children: /* @__PURE__ */ r.jsx(
|
|
168
|
+
W,
|
|
173
169
|
{
|
|
174
170
|
onClick: () => a(o),
|
|
175
171
|
size: "sm",
|
|
@@ -177,31 +173,31 @@ const pe = ({ landscape: n = !1 }) => /* @__PURE__ */ r.jsxs(
|
|
|
177
173
|
children: c
|
|
178
174
|
}
|
|
179
175
|
) }),
|
|
180
|
-
/* @__PURE__ */ r.jsx(
|
|
176
|
+
/* @__PURE__ */ r.jsx(ct, { className: "w-52 border-border", children: /* @__PURE__ */ r.jsx("div", { className: "flex justify-between space-x-4", children: /* @__PURE__ */ r.jsxs("div", { className: "space-y-1", children: [
|
|
181
177
|
/* @__PURE__ */ r.jsx("h4", { className: "text-sm font-semibold", children: i(n) }),
|
|
182
178
|
/* @__PURE__ */ r.jsx("p", { className: "text-xs", children: i(s) })
|
|
183
179
|
] }) }) })
|
|
184
180
|
] });
|
|
185
|
-
},
|
|
186
|
-
const [, n, s] =
|
|
181
|
+
}, ls = () => {
|
|
182
|
+
const [, n, s] = te(), [e, t] = dt(), { t: o } = oe(), c = P("breakpoints", as), a = (i) => {
|
|
187
183
|
e.includes(i) ? e.length > 2 && t(e.filter((d) => d !== i)) : t((d) => [...d, i]);
|
|
188
184
|
};
|
|
189
|
-
return c.length < 4 ? /* @__PURE__ */ r.jsx("div", { className: "flex items-center rounded-md", children:
|
|
190
|
-
|
|
191
|
-
c.filter((i) =>
|
|
192
|
-
(i) => /* @__PURE__ */
|
|
185
|
+
return c.length < 4 ? /* @__PURE__ */ r.jsx("div", { className: "flex items-center rounded-md", children: H(c, (i) => /* @__PURE__ */ ae(ge, { ...i, onClick: s, key: i.breakpoint, currentBreakpoint: n })) }) : /* @__PURE__ */ r.jsxs("div", { className: "flex items-center rounded-md", children: [
|
|
186
|
+
H(
|
|
187
|
+
c.filter((i) => ce(e, X(i.breakpoint))),
|
|
188
|
+
(i) => /* @__PURE__ */ ae(ge, { ...i, onClick: s, key: i.breakpoint, currentBreakpoint: n })
|
|
193
189
|
),
|
|
194
|
-
/* @__PURE__ */ r.jsxs(
|
|
195
|
-
/* @__PURE__ */ r.jsx(
|
|
196
|
-
/* @__PURE__ */ r.jsxs(
|
|
197
|
-
/* @__PURE__ */ r.jsx(
|
|
198
|
-
/* @__PURE__ */ r.jsx(
|
|
199
|
-
|
|
200
|
-
|
|
190
|
+
/* @__PURE__ */ r.jsxs(pt, { children: [
|
|
191
|
+
/* @__PURE__ */ r.jsx(ut, { asChild: !0, children: /* @__PURE__ */ r.jsx("span", { className: "cursor-pointer px-2.5 hover:opacity-80", children: /* @__PURE__ */ r.jsx(et, { className: "scale-90 transform" }) }) }),
|
|
192
|
+
/* @__PURE__ */ r.jsxs(ht, { className: "w-56 border-border text-xs", children: [
|
|
193
|
+
/* @__PURE__ */ r.jsx(mt, { children: o("Breakpoints") }),
|
|
194
|
+
/* @__PURE__ */ r.jsx(gt, {}),
|
|
195
|
+
H(c, (i) => /* @__PURE__ */ r.jsx(
|
|
196
|
+
ft,
|
|
201
197
|
{
|
|
202
198
|
disabled: i.breakpoint === "xs",
|
|
203
|
-
onCheckedChange: () => a(
|
|
204
|
-
checked:
|
|
199
|
+
onCheckedChange: () => a(X(i.breakpoint)),
|
|
200
|
+
checked: ce(e, X(i.breakpoint)),
|
|
205
201
|
children: o(i.title)
|
|
206
202
|
},
|
|
207
203
|
i.breakpoint
|
|
@@ -209,36 +205,36 @@ const pe = ({ landscape: n = !1 }) => /* @__PURE__ */ r.jsxs(
|
|
|
209
205
|
] })
|
|
210
206
|
] })
|
|
211
207
|
] });
|
|
212
|
-
},
|
|
213
|
-
const { t: n } =
|
|
208
|
+
}, cs = () => {
|
|
209
|
+
const { t: n } = oe(), { setNewBlocks: s } = Ce(), [, e] = D(), [, t] = N(), o = O(() => {
|
|
214
210
|
s([]), e([]), t([]);
|
|
215
211
|
}, [s]);
|
|
216
|
-
return /* @__PURE__ */ r.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ r.jsxs(
|
|
217
|
-
/* @__PURE__ */ r.jsx(
|
|
218
|
-
/* @__PURE__ */ r.jsx(
|
|
212
|
+
return /* @__PURE__ */ r.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ r.jsxs(xt, { children: [
|
|
213
|
+
/* @__PURE__ */ r.jsx(vt, { asChild: !0, children: /* @__PURE__ */ r.jsxs(W, { size: "sm", variant: "ghost", className: "flex items-center gap-x-1", children: [
|
|
214
|
+
/* @__PURE__ */ r.jsx(tt, {}),
|
|
219
215
|
" ",
|
|
220
216
|
n("clear")
|
|
221
217
|
] }) }),
|
|
222
|
-
/* @__PURE__ */ r.jsxs(
|
|
223
|
-
/* @__PURE__ */ r.jsxs(
|
|
224
|
-
/* @__PURE__ */ r.jsx(
|
|
225
|
-
/* @__PURE__ */ r.jsx(
|
|
218
|
+
/* @__PURE__ */ r.jsxs($t, { className: "border-border", children: [
|
|
219
|
+
/* @__PURE__ */ r.jsxs(yt, { children: [
|
|
220
|
+
/* @__PURE__ */ r.jsx(bt, { children: n("clear_canvas_title") }),
|
|
221
|
+
/* @__PURE__ */ r.jsx(kt, { children: n("clear_canvas_description") })
|
|
226
222
|
] }),
|
|
227
|
-
/* @__PURE__ */ r.jsxs(
|
|
228
|
-
/* @__PURE__ */ r.jsx(
|
|
229
|
-
/* @__PURE__ */ r.jsx(
|
|
223
|
+
/* @__PURE__ */ r.jsxs(wt, { children: [
|
|
224
|
+
/* @__PURE__ */ r.jsx(jt, { children: n("cancel") }),
|
|
225
|
+
/* @__PURE__ */ r.jsx(Ct, { onClick: o, children: n("yes") })
|
|
230
226
|
] })
|
|
231
227
|
] })
|
|
232
228
|
] }) });
|
|
233
|
-
},
|
|
234
|
-
const [n, s] = y(
|
|
229
|
+
}, ds = () => {
|
|
230
|
+
const [n, s] = y(Dt);
|
|
235
231
|
return P("askAiCallBack", null) ? /* @__PURE__ */ r.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
236
|
-
/* @__PURE__ */ r.jsxs(
|
|
237
|
-
/* @__PURE__ */ r.jsx(
|
|
232
|
+
/* @__PURE__ */ r.jsxs(_t, { htmlFor: "ai-assistant", className: "flex items-center gap-x-1 text-sm text-yellow-600", children: [
|
|
233
|
+
/* @__PURE__ */ r.jsx(Wt, { className: "w-4" }),
|
|
238
234
|
"AI Assistant"
|
|
239
235
|
] }),
|
|
240
236
|
/* @__PURE__ */ r.jsx(
|
|
241
|
-
|
|
237
|
+
je,
|
|
242
238
|
{
|
|
243
239
|
className: "scale-90",
|
|
244
240
|
checked: n,
|
|
@@ -249,34 +245,34 @@ const pe = ({ landscape: n = !1 }) => /* @__PURE__ */ r.jsxs(
|
|
|
249
245
|
}
|
|
250
246
|
)
|
|
251
247
|
] }) : null;
|
|
252
|
-
},
|
|
253
|
-
const n = P("darkMode", !
|
|
248
|
+
}, ps = () => {
|
|
249
|
+
const n = P("darkMode", !0), [s] = De();
|
|
254
250
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex h-10 items-center justify-between border-b bg-background/70 px-2", children: [
|
|
255
251
|
/* @__PURE__ */ r.jsxs("div", { className: "flex h-full space-x-2", children: [
|
|
252
|
+
/* @__PURE__ */ r.jsx(ls, {}),
|
|
253
|
+
/* @__PURE__ */ r.jsx(z, { orientation: "vertical" }),
|
|
256
254
|
n ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
257
|
-
/* @__PURE__ */ r.jsx(
|
|
258
|
-
/* @__PURE__ */ r.jsx(
|
|
255
|
+
/* @__PURE__ */ r.jsx(is, {}),
|
|
256
|
+
/* @__PURE__ */ r.jsx(z, { orientation: "vertical" })
|
|
259
257
|
] }) : null,
|
|
260
|
-
/* @__PURE__ */ r.jsx(is, {}),
|
|
261
|
-
/* @__PURE__ */ r.jsx(H, { orientation: "vertical" }),
|
|
262
258
|
/* @__PURE__ */ r.jsxs("div", { className: "flex w-12 cursor-not-allowed items-center justify-center gap-x-1 space-x-0 font-medium text-gray-400", children: [
|
|
263
|
-
/* @__PURE__ */ r.jsx(
|
|
259
|
+
/* @__PURE__ */ r.jsx(st, { className: "h-3.5 w-3.5 flex-shrink-0" }),
|
|
264
260
|
" ",
|
|
265
261
|
/* @__PURE__ */ r.jsxs("div", { className: "text-xs leading-3", children: [
|
|
266
|
-
|
|
262
|
+
Ue(s, 0),
|
|
267
263
|
"%"
|
|
268
264
|
] })
|
|
269
265
|
] }),
|
|
270
|
-
/* @__PURE__ */ r.jsx(
|
|
271
|
-
/* @__PURE__ */ r.jsx(
|
|
266
|
+
/* @__PURE__ */ r.jsx(z, { orientation: "vertical" }),
|
|
267
|
+
/* @__PURE__ */ r.jsx(rs, {})
|
|
272
268
|
] }),
|
|
273
269
|
/* @__PURE__ */ r.jsxs("div", { className: "flex h-full items-center space-x-2", children: [
|
|
274
|
-
/* @__PURE__ */ r.jsx(
|
|
275
|
-
/* @__PURE__ */ r.jsx(
|
|
276
|
-
/* @__PURE__ */ r.jsx(
|
|
270
|
+
/* @__PURE__ */ r.jsx(cs, {}),
|
|
271
|
+
/* @__PURE__ */ r.jsx(z, { orientation: "vertical" }),
|
|
272
|
+
/* @__PURE__ */ r.jsx(ds, {})
|
|
277
273
|
] })
|
|
278
274
|
] });
|
|
279
|
-
},
|
|
275
|
+
}, us = `<!doctype html>
|
|
280
276
|
<html lang="en" dir="__HTML_DIR__" class="scroll-smooth h-full overflow-y-auto">
|
|
281
277
|
<head>
|
|
282
278
|
<meta charset="UTF-8">
|
|
@@ -326,8 +322,8 @@ const pe = ({ landscape: n = !1 }) => /* @__PURE__ */ r.jsxs(
|
|
|
326
322
|
<div class="frame-root h-full"></div>
|
|
327
323
|
<script src="https://cdn.jsdelivr.net/npm/quill@2.0.0/dist/quill.js"><\/script>
|
|
328
324
|
</body>
|
|
329
|
-
</html>`,
|
|
330
|
-
const [s] =
|
|
325
|
+
</html>`, hs = (n) => {
|
|
326
|
+
const [s] = te(), [, e] = De(), [t, o] = C({}), c = O(() => {
|
|
331
327
|
const { width: a, height: i } = n;
|
|
332
328
|
if (a < s) {
|
|
333
329
|
const d = parseFloat((a / s).toFixed(2).toString());
|
|
@@ -351,11 +347,11 @@ const pe = ({ landscape: n = !1 }) => /* @__PURE__ */ r.jsxs(
|
|
|
351
347
|
c();
|
|
352
348
|
}, [s, n, e, c]), t;
|
|
353
349
|
};
|
|
354
|
-
let Ne,
|
|
350
|
+
let Ne, Te;
|
|
355
351
|
typeof document < "u" && (Ne = document);
|
|
356
|
-
typeof window < "u" && (
|
|
357
|
-
const
|
|
358
|
-
class
|
|
352
|
+
typeof window < "u" && (Te = window);
|
|
353
|
+
const Le = M.createContext({ document: Ne, window: Te }), q = () => M.useContext(Le), { Provider: ms, Consumer: Oo } = Le;
|
|
354
|
+
class Fe extends xe {
|
|
359
355
|
componentDidMount() {
|
|
360
356
|
this.props.contentDidMount();
|
|
361
357
|
}
|
|
@@ -363,28 +359,28 @@ class Te extends me {
|
|
|
363
359
|
this.props.contentDidUpdate();
|
|
364
360
|
}
|
|
365
361
|
render() {
|
|
366
|
-
return
|
|
362
|
+
return ze.only(this.props.children);
|
|
367
363
|
}
|
|
368
364
|
}
|
|
369
|
-
|
|
365
|
+
E(Fe, "propTypes", {
|
|
370
366
|
children: k.element.isRequired,
|
|
371
367
|
contentDidMount: k.func.isRequired,
|
|
372
368
|
contentDidUpdate: k.func.isRequired
|
|
373
369
|
});
|
|
374
|
-
class
|
|
370
|
+
class J extends xe {
|
|
375
371
|
constructor(e, t) {
|
|
376
372
|
super(e, t);
|
|
377
|
-
|
|
373
|
+
E(this, "setRef", (e) => {
|
|
378
374
|
this.nodeRef.current = e;
|
|
379
375
|
const { forwardedRef: t } = this.props;
|
|
380
376
|
typeof t == "function" ? t(e) : t && (t.current = e);
|
|
381
377
|
});
|
|
382
|
-
|
|
378
|
+
E(this, "handleLoad", () => {
|
|
383
379
|
clearInterval(this.loadCheck), this.state.iframeLoaded || this.setState({ iframeLoaded: !0 });
|
|
384
380
|
});
|
|
385
381
|
// In certain situations on a cold cache DOMContentLoaded never gets called
|
|
386
382
|
// fallback to an interval to check if that's the case
|
|
387
|
-
|
|
383
|
+
E(this, "loadCheck", () => setInterval(() => {
|
|
388
384
|
this.handleLoad();
|
|
389
385
|
}, 500));
|
|
390
386
|
this._isMounted = !1, this.nodeRef = M.createRef(), this.state = { iframeLoaded: !1 };
|
|
@@ -408,8 +404,8 @@ class Z extends me {
|
|
|
408
404
|
const e = this.getDoc();
|
|
409
405
|
if (!e)
|
|
410
406
|
return null;
|
|
411
|
-
const t = this.props.contentDidMount, o = this.props.contentDidUpdate, c = e.defaultView || e.parentView, a = /* @__PURE__ */ r.jsx(
|
|
412
|
-
return [
|
|
407
|
+
const t = this.props.contentDidMount, o = this.props.contentDidUpdate, c = e.defaultView || e.parentView, a = /* @__PURE__ */ r.jsx(Fe, { contentDidMount: t, contentDidUpdate: o, children: /* @__PURE__ */ r.jsx(ms, { value: { document: e, window: c }, children: /* @__PURE__ */ r.jsx("div", { className: "frame-content", children: this.props.children }) }) }), i = this.getMountTarget();
|
|
408
|
+
return [ue.createPortal(this.props.head, this.getDoc().head), ue.createPortal(a, i)];
|
|
413
409
|
}
|
|
414
410
|
render() {
|
|
415
411
|
const e = {
|
|
@@ -425,7 +421,7 @@ class Z extends me {
|
|
|
425
421
|
// also inject into the body and can mess up React. For this reason
|
|
426
422
|
// initialContent is expected to have a div inside of the body
|
|
427
423
|
// element that we render react into.
|
|
428
|
-
|
|
424
|
+
E(J, "propTypes", {
|
|
429
425
|
style: k.object,
|
|
430
426
|
// eslint-disable-line
|
|
431
427
|
head: k.node,
|
|
@@ -434,7 +430,7 @@ N(Z, "propTypes", {
|
|
|
434
430
|
contentDidMount: k.func,
|
|
435
431
|
contentDidUpdate: k.func,
|
|
436
432
|
children: k.oneOfType([k.element, k.arrayOf(k.element)])
|
|
437
|
-
}),
|
|
433
|
+
}), E(J, "defaultProps", {
|
|
438
434
|
style: {},
|
|
439
435
|
head: null,
|
|
440
436
|
children: void 0,
|
|
@@ -445,8 +441,8 @@ N(Z, "propTypes", {
|
|
|
445
441
|
},
|
|
446
442
|
initialContent: '<!DOCTYPE html><html><head></head><body><div class="frame-root"></div></body></html>'
|
|
447
443
|
});
|
|
448
|
-
const
|
|
449
|
-
function
|
|
444
|
+
const gs = M.forwardRef((n, s) => /* @__PURE__ */ r.jsx(J, { ...n, forwardedRef: s }));
|
|
445
|
+
function re(n) {
|
|
450
446
|
const s = window.getComputedStyle(n), e = s.display;
|
|
451
447
|
if (e === "flex") {
|
|
452
448
|
const t = s.flexDirection;
|
|
@@ -458,79 +454,79 @@ function se(n) {
|
|
|
458
454
|
return "vertical";
|
|
459
455
|
return "horizontal";
|
|
460
456
|
}
|
|
461
|
-
let
|
|
462
|
-
const
|
|
463
|
-
if (!
|
|
457
|
+
let _ = null, B = [], R = null, Q = null;
|
|
458
|
+
const fe = (n, s, e) => {
|
|
459
|
+
if (!_ || !n)
|
|
464
460
|
return;
|
|
465
|
-
const t =
|
|
461
|
+
const t = _ == null ? void 0 : _.getElementById("placeholder"), c = B.map(([i]) => i).reduce(
|
|
466
462
|
(i, d) => Math.abs(d - e) < Math.abs(i - e) ? d : i,
|
|
467
463
|
0
|
|
468
464
|
);
|
|
469
|
-
if (!
|
|
465
|
+
if (!B[c])
|
|
470
466
|
return;
|
|
471
|
-
const a =
|
|
467
|
+
const a = B[c];
|
|
472
468
|
t.style.width = s === "vertical" ? a[2] + "px" : "2px", t.style.height = s === "vertical" ? "2px" : a[2] + "px", t.style.display = "block", s === "vertical" ? (t.style.top = a[0] + "px", t.style.left = a[1] + "px") : (t.style.top = a[1] + "px", t.style.left = a[0] + "px");
|
|
473
469
|
};
|
|
474
|
-
function
|
|
470
|
+
function fs(n, s) {
|
|
475
471
|
let e = 0, t = 1 / 0;
|
|
476
472
|
return s.forEach((o, c) => {
|
|
477
473
|
const a = Math.abs(o[0] - n);
|
|
478
474
|
a < t && (t = a, e = c);
|
|
479
475
|
}), e;
|
|
480
476
|
}
|
|
481
|
-
const
|
|
482
|
-
const e =
|
|
483
|
-
|
|
477
|
+
const xs = (n) => {
|
|
478
|
+
const e = re(n) === "horizontal";
|
|
479
|
+
B = [], Array.from(n.children).forEach((t) => {
|
|
484
480
|
if (t.classList.contains("pointer-events-none"))
|
|
485
481
|
return;
|
|
486
482
|
const o = e ? t.offsetLeft : t.offsetTop, c = e ? [t.offsetTop, t.clientHeight] : [t.offsetLeft, t.clientWidth];
|
|
487
|
-
|
|
483
|
+
B.push([o, c[0], c[1]]);
|
|
488
484
|
});
|
|
489
|
-
},
|
|
490
|
-
const s = n.target, e =
|
|
485
|
+
}, vs = $e((n) => {
|
|
486
|
+
const s = n.target, e = re(s);
|
|
491
487
|
if (e === "vertical") {
|
|
492
488
|
const t = n.clientY - s.offsetTop;
|
|
493
|
-
|
|
489
|
+
fe(s, e, t);
|
|
494
490
|
} else {
|
|
495
491
|
const t = n.clientX - s.offsetLeft;
|
|
496
|
-
|
|
492
|
+
fe(s, e, t);
|
|
497
493
|
}
|
|
498
494
|
}, 200);
|
|
499
|
-
function
|
|
500
|
-
const n =
|
|
501
|
-
n.style.display = "none",
|
|
495
|
+
function Z() {
|
|
496
|
+
const n = _ == null ? void 0 : _.getElementById("placeholder");
|
|
497
|
+
n.style.display = "none", $s("pointer-none");
|
|
502
498
|
}
|
|
503
|
-
function
|
|
499
|
+
function $s(n) {
|
|
504
500
|
document.querySelectorAll(`.${n}`).forEach((e) => {
|
|
505
501
|
e.classList.remove(n);
|
|
506
502
|
});
|
|
507
503
|
}
|
|
508
|
-
const
|
|
509
|
-
const { document: n } = q(), [s, e] = y(Bt), { addCoreBlock: t } =
|
|
510
|
-
return
|
|
504
|
+
const ys = () => {
|
|
505
|
+
const { document: n } = q(), [s, e] = y(Bt), { addCoreBlock: t } = At(), [, o] = T(), [, c] = D(), { moveBlocks: a } = Ce(), [, i] = y(_e), [d, l] = y(ne), [, h] = y(Ee);
|
|
506
|
+
return _ = n, {
|
|
511
507
|
isDragging: s,
|
|
512
508
|
onDragOver: (p) => {
|
|
513
|
-
p.preventDefault(), p.stopPropagation(),
|
|
509
|
+
p.preventDefault(), p.stopPropagation(), vs(p);
|
|
514
510
|
},
|
|
515
511
|
onDrop: (p) => {
|
|
516
|
-
|
|
517
|
-
const u =
|
|
518
|
-
Q =
|
|
512
|
+
R == null || R.classList.remove("drop-target");
|
|
513
|
+
const u = R, $ = re(u) === "vertical" ? p.clientY : p.clientX;
|
|
514
|
+
Q = fs($, B);
|
|
519
515
|
const g = d, m = u.getAttribute("data-block-id");
|
|
520
|
-
if (!
|
|
516
|
+
if (!ye(g, "_id")) {
|
|
521
517
|
t(g, m === "canvas" ? null : m, Q), setTimeout(() => {
|
|
522
|
-
|
|
523
|
-
}, 300),
|
|
518
|
+
Z();
|
|
519
|
+
}, 300), B = [], e(!1), i(""), l(null), h(null);
|
|
524
520
|
return;
|
|
525
521
|
}
|
|
526
522
|
let b = u.getAttribute("data-block-id");
|
|
527
|
-
b === null && (b = p.target.parentElement.getAttribute("data-block-id")), a([g._id], b, Q),
|
|
523
|
+
b === null && (b = p.target.parentElement.getAttribute("data-block-id")), a([g._id], b, Q), Z(), e(!1), i(""), setTimeout(() => Z(), 300);
|
|
528
524
|
},
|
|
529
525
|
onDragEnter: (p) => {
|
|
530
|
-
const u = p,
|
|
531
|
-
|
|
532
|
-
const
|
|
533
|
-
h(
|
|
526
|
+
const u = p, v = u.target;
|
|
527
|
+
R = v;
|
|
528
|
+
const $ = v.getAttribute("data-block-id");
|
|
529
|
+
h($), u.stopPropagation(), u.preventDefault(), B = [], xs(v), v.classList.add("drop-target"), e(!0), o(""), c([]);
|
|
534
530
|
}
|
|
535
531
|
// onDragLeave: (e: DragEvent) => {
|
|
536
532
|
// const event = e;
|
|
@@ -542,43 +538,43 @@ const vs = () => {
|
|
|
542
538
|
// },
|
|
543
539
|
};
|
|
544
540
|
};
|
|
545
|
-
function
|
|
541
|
+
function ie(n) {
|
|
546
542
|
return n.getAttribute("data-block-id") ? n : n.closest("[data-block-id]");
|
|
547
543
|
}
|
|
548
|
-
function
|
|
544
|
+
function bs(n) {
|
|
549
545
|
n.container.innerHTML = "", n.container.parentNode.removeChild(n.container);
|
|
550
546
|
var s = document.querySelector(".ql-toolbar");
|
|
551
547
|
s && s.parentNode.removeChild(s), n = null;
|
|
552
548
|
}
|
|
553
|
-
const
|
|
554
|
-
const n = ["Heading", "Paragraph", "Text", "Link", "Span", "Button"], s =
|
|
549
|
+
const ks = () => {
|
|
550
|
+
const n = ["Heading", "Paragraph", "Text", "Link", "Span", "Button"], s = It(), [, e] = T(), [t, o] = y(L);
|
|
555
551
|
return (c) => {
|
|
556
552
|
var p;
|
|
557
553
|
if (t)
|
|
558
554
|
return;
|
|
559
|
-
const a =
|
|
555
|
+
const a = ie(c.target), i = a.getAttribute("data-block-type");
|
|
560
556
|
if (!i || !n.includes(i))
|
|
561
557
|
return;
|
|
562
558
|
const d = a.cloneNode(!0);
|
|
563
559
|
a.style.display = "none", Array.from(d.attributes).forEach((u) => {
|
|
564
560
|
u.name !== "class" && d.removeAttribute(u.name);
|
|
565
561
|
}), i === "Text" && (d.style.display = "inline-block"), a.parentNode.insertBefore(d, a.nextSibling);
|
|
566
|
-
const l = new
|
|
562
|
+
const l = new qt(d, { placeholder: "Type here..." });
|
|
567
563
|
function h() {
|
|
568
564
|
const u = l.getText(0, l.getLength());
|
|
569
|
-
s([a.getAttribute("data-block-id")], { content: u }), a.removeAttribute("style"), d.removeEventListener("blur", h, !0),
|
|
565
|
+
s([a.getAttribute("data-block-id")], { content: u }), a.removeAttribute("style"), d.removeEventListener("blur", h, !0), bs(l), o(""), e("");
|
|
570
566
|
}
|
|
571
567
|
d.addEventListener("blur", h, !0), d.addEventListener("keydown", (u) => {
|
|
572
568
|
(u.key === "Enter" || u.key === "Escape") && h();
|
|
573
569
|
}), l.focus(), (p = d.querySelector(".ql-clipboard")) == null || p.remove(), o(a.getAttribute("data-block-id"));
|
|
574
570
|
};
|
|
575
|
-
},
|
|
576
|
-
const [, n] =
|
|
571
|
+
}, ws = () => {
|
|
572
|
+
const [, n] = N(), [s, e] = D(), [, t] = T(), [o] = y(L), [c] = y(St);
|
|
577
573
|
return (a) => {
|
|
578
574
|
if (o)
|
|
579
575
|
return;
|
|
580
576
|
a.stopPropagation();
|
|
581
|
-
const i =
|
|
577
|
+
const i = ie(a.target);
|
|
582
578
|
if (i != null && i.getAttribute("data-block-id") && (i == null ? void 0 : i.getAttribute("data-block-id")) === "container") {
|
|
583
579
|
e([]), n([]), t("");
|
|
584
580
|
return;
|
|
@@ -592,21 +588,21 @@ const ys = () => {
|
|
|
592
588
|
}
|
|
593
589
|
t("");
|
|
594
590
|
};
|
|
595
|
-
},
|
|
596
|
-
const e =
|
|
591
|
+
}, js = $e((n, s) => {
|
|
592
|
+
const e = ie(n.target);
|
|
597
593
|
e != null && e.getAttribute("data-style-id") && s(e.getAttribute("data-style-id"));
|
|
598
|
-
}, 100),
|
|
594
|
+
}, 100), Cs = () => {
|
|
599
595
|
const [, n] = T(), [s] = y(L);
|
|
600
596
|
return (e) => {
|
|
601
|
-
s ||
|
|
597
|
+
s || js(e, n);
|
|
602
598
|
};
|
|
603
|
-
},
|
|
604
|
-
const { document: s } = q(), [e] =
|
|
599
|
+
}, Ds = ({ children: n }) => {
|
|
600
|
+
const { document: s } = q(), [e] = D(), [t, o] = N();
|
|
605
601
|
w(() => {
|
|
606
602
|
setTimeout(() => {
|
|
607
603
|
if (!A(t))
|
|
608
604
|
return;
|
|
609
|
-
const l =
|
|
605
|
+
const l = Re(s, U(e));
|
|
610
606
|
if (l) {
|
|
611
607
|
const h = l.getAttribute("data-style-prop");
|
|
612
608
|
if (h) {
|
|
@@ -616,7 +612,7 @@ const ys = () => {
|
|
|
616
612
|
}
|
|
617
613
|
}, 100);
|
|
618
614
|
}, [s, e, o, t]);
|
|
619
|
-
const c =
|
|
615
|
+
const c = ks(), a = ws(), i = Cs(), d = ys();
|
|
620
616
|
return /* @__PURE__ */ r.jsx(
|
|
621
617
|
"div",
|
|
622
618
|
{
|
|
@@ -625,15 +621,15 @@ const ys = () => {
|
|
|
625
621
|
onClick: a,
|
|
626
622
|
onDoubleClick: c,
|
|
627
623
|
onMouseMove: i,
|
|
628
|
-
...
|
|
624
|
+
...We(d, "isDragging"),
|
|
629
625
|
className: "relative mb-5 h-full max-w-full " + (d.isDragging ? "dragging" : ""),
|
|
630
626
|
children: n
|
|
631
627
|
}
|
|
632
628
|
);
|
|
633
|
-
},
|
|
634
|
-
const { window: n } = q(), [s, e] =
|
|
635
|
-
g.key === "Enter" && (g.preventDefault(), s.length === 1 && u(
|
|
636
|
-
},
|
|
629
|
+
}, Re = (n, s) => n.querySelector(`[data-block-id="${s}"]`), _s = () => {
|
|
630
|
+
const { window: n } = q(), [s, e] = D(), [t] = se(), [, o] = N(), { undo: c, redo: a } = ke(), i = Be(), [, d] = Ae(), l = Ie(), { savePage: h } = Et(), [p] = y(L), [, u] = y(Mt), v = (g) => {
|
|
631
|
+
g.key === "Enter" && (g.preventDefault(), s.length === 1 && u(U(s)));
|
|
632
|
+
}, $ = (g) => {
|
|
637
633
|
const m = t.find((b) => b._id === g);
|
|
638
634
|
return m ? m._parent : null;
|
|
639
635
|
};
|
|
@@ -643,10 +639,10 @@ const ys = () => {
|
|
|
643
639
|
e([]), o([]);
|
|
644
640
|
return;
|
|
645
641
|
}
|
|
646
|
-
if (
|
|
642
|
+
if (v(m), !p && (m.key === "Delete" || m.key === "Backspace") && (m.preventDefault(), l(s)), m.ctrlKey || m.metaKey) {
|
|
647
643
|
if (m.key === "ArrowUp") {
|
|
648
644
|
m.preventDefault();
|
|
649
|
-
const b = s.length > 0 ?
|
|
645
|
+
const b = s.length > 0 ? $(s[0]) : null;
|
|
650
646
|
b && e([b]);
|
|
651
647
|
}
|
|
652
648
|
if (["z", "y", "d", "x", "c", "p", "s", "v"].includes(m.key)) {
|
|
@@ -662,32 +658,32 @@ const ys = () => {
|
|
|
662
658
|
};
|
|
663
659
|
}, [s, e, c, l, d, a, i, p, h, n]), null;
|
|
664
660
|
}, Bs = ({ block: n, label: s }) => {
|
|
665
|
-
const [, e] =
|
|
661
|
+
const [, e] = D(), [, t] = T(), [, o] = y(ne), c = Qt("dnd");
|
|
666
662
|
return /* @__PURE__ */ r.jsxs(
|
|
667
663
|
"div",
|
|
668
664
|
{
|
|
669
665
|
className: "mr-10 flex cursor-grab items-center space-x-1 px-1",
|
|
670
666
|
draggable: c ? "true" : "false",
|
|
671
667
|
onDragStart: (a) => {
|
|
672
|
-
a.dataTransfer.setData("text/plain", JSON.stringify(
|
|
668
|
+
a.dataTransfer.setData("text/plain", JSON.stringify(qe(n, ["_id", "_type", "_name"]))), o(n), setTimeout(() => {
|
|
673
669
|
e([]), t(null);
|
|
674
670
|
}, 200);
|
|
675
671
|
},
|
|
676
672
|
children: [
|
|
677
|
-
/* @__PURE__ */ r.jsx(
|
|
673
|
+
/* @__PURE__ */ r.jsx(ot, {}),
|
|
678
674
|
s
|
|
679
675
|
]
|
|
680
676
|
}
|
|
681
677
|
);
|
|
682
|
-
},
|
|
683
|
-
const e =
|
|
678
|
+
}, As = ({ selectedBlockElement: n, block: s }) => {
|
|
679
|
+
const e = Ie(), t = Be(), [, o] = D(), [, c] = N(), [a] = y(L), { floatingStyles: i, refs: d, update: l } = Yt({
|
|
684
680
|
placement: "top-start",
|
|
685
|
-
middleware: [
|
|
681
|
+
middleware: [Gt(), Kt()],
|
|
686
682
|
elements: {
|
|
687
683
|
reference: n
|
|
688
684
|
}
|
|
689
685
|
});
|
|
690
|
-
|
|
686
|
+
Xt(n, () => l(), n !== null);
|
|
691
687
|
const h = f(s, "_parent", null), p = A(f(s, "_name", "")) ? f(s, "_type", "") : f(s, "_name", "");
|
|
692
688
|
return !n || !s || a ? null : /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(
|
|
693
689
|
"div",
|
|
@@ -705,7 +701,7 @@ const ys = () => {
|
|
|
705
701
|
/* @__PURE__ */ r.jsx(Bs, { label: p, block: s }),
|
|
706
702
|
/* @__PURE__ */ r.jsxs("div", { className: "flex gap-2 px-1", children: [
|
|
707
703
|
h && /* @__PURE__ */ r.jsx(
|
|
708
|
-
|
|
704
|
+
nt,
|
|
709
705
|
{
|
|
710
706
|
className: "hover:scale-105",
|
|
711
707
|
onClick: () => {
|
|
@@ -713,13 +709,13 @@ const ys = () => {
|
|
|
713
709
|
}
|
|
714
710
|
}
|
|
715
711
|
),
|
|
716
|
-
Nt(f(s, "_type", "")) ? /* @__PURE__ */ r.jsx(
|
|
717
|
-
|
|
712
|
+
Nt(f(s, "_type", "")) ? /* @__PURE__ */ r.jsx(rt, { className: "hover:scale-105", onClick: () => t([s == null ? void 0 : s._id]) }) : null,
|
|
713
|
+
Tt(f(s, "_type", "")) ? /* @__PURE__ */ r.jsx(it, { className: "hover:scale-105", onClick: () => e([s == null ? void 0 : s._id]) }) : null
|
|
718
714
|
] })
|
|
719
715
|
]
|
|
720
716
|
}
|
|
721
717
|
) });
|
|
722
|
-
},
|
|
718
|
+
}, Is = ({ addVariant: n, e: s }) => {
|
|
723
719
|
n("hs-dropdown-open", [
|
|
724
720
|
({ modifySelectors: e, separator: t }) => {
|
|
725
721
|
e(({ className: o }) => `.hs-dropdown.open > .${s(`hs-dropdown-open${t}${o}`)}`);
|
|
@@ -972,8 +968,8 @@ const ys = () => {
|
|
|
972
968
|
}), n("hs-auto-mode-active", ({ modifySelectors: e, separator: t }) => {
|
|
973
969
|
e(({ className: o }) => `.auto .${s(`hs-auto-mode-active${t}${o}`)}`);
|
|
974
970
|
});
|
|
975
|
-
},
|
|
976
|
-
const [s] =
|
|
971
|
+
}, Ss = ({ model: n }) => {
|
|
972
|
+
const [s] = Lt(), [e] = D(), [t] = we(), [o] = T(), [c] = N(), [a] = y(_e), { document: i, window: d } = q(), [l] = C(i == null ? void 0 : i.getElementById("highlighted-block")), [h] = C(
|
|
977
973
|
i == null ? void 0 : i.getElementById("selected-block")
|
|
978
974
|
), [p] = C(
|
|
979
975
|
i == null ? void 0 : i.getElementById("selected-styling-block")
|
|
@@ -981,30 +977,42 @@ const ys = () => {
|
|
|
981
977
|
w(() => {
|
|
982
978
|
t ? i == null || i.documentElement.classList.add("dark") : i == null || i.documentElement.classList.remove("dark");
|
|
983
979
|
}, [t, i]);
|
|
984
|
-
const
|
|
980
|
+
const v = f(s, "headingFont", "DM Sans"), $ = f(s, "bodyFont", "DM Sans");
|
|
985
981
|
return w(() => {
|
|
986
|
-
const g = f(s, "primaryColor", "#000"), m = f(s, "secondaryColor", "#FFF"), b =
|
|
982
|
+
const g = f(s, "primaryColor", "#000"), m = f(s, "secondaryColor", "#FFF"), b = f(s, "bodyBgLightColor", "#fff"), j = f(s, "bodyBgDarkColor", "#000"), F = f(s, "bodyTextDarkColor", "#000"), K = f(s, "bodyTextLightColor", "#fff"), Y = es([
|
|
987
983
|
{ color: g, name: "primary" },
|
|
988
984
|
{ color: m, name: "secondary" }
|
|
989
|
-
]),
|
|
985
|
+
]), G = {
|
|
986
|
+
"bg-light": b,
|
|
987
|
+
"bg-dark": j,
|
|
988
|
+
"text-dark": F,
|
|
989
|
+
"text-light": K
|
|
990
|
+
}, x = f(s, "roundedCorners", "0");
|
|
990
991
|
!d || !d.tailwind || (d.tailwind.config = {
|
|
991
992
|
darkMode: "class",
|
|
992
993
|
theme: {
|
|
993
994
|
extend: {
|
|
995
|
+
container: {
|
|
996
|
+
center: !0,
|
|
997
|
+
padding: "1rem",
|
|
998
|
+
screens: {
|
|
999
|
+
"2xl": "1400px"
|
|
1000
|
+
}
|
|
1001
|
+
},
|
|
994
1002
|
fontFamily: {
|
|
995
|
-
heading: [
|
|
996
|
-
body: [
|
|
1003
|
+
heading: [v],
|
|
1004
|
+
body: [$]
|
|
997
1005
|
},
|
|
998
1006
|
borderRadius: {
|
|
999
|
-
|
|
1007
|
+
DEFAULT: `${x || "0"}px`
|
|
1000
1008
|
},
|
|
1001
|
-
colors:
|
|
1009
|
+
colors: { ...G, ...Y }
|
|
1002
1010
|
}
|
|
1003
1011
|
},
|
|
1004
|
-
plugins: [
|
|
1012
|
+
plugins: [Zt, Jt, Vt, d.tailwind.plugin.withOptions(() => Is)]
|
|
1005
1013
|
});
|
|
1006
|
-
}, [s, d,
|
|
1007
|
-
h && (h.textContent = `${
|
|
1014
|
+
}, [s, d, v, $]), w(() => {
|
|
1015
|
+
h && (h.textContent = `${H(e, (g) => `[data-block-id="${g}"]`).join(",")}{
|
|
1008
1016
|
outline: 1px solid ${e.length === 1 ? "#42a1fc" : "orange"} !important; outline-offset: -1px;
|
|
1009
1017
|
}`);
|
|
1010
1018
|
}, [e, h]), w(() => {
|
|
@@ -1016,58 +1024,58 @@ const ys = () => {
|
|
|
1016
1024
|
}, [a]), w(() => {
|
|
1017
1025
|
l && (l.textContent = o ? `[data-style-id="${o}"]{ outline: 1px solid #42a1fc !important; outline-offset: -1px;}` : "");
|
|
1018
1026
|
}, [o, e, l]), w(() => {
|
|
1019
|
-
p && (p.textContent = `${
|
|
1027
|
+
p && (p.textContent = `${H(c, ({ id: g }) => `[data-style-id="${g}"]`).join(",")}{
|
|
1020
1028
|
outline: 1px solid #42a1fc !important; outline-offset: -1px;
|
|
1021
1029
|
}`);
|
|
1022
1030
|
}, [c, p]), w(() => {
|
|
1023
1031
|
const g = f(s, "bodyTextLightColor", "#64748b"), m = f(s, "bodyTextDarkColor", "#94a3b8"), b = f(s, "bodyBgLightColor", "#FFFFFF"), j = f(s, "bodyBgDarkColor", "#0f172a");
|
|
1024
1032
|
i.body.className = `font-body antialiased text-[${g}] bg-[${b}] dark:text-[${m}] dark:bg-[${j}]`;
|
|
1025
1033
|
}, [s, i, n]), n === "page" ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1026
|
-
|
|
1034
|
+
v && /* @__PURE__ */ r.jsx(
|
|
1027
1035
|
"link",
|
|
1028
1036
|
{
|
|
1029
1037
|
id: "heading-font",
|
|
1030
1038
|
rel: "stylesheet",
|
|
1031
1039
|
type: "text/css",
|
|
1032
|
-
href: `https://fonts.googleapis.com/css2?family=${
|
|
1040
|
+
href: `https://fonts.googleapis.com/css2?family=${v.replace(
|
|
1033
1041
|
/ /g,
|
|
1034
1042
|
"+"
|
|
1035
1043
|
)}:wght@300;400;500;600;700;800;900&display=swap`,
|
|
1036
1044
|
media: "all"
|
|
1037
1045
|
}
|
|
1038
1046
|
),
|
|
1039
|
-
|
|
1047
|
+
$ && v !== $ && /* @__PURE__ */ r.jsx(
|
|
1040
1048
|
"link",
|
|
1041
1049
|
{
|
|
1042
1050
|
id: "body-font",
|
|
1043
1051
|
rel: "stylesheet",
|
|
1044
1052
|
type: "text/css",
|
|
1045
|
-
href: `https://fonts.googleapis.com/css2?family=${
|
|
1053
|
+
href: `https://fonts.googleapis.com/css2?family=${$.replace(
|
|
1046
1054
|
/ /g,
|
|
1047
1055
|
"+"
|
|
1048
1056
|
)}:wght@300;400;500;600;700;800;900&display=swap`,
|
|
1049
1057
|
media: "all"
|
|
1050
1058
|
}
|
|
1051
1059
|
),
|
|
1052
|
-
|
|
1060
|
+
v && /* @__PURE__ */ r.jsx("style", { children: `h1,h2,h3,h4,h5,h6{font-family: "${v}",ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";}` })
|
|
1053
1061
|
] }) : null;
|
|
1054
|
-
},
|
|
1062
|
+
}, Es = (n) => {
|
|
1055
1063
|
const s = {};
|
|
1056
1064
|
return Object.keys(n).forEach((e) => {
|
|
1057
|
-
|
|
1065
|
+
ee(n[e]) && n[e].startsWith(he) && (s[e] = n[e].replace(he, "").split(","));
|
|
1058
1066
|
}), s;
|
|
1059
|
-
},
|
|
1060
|
-
const s = n.replace(
|
|
1061
|
-
return
|
|
1067
|
+
}, Ms = Ke((n) => {
|
|
1068
|
+
const s = n.replace(Me, "").split(",");
|
|
1069
|
+
return ts(s[0], s[1]);
|
|
1062
1070
|
});
|
|
1063
1071
|
function Ns(n, s) {
|
|
1064
1072
|
return f(n, `${s}_attrs`, {});
|
|
1065
1073
|
}
|
|
1066
|
-
function
|
|
1074
|
+
function Ts(n) {
|
|
1067
1075
|
const s = {};
|
|
1068
1076
|
return Object.keys(n).forEach((e) => {
|
|
1069
|
-
if (
|
|
1070
|
-
const t =
|
|
1077
|
+
if (ee(n[e]) && n[e].startsWith(Me)) {
|
|
1078
|
+
const t = Ms(n[e]);
|
|
1071
1079
|
s[e] = {
|
|
1072
1080
|
className: t,
|
|
1073
1081
|
"data-style-prop": e,
|
|
@@ -1078,14 +1086,14 @@ function Ms(n) {
|
|
|
1078
1086
|
}
|
|
1079
1087
|
}), s;
|
|
1080
1088
|
}
|
|
1081
|
-
function
|
|
1089
|
+
function Ls(n, s) {
|
|
1082
1090
|
const e = f(n, "_bindings", {});
|
|
1083
|
-
return A(e) ? { ...n } : (
|
|
1084
|
-
|
|
1091
|
+
return A(e) ? { ...n } : (Ye(e, (t, o) => {
|
|
1092
|
+
ee(t) && f(s, t, null) && (n[o] = f(s, t, null));
|
|
1085
1093
|
}), n);
|
|
1086
1094
|
}
|
|
1087
|
-
function
|
|
1088
|
-
const [s] =
|
|
1095
|
+
function V({ blocks: n }) {
|
|
1096
|
+
const [s] = se(), [e] = y(ne), [t] = y(Ee), [o] = os(), c = O((l) => Ts(l), []), [a] = Ft(), [i] = y(L), d = O(
|
|
1089
1097
|
(l) => l.reduce((h, p) => {
|
|
1090
1098
|
const u = f(o, p, {});
|
|
1091
1099
|
return { ...h, ...u };
|
|
@@ -1096,30 +1104,30 @@ function J({ blocks: n }) {
|
|
|
1096
1104
|
n.map((l, h) => {
|
|
1097
1105
|
if (i === l._id)
|
|
1098
1106
|
return null;
|
|
1099
|
-
const p =
|
|
1107
|
+
const p = Es(l), u = {};
|
|
1100
1108
|
A(p) || Object.keys(p).forEach((j) => {
|
|
1101
1109
|
u[j] = M.Children.toArray(
|
|
1102
|
-
p[j].map((
|
|
1110
|
+
p[j].map((F) => /* @__PURE__ */ r.jsx(V, { blocks: [Ge(s, { _id: F })] }))
|
|
1103
1111
|
);
|
|
1104
1112
|
});
|
|
1105
|
-
const
|
|
1106
|
-
u.children =
|
|
1107
|
-
const
|
|
1108
|
-
if (
|
|
1113
|
+
const v = be(s, { _parent: l._id });
|
|
1114
|
+
u.children = v.length ? /* @__PURE__ */ r.jsx(V, { blocks: v }) : null;
|
|
1115
|
+
const $ = ss(l._type), g = f($, "builderComponent", f($, "component", null));
|
|
1116
|
+
if (Xe(g))
|
|
1109
1117
|
return /* @__PURE__ */ r.jsx("noscript", { children: `<!-- ${l == null ? void 0 : l._type} not registered -->` });
|
|
1110
|
-
const m =
|
|
1111
|
-
return /* @__PURE__ */ r.jsx(
|
|
1118
|
+
const m = ye($, "getBlockStateFrom") ? $ == null ? void 0 : $.getBlockStateFrom(l, s) : [], b = d(m);
|
|
1119
|
+
return /* @__PURE__ */ r.jsx(ve, { children: M.createElement(g, {
|
|
1112
1120
|
blockProps: {
|
|
1113
1121
|
"data-block-id": l._id,
|
|
1114
1122
|
"data-block-type": l._type,
|
|
1115
1123
|
...e ? (
|
|
1116
1124
|
// @ts-ignore
|
|
1117
|
-
{ "data-dnd":
|
|
1125
|
+
{ "data-dnd": Rt(l._type, e == null ? void 0 : e._type) ? "yes" : "no" }
|
|
1118
1126
|
) : {},
|
|
1119
1127
|
...t === l._id ? { "data-drop": "yes" } : {}
|
|
1120
1128
|
},
|
|
1121
1129
|
index: h,
|
|
1122
|
-
...
|
|
1130
|
+
...Ls(l, a),
|
|
1123
1131
|
...c(l),
|
|
1124
1132
|
...u,
|
|
1125
1133
|
inBuilder: !0,
|
|
@@ -1128,41 +1136,41 @@ function J({ blocks: n }) {
|
|
|
1128
1136
|
})
|
|
1129
1137
|
) });
|
|
1130
1138
|
}
|
|
1131
|
-
const
|
|
1132
|
-
const [n] =
|
|
1139
|
+
const Fs = () => {
|
|
1140
|
+
const [n] = se(), s = A(n) ? null : /* @__PURE__ */ r.jsx(Ht, { children: /* @__PURE__ */ r.jsx(V, { blocks: be(n, (e) => A(e._parent)) }) });
|
|
1133
1141
|
return /* @__PURE__ */ r.jsx(r.Fragment, { children: s });
|
|
1134
|
-
},
|
|
1135
|
-
const [n] = y(
|
|
1142
|
+
}, Rs = (n, s) => n.querySelector(`[data-style-id="${s}"]`), Hs = () => {
|
|
1143
|
+
const [n] = y(Pt), [s] = Ae(), [e] = te(), [, t] = D(), o = zt(), [, c] = T(), a = le(null), i = le(null), [d, l] = C({ width: 0, height: 0 }), h = hs(d), [p, u] = C(0), [v, $] = C([]), [, g] = C([]), [, m] = y(Ot), [b, j] = N(), F = P("loading", !1), K = P("htmlDir", "ltr");
|
|
1136
1144
|
w(() => {
|
|
1137
|
-
const { clientWidth:
|
|
1138
|
-
l({ width:
|
|
1145
|
+
const { clientWidth: x, clientHeight: I } = i.current;
|
|
1146
|
+
l({ width: x, height: I }), p === 0 && u(x);
|
|
1139
1147
|
}, [i, e, p]);
|
|
1140
|
-
const
|
|
1141
|
-
const { top: S } =
|
|
1148
|
+
const Y = (x, I = 0) => {
|
|
1149
|
+
const { top: S } = x.getBoundingClientRect();
|
|
1142
1150
|
return S + I >= 0 && S - I <= window.innerHeight;
|
|
1143
1151
|
};
|
|
1144
1152
|
w(() => {
|
|
1145
|
-
var
|
|
1153
|
+
var x, I;
|
|
1146
1154
|
if (o && o.type !== "Multiple" && a.current) {
|
|
1147
|
-
const S =
|
|
1148
|
-
S && (
|
|
1155
|
+
const S = Re(a.current.contentDocument, o._id);
|
|
1156
|
+
S && (Y(S) || (I = (x = a.current) == null ? void 0 : x.contentWindow) == null || I.scrollTo({ top: S.offsetTop, behavior: "smooth" }), $([S]));
|
|
1149
1157
|
}
|
|
1150
1158
|
}, [o]), w(() => {
|
|
1151
1159
|
if (!A(b) && a.current) {
|
|
1152
|
-
const
|
|
1160
|
+
const x = Rs(
|
|
1153
1161
|
a.current.contentDocument,
|
|
1154
|
-
|
|
1162
|
+
U(b).id
|
|
1155
1163
|
);
|
|
1156
|
-
g(
|
|
1164
|
+
g(x ? [x] : [null]);
|
|
1157
1165
|
} else
|
|
1158
1166
|
g([null]);
|
|
1159
1167
|
}, [b]);
|
|
1160
|
-
const
|
|
1161
|
-
let
|
|
1162
|
-
return
|
|
1168
|
+
const G = Oe(() => {
|
|
1169
|
+
let x = us;
|
|
1170
|
+
return x = x.replace("__HTML_DIR__", K), n === "offline" && (x = x.replace(
|
|
1163
1171
|
"https://old.chaibuilder.com/offline/tailwind.cdn.js",
|
|
1164
1172
|
"/offline/tailwind.cdn.js"
|
|
1165
|
-
),
|
|
1173
|
+
), x = x.replace("https://unpkg.com/aos@next/dist/aos.css", "/offline/aos.css"), x = x.replace("https://unpkg.com/aos@next/dist/aos.js", "/offline/aos.js")), x;
|
|
1166
1174
|
}, [n]);
|
|
1167
1175
|
return /* @__PURE__ */ r.jsx(
|
|
1168
1176
|
"div",
|
|
@@ -1175,25 +1183,25 @@ const Ts = () => {
|
|
|
1175
1183
|
style: p > 0 && !A(h) ? { width: s ? "100%" : p } : {},
|
|
1176
1184
|
ref: i,
|
|
1177
1185
|
children: /* @__PURE__ */ r.jsxs(
|
|
1178
|
-
|
|
1186
|
+
gs,
|
|
1179
1187
|
{
|
|
1180
1188
|
contentDidMount: () => m(a.current),
|
|
1181
1189
|
ref: a,
|
|
1182
1190
|
id: "canvas-iframe",
|
|
1183
1191
|
style: { width: `${e}px`, ...h },
|
|
1184
1192
|
className: "relative mx-auto box-content h-full max-w-full shadow-lg transition-all duration-300 ease-linear",
|
|
1185
|
-
initialContent:
|
|
1193
|
+
initialContent: G,
|
|
1186
1194
|
children: [
|
|
1187
|
-
/* @__PURE__ */ r.jsx(
|
|
1195
|
+
/* @__PURE__ */ r.jsx(_s, {}),
|
|
1188
1196
|
/* @__PURE__ */ r.jsx(
|
|
1189
|
-
|
|
1197
|
+
As,
|
|
1190
1198
|
{
|
|
1191
1199
|
block: o,
|
|
1192
|
-
selectedBlockElement:
|
|
1200
|
+
selectedBlockElement: U(v)
|
|
1193
1201
|
}
|
|
1194
1202
|
),
|
|
1195
|
-
/* @__PURE__ */ r.jsx(
|
|
1196
|
-
/* @__PURE__ */ r.jsx(
|
|
1203
|
+
/* @__PURE__ */ r.jsx(Ss, { model: "page" }),
|
|
1204
|
+
/* @__PURE__ */ r.jsx(ns, { children: /* @__PURE__ */ r.jsx(Ds, { children: F ? /* @__PURE__ */ r.jsx("div", { className: "h-full p-4", children: /* @__PURE__ */ r.jsx(Se, { className: "h-full" }) }) : /* @__PURE__ */ r.jsx(Fs, {}) }) }),
|
|
1197
1205
|
/* @__PURE__ */ r.jsx("br", {}),
|
|
1198
1206
|
/* @__PURE__ */ r.jsx(
|
|
1199
1207
|
"div",
|
|
@@ -1207,10 +1215,10 @@ const Ts = () => {
|
|
|
1207
1215
|
)
|
|
1208
1216
|
}
|
|
1209
1217
|
);
|
|
1210
|
-
},
|
|
1211
|
-
/* @__PURE__ */ r.jsx(
|
|
1212
|
-
/* @__PURE__ */ r.jsx("div", { className: "relative h-full overflow-hidden bg-slate-800/90 bg-[linear-gradient(to_right,#222_0.5px,transparent_0.5px),linear-gradient(to_bottom,#222_0.5px,transparent_0.5px)] bg-[size:12px_12px] px-2", children: /* @__PURE__ */ r.jsx(
|
|
1218
|
+
}, Uo = () => /* @__PURE__ */ r.jsxs("div", { className: "flex h-full w-full flex-col", children: [
|
|
1219
|
+
/* @__PURE__ */ r.jsx(ps, {}),
|
|
1220
|
+
/* @__PURE__ */ r.jsx("div", { className: "relative h-full overflow-hidden bg-slate-800/90 bg-[linear-gradient(to_right,#222_0.5px,transparent_0.5px),linear-gradient(to_bottom,#222_0.5px,transparent_0.5px)] bg-[size:12px_12px] px-2", children: /* @__PURE__ */ r.jsx(ve, { fallback: /* @__PURE__ */ r.jsx(Se, { className: "h-full" }), children: /* @__PURE__ */ r.jsx(Ut, { children: /* @__PURE__ */ r.jsx(Hs, {}) }) }) })
|
|
1213
1221
|
] });
|
|
1214
1222
|
export {
|
|
1215
|
-
|
|
1223
|
+
Uo as default
|
|
1216
1224
|
};
|