@chaibuilder/sdk 0.1.15 → 0.1.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.
Files changed (40) hide show
  1. package/dist/{AddBlocks-e65160bb.cjs → AddBlocks-3d30d446.cjs} +1 -1
  2. package/dist/{AddBlocks-12b4bcb1.js → AddBlocks-7b723045.js} +1 -1
  3. package/dist/{BrandingOptions-d2e86bba.js → BrandingOptions-b0624d8f.js} +1 -1
  4. package/dist/{BrandingOptions-2075324b.cjs → BrandingOptions-daafdabf.cjs} +1 -1
  5. package/dist/{CanvasArea-480c053b.cjs → CanvasArea-93be7e7b.cjs} +8 -8
  6. package/dist/{CanvasArea-4a600b0b.js → CanvasArea-d301c4ef.js} +272 -278
  7. package/dist/{CurrentPage-1f8e7c5f.cjs → CurrentPage-478eb8a0.cjs} +1 -1
  8. package/dist/{CurrentPage-9de40984.js → CurrentPage-e0c8b063.js} +1 -1
  9. package/dist/{Layers-048bdcbc.js → Layers-20ce5cb3.js} +2 -2
  10. package/dist/{Layers-ab013224.cjs → Layers-85854772.cjs} +1 -1
  11. package/dist/{MarkAsGlobalBlock-1b607a7a.cjs → MarkAsGlobalBlock-5a36e8ad.cjs} +1 -1
  12. package/dist/{MarkAsGlobalBlock-0f52dce4.js → MarkAsGlobalBlock-96dd248c.js} +1 -1
  13. package/dist/{PagesPanel-f15d3d6d.cjs → PagesPanel-39cc0156.cjs} +1 -1
  14. package/dist/{PagesPanel-caeb74c0.js → PagesPanel-6f5393e8.js} +2 -2
  15. package/dist/{ProjectPanel-8b70ff96.cjs → ProjectPanel-027fb151.cjs} +1 -1
  16. package/dist/{ProjectPanel-774b3de7.js → ProjectPanel-b027fc0d.js} +2 -2
  17. package/dist/{Settings-a12cec46.js → Settings-5bae2bdf.js} +1 -1
  18. package/dist/{Settings-a3eec331.cjs → Settings-d9dc47d7.cjs} +1 -1
  19. package/dist/{SidePanels-c4420954.js → SidePanels-9ac03c5d.js} +2 -2
  20. package/dist/{SidePanels-c5482f7f.cjs → SidePanels-fe464a57.cjs} +1 -1
  21. package/dist/{Topbar-d4b46465.js → Topbar-ba10ddd1.js} +1 -1
  22. package/dist/{Topbar-13c64cdf.cjs → Topbar-e00f11e0.cjs} +1 -1
  23. package/dist/{add-page-modal-c169dc4b.cjs → add-page-modal-b267650f.cjs} +1 -1
  24. package/dist/{add-page-modal-f8e5b874.js → add-page-modal-b5f3aeab.js} +1 -1
  25. package/dist/core.cjs +1 -1
  26. package/dist/core.js +1 -1
  27. package/dist/delete-page-modal-04b3677b.cjs +1 -0
  28. package/dist/{delete-page-modal-52feec39.js → delete-page-modal-b1d253ae.js} +8 -8
  29. package/dist/{index-659e552b.cjs → index-1e878777.cjs} +2 -2
  30. package/dist/{index-14e86fe3.js → index-95757b80.js} +3 -3
  31. package/dist/{page-viewer-3b6eb2d0.js → page-viewer-11b81948.js} +14 -14
  32. package/dist/{page-viewer-7042768e.cjs → page-viewer-f41c53e3.cjs} +1 -1
  33. package/dist/{project-general-setting-4e840310.cjs → project-general-setting-51da3f18.cjs} +1 -1
  34. package/dist/{project-general-setting-d72ae135.js → project-general-setting-9f37b1ac.js} +1 -1
  35. package/dist/render.cjs +2 -2
  36. package/dist/render.js +1 -3
  37. package/dist/{single-page-detail-a151a222.js → single-page-detail-085b82ca.js} +2 -2
  38. package/dist/{single-page-detail-6632db9b.cjs → single-page-detail-a251b327.cjs} +1 -1
  39. package/package.json +1 -1
  40. package/dist/delete-page-modal-cce082dc.cjs +0 -1
@@ -3,27 +3,27 @@ var gt = (e, r, n) => r in e ? vt(e, r, { enumerable: !0, configurable: !0, writ
3
3
  var V = (e, r, n) => (gt(e, typeof r != "symbol" ? r + "" : r, n), n);
4
4
  import { j as t } from "./jsx-runtime-944c88e2.js";
5
5
  import G, { createElement as xt, useCallback as Q, useState as H, useEffect as F, Component as Xe, Children as bt, Suspense as Ze, useRef as Oe, useMemo as wt, lazy as Et } from "react";
6
- import { map as ie, includes as Me, toUpper as ye, round as St, isEmpty as ee, first as ce, get as $, memoize as Tt, find as jt, filter as Je, isString as Qe } from "lodash";
7
- import { ResetIcon as De, DotsVerticalIcon as Ct, MobileIcon as Be, LaptopIcon as kt, DesktopIcon as Rt, EraserIcon as At, ZoomInIcon as _t, ArrowUpIcon as Pt, CopyIcon as It, TrashIcon as Ot, DragHandleDots2Icon as Mt } from "@radix-ui/react-icons";
6
+ import { map as ie, includes as Me, toUpper as ye, round as St, isEmpty as ee, first as ce, get as B, memoize as Tt, find as jt, filter as Je, isNull as Ct, isString as Qe } from "lodash";
7
+ import { ResetIcon as De, DotsVerticalIcon as kt, MobileIcon as $e, LaptopIcon as Rt, DesktopIcon as At, EraserIcon as _t, ZoomInIcon as Pt, ArrowUpIcon as It, CopyIcon as Ot, TrashIcon as Mt, DragHandleDots2Icon as Dt } from "@radix-ui/react-icons";
8
8
  import { B as le, u as et, S as tt } from "./useBuilderProp-81a14920.js";
9
- import { c as ke, d as rt, e as Re, f as Dt, g as Bt, h as X, i as Z, j as $t, k as nt, l as ot, m as Nt, n as Lt, o as Ft, p as st, q as at, u as Wt, r as qt, s as Ut, t as Yt, v as zt, w as Ht, x as Ae, y as it, z as Kt, A as Vt, B as Gt, b as Xt, E as Zt } from "./index-14e86fe3.js";
9
+ import { c as ke, d as rt, e as Re, f as $t, g as Bt, h as X, i as Z, j as Nt, k as nt, l as ot, m as Lt, n as Ft, o as Wt, p as st, q as at, u as qt, r as Ut, s as Yt, t as zt, v as Ht, w as Kt, x as Ae, y as it, z as Vt, A as Gt, B as Xt, b as Zt, E as Jt } from "./index-95757b80.js";
10
10
  import { useTranslation as ct } from "react-i18next";
11
11
  import { S as se } from "./separator-a80d065b.js";
12
- import { S as Jt, D as Qt, c as er, d as tr, h as rr, i as nr, f as or, H as sr, a as ar, b as ir } from "./dropdown-menu-ae3ed09b.js";
13
- import { L as cr } from "./label-e770a087.js";
14
- import { A as lr, a as dr, b as ur, c as fr, e as pr, f as hr, d as mr, h as yr, g as vr } from "./alert-dialog-ee98f47e.js";
12
+ import { S as Qt, D as er, c as tr, d as rr, h as nr, i as or, f as sr, H as ar, a as ir, b as cr } from "./dropdown-menu-ae3ed09b.js";
13
+ import { L as lr } from "./label-e770a087.js";
14
+ import { A as dr, a as ur, b as fr, c as pr, e as hr, f as mr, d as yr, h as vr, g as gr } from "./alert-dialog-ee98f47e.js";
15
15
  import { useAtom as te } from "jotai";
16
- import { flip as gr } from "@floating-ui/dom";
17
- import { useFloating as xr, shift as br } from "@floating-ui/react-dom";
18
- import { useDrag as wr } from "react-dnd";
19
- import { useResizeObserver as Er } from "@react-hookz/web";
20
- import { tailwindcssPaletteGenerator as Sr } from "@bobthered/tailwindcss-palette-generator";
21
- import { Provider as Tr } from "react-wrap-balancer";
22
- import { twMerge as jr } from "tailwind-merge";
23
- import { S as lt, a as $e } from "./MODIFIERS-c2e02614.js";
24
- import { getBlockComponent as Cr } from "@chaibuilder/blocks";
16
+ import { flip as xr } from "@floating-ui/dom";
17
+ import { useFloating as br, shift as wr } from "@floating-ui/react-dom";
18
+ import { useDrag as Er } from "react-dnd";
19
+ import { useResizeObserver as Sr } from "@react-hookz/web";
20
+ import { tailwindcssPaletteGenerator as Tr } from "@bobthered/tailwindcss-palette-generator";
21
+ import { Provider as jr } from "react-wrap-balancer";
22
+ import { twMerge as Cr } from "tailwind-merge";
23
+ import { S as lt, a as Be } from "./MODIFIERS-c2e02614.js";
24
+ import { getBlockComponent as kr } from "@chaibuilder/blocks";
25
25
  import Ne from "react-dom";
26
- import { g as kr } from "./_commonjsHelpers-d4512b9c.js";
26
+ import { g as Rr } from "./_commonjsHelpers-d4512b9c.js";
27
27
  import "@radix-ui/react-slot";
28
28
  import "class-variance-authority";
29
29
  import "./utils-ac68b2c8.js";
@@ -46,19 +46,19 @@ import "@radix-ui/react-hover-card";
46
46
  import "@radix-ui/react-dropdown-menu";
47
47
  import "@radix-ui/react-label";
48
48
  import "@radix-ui/react-alert-dialog";
49
- const Rr = () => {
49
+ const Ar = () => {
50
50
  const { undoCount: e, redoCount: r, undo: n, redo: i } = ke();
51
51
  return /* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
52
52
  /* @__PURE__ */ t.jsx(le, { disabled: !e, size: "sm", onClick: n, className: "rounded-full", variant: "ghost", children: /* @__PURE__ */ t.jsx(De, {}) }),
53
53
  /* @__PURE__ */ t.jsx(le, { disabled: !r, onClick: i, size: "sm", className: "rounded-full", variant: "ghost", children: /* @__PURE__ */ t.jsx(De, { className: "rotate-180 scale-y-[-1] transform" }) })
54
54
  ] });
55
55
  };
56
- function Ar() {
56
+ function _r() {
57
57
  const [e, r] = rt(), { t: n } = ct();
58
58
  return /* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
59
- /* @__PURE__ */ t.jsx(cr, { htmlFor: "dark-mode-switch", children: n("dark_mode") }),
59
+ /* @__PURE__ */ t.jsx(lr, { htmlFor: "dark-mode-switch", children: n("dark_mode") }),
60
60
  /* @__PURE__ */ t.jsxs(
61
- Jt,
61
+ Qt,
62
62
  {
63
63
  id: "dark-mode-switch",
64
64
  checked: e,
@@ -110,14 +110,14 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
110
110
  title: "Mobile (XS)",
111
111
  content: "Styles set here are applied to all screen unless edited at higher breakpoint",
112
112
  breakpoint: "xs",
113
- icon: /* @__PURE__ */ t.jsx(Be, {}),
113
+ icon: /* @__PURE__ */ t.jsx($e, {}),
114
114
  width: 400
115
115
  },
116
116
  {
117
117
  title: "Mobile landscape (SM)",
118
118
  content: "Styles set here are applied at 640px and up unless edited at higher breakpoint",
119
119
  breakpoint: "sm",
120
- icon: /* @__PURE__ */ t.jsx(Be, { className: "rotate-90" }),
120
+ icon: /* @__PURE__ */ t.jsx($e, { className: "rotate-90" }),
121
121
  width: 640
122
122
  },
123
123
  {
@@ -138,17 +138,17 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
138
138
  title: "Desktop (XL)",
139
139
  content: "Styles set here are applied at 1280px and up unless edited at higher breakpoint",
140
140
  breakpoint: "xl",
141
- icon: /* @__PURE__ */ t.jsx(kt, {}),
141
+ icon: /* @__PURE__ */ t.jsx(Rt, {}),
142
142
  width: 1420
143
143
  },
144
144
  {
145
145
  title: "Large Desktop (2XL)",
146
146
  content: "Styles set here are applied at 1536px and up",
147
147
  breakpoint: "2xl",
148
- icon: /* @__PURE__ */ t.jsx(Rt, {}),
148
+ icon: /* @__PURE__ */ t.jsx(At, {}),
149
149
  width: 1920
150
150
  }
151
- ], _r = ({
151
+ ], Pr = ({
152
152
  title: e,
153
153
  content: r,
154
154
  currentBreakpoint: n,
@@ -156,8 +156,8 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
156
156
  width: d,
157
157
  icon: s,
158
158
  onClick: a
159
- }) => /* @__PURE__ */ t.jsxs(sr, { children: [
160
- /* @__PURE__ */ t.jsx(ar, { asChild: !0, children: /* @__PURE__ */ t.jsx(
159
+ }) => /* @__PURE__ */ t.jsxs(ar, { children: [
160
+ /* @__PURE__ */ t.jsx(ir, { asChild: !0, children: /* @__PURE__ */ t.jsx(
161
161
  le,
162
162
  {
163
163
  onClick: () => a(d),
@@ -166,26 +166,26 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
166
166
  children: s
167
167
  }
168
168
  ) }),
169
- /* @__PURE__ */ t.jsx(ir, { className: "w-52 border-border", children: /* @__PURE__ */ t.jsx("div", { className: "flex justify-between space-x-4", children: /* @__PURE__ */ t.jsxs("div", { className: "space-y-1", children: [
169
+ /* @__PURE__ */ t.jsx(cr, { className: "w-52 border-border", children: /* @__PURE__ */ t.jsx("div", { className: "flex justify-between space-x-4", children: /* @__PURE__ */ t.jsxs("div", { className: "space-y-1", children: [
170
170
  /* @__PURE__ */ t.jsx("h4", { className: "text-sm font-semibold", children: e }),
171
171
  /* @__PURE__ */ t.jsx("p", { className: "text-xs", children: r })
172
172
  ] }) }) })
173
- ] }), Pr = () => {
174
- const [, e, r] = Re(), [n, i] = Dt(), d = (s) => {
173
+ ] }), Ir = () => {
174
+ const [, e, r] = Re(), [n, i] = $t(), d = (s) => {
175
175
  n.includes(s) ? n.length > 2 && i(n.filter((a) => a !== s)) : i((a) => [...a, s]);
176
176
  };
177
177
  return /* @__PURE__ */ t.jsxs("div", { className: "flex items-center rounded-md", children: [
178
178
  ie(
179
179
  Fe.filter((s) => Me(n, ye(s.breakpoint))),
180
- (s) => /* @__PURE__ */ xt(_r, { ...s, onClick: r, key: s.breakpoint, currentBreakpoint: e })
180
+ (s) => /* @__PURE__ */ xt(Pr, { ...s, onClick: r, key: s.breakpoint, currentBreakpoint: e })
181
181
  ),
182
- /* @__PURE__ */ t.jsxs(Qt, { children: [
183
- /* @__PURE__ */ t.jsx(er, { asChild: !0, children: /* @__PURE__ */ t.jsx("span", { className: "cursor-pointer px-2.5 hover:opacity-80", children: /* @__PURE__ */ t.jsx(Ct, { className: "scale-90 transform" }) }) }),
184
- /* @__PURE__ */ t.jsxs(tr, { className: "w-56 border-border text-xs", children: [
185
- /* @__PURE__ */ t.jsx(rr, { children: "Breakpoints" }),
186
- /* @__PURE__ */ t.jsx(nr, {}),
182
+ /* @__PURE__ */ t.jsxs(er, { children: [
183
+ /* @__PURE__ */ t.jsx(tr, { asChild: !0, children: /* @__PURE__ */ t.jsx("span", { className: "cursor-pointer px-2.5 hover:opacity-80", children: /* @__PURE__ */ t.jsx(kt, { className: "scale-90 transform" }) }) }),
184
+ /* @__PURE__ */ t.jsxs(rr, { className: "w-56 border-border text-xs", children: [
185
+ /* @__PURE__ */ t.jsx(nr, { children: "Breakpoints" }),
186
+ /* @__PURE__ */ t.jsx(or, {}),
187
187
  ie(Fe, (s) => /* @__PURE__ */ t.jsx(
188
- or,
188
+ sr,
189
189
  {
190
190
  disabled: s.breakpoint === "xs",
191
191
  onCheckedChange: () => d(ye(s.breakpoint)),
@@ -197,38 +197,38 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
197
197
  ] })
198
198
  ] })
199
199
  ] });
200
- }, Ir = () => {
200
+ }, Or = () => {
201
201
  const [e] = Bt(), { createSnapshot: r } = ke(), [, n] = X(), [, i] = Z(), d = Q(() => {
202
202
  e([]), n([]), i([]), r();
203
203
  }, [e, r]);
204
- return /* @__PURE__ */ t.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ t.jsxs(lr, { children: [
205
- /* @__PURE__ */ t.jsx(dr, { asChild: !0, children: /* @__PURE__ */ t.jsxs(le, { size: "sm", variant: "ghost", className: "flex items-center gap-x-1", children: [
206
- /* @__PURE__ */ t.jsx(At, {}),
204
+ return /* @__PURE__ */ t.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ t.jsxs(dr, { children: [
205
+ /* @__PURE__ */ t.jsx(ur, { asChild: !0, children: /* @__PURE__ */ t.jsxs(le, { size: "sm", variant: "ghost", className: "flex items-center gap-x-1", children: [
206
+ /* @__PURE__ */ t.jsx(_t, {}),
207
207
  " Clear"
208
208
  ] }) }),
209
- /* @__PURE__ */ t.jsxs(ur, { className: "border-border", children: [
210
- /* @__PURE__ */ t.jsxs(fr, { children: [
211
- /* @__PURE__ */ t.jsx(pr, { children: "Clear whole canvas?" }),
212
- /* @__PURE__ */ t.jsx(hr, { children: "Are you sure you want to clear the whole canvas?" })
209
+ /* @__PURE__ */ t.jsxs(fr, { className: "border-border", children: [
210
+ /* @__PURE__ */ t.jsxs(pr, { children: [
211
+ /* @__PURE__ */ t.jsx(hr, { children: "Clear whole canvas?" }),
212
+ /* @__PURE__ */ t.jsx(mr, { children: "Are you sure you want to clear the whole canvas?" })
213
213
  ] }),
214
- /* @__PURE__ */ t.jsxs(mr, { children: [
215
- /* @__PURE__ */ t.jsx(yr, { children: "Cancel" }),
216
- /* @__PURE__ */ t.jsx(vr, { onClick: d, children: "Yes" })
214
+ /* @__PURE__ */ t.jsxs(yr, { children: [
215
+ /* @__PURE__ */ t.jsx(vr, { children: "Cancel" }),
216
+ /* @__PURE__ */ t.jsx(gr, { onClick: d, children: "Yes" })
217
217
  ] })
218
218
  ] })
219
219
  ] }) });
220
- }, Or = () => {
221
- const e = $t("darkMode", !1), [r] = nt();
220
+ }, Mr = () => {
221
+ const e = Nt("darkMode", !1), [r] = nt();
222
222
  return /* @__PURE__ */ t.jsxs("div", { className: "flex h-10 items-center justify-between border-b bg-background/70 px-2", children: [
223
223
  /* @__PURE__ */ t.jsxs("div", { className: "flex h-full space-x-2", children: [
224
224
  e ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
225
- /* @__PURE__ */ t.jsx(Ar, {}),
225
+ /* @__PURE__ */ t.jsx(_r, {}),
226
226
  /* @__PURE__ */ t.jsx(se, { orientation: "vertical" })
227
227
  ] }) : null,
228
- /* @__PURE__ */ t.jsx(Pr, {}),
228
+ /* @__PURE__ */ t.jsx(Ir, {}),
229
229
  /* @__PURE__ */ t.jsx(se, { orientation: "vertical" }),
230
230
  /* @__PURE__ */ t.jsxs("div", { className: "flex w-12 items-center justify-center gap-x-1 space-x-0 font-medium", children: [
231
- /* @__PURE__ */ t.jsx(_t, { className: "h-3.5 w-3.5 flex-shrink-0" }),
231
+ /* @__PURE__ */ t.jsx(Pt, { className: "h-3.5 w-3.5 flex-shrink-0" }),
232
232
  " ",
233
233
  /* @__PURE__ */ t.jsxs("div", { className: "text-xs leading-3", children: [
234
234
  St(r, 0),
@@ -236,11 +236,11 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
236
236
  ] })
237
237
  ] }),
238
238
  /* @__PURE__ */ t.jsx(se, { orientation: "vertical" }),
239
- /* @__PURE__ */ t.jsx(Rr, {})
239
+ /* @__PURE__ */ t.jsx(Ar, {})
240
240
  ] }),
241
241
  /* @__PURE__ */ t.jsxs("div", { className: "flex h-full items-center space-x-2", children: [
242
242
  /* @__PURE__ */ t.jsx(se, { orientation: "vertical" }),
243
- /* @__PURE__ */ t.jsx(Ir, {})
243
+ /* @__PURE__ */ t.jsx(Or, {})
244
244
  ] })
245
245
  ] });
246
246
  }, ve = {
@@ -249,7 +249,7 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
249
249
  EMAIL: "EMAIL",
250
250
  PRESENTATION: "PRESENTATION",
251
251
  GRAPHIC: "GRAPHIC"
252
- }, Mr = `<!doctype html>
252
+ }, Dr = `<!doctype html>
253
253
  <html class="scroll-smooth h-full overflow-y-auto">
254
254
  <head>
255
255
  <meta charset="UTF-8">
@@ -283,16 +283,16 @@ const Le = ({ landscape: e = !1 }) => /* @__PURE__ */ t.jsxs(
283
283
  <body class="font-body antialiased h-full">
284
284
  <div class="frame-root"></div>
285
285
  </body>
286
- </html>`, Dr = (e) => {
286
+ </html>`, $r = (e) => {
287
287
  const [r] = Re(), [, n] = nt(), [i, d] = H({}), s = Q(() => {
288
- const { width: a, height: u } = e;
288
+ const { width: a, height: p } = e;
289
289
  if (a < r) {
290
290
  const y = parseFloat((a / r).toString());
291
- let p = {};
292
- u && (p = { height: u + 2 * u * (1 - y) }), d({
291
+ let u = {};
292
+ p && (u = { height: p + 2 * p * (1 - y) }), d({
293
293
  transform: `scale(${y})`,
294
294
  transformOrigin: "top left",
295
- ...p,
295
+ ...u,
296
296
  maxWidth: "none"
297
297
  }), n(y * 100);
298
298
  } else
@@ -316,7 +316,7 @@ function Br() {
316
316
  if (We)
317
317
  return _;
318
318
  We = 1;
319
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, d = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, y = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
319
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, d = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, p = e ? Symbol.for("react.context") : 60110, y = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
320
320
  function M(l) {
321
321
  if (typeof l == "object" && l !== null) {
322
322
  var D = l.$$typeof;
@@ -324,7 +324,7 @@ function Br() {
324
324
  case r:
325
325
  switch (l = l.type, l) {
326
326
  case y:
327
- case p:
327
+ case u:
328
328
  case i:
329
329
  case s:
330
330
  case d:
@@ -332,7 +332,7 @@ function Br() {
332
332
  return l;
333
333
  default:
334
334
  switch (l = l && l.$$typeof, l) {
335
- case u:
335
+ case p:
336
336
  case m:
337
337
  case O:
338
338
  case v:
@@ -347,13 +347,13 @@ function Br() {
347
347
  }
348
348
  }
349
349
  }
350
- function B(l) {
351
- return M(l) === p;
352
- }
353
- return _.AsyncMode = y, _.ConcurrentMode = p, _.ContextConsumer = u, _.ContextProvider = a, _.Element = r, _.ForwardRef = m, _.Fragment = i, _.Lazy = O, _.Memo = v, _.Portal = n, _.Profiler = s, _.StrictMode = d, _.Suspense = h, _.isAsyncMode = function(l) {
354
- return B(l) || M(l) === y;
355
- }, _.isConcurrentMode = B, _.isContextConsumer = function(l) {
350
+ function $(l) {
356
351
  return M(l) === u;
352
+ }
353
+ return _.AsyncMode = y, _.ConcurrentMode = u, _.ContextConsumer = p, _.ContextProvider = a, _.Element = r, _.ForwardRef = m, _.Fragment = i, _.Lazy = O, _.Memo = v, _.Portal = n, _.Profiler = s, _.StrictMode = d, _.Suspense = h, _.isAsyncMode = function(l) {
354
+ return $(l) || M(l) === y;
355
+ }, _.isConcurrentMode = $, _.isContextConsumer = function(l) {
356
+ return M(l) === p;
357
357
  }, _.isContextProvider = function(l) {
358
358
  return M(l) === a;
359
359
  }, _.isElement = function(l) {
@@ -375,7 +375,7 @@ function Br() {
375
375
  }, _.isSuspense = function(l) {
376
376
  return M(l) === h;
377
377
  }, _.isValidElementType = function(l) {
378
- return typeof l == "string" || typeof l == "function" || l === i || l === p || l === s || l === d || l === h || l === b || typeof l == "object" && l !== null && (l.$$typeof === O || l.$$typeof === v || l.$$typeof === a || l.$$typeof === u || l.$$typeof === m || l.$$typeof === C || l.$$typeof === g || l.$$typeof === U || l.$$typeof === E);
378
+ return typeof l == "string" || typeof l == "function" || l === i || l === u || l === s || l === d || l === h || l === b || typeof l == "object" && l !== null && (l.$$typeof === O || l.$$typeof === v || l.$$typeof === a || l.$$typeof === p || l.$$typeof === m || l.$$typeof === C || l.$$typeof === g || l.$$typeof === U || l.$$typeof === w);
379
379
  }, _.typeOf = M, _;
380
380
  }
381
381
  var P = {};
@@ -388,14 +388,14 @@ var P = {};
388
388
  * LICENSE file in the root directory of this source tree.
389
389
  */
390
390
  var qe;
391
- function $r() {
391
+ function Nr() {
392
392
  return qe || (qe = 1, process.env.NODE_ENV !== "production" && function() {
393
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, d = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, y = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
393
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, d = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, p = e ? Symbol.for("react.context") : 60110, y = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
394
394
  function M(c) {
395
395
  return typeof c == "string" || typeof c == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
396
- c === i || c === p || c === s || c === d || c === h || c === b || typeof c == "object" && c !== null && (c.$$typeof === O || c.$$typeof === v || c.$$typeof === a || c.$$typeof === u || c.$$typeof === m || c.$$typeof === C || c.$$typeof === g || c.$$typeof === U || c.$$typeof === E);
396
+ c === i || c === u || c === s || c === d || c === h || c === b || typeof c == "object" && c !== null && (c.$$typeof === O || c.$$typeof === v || c.$$typeof === a || c.$$typeof === p || c.$$typeof === m || c.$$typeof === C || c.$$typeof === g || c.$$typeof === U || c.$$typeof === w);
397
397
  }
398
- function B(c) {
398
+ function $(c) {
399
399
  if (typeof c == "object" && c !== null) {
400
400
  var z = c.$$typeof;
401
401
  switch (z) {
@@ -403,7 +403,7 @@ function $r() {
403
403
  var oe = c.type;
404
404
  switch (oe) {
405
405
  case y:
406
- case p:
406
+ case u:
407
407
  case i:
408
408
  case s:
409
409
  case d:
@@ -412,7 +412,7 @@ function $r() {
412
412
  default:
413
413
  var Ie = oe && oe.$$typeof;
414
414
  switch (Ie) {
415
- case u:
415
+ case p:
416
416
  case m:
417
417
  case O:
418
418
  case v:
@@ -427,52 +427,52 @@ function $r() {
427
427
  }
428
428
  }
429
429
  }
430
- var l = y, D = p, W = u, q = a, de = r, ue = m, re = i, fe = O, pe = v, J = n, he = s, Y = d, K = h, ne = !1;
430
+ var l = y, D = u, W = p, q = a, de = r, ue = m, re = i, fe = O, pe = v, J = n, he = s, Y = d, K = h, ne = !1;
431
431
  function me(c) {
432
- return ne || (ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), o(c) || B(c) === y;
432
+ return ne || (ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), o(c) || $(c) === y;
433
433
  }
434
434
  function o(c) {
435
- return B(c) === p;
435
+ return $(c) === u;
436
436
  }
437
437
  function f(c) {
438
- return B(c) === u;
438
+ return $(c) === p;
439
439
  }
440
440
  function j(c) {
441
- return B(c) === a;
441
+ return $(c) === a;
442
442
  }
443
443
  function S(c) {
444
444
  return typeof c == "object" && c !== null && c.$$typeof === r;
445
445
  }
446
446
  function x(c) {
447
- return B(c) === m;
447
+ return $(c) === m;
448
448
  }
449
449
  function k(c) {
450
- return B(c) === i;
450
+ return $(c) === i;
451
451
  }
452
- function w(c) {
453
- return B(c) === O;
452
+ function E(c) {
453
+ return $(c) === O;
454
454
  }
455
455
  function T(c) {
456
- return B(c) === v;
456
+ return $(c) === v;
457
457
  }
458
458
  function R(c) {
459
- return B(c) === n;
459
+ return $(c) === n;
460
460
  }
461
461
  function I(c) {
462
- return B(c) === s;
462
+ return $(c) === s;
463
463
  }
464
464
  function A(c) {
465
- return B(c) === d;
465
+ return $(c) === d;
466
466
  }
467
467
  function N(c) {
468
- return B(c) === h;
468
+ return $(c) === h;
469
469
  }
470
- P.AsyncMode = l, P.ConcurrentMode = D, P.ContextConsumer = W, P.ContextProvider = q, P.Element = de, P.ForwardRef = ue, P.Fragment = re, P.Lazy = fe, P.Memo = pe, P.Portal = J, P.Profiler = he, P.StrictMode = Y, P.Suspense = K, P.isAsyncMode = me, P.isConcurrentMode = o, P.isContextConsumer = f, P.isContextProvider = j, P.isElement = S, P.isForwardRef = x, P.isFragment = k, P.isLazy = w, P.isMemo = T, P.isPortal = R, P.isProfiler = I, P.isStrictMode = A, P.isSuspense = N, P.isValidElementType = M, P.typeOf = B;
470
+ P.AsyncMode = l, P.ConcurrentMode = D, P.ContextConsumer = W, P.ContextProvider = q, P.Element = de, P.ForwardRef = ue, P.Fragment = re, P.Lazy = fe, P.Memo = pe, P.Portal = J, P.Profiler = he, P.StrictMode = Y, P.Suspense = K, P.isAsyncMode = me, P.isConcurrentMode = o, P.isContextConsumer = f, P.isContextProvider = j, P.isElement = S, P.isForwardRef = x, P.isFragment = k, P.isLazy = E, P.isMemo = T, P.isPortal = R, P.isProfiler = I, P.isStrictMode = A, P.isSuspense = N, P.isValidElementType = M, P.typeOf = $;
471
471
  }()), P;
472
472
  }
473
473
  var Ue;
474
474
  function dt() {
475
- return Ue || (Ue = 1, process.env.NODE_ENV === "production" ? ae.exports = Br() : ae.exports = $r()), ae.exports;
475
+ return Ue || (Ue = 1, process.env.NODE_ENV === "production" ? ae.exports = Br() : ae.exports = Nr()), ae.exports;
476
476
  }
477
477
  /*
478
478
  object-assign
@@ -480,7 +480,7 @@ object-assign
480
480
  @license MIT
481
481
  */
482
482
  var ge, Ye;
483
- function Nr() {
483
+ function Lr() {
484
484
  if (Ye)
485
485
  return ge;
486
486
  Ye = 1;
@@ -497,30 +497,30 @@ function Nr() {
497
497
  var s = new String("abc");
498
498
  if (s[5] = "de", Object.getOwnPropertyNames(s)[0] === "5")
499
499
  return !1;
500
- for (var a = {}, u = 0; u < 10; u++)
501
- a["_" + String.fromCharCode(u)] = u;
500
+ for (var a = {}, p = 0; p < 10; p++)
501
+ a["_" + String.fromCharCode(p)] = p;
502
502
  var y = Object.getOwnPropertyNames(a).map(function(m) {
503
503
  return a[m];
504
504
  });
505
505
  if (y.join("") !== "0123456789")
506
506
  return !1;
507
- var p = {};
507
+ var u = {};
508
508
  return "abcdefghijklmnopqrst".split("").forEach(function(m) {
509
- p[m] = m;
510
- }), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
509
+ u[m] = m;
510
+ }), Object.keys(Object.assign({}, u)).join("") === "abcdefghijklmnopqrst";
511
511
  } catch {
512
512
  return !1;
513
513
  }
514
514
  }
515
515
  return ge = d() ? Object.assign : function(s, a) {
516
- for (var u, y = i(s), p, m = 1; m < arguments.length; m++) {
517
- u = Object(arguments[m]);
518
- for (var h in u)
519
- r.call(u, h) && (y[h] = u[h]);
516
+ for (var p, y = i(s), u, m = 1; m < arguments.length; m++) {
517
+ p = Object(arguments[m]);
518
+ for (var h in p)
519
+ r.call(p, h) && (y[h] = p[h]);
520
520
  if (e) {
521
- p = e(u);
522
- for (var b = 0; b < p.length; b++)
523
- n.call(u, p[b]) && (y[p[b]] = u[p[b]]);
521
+ u = e(p);
522
+ for (var b = 0; b < u.length; b++)
523
+ n.call(p, u[b]) && (y[u[b]] = p[u[b]]);
524
524
  }
525
525
  }
526
526
  return y;
@@ -539,7 +539,7 @@ function ut() {
539
539
  return He || (He = 1, be = Function.call.bind(Object.prototype.hasOwnProperty)), be;
540
540
  }
541
541
  var we, Ke;
542
- function Lr() {
542
+ function Fr() {
543
543
  if (Ke)
544
544
  return we;
545
545
  Ke = 1;
@@ -556,7 +556,7 @@ function Lr() {
556
556
  }
557
557
  };
558
558
  }
559
- function d(s, a, u, y, p) {
559
+ function d(s, a, p, y, u) {
560
560
  if (process.env.NODE_ENV !== "production") {
561
561
  for (var m in s)
562
562
  if (i(s, m)) {
@@ -564,21 +564,21 @@ function Lr() {
564
564
  try {
565
565
  if (typeof s[m] != "function") {
566
566
  var b = Error(
567
- (y || "React class") + ": " + u + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
567
+ (y || "React class") + ": " + p + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
568
568
  );
569
569
  throw b.name = "Invariant Violation", b;
570
570
  }
571
- h = s[m](a, m, y, u, null, r);
571
+ h = s[m](a, m, y, p, null, r);
572
572
  } catch (O) {
573
573
  h = O;
574
574
  }
575
575
  if (h && !(h instanceof Error) && e(
576
- (y || "React class") + ": type specification of " + u + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
576
+ (y || "React class") + ": type specification of " + p + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
577
577
  ), h instanceof Error && !(h.message in n)) {
578
578
  n[h.message] = !0;
579
- var v = p ? p() : "";
579
+ var v = u ? u() : "";
580
580
  e(
581
- "Failed " + u + " type: " + h.message + (v ?? "")
581
+ "Failed " + p + " type: " + h.message + (v ?? "")
582
582
  );
583
583
  }
584
584
  }
@@ -589,14 +589,14 @@ function Lr() {
589
589
  }, we = d, we;
590
590
  }
591
591
  var Ee, Ve;
592
- function Fr() {
592
+ function Wr() {
593
593
  if (Ve)
594
594
  return Ee;
595
595
  Ve = 1;
596
- var e = dt(), r = Nr(), n = _e(), i = ut(), d = Lr(), s = function() {
596
+ var e = dt(), r = Lr(), n = _e(), i = ut(), d = Fr(), s = function() {
597
597
  };
598
- process.env.NODE_ENV !== "production" && (s = function(u) {
599
- var y = "Warning: " + u;
598
+ process.env.NODE_ENV !== "production" && (s = function(p) {
599
+ var y = "Warning: " + p;
600
600
  typeof console < "u" && console.error(y);
601
601
  try {
602
602
  throw new Error(y);
@@ -606,10 +606,10 @@ function Fr() {
606
606
  function a() {
607
607
  return null;
608
608
  }
609
- return Ee = function(u, y) {
610
- var p = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
609
+ return Ee = function(p, y) {
610
+ var u = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
611
611
  function h(o) {
612
- var f = o && (p && o[p] || o[m]);
612
+ var f = o && (u && o[u] || o[m]);
613
613
  if (typeof f == "function")
614
614
  return f;
615
615
  }
@@ -624,7 +624,7 @@ function Fr() {
624
624
  symbol: g("symbol"),
625
625
  any: U(),
626
626
  arrayOf: M,
627
- element: B(),
627
+ element: $(),
628
628
  elementType: l(),
629
629
  instanceOf: D,
630
630
  node: ue(),
@@ -637,14 +637,14 @@ function Fr() {
637
637
  function O(o, f) {
638
638
  return o === f ? o !== 0 || 1 / o === 1 / f : o !== o && f !== f;
639
639
  }
640
- function E(o, f) {
640
+ function w(o, f) {
641
641
  this.message = o, this.data = f && typeof f == "object" ? f : {}, this.stack = "";
642
642
  }
643
- E.prototype = Error.prototype;
643
+ w.prototype = Error.prototype;
644
644
  function C(o) {
645
645
  if (process.env.NODE_ENV !== "production")
646
646
  var f = {}, j = 0;
647
- function S(k, w, T, R, I, A, N) {
647
+ function S(k, E, T, R, I, A, N) {
648
648
  if (R = R || b, A = A || T, N !== n) {
649
649
  if (y) {
650
650
  var c = new Error(
@@ -659,18 +659,18 @@ function Fr() {
659
659
  ), f[z] = !0, j++);
660
660
  }
661
661
  }
662
- return w[T] == null ? k ? w[T] === null ? new E("The " + I + " `" + A + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new E("The " + I + " `" + A + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : o(w, T, R, I, A);
662
+ return E[T] == null ? k ? E[T] === null ? new w("The " + I + " `" + A + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new w("The " + I + " `" + A + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : o(E, T, R, I, A);
663
663
  }
664
664
  var x = S.bind(null, !1);
665
665
  return x.isRequired = S.bind(null, !0), x;
666
666
  }
667
667
  function g(o) {
668
- function f(j, S, x, k, w, T) {
668
+ function f(j, S, x, k, E, T) {
669
669
  var R = j[S], I = Y(R);
670
670
  if (I !== o) {
671
671
  var A = K(R);
672
- return new E(
673
- "Invalid " + k + " `" + w + "` of type " + ("`" + A + "` supplied to `" + x + "`, expected ") + ("`" + o + "`."),
672
+ return new w(
673
+ "Invalid " + k + " `" + E + "` of type " + ("`" + A + "` supplied to `" + x + "`, expected ") + ("`" + o + "`."),
674
674
  { expectedType: o }
675
675
  );
676
676
  }
@@ -682,16 +682,16 @@ function Fr() {
682
682
  return C(a);
683
683
  }
684
684
  function M(o) {
685
- function f(j, S, x, k, w) {
685
+ function f(j, S, x, k, E) {
686
686
  if (typeof o != "function")
687
- return new E("Property `" + w + "` of component `" + x + "` has invalid PropType notation inside arrayOf.");
687
+ return new w("Property `" + E + "` of component `" + x + "` has invalid PropType notation inside arrayOf.");
688
688
  var T = j[S];
689
689
  if (!Array.isArray(T)) {
690
690
  var R = Y(T);
691
- return new E("Invalid " + k + " `" + w + "` of type " + ("`" + R + "` supplied to `" + x + "`, expected an array."));
691
+ return new w("Invalid " + k + " `" + E + "` of type " + ("`" + R + "` supplied to `" + x + "`, expected an array."));
692
692
  }
693
693
  for (var I = 0; I < T.length; I++) {
694
- var A = o(T, I, x, k, w + "[" + I + "]", n);
694
+ var A = o(T, I, x, k, E + "[" + I + "]", n);
695
695
  if (A instanceof Error)
696
696
  return A;
697
697
  }
@@ -699,12 +699,12 @@ function Fr() {
699
699
  }
700
700
  return C(f);
701
701
  }
702
- function B() {
702
+ function $() {
703
703
  function o(f, j, S, x, k) {
704
- var w = f[j];
705
- if (!u(w)) {
706
- var T = Y(w);
707
- return new E("Invalid " + x + " `" + k + "` of type " + ("`" + T + "` supplied to `" + S + "`, expected a single ReactElement."));
704
+ var E = f[j];
705
+ if (!p(E)) {
706
+ var T = Y(E);
707
+ return new w("Invalid " + x + " `" + k + "` of type " + ("`" + T + "` supplied to `" + S + "`, expected a single ReactElement."));
708
708
  }
709
709
  return null;
710
710
  }
@@ -712,20 +712,20 @@ function Fr() {
712
712
  }
713
713
  function l() {
714
714
  function o(f, j, S, x, k) {
715
- var w = f[j];
716
- if (!e.isValidElementType(w)) {
717
- var T = Y(w);
718
- return new E("Invalid " + x + " `" + k + "` of type " + ("`" + T + "` supplied to `" + S + "`, expected a single ReactElement type."));
715
+ var E = f[j];
716
+ if (!e.isValidElementType(E)) {
717
+ var T = Y(E);
718
+ return new w("Invalid " + x + " `" + k + "` of type " + ("`" + T + "` supplied to `" + S + "`, expected a single ReactElement type."));
719
719
  }
720
720
  return null;
721
721
  }
722
722
  return C(o);
723
723
  }
724
724
  function D(o) {
725
- function f(j, S, x, k, w) {
725
+ function f(j, S, x, k, E) {
726
726
  if (!(j[S] instanceof o)) {
727
727
  var T = o.name || b, R = me(j[S]);
728
- return new E("Invalid " + k + " `" + w + "` of type " + ("`" + R + "` supplied to `" + x + "`, expected ") + ("instance of `" + T + "`."));
728
+ return new w("Invalid " + k + " `" + E + "` of type " + ("`" + R + "` supplied to `" + x + "`, expected ") + ("instance of `" + T + "`."));
729
729
  }
730
730
  return null;
731
731
  }
@@ -736,7 +736,7 @@ function Fr() {
736
736
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
737
737
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
738
738
  ) : s("Invalid argument supplied to oneOf, expected an array.")), a;
739
- function f(j, S, x, k, w) {
739
+ function f(j, S, x, k, E) {
740
740
  for (var T = j[S], R = 0; R < o.length; R++)
741
741
  if (O(T, o[R]))
742
742
  return null;
@@ -744,20 +744,20 @@ function Fr() {
744
744
  var z = K(c);
745
745
  return z === "symbol" ? String(c) : c;
746
746
  });
747
- return new E("Invalid " + k + " `" + w + "` of value `" + String(T) + "` " + ("supplied to `" + x + "`, expected one of " + I + "."));
747
+ return new w("Invalid " + k + " `" + E + "` of value `" + String(T) + "` " + ("supplied to `" + x + "`, expected one of " + I + "."));
748
748
  }
749
749
  return C(f);
750
750
  }
751
751
  function q(o) {
752
- function f(j, S, x, k, w) {
752
+ function f(j, S, x, k, E) {
753
753
  if (typeof o != "function")
754
- return new E("Property `" + w + "` of component `" + x + "` has invalid PropType notation inside objectOf.");
754
+ return new w("Property `" + E + "` of component `" + x + "` has invalid PropType notation inside objectOf.");
755
755
  var T = j[S], R = Y(T);
756
756
  if (R !== "object")
757
- return new E("Invalid " + k + " `" + w + "` of type " + ("`" + R + "` supplied to `" + x + "`, expected an object."));
757
+ return new w("Invalid " + k + " `" + E + "` of type " + ("`" + R + "` supplied to `" + x + "`, expected an object."));
758
758
  for (var I in T)
759
759
  if (i(T, I)) {
760
- var A = o(T, I, x, k, w + "." + I, n);
760
+ var A = o(T, I, x, k, E + "." + I, n);
761
761
  if (A instanceof Error)
762
762
  return A;
763
763
  }
@@ -775,39 +775,39 @@ function Fr() {
775
775
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(j) + " at index " + f + "."
776
776
  ), a;
777
777
  }
778
- function S(x, k, w, T, R) {
778
+ function S(x, k, E, T, R) {
779
779
  for (var I = [], A = 0; A < o.length; A++) {
780
- var N = o[A], c = N(x, k, w, T, R, n);
780
+ var N = o[A], c = N(x, k, E, T, R, n);
781
781
  if (c == null)
782
782
  return null;
783
783
  c.data && i(c.data, "expectedType") && I.push(c.data.expectedType);
784
784
  }
785
785
  var z = I.length > 0 ? ", expected one of type [" + I.join(", ") + "]" : "";
786
- return new E("Invalid " + T + " `" + R + "` supplied to " + ("`" + w + "`" + z + "."));
786
+ return new w("Invalid " + T + " `" + R + "` supplied to " + ("`" + E + "`" + z + "."));
787
787
  }
788
788
  return C(S);
789
789
  }
790
790
  function ue() {
791
791
  function o(f, j, S, x, k) {
792
- return J(f[j]) ? null : new E("Invalid " + x + " `" + k + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
792
+ return J(f[j]) ? null : new w("Invalid " + x + " `" + k + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
793
793
  }
794
794
  return C(o);
795
795
  }
796
796
  function re(o, f, j, S, x) {
797
- return new E(
797
+ return new w(
798
798
  (o || "React class") + ": " + f + " type `" + j + "." + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + x + "`."
799
799
  );
800
800
  }
801
801
  function fe(o) {
802
- function f(j, S, x, k, w) {
802
+ function f(j, S, x, k, E) {
803
803
  var T = j[S], R = Y(T);
804
804
  if (R !== "object")
805
- return new E("Invalid " + k + " `" + w + "` of type `" + R + "` " + ("supplied to `" + x + "`, expected `object`."));
805
+ return new w("Invalid " + k + " `" + E + "` of type `" + R + "` " + ("supplied to `" + x + "`, expected `object`."));
806
806
  for (var I in o) {
807
807
  var A = o[I];
808
808
  if (typeof A != "function")
809
- return re(x, k, w, I, K(A));
810
- var N = A(T, I, x, k, w + "." + I, n);
809
+ return re(x, k, E, I, K(A));
810
+ var N = A(T, I, x, k, E + "." + I, n);
811
811
  if (N)
812
812
  return N;
813
813
  }
@@ -816,21 +816,21 @@ function Fr() {
816
816
  return C(f);
817
817
  }
818
818
  function pe(o) {
819
- function f(j, S, x, k, w) {
819
+ function f(j, S, x, k, E) {
820
820
  var T = j[S], R = Y(T);
821
821
  if (R !== "object")
822
- return new E("Invalid " + k + " `" + w + "` of type `" + R + "` " + ("supplied to `" + x + "`, expected `object`."));
822
+ return new w("Invalid " + k + " `" + E + "` of type `" + R + "` " + ("supplied to `" + x + "`, expected `object`."));
823
823
  var I = r({}, j[S], o);
824
824
  for (var A in I) {
825
825
  var N = o[A];
826
826
  if (i(o, A) && typeof N != "function")
827
- return re(x, k, w, A, K(N));
827
+ return re(x, k, E, A, K(N));
828
828
  if (!N)
829
- return new E(
830
- "Invalid " + k + " `" + w + "` key `" + A + "` supplied to `" + x + "`.\nBad object: " + JSON.stringify(j[S], null, " ") + `
829
+ return new w(
830
+ "Invalid " + k + " `" + E + "` key `" + A + "` supplied to `" + x + "`.\nBad object: " + JSON.stringify(j[S], null, " ") + `
831
831
  Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
832
832
  );
833
- var c = N(T, A, x, k, w + "." + A, n);
833
+ var c = N(T, A, x, k, E + "." + A, n);
834
834
  if (c)
835
835
  return c;
836
836
  }
@@ -849,7 +849,7 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
849
849
  case "object":
850
850
  if (Array.isArray(o))
851
851
  return o.every(J);
852
- if (o === null || u(o))
852
+ if (o === null || p(o))
853
853
  return !0;
854
854
  var f = h(o);
855
855
  if (f) {
@@ -911,7 +911,7 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
911
911
  }, Ee;
912
912
  }
913
913
  var Se, Ge;
914
- function Wr() {
914
+ function qr() {
915
915
  if (Ge)
916
916
  return Se;
917
917
  Ge = 1;
@@ -921,7 +921,7 @@ function Wr() {
921
921
  function n() {
922
922
  }
923
923
  return n.resetWarningCache = r, Se = function() {
924
- function i(a, u, y, p, m, h) {
924
+ function i(a, p, y, u, m, h) {
925
925
  if (h !== e) {
926
926
  var b = new Error(
927
927
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
@@ -960,16 +960,16 @@ function Wr() {
960
960
  }, Se;
961
961
  }
962
962
  if (process.env.NODE_ENV !== "production") {
963
- var qr = dt(), Ur = !0;
964
- Te.exports = Fr()(qr.isElement, Ur);
963
+ var Ur = dt(), Yr = !0;
964
+ Te.exports = Wr()(Ur.isElement, Yr);
965
965
  } else
966
- Te.exports = Wr()();
967
- var Yr = Te.exports;
968
- const L = /* @__PURE__ */ kr(Yr);
966
+ Te.exports = qr()();
967
+ var zr = Te.exports;
968
+ const L = /* @__PURE__ */ Rr(zr);
969
969
  let ft, pt;
970
970
  typeof document < "u" && (ft = document);
971
971
  typeof window < "u" && (pt = window);
972
- const ht = G.createContext({ document: ft, window: pt }), Pe = () => G.useContext(ht), { Provider: zr, Consumer: eo } = ht;
972
+ const ht = G.createContext({ document: ft, window: pt }), Pe = () => G.useContext(ht), { Provider: Hr, Consumer: to } = ht;
973
973
  class mt extends Xe {
974
974
  componentDidMount() {
975
975
  this.props.contentDidMount();
@@ -1023,8 +1023,8 @@ class je extends Xe {
1023
1023
  const n = this.getDoc();
1024
1024
  if (!n)
1025
1025
  return null;
1026
- const i = this.props.contentDidMount, d = this.props.contentDidUpdate, s = n.defaultView || n.parentView, a = /* @__PURE__ */ t.jsx(mt, { contentDidMount: i, contentDidUpdate: d, children: /* @__PURE__ */ t.jsx(zr, { value: { document: n, window: s }, children: /* @__PURE__ */ t.jsx("div", { className: "frame-content", children: this.props.children }) }) }), u = this.getMountTarget();
1027
- return [Ne.createPortal(this.props.head, this.getDoc().head), Ne.createPortal(a, u)];
1026
+ const i = this.props.contentDidMount, d = this.props.contentDidUpdate, s = n.defaultView || n.parentView, a = /* @__PURE__ */ t.jsx(mt, { contentDidMount: i, contentDidUpdate: d, children: /* @__PURE__ */ t.jsx(Hr, { value: { document: n, window: s }, children: /* @__PURE__ */ t.jsx("div", { className: "frame-content", children: this.props.children }) }) }), p = this.getMountTarget();
1027
+ return [Ne.createPortal(this.props.head, this.getDoc().head), Ne.createPortal(a, p)];
1028
1028
  }
1029
1029
  render() {
1030
1030
  const n = {
@@ -1060,7 +1060,7 @@ V(je, "propTypes", {
1060
1060
  },
1061
1061
  initialContent: '<!DOCTYPE html><html><head></head><body><div class="frame-root"></div></body></html>'
1062
1062
  });
1063
- const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef: r })), Kr = ({ children: e }) => {
1063
+ const Kr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef: r })), Vr = ({ children: e }) => {
1064
1064
  const { document: r } = Pe(), [n] = X(), [i, d] = Z();
1065
1065
  return F(() => {
1066
1066
  setTimeout(() => {
@@ -1070,14 +1070,14 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1070
1070
  if (s) {
1071
1071
  const a = s.getAttribute("data-style-prop");
1072
1072
  if (a) {
1073
- const u = s.getAttribute("data-style-id"), y = s.getAttribute("data-block-parent");
1074
- d([{ id: u, prop: a, blockId: y }]);
1073
+ const p = s.getAttribute("data-style-id"), y = s.getAttribute("data-block-parent");
1074
+ d([{ id: p, prop: a, blockId: y }]);
1075
1075
  }
1076
1076
  }
1077
1077
  }, 100);
1078
1078
  }, [r, n, d, i]), /* @__PURE__ */ t.jsx("div", { id: "canvas", className: "relative h-screen max-w-full outline-2", children: e });
1079
- }, yt = (e, r) => e.querySelector(`[data-block-id="${r}"]`), Vr = () => {
1080
- const { window: e } = Pe(), [r, n] = X(), [, i] = Z(), { undo: d, redo: s } = ke(), a = ot(), [, u] = Nt(), [, y] = Lt(), { pasteBlocks: p } = Ft(), [, m] = st(), h = at(), { savePage: b } = Wt(), [v] = te(qt), [, O] = te(Ut), E = (C) => {
1079
+ }, yt = (e, r) => e.querySelector(`[data-block-id="${r}"]`), Gr = () => {
1080
+ const { window: e } = Pe(), [r, n] = X(), [, i] = Z(), { undo: d, redo: s } = ke(), a = ot(), [, p] = Lt(), [, y] = Ft(), { pasteBlocks: u } = Wt(), [, m] = st(), h = at(), { savePage: b } = qt(), [v] = te(Ut), [, O] = te(Yt), w = (C) => {
1081
1081
  C.key === "Enter" && (C.preventDefault(), r.length === 1 && O(ce(r)));
1082
1082
  };
1083
1083
  return F(() => {
@@ -1086,13 +1086,13 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1086
1086
  n([]), i([]);
1087
1087
  return;
1088
1088
  }
1089
- if (E(g), !v && (g.key === "Delete" || g.key === "Backspace") && (g.preventDefault(), h(r)), g.ctrlKey || g.metaKey) {
1089
+ if (w(g), !v && (g.key === "Delete" || g.key === "Backspace") && (g.preventDefault(), h(r)), g.ctrlKey || g.metaKey) {
1090
1090
  if (["z", "y", "d", "x", "c", "p", "s", "v"].includes(g.key)) {
1091
1091
  if (v && ["x", "z", "v"].includes(g.key))
1092
1092
  return !0;
1093
1093
  g.preventDefault();
1094
1094
  }
1095
- g.key === "s" && (g.stopPropagation(), g.preventDefault(), b()), g.key === "z" && d(), g.key === "y" && s(), g.key === "d" && a(r), g.key === "x" && u(r), g.key === "c" && y(r), g.key === "v" && r.length > 0 && p(r[0]);
1095
+ g.key === "s" && (g.stopPropagation(), g.preventDefault(), b()), g.key === "z" && d(), g.key === "y" && s(), g.key === "d" && a(r), g.key === "x" && p(r), g.key === "c" && y(r), g.key === "v" && r.length > 0 && u(r[0]);
1096
1096
  }
1097
1097
  };
1098
1098
  return e.removeEventListener("keydown", C), e.addEventListener("keydown", C), () => {
@@ -1106,15 +1106,15 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1106
1106
  m,
1107
1107
  s,
1108
1108
  a,
1109
- u,
1110
- y,
1111
1109
  p,
1110
+ y,
1111
+ u,
1112
1112
  v,
1113
1113
  b,
1114
1114
  e
1115
1115
  ]), null;
1116
- }, Gr = ({ block: e, label: r }) => {
1117
- const [, n] = wr(() => ({
1116
+ }, Xr = ({ block: e, label: r }) => {
1117
+ const [, n] = Er(() => ({
1118
1118
  type: "CANVAS_BLOCK",
1119
1119
  item: e
1120
1120
  }));
@@ -1127,30 +1127,30 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1127
1127
  console.log("drag start");
1128
1128
  },
1129
1129
  children: [
1130
- /* @__PURE__ */ t.jsx(Mt, {}),
1130
+ /* @__PURE__ */ t.jsx(Dt, {}),
1131
1131
  r
1132
1132
  ]
1133
1133
  }
1134
1134
  );
1135
- }, Xr = ({
1135
+ }, Zr = ({
1136
1136
  selectedBlockElement: e,
1137
1137
  block: r
1138
1138
  }) => {
1139
- const n = at(), i = ot(), [, d] = X(), [, s] = Z(), { floatingStyles: a, refs: u, update: y } = xr({
1139
+ const n = at(), i = ot(), [, d] = X(), [, s] = Z(), { floatingStyles: a, refs: p, update: y } = br({
1140
1140
  placement: "top-start",
1141
- middleware: [br(), gr()],
1141
+ middleware: [wr(), xr()],
1142
1142
  elements: {
1143
1143
  reference: e
1144
1144
  }
1145
1145
  });
1146
- Er(e, () => y(), e !== null);
1147
- const p = $(r, "_parent", null), m = ee($(r, "_name", "")) ? $(r, "_type", "") : $(r, "_name", "");
1146
+ Sr(e, () => y(), e !== null);
1147
+ const u = B(r, "_parent", null), m = ee(B(r, "_name", "")) ? B(r, "_type", "") : B(r, "_name", "");
1148
1148
  return !e || !r ? null : /* @__PURE__ */ t.jsxs(
1149
1149
  "div",
1150
1150
  {
1151
1151
  role: "button",
1152
1152
  tabIndex: 0,
1153
- ref: u.setFloating,
1153
+ ref: p.setFloating,
1154
1154
  style: a,
1155
1155
  onClick: (h) => {
1156
1156
  h.stopPropagation(), h.preventDefault();
@@ -1158,25 +1158,25 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1158
1158
  onKeyDown: (h) => h.stopPropagation(),
1159
1159
  className: "z-50 flex h-6 items-center bg-blue-500 py-2 text-xs text-white",
1160
1160
  children: [
1161
- /* @__PURE__ */ t.jsx(Gr, { label: m, block: r }),
1161
+ /* @__PURE__ */ t.jsx(Xr, { label: m, block: r }),
1162
1162
  /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 px-1 ", children: [
1163
- p && /* @__PURE__ */ t.jsx(
1164
- Pt,
1163
+ u && /* @__PURE__ */ t.jsx(
1164
+ It,
1165
1165
  {
1166
1166
  className: "hover:scale-105 ",
1167
1167
  onClick: () => {
1168
- s([]), d([p]);
1168
+ s([]), d([u]);
1169
1169
  }
1170
1170
  }
1171
1171
  ),
1172
- Yt($(r, "_type", "")) ? /* @__PURE__ */ t.jsx(It, { className: "hover:scale-105 ", onClick: () => i([r == null ? void 0 : r._id]) }) : null,
1173
- zt($(r, "_type", "")) ? /* @__PURE__ */ t.jsx(Ot, { className: "hover:scale-105 ", onClick: () => n([r == null ? void 0 : r._id]) }) : null
1172
+ zt(B(r, "_type", "")) ? /* @__PURE__ */ t.jsx(Ot, { className: "hover:scale-105 ", onClick: () => i([r == null ? void 0 : r._id]) }) : null,
1173
+ Ht(B(r, "_type", "")) ? /* @__PURE__ */ t.jsx(Mt, { className: "hover:scale-105 ", onClick: () => n([r == null ? void 0 : r._id]) }) : null
1174
1174
  ] })
1175
1175
  ]
1176
1176
  }
1177
1177
  );
1178
- }, Zr = ({ model: e }) => {
1179
- const [r] = Ht(), [n] = X(), [i] = rt(), [d] = Ae(), [s] = Z(), { document: a, window: u } = Pe(), [y] = H(a == null ? void 0 : a.getElementById("highlighted-block")), [p] = H(
1178
+ }, Jr = ({ model: e }) => {
1179
+ const [r] = Kt(), [n] = X(), [i] = rt(), [d] = Ae(), [s] = Z(), { document: a, window: p } = Pe(), [y] = H(a == null ? void 0 : a.getElementById("highlighted-block")), [u] = H(
1180
1180
  a == null ? void 0 : a.getElementById("selected-block")
1181
1181
  ), [m] = H(
1182
1182
  a == null ? void 0 : a.getElementById("selected-styling-block")
@@ -1184,15 +1184,15 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1184
1184
  F(() => {
1185
1185
  i ? a == null || a.documentElement.classList.add("dark") : a == null || a.documentElement.classList.remove("dark");
1186
1186
  }, [i, a]);
1187
- const h = $(r, "headingFont", "DM Sans"), b = $(r, "bodyFont", "DM Sans");
1187
+ const h = B(r, "headingFont", "DM Sans"), b = B(r, "bodyFont", "DM Sans");
1188
1188
  return F(() => {
1189
- const v = $(r, "primaryColor", "#000"), O = $(r, "secondaryColor", "#FFF"), E = Sr({
1189
+ const v = B(r, "primaryColor", "#000"), O = B(r, "secondaryColor", "#FFF"), w = Tr({
1190
1190
  colors: [v, O],
1191
1191
  names: ["primary", "secondary"]
1192
1192
  });
1193
- E.primary.DEFAULT = v, E.secondary.DEFAULT = O;
1194
- const C = $(r, "roundedCorners", "0");
1195
- !u || !u.tailwind || (u.tailwind.config = {
1193
+ w.primary.DEFAULT = v, w.secondary.DEFAULT = O;
1194
+ const C = B(r, "roundedCorners", "0");
1195
+ !p || !p.tailwind || (p.tailwind.config = {
1196
1196
  darkMode: "class",
1197
1197
  theme: {
1198
1198
  fontFamily: {
@@ -1203,12 +1203,12 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1203
1203
  borderRadius: {
1204
1204
  global: `${C || "0"}px`
1205
1205
  },
1206
- colors: E
1206
+ colors: w
1207
1207
  }
1208
1208
  },
1209
1209
  plugins: [
1210
1210
  // @ts-ignore
1211
- u.tailwind.plugin.withOptions(({ prefix: g = "ui" } = {}) => ({ addVariant: U }) => {
1211
+ p.tailwind.plugin.withOptions(({ prefix: g = "ui" } = {}) => ({ addVariant: U }) => {
1212
1212
  for (const M of ["open", "checked", "selected", "active", "disabled"])
1213
1213
  U(`${g}-${M}`, [
1214
1214
  `&[data-headlessui-state~="${M}"]`,
@@ -1220,11 +1220,11 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1220
1220
  })
1221
1221
  ]
1222
1222
  });
1223
- }, [r, u, h, b]), F(() => {
1224
- p && (p.textContent = `${ie(n, (v) => `[data-block-id="${v}"]`).join(",")}{
1223
+ }, [r, p, h, b]), F(() => {
1224
+ u && (u.textContent = `${ie(n, (v) => `[data-block-id="${v}"]`).join(",")}{
1225
1225
  outline: 1px solid ${n.length === 1 ? "#42a1fc" : "orange"} !important; outline-offset: -1px;
1226
1226
  }`);
1227
- }, [n, p]), F(() => {
1227
+ }, [n, u]), F(() => {
1228
1228
  y && (y.textContent = d ? `[data-style-id="${d}"]{ outline: 1px solid orange !important; outline-offset: -1px;}` : "");
1229
1229
  }, [d, n, y]), F(() => {
1230
1230
  m && (m.textContent = `${ie(s, ({ id: v }) => `[data-style-id="${v}"]`).join(",")}{
@@ -1233,8 +1233,8 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1233
1233
  }, [s, m]), F(() => {
1234
1234
  if (e === "section")
1235
1235
  return;
1236
- const v = $(r, "bodyTextLightColor", "#64748b"), O = $(r, "bodyTextDarkColor", "#94a3b8"), E = $(r, "bodyBgLightColor", "#FFFFFF"), C = $(r, "bodyBgDarkColor", "#0f172a");
1237
- a.body.className = `font-body antialiased text-[${v}] bg-[${E}] dark:text-[${O}] dark:bg-[${C}]`;
1236
+ const v = B(r, "bodyTextLightColor", "#64748b"), O = B(r, "bodyTextDarkColor", "#94a3b8"), w = B(r, "bodyBgLightColor", "#FFFFFF"), C = B(r, "bodyBgDarkColor", "#0f172a");
1237
+ a.body.className = `font-body antialiased text-[${v}] bg-[${w}] dark:text-[${O}] dark:bg-[${C}]`;
1238
1238
  }, [r, a, e]), e === "page" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1239
1239
  h && /* @__PURE__ */ t.jsx(
1240
1240
  "link",
@@ -1264,26 +1264,26 @@ const Hr = G.forwardRef((e, r) => /* @__PURE__ */ t.jsx(je, { ...e, forwardedRef
1264
1264
  ),
1265
1265
  h && /* @__PURE__ */ t.jsx("style", { children: `h1,h2,h3,h4,h5,h6{font-family: "${h}",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";}` })
1266
1266
  ] }) : null;
1267
- }, Jr = () => {
1267
+ }, Qr = () => {
1268
1268
  const { t: e } = ct();
1269
1269
  return /* @__PURE__ */ t.jsx("div", { className: "my-auto py-24 text-center text-gray-600 dark:text-white", children: /* @__PURE__ */ t.jsx("h1", { className: "mb-10 text-4xl ", children: e("canvas_empty") }) });
1270
- }, Qr = (e) => {
1270
+ }, en = (e) => {
1271
1271
  const r = {};
1272
1272
  return Object.keys(e).forEach((n) => {
1273
- Qe(e[n]) && e[n].startsWith($e) && (r[n] = e[n].replace($e, "").split(","));
1273
+ Qe(e[n]) && e[n].startsWith(Be) && (r[n] = e[n].replace(Be, "").split(","));
1274
1274
  }), r;
1275
- }, en = Tt((e) => {
1275
+ }, tn = Tt((e) => {
1276
1276
  const r = e.replace(lt, "").split(",");
1277
- return jr(r[0], r[1]);
1277
+ return Cr(r[0], r[1]);
1278
1278
  });
1279
- function tn(e, r) {
1280
- return $(e, `${r}_attrs`, {});
1279
+ function rn(e, r) {
1280
+ return B(e, `${r}_attrs`, {});
1281
1281
  }
1282
- function rn(e, r, n, i) {
1282
+ function nn(e, r, n, i) {
1283
1283
  const d = {};
1284
1284
  return Object.keys(e).forEach((s) => {
1285
1285
  if (Qe(e[s]) && e[s].startsWith(lt)) {
1286
- const a = en(e[s]);
1286
+ const a = tn(e[s]);
1287
1287
  d[s] = {
1288
1288
  className: a,
1289
1289
  "data-style-prop": s,
@@ -1292,28 +1292,28 @@ function rn(e, r, n, i) {
1292
1292
  onMouseEnter: r,
1293
1293
  onMouseLeave: n,
1294
1294
  onClick: i,
1295
- ...tn(e, s)
1295
+ ...rn(e, s)
1296
1296
  };
1297
1297
  }
1298
1298
  }), d;
1299
1299
  }
1300
1300
  function Ce({ blocks: e }) {
1301
1301
  const r = it(), [, n] = Ae(), [, i] = Z(), [, d] = X(), s = Q(
1302
- (p) => {
1302
+ (u) => {
1303
1303
  var h;
1304
- const m = (h = p.currentTarget) == null ? void 0 : h.getAttribute("data-style-id");
1305
- n(m || ""), p.stopPropagation();
1304
+ const m = (h = u.currentTarget) == null ? void 0 : h.getAttribute("data-style-id");
1305
+ n(m || ""), u.stopPropagation();
1306
1306
  },
1307
1307
  [n]
1308
1308
  ), a = Q(
1309
- (p) => {
1310
- n(""), p.stopPropagation();
1309
+ (u) => {
1310
+ n(""), u.stopPropagation();
1311
1311
  },
1312
1312
  [n]
1313
- ), u = Q(
1314
- (p) => {
1315
- p.stopPropagation();
1316
- const m = p.currentTarget;
1313
+ ), p = Q(
1314
+ (u) => {
1315
+ u.stopPropagation();
1316
+ const m = u.currentTarget;
1317
1317
  if (m.getAttribute("data-block-parent")) {
1318
1318
  const h = m.getAttribute("data-style-prop"), b = m.getAttribute("data-style-id"), v = m.getAttribute("data-block-parent");
1319
1319
  i([{ id: b, prop: h, blockId: v }]), d([v]);
@@ -1324,51 +1324,45 @@ function Ce({ blocks: e }) {
1324
1324
  },
1325
1325
  [i, d]
1326
1326
  ), y = Q(
1327
- (p) => rn(p, s, a, u),
1328
- [u, s, a]
1327
+ (u) => nn(u, s, a, p),
1328
+ [p, s, a]
1329
1329
  );
1330
1330
  return /* @__PURE__ */ t.jsx(t.Fragment, { children: G.Children.toArray(
1331
- e.map((p, m) => {
1332
- const h = Qr(p), b = {};
1331
+ e.map((u, m) => {
1332
+ const h = en(u), b = {};
1333
1333
  ee(h) || Object.keys(h).forEach((C) => {
1334
1334
  b[C] = G.Children.toArray(
1335
1335
  h[C].map((g) => /* @__PURE__ */ t.jsx(Ce, { blocks: [jt(r, { _id: g })] }))
1336
1336
  );
1337
1337
  });
1338
- const v = Je(r, { _parent: p._id });
1338
+ const v = Je(r, { _parent: u._id });
1339
1339
  b.children = v.length ? /* @__PURE__ */ t.jsx(Ce, { blocks: v }) : null;
1340
- const O = Cr(p._type), E = $(O, "builderComponent", O == null ? void 0 : O.component) || null;
1341
- return /* @__PURE__ */ t.jsx(Ze, { children: G.createElement(E, {
1340
+ const O = kr(u._type), w = B(O, "builderComponent", O == null ? void 0 : O.component) || null;
1341
+ return Ct(w) ? /* @__PURE__ */ t.jsx("noscript", { children: `<!-- ${u == null ? void 0 : u._type} not registered -->` }) : /* @__PURE__ */ t.jsx(Ze, { children: G.createElement(w, {
1342
1342
  blockProps: {
1343
- onClick: u,
1344
- "data-block-id": p._id,
1345
- "data-block-type": p._type
1343
+ onClick: p,
1344
+ "data-block-id": u._id,
1345
+ "data-block-type": u._type
1346
1346
  },
1347
1347
  inBuilder: !0,
1348
- ...p,
1348
+ ...u,
1349
1349
  index: m,
1350
- ...y(p),
1351
- ...b,
1352
- isBuilderMode: () => !0,
1353
- setBlockRoot: () => ({
1354
- onClick: u,
1355
- "data-block-id": p._id,
1356
- "data-block-type": p._type
1357
- })
1350
+ ...y(u),
1351
+ ...b
1358
1352
  }) });
1359
1353
  })
1360
1354
  ) });
1361
1355
  }
1362
- const nn = () => {
1356
+ const on = () => {
1363
1357
  const e = it();
1364
- return /* @__PURE__ */ t.jsx(Tr, { children: e.length ? /* @__PURE__ */ t.jsx(Ce, { blocks: Je(e, (r) => ee(r._parent)) }) : /* @__PURE__ */ t.jsx(Jr, {}) });
1365
- }, on = (e, r) => e.querySelector(`[data-style-id="${r}"]`), sn = () => {
1366
- const [e] = te(Kt), [r] = st(), [n] = Re(), [, i] = X(), d = Vt(), [, s] = Ae(), a = Oe(null), u = Oe(null), [y, p] = H({ width: 0, height: 0 }), m = Dr(y), [h, b] = H(0), [v, O] = H([]), [, E] = H([]), [, C] = te(Gt), [g, U] = Z(), M = et("loadingCanvas", !1);
1358
+ return /* @__PURE__ */ t.jsx(jr, { children: e.length ? /* @__PURE__ */ t.jsx(Ce, { blocks: Je(e, (r) => ee(r._parent)) }) : /* @__PURE__ */ t.jsx(Qr, {}) });
1359
+ }, sn = (e, r) => e.querySelector(`[data-style-id="${r}"]`), an = () => {
1360
+ const [e] = te(Vt), [r] = st(), [n] = Re(), [, i] = X(), d = Gt(), [, s] = Ae(), a = Oe(null), p = Oe(null), [y, u] = H({ width: 0, height: 0 }), m = $r(y), [h, b] = H(0), [v, O] = H([]), [, w] = H([]), [, C] = te(Xt), [g, U] = Z(), M = et("loadingCanvas", !1);
1367
1361
  F(() => {
1368
- const { clientWidth: D, clientHeight: W } = u.current;
1369
- p({ width: D, height: W }), h === 0 && b(D);
1370
- }, [u, n, h]);
1371
- const B = (D, W = 0) => {
1362
+ const { clientWidth: D, clientHeight: W } = p.current;
1363
+ u({ width: D, height: W }), h === 0 && b(D);
1364
+ }, [p, n, h]);
1365
+ const $ = (D, W = 0) => {
1372
1366
  const { top: q } = D.getBoundingClientRect();
1373
1367
  return q + W >= 0 && q - W <= window.innerHeight;
1374
1368
  };
@@ -1376,20 +1370,20 @@ const nn = () => {
1376
1370
  var D, W;
1377
1371
  if (d && d.type !== "Multiple" && a.current) {
1378
1372
  const q = yt(a.current.contentDocument, d._id);
1379
- q && (B(q) || (W = (D = a.current) == null ? void 0 : D.contentWindow) == null || W.scrollTo({ top: q.offsetTop, behavior: "smooth" }), O([q]));
1373
+ q && ($(q) || (W = (D = a.current) == null ? void 0 : D.contentWindow) == null || W.scrollTo({ top: q.offsetTop, behavior: "smooth" }), O([q]));
1380
1374
  }
1381
1375
  }, [d]), F(() => {
1382
1376
  if (!ee(g) && a.current) {
1383
- const D = on(
1377
+ const D = sn(
1384
1378
  a.current.contentDocument,
1385
1379
  ce(g).id
1386
1380
  );
1387
- E(D ? [D] : [null]);
1381
+ w(D ? [D] : [null]);
1388
1382
  } else
1389
- E([null]);
1383
+ w([null]);
1390
1384
  }, [g]);
1391
1385
  const l = wt(() => {
1392
- let D = Mr;
1386
+ let D = Dr;
1393
1387
  return e === "offline" && (D = D.replace(
1394
1388
  "https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio",
1395
1389
  "/offline/tailwind.cdn.js"
@@ -1404,9 +1398,9 @@ const nn = () => {
1404
1398
  onMouseLeave: () => setTimeout(() => s(""), 300),
1405
1399
  className: "relative mx-auto h-full w-full bg-black/80",
1406
1400
  style: h > 0 && !ee(m) ? { width: r ? "100%" : h } : {},
1407
- ref: u,
1401
+ ref: p,
1408
1402
  children: /* @__PURE__ */ t.jsxs(
1409
- Hr,
1403
+ Kr,
1410
1404
  {
1411
1405
  contentDidMount: () => C(a.current),
1412
1406
  ref: a,
@@ -1415,17 +1409,17 @@ const nn = () => {
1415
1409
  className: "relative mx-auto box-content h-full max-w-full shadow-md transition-all duration-300 ease-linear",
1416
1410
  initialContent: l,
1417
1411
  children: [
1418
- /* @__PURE__ */ t.jsx(Vr, {}),
1412
+ /* @__PURE__ */ t.jsx(Gr, {}),
1419
1413
  /* @__PURE__ */ t.jsx(
1420
- Xr,
1414
+ Zr,
1421
1415
  {
1422
1416
  block: d,
1423
1417
  selectedBlockElement: ce(v)
1424
1418
  }
1425
1419
  ),
1426
- /* @__PURE__ */ t.jsx(Zr, { model: "page" }),
1427
- /* @__PURE__ */ t.jsxs(Kr, { children: [
1428
- M ? /* @__PURE__ */ t.jsx("div", { className: "h-full p-4", children: /* @__PURE__ */ t.jsx(tt, { className: "h-full" }) }) : /* @__PURE__ */ t.jsx(nn, {}),
1420
+ /* @__PURE__ */ t.jsx(Jr, { model: "page" }),
1421
+ /* @__PURE__ */ t.jsxs(Vr, { children: [
1422
+ M ? /* @__PURE__ */ t.jsx("div", { className: "h-full p-4", children: /* @__PURE__ */ t.jsx(tt, { className: "h-full" }) }) : /* @__PURE__ */ t.jsx(on, {}),
1429
1423
  /* @__PURE__ */ t.jsx("div", { className: "h-60" })
1430
1424
  ] })
1431
1425
  ]
@@ -1433,15 +1427,15 @@ const nn = () => {
1433
1427
  )
1434
1428
  }
1435
1429
  );
1436
- }, an = Et(() => import("./AddBlocks-12b4bcb1.js")), to = () => {
1437
- const e = et("mode", ve.STATIC), [r, n] = te(Xt), i = {
1438
- [ve.STATIC]: /* @__PURE__ */ t.jsx(sn, {}),
1430
+ }, cn = Et(() => import("./AddBlocks-7b723045.js")), ro = () => {
1431
+ const e = et("mode", ve.STATIC), [r, n] = te(Zt), i = {
1432
+ [ve.STATIC]: /* @__PURE__ */ t.jsx(an, {}),
1439
1433
  [ve.FRAMEWORK]: null
1440
1434
  }[e];
1441
1435
  return /* @__PURE__ */ t.jsxs("div", { className: "flex h-full w-full flex-col", children: [
1442
- /* @__PURE__ */ t.jsx(Or, {}),
1436
+ /* @__PURE__ */ t.jsx(Mr, {}),
1443
1437
  /* @__PURE__ */ t.jsxs("div", { className: "relative flex-1 overflow-hidden bg-slate-800/20 bg-[linear-gradient(to_right,#EEE_0.5px,transparent_0.5px),linear-gradient(to_bottom,#EEE_0.5px,transparent_0.5px)] bg-[size:12px_12px]", children: [
1444
- /* @__PURE__ */ t.jsx(Ze, { fallback: /* @__PURE__ */ t.jsx(tt, { className: "h-full" }), children: /* @__PURE__ */ t.jsx(Zt, { children: i }) }),
1438
+ /* @__PURE__ */ t.jsx(Ze, { fallback: /* @__PURE__ */ t.jsx(tt, { className: "h-full" }), children: /* @__PURE__ */ t.jsx(Jt, { children: i }) }),
1445
1439
  r ? /* @__PURE__ */ t.jsx(
1446
1440
  "div",
1447
1441
  {
@@ -1452,7 +1446,7 @@ const nn = () => {
1452
1446
  {
1453
1447
  onClick: (d) => d.stopPropagation(),
1454
1448
  className: "mx-auto h-[90%] w-[90%] max-w-3xl rounded-md bg-white p-4 shadow-lg shadow-black/10 xl:w-[65%]",
1455
- children: /* @__PURE__ */ t.jsx(an, {})
1449
+ children: /* @__PURE__ */ t.jsx(cn, {})
1456
1450
  }
1457
1451
  )
1458
1452
  }
@@ -1461,5 +1455,5 @@ const nn = () => {
1461
1455
  ] });
1462
1456
  };
1463
1457
  export {
1464
- to as default
1458
+ ro as default
1465
1459
  };