@chaibuilder/sdk 1.2.84 → 1.2.86

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.
@@ -4,7 +4,7 @@ var ze = (r, n, o) => (gt(r, typeof n != "symbol" ? n + "" : n, o), o);
4
4
  import { j as jsxRuntimeExports } from "./jsx-runtime-Sp0orL4X.js";
5
5
  import * as React from "react";
6
6
  import React__default, { createContext as createContext$1, useReducer, useEffect as useEffect$1, useDebugValue, useCallback as useCallback$1, useContext as useContext$1, useState as useState$1, Component, Children, Suspense, useMemo as useMemo$1, useRef as useRef$1, memo, createElement as createElement$1, useLayoutEffect as useLayoutEffect$1, forwardRef as forwardRef$1, cloneElement, Fragment, lazy } from "react";
7
- import { S as Skeleton, C as ContextMenu, a as ContextMenuTrigger, b as ContextMenuContent, c as ContextMenuItem, T as Tooltip$1, d as TooltipTrigger, e as TooltipContent, B as Button$1, f as Card, g as CardHeader, h as CardDescription, i as CardContent, L as Label, j as Textarea, k as CardFooter, D as Dialog, l as DialogTrigger, m as DialogContent, n as DialogHeader, o as DialogTitle, p as DialogDescription, q as DialogFooter, P as Popover$1, r as PopoverTrigger, s as PopoverContent, t as Command, u as CommandInput, v as CommandList, w as CommandEmpty, x as CommandGroup, y as CommandItem, z as Tabs$1, A as TabsList$1, E as TabsTrigger, F as TabsContent, G as Switch, H as Accordion, I as AccordionItem, J as AccordionTrigger, K as AccordionContent, M as useToast, N as Input$2, O as TooltipPortal, Q as DropdownMenu, R as DropdownMenuTrigger, U as DropdownMenuContent, V as ScrollArea$1, W as DropdownMenuLabel, X as DropdownMenuSeparator, Y as DropdownMenuGroup, Z as DropdownMenuItem, _ as DropdownMenuShortcut, $ as AlertDialog, a0 as AlertDialogTrigger, a1 as AlertDialogContent, a2 as AlertDialogHeader, a3 as AlertDialogTitle, a4 as AlertDialogDescription, a5 as AlertDialogFooter, a6 as AlertDialogCancel, a7 as AlertDialogAction, a8 as DropdownMenuCheckboxItem, a9 as HoverCard, aa as HoverCardTrigger, ab as HoverCardContent, ac as Separator, ad as TooltipProvider, ae as Toaster } from "./context-menu-zu6r7B6f.js";
7
+ import { S as Skeleton, C as ContextMenu, a as ContextMenuTrigger, b as ContextMenuContent, c as ContextMenuItem, T as Tooltip$1, d as TooltipTrigger, e as TooltipContent, B as Button$1, f as Card, g as CardHeader, h as CardDescription, i as CardContent, L as Label, j as Textarea, k as CardFooter, D as Dialog, l as DialogTrigger, m as DialogContent, n as DialogHeader, o as DialogTitle, p as DialogDescription, q as DialogFooter, P as Popover$1, r as PopoverTrigger, s as PopoverContent, t as Command, u as CommandInput, v as CommandList, w as CommandEmpty, x as CommandGroup, y as CommandItem, z as Tabs$1, A as TabsList$1, E as TabsTrigger, F as TabsContent, G as Switch, H as Accordion, I as AccordionItem, J as AccordionTrigger, K as AccordionContent, M as useToast, N as Input$2, O as TooltipPortal, Q as DropdownMenu, R as DropdownMenuTrigger, U as DropdownMenuContent, V as ScrollArea$1, W as DropdownMenuLabel, X as DropdownMenuSeparator, Y as DropdownMenuGroup, Z as DropdownMenuItem, _ as DropdownMenuShortcut, $ as AlertDialog, a0 as AlertDialogContent, a1 as AlertDialogHeader, a2 as AlertDialogTitle, a3 as AlertDialogTrigger, a4 as AlertDialogDescription, a5 as AlertDialogFooter, a6 as AlertDialogCancel, a7 as AlertDialogAction, a8 as DropdownMenuCheckboxItem, a9 as HoverCard, aa as HoverCardTrigger, ab as HoverCardContent, ac as Separator, ad as TooltipProvider, ae as Toaster } from "./context-menu-LFlr5p9-.js";
8
8
  import { has, find, filter, flatten, map, omit, isString as isString$1, includes, without, get as get$1, set, isEmpty, forIn, isObject as isObject$2, each, first, noop as noop$1, keys, startsWith, range, values, flattenDeep, isNull, pick, sortBy, chunk, throttle, memoize as memoize$1, debounce as debounce$1, isEqual, flatMapDeep, forEach, capitalize, last, startCase, truncate, isArray as isArray$5, split, toLower, cloneDeep, reject, nth, isNumber as isNumber$1, parseInt as parseInt$1, isNaN as isNaN$1, findLast, intersection, groupBy, isFunction as isFunction$2, uniq, toUpper, round, compact } from "lodash-es";
9
9
  import { atom as atom$1, useAtomValue as useAtomValue$1, useAtom as useAtom$1, useSetAtom as useSetAtom$1, getDefaultStore as getDefaultStore$1 } from "jotai";
10
10
  import { g as generateUUID, a as getBreakpointValue$1, f, y, s, c as cn, G as GenIcon } from "./iconBase-zweRWSz0.js";
@@ -15,11 +15,11 @@ import { useThrottledCallback, useResizeObserver, useDebouncedCallback, useInter
15
15
  import TreeModel from "tree-model";
16
16
  import ReactQuill, { Quill } from "react-quill";
17
17
  import { S as SLOT_KEY, I as I18N_KEY, a as STYLES_KEY, R as ROOT_TEMP_KEY } from "./STRINGS-TDN5UhWi.js";
18
+ import { useFeature, FlagsProvider } from "flagged";
18
19
  import { useHotkeys } from "react-hotkeys-hook";
19
20
  import { flip as flip$2 } from "@floating-ui/dom";
20
21
  import { useFloating as useFloating$1, shift, getOverflowAncestors, autoUpdate, size, offset, limitShift, flip as flip$3, inline, arrow } from "@floating-ui/react-dom";
21
22
  import { ArrowUpIcon, PlusIcon, CopyIcon as CopyIcon$1, GearIcon, TrashIcon, DragHandleDots2Icon, BoxModelIcon, BoxIcon, DragHandleHorizontalIcon, ViewHorizontalIcon, BorderAllIcon, BorderTopIcon, TableIcon, DropdownMenuIcon, RadiobuttonIcon, InputIcon, ButtonIcon, CheckboxIcon, GroupIcon, SpaceBetweenVerticallyIcon, ColumnsIcon, RowsIcon, TextIcon, SketchLogoIcon, DividerHorizontalIcon, CodeIcon, CursorTextIcon, VideoIcon, Link1Icon, HeadingIcon, ImageIcon, CardStackPlusIcon, CardStackIcon, ScissorsIcon, TriangleRightIcon, Cross2Icon, EyeOpenIcon, EyeClosedIcon, WidthIcon, HeightIcon, ArrowRightIcon, ArrowDownIcon, ArrowLeftIcon, ArrowTopLeftIcon, ArrowTopRightIcon, ArrowBottomRightIcon, ArrowBottomLeftIcon, AlignLeftIcon, AlignCenterHorizontallyIcon, AlignRightIcon, StretchHorizontallyIcon, FontItalicIcon, UnderlineIcon, OverlineIcon, LetterCaseUppercaseIcon, Cross1Icon, InfoCircledIcon, MinusIcon, TriangleDownIcon, RowSpacingIcon, CrossCircledIcon, CaretDownIcon, CaretRightIcon, CheckIcon, ResetIcon, SunIcon, DotsVerticalIcon, MobileIcon, LaptopIcon, DesktopIcon, EraserIcon, ZoomInIcon, MixerHorizontalIcon, LightningBoltIcon } from "@radix-ui/react-icons";
22
- import { useFeature, FlagsProvider } from "flagged";
23
23
  import { createEvent } from "react-event-hook";
24
24
  import typography$1 from "@tailwindcss/typography";
25
25
  import forms from "@tailwindcss/forms";
@@ -130,7 +130,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
130
130
  D,
131
131
  T
132
132
  );
133
- resolvePromise(D, V), W(V), (q == null ? void 0 : q.d) !== G.d && C(k, G, q == null ? void 0 : q.d);
133
+ resolvePromise(D, V), W(V), (q == null ? void 0 : q.d) !== G.d && P(k, G, q == null ? void 0 : q.d);
134
134
  }
135
135
  },
136
136
  (V) => {
@@ -141,7 +141,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
141
141
  D,
142
142
  T
143
143
  );
144
- rejectPromise(D, V), J(V), (q == null ? void 0 : q.d) !== G.d && C(k, G, q == null ? void 0 : q.d);
144
+ rejectPromise(D, V), J(V), (q == null ? void 0 : q.d) !== G.d && P(k, G, q == null ? void 0 : q.d);
145
145
  }
146
146
  }
147
147
  ), L = (V) => {
@@ -213,7 +213,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
213
213
  }
214
214
  }, b = (k) => returnAtomValue(h(k)), x = (k) => {
215
215
  let O = n.get(k);
216
- return O || (O = P(k)), O;
216
+ return O || (O = C(k)), O;
217
217
  }, v = (k, O) => !O.l.size && (!O.t.size || O.t.size === 1 && O.t.has(k)), S = (k) => {
218
218
  const O = n.get(k);
219
219
  O && v(k, O) && A(k);
@@ -272,14 +272,14 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
272
272
  return (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && i.forEach(
273
273
  (L) => L({ type: "write", flushed: B })
274
274
  ), T;
275
- }, P = (k, O) => {
275
+ }, C = (k, O) => {
276
276
  const T = {
277
277
  t: new Set(O && [O]),
278
278
  l: /* @__PURE__ */ new Set()
279
279
  };
280
280
  if (n.set(k, T), (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && l.add(k), h(k).d.forEach((B, L) => {
281
281
  const D = n.get(L);
282
- D ? D.t.add(k) : L !== k && P(L, k);
282
+ D ? D.t.add(k) : L !== k && C(L, k);
283
283
  }), h(k), isActuallyWritableAtom(k) && k.onMount) {
284
284
  const B = k.onMount((...L) => R(k, ...L));
285
285
  B && (T.u = B);
@@ -296,7 +296,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
296
296
  W && (W.t.delete(k), v(D, W) && A(D));
297
297
  }
298
298
  })) : (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", k);
299
- }, C = (k, O, T) => {
299
+ }, P = (k, O, T) => {
300
300
  const B = new Set(O.d.keys());
301
301
  T == null || T.forEach((L, D) => {
302
302
  if (B.has(D)) {
@@ -307,7 +307,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
307
307
  W && (W.t.delete(k), v(D, W) && A(D));
308
308
  }), B.forEach((L) => {
309
309
  const D = n.get(L);
310
- D ? D.t.add(k) : n.has(k) && P(L, k);
310
+ D ? D.t.add(k) : n.has(k) && C(L, k);
311
311
  });
312
312
  }, I = () => {
313
313
  let k;
@@ -316,7 +316,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
316
316
  o.clear(), O.forEach(([T, B]) => {
317
317
  const L = c(T);
318
318
  if (L) {
319
- L.d !== (B == null ? void 0 : B.d) && C(T, L, B == null ? void 0 : B.d);
319
+ L.d !== (B == null ? void 0 : B.d) && P(T, L, B == null ? void 0 : B.d);
320
320
  const D = n.get(T);
321
321
  D && !// TODO This seems pretty hacky. Hope to fix it.
322
322
  // Maybe we could `mountDependencies` in `setAtomState`?
@@ -388,23 +388,23 @@ function splitAtom(r, n) {
388
388
  return;
389
389
  }
390
390
  const S = (w) => {
391
- const R = w(i), P = w(r), C = a(P, R == null ? void 0 : R.arr).keyList.indexOf(x);
392
- if (C < 0 || C >= P.length) {
391
+ const R = w(i), C = w(r), P = a(C, R == null ? void 0 : R.arr).keyList.indexOf(x);
392
+ if (P < 0 || P >= C.length) {
393
393
  const I = c[a(c).keyList.indexOf(x)];
394
394
  if (I)
395
395
  return I;
396
396
  throw new Error("splitAtom: index out of bounds for read");
397
397
  }
398
- return P[C];
399
- }, E = (w, R, P) => {
400
- const A = w(i), C = w(r), j = a(C, A == null ? void 0 : A.arr).keyList.indexOf(x);
401
- if (j < 0 || j >= C.length)
398
+ return C[P];
399
+ }, E = (w, R, C) => {
400
+ const A = w(i), P = w(r), j = a(P, A == null ? void 0 : A.arr).keyList.indexOf(x);
401
+ if (j < 0 || j >= P.length)
402
402
  throw new Error("splitAtom: index out of bounds for write");
403
- const k = isFunction$1(P) ? P(C[j]) : P;
403
+ const k = isFunction$1(C) ? C(P[j]) : C;
404
404
  R(r, [
405
- ...C.slice(0, j),
405
+ ...P.slice(0, j),
406
406
  k,
407
- ...C.slice(j + 1)
407
+ ...P.slice(j + 1)
408
408
  ]);
409
409
  };
410
410
  m[b] = isWritable(r) ? atom(S, E) : atom(S);
@@ -1221,8 +1221,8 @@ const useBlocksStoreManager = () => {
1221
1221
  return { _id: R, oldParent: A, oldPosition: I };
1222
1222
  }), w = E.find(({ _id: R }) => R === x[0]);
1223
1223
  w && w.oldParent === v && w.oldPosition === S || (l(x, v, S), r({
1224
- undo: () => each(E, ({ _id: R, oldParent: P, oldPosition: A }) => {
1225
- l([R], P, A);
1224
+ undo: () => each(E, ({ _id: R, oldParent: C, oldPosition: A }) => {
1225
+ l([R], C, A);
1226
1226
  }),
1227
1227
  redo: () => l(x, v, S)
1228
1228
  }));
@@ -1248,8 +1248,8 @@ const useBlocksStoreManager = () => {
1248
1248
  else {
1249
1249
  const w = keys(v);
1250
1250
  E = map(x, (R) => {
1251
- const P = n.find((C) => C._id === R), A = { _id: R };
1252
- return each(w, (C) => A[C] = P[C]), A;
1251
+ const C = n.find((P) => P._id === R), A = { _id: R };
1252
+ return each(w, (P) => A[P] = C[P]), A;
1253
1253
  });
1254
1254
  }
1255
1255
  c(map(x, (w) => ({ _id: w, ...v }))), r({
@@ -1269,8 +1269,8 @@ const useBlocksStoreManager = () => {
1269
1269
  updateMultipleBlocksProps: (x) => {
1270
1270
  let v = [];
1271
1271
  v = map(x, (S) => {
1272
- const E = keys(S), w = n.find((P) => P._id === S._id), R = {};
1273
- return each(E, (P) => R[P] = w[P]), R;
1272
+ const E = keys(S), w = n.find((C) => C._id === S._id), R = {};
1273
+ return each(E, (C) => R[C] = w[C]), R;
1274
1274
  }), c(x), r({
1275
1275
  undo: () => c(v),
1276
1276
  redo: () => c(x)
@@ -3031,38 +3031,41 @@ function removeDataDrop() {
3031
3031
  r && r.removeAttribute("data-drop");
3032
3032
  }
3033
3033
  const useDnd = () => {
3034
- const { document: r } = useFrame(), [n, o] = useAtom$1(draggingFlagAtom), { addCoreBlock: a } = useAddBlock(), [, i] = useHighlightBlockId(), [, l] = useSelectedBlockIds(), { moveBlocks: c } = useBlocksStoreUndoableActions(), [u, d] = useAtom$1(draggedBlockAtom), [, p] = useAtom$1(dropTargetBlockIdAtom), m = () => {
3034
+ const { document: r } = useFrame(), [n, o] = useAtom$1(draggingFlagAtom), { addCoreBlock: a } = useAddBlock(), [, i] = useHighlightBlockId(), [, l] = useSelectedBlockIds(), { moveBlocks: c } = useBlocksStoreUndoableActions(), [u, d] = useAtom$1(draggedBlockAtom), [, p] = useAtom$1(dropTargetBlockIdAtom);
3035
+ if (!useFeature("dnd"))
3036
+ return {};
3037
+ const g = () => {
3035
3038
  removePlaceholder(), o(!1), d(null), p(null), possiblePositions = [];
3036
3039
  };
3037
3040
  return iframeDocument = r, {
3038
3041
  isDragging: n,
3039
- onDragOver: (g) => {
3040
- g.preventDefault(), g.stopPropagation(), throttledDragOver(g);
3042
+ onDragOver: (h) => {
3043
+ h.preventDefault(), h.stopPropagation(), throttledDragOver(h);
3041
3044
  },
3042
- onDrop: (g) => {
3043
- var R;
3044
- const h = dropTarget, x = getOrientation(h) === "vertical" ? g.clientY + ((R = iframeDocument == null ? void 0 : iframeDocument.defaultView) == null ? void 0 : R.scrollY) : g.clientX;
3045
- dropIndex = calculateDropIndex(x, possiblePositions);
3046
- const v = u, S = h.getAttribute("data-block-id"), E = dropTarget.getAttribute("data-dnd-dragged") !== "yes";
3047
- if ((v == null ? void 0 : v._id) === S || !E) {
3048
- m();
3045
+ onDrop: (h) => {
3046
+ var C;
3047
+ const b = dropTarget, v = getOrientation(b) === "vertical" ? h.clientY + ((C = iframeDocument == null ? void 0 : iframeDocument.defaultView) == null ? void 0 : C.scrollY) : h.clientX;
3048
+ dropIndex = calculateDropIndex(v, possiblePositions);
3049
+ const S = u, E = b.getAttribute("data-block-id"), w = dropTarget.getAttribute("data-dnd-dragged") !== "yes";
3050
+ if ((S == null ? void 0 : S._id) === E || !w) {
3051
+ g();
3049
3052
  return;
3050
3053
  }
3051
- if (!has(v, "_id")) {
3052
- a(v, S === "canvas" ? null : S, dropIndex), setTimeout(m, 300);
3054
+ if (!has(S, "_id")) {
3055
+ a(S, E === "canvas" ? null : E, dropIndex), setTimeout(g, 300);
3053
3056
  return;
3054
3057
  }
3055
- let w = h.getAttribute("data-block-id");
3056
- w === null && (w = g.target.parentElement.getAttribute("data-block-id")), c([v._id], w === "canvas" ? null : w, dropIndex), m(), setTimeout(removePlaceholder, 300);
3058
+ let R = b.getAttribute("data-block-id");
3059
+ R === null && (R = h.target.parentElement.getAttribute("data-block-id")), c([S._id], R === "canvas" ? null : R, dropIndex), g(), setTimeout(removePlaceholder, 300);
3057
3060
  },
3058
- onDragEnter: (g) => {
3059
- const h = g, b = h.target;
3060
- dropTarget = b;
3061
- const x = b.getAttribute("data-block-id"), v = b.getAttribute("data-dnd-dragged") !== "yes";
3062
- p(x), h.stopPropagation(), h.preventDefault(), possiblePositions = [], v && calculatePossiblePositions(b), o(!0), i(""), l([]);
3061
+ onDragEnter: (h) => {
3062
+ const b = h, x = b.target;
3063
+ dropTarget = x;
3064
+ const v = x.getAttribute("data-block-id"), S = x.getAttribute("data-dnd-dragged") !== "yes";
3065
+ p(v), b.stopPropagation(), b.preventDefault(), possiblePositions = [], S && calculatePossiblePositions(x), o(!0), i(""), l([]);
3063
3066
  },
3064
- onDragLeave: (g) => {
3065
- g.target.getAttribute("data-block-id") === "canvas" && (p(null), o(!1), removePlaceholder(), possiblePositions = []);
3067
+ onDragLeave: (h) => {
3068
+ h.target.getAttribute("data-block-id") === "canvas" && (p(null), o(!1), removePlaceholder(), possiblePositions = []);
3066
3069
  }
3067
3070
  };
3068
3071
  };
@@ -3271,13 +3274,13 @@ const useHandleCanvasDblClick = () => {
3271
3274
  }, [a, d]);
3272
3275
  const x = get$1(n, "headingFont", "DM Sans"), v = get$1(n, "bodyFont", "DM Sans");
3273
3276
  return useEffect$1(() => {
3274
- const S = get$1(n, "primaryColor", "#000"), E = get$1(n, "secondaryColor", "#FFF"), w = get$1(n, "bodyBgLightColor", "#fff"), R = get$1(n, "bodyBgDarkColor", "#000"), P = get$1(n, "bodyTextDarkColor", "#000"), A = get$1(n, "bodyTextLightColor", "#fff"), C = getPalette([
3277
+ const S = get$1(n, "primaryColor", "#000"), E = get$1(n, "secondaryColor", "#FFF"), w = get$1(n, "bodyBgLightColor", "#fff"), R = get$1(n, "bodyBgDarkColor", "#000"), C = get$1(n, "bodyTextDarkColor", "#000"), A = get$1(n, "bodyTextLightColor", "#fff"), P = getPalette([
3275
3278
  { color: S, name: "primary" },
3276
3279
  { color: E, name: "secondary" }
3277
3280
  ]), I = {
3278
3281
  "bg-light": w,
3279
3282
  "bg-dark": R,
3280
- "text-dark": P,
3283
+ "text-dark": C,
3281
3284
  "text-light": A
3282
3285
  }, j = get$1(n, "roundedCorners", "0");
3283
3286
  !p || !p.tailwind || (p.tailwind.config = {
@@ -3298,7 +3301,7 @@ const useHandleCanvasDblClick = () => {
3298
3301
  borderRadius: {
3299
3302
  DEFAULT: `${j || "0"}px`
3300
3303
  },
3301
- colors: { ...I, ...C }
3304
+ colors: { ...I, ...P }
3302
3305
  }
3303
3306
  },
3304
3307
  plugins: [
@@ -3426,10 +3429,10 @@ function BlocksRendererStatic({ blocks: r }) {
3426
3429
  const E = getBlockComponent(h._type), w = get$1(E, "builderComponent", get$1(E, "component", null));
3427
3430
  if (isNull(w))
3428
3431
  return /* @__PURE__ */ jsxRuntimeExports.jsx("noscript", { children: `<!-- ${h == null ? void 0 : h._type} not registered -->` });
3429
- const R = has(E, "getBlockStateFrom") ? E == null ? void 0 : E.getBlockStateFrom(h, n) : [], P = g(R), A = d(h);
3432
+ const R = has(E, "getBlockStateFrom") ? E == null ? void 0 : E.getBlockStateFrom(h, n) : [], C = g(R), A = d(h);
3430
3433
  if (get$1(A, "__isHidden", !1) && !includes(o, h._id))
3431
3434
  return null;
3432
- const C = i && isDescendant(i._id, h._id, n);
3435
+ const P = i && isDescendant(i._id, h._id, n);
3433
3436
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { children: React__default.createElement(w, {
3434
3437
  blockProps: {
3435
3438
  ...includes(o, h._id) ? { "force-show": "" } : {},
@@ -3439,10 +3442,10 @@ function BlocksRendererStatic({ blocks: r }) {
3439
3442
  // @ts-ignore
3440
3443
  {
3441
3444
  "data-dnd": canAcceptChildBlock(h._type, i == null ? void 0 : i._type) ? "yes" : "no",
3442
- "data-dnd-dragged": i._id === h._id || C ? "yes" : "no"
3445
+ "data-dnd-dragged": i._id === h._id || P ? "yes" : "no"
3443
3446
  }
3444
3447
  ) : {},
3445
- ...l === h._id && !C ? { "data-drop": "yes" } : {},
3448
+ ...l === h._id && !P ? { "data-drop": "yes" } : {},
3446
3449
  ...includes(a, h._id) ? { "data-cut-block": "yes" } : {}
3447
3450
  },
3448
3451
  index: b,
@@ -3450,7 +3453,7 @@ function BlocksRendererStatic({ blocks: r }) {
3450
3453
  ...omit(A, ["__isHidden"]),
3451
3454
  ...v,
3452
3455
  inBuilder: !0,
3453
- blockState: P
3456
+ blockState: C
3454
3457
  }) });
3455
3458
  })
3456
3459
  ) });
@@ -3501,23 +3504,23 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
3501
3504
  }, []), /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: "main-content", className: "h-full w-full p-10 pb-0", ref: a, children: r });
3502
3505
  }, getElementByStyleId = (r, n) => r.querySelector(`[data-style-id="${n}"]`), StaticCanvas = () => {
3503
3506
  const [r] = useAtom$1(networkModeAtom), [n] = useCanvasWidth(), [, o] = useSelectedBlockIds(), a = useSelectedBlock(), [, i] = useHighlightBlockId(), l = useRef$1(null), c = useRef$1(null), [u, d] = useState$1({ width: 0, height: 0 }), p = useCanvasScale(u), [m, g] = useState$1([]), [, h] = useState$1([]), [, b] = useAtom$1(canvasIframeAtom), [x, v] = useSelectedStylingBlocks(), S = useBuilderProp("loading", !1), E = useBuilderProp("htmlDir", "ltr"), w = (A) => {
3504
- d((C) => ({ ...C, width: A }));
3507
+ d((P) => ({ ...P, width: A }));
3505
3508
  };
3506
3509
  useEffect$1(() => {
3507
3510
  if (!c.current)
3508
3511
  return;
3509
- const { clientWidth: A, clientHeight: C } = c.current;
3510
- d({ width: A, height: C });
3512
+ const { clientWidth: A, clientHeight: P } = c.current;
3513
+ d({ width: A, height: P });
3511
3514
  }, [c, n]);
3512
- const R = (A, C = 0) => {
3515
+ const R = (A, P = 0) => {
3513
3516
  const { top: I } = A.getBoundingClientRect();
3514
- return I + C >= 0 && I - C <= window.innerHeight;
3517
+ return I + P >= 0 && I - P <= window.innerHeight;
3515
3518
  };
3516
3519
  useEffect$1(() => {
3517
- var A, C;
3520
+ var A, P;
3518
3521
  if (a && a.type !== "Multiple" && l.current) {
3519
3522
  const I = getElementByDataBlockId(l.current.contentDocument, a._id);
3520
- I && (R(I) || (C = (A = l.current) == null ? void 0 : A.contentWindow) == null || C.scrollTo({ top: I.offsetTop, behavior: "smooth" }), g([I]));
3523
+ I && (R(I) || (P = (A = l.current) == null ? void 0 : A.contentWindow) == null || P.scrollTo({ top: I.offsetTop, behavior: "smooth" }), g([I]));
3521
3524
  }
3522
3525
  }, [a]), useEffect$1(() => {
3523
3526
  if (!isEmpty(x) && l.current) {
@@ -3529,13 +3532,13 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
3529
3532
  } else
3530
3533
  h([null]);
3531
3534
  }, [x]);
3532
- const P = useMemo$1(() => {
3535
+ const C = useMemo$1(() => {
3533
3536
  let A = IframeInitialContent;
3534
3537
  return A = A.replace("__HTML_DIR__", E), r === "offline" && (A = A.replace(
3535
3538
  "https://old.chaibuilder.com/offline/tailwind.cdn.js",
3536
3539
  "/offline/tailwind.cdn.js"
3537
3540
  ), A = A.replace("https://unpkg.com/aos@next/dist/aos.css", "/offline/aos.css"), A = A.replace("https://unpkg.com/aos@next/dist/aos.js", "/offline/aos.js")), A;
3538
- }, [r]);
3541
+ }, [r, E]);
3539
3542
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ResizableCanvasWrapper, { onMount: w, onResize: w, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
3540
3543
  "div",
3541
3544
  {
@@ -3553,7 +3556,7 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
3553
3556
  id: "canvas-iframe",
3554
3557
  style: { ...p, ...isEmpty(p) ? { width: `${n}px` } : {} },
3555
3558
  className: "relative mx-auto box-content h-full w-full max-w-full shadow-lg transition-all duration-300 ease-linear",
3556
- initialContent: P,
3559
+ initialContent: C,
3557
3560
  children: [
3558
3561
  /* @__PURE__ */ jsxRuntimeExports.jsx(KeyboardHandler, {}),
3559
3562
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -3586,7 +3589,7 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
3586
3589
  }, StaticCanvas$1 = StaticCanvas, FallbackError = () => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-full w-full rounded-md bg-red-200 p-4 text-red-500", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center", children: [
3587
3590
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "font-semibold", children: "Oops! Something went wrong." }),
3588
3591
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "Please try again." })
3589
- ] }) }), CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-pll_Dx5C.js")), CanvasArea = () => {
3592
+ ] }) }), CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-qN4_4K9S.js")), CanvasArea = () => {
3590
3593
  const [r] = useCodeEditor(), n = useBuilderProp("onError", noop$1);
3591
3594
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex h-full max-h-full w-full flex-1 flex-col", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative flex h-full max-h-full flex-col overflow-hidden bg-gray-100/40 px-2", children: [
3592
3595
  /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, { className: "h-full" }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$1, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(FallbackError, {}), onError: n, children: /* @__PURE__ */ jsxRuntimeExports.jsx(StaticCanvas$1, {}) }) }),
@@ -3664,8 +3667,8 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
3664
3667
  React.useEffect(() => () => {
3665
3668
  isEqual(a, c.current) || o(c.current);
3666
3669
  }, []);
3667
- const d = ({ formData: A }, C) => {
3668
- C && (i(A), c.current = A);
3670
+ const d = ({ formData: A }, P) => {
3671
+ P && (i(A), c.current = A);
3669
3672
  }, {
3670
3673
  bodyFont: p,
3671
3674
  headingFont: m,
@@ -3717,10 +3720,10 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
3717
3720
  const R = {
3718
3721
  type: "object",
3719
3722
  properties: {}
3720
- }, P = {};
3723
+ }, C = {};
3721
3724
  return Object.keys(w).forEach((A) => {
3722
- const C = w[A];
3723
- return R.properties || (R.properties = {}), R.properties[A] = C.schema, P[A] = C.uiSchema, !0;
3725
+ const P = w[A];
3726
+ return R.properties || (R.properties = {}), R.properties[A] = P.schema, C[A] = P.uiSchema, !0;
3724
3727
  }), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("flex h-full w-full select-none flex-col", n), children: [
3725
3728
  r ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "rounded-md bg-background/30 p-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "px-1 font-semibold", children: u("Theme Configuration") }) }) : null,
3726
3729
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -3732,7 +3735,7 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
3732
3735
  omitExtraData: !0,
3733
3736
  liveOmit: !0,
3734
3737
  liveValidate: !0,
3735
- uiSchema: P,
3738
+ uiSchema: C,
3736
3739
  schema: R,
3737
3740
  formData: a,
3738
3741
  validator,
@@ -3988,16 +3991,16 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
3988
3991
  return () => clearTimeout(A);
3989
3992
  }, [g, r, h]);
3990
3993
  const R = useMemo$1(() => {
3991
- const A = Object.keys(p), C = [];
3994
+ const A = Object.keys(p), P = [];
3992
3995
  for (let I = 0; I < A.length; I++)
3993
3996
  if (A[I].endsWith("_attrs")) {
3994
3997
  const j = p[A[I]], k = Object.keys(j).join("|");
3995
- k.match(/x-data/) && C.push("data"), k.match(/x-on/) && C.push("event"), k.match(/x-show|x-if/) && C.push("show");
3998
+ k.match(/x-data/) && P.push("data"), k.match(/x-on/) && P.push("event"), k.match(/x-show|x-if/) && P.push("show");
3996
3999
  }
3997
- return C;
3998
- }, [p]), P = (A, C) => {
4000
+ return P;
4001
+ }, [p]), C = (A, P) => {
3999
4002
  const I = l.contentDocument || l.contentWindow.document, j = I.querySelector(`[data-block-id=${A}]`);
4000
- j && j.setAttribute("data-drop", C);
4003
+ j && j.setAttribute("data-drop", P);
4001
4004
  const k = j.getBoundingClientRect(), O = l.getBoundingClientRect();
4002
4005
  k.top >= O.top && k.left >= O.left && k.bottom <= O.bottom && k.right <= O.right || (I.documentElement.scrollTop = j.offsetTop - O.top);
4003
4006
  };
@@ -4021,13 +4024,13 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
4021
4024
  onDragStart: () => S(r),
4022
4025
  onDragEnd: () => E(r),
4023
4026
  onDragOver: (A) => {
4024
- A.preventDefault(), P(d, "yes");
4027
+ A.preventDefault(), C(d, "yes");
4025
4028
  },
4026
4029
  onDragLeave: (A) => {
4027
- A.preventDefault(), P(d, "no");
4030
+ A.preventDefault(), C(d, "no");
4028
4031
  },
4029
4032
  onDrop: (A) => {
4030
- A.preventDefault(), P(d, "no");
4033
+ A.preventDefault(), C(d, "no");
4031
4034
  },
4032
4035
  className: cn(
4033
4036
  "group flex !h-full w-full items-center justify-between space-x-px !rounded py-px outline-none",
@@ -4470,7 +4473,7 @@ function ExpandableObject(r) {
4470
4473
  useEffect$1(() => {
4471
4474
  g.current ? x(p(u, o, n)) : g.current = !0;
4472
4475
  }, [p]);
4473
- const v = h ? d.collapseIcon : d.expandIcon, S = h ? "collapse JSON" : "expand JSON", E = useComponentId(), w = u + 1, R = a.length - 1, P = (A) => {
4476
+ const v = h ? d.collapseIcon : d.expandIcon, S = h ? "collapse JSON" : "expand JSON", E = useComponentId(), w = u + 1, R = a.length - 1, C = (A) => {
4474
4477
  A.key === " " && (A.preventDefault(), b());
4475
4478
  };
4476
4479
  return /* @__PURE__ */ createElement$1("div", {
@@ -4479,7 +4482,7 @@ function ExpandableObject(r) {
4479
4482
  }, /* @__PURE__ */ createElement$1("span", {
4480
4483
  className: v,
4481
4484
  onClick: b,
4482
- onKeyDown: P,
4485
+ onKeyDown: C,
4483
4486
  role: "button",
4484
4487
  tabIndex: 0,
4485
4488
  "aria-label": S,
@@ -4488,7 +4491,7 @@ function ExpandableObject(r) {
4488
4491
  }), n && (m ? /* @__PURE__ */ createElement$1("span", {
4489
4492
  className: d.clickableLabel,
4490
4493
  onClick: b,
4491
- onKeyDown: P,
4494
+ onKeyDown: C,
4492
4495
  role: "button",
4493
4496
  tabIndex: -1
4494
4497
  }, n, ":") : /* @__PURE__ */ createElement$1("span", {
@@ -4497,19 +4500,19 @@ function ExpandableObject(r) {
4497
4500
  className: d.punctuation
4498
4501
  }, l), h ? /* @__PURE__ */ createElement$1("div", {
4499
4502
  id: E
4500
- }, a.map((A, C) => /* @__PURE__ */ createElement$1(DataRender, {
4501
- key: A[0] || C,
4503
+ }, a.map((A, P) => /* @__PURE__ */ createElement$1(DataRender, {
4504
+ key: A[0] || P,
4502
4505
  field: A[0],
4503
4506
  value: A[1],
4504
4507
  style: d,
4505
- lastElement: C === R,
4508
+ lastElement: P === R,
4506
4509
  level: w,
4507
4510
  shouldExpandNode: p,
4508
4511
  clickToExpandNode: m
4509
4512
  }))) : /* @__PURE__ */ createElement$1("span", {
4510
4513
  className: d.collapsedContent,
4511
4514
  onClick: b,
4512
- onKeyDown: P,
4515
+ onKeyDown: C,
4513
4516
  role: "button",
4514
4517
  tabIndex: -1,
4515
4518
  "aria-hidden": !0,
@@ -4983,7 +4986,7 @@ const ViewData = ({ data: r, fullView: n }) => {
4983
4986
  }
4984
4987
  )
4985
4988
  ] });
4986
- }, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-G-TR755p.js")), UploadImages = React__default.lazy(() => import("./UploadImages-iHMCU91M.js")), ImagesPanel = ({
4989
+ }, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-D0DNaKMO.js")), UploadImages = React__default.lazy(() => import("./UploadImages-3ML06tlb.js")), ImagesPanel = ({
4987
4990
  isModalView: r = !1,
4988
4991
  onSelect: n = () => {
4989
4992
  }
@@ -5460,10 +5463,10 @@ const AskAIStyles = ({ blockId: r }) => {
5460
5463
  function ManualClasses() {
5461
5464
  var A;
5462
5465
  const { t: r } = useTranslation(), [n] = useSelectedStylingBlocks(), o = useSelectedBlock(), a = useAddClassesToBlocks(), i = useRemoveClassesFromBlocks(), [l] = useSelectedBlockIds(), c = useBuilderProp("askAiCallBack", null), [u, d] = useState$1(""), { toast: p } = useToast(), m = (A = first(n)) == null ? void 0 : A.prop, g = reject((get$1(o, m, "").replace(STYLES_KEY, "").split(",").pop() || "").split(" "), isEmpty), h = () => {
5463
- const C = u.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
5464
- a(l, C, !0), d("");
5465
- }, [b, x] = useState$1([]), v = ({ value: C }) => {
5466
- const I = C.trim().toLowerCase(), j = I.match(/.+:/g);
5466
+ const P = u.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
5467
+ a(l, P, !0), d("");
5468
+ }, [b, x] = useState$1([]), v = ({ value: P }) => {
5469
+ const I = P.trim().toLowerCase(), j = I.match(/.+:/g);
5467
5470
  let k = [];
5468
5471
  if (j && j.length > 0) {
5469
5472
  const [O] = j, T = I.replace(O, "");
@@ -5476,19 +5479,19 @@ function ManualClasses() {
5476
5479
  return x(map(k, "item"));
5477
5480
  }, S = () => {
5478
5481
  x([]);
5479
- }, E = (C) => C.name, w = (C) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "rounded-md p-1", children: C.name }), R = {
5482
+ }, E = (P) => P.name, w = (P) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "rounded-md p-1", children: P.name }), R = {
5480
5483
  autoComplete: "off",
5481
5484
  autoCorrect: "off",
5482
5485
  autoCapitalize: "off",
5483
5486
  spellCheck: !1,
5484
5487
  placeholder: r("enter_classes_separated_by_space"),
5485
5488
  value: u,
5486
- onKeyDown: (C) => {
5487
- C.key === "Enter" && u.trim() !== "" && h();
5489
+ onKeyDown: (P) => {
5490
+ P.key === "Enter" && u.trim() !== "" && h();
5488
5491
  },
5489
- onChange: (C, { newValue: I }) => d(I),
5492
+ onChange: (P, { newValue: I }) => d(I),
5490
5493
  className: "w-full rounded-md text-xs px-2 hover:outline-0 bg-background border-border py-1"
5491
- }, P = () => {
5494
+ }, C = () => {
5492
5495
  if (navigator.clipboard === void 0) {
5493
5496
  p({
5494
5497
  title: r("clipboard_not_supported"),
@@ -5511,7 +5514,7 @@ function ManualClasses() {
5511
5514
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-x-2", children: [
5512
5515
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: r("classes") }),
5513
5516
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
5514
- /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CopyIcon$1, { onClick: P, className: "cursor-pointer" }) }),
5517
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CopyIcon$1, { onClick: C, className: "cursor-pointer" }) }),
5515
5518
  /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: r("copy_classes_to_clipboard") }) })
5516
5519
  ] })
5517
5520
  ] }),
@@ -5556,22 +5559,22 @@ function ManualClasses() {
5556
5559
  )
5557
5560
  ] }),
5558
5561
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full flex-wrap gap-2 overflow-x-hidden", children: React.Children.toArray(
5559
- g.map((C) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
5562
+ g.map((P) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
5560
5563
  "div",
5561
5564
  {
5562
5565
  className: "group relative flex max-w-[260px] cursor-default items-center gap-x-1 truncate rounded border border-gray-300 bg-gray-200 p-px px-1.5 text-[11px] text-gray-600 hover:border-gray-300",
5563
5566
  children: [
5564
- C,
5567
+ P,
5565
5568
  /* @__PURE__ */ jsxRuntimeExports.jsx(
5566
5569
  Cross2Icon,
5567
5570
  {
5568
- onClick: () => i(l, [C]),
5571
+ onClick: () => i(l, [P]),
5569
5572
  className: "invisible absolute right-1 rounded-full bg-red-400 hover:text-white group-hover:visible group-hover:cursor-pointer"
5570
5573
  }
5571
5574
  )
5572
5575
  ]
5573
5576
  },
5574
- C
5577
+ P
5575
5578
  ))
5576
5579
  ) })
5577
5580
  ]
@@ -6221,7 +6224,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
6221
6224
  },
6222
6225
  a
6223
6226
  )) }), THROTTLE_TIME = 50, AdvanceChoices = (r) => {
6224
- const [n, o] = useState$1(!1), [a, i] = useState$1(""), { currentClass: l, onChange: c, classPrefix: u, cssProperty: d, units: p, negative: m } = r, [g, h] = useState$1(d != null && d.toLowerCase().includes("width") ? "%" : p[0]), [b, x] = useState$1(!1), [v, S] = useState$1(""), [E, w] = useState$1(!1), [R, P] = useState$1(!1);
6227
+ const [n, o] = useState$1(!1), [a, i] = useState$1(""), { currentClass: l, onChange: c, classPrefix: u, cssProperty: d, units: p, negative: m } = r, [g, h] = useState$1(d != null && d.toLowerCase().includes("width") ? "%" : p[0]), [b, x] = useState$1(!1), [v, S] = useState$1(""), [E, w] = useState$1(!1), [R, C] = useState$1(!1);
6225
6228
  useEffect$1(() => {
6226
6229
  const { value: k, unit: O } = getClassValueAndUnit(l);
6227
6230
  if (O === "") {
@@ -6230,7 +6233,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
6230
6233
  }
6231
6234
  h(O), i(O === "class" || isEmpty(k) ? "" : k);
6232
6235
  }, [l, d, p]);
6233
- const A = useThrottledCallback((k) => c(k), [c], THROTTLE_TIME), C = useThrottledCallback((k) => c(k, !1), [c], THROTTLE_TIME), I = useCallback$1(
6236
+ const A = useThrottledCallback((k) => c(k), [c], THROTTLE_TIME), P = useThrottledCallback((k) => c(k, !1), [c], THROTTLE_TIME), I = useCallback$1(
6234
6237
  (k = !1) => {
6235
6238
  const O = getUserInputValues(`${a}`, p);
6236
6239
  if (get$1(O, "error", !1)) {
@@ -6245,9 +6248,9 @@ const RangeChoices = ({ property: r, onChange: n }) => {
6245
6248
  if (get$1(O, "value") === "")
6246
6249
  return;
6247
6250
  const L = `${get$1(O, "value", "").startsWith("-") ? "-" : ""}${u}[${get$1(O, "value", "").replace("-", "")}${T === "-" ? "" : T}]`;
6248
- k ? C(L) : A(L);
6251
+ k ? P(L) : A(L);
6249
6252
  },
6250
- [A, C, a, g, u, p]
6253
+ [A, P, a, g, u, p]
6251
6254
  ), j = useCallback$1(
6252
6255
  (k) => {
6253
6256
  const O = getUserInputValues(`${a}`, p);
@@ -6284,15 +6287,15 @@ const RangeChoices = ({ property: r, onChange: n }) => {
6284
6287
  onKeyDown: (k) => {
6285
6288
  if (k.keyCode !== 38 && k.keyCode !== 40)
6286
6289
  return;
6287
- k.preventDefault(), P(!0);
6290
+ k.preventDefault(), C(!0);
6288
6291
  const O = parseInt$1(k.target.value);
6289
6292
  let T = isNaN$1(O) ? 0 : O;
6290
6293
  k.keyCode === 38 && (T += 1), k.keyCode === 40 && (T -= 1);
6291
6294
  const B = `${T}`, D = `${B.startsWith("-") ? "-" : ""}${u}[${B.replace("-", "")}${g === "-" ? "" : g}]`;
6292
- C(D);
6295
+ P(D);
6293
6296
  },
6294
6297
  onKeyUp: (k) => {
6295
- R && (k.preventDefault(), P(!1));
6298
+ R && (k.preventDefault(), C(!1));
6296
6299
  },
6297
6300
  onBlur: () => I(),
6298
6301
  onChange: (k) => {
@@ -6349,7 +6352,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
6349
6352
  return;
6350
6353
  S(k);
6351
6354
  const O = `${k}`, B = `${O.startsWith("-") ? "-" : ""}${u}[${O.replace("-", "")}${g === "-" ? "" : g}]`;
6352
- C(B);
6355
+ P(B);
6353
6356
  },
6354
6357
  currentValue: a,
6355
6358
  unit: g,
@@ -6447,8 +6450,8 @@ const RangeChoices = ({ property: r, onChange: n }) => {
6447
6450
  }, getBreakpoint = (r) => `${r.toUpperCase()} ${BREAKPOINTS[r] ? `(${BREAKPOINTS[r]} & up)` : ""}`, BlockStyle = (r) => {
6448
6451
  const { t: n } = useTranslation(), { type: o = "icons", label: a, property: i, onEmitChange: l = () => {
6449
6452
  }, units: c, negative: u = !1 } = r, [d] = useDarkMode(), [p] = useStylingState(), [, m] = useCanvasWidth(), g = useCurrentClassByProperty(i), h = useAddClassesToBlocks(), b = useRemoveClassesFromBlocks(), [x] = useSelectedBlockIds(), v = useMemo$1(() => get$1(g, "fullCls", ""), [g]), S = useCallback$1(
6450
- (C, I = !0) => {
6451
- const j = { dark: d, mq: m, mod: p, cls: C, property: i, fullCls: "" };
6453
+ (P, I = !0) => {
6454
+ const j = { dark: d, mq: m, mod: p, cls: P, property: i, fullCls: "" };
6452
6455
  (d || p !== "") && (j.mq = "xs");
6453
6456
  const k = generateFullClsName(j);
6454
6457
  h(x, [k], I);
@@ -6460,8 +6463,8 @@ const RangeChoices = ({ property: r, onChange: n }) => {
6460
6463
  useEffect$1(() => {
6461
6464
  l(w, g);
6462
6465
  }, [w, l, g]);
6463
- const [, , R] = useCanvasWidth(), P = useCallback$1(
6464
- (C) => {
6466
+ const [, , R] = useCanvasWidth(), C = useCallback$1(
6467
+ (P) => {
6465
6468
  R({
6466
6469
  xs: 400,
6467
6470
  sm: 640,
@@ -6469,7 +6472,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
6469
6472
  lg: 1024,
6470
6473
  xl: 1420,
6471
6474
  "2xl": 1920
6472
- }[C]);
6475
+ }[P]);
6473
6476
  },
6474
6477
  [R]
6475
6478
  ), A = get$1(g, "dark", null) === d && get$1(g, "mod", null) === p && get$1(g, "mq", null) === m;
@@ -6513,7 +6516,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
6513
6516
  "button",
6514
6517
  {
6515
6518
  type: "button",
6516
- onClick: () => P(get$1(g, "mq")),
6519
+ onClick: () => C(get$1(g, "mq")),
6517
6520
  className: "block w-full cursor-default text-right font-semibold text-blue-500",
6518
6521
  children: [
6519
6522
  "Switch to ",
@@ -6790,9 +6793,9 @@ const BlockCard = ({
6790
6793
  if (b(first(E)) && (w = null), !isEmpty(E)) {
6791
6794
  const R = { blocks: E, uiLibrary: !0, parent: w };
6792
6795
  if (S.dataTransfer.setData("text/plain", JSON.stringify(R)), r.preview) {
6793
- const P = new Image();
6794
- P.src = r.preview, P.onload = () => {
6795
- S.dataTransfer.setDragImage(P, 0, 0);
6796
+ const C = new Image();
6797
+ C.src = r.preview, C.onload = () => {
6798
+ S.dataTransfer.setDragImage(C, 0, 0);
6796
6799
  };
6797
6800
  } else
6798
6801
  S.dataTransfer.setDragImage(new Image(), 0, 0);
@@ -7415,7 +7418,25 @@ const CoreBlock = ({ block: r, disabled: n, parentId: o }) => {
7415
7418
  i === "library" && /* @__PURE__ */ jsxRuntimeExports.jsx(UILibraries, { parentId: o }),
7416
7419
  i === "html" && u ? /* @__PURE__ */ jsxRuntimeExports.jsx(ImportHTML$1, { parentId: o }) : null
7417
7420
  ] });
7418
- }, AddBlocksPanel$1 = AddBlocksPanel;
7421
+ }, AddBlocksPanel$1 = AddBlocksPanel, AddBlocksDialog = () => {
7422
+ const { t: r } = useTranslation(), [n, o] = useState$1(""), [a, i] = useState$1(!1);
7423
+ return useChaiBuilderMsgListener(({ name: l, data: c = void 0 }) => {
7424
+ l === CHAI_BUILDER_EVENTS.OPEN_ADD_BLOCK && (o(c == null ? void 0 : c._id), i(!0)), l === CHAI_BUILDER_EVENTS.CLOSE_ADD_BLOCK && (o(""), i(!1));
7425
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialog, { open: a, onOpenChange: () => a ? i(!1) : "", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogContent, { className: "max-w-5xl overflow-hidden", children: [
7426
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogHeader, { className: "flex flex-row items-center justify-between", children: [
7427
+ /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialogTitle, { children: r("add_block") }),
7428
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
7429
+ "button",
7430
+ {
7431
+ onClick: () => i(!1),
7432
+ className: "text-gray-500 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300",
7433
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Cross2Icon, { className: "h-6 w-6" })
7434
+ }
7435
+ )
7436
+ ] }),
7437
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "no-scrollbar h-[500px] max-h-full overflow-hidden", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AddBlocksPanel$1, { parentId: n, showHeading: !1 }) })
7438
+ ] }) });
7439
+ };
7419
7440
  function FaCheck(r) {
7420
7441
  return GenIcon({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" }, child: [] }] })(r);
7421
7442
  }
@@ -7474,19 +7495,19 @@ const QUICK_PROMPTS = [
7474
7495
  function QuickPrompts({ onClick: r }) {
7475
7496
  const { loading: n } = useAskAi(), { t: o } = useTranslation();
7476
7497
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: n ? "pointer-events-none opacity-50" : "", children: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "space-y-2", children: QUICK_PROMPTS.map(
7477
- ({ name: a, icon: i, subMenus: l, prompt: c }) => l ? /* @__PURE__ */ jsxRuntimeExports.jsxs(DropdownMenu, { children: [
7478
- /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownMenuTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("li", { className: "flex cursor-pointer items-center space-x-2 hover:bg-gray-100", children: [
7479
- /* @__PURE__ */ jsxRuntimeExports.jsx(i, { className: "h-4 w-4" }),
7480
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: a })
7481
- ] }, a) }),
7482
- /* @__PURE__ */ jsxRuntimeExports.jsxs(DropdownMenuContent, { children: [
7483
- /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownMenuLabel, { children: "My Account" }),
7484
- /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownMenuSeparator, {}),
7485
- /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownMenuItem, { children: "Profile" }),
7486
- /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownMenuItem, { children: "Billing" }),
7487
- /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownMenuItem, { children: "Team" }),
7488
- /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownMenuItem, { children: "Subscription" })
7489
- ] })
7498
+ ({ name: a, icon: i, subMenus: l, prompt: c }) => l ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Popover$1, { children: [
7499
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PopoverTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
7500
+ "li",
7501
+ {
7502
+ className: "flex cursor-pointer items-center space-x-2 rounded p-1 pl-2 text-sm hover:bg-gray-100",
7503
+ children: [
7504
+ /* @__PURE__ */ jsxRuntimeExports.jsx(i, { className: "h-4 w-4" }),
7505
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: a })
7506
+ ]
7507
+ },
7508
+ a
7509
+ ) }),
7510
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PopoverContent, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: "Happy" }) }) })
7490
7511
  ] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(
7491
7512
  "li",
7492
7513
  {
@@ -7696,32 +7717,32 @@ const AIUserPrompt = ({ blockId: r }) => {
7696
7717
  return;
7697
7718
  }
7698
7719
  if (l) {
7699
- const P = [...a, { key: l, value: u }];
7700
- o(P), i(a), c(""), d(""), h("");
7720
+ const C = [...a, { key: l, value: u }];
7721
+ o(C), i(a), c(""), d(""), h("");
7701
7722
  }
7702
- }, S = (P) => {
7703
- const A = a.filter((C, I) => I !== P);
7723
+ }, S = (C) => {
7724
+ const A = a.filter((P, I) => I !== C);
7704
7725
  o(A), i(A);
7705
- }, E = (P) => {
7706
- m(P), c(a[P].key), d(a[P].value);
7726
+ }, E = (C) => {
7727
+ m(C), c(a[C].key), d(a[C].value);
7707
7728
  }, w = () => {
7708
7729
  if (l.startsWith("@")) {
7709
7730
  h("Attribute keys cannot start with '@'");
7710
7731
  return;
7711
7732
  }
7712
7733
  if (p !== null && l) {
7713
- const P = [...a];
7714
- P[p] = { key: l, value: u }, o(P), i(P), m(null), c(""), d(""), h("");
7734
+ const C = [...a];
7735
+ C[p] = { key: l, value: u }, o(C), i(C), m(null), c(""), d(""), h("");
7715
7736
  }
7716
- }, R = (P) => {
7717
- P.key === "Enter" && !P.shiftKey && (P.preventDefault(), p !== null ? w() : v());
7737
+ }, R = (C) => {
7738
+ C.key === "Enter" && !C.shiftKey && (C.preventDefault(), p !== null ? w() : v());
7718
7739
  };
7719
7740
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "max-w-full", children: [
7720
7741
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
7721
7742
  "form",
7722
7743
  {
7723
- onSubmit: (P) => {
7724
- P.preventDefault(), p !== null ? w() : v();
7744
+ onSubmit: (C) => {
7745
+ C.preventDefault(), p !== null ? w() : v();
7725
7746
  },
7726
7747
  className: "space-y-3",
7727
7748
  children: [
@@ -7737,7 +7758,7 @@ const AIUserPrompt = ({ blockId: r }) => {
7737
7758
  id: "attrKey",
7738
7759
  ref: b,
7739
7760
  value: l,
7740
- onChange: (P) => c(P.target.value),
7761
+ onChange: (C) => c(C.target.value),
7741
7762
  placeholder: "Key",
7742
7763
  className: "h-8 text-sm"
7743
7764
  }
@@ -7755,7 +7776,7 @@ const AIUserPrompt = ({ blockId: r }) => {
7755
7776
  rows: 2,
7756
7777
  ref: x,
7757
7778
  value: u,
7758
- onChange: (P) => d(P.target.value),
7779
+ onChange: (C) => d(C.target.value),
7759
7780
  onKeyDown: R,
7760
7781
  placeholder: "Value",
7761
7782
  className: "bg-background text-sm"
@@ -7768,10 +7789,10 @@ const AIUserPrompt = ({ blockId: r }) => {
7768
7789
  ]
7769
7790
  }
7770
7791
  ),
7771
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-4 space-y-1 overflow-y-auto", children: a.map((P, A) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between rounded bg-muted p-1.5 text-sm", children: [
7792
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-4 space-y-1 overflow-y-auto", children: a.map((C, A) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between rounded bg-muted p-1.5 text-sm", children: [
7772
7793
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mr-2 flex flex-col", children: [
7773
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncate font-semibold", children: P.key }),
7774
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-wrap max-w-[200px] text-muted-foreground", children: P.value.toString() })
7794
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncate font-semibold", children: C.key }),
7795
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-wrap max-w-[200px] text-muted-foreground", children: C.value.toString() })
7775
7796
  ] }),
7776
7797
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-shrink-0", children: [
7777
7798
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Button$1, { variant: "ghost", size: "icon", className: "h-6 w-6", onClick: () => E(A), children: [
@@ -7860,15 +7881,15 @@ function useAtomsSnapshot({
7860
7881
  continue;
7861
7882
  const R = (S = o.dev_get_atom_state) == null ? void 0 : S.call(o, w);
7862
7883
  R && "v" in R && h.set(w, R.v);
7863
- const P = (E = o.dev_get_mounted) == null ? void 0 : E.call(o, w);
7864
- if (P) {
7865
- let A = P.t;
7884
+ const C = (E = o.dev_get_mounted) == null ? void 0 : E.call(o, w);
7885
+ if (C) {
7886
+ let A = C.t;
7866
7887
  r || (A = new Set(
7867
7888
  Array.from(A.values()).filter(
7868
7889
  /* NOTE: This just removes private atoms from the dependents list,
7869
7890
  instead of hiding them from the dependency chain and showing
7870
7891
  the nested dependents of the private atoms. */
7871
- (C) => !C.debugPrivate
7892
+ (P) => !P.debugPrivate
7872
7893
  )
7873
7894
  )), b.set(w, A);
7874
7895
  }
@@ -8085,7 +8106,7 @@ function compile(r) {
8085
8106
  return dealloc(parse("", null, null, null, [""], r = alloc(r), 0, [0], r));
8086
8107
  }
8087
8108
  function parse(r, n, o, a, i, l, c, u, d) {
8088
- for (var p = 0, m = 0, g = c, h = 0, b = 0, x = 0, v = 1, S = 1, E = 1, w = 0, R = "", P = i, A = l, C = a, I = R; S; )
8109
+ for (var p = 0, m = 0, g = c, h = 0, b = 0, x = 0, v = 1, S = 1, E = 1, w = 0, R = "", C = i, A = l, P = a, I = R; S; )
8089
8110
  switch (x = w, w = next()) {
8090
8111
  case 40:
8091
8112
  if (x != 108 && charat(I, g - 1) == 58) {
@@ -8131,19 +8152,19 @@ function parse(r, n, o, a, i, l, c, u, d) {
8131
8152
  case 59:
8132
8153
  I += ";";
8133
8154
  default:
8134
- if (append(C = ruleset(I, n, o, p, m, i, u, R, P = [], A = [], g), l), w === 123)
8155
+ if (append(P = ruleset(I, n, o, p, m, i, u, R, C = [], A = [], g), l), w === 123)
8135
8156
  if (m === 0)
8136
- parse(I, n, C, C, P, l, g, u, A);
8157
+ parse(I, n, P, P, C, l, g, u, A);
8137
8158
  else
8138
8159
  switch (h === 99 && charat(I, 3) === 110 ? 100 : h) {
8139
8160
  case 100:
8140
8161
  case 108:
8141
8162
  case 109:
8142
8163
  case 115:
8143
- parse(r, C, C, a && append(ruleset(r, C, C, 0, 0, i, u, R, i, P = [], g), A), i, A, g, u, a ? P : A);
8164
+ parse(r, P, P, a && append(ruleset(r, P, P, 0, 0, i, u, R, i, C = [], g), A), i, A, g, u, a ? C : A);
8144
8165
  break;
8145
8166
  default:
8146
- parse(I, C, C, C, [""], A, 0, u, A);
8167
+ parse(I, P, P, P, [""], A, 0, u, A);
8147
8168
  }
8148
8169
  }
8149
8170
  p = m = b = 0, v = E = 1, R = I = "", g = c;
@@ -8557,8 +8578,8 @@ function requireReactIs_production_min() {
8557
8578
  var r = typeof Symbol == "function" && Symbol.for, n = r ? Symbol.for("react.element") : 60103, o = r ? Symbol.for("react.portal") : 60106, a = r ? Symbol.for("react.fragment") : 60107, i = r ? Symbol.for("react.strict_mode") : 60108, l = r ? Symbol.for("react.profiler") : 60114, c = r ? Symbol.for("react.provider") : 60109, u = r ? Symbol.for("react.context") : 60110, d = r ? Symbol.for("react.async_mode") : 60111, p = r ? Symbol.for("react.concurrent_mode") : 60111, m = r ? Symbol.for("react.forward_ref") : 60112, g = r ? Symbol.for("react.suspense") : 60113, h = r ? Symbol.for("react.suspense_list") : 60120, b = r ? Symbol.for("react.memo") : 60115, x = r ? Symbol.for("react.lazy") : 60116, v = r ? Symbol.for("react.block") : 60121, S = r ? Symbol.for("react.fundamental") : 60117, E = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
8558
8579
  function R(A) {
8559
8580
  if (typeof A == "object" && A !== null) {
8560
- var C = A.$$typeof;
8561
- switch (C) {
8581
+ var P = A.$$typeof;
8582
+ switch (P) {
8562
8583
  case n:
8563
8584
  switch (A = A.type, A) {
8564
8585
  case d:
@@ -8577,20 +8598,20 @@ function requireReactIs_production_min() {
8577
8598
  case c:
8578
8599
  return A;
8579
8600
  default:
8580
- return C;
8601
+ return P;
8581
8602
  }
8582
8603
  }
8583
8604
  case o:
8584
- return C;
8605
+ return P;
8585
8606
  }
8586
8607
  }
8587
8608
  }
8588
- function P(A) {
8609
+ function C(A) {
8589
8610
  return R(A) === p;
8590
8611
  }
8591
8612
  return reactIs_production_min.AsyncMode = d, reactIs_production_min.ConcurrentMode = p, reactIs_production_min.ContextConsumer = u, reactIs_production_min.ContextProvider = c, reactIs_production_min.Element = n, reactIs_production_min.ForwardRef = m, reactIs_production_min.Fragment = a, reactIs_production_min.Lazy = x, reactIs_production_min.Memo = b, reactIs_production_min.Portal = o, reactIs_production_min.Profiler = l, reactIs_production_min.StrictMode = i, reactIs_production_min.Suspense = g, reactIs_production_min.isAsyncMode = function(A) {
8592
- return P(A) || R(A) === d;
8593
- }, reactIs_production_min.isConcurrentMode = P, reactIs_production_min.isContextConsumer = function(A) {
8613
+ return C(A) || R(A) === d;
8614
+ }, reactIs_production_min.isConcurrentMode = C, reactIs_production_min.isContextConsumer = function(A) {
8594
8615
  return R(A) === u;
8595
8616
  }, reactIs_production_min.isContextProvider = function(A) {
8596
8617
  return R(A) === c;
@@ -8633,7 +8654,7 @@ function requireReactIs_development() {
8633
8654
  return typeof K == "string" || typeof K == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
8634
8655
  K === a || K === p || K === l || K === i || K === g || K === h || typeof K == "object" && K !== null && (K.$$typeof === x || K.$$typeof === b || K.$$typeof === c || K.$$typeof === u || K.$$typeof === m || K.$$typeof === S || K.$$typeof === E || K.$$typeof === w || K.$$typeof === v);
8635
8656
  }
8636
- function P(K) {
8657
+ function C(K) {
8637
8658
  if (typeof K == "object" && K !== null) {
8638
8659
  var Z = K.$$typeof;
8639
8660
  switch (Z) {
@@ -8665,47 +8686,47 @@ function requireReactIs_development() {
8665
8686
  }
8666
8687
  }
8667
8688
  }
8668
- var A = d, C = p, I = u, j = c, k = n, O = m, T = a, B = x, L = b, D = o, W = l, J = i, F = g, V = !1;
8689
+ var A = d, P = p, I = u, j = c, k = n, O = m, T = a, B = x, L = b, D = o, W = l, J = i, F = g, V = !1;
8669
8690
  function q(K) {
8670
- return V || (V = !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.")), G(K) || P(K) === d;
8691
+ return V || (V = !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.")), G(K) || C(K) === d;
8671
8692
  }
8672
8693
  function G(K) {
8673
- return P(K) === p;
8694
+ return C(K) === p;
8674
8695
  }
8675
8696
  function ee(K) {
8676
- return P(K) === u;
8697
+ return C(K) === u;
8677
8698
  }
8678
8699
  function z(K) {
8679
- return P(K) === c;
8700
+ return C(K) === c;
8680
8701
  }
8681
8702
  function U(K) {
8682
8703
  return typeof K == "object" && K !== null && K.$$typeof === n;
8683
8704
  }
8684
8705
  function te(K) {
8685
- return P(K) === m;
8706
+ return C(K) === m;
8686
8707
  }
8687
8708
  function _(K) {
8688
- return P(K) === a;
8709
+ return C(K) === a;
8689
8710
  }
8690
8711
  function Q(K) {
8691
- return P(K) === x;
8712
+ return C(K) === x;
8692
8713
  }
8693
8714
  function ne(K) {
8694
- return P(K) === b;
8715
+ return C(K) === b;
8695
8716
  }
8696
8717
  function re(K) {
8697
- return P(K) === o;
8718
+ return C(K) === o;
8698
8719
  }
8699
8720
  function $(K) {
8700
- return P(K) === l;
8721
+ return C(K) === l;
8701
8722
  }
8702
8723
  function ae(K) {
8703
- return P(K) === i;
8724
+ return C(K) === i;
8704
8725
  }
8705
8726
  function se(K) {
8706
- return P(K) === g;
8727
+ return C(K) === g;
8707
8728
  }
8708
- reactIs_development.AsyncMode = A, reactIs_development.ConcurrentMode = C, reactIs_development.ContextConsumer = I, reactIs_development.ContextProvider = j, reactIs_development.Element = k, reactIs_development.ForwardRef = O, reactIs_development.Fragment = T, reactIs_development.Lazy = B, reactIs_development.Memo = L, reactIs_development.Portal = D, reactIs_development.Profiler = W, reactIs_development.StrictMode = J, reactIs_development.Suspense = F, reactIs_development.isAsyncMode = q, reactIs_development.isConcurrentMode = G, reactIs_development.isContextConsumer = ee, reactIs_development.isContextProvider = z, reactIs_development.isElement = U, reactIs_development.isForwardRef = te, reactIs_development.isFragment = _, reactIs_development.isLazy = Q, reactIs_development.isMemo = ne, reactIs_development.isPortal = re, reactIs_development.isProfiler = $, reactIs_development.isStrictMode = ae, reactIs_development.isSuspense = se, reactIs_development.isValidElementType = R, reactIs_development.typeOf = P;
8729
+ reactIs_development.AsyncMode = A, reactIs_development.ConcurrentMode = P, reactIs_development.ContextConsumer = I, reactIs_development.ContextProvider = j, reactIs_development.Element = k, reactIs_development.ForwardRef = O, reactIs_development.Fragment = T, reactIs_development.Lazy = B, reactIs_development.Memo = L, reactIs_development.Portal = D, reactIs_development.Profiler = W, reactIs_development.StrictMode = J, reactIs_development.Suspense = F, reactIs_development.isAsyncMode = q, reactIs_development.isConcurrentMode = G, reactIs_development.isContextConsumer = ee, reactIs_development.isContextProvider = z, reactIs_development.isElement = U, reactIs_development.isForwardRef = te, reactIs_development.isFragment = _, reactIs_development.isLazy = Q, reactIs_development.isMemo = ne, reactIs_development.isPortal = re, reactIs_development.isProfiler = $, reactIs_development.isStrictMode = ae, reactIs_development.isSuspense = se, reactIs_development.isValidElementType = R, reactIs_development.typeOf = C;
8709
8730
  }()), reactIs_development;
8710
8731
  }
8711
8732
  process.env.NODE_ENV === "production" ? reactIs$1.exports = requireReactIs_production_min() : reactIs$1.exports = requireReactIs_development();
@@ -10745,12 +10766,12 @@ function useMove(r, n, o = "ltr") {
10745
10766
  cancelAnimationFrame(c.current), c.current = requestAnimationFrame(() => {
10746
10767
  if (i.current && a.current) {
10747
10768
  a.current.style.userSelect = "none";
10748
- const P = a.current.getBoundingClientRect();
10749
- if (P.width && P.height) {
10750
- const A = clamp$1((w - P.left) / P.width, 0, 1);
10769
+ const C = a.current.getBoundingClientRect();
10770
+ if (C.width && C.height) {
10771
+ const A = clamp$1((w - C.left) / C.width, 0, 1);
10751
10772
  r({
10752
10773
  x: o === "ltr" ? A : 1 - A,
10753
- y: clamp$1((R - P.top) / P.height, 0, 1)
10774
+ y: clamp$1((R - C.top) / C.height, 0, 1)
10754
10775
  });
10755
10776
  }
10756
10777
  }
@@ -10875,16 +10896,16 @@ function useScrollIntoView({
10875
10896
  offset: i,
10876
10897
  isList: c
10877
10898
  }) - (m.current ? 0 : w);
10878
- function P() {
10899
+ function C() {
10879
10900
  d.current === 0 && (d.current = performance.now());
10880
- const C = performance.now() - d.current, I = h || r === 0 ? 1 : C / r, j = w + R * a(I);
10901
+ const P = performance.now() - d.current, I = h || r === 0 ? 1 : P / r, j = w + R * a(I);
10881
10902
  setScrollParam({
10882
10903
  parent: m.current,
10883
10904
  axis: n,
10884
10905
  distance: j
10885
- }), !p.current && I < 1 ? u.current = requestAnimationFrame(P) : (typeof o == "function" && o(), d.current = 0, u.current = 0, b());
10906
+ }), !p.current && I < 1 ? u.current = requestAnimationFrame(C) : (typeof o == "function" && o(), d.current = 0, u.current = 0, b());
10886
10907
  }
10887
- P();
10908
+ C();
10888
10909
  }, [n, r, a, c, i, o, h]), v = () => {
10889
10910
  l && (p.current = !0);
10890
10911
  };
@@ -10940,9 +10961,9 @@ function extractSystemStyles(r) {
10940
10961
  c: E,
10941
10962
  opacity: w,
10942
10963
  ff: R,
10943
- fz: P,
10964
+ fz: C,
10944
10965
  fw: A,
10945
- lts: C,
10966
+ lts: P,
10946
10967
  ta: I,
10947
10968
  lh: j,
10948
10969
  fs: k,
@@ -11029,9 +11050,9 @@ function extractSystemStyles(r) {
11029
11050
  c: E,
11030
11051
  opacity: w,
11031
11052
  ff: R,
11032
- fz: P,
11053
+ fz: C,
11033
11054
  fw: A,
11034
- lts: C,
11055
+ lts: P,
11035
11056
  ta: I,
11036
11057
  lh: j,
11037
11058
  fs: k,
@@ -12097,9 +12118,9 @@ const defaultProps$A = {
12097
12118
  italic: E,
12098
12119
  classNames: w,
12099
12120
  styles: R,
12100
- unstyled: P,
12121
+ unstyled: C,
12101
12122
  span: A,
12102
- __staticSelector: C
12123
+ __staticSelector: P
12103
12124
  } = o, I = __objRest$L(o, [
12104
12125
  "className",
12105
12126
  "size",
@@ -12134,7 +12155,7 @@ const defaultProps$A = {
12134
12155
  transform: c,
12135
12156
  align: d,
12136
12157
  gradient: h
12137
- }, { unstyled: P, name: C || "Text", variant: p, size: i });
12158
+ }, { unstyled: C, name: P || "Text", variant: p, size: i });
12138
12159
  return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$14({
12139
12160
  ref: n,
12140
12161
  className: k(j.root, { [j.gradient]: p === "gradient" }, a),
@@ -12297,7 +12318,7 @@ const defaultProps$y = {
12297
12318
  "styles",
12298
12319
  "classNames",
12299
12320
  "unstyled"
12300
- ]), { classes: v, cx: S } = useStyles$F({ color: i }, { classNames: h, styles: g, unstyled: b, name: "Divider", variant: m, size: c }), E = l === "vertical", w = l === "horizontal", R = !!u && w, P = !(p != null && p.color);
12321
+ ]), { classes: v, cx: S } = useStyles$F({ color: i }, { classNames: h, styles: g, unstyled: b, name: "Divider", variant: m, size: c }), E = l === "vertical", w = l === "horizontal", R = !!u && w, C = !(p != null && p.color);
12301
12322
  return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$11({
12302
12323
  ref: n,
12303
12324
  className: S(v.root, {
@@ -12310,7 +12331,7 @@ const defaultProps$y = {
12310
12331
  size: (p == null ? void 0 : p.size) || "xs",
12311
12332
  mt: rem(2),
12312
12333
  className: S(v.label, v[d], {
12313
- [v.labelDefaultStyles]: P
12334
+ [v.labelDefaultStyles]: C
12314
12335
  })
12315
12336
  }), u));
12316
12337
  });
@@ -12402,7 +12423,7 @@ function SelectItems({
12402
12423
  variant: S,
12403
12424
  size: g
12404
12425
  }), w = [], R = [];
12405
- let P = null;
12426
+ let C = null;
12406
12427
  const A = (I, j) => {
12407
12428
  const k = typeof i == "function" ? i(I.value) : !1;
12408
12429
  return /* @__PURE__ */ React__default.createElement(m, __spreadValues$$({
@@ -12427,9 +12448,9 @@ function SelectItems({
12427
12448
  variant: S
12428
12449
  }, I));
12429
12450
  };
12430
- let C = null;
12451
+ let P = null;
12431
12452
  if (r.forEach((I, j) => {
12432
- I.creatable ? P = j : I.group ? (C !== I.group && (C = I.group, R.push(/* @__PURE__ */ React__default.createElement("div", {
12453
+ I.creatable ? C = j : I.group ? (P !== I.group && (P = I.group, R.push(/* @__PURE__ */ React__default.createElement("div", {
12433
12454
  className: E.separator,
12434
12455
  key: `__mantine-divider-${j}`
12435
12456
  }, /* @__PURE__ */ React__default.createElement(Divider, {
@@ -12437,12 +12458,12 @@ function SelectItems({
12437
12458
  label: I.group
12438
12459
  })))), R.push(A(I, j))) : w.push(A(I, j));
12439
12460
  }), b) {
12440
- const I = r[P];
12461
+ const I = r[C];
12441
12462
  w.push(/* @__PURE__ */ React__default.createElement("div", {
12442
12463
  key: randomId(),
12443
12464
  className: E.item,
12444
- "data-hovered": n === P || void 0,
12445
- onMouseEnter: () => u(P),
12465
+ "data-hovered": n === C || void 0,
12466
+ onMouseEnter: () => u(C),
12446
12467
  onMouseDown: (j) => {
12447
12468
  j.preventDefault(), d(I);
12448
12469
  },
@@ -12599,15 +12620,15 @@ const defaultProps$x = {
12599
12620
  "unstyled",
12600
12621
  "variant",
12601
12622
  "viewportProps"
12602
- ]), [w, R] = useState$1(!1), P = useMantineTheme(), { classes: A, cx: C } = useStyles$D({ scrollbarSize: u, offsetScrollbars: g, scrollbarHovered: w, hidden: p === "never" }, { name: "ScrollArea", classNames: l, styles: c, unstyled: x, variant: v });
12623
+ ]), [w, R] = useState$1(!1), C = useMantineTheme(), { classes: A, cx: P } = useStyles$D({ scrollbarSize: u, offsetScrollbars: g, scrollbarHovered: w, hidden: p === "never" }, { name: "ScrollArea", classNames: l, styles: c, unstyled: x, variant: v });
12603
12624
  return /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Root, {
12604
12625
  type: p === "never" ? "always" : p,
12605
12626
  scrollHideDelay: d,
12606
- dir: m || P.dir,
12627
+ dir: m || C.dir,
12607
12628
  ref: n,
12608
12629
  asChild: !0
12609
12630
  }, /* @__PURE__ */ React__default.createElement(Box, __spreadValues$Z({
12610
- className: C(A.root, i)
12631
+ className: P(A.root, i)
12611
12632
  }, E), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Viewport, __spreadProps$F(__spreadValues$Z({}, S), {
12612
12633
  className: A.viewport,
12613
12634
  ref: h,
@@ -12829,7 +12850,7 @@ const useHover = function(r, n) {
12829
12850
  floating: b
12830
12851
  },
12831
12852
  refs: x
12832
- } = r, v = useFloatingTree(), S = useFloatingParentNodeId(), E = useLatestRef(i), w = useLatestRef(a), R = React.useRef(), P = React.useRef(), A = React.useRef(), C = React.useRef(), I = React.useRef(!0), j = React.useRef(!1), k = React.useRef(() => {
12853
+ } = r, v = useFloatingTree(), S = useFloatingParentNodeId(), E = useLatestRef(i), w = useLatestRef(a), R = React.useRef(), C = React.useRef(), A = React.useRef(), P = React.useRef(), I = React.useRef(!0), j = React.useRef(!1), k = React.useRef(() => {
12833
12854
  }), O = React.useCallback(() => {
12834
12855
  var D;
12835
12856
  const W = (D = m.current.openEvent) == null ? void 0 : D.type;
@@ -12839,7 +12860,7 @@ const useHover = function(r, n) {
12839
12860
  if (!o)
12840
12861
  return;
12841
12862
  function D() {
12842
- clearTimeout(P.current), clearTimeout(C.current), I.current = !0;
12863
+ clearTimeout(C.current), clearTimeout(P.current), I.current = !0;
12843
12864
  }
12844
12865
  return g.on("dismiss", D), () => {
12845
12866
  g.off("dismiss", D);
@@ -12858,7 +12879,7 @@ const useHover = function(r, n) {
12858
12879
  const T = React.useCallback(function(D) {
12859
12880
  D === void 0 && (D = !0);
12860
12881
  const W = getDelay(w.current, "close", R.current);
12861
- W && !A.current ? (clearTimeout(P.current), P.current = setTimeout(() => p(!1), W)) : D && (clearTimeout(P.current), p(!1));
12882
+ W && !A.current ? (clearTimeout(C.current), C.current = setTimeout(() => p(!1), W)) : D && (clearTimeout(C.current), p(!1));
12862
12883
  }, [w, p]), B = React.useCallback(() => {
12863
12884
  k.current(), A.current = void 0;
12864
12885
  }, []), L = React.useCallback(() => {
@@ -12874,11 +12895,11 @@ const useHover = function(r, n) {
12874
12895
  return m.current.openEvent ? ["click", "mousedown"].includes(m.current.openEvent.type) : !1;
12875
12896
  }
12876
12897
  function W(V) {
12877
- if (clearTimeout(P.current), I.current = !1, l && !isMouseLikePointerType(R.current) || c > 0 && getDelay(w.current, "open") === 0)
12898
+ if (clearTimeout(C.current), I.current = !1, l && !isMouseLikePointerType(R.current) || c > 0 && getDelay(w.current, "open") === 0)
12878
12899
  return;
12879
12900
  m.current.openEvent = V;
12880
12901
  const q = getDelay(w.current, "open", R.current);
12881
- q ? P.current = setTimeout(() => {
12902
+ q ? C.current = setTimeout(() => {
12882
12903
  p(!0);
12883
12904
  }, q) : p(!0);
12884
12905
  }
@@ -12887,8 +12908,8 @@ const useHover = function(r, n) {
12887
12908
  return;
12888
12909
  k.current();
12889
12910
  const q = getDocument(b);
12890
- if (clearTimeout(C.current), E.current) {
12891
- d || clearTimeout(P.current), A.current = E.current({
12911
+ if (clearTimeout(P.current), E.current) {
12912
+ d || clearTimeout(C.current), A.current = E.current({
12892
12913
  ...r,
12893
12914
  tree: v,
12894
12915
  x: V.clientX,
@@ -12939,7 +12960,7 @@ const useHover = function(r, n) {
12939
12960
  }, [o, d, S, b, h, v, E, m, O]), index(() => {
12940
12961
  d || (R.current = void 0, B(), L());
12941
12962
  }, [d, B, L]), React.useEffect(() => () => {
12942
- B(), clearTimeout(P.current), clearTimeout(C.current), L();
12963
+ B(), clearTimeout(C.current), clearTimeout(P.current), L();
12943
12964
  }, [o, B, L]), React.useMemo(() => {
12944
12965
  if (!o)
12945
12966
  return {};
@@ -12951,14 +12972,14 @@ const useHover = function(r, n) {
12951
12972
  onPointerDown: D,
12952
12973
  onPointerEnter: D,
12953
12974
  onMouseMove() {
12954
- d || c === 0 || (clearTimeout(C.current), C.current = setTimeout(() => {
12975
+ d || c === 0 || (clearTimeout(P.current), P.current = setTimeout(() => {
12955
12976
  I.current || p(!0);
12956
12977
  }, c));
12957
12978
  }
12958
12979
  },
12959
12980
  floating: {
12960
12981
  onMouseEnter() {
12961
- clearTimeout(P.current);
12982
+ clearTimeout(C.current);
12962
12983
  },
12963
12984
  onMouseLeave() {
12964
12985
  g.emit("dismiss", {
@@ -13154,7 +13175,7 @@ const bubbleHandlerKeys = {
13154
13175
  ancestorScroll: S = !1,
13155
13176
  bubbles: E = !0
13156
13177
  } = n === void 0 ? {} : n;
13157
- const w = useFloatingTree(), R = useFloatingParentNodeId() != null, P = useEvent(typeof h == "function" ? h : () => !1), A = typeof h == "function" ? P : h, C = React.useRef(!1), {
13178
+ const w = useFloatingTree(), R = useFloatingParentNodeId() != null, C = useEvent(typeof h == "function" ? h : () => !1), A = typeof h == "function" ? C : h, P = React.useRef(!1), {
13158
13179
  escapeKeyBubbles: I,
13159
13180
  outsidePressBubbles: j
13160
13181
  } = normalizeBubblesProp(E);
@@ -13187,8 +13208,8 @@ const bubbleHandlerKeys = {
13187
13208
  }
13188
13209
  }
13189
13210
  function O(D) {
13190
- const W = C.current;
13191
- if (C.current = !1, W || typeof A == "function" && !A(D))
13211
+ const W = P.current;
13212
+ if (P.current = !1, W || typeof A == "function" && !A(D))
13192
13213
  return;
13193
13214
  const J = getTarget(D);
13194
13215
  if (isHTMLElement(J) && d) {
@@ -13243,7 +13264,7 @@ const bubbleHandlerKeys = {
13243
13264
  });
13244
13265
  };
13245
13266
  }, [p, d, u, c, g, A, b, i, w, l, o, a, S, m, I, j, R]), React.useEffect(() => {
13246
- C.current = !1;
13267
+ P.current = !1;
13247
13268
  }, [A, b]), React.useMemo(() => m ? {
13248
13269
  reference: {
13249
13270
  [bubbleHandlerKeys[v]]: () => {
@@ -13257,7 +13278,7 @@ const bubbleHandlerKeys = {
13257
13278
  },
13258
13279
  floating: {
13259
13280
  [captureHandlerKeys[b]]: () => {
13260
- C.current = !0;
13281
+ P.current = !0;
13261
13282
  }
13262
13283
  }
13263
13284
  } : {}, [m, i, x, b, v, a]);
@@ -13633,8 +13654,8 @@ function useTransition({
13633
13654
  const d = useMantineTheme(), p = useReducedMotion(), m = d.respectReducedMotion ? p : !1, [g, h] = useState$1(m ? 0 : r), [b, x] = useState$1(a ? "entered" : "exited"), v = useRef$1(-1), S = (E) => {
13634
13655
  const w = E ? i : l, R = E ? c : u;
13635
13656
  x(E ? "pre-entering" : "pre-exiting"), window.clearTimeout(v.current);
13636
- const P = m ? 0 : E ? r : n;
13637
- if (h(P), P === 0)
13657
+ const C = m ? 0 : E ? r : n;
13658
+ if (h(C), C === 0)
13638
13659
  typeof w == "function" && w(), typeof R == "function" && R(), x(E ? "entered" : "exited");
13639
13660
  else {
13640
13661
  const A = window.setTimeout(() => {
@@ -13642,7 +13663,7 @@ function useTransition({
13642
13663
  }, 10);
13643
13664
  v.current = window.setTimeout(() => {
13644
13665
  window.clearTimeout(A), typeof R == "function" && R(), x(E ? "entered" : "exited");
13645
- }, P);
13666
+ }, C);
13646
13667
  }
13647
13668
  };
13648
13669
  return useDidUpdate(() => {
@@ -13928,9 +13949,9 @@ function Popover(r) {
13928
13949
  middlewares: E,
13929
13950
  withArrow: w,
13930
13951
  arrowSize: R,
13931
- arrowOffset: P,
13952
+ arrowOffset: C,
13932
13953
  arrowRadius: A,
13933
- arrowPosition: C,
13954
+ arrowPosition: P,
13934
13955
  unstyled: I,
13935
13956
  classNames: j,
13936
13957
  styles: k,
@@ -13998,7 +14019,7 @@ function Popover(r) {
13998
14019
  position: getFloatingPosition(Te.dir, m),
13999
14020
  offset: typeof g == "number" ? g + (w ? R / 2 : 0) : g,
14000
14021
  arrowRef: u,
14001
- arrowOffset: P,
14022
+ arrowOffset: C,
14002
14023
  onPositionChange: h,
14003
14024
  positionDependencies: b,
14004
14025
  opened: x,
@@ -14030,9 +14051,9 @@ function Popover(r) {
14030
14051
  width: S,
14031
14052
  withArrow: w,
14032
14053
  arrowSize: R,
14033
- arrowOffset: P,
14054
+ arrowOffset: C,
14034
14055
  arrowRadius: A,
14035
- arrowPosition: C,
14056
+ arrowPosition: P,
14036
14057
  placement: be.floating.placement,
14037
14058
  trapFocus: W,
14038
14059
  withinPortal: T,
@@ -14196,9 +14217,9 @@ function useInputProps(r, n, o) {
14196
14217
  wrapperProps: E,
14197
14218
  id: w,
14198
14219
  size: R,
14199
- style: P,
14220
+ style: C,
14200
14221
  inputContainer: A,
14201
- inputWrapperOrder: C,
14222
+ inputWrapperOrder: P,
14202
14223
  withAsterisk: I,
14203
14224
  variant: j
14204
14225
  } = a, k = __objRest$A(a, [
@@ -14239,9 +14260,9 @@ function useInputProps(r, n, o) {
14239
14260
  styles: p,
14240
14261
  id: O,
14241
14262
  size: R,
14242
- style: P,
14263
+ style: C,
14243
14264
  inputContainer: A,
14244
- inputWrapperOrder: C,
14265
+ inputWrapperOrder: P,
14245
14266
  withAsterisk: I,
14246
14267
  variant: j
14247
14268
  }, E);
@@ -14524,9 +14545,9 @@ const defaultProps$q = {
14524
14545
  inputContainer: E,
14525
14546
  __staticSelector: w,
14526
14547
  unstyled: R,
14527
- inputWrapperOrder: P,
14548
+ inputWrapperOrder: C,
14528
14549
  withAsterisk: A,
14529
- variant: C
14550
+ variant: P
14530
14551
  } = o, I = __objRest$w(o, [
14531
14552
  "className",
14532
14553
  "label",
@@ -14553,14 +14574,14 @@ const defaultProps$q = {
14553
14574
  styles: v,
14554
14575
  name: ["InputWrapper", w],
14555
14576
  unstyled: R,
14556
- variant: C,
14577
+ variant: P,
14557
14578
  size: S
14558
14579
  }), O = {
14559
14580
  classNames: x,
14560
14581
  styles: v,
14561
14582
  unstyled: R,
14562
14583
  size: S,
14563
- variant: C,
14584
+ variant: P,
14564
14585
  __staticSelector: w
14565
14586
  }, T = typeof A == "boolean" ? A : c, B = u ? `${u}-error` : b == null ? void 0 : b.id, L = u ? `${u}-description` : h == null ? void 0 : h.id, W = `${!!d && typeof d != "boolean" ? B : ""} ${p ? L : ""}`, J = W.trim().length > 0 ? W.trim() : void 0, F = i && /* @__PURE__ */ React__default.createElement(InputLabel, __spreadValues$M(__spreadValues$M({
14566
14587
  key: "label",
@@ -14579,7 +14600,7 @@ const defaultProps$q = {
14579
14600
  size: (b == null ? void 0 : b.size) || O.size,
14580
14601
  key: "error",
14581
14602
  id: (b == null ? void 0 : b.id) || B
14582
- }), d), ee = P.map((z) => {
14603
+ }), d), ee = C.map((z) => {
14583
14604
  switch (z) {
14584
14605
  case "label":
14585
14606
  return F;
@@ -14596,7 +14617,7 @@ const defaultProps$q = {
14596
14617
  return /* @__PURE__ */ React__default.createElement(InputWrapperProvider, {
14597
14618
  value: __spreadValues$M({
14598
14619
  describedBy: J
14599
- }, getInputOffsets(P, {
14620
+ }, getInputOffsets(C, {
14600
14621
  hasDescription: !!V,
14601
14622
  hasError: !!G
14602
14623
  }))
@@ -14817,9 +14838,9 @@ const defaultProps$o = {
14817
14838
  classNames: E,
14818
14839
  styles: w,
14819
14840
  __staticSelector: R,
14820
- multiline: P,
14841
+ multiline: C,
14821
14842
  sx: A,
14822
- unstyled: C,
14843
+ unstyled: P,
14823
14844
  pointer: I
14824
14845
  } = o, j = __objRest$u(o, [
14825
14846
  "className",
@@ -14845,7 +14866,7 @@ const defaultProps$o = {
14845
14866
  "pointer"
14846
14867
  ]), { offsetBottom: k, offsetTop: O, describedBy: T } = useInputWrapperContext(), { classes: B, cx: L } = useStyles$v({
14847
14868
  radius: x,
14848
- multiline: P,
14869
+ multiline: C,
14849
14870
  invalid: !!i,
14850
14871
  rightSectionWidth: m ? rem(m) : void 0,
14851
14872
  iconWidth: g,
@@ -14853,7 +14874,7 @@ const defaultProps$o = {
14853
14874
  offsetBottom: k,
14854
14875
  offsetTop: O,
14855
14876
  pointer: I
14856
- }, { classNames: E, styles: w, name: ["Input", R], unstyled: C, variant: u, size: v }), { systemStyles: D, rest: W } = extractSystemStyles(j);
14877
+ }, { classNames: E, styles: w, name: ["Input", R], unstyled: P, variant: u, size: v }), { systemStyles: D, rest: W } = extractSystemStyles(j);
14857
14878
  return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$J(__spreadValues$J({
14858
14879
  className: L(B.wrapper, a),
14859
14880
  sx: A,
@@ -15251,9 +15272,9 @@ const defaultProps$l = {
15251
15272
  loaderPosition: E,
15252
15273
  loaderProps: w,
15253
15274
  gradient: R,
15254
- classNames: P,
15275
+ classNames: C,
15255
15276
  styles: A,
15256
- unstyled: C
15277
+ unstyled: P
15257
15278
  } = o, I = __objRest$r(o, [
15258
15279
  "className",
15259
15280
  "size",
@@ -15283,7 +15304,7 @@ const defaultProps$l = {
15283
15304
  gradient: R,
15284
15305
  withLeftIcon: !!p,
15285
15306
  withRightIcon: !!m
15286
- }, { name: "Button", unstyled: C, classNames: P, styles: A, variant: h, size: i }), T = O.fn.variant({ color: l, variant: h }), B = /* @__PURE__ */ React__default.createElement(Loader, __spreadValues$E({
15307
+ }, { name: "Button", unstyled: P, classNames: C, styles: A, variant: h, size: i }), T = O.fn.variant({ color: l, variant: h }), B = /* @__PURE__ */ React__default.createElement(Loader, __spreadValues$E({
15287
15308
  color: T.color,
15288
15309
  size: `calc(${getSize({ size: i, sizes: sizes$1 }).height} / 2)`
15289
15310
  }, w));
@@ -15295,7 +15316,7 @@ const defaultProps$l = {
15295
15316
  "data-disabled": u || void 0,
15296
15317
  "data-loading": S || void 0,
15297
15318
  ref: n,
15298
- unstyled: C
15319
+ unstyled: P
15299
15320
  }, I), /* @__PURE__ */ React__default.createElement("div", {
15300
15321
  className: j.inner
15301
15322
  }, (p || S && E === "left") && /* @__PURE__ */ React__default.createElement("span", {
@@ -15685,7 +15706,7 @@ const defaultProps$g = {
15685
15706
  unstyled: E,
15686
15707
  processing: w,
15687
15708
  variant: R
15688
- } = o, P = __objRest$m(o, [
15709
+ } = o, C = __objRest$m(o, [
15689
15710
  "children",
15690
15711
  "position",
15691
15712
  "offset",
@@ -15703,14 +15724,14 @@ const defaultProps$g = {
15703
15724
  "unstyled",
15704
15725
  "processing",
15705
15726
  "variant"
15706
- ]), { classes: A, cx: C } = useStyles$m({ position: i, offset: l, radius: u, inline: d, color: g, withBorder: p, zIndex: S, withLabel: !!b }, { name: "Indicator", classNames: x, styles: h, unstyled: E, variant: R, size: c });
15727
+ ]), { classes: A, cx: P } = useStyles$m({ position: i, offset: l, radius: u, inline: d, color: g, withBorder: p, zIndex: S, withLabel: !!b }, { name: "Indicator", classNames: x, styles: h, unstyled: E, variant: R, size: c });
15707
15728
  return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$w({
15708
15729
  ref: n,
15709
- className: C(A.root, m)
15710
- }, P), !v && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
15711
- className: C(A.indicator, A.common)
15730
+ className: P(A.root, m)
15731
+ }, C), !v && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
15732
+ className: P(A.indicator, A.common)
15712
15733
  }, b), w && /* @__PURE__ */ React__default.createElement("div", {
15713
- className: C(A.processing, A.common)
15734
+ className: P(A.processing, A.common)
15714
15735
  })), a);
15715
15736
  });
15716
15737
  Indicator.displayName = "@mantine/core/Indicator";
@@ -15949,7 +15970,7 @@ const defaultProps$d = {
15949
15970
  "unstyled",
15950
15971
  "variant",
15951
15972
  "keepMounted"
15952
- ]), { classes: R, cx: P, theme: A } = useStyles$j(null, { name: "LoadingOverlay", unstyled: v, variant: S }), C = `calc(${m} + 1)`;
15973
+ ]), { classes: R, cx: C, theme: A } = useStyles$j(null, { name: "LoadingOverlay", unstyled: v, variant: S }), P = `calc(${m} + 1)`;
15953
15974
  return /* @__PURE__ */ React__default.createElement(Transition, {
15954
15975
  keepMounted: E,
15955
15976
  duration: d,
@@ -15957,13 +15978,13 @@ const defaultProps$d = {
15957
15978
  mounted: i,
15958
15979
  transition: "fade"
15959
15980
  }, (I) => /* @__PURE__ */ React__default.createElement(Box, __spreadValues$r({
15960
- className: P(R.root, a),
15981
+ className: C(R.root, a),
15961
15982
  style: __spreadProps$m(__spreadValues$r(__spreadValues$r({}, I), g), { zIndex: m }),
15962
15983
  ref: n
15963
15984
  }, w), h ? /* @__PURE__ */ React__default.createElement("div", {
15964
- style: { zIndex: C }
15985
+ style: { zIndex: P }
15965
15986
  }, h) : /* @__PURE__ */ React__default.createElement(Loader, __spreadValues$r({
15966
- style: { zIndex: C }
15987
+ style: { zIndex: P }
15967
15988
  }, l)), /* @__PURE__ */ React__default.createElement(Overlay, {
15968
15989
  opacity: c,
15969
15990
  zIndex: m,
@@ -16190,9 +16211,9 @@ const defaultProps$c = {
16190
16211
  defaultOpened: E,
16191
16212
  onChange: w,
16192
16213
  disableRightSectionRotation: R,
16193
- childrenOffset: P,
16214
+ childrenOffset: C,
16194
16215
  disabled: A,
16195
- onClick: C
16216
+ onClick: P
16196
16217
  } = o, I = __objRest$g(o, [
16197
16218
  "label",
16198
16219
  "description",
@@ -16214,13 +16235,13 @@ const defaultProps$c = {
16214
16235
  "childrenOffset",
16215
16236
  "disabled",
16216
16237
  "onClick"
16217
- ]), { classes: j, cx: k } = useStyles$i({ color: h, noWrap: x, childrenOffset: P, alignIcon: i ? "top" : "center" }, { name: "NavLink", classNames: d, styles: p, unstyled: m, variant: b }), [O, T] = useUncontrolled({
16238
+ ]), { classes: j, cx: k } = useStyles$i({ color: h, noWrap: x, childrenOffset: C, alignIcon: i ? "top" : "center" }, { name: "NavLink", classNames: d, styles: p, unstyled: m, variant: b }), [O, T] = useUncontrolled({
16218
16239
  value: S,
16219
16240
  defaultValue: E,
16220
16241
  finalValue: !1,
16221
16242
  onChange: w
16222
16243
  }), B = !!v, L = (D) => {
16223
- B ? (D.preventDefault(), C == null || C(D), T(!O)) : C == null || C(D);
16244
+ B ? (D.preventDefault(), P == null || P(D), T(!O)) : P == null || P(D);
16224
16245
  };
16225
16246
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(UnstyledButton, __spreadValues$m({
16226
16247
  ref: n,
@@ -16423,9 +16444,9 @@ function TooltipFloating(r) {
16423
16444
  multiline: E,
16424
16445
  width: w,
16425
16446
  zIndex: R,
16426
- disabled: P,
16447
+ disabled: C,
16427
16448
  variant: A
16428
- } = o, C = __objRest$e(o, [
16449
+ } = o, P = __objRest$e(o, [
16429
16450
  "children",
16430
16451
  "refProp",
16431
16452
  "withinPortal",
@@ -16460,12 +16481,12 @@ function TooltipFloating(r) {
16460
16481
  };
16461
16482
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(OptionalPortal, __spreadProps$g(__spreadValues$j({}, c), {
16462
16483
  withinPortal: l
16463
- }), /* @__PURE__ */ React__default.createElement(Box, __spreadProps$g(__spreadValues$j({}, C), {
16484
+ }), /* @__PURE__ */ React__default.createElement(Box, __spreadProps$g(__spreadValues$j({}, P), {
16464
16485
  ref: B,
16465
16486
  className: W(D.tooltip, d),
16466
16487
  style: __spreadProps$g(__spreadValues$j({}, u), {
16467
16488
  zIndex: R,
16468
- display: !P && O ? "block" : "none",
16489
+ display: !C && O ? "block" : "none",
16469
16490
  top: k ?? "",
16470
16491
  left: (n = Math.round(j)) != null ? n : ""
16471
16492
  })
@@ -16488,7 +16509,7 @@ function useTooltip(r) {
16488
16509
  refs: S,
16489
16510
  update: E,
16490
16511
  placement: w,
16491
- middlewareData: { arrow: { x: R, y: P } = {} }
16512
+ middlewareData: { arrow: { x: R, y: C } = {} }
16492
16513
  } = useFloating({
16493
16514
  placement: r.position,
16494
16515
  open: i,
@@ -16500,7 +16521,7 @@ function useTooltip(r) {
16500
16521
  arrow({ element: r.arrowRef, padding: r.arrowOffset }),
16501
16522
  ...r.inline ? [inline()] : []
16502
16523
  ]
16503
- }), { getReferenceProps: A, getFloatingProps: C } = useInteractions([
16524
+ }), { getReferenceProps: A, getFloatingProps: P } = useInteractions([
16504
16525
  useHover(v, {
16505
16526
  enabled: r.events.hover,
16506
16527
  delay: l ? u : { open: r.openDelay, close: r.closeDelay },
@@ -16523,10 +16544,10 @@ function useTooltip(r) {
16523
16544
  x: g,
16524
16545
  y: h,
16525
16546
  arrowX: R,
16526
- arrowY: P,
16547
+ arrowY: C,
16527
16548
  reference: b,
16528
16549
  floating: x,
16529
- getFloatingProps: C,
16550
+ getFloatingProps: P,
16530
16551
  getReferenceProps: A,
16531
16552
  isGroupPhase: i && d && d !== c,
16532
16553
  opened: i,
@@ -16582,9 +16603,9 @@ const defaultProps$9 = {
16582
16603
  classNames: E,
16583
16604
  styles: w,
16584
16605
  unstyled: R,
16585
- style: P,
16606
+ style: C,
16586
16607
  className: A,
16587
- withArrow: C,
16608
+ withArrow: P,
16588
16609
  arrowSize: I,
16589
16610
  arrowOffset: j,
16590
16611
  arrowRadius: k,
@@ -16649,7 +16670,7 @@ const defaultProps$9 = {
16649
16670
  events: W,
16650
16671
  arrowRef: a,
16651
16672
  arrowOffset: j,
16652
- offset: T + (C ? I / 2 : 0),
16673
+ offset: T + (P ? I / 2 : 0),
16653
16674
  positionDependencies: [...V, l],
16654
16675
  inline: z
16655
16676
  });
@@ -16669,7 +16690,7 @@ const defaultProps$9 = {
16669
16690
  return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$i(__spreadValues$i({}, _), $.getFloatingProps({
16670
16691
  ref: $.floating,
16671
16692
  className: Q.tooltip,
16672
- style: __spreadProps$f(__spreadValues$i(__spreadValues$i({}, P), se), {
16693
+ style: __spreadProps$f(__spreadValues$i(__spreadValues$i({}, C), se), {
16673
16694
  zIndex: J,
16674
16695
  top: (K = $.y) != null ? K : 0,
16675
16696
  left: (Z = $.x) != null ? Z : 0
@@ -16678,7 +16699,7 @@ const defaultProps$9 = {
16678
16699
  ref: a,
16679
16700
  arrowX: $.arrowX,
16680
16701
  arrowY: $.arrowY,
16681
- visible: C,
16702
+ visible: P,
16682
16703
  position: $.placement,
16683
16704
  arrowSize: I,
16684
16705
  arrowOffset: j,
@@ -16798,9 +16819,9 @@ const defaultProps$8 = {
16798
16819
  classNames: E,
16799
16820
  styles: w,
16800
16821
  filter: R,
16801
- maxDropdownHeight: P,
16822
+ maxDropdownHeight: C,
16802
16823
  searchable: A,
16803
- clearable: C,
16824
+ clearable: P,
16804
16825
  nothingFound: I,
16805
16826
  limit: j,
16806
16827
  disabled: k,
@@ -16885,7 +16906,7 @@ const defaultProps$8 = {
16885
16906
  offset: 5,
16886
16907
  cancelable: !1,
16887
16908
  isList: !0
16888
- }), Ye = re === void 0 ? C : re, Se = (H) => {
16909
+ }), Ye = re === void 0 ? P : re, Se = (H) => {
16889
16910
  if (ge !== H) {
16890
16911
  Ge(H);
16891
16912
  const ie = H ? ee : G;
@@ -17010,7 +17031,7 @@ const defaultProps$8 = {
17010
17031
  }, Y = (H) => {
17011
17032
  typeof b == "function" && b(H), A && Se(!0);
17012
17033
  }, oe = (H) => {
17013
- Z || (Oe(H.currentTarget.value), C && H.currentTarget.value === "" && Be(null), ve(-1), Se(!0));
17034
+ Z || (Oe(H.currentTarget.value), P && H.currentTarget.value === "" && Be(null), ve(-1), Se(!0));
17014
17035
  }, ce = () => {
17015
17036
  Z || (Se(!ge), Ce && !ge && ve(Ve));
17016
17037
  };
@@ -17075,7 +17096,7 @@ const defaultProps$8 = {
17075
17096
  rightSectionWidth: L,
17076
17097
  styles: w,
17077
17098
  size: a.size,
17078
- shouldClear: C && !!Pe,
17099
+ shouldClear: P && !!Pe,
17079
17100
  onClear: st,
17080
17101
  error: i.error,
17081
17102
  clearButtonProps: le,
@@ -17083,7 +17104,7 @@ const defaultProps$8 = {
17083
17104
  readOnly: Z
17084
17105
  }))))), /* @__PURE__ */ React__default.createElement(SelectPopover.Dropdown, {
17085
17106
  component: q || SelectScrollArea,
17086
- maxHeight: P,
17107
+ maxHeight: C,
17087
17108
  direction: Je,
17088
17109
  id: a.id,
17089
17110
  innerRef: nt,
@@ -17223,14 +17244,14 @@ const Thumb = forwardRef$1(({
17223
17244
  onFocus: E,
17224
17245
  onBlur: w,
17225
17246
  showLabelOnHover: R,
17226
- isHovered: P,
17247
+ isHovered: C,
17227
17248
  children: A = null,
17228
- disabled: C,
17249
+ disabled: P,
17229
17250
  unstyled: I,
17230
17251
  thumbSize: j,
17231
17252
  variant: k
17232
17253
  }, O) => {
17233
- const { classes: T, cx: B, theme: L } = useStyles$d({ color: d, disabled: C, thumbSize: j }, { name: "Slider", classNames: p, styles: m, unstyled: I, variant: k, size: g }), [D, W] = useState$1(!1), J = v || l || D || R && P;
17254
+ const { classes: T, cx: B, theme: L } = useStyles$d({ color: d, disabled: P, thumbSize: j }, { name: "Slider", classNames: p, styles: m, unstyled: I, variant: k, size: g }), [D, W] = useState$1(!1), J = v || l || D || R && C;
17234
17255
  return /* @__PURE__ */ React__default.createElement(Box, {
17235
17256
  tabIndex: 0,
17236
17257
  role: "slider",
@@ -17332,11 +17353,11 @@ function Marks({
17332
17353
  })
17333
17354
  }), w.label && /* @__PURE__ */ React__default.createElement("div", {
17334
17355
  className: v.markLabel,
17335
- onMouseDown: (P) => {
17336
- P.stopPropagation(), !g && m(w.value);
17356
+ onMouseDown: (C) => {
17357
+ C.stopPropagation(), !g && m(w.value);
17337
17358
  },
17338
- onTouchStart: (P) => {
17339
- P.stopPropagation(), !g && m(w.value);
17359
+ onTouchStart: (C) => {
17360
+ C.stopPropagation(), !g && m(w.value);
17340
17361
  }
17341
17362
  }, w.label)));
17342
17363
  return /* @__PURE__ */ React__default.createElement("div", {
@@ -17576,9 +17597,9 @@ const defaultProps$7 = {
17576
17597
  marks: E,
17577
17598
  label: w,
17578
17599
  labelTransition: R,
17579
- labelTransitionDuration: P,
17600
+ labelTransitionDuration: C,
17580
17601
  labelTransitionTimingFunction: A,
17581
- labelAlwaysOn: C,
17602
+ labelAlwaysOn: P,
17582
17603
  thumbLabel: I,
17583
17604
  showLabelOnHover: j,
17584
17605
  thumbChildren: k,
@@ -17712,9 +17733,9 @@ const defaultProps$7 = {
17712
17733
  label: re,
17713
17734
  ref: _,
17714
17735
  labelTransition: R,
17715
- labelTransitionDuration: P,
17736
+ labelTransitionDuration: C,
17716
17737
  labelTransitionTimingFunction: A,
17717
- labelAlwaysOn: C,
17738
+ labelAlwaysOn: P,
17718
17739
  classNames: a,
17719
17740
  styles: i,
17720
17741
  thumbLabel: I,
@@ -17998,8 +18019,8 @@ const defaultProps$3 = {}, Tab = forwardRef$1((r, n) => {
17998
18019
  classNames: h.classNames,
17999
18020
  styles: h.styles,
18000
18021
  variant: h.variant
18001
- }), w = a === h.value, R = h.getPanelId(a), P = h.mountedPanelIds.includes(a) ? R : void 0, A = (C) => {
18002
- h.onTabChange(h.allowTabDeactivation && a === h.value ? null : a), c == null || c(C);
18022
+ }), w = a === h.value, R = h.getPanelId(a), C = h.mountedPanelIds.includes(a) ? R : void 0, A = (P) => {
18023
+ h.onTabChange(h.allowTabDeactivation && a === h.value ? null : a), c == null || c(P);
18003
18024
  };
18004
18025
  return /* @__PURE__ */ React__default.createElement(UnstyledButton, __spreadProps$5(__spreadValues$6({}, g), {
18005
18026
  unstyled: h.unstyled,
@@ -18011,7 +18032,7 @@ const defaultProps$3 = {}, Tab = forwardRef$1((r, n) => {
18011
18032
  id: h.getTabId(a),
18012
18033
  "aria-selected": w,
18013
18034
  tabIndex: w || h.value === null ? 0 : -1,
18014
- "aria-controls": P,
18035
+ "aria-controls": C,
18015
18036
  onClick: A,
18016
18037
  onKeyDown: createScopedKeydownHandler({
18017
18038
  siblingSelector: '[role="tab"]',
@@ -18051,7 +18072,7 @@ function TabsProvider({
18051
18072
  styles: S,
18052
18073
  unstyled: E
18053
18074
  }) {
18054
- const w = useId$2(c), [R, P] = useState$1([]), [A, C] = useUncontrolled({
18075
+ const w = useId$2(c), [R, C] = useState$1([]), [A, P] = useUncontrolled({
18055
18076
  value: n,
18056
18077
  defaultValue: r,
18057
18078
  finalValue: null,
@@ -18067,8 +18088,8 @@ function TabsProvider({
18067
18088
  activateTabWithKeyboard: u,
18068
18089
  getTabId: getSafeId(`${w}-tab`, TABS_ERRORS.value),
18069
18090
  getPanelId: getSafeId(`${w}-panel`, TABS_ERRORS.value),
18070
- onTabChange: C,
18071
- setMountedPanelIds: P,
18091
+ onTabChange: P,
18092
+ setMountedPanelIds: C,
18072
18093
  mountedPanelIds: R,
18073
18094
  allowTabDeactivation: d,
18074
18095
  variant: p,
@@ -18132,9 +18153,9 @@ const defaultProps$2 = {
18132
18153
  styles: E,
18133
18154
  radius: w,
18134
18155
  inverted: R,
18135
- keepMounted: P,
18156
+ keepMounted: C,
18136
18157
  placement: A
18137
- } = o, C = __objRest$4(o, [
18158
+ } = o, P = __objRest$4(o, [
18138
18159
  "defaultValue",
18139
18160
  "value",
18140
18161
  "orientation",
@@ -18168,12 +18189,12 @@ const defaultProps$2 = {
18168
18189
  variant: h,
18169
18190
  radius: w,
18170
18191
  inverted: R,
18171
- keepMounted: P,
18192
+ keepMounted: C,
18172
18193
  placement: A,
18173
18194
  classNames: S,
18174
18195
  styles: E,
18175
18196
  unstyled: v
18176
- }, /* @__PURE__ */ React__default.createElement(Box, __spreadProps$4(__spreadValues$5({}, C), {
18197
+ }, /* @__PURE__ */ React__default.createElement(Box, __spreadProps$4(__spreadValues$5({}, P), {
18177
18198
  className: j(I.root, x),
18178
18199
  id: m,
18179
18200
  ref: n
@@ -18549,8 +18570,8 @@ function stringify(r, n, o, a = {}) {
18549
18570
  if (R === void 0)
18550
18571
  return x(w, i, v, R);
18551
18572
  l.push(R);
18552
- const P = S(w, R === ROOT_SENTINEL ? void 0 : R);
18553
- return l.pop(), P;
18573
+ const C = S(w, R === ROOT_SENTINEL ? void 0 : R);
18574
+ return l.pop(), C;
18554
18575
  }, S = g ? (w, R) => {
18555
18576
  if (w !== null && (typeof w == "object" || typeof w == "function" || typeof w == "symbol")) {
18556
18577
  if (u.has(w))
@@ -18562,18 +18583,18 @@ function stringify(r, n, o, a = {}) {
18562
18583
  if (c.has(w))
18563
18584
  return;
18564
18585
  c.add(w);
18565
- const P = x(w, i, v, R);
18566
- return c.delete(w), P;
18586
+ const C = x(w, i, v, R);
18587
+ return c.delete(w), C;
18567
18588
  }, E = v(r, ROOT_SENTINEL);
18568
18589
  if (d.size) {
18569
18590
  const w = i ? " " : "", R = i ? `
18570
18591
  ` : "";
18571
- let P = `var x${w}=${w}${E};${R}`;
18572
- for (const [A, C] of d.entries()) {
18573
- const I = quote_1.stringifyPath(A, v), j = quote_1.stringifyPath(C, v);
18574
- P += `x${I}${w}=${w}x${j};${R}`;
18592
+ let C = `var x${w}=${w}${E};${R}`;
18593
+ for (const [A, P] of d.entries()) {
18594
+ const I = quote_1.stringifyPath(A, v), j = quote_1.stringifyPath(P, v);
18595
+ C += `x${I}${w}=${w}x${j};${R}`;
18575
18596
  }
18576
- return `(function${w}()${w}{${R}${P}return x;${R}}())`;
18597
+ return `(function${w}()${w}{${R}${C}return x;${R}}())`;
18577
18598
  }
18578
18599
  return E;
18579
18600
  }
@@ -18625,14 +18646,14 @@ function PanelWithForwardedRef({
18625
18646
  expandPanel: E,
18626
18647
  getPanelStyle: w,
18627
18648
  registerPanel: R,
18628
- resizePanel: P,
18649
+ resizePanel: C,
18629
18650
  unregisterPanel: A
18630
- } = x, C = useRef({
18651
+ } = x, P = useRef({
18631
18652
  onCollapse: p,
18632
18653
  onResize: m
18633
18654
  });
18634
18655
  if (useEffect(() => {
18635
- C.current.onCollapse = p, C.current.onResize = m;
18656
+ P.current.onCollapse = p, P.current.onResize = m;
18636
18657
  }), d < 0 || d > 100)
18637
18658
  throw Error(`Panel minSize must be between 0 and 100, but was ${d}`);
18638
18659
  if (u < 0 || u > 100)
@@ -18645,7 +18666,7 @@ function PanelWithForwardedRef({
18645
18666
  const I = w(v, i), j = useRef({
18646
18667
  size: parseSizeFromStyle(I)
18647
18668
  }), k = useRef({
18648
- callbacksRef: C,
18669
+ callbacksRef: P,
18649
18670
  collapsedSize: o,
18650
18671
  collapsible: a,
18651
18672
  defaultSize: i,
@@ -18656,7 +18677,7 @@ function PanelWithForwardedRef({
18656
18677
  order: g
18657
18678
  });
18658
18679
  return useIsomorphicLayoutEffect(() => {
18659
- j.current.size = parseSizeFromStyle(I), k.current.callbacksRef = C, k.current.collapsedSize = o, k.current.collapsible = a, k.current.defaultSize = i, k.current.id = v, k.current.idWasAutoGenerated = c == null, k.current.maxSize = u, k.current.minSize = d, k.current.order = g;
18680
+ j.current.size = parseSizeFromStyle(I), k.current.callbacksRef = P, k.current.collapsedSize = o, k.current.collapsible = a, k.current.defaultSize = i, k.current.id = v, k.current.idWasAutoGenerated = c == null, k.current.maxSize = u, k.current.minSize = d, k.current.order = g;
18660
18681
  }), useIsomorphicLayoutEffect(() => (R(v, k), () => {
18661
18682
  A(v);
18662
18683
  }), [g, v, R, A]), useImperativeHandle(l, () => ({
@@ -18668,8 +18689,8 @@ function PanelWithForwardedRef({
18668
18689
  getSize() {
18669
18690
  return j.current.size;
18670
18691
  },
18671
- resize: (O) => P(v, O)
18672
- }), [S, E, v, P]), createElement(b, {
18692
+ resize: (O) => C(v, O)
18693
+ }), [S, E, v, C]), createElement(b, {
18673
18694
  children: r,
18674
18695
  className: n,
18675
18696
  "data-panel": "",
@@ -18705,7 +18726,7 @@ function adjustByDelta(r, n, o, a, i, l, c, u) {
18705
18726
  const m = panelsMapToSortedArray(n), g = p.concat();
18706
18727
  let h = 0;
18707
18728
  {
18708
- const v = i < 0 ? a : o, S = m.findIndex((P) => P.current.id === v), E = m[S], w = p[S], R = safeResizePanel(E, Math.abs(i), w, r);
18729
+ const v = i < 0 ? a : o, S = m.findIndex((C) => C.current.id === v), E = m[S], w = p[S], R = safeResizePanel(E, Math.abs(i), w, r);
18709
18730
  if (w === R)
18710
18731
  return p;
18711
18732
  R === 0 && w > 0 && c.set(v, w), i = i < 0 ? w - R : R - w;
@@ -18834,12 +18855,12 @@ function useWindowSplitterPanelGroupBehavior({
18834
18855
  if (S == null || E == null)
18835
18856
  return () => {
18836
18857
  };
18837
- let w = 0, R = 100, P = 0, A = 0;
18858
+ let w = 0, R = 100, C = 0, A = 0;
18838
18859
  v.forEach((T) => {
18839
- T.current.id === S ? (R = T.current.maxSize, w = T.current.minSize) : (P += T.current.minSize, A += T.current.maxSize);
18860
+ T.current.id === S ? (R = T.current.maxSize, w = T.current.minSize) : (C += T.current.minSize, A += T.current.maxSize);
18840
18861
  });
18841
- const C = Math.min(R, 100 - P), I = Math.max(w, (v.length - 1) * 100 - A), j = getFlexGrow(u, S, i);
18842
- b.setAttribute("aria-valuemax", "" + Math.round(C)), b.setAttribute("aria-valuemin", "" + Math.round(I)), b.setAttribute("aria-valuenow", "" + Math.round(parseInt(j)));
18862
+ const P = Math.min(R, 100 - C), I = Math.max(w, (v.length - 1) * 100 - A), j = getFlexGrow(u, S, i);
18863
+ b.setAttribute("aria-valuemax", "" + Math.round(P)), b.setAttribute("aria-valuemin", "" + Math.round(I)), b.setAttribute("aria-valuenow", "" + Math.round(parseInt(j)));
18843
18864
  const k = (T) => {
18844
18865
  if (!T.defaultPrevented)
18845
18866
  switch (T.key) {
@@ -18958,10 +18979,10 @@ function getMovement(r, n, o, a, i, l, c) {
18958
18979
  E = -x;
18959
18980
  break;
18960
18981
  }
18961
- const [w, R] = getResizeHandlePanelIds(n, o, a), P = E < 0 ? w : R, A = a.findIndex((I) => I.current.id === P), C = a[A];
18962
- if (C.current.collapsible) {
18982
+ const [w, R] = getResizeHandlePanelIds(n, o, a), C = E < 0 ? w : R, A = a.findIndex((I) => I.current.id === C), P = a[A];
18983
+ if (P.current.collapsible) {
18963
18984
  const I = m[A];
18964
- (I === 0 || I.toPrecision(PRECISION) === C.current.minSize.toPrecision(PRECISION)) && (E = E < 0 ? -C.current.minSize * x : C.current.minSize * x);
18985
+ (I === 0 || I.toPrecision(PRECISION) === P.current.minSize.toPrecision(PRECISION)) && (E = E < 0 ? -P.current.minSize * x : P.current.minSize * x);
18965
18986
  }
18966
18987
  return E;
18967
18988
  } else
@@ -19094,7 +19115,7 @@ function PanelGroupWithForwardedRef({
19094
19115
  useEffect(() => {
19095
19116
  E.current.onLayout = u;
19096
19117
  });
19097
- const w = useRef({}), [R, P] = useState([]), A = useRef(/* @__PURE__ */ new Map()), C = useRef(0), I = useRef({
19118
+ const w = useRef({}), [R, C] = useState([]), A = useRef(/* @__PURE__ */ new Map()), P = useRef(0), I = useRef({
19098
19119
  direction: a,
19099
19120
  panels: x,
19100
19121
  sizes: R
@@ -19112,7 +19133,7 @@ function PanelGroupWithForwardedRef({
19112
19133
  const {
19113
19134
  panels: q
19114
19135
  } = I.current, G = w.current, ee = panelsMapToSortedArray(q);
19115
- P(F), callPanelCallbacks(ee, F, G);
19136
+ C(F), callPanelCallbacks(ee, F, G);
19116
19137
  }
19117
19138
  }), []), useIsomorphicLayoutEffect(() => {
19118
19139
  I.current.direction = a, I.current.panels = x, I.current.sizes = R;
@@ -19120,7 +19141,7 @@ function PanelGroupWithForwardedRef({
19120
19141
  committedValuesRef: I,
19121
19142
  groupId: g,
19122
19143
  panels: x,
19123
- setSizes: P,
19144
+ setSizes: C,
19124
19145
  sizes: R,
19125
19146
  panelSizeBeforeCollapse: A
19126
19147
  }), useEffect(() => {
@@ -19144,7 +19165,7 @@ function PanelGroupWithForwardedRef({
19144
19165
  V = loadPanelLayout(r, q, d);
19145
19166
  }
19146
19167
  if (V != null)
19147
- P(V);
19168
+ C(V);
19148
19169
  else {
19149
19170
  const q = panelsMapToSortedArray(x);
19150
19171
  let G = 0, ee = 0, z = 0;
@@ -19156,7 +19177,7 @@ function PanelGroupWithForwardedRef({
19156
19177
  throw new Error("Invalid default sizes specified for panels");
19157
19178
  if (z > 100)
19158
19179
  throw new Error("Minimum panel sizes cannot exceed 100%");
19159
- P(q.map((U) => U.current.defaultSize === null ? (100 - ee) / G : U.current.defaultSize));
19180
+ C(q.map((U) => U.current.defaultSize === null ? (100 - ee) / G : U.current.defaultSize));
19160
19181
  }
19161
19182
  }, [r, x, d]), useEffect(() => {
19162
19183
  if (r) {
@@ -19208,11 +19229,11 @@ function PanelGroupWithForwardedRef({
19208
19229
  const re = getPanelGroup(g).getBoundingClientRect(), $ = G === "horizontal";
19209
19230
  document.dir === "rtl" && $ && (Q = -Q);
19210
19231
  const ae = $ ? re.width : re.height, se = Q / ae * 100, K = adjustByDelta(q, ee, te, _, se, z, A.current, S.current), Z = !areEqual(z, K);
19211
- if ((isMouseEvent(q) || isTouchEvent(q)) && C.current != se && setGlobalCursorStyle(Z ? $ ? "horizontal" : "vertical" : $ ? Q < 0 ? "horizontal-min" : "horizontal-max" : Q < 0 ? "vertical-min" : "vertical-max"), Z) {
19232
+ if ((isMouseEvent(q) || isTouchEvent(q)) && P.current != se && setGlobalCursorStyle(Z ? $ ? "horizontal" : "vertical" : $ ? Q < 0 ? "horizontal-min" : "horizontal-max" : Q < 0 ? "vertical-min" : "vertical-max"), Z) {
19212
19233
  const le = w.current;
19213
- P(K), callPanelCallbacks(U, K, le);
19234
+ C(K), callPanelCallbacks(U, K, le);
19214
19235
  }
19215
- C.current = se;
19236
+ P.current = se;
19216
19237
  }, [g]), T = useCallback((F) => {
19217
19238
  v((V) => {
19218
19239
  if (!V.has(F))
@@ -19246,7 +19267,7 @@ function PanelGroupWithForwardedRef({
19246
19267
  const $ = te === U.length - 1 ? _ : ee - _, ae = adjustByDelta(null, V, Q, ne, $, q, A.current, null);
19247
19268
  if (q !== ae) {
19248
19269
  const se = w.current;
19249
- P(ae), callPanelCallbacks(U, ae, se);
19270
+ C(ae), callPanelCallbacks(U, ae, se);
19250
19271
  }
19251
19272
  }, []), L = useCallback((F) => {
19252
19273
  const {
@@ -19270,7 +19291,7 @@ function PanelGroupWithForwardedRef({
19270
19291
  const ae = _ === te.length - 1 ? ee - U : U, se = adjustByDelta(null, V, ne, re, ae, q, A.current, null);
19271
19292
  if (q !== se) {
19272
19293
  const K = w.current;
19273
- P(se), callPanelCallbacks(te, se, K);
19294
+ C(se), callPanelCallbacks(te, se, K);
19274
19295
  }
19275
19296
  }, []), D = useCallback((F, V) => {
19276
19297
  const {
@@ -19297,7 +19318,7 @@ function PanelGroupWithForwardedRef({
19297
19318
  const K = ne === Q.length - 1 ? re - V : V - re, Z = adjustByDelta(null, q, $, ae, K, G, A.current, null);
19298
19319
  if (G !== Z) {
19299
19320
  const le = w.current;
19300
- P(Z), callPanelCallbacks(Q, Z, le);
19321
+ C(Z), callPanelCallbacks(Q, Z, le);
19301
19322
  }
19302
19323
  }, []), W = useMemo(() => ({
19303
19324
  activeHandleId: h,
@@ -19376,7 +19397,7 @@ function PanelResizeHandle$1({
19376
19397
  registerResizeHandle: b,
19377
19398
  startDragging: x,
19378
19399
  stopDragging: v
19379
- } = p, S = useUniqueId(a), E = m === S, [w, R] = useState(!1), [P, A] = useState(null), C = useCallback(() => {
19400
+ } = p, S = useUniqueId(a), E = m === S, [w, R] = useState(!1), [C, A] = useState(null), P = useCallback(() => {
19380
19401
  u.current.blur(), v();
19381
19402
  const {
19382
19403
  onDragging: k
@@ -19391,20 +19412,20 @@ function PanelResizeHandle$1({
19391
19412
  A(() => j);
19392
19413
  }
19393
19414
  }, [o, S, b]), useEffect(() => {
19394
- if (o || P == null || !E)
19415
+ if (o || C == null || !E)
19395
19416
  return;
19396
19417
  const j = (B) => {
19397
- P(B);
19418
+ C(B);
19398
19419
  }, k = (B) => {
19399
- P(B);
19420
+ C(B);
19400
19421
  }, T = u.current.ownerDocument;
19401
- return T.body.addEventListener("contextmenu", C), T.body.addEventListener("mousemove", j), T.body.addEventListener("touchmove", j), T.body.addEventListener("mouseleave", k), window.addEventListener("mouseup", C), window.addEventListener("touchend", C), () => {
19402
- T.body.removeEventListener("contextmenu", C), T.body.removeEventListener("mousemove", j), T.body.removeEventListener("touchmove", j), T.body.removeEventListener("mouseleave", k), window.removeEventListener("mouseup", C), window.removeEventListener("touchend", C);
19422
+ return T.body.addEventListener("contextmenu", P), T.body.addEventListener("mousemove", j), T.body.addEventListener("touchmove", j), T.body.addEventListener("mouseleave", k), window.addEventListener("mouseup", P), window.addEventListener("touchend", P), () => {
19423
+ T.body.removeEventListener("contextmenu", P), T.body.removeEventListener("mousemove", j), T.body.removeEventListener("touchmove", j), T.body.removeEventListener("mouseleave", k), window.removeEventListener("mouseup", P), window.removeEventListener("touchend", P);
19403
19424
  };
19404
- }, [g, o, E, P, C]), useWindowSplitterResizeHandlerBehavior({
19425
+ }, [g, o, E, C, P]), useWindowSplitterResizeHandlerBehavior({
19405
19426
  disabled: o,
19406
19427
  handleId: S,
19407
- resizeHandler: P
19428
+ resizeHandler: C
19408
19429
  });
19409
19430
  const I = {
19410
19431
  cursor: getCursorStyle(g),
@@ -19428,9 +19449,9 @@ function PanelResizeHandle$1({
19428
19449
  } = d.current;
19429
19450
  k && k(!0);
19430
19451
  },
19431
- onMouseUp: C,
19432
- onTouchCancel: C,
19433
- onTouchEnd: C,
19452
+ onMouseUp: P,
19453
+ onTouchCancel: P,
19454
+ onTouchEnd: P,
19434
19455
  onTouchStart: (j) => {
19435
19456
  x(S, j.nativeEvent);
19436
19457
  const {
@@ -19636,17 +19657,17 @@ function JSONNestedNode(r) {
19636
19657
  ...r,
19637
19658
  circularCache: n,
19638
19659
  level: g + 1
19639
- }) : null, P = /* @__PURE__ */ React__default.createElement("span", v("nestedNodeItemType", S), b), A = c(h, i, P, a(i, o), p), C = [p, h, S, l];
19640
- return u ? /* @__PURE__ */ React__default.createElement("li", v("rootNode", ...C), /* @__PURE__ */ React__default.createElement("ul", v("rootNodeChildren", ...C), R)) : /* @__PURE__ */ React__default.createElement("li", v("nestedNode", ...C), l && /* @__PURE__ */ React__default.createElement(JSONArrow, {
19660
+ }) : null, C = /* @__PURE__ */ React__default.createElement("span", v("nestedNodeItemType", S), b), A = c(h, i, C, a(i, o), p), P = [p, h, S, l];
19661
+ return u ? /* @__PURE__ */ React__default.createElement("li", v("rootNode", ...P), /* @__PURE__ */ React__default.createElement("ul", v("rootNodeChildren", ...P), R)) : /* @__PURE__ */ React__default.createElement("li", v("nestedNode", ...P), l && /* @__PURE__ */ React__default.createElement(JSONArrow, {
19641
19662
  styling: v,
19642
19663
  nodeType: h,
19643
19664
  expanded: S,
19644
19665
  onClick: w
19645
- }), /* @__PURE__ */ React__default.createElement("label", _extends$1({}, v(["label", "nestedNodeLabel"], ...C), {
19666
+ }), /* @__PURE__ */ React__default.createElement("label", _extends$1({}, v(["label", "nestedNodeLabel"], ...P), {
19646
19667
  onClick: w
19647
- }), m(...C)), /* @__PURE__ */ React__default.createElement("span", _extends$1({}, v("nestedNodeItemString", ...C), {
19668
+ }), m(...P)), /* @__PURE__ */ React__default.createElement("span", _extends$1({}, v("nestedNodeItemString", ...P), {
19648
19669
  onClick: w
19649
- }), A), /* @__PURE__ */ React__default.createElement("ul", v("nestedNodeChildren", ...C), R));
19670
+ }), A), /* @__PURE__ */ React__default.createElement("ul", v("nestedNodeChildren", ...P), R));
19650
19671
  }
19651
19672
  function createItemString$2(r) {
19652
19673
  const n = Object.getOwnPropertyNames(r).length;
@@ -21828,9 +21849,9 @@ function createHybrid(r, n, o, a, i, l, c, u, d, p) {
21828
21849
  for (var E = arguments.length, w = Array(E), R = E; R--; )
21829
21850
  w[R] = arguments[R];
21830
21851
  if (b)
21831
- var P = getHolder(S), A = countHolders(w, P);
21852
+ var C = getHolder(S), A = countHolders(w, C);
21832
21853
  if (a && (w = composeArgs(w, a, i, b)), l && (w = composeArgsRight(w, l, c, b)), E -= A, b && E < p) {
21833
- var C = replaceHolders(w, P);
21854
+ var P = replaceHolders(w, C);
21834
21855
  return createRecurry(
21835
21856
  r,
21836
21857
  n,
@@ -21838,7 +21859,7 @@ function createHybrid(r, n, o, a, i, l, c, u, d, p) {
21838
21859
  S.placeholder,
21839
21860
  o,
21840
21861
  w,
21841
- C,
21862
+ P,
21842
21863
  u,
21843
21864
  d,
21844
21865
  p - E
@@ -22708,8 +22729,8 @@ var Prism$1 = function() {
22708
22729
  b.hasOwnProperty(E) || (S[E] = v[E]);
22709
22730
  }
22710
22731
  var R = x[g];
22711
- return x[g] = S, a.languages.DFS(a.languages, function(P, A) {
22712
- A === R && P != g && (this[P] = S);
22732
+ return x[g] = S, a.languages.DFS(a.languages, function(C, A) {
22733
+ A === R && C != g && (this[C] = S);
22713
22734
  }), S;
22714
22735
  },
22715
22736
  // Traverse a language definition with Depth First Search
@@ -22871,19 +22892,19 @@ var Prism$1 = function() {
22871
22892
  for (var R = 0; R < w.length; ++R) {
22872
22893
  if (S && S.cause == E + "," + R)
22873
22894
  return;
22874
- var P = w[R], A = P.inside, C = !!P.lookbehind, I = !!P.greedy, j = P.alias;
22875
- if (I && !P.pattern.global) {
22876
- var k = P.pattern.toString().match(/[imsuy]*$/)[0];
22877
- P.pattern = RegExp(P.pattern.source, k + "g");
22895
+ var C = w[R], A = C.inside, P = !!C.lookbehind, I = !!C.greedy, j = C.alias;
22896
+ if (I && !C.pattern.global) {
22897
+ var k = C.pattern.toString().match(/[imsuy]*$/)[0];
22898
+ C.pattern = RegExp(C.pattern.source, k + "g");
22878
22899
  }
22879
- for (var O = P.pattern || P, T = x.next, B = v; T !== h.tail && !(S && B >= S.reach); B += T.value.length, T = T.next) {
22900
+ for (var O = C.pattern || C, T = x.next, B = v; T !== h.tail && !(S && B >= S.reach); B += T.value.length, T = T.next) {
22880
22901
  var L = T.value;
22881
22902
  if (h.length > g.length)
22882
22903
  return;
22883
22904
  if (!(L instanceof i)) {
22884
22905
  var D = 1, W;
22885
22906
  if (I) {
22886
- if (W = l(O, B, g, C), !W || W.index >= g.length)
22907
+ if (W = l(O, B, g, P), !W || W.index >= g.length)
22887
22908
  break;
22888
22909
  var q = W.index, J = W.index + W[0].length, F = B;
22889
22910
  for (F += T.value.length; q >= F; )
@@ -22893,7 +22914,7 @@ var Prism$1 = function() {
22893
22914
  for (var V = T; V !== h.tail && (F < J || typeof V.value == "string"); V = V.next)
22894
22915
  D++, F += V.value.length;
22895
22916
  D--, L = g.slice(B, F), W.index -= B;
22896
- } else if (W = l(O, 0, L, C), !W)
22917
+ } else if (W = l(O, 0, L, P), !W)
22897
22918
  continue;
22898
22919
  var q = W.index, G = W[0], ee = L.slice(0, q), z = L.slice(q + G.length), U = B + L.length;
22899
22920
  S && U > S.reach && (S.reach = U);
@@ -24245,11 +24266,11 @@ prism.hooks.add("after-tokenize", function r(n) {
24245
24266
  }
24246
24267
  function c(v, S) {
24247
24268
  for (var E = 1, w = a; w < o.length; w++) {
24248
- var R = o[w], P = R.content;
24249
- if (R.type === "punctuation" && typeof P == "string") {
24250
- if (v.test(P))
24269
+ var R = o[w], C = R.content;
24270
+ if (R.type === "punctuation" && typeof C == "string") {
24271
+ if (v.test(C))
24251
24272
  E++;
24252
- else if (S.test(P) && (E--, E === 0))
24273
+ else if (S.test(C) && (E--, E === 0))
24253
24274
  return w;
24254
24275
  }
24255
24276
  }
@@ -24389,9 +24410,9 @@ prism.languages.sql = {
24389
24410
  for (var j = I.content, k; b.indexOf(k = u(E++, v)) !== -1; )
24390
24411
  ;
24391
24412
  return w[k] = j, k;
24392
- }).join(""), P = d(R, x, v), A = Object.keys(w);
24413
+ }).join(""), C = d(R, x, v), A = Object.keys(w);
24393
24414
  E = 0;
24394
- function C(I) {
24415
+ function P(I) {
24395
24416
  for (var j = 0; j < I.length; j++) {
24396
24417
  if (E >= A.length)
24397
24418
  return;
@@ -24406,17 +24427,17 @@ prism.languages.sql = {
24406
24427
  var L = T.substring(0, B), D = p(w[O]), W = T.substring(B + O.length), J = [];
24407
24428
  if (L && J.push(L), J.push(D), W) {
24408
24429
  var F = [W];
24409
- C(F), J.push.apply(J, F);
24430
+ P(F), J.push.apply(J, F);
24410
24431
  }
24411
24432
  typeof k == "string" ? (I.splice.apply(I, [j, 1].concat(J)), j += J.length - 1) : k.content = J;
24412
24433
  }
24413
24434
  } else {
24414
24435
  var V = k.content;
24415
- Array.isArray(V) ? C(V) : C([V]);
24436
+ Array.isArray(V) ? P(V) : P([V]);
24416
24437
  }
24417
24438
  }
24418
24439
  }
24419
- return C(P), new r.Token(v, P, "language-" + v, b);
24440
+ return P(C), new r.Token(v, C, "language-" + v, b);
24420
24441
  }
24421
24442
  var g = {
24422
24443
  javascript: !0,
@@ -24439,9 +24460,9 @@ prism.languages.sql = {
24439
24460
  continue;
24440
24461
  }
24441
24462
  if (w.type === "template-string") {
24442
- var P = R[1];
24443
- if (R.length === 3 && typeof P != "string" && P.type === "embedded-code") {
24444
- var A = h(P), C = P.alias, I = Array.isArray(C) ? C[0] : C, j = r.languages[I];
24463
+ var C = R[1];
24464
+ if (R.length === 3 && typeof C != "string" && C.type === "embedded-code") {
24465
+ var A = h(C), P = C.alias, I = Array.isArray(P) ? P[0] : P, j = r.languages[I];
24445
24466
  if (!j)
24446
24467
  continue;
24447
24468
  R[1] = m(A, j, I);
@@ -25894,7 +25915,7 @@ const prismDefaultProps = {
25894
25915
  radius: E,
25895
25916
  getPrismTheme: w,
25896
25917
  variant: R
25897
- } = o, P = __objRest$2(o, [
25918
+ } = o, C = __objRest$2(o, [
25898
25919
  "className",
25899
25920
  "children",
25900
25921
  "language",
@@ -25912,17 +25933,17 @@ const prismDefaultProps = {
25912
25933
  "radius",
25913
25934
  "getPrismTheme",
25914
25935
  "variant"
25915
- ]), A = v && typeof i == "string" ? i.trim() : i, C = A.split(`
25936
+ ]), A = v && typeof i == "string" ? i.trim() : i, P = A.split(`
25916
25937
  `).length.toString().length, I = useMantineTheme(), j = useClipboard(), k = x || I.colorScheme, { classes: O, cx: T } = useStyles$2({
25917
25938
  colorScheme: k,
25918
25939
  native: b !== ScrollArea,
25919
- maxLineSize: C,
25940
+ maxLineSize: P,
25920
25941
  radius: E
25921
25942
  }, { name: "Prism", classNames: u, styles: d, unstyled: S, variant: R });
25922
25943
  return /* @__PURE__ */ React__default.createElement(Box, __spreadProps$2(__spreadValues$2({
25923
25944
  className: T(O.root, a),
25924
25945
  ref: n
25925
- }, P), {
25946
+ }, C), {
25926
25947
  translate: "no"
25927
25948
  }), !c && /* @__PURE__ */ React__default.createElement(Tooltip, {
25928
25949
  label: j.copied ? m : p,
@@ -26150,10 +26171,10 @@ var diffMatchPatch = { exports: {} };
26150
26171
  ];
26151
26172
  var b = this.diff_halfMatch_(l, c);
26152
26173
  if (b) {
26153
- var x = b[0], v = b[1], S = b[2], E = b[3], w = b[4], R = this.diff_main(x, S, u, d), P = this.diff_main(v, E, u, d);
26174
+ var x = b[0], v = b[1], S = b[2], E = b[3], w = b[4], R = this.diff_main(x, S, u, d), C = this.diff_main(v, E, u, d);
26154
26175
  return R.concat(
26155
26176
  [new n.Diff(i, w)],
26156
- P
26177
+ C
26157
26178
  );
26158
26179
  }
26159
26180
  return u && l.length > 100 && c.length > 100 ? this.diff_lineMode_(l, c, d) : this.diff_bisect_(l, c, d);
@@ -26190,10 +26211,10 @@ var diffMatchPatch = { exports: {} };
26190
26211
  for (var d = l.length, p = c.length, m = Math.ceil((d + p) / 2), g = m, h = 2 * m, b = new Array(h), x = new Array(h), v = 0; v < h; v++)
26191
26212
  b[v] = -1, x[v] = -1;
26192
26213
  b[g + 1] = 0, x[g + 1] = 0;
26193
- for (var S = d - p, E = S % 2 != 0, w = 0, R = 0, P = 0, A = 0, C = 0; C < m && !((/* @__PURE__ */ new Date()).getTime() > u); C++) {
26194
- for (var I = -C + w; I <= C - R; I += 2) {
26214
+ for (var S = d - p, E = S % 2 != 0, w = 0, R = 0, C = 0, A = 0, P = 0; P < m && !((/* @__PURE__ */ new Date()).getTime() > u); P++) {
26215
+ for (var I = -P + w; I <= P - R; I += 2) {
26195
26216
  var j = g + I, k;
26196
- I == -C || I != C && b[j - 1] < b[j + 1] ? k = b[j + 1] : k = b[j - 1] + 1;
26217
+ I == -P || I != P && b[j - 1] < b[j + 1] ? k = b[j + 1] : k = b[j - 1] + 1;
26197
26218
  for (var O = k - I; k < d && O < p && l.charAt(k) == c.charAt(O); )
26198
26219
  k++, O++;
26199
26220
  if (b[j] = k, k > d)
@@ -26209,15 +26230,15 @@ var diffMatchPatch = { exports: {} };
26209
26230
  }
26210
26231
  }
26211
26232
  }
26212
- for (var L = -C + P; L <= C - A; L += 2) {
26233
+ for (var L = -P + C; L <= P - A; L += 2) {
26213
26234
  var T = g + L, B;
26214
- L == -C || L != C && x[T - 1] < x[T + 1] ? B = x[T + 1] : B = x[T - 1] + 1;
26235
+ L == -P || L != P && x[T - 1] < x[T + 1] ? B = x[T + 1] : B = x[T - 1] + 1;
26215
26236
  for (var D = B - L; B < d && D < p && l.charAt(d - B - 1) == c.charAt(p - D - 1); )
26216
26237
  B++, D++;
26217
26238
  if (x[T] = B, B > d)
26218
26239
  A += 2;
26219
26240
  else if (D > p)
26220
- P += 2;
26241
+ C += 2;
26221
26242
  else if (!E) {
26222
26243
  var j = g + S - L;
26223
26244
  if (j >= 0 && j < h && b[j] != -1) {
@@ -26290,16 +26311,16 @@ var diffMatchPatch = { exports: {} };
26290
26311
  if (u.length < 4 || d.length * 2 < u.length)
26291
26312
  return null;
26292
26313
  var p = this;
26293
- function m(R, P, A) {
26294
- for (var C = R.substring(A, A + Math.floor(R.length / 4)), I = -1, j = "", k, O, T, B; (I = P.indexOf(C, I + 1)) != -1; ) {
26314
+ function m(R, C, A) {
26315
+ for (var P = R.substring(A, A + Math.floor(R.length / 4)), I = -1, j = "", k, O, T, B; (I = C.indexOf(P, I + 1)) != -1; ) {
26295
26316
  var L = p.diff_commonPrefix(
26296
26317
  R.substring(A),
26297
- P.substring(I)
26318
+ C.substring(I)
26298
26319
  ), D = p.diff_commonSuffix(
26299
26320
  R.substring(0, A),
26300
- P.substring(0, I)
26321
+ C.substring(0, I)
26301
26322
  );
26302
- j.length < D + L && (j = P.substring(I - D, I) + P.substring(I, I + L), k = R.substring(0, A - D), O = R.substring(A + L), T = P.substring(0, I - D), B = P.substring(I + L));
26323
+ j.length < D + L && (j = C.substring(I - D, I) + C.substring(I, I + L), k = R.substring(0, A - D), O = R.substring(A + L), T = C.substring(0, I - D), B = C.substring(I + L));
26303
26324
  }
26304
26325
  return j.length * 2 >= R.length ? [
26305
26326
  k,
@@ -26352,8 +26373,8 @@ var diffMatchPatch = { exports: {} };
26352
26373
  function c(w, R) {
26353
26374
  if (!w || !R)
26354
26375
  return 6;
26355
- var P = w.charAt(w.length - 1), A = R.charAt(0), C = P.match(n.nonAlphaNumericRegex_), I = A.match(n.nonAlphaNumericRegex_), j = C && P.match(n.whitespaceRegex_), k = I && A.match(n.whitespaceRegex_), O = j && P.match(n.linebreakRegex_), T = k && A.match(n.linebreakRegex_), B = O && w.match(n.blanklineEndRegex_), L = T && R.match(n.blanklineStartRegex_);
26356
- return B || L ? 5 : O || T ? 4 : C && !j && k ? 3 : j || k ? 2 : C || I ? 1 : 0;
26376
+ var C = w.charAt(w.length - 1), A = R.charAt(0), P = C.match(n.nonAlphaNumericRegex_), I = A.match(n.nonAlphaNumericRegex_), j = P && C.match(n.whitespaceRegex_), k = I && A.match(n.whitespaceRegex_), O = j && C.match(n.linebreakRegex_), T = k && A.match(n.linebreakRegex_), B = O && w.match(n.blanklineEndRegex_), L = T && R.match(n.blanklineStartRegex_);
26377
+ return B || L ? 5 : O || T ? 4 : P && !j && k ? 3 : j || k ? 2 : P || I ? 1 : 0;
26357
26378
  }
26358
26379
  for (var u = 1; u < l.length - 1; ) {
26359
26380
  if (l[u - 1][0] == i && l[u + 1][0] == i) {
@@ -26515,14 +26536,14 @@ var diffMatchPatch = { exports: {} };
26515
26536
  for (x = 0, v = S; x < v; )
26516
26537
  m(w, u + v) <= g ? x = v : S = v, v = Math.floor((S - x) / 2 + x);
26517
26538
  S = v;
26518
- var R = Math.max(1, u - v + 1), P = Math.min(u + v, l.length) + c.length, A = Array(P + 2);
26519
- A[P + 1] = (1 << w) - 1;
26520
- for (var C = P; C >= R; C--) {
26521
- var I = d[l.charAt(C - 1)];
26522
- if (w === 0 ? A[C] = (A[C + 1] << 1 | 1) & I : A[C] = (A[C + 1] << 1 | 1) & I | ((E[C + 1] | E[C]) << 1 | 1) | E[C + 1], A[C] & b) {
26523
- var j = m(w, C - 1);
26539
+ var R = Math.max(1, u - v + 1), C = Math.min(u + v, l.length) + c.length, A = Array(C + 2);
26540
+ A[C + 1] = (1 << w) - 1;
26541
+ for (var P = C; P >= R; P--) {
26542
+ var I = d[l.charAt(P - 1)];
26543
+ if (w === 0 ? A[P] = (A[P + 1] << 1 | 1) & I : A[P] = (A[P + 1] << 1 | 1) & I | ((E[P + 1] | E[P]) << 1 | 1) | E[P + 1], A[P] & b) {
26544
+ var j = m(w, P - 1);
26524
26545
  if (j <= g)
26525
- if (g = j, h = C - 1, h > u)
26546
+ if (g = j, h = P - 1, h > u)
26526
26547
  R = Math.max(1, 2 * u - h);
26527
26548
  else
26528
26549
  break;
@@ -26637,11 +26658,11 @@ var diffMatchPatch = { exports: {} };
26637
26658
  else {
26638
26659
  this.diff_cleanupSemanticLossless(S);
26639
26660
  for (var E = 0, w, R = 0; R < l[m].diffs.length; R++) {
26640
- var P = l[m].diffs[R];
26641
- P[0] !== i && (w = this.diff_xIndex(S, E)), P[0] === a ? c = c.substring(0, b + w) + P[1] + c.substring(b + w) : P[0] === o && (c = c.substring(0, b + w) + c.substring(b + this.diff_xIndex(
26661
+ var C = l[m].diffs[R];
26662
+ C[0] !== i && (w = this.diff_xIndex(S, E)), C[0] === a ? c = c.substring(0, b + w) + C[1] + c.substring(b + w) : C[0] === o && (c = c.substring(0, b + w) + c.substring(b + this.diff_xIndex(
26642
26663
  S,
26643
- E + P[1].length
26644
- ))), P[0] !== o && (E += P[1].length);
26664
+ E + C[1].length
26665
+ ))), C[0] !== o && (E += C[1].length);
26645
26666
  }
26646
26667
  }
26647
26668
  }
@@ -27343,8 +27364,8 @@ function requireTemplates() {
27343
27364
  if (v)
27344
27365
  b.push(l(v));
27345
27366
  else if (E) {
27346
- const P = b.join("");
27347
- b = [], h.push(g.length === 0 ? P : d(p, g)(P)), g.push({ inverse: S, styles: u(E) });
27367
+ const C = b.join("");
27368
+ b = [], h.push(g.length === 0 ? C : d(p, g)(C)), g.push({ inverse: S, styles: u(E) });
27348
27369
  } else if (w) {
27349
27370
  if (g.length === 0)
27350
27371
  throw new Error("Found extraneous } in Chalk template literal");
@@ -27907,19 +27928,19 @@ const diffFilter$2 = function r(n) {
27907
27928
  n.options && n.options.arrays && n.options.arrays.detectMove === !1 && (w = !1);
27908
27929
  let R = !1;
27909
27930
  n.options && n.options.arrays && n.options.arrays.includeValueOnMove && (R = !0);
27910
- const P = E.length;
27931
+ const C = E.length;
27911
27932
  for (l = a; l < g - i; l++) {
27912
27933
  const A = arrayIndexOf(S.indices2, l - a);
27913
27934
  if (A < 0) {
27914
- let C = !1;
27915
- if (w && P > 0) {
27916
- for (let I = 0; I < P; I++)
27935
+ let P = !1;
27936
+ if (w && C > 0) {
27937
+ for (let I = 0; I < C; I++)
27917
27938
  if (c = E[I], matchItems(x, v, c - a, l - a, o)) {
27918
- b[`_${c}`].splice(1, 2, l, ARRAY_MOVE), R || (b[`_${c}`][0] = ""), u = l, h = new DiffContext(n.left[c], n.right[u]), n.push(h, u), E.splice(I, 1), C = !0;
27939
+ b[`_${c}`].splice(1, 2, l, ARRAY_MOVE), R || (b[`_${c}`][0] = ""), u = l, h = new DiffContext(n.left[c], n.right[u]), n.push(h, u), E.splice(I, 1), P = !0;
27919
27940
  break;
27920
27941
  }
27921
27942
  }
27922
- C || (b[l] = [p[l]]);
27943
+ P || (b[l] = [p[l]]);
27923
27944
  } else
27924
27945
  c = S.indices1[A] + a, u = S.indices2[A] + a, h = new DiffContext(n.left[c], n.right[u]), n.push(h, u);
27925
27946
  }
@@ -28354,27 +28375,27 @@ var require_react_is_production_min = __commonJS({
28354
28375
  "node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js"(r) {
28355
28376
  init_react_shim();
28356
28377
  var n = typeof Symbol == "function" && Symbol.for, o = n ? Symbol.for("react.element") : 60103, a = n ? Symbol.for("react.portal") : 60106, i = n ? Symbol.for("react.fragment") : 60107, l = n ? Symbol.for("react.strict_mode") : 60108, c = n ? Symbol.for("react.profiler") : 60114, u = n ? Symbol.for("react.provider") : 60109, d = n ? Symbol.for("react.context") : 60110, p = n ? Symbol.for("react.async_mode") : 60111, m = n ? Symbol.for("react.concurrent_mode") : 60111, g = n ? Symbol.for("react.forward_ref") : 60112, h = n ? Symbol.for("react.suspense") : 60113, b = n ? Symbol.for("react.suspense_list") : 60120, x = n ? Symbol.for("react.memo") : 60115, v = n ? Symbol.for("react.lazy") : 60116, S = n ? Symbol.for("react.block") : 60121, E = n ? Symbol.for("react.fundamental") : 60117, w = n ? Symbol.for("react.responder") : 60118, R = n ? Symbol.for("react.scope") : 60119;
28357
- function P(C) {
28358
- if (typeof C == "object" && C !== null) {
28359
- var I = C.$$typeof;
28378
+ function C(P) {
28379
+ if (typeof P == "object" && P !== null) {
28380
+ var I = P.$$typeof;
28360
28381
  switch (I) {
28361
28382
  case o:
28362
- switch (C = C.type, C) {
28383
+ switch (P = P.type, P) {
28363
28384
  case p:
28364
28385
  case m:
28365
28386
  case i:
28366
28387
  case c:
28367
28388
  case l:
28368
28389
  case h:
28369
- return C;
28390
+ return P;
28370
28391
  default:
28371
- switch (C = C && C.$$typeof, C) {
28392
+ switch (P = P && P.$$typeof, P) {
28372
28393
  case d:
28373
28394
  case g:
28374
28395
  case v:
28375
28396
  case x:
28376
28397
  case u:
28377
- return C;
28398
+ return P;
28378
28399
  default:
28379
28400
  return I;
28380
28401
  }
@@ -28384,42 +28405,42 @@ var require_react_is_production_min = __commonJS({
28384
28405
  }
28385
28406
  }
28386
28407
  }
28387
- function A(C) {
28388
- return P(C) === m;
28389
- }
28390
- r.AsyncMode = p, r.ConcurrentMode = m, r.ContextConsumer = d, r.ContextProvider = u, r.Element = o, r.ForwardRef = g, r.Fragment = i, r.Lazy = v, r.Memo = x, r.Portal = a, r.Profiler = c, r.StrictMode = l, r.Suspense = h, r.isAsyncMode = function(C) {
28391
- return A(C) || P(C) === p;
28392
- }, r.isConcurrentMode = A, r.isContextConsumer = function(C) {
28393
- return P(C) === d;
28394
- }, r.isContextProvider = function(C) {
28395
- return P(C) === u;
28396
- }, r.isElement = function(C) {
28397
- return typeof C == "object" && C !== null && C.$$typeof === o;
28398
- }, r.isForwardRef = function(C) {
28399
- return P(C) === g;
28400
- }, r.isFragment = function(C) {
28401
- return P(C) === i;
28402
- }, r.isLazy = function(C) {
28403
- return P(C) === v;
28404
- }, r.isMemo = function(C) {
28405
- return P(C) === x;
28406
- }, r.isPortal = function(C) {
28407
- return P(C) === a;
28408
- }, r.isProfiler = function(C) {
28409
- return P(C) === c;
28410
- }, r.isStrictMode = function(C) {
28411
- return P(C) === l;
28412
- }, r.isSuspense = function(C) {
28413
- return P(C) === h;
28414
- }, r.isValidElementType = function(C) {
28415
- return typeof C == "string" || typeof C == "function" || C === i || C === m || C === c || C === l || C === h || C === b || typeof C == "object" && C !== null && (C.$$typeof === v || C.$$typeof === x || C.$$typeof === u || C.$$typeof === d || C.$$typeof === g || C.$$typeof === E || C.$$typeof === w || C.$$typeof === R || C.$$typeof === S);
28416
- }, r.typeOf = P;
28408
+ function A(P) {
28409
+ return C(P) === m;
28410
+ }
28411
+ r.AsyncMode = p, r.ConcurrentMode = m, r.ContextConsumer = d, r.ContextProvider = u, r.Element = o, r.ForwardRef = g, r.Fragment = i, r.Lazy = v, r.Memo = x, r.Portal = a, r.Profiler = c, r.StrictMode = l, r.Suspense = h, r.isAsyncMode = function(P) {
28412
+ return A(P) || C(P) === p;
28413
+ }, r.isConcurrentMode = A, r.isContextConsumer = function(P) {
28414
+ return C(P) === d;
28415
+ }, r.isContextProvider = function(P) {
28416
+ return C(P) === u;
28417
+ }, r.isElement = function(P) {
28418
+ return typeof P == "object" && P !== null && P.$$typeof === o;
28419
+ }, r.isForwardRef = function(P) {
28420
+ return C(P) === g;
28421
+ }, r.isFragment = function(P) {
28422
+ return C(P) === i;
28423
+ }, r.isLazy = function(P) {
28424
+ return C(P) === v;
28425
+ }, r.isMemo = function(P) {
28426
+ return C(P) === x;
28427
+ }, r.isPortal = function(P) {
28428
+ return C(P) === a;
28429
+ }, r.isProfiler = function(P) {
28430
+ return C(P) === c;
28431
+ }, r.isStrictMode = function(P) {
28432
+ return C(P) === l;
28433
+ }, r.isSuspense = function(P) {
28434
+ return C(P) === h;
28435
+ }, r.isValidElementType = function(P) {
28436
+ return typeof P == "string" || typeof P == "function" || P === i || P === m || P === c || P === l || P === h || P === b || typeof P == "object" && P !== null && (P.$$typeof === v || P.$$typeof === x || P.$$typeof === u || P.$$typeof === d || P.$$typeof === g || P.$$typeof === E || P.$$typeof === w || P.$$typeof === R || P.$$typeof === S);
28437
+ }, r.typeOf = C;
28417
28438
  }
28418
28439
  }), require_react_is_development = __commonJS({
28419
28440
  "node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(r) {
28420
28441
  init_react_shim(), process.env.NODE_ENV !== "production" && function() {
28421
28442
  var n = typeof Symbol == "function" && Symbol.for, o = n ? Symbol.for("react.element") : 60103, a = n ? Symbol.for("react.portal") : 60106, i = n ? Symbol.for("react.fragment") : 60107, l = n ? Symbol.for("react.strict_mode") : 60108, c = n ? Symbol.for("react.profiler") : 60114, u = n ? Symbol.for("react.provider") : 60109, d = n ? Symbol.for("react.context") : 60110, p = n ? Symbol.for("react.async_mode") : 60111, m = n ? Symbol.for("react.concurrent_mode") : 60111, g = n ? Symbol.for("react.forward_ref") : 60112, h = n ? Symbol.for("react.suspense") : 60113, b = n ? Symbol.for("react.suspense_list") : 60120, x = n ? Symbol.for("react.memo") : 60115, v = n ? Symbol.for("react.lazy") : 60116, S = n ? Symbol.for("react.block") : 60121, E = n ? Symbol.for("react.fundamental") : 60117, w = n ? Symbol.for("react.responder") : 60118, R = n ? Symbol.for("react.scope") : 60119;
28422
- function P(Z) {
28443
+ function C(Z) {
28423
28444
  return typeof Z == "string" || typeof Z == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
28424
28445
  Z === i || Z === m || Z === c || Z === l || Z === h || Z === b || typeof Z == "object" && Z !== null && (Z.$$typeof === v || Z.$$typeof === x || Z.$$typeof === u || Z.$$typeof === d || Z.$$typeof === g || Z.$$typeof === E || Z.$$typeof === w || Z.$$typeof === R || Z.$$typeof === S);
28425
28446
  }
@@ -28455,7 +28476,7 @@ var require_react_is_production_min = __commonJS({
28455
28476
  }
28456
28477
  }
28457
28478
  }
28458
- var C = p, I = m, j = d, k = u, O = o, T = g, B = i, L = v, D = x, W = a, J = c, F = l, V = h, q = !1;
28479
+ var P = p, I = m, j = d, k = u, O = o, T = g, B = i, L = v, D = x, W = a, J = c, F = l, V = h, q = !1;
28459
28480
  function G(Z) {
28460
28481
  return q || (q = !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.")), ee(Z) || A(Z) === p;
28461
28482
  }
@@ -28495,7 +28516,7 @@ var require_react_is_production_min = __commonJS({
28495
28516
  function K(Z) {
28496
28517
  return A(Z) === h;
28497
28518
  }
28498
- r.AsyncMode = C, r.ConcurrentMode = I, r.ContextConsumer = j, r.ContextProvider = k, r.Element = O, r.ForwardRef = T, r.Fragment = B, r.Lazy = L, r.Memo = D, r.Portal = W, r.Profiler = J, r.StrictMode = F, r.Suspense = V, r.isAsyncMode = G, r.isConcurrentMode = ee, r.isContextConsumer = z, r.isContextProvider = U, r.isElement = te, r.isForwardRef = _, r.isFragment = Q, r.isLazy = ne, r.isMemo = re, r.isPortal = $, r.isProfiler = ae, r.isStrictMode = se, r.isSuspense = K, r.isValidElementType = P, r.typeOf = A;
28519
+ r.AsyncMode = P, r.ConcurrentMode = I, r.ContextConsumer = j, r.ContextProvider = k, r.Element = O, r.ForwardRef = T, r.Fragment = B, r.Lazy = L, r.Memo = D, r.Portal = W, r.Profiler = J, r.StrictMode = F, r.Suspense = V, r.isAsyncMode = G, r.isConcurrentMode = ee, r.isContextConsumer = z, r.isContextProvider = U, r.isElement = te, r.isForwardRef = _, r.isFragment = Q, r.isLazy = ne, r.isMemo = re, r.isPortal = $, r.isProfiler = ae, r.isStrictMode = se, r.isSuspense = K, r.isValidElementType = C, r.typeOf = A;
28499
28520
  }();
28500
28521
  }
28501
28522
  }), require_react_is = __commonJS({
@@ -28635,9 +28656,9 @@ var require_react_is_production_min = __commonJS({
28635
28656
  object: R("object"),
28636
28657
  string: R("string"),
28637
28658
  symbol: R("symbol"),
28638
- any: P(),
28659
+ any: C(),
28639
28660
  arrayOf: A,
28640
- element: C(),
28661
+ element: P(),
28641
28662
  elementType: I(),
28642
28663
  instanceOf: j,
28643
28664
  node: B(),
@@ -28691,7 +28712,7 @@ var require_react_is_production_min = __commonJS({
28691
28712
  }
28692
28713
  return w(U);
28693
28714
  }
28694
- function P() {
28715
+ function C() {
28695
28716
  return w(d);
28696
28717
  }
28697
28718
  function A(z) {
@@ -28712,7 +28733,7 @@ var require_react_is_production_min = __commonJS({
28712
28733
  }
28713
28734
  return w(U);
28714
28735
  }
28715
- function C() {
28736
+ function P() {
28716
28737
  function z(U, te, _, Q, ne) {
28717
28738
  var re = U[te];
28718
28739
  if (!p(re)) {
@@ -30009,12 +30030,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
30009
30030
  r.embers = n(w);
30010
30031
  var R = require_flat();
30011
30032
  r.flat = n(R);
30012
- var P = require_google();
30013
- r.google = n(P);
30033
+ var C = require_google();
30034
+ r.google = n(C);
30014
30035
  var A = require_grayscale();
30015
30036
  r.grayscale = n(A);
30016
- var C = require_greenscreen();
30017
- r.greenscreen = n(C);
30037
+ var P = require_greenscreen();
30038
+ r.greenscreen = n(P);
30018
30039
  var I = require_harmonic();
30019
30040
  r.harmonic = n(I);
30020
30041
  var j = require_hopscotch();
@@ -30253,8 +30274,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
30253
30274
  var g = /^#([a-f0-9]{3,4})$/i, h = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i, b = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, x = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, v = /^(\w+)$/, S = [0, 0, 0, 1], E, w, R;
30254
30275
  if (E = m.match(h)) {
30255
30276
  for (R = E[2], E = E[1], w = 0; w < 3; w++) {
30256
- var P = w * 2;
30257
- S[w] = parseInt(E.slice(P, P + 2), 16);
30277
+ var C = w * 2;
30278
+ S[w] = parseInt(E.slice(C, C + 2), 16);
30258
30279
  }
30259
30280
  R && (S[3] = parseInt(R, 16) / 255);
30260
30281
  } else if (E = m.match(g)) {
@@ -30509,10 +30530,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
30509
30530
  var g = m[0] / 255, h = m[1] / 255, b = m[2] / 255, x = Math.min(g, h, b), v = Math.max(g, h, b), S = v - x, E, w, R;
30510
30531
  return v === x ? E = 0 : g === v ? E = (h - b) / S : h === v ? E = 2 + (b - g) / S : b === v && (E = 4 + (g - h) / S), E = Math.min(E * 60, 360), E < 0 && (E += 360), R = (x + v) / 2, v === x ? w = 0 : R <= 0.5 ? w = S / (v + x) : w = S / (2 - v - x), [E, w * 100, R * 100];
30511
30532
  }, l.rgb.hsv = function(m) {
30512
- var g, h, b, x, v, S = m[0] / 255, E = m[1] / 255, w = m[2] / 255, R = Math.max(S, E, w), P = R - Math.min(S, E, w), A = function(C) {
30513
- return (R - C) / 6 / P + 1 / 2;
30533
+ var g, h, b, x, v, S = m[0] / 255, E = m[1] / 255, w = m[2] / 255, R = Math.max(S, E, w), C = R - Math.min(S, E, w), A = function(P) {
30534
+ return (R - P) / 6 / C + 1 / 2;
30514
30535
  };
30515
- return P === 0 ? x = v = 0 : (v = P / R, g = A(S), h = A(E), b = A(w), S === R ? x = b - h : E === R ? x = 1 / 3 + g - b : w === R && (x = 2 / 3 + h - g), x < 0 ? x += 1 : x > 1 && (x -= 1)), [
30536
+ return C === 0 ? x = v = 0 : (v = C / R, g = A(S), h = A(E), b = A(w), S === R ? x = b - h : E === R ? x = 1 / 3 + g - b : w === R && (x = 2 / 3 + h - g), x < 0 ? x += 1 : x > 1 && (x -= 1)), [
30516
30537
  x * 360,
30517
30538
  v * 100,
30518
30539
  R * 100
@@ -30581,30 +30602,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
30581
30602
  }, l.hwb.rgb = function(m) {
30582
30603
  var g = m[0] / 360, h = m[1] / 100, b = m[2] / 100, x = h + b, v, S, E, w;
30583
30604
  x > 1 && (h /= x, b /= x), v = Math.floor(6 * g), S = 1 - b, E = 6 * g - v, v & 1 && (E = 1 - E), w = h + E * (S - h);
30584
- var R, P, A;
30605
+ var R, C, A;
30585
30606
  switch (v) {
30586
30607
  default:
30587
30608
  case 6:
30588
30609
  case 0:
30589
- R = S, P = w, A = h;
30610
+ R = S, C = w, A = h;
30590
30611
  break;
30591
30612
  case 1:
30592
- R = w, P = S, A = h;
30613
+ R = w, C = S, A = h;
30593
30614
  break;
30594
30615
  case 2:
30595
- R = h, P = S, A = w;
30616
+ R = h, C = S, A = w;
30596
30617
  break;
30597
30618
  case 3:
30598
- R = h, P = w, A = S;
30619
+ R = h, C = w, A = S;
30599
30620
  break;
30600
30621
  case 4:
30601
- R = w, P = h, A = S;
30622
+ R = w, C = h, A = S;
30602
30623
  break;
30603
30624
  case 5:
30604
- R = S, P = h, A = w;
30625
+ R = S, C = h, A = w;
30605
30626
  break;
30606
30627
  }
30607
- return [R * 255, P * 255, A * 255];
30628
+ return [R * 255, C * 255, A * 255];
30608
30629
  }, l.cmyk.rgb = function(m) {
30609
30630
  var g = m[0] / 100, h = m[1] / 100, b = m[2] / 100, x = m[3] / 100, v, S, E;
30610
30631
  return v = 1 - Math.min(1, g * (1 - x) + x), S = 1 - Math.min(1, h * (1 - x) + x), E = 1 - Math.min(1, b * (1 - x) + x), [v * 255, S * 255, E * 255];
@@ -30843,8 +30864,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
30843
30864
  this.model = R.model, w = a[this.model].channels, this.color = R.value.slice(0, w), this.valpha = typeof R.value[w] == "number" ? R.value[w] : 1;
30844
30865
  } else if (v.length) {
30845
30866
  this.model = S || "rgb", w = a[this.model].channels;
30846
- var P = i.call(v, 0, w);
30847
- this.color = x(P, w), this.valpha = typeof v[w] == "number" ? v[w] : 1;
30867
+ var C = i.call(v, 0, w);
30868
+ this.color = x(C, w), this.valpha = typeof v[w] == "number" ? v[w] : 1;
30848
30869
  } else if (typeof v == "number")
30849
30870
  v &= 16777215, this.model = "rgb", this.color = [
30850
30871
  v >> 16 & 255,
@@ -30855,10 +30876,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
30855
30876
  this.valpha = 1;
30856
30877
  var A = Object.keys(v);
30857
30878
  "alpha" in v && (A.splice(A.indexOf("alpha"), 1), this.valpha = typeof v.alpha == "number" ? v.alpha : 0);
30858
- var C = A.sort().join("");
30859
- if (!(C in c))
30879
+ var P = A.sort().join("");
30880
+ if (!(P in c))
30860
30881
  throw new Error("Unable to parse color from object: " + JSON.stringify(v));
30861
- this.model = c[C];
30882
+ this.model = c[P];
30862
30883
  var I = a[this.model].labels, j = [];
30863
30884
  for (E = 0; E < I.length; E++)
30864
30885
  j.push(v[I[E]]);
@@ -31014,11 +31035,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
31014
31035
  mix: function(v, S) {
31015
31036
  if (!v || !v.rgb)
31016
31037
  throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof v);
31017
- var E = v.rgb(), w = this.rgb(), R = S === void 0 ? 0.5 : S, P = 2 * R - 1, A = E.alpha() - w.alpha(), C = ((P * A === -1 ? P : (P + A) / (1 + P * A)) + 1) / 2, I = 1 - C;
31038
+ var E = v.rgb(), w = this.rgb(), R = S === void 0 ? 0.5 : S, C = 2 * R - 1, A = E.alpha() - w.alpha(), P = ((C * A === -1 ? C : (C + A) / (1 + C * A)) + 1) / 2, I = 1 - P;
31018
31039
  return d.rgb(
31019
- C * E.red() + I * w.red(),
31020
- C * E.green() + I * w.green(),
31021
- C * E.blue() + I * w.blue(),
31040
+ P * E.red() + I * w.red(),
31041
+ P * E.green() + I * w.green(),
31042
+ P * E.blue() + I * w.blue(),
31022
31043
  E.alpha() * R + w.alpha() * (1 - R)
31023
31044
  );
31024
31045
  }
@@ -31081,7 +31102,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
31081
31102
  ["partial", p],
31082
31103
  ["partialRight", m],
31083
31104
  ["rearg", h]
31084
- ], R = "[object Function]", P = "[object GeneratorFunction]", A = "[object Symbol]", C = /[\\^$.*+?()[\]{}|]/g, I = /^\s+|\s+$/g, j = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, k = /\{\n\/\* \[wrapped with (.+)\] \*/, O = /,? & /, T = /^[-+]0x[0-9a-f]+$/i, B = /^0b[01]+$/i, L = /^\[object .+?Constructor\]$/, D = /^0o[0-7]+$/i, W = /^(?:0|[1-9]\d*)$/, J = parseInt, F = typeof global == "object" && global && global.Object === Object && global, V = typeof self == "object" && self && self.Object === Object && self, q = F || V || Function("return this")();
31105
+ ], R = "[object Function]", C = "[object GeneratorFunction]", A = "[object Symbol]", P = /[\\^$.*+?()[\]{}|]/g, I = /^\s+|\s+$/g, j = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, k = /\{\n\/\* \[wrapped with (.+)\] \*/, O = /,? & /, T = /^[-+]0x[0-9a-f]+$/i, B = /^0b[01]+$/i, L = /^\[object .+?Constructor\]$/, D = /^0o[0-7]+$/i, W = /^(?:0|[1-9]\d*)$/, J = parseInt, F = typeof global == "object" && global && global.Object === Object && global, V = typeof self == "object" && self && self.Object === Object && self, q = F || V || Function("return this")();
31085
31106
  function G(N, M, Y) {
31086
31107
  switch (Y.length) {
31087
31108
  case 0:
@@ -31149,7 +31170,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
31149
31170
  var N = /[^.]+$/.exec(K && K.keys && K.keys.IE_PROTO || "");
31150
31171
  return N ? "Symbol(src)_1." + N : "";
31151
31172
  }(), le = ae.toString, fe = se.hasOwnProperty, Te = se.toString, be = RegExp(
31152
- "^" + le.call(fe).replace(C, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
31173
+ "^" + le.call(fe).replace(P, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
31153
31174
  ), Ze = Object.create, Ne = Math.max, ge = Math.min, Ge = function() {
31154
31175
  var N = We(Object, "defineProperty"), M = We.name;
31155
31176
  return M && M.length > 2 ? N : void 0;
@@ -31380,7 +31401,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
31380
31401
  }
31381
31402
  function st(N) {
31382
31403
  var M = je(N) ? Te.call(N) : "";
31383
- return M == R || M == P;
31404
+ return M == R || M == C;
31384
31405
  }
31385
31406
  function je(N) {
31386
31407
  var M = typeof N;
@@ -33677,12 +33698,8 @@ var DevTools = process.env.NODE_ENV !== "production" ? InternalDevTools : () =>
33677
33698
  function getDNDSupport() {
33678
33699
  return new URLSearchParams(window.location.search).has("dnd");
33679
33700
  }
33680
- function getOutlinePlugin() {
33681
- return new URLSearchParams(window.location.search).has("outline");
33682
- }
33683
33701
  const FEATURE_TOGGLES = {
33684
- dnd: getDNDSupport(),
33685
- arborist: getOutlinePlugin()
33702
+ dnd: getDNDSupport()
33686
33703
  }, getParentNodeIds = (r, n) => {
33687
33704
  const o = [];
33688
33705
  let a = find(r, { _id: n }), i = get$1(a, "_parent", "");
@@ -33880,24 +33897,6 @@ const TabletIcon = ({ landscape: r = !1 }) => /* @__PURE__ */ jsxRuntimeExports.
33880
33897
  ] }),
33881
33898
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex h-full items-center space-x-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ClearCanvas, {}) })
33882
33899
  ] });
33883
- }, AddBlocksDialog = () => {
33884
- const { t: r } = useTranslation(), [n, o] = useState$1(""), [a, i] = useState$1(!1);
33885
- return useChaiBuilderMsgListener(({ name: l, data: c = void 0 }) => {
33886
- l === CHAI_BUILDER_EVENTS.OPEN_ADD_BLOCK && (o(c == null ? void 0 : c._id), i(!0)), l === CHAI_BUILDER_EVENTS.CLOSE_ADD_BLOCK && (o(""), i(!1));
33887
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialog, { open: a, onOpenChange: () => a ? i(!1) : "", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogContent, { className: "max-w-5xl overflow-hidden", children: [
33888
- /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogHeader, { className: "flex flex-row items-center justify-between", children: [
33889
- /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialogTitle, { children: r("add_block") }),
33890
- /* @__PURE__ */ jsxRuntimeExports.jsx(
33891
- "button",
33892
- {
33893
- onClick: () => i(!1),
33894
- className: "text-gray-500 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300",
33895
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Cross2Icon, { className: "h-6 w-6" })
33896
- }
33897
- )
33898
- ] }),
33899
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "no-scrollbar h-[500px] max-h-full overflow-hidden", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AddBlocksPanel$1, { parentId: n, showHeading: !1 }) })
33900
- ] }) });
33901
33900
  }, SettingsPanel = () => {
33902
33901
  const r = useSelectedBlock(), { t: n } = useTranslation(), [o, a] = useState$1(!0), i = useBuilderProp("onError", noop$1);
33903
33902
  return isNull(r) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
@@ -33924,23 +33923,31 @@ const TabletIcon = ({ landscape: r = !1 }) => /* @__PURE__ */ jsxRuntimeExports.
33924
33923
  /* @__PURE__ */ jsxRuntimeExports.jsx("br", {})
33925
33924
  ] }) });
33926
33925
  }, SettingsPanel$1 = SettingsPanel;
33927
- function LayoutCard({ description: r, title: n, selected: o, onSelect: a, children: i }) {
33928
- const { t: l } = useTranslation();
33929
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Card, { className: `cursor-pointer transition-all ${o ? "ring-2 ring-secondary" : ""}`, onClick: a, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(CardContent, { className: "p-4", children: [
33930
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between", children: [
33931
- /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-lg font-semibold", children: n }),
33932
- o && /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, { className: "text-primary" })
33933
- ] }),
33934
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "mb-4 text-sm text-muted-foreground", children: r }),
33935
- i,
33936
- /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { className: "mt-4 w-full", variant: o ? "default" : "outline", children: l(o ? "Selected" : "Select") })
33937
- ] }) });
33926
+ function LayoutCard({ disabled: r = !1, description: n, title: o, selected: a, onSelect: i, children: l }) {
33927
+ const { t: c } = useTranslation();
33928
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
33929
+ Card,
33930
+ {
33931
+ "aria-disabled": r,
33932
+ className: `cursor-pointer transition-all ${a ? "ring-2 ring-secondary" : ""} ${r ? "cursor-not-allowed opacity-50" : ""}`,
33933
+ onClick: i,
33934
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(CardContent, { className: "p-4", children: [
33935
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between", children: [
33936
+ /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-lg font-semibold", children: o }),
33937
+ a && /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, { className: "h-6 w-6 rounded-full bg-primary p-px text-white" })
33938
+ ] }),
33939
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "mb-4 text-sm text-muted-foreground", children: n }),
33940
+ l,
33941
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { disabled: r, className: "mt-4 w-full", variant: a ? "default" : "outline", children: c(r ? "Coming soon" : a ? "Selected" : "Select") })
33942
+ ] })
33943
+ }
33944
+ );
33938
33945
  }
33939
33946
  const ChooseLayout = ({ open: r, close: n }) => {
33940
33947
  const { t: o } = useTranslation(), [a, i] = useLayoutVariant(), l = (c) => {
33941
33948
  i(c), n();
33942
33949
  };
33943
- return /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialog, { open: r, onOpenChange: () => r ? n() : "", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogContent, { className: "max-w-2xl overflow-hidden", children: [
33950
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialog, { open: r, onOpenChange: () => r ? n() : "", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogContent, { className: "max-w-4xl overflow-hidden", children: [
33944
33951
  /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogHeader, { className: "flex flex-row items-center justify-between", children: [
33945
33952
  /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialogTitle, { children: o("Choose Builder Layout") }),
33946
33953
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -33952,7 +33959,7 @@ const ChooseLayout = ({ open: r, close: n }) => {
33952
33959
  }
33953
33960
  )
33954
33961
  ] }),
33955
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "no-scrollbar max-h-full overflow-hidden", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-2", children: [
33962
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "no-scrollbar max-h-full overflow-hidden", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-3", children: [
33956
33963
  /* @__PURE__ */ jsxRuntimeExports.jsx(
33957
33964
  LayoutCard,
33958
33965
  {
@@ -33985,10 +33992,29 @@ const ChooseLayout = ({ open: r, close: n }) => {
33985
33992
  ] })
33986
33993
  ] })
33987
33994
  }
33995
+ ),
33996
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
33997
+ LayoutCard,
33998
+ {
33999
+ disabled: !0,
34000
+ title: o("Dual side panel advanced"),
34001
+ description: o("Suitable for heavy styling & block editing. Setting are always visible."),
34002
+ selected: !1,
34003
+ onSelect: () => {
34004
+ },
34005
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col rounded border border-border", children: [
34006
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "borde-b h-4 border-b border-border" }),
34007
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-32", children: [
34008
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-1/4 bg-secondary" }),
34009
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-2/4 border-x border-border bg-background" }),
34010
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-1/4 bg-secondary" })
34011
+ ] })
34012
+ ] })
34013
+ }
33988
34014
  )
33989
34015
  ] }) })
33990
34016
  ] }) });
33991
- }, TopBar = lazy(() => import("./Topbar-yupGt0_h.js")), useAutoSave = () => {
34017
+ }, TopBar = lazy(() => import("./Topbar-35gCuc1s.js")), useAutoSave = () => {
33992
34018
  const { savePage: r } = useSavePage(), n = useBuilderProp("autoSaveSupport", !0), o = useBuilderProp("autoSaveInterval", 60);
33993
34019
  useIntervalEffect(() => {
33994
34020
  n && r();
@@ -34007,19 +34033,22 @@ function useSidebarMenuItems(r) {
34007
34033
  }
34008
34034
  ]), [r]);
34009
34035
  }
34036
+ function isDualLayout(r) {
34037
+ return r !== LAYOUT_VARIANTS.SINGLE_SIDE_PANEL;
34038
+ }
34010
34039
  const RootLayout = () => {
34011
34040
  const [r, n] = useState$1(0), [o] = useLayoutVariant(), [a, i] = useState$1(!1);
34012
- useChaiBuilderMsgListener(({ name: g }) => {
34013
- g === CHAI_BUILDER_EVENTS.SHOW_BLOCK_SETTINGS && n(1);
34041
+ useChaiBuilderMsgListener(({ name: h }) => {
34042
+ h === CHAI_BUILDER_EVENTS.SHOW_BLOCK_SETTINGS && n(1);
34014
34043
  });
34015
- const l = useBuilderProp("sideBarComponents.top", []), c = (g) => {
34016
- g.preventDefault();
34044
+ const l = useBuilderProp("sideBarComponents.top", []), c = (h) => {
34045
+ h.preventDefault();
34017
34046
  };
34018
34047
  useAtom$1(selectedLibraryAtom), useKeyEventWatcher(), useExpandTree(), useAutoSave();
34019
- const u = (g) => {
34020
- n(r === g ? null : g);
34021
- }, d = useSidebarMenuItems(o), { t: p } = useTranslation(), m = [...d, ...l];
34022
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-screen max-h-full w-screen overflow-x-hidden bg-background text-foreground", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(TooltipProvider, { children: [
34048
+ const u = (h) => {
34049
+ n(r === h ? null : h);
34050
+ }, d = useSidebarMenuItems(o), { t: p } = useTranslation(), m = [...d, ...l], g = useBuilderProp("htmlDir", "ltr");
34051
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { dir: g, className: "h-screen max-h-full w-screen overflow-x-hidden bg-background text-foreground", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(TooltipProvider, { children: [
34023
34052
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
34024
34053
  "div",
34025
34054
  {
@@ -34029,18 +34058,18 @@ const RootLayout = () => {
34029
34058
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-14 w-screen shrink-0 border-b border-border", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(TopBar, {}) }) }),
34030
34059
  /* @__PURE__ */ jsxRuntimeExports.jsxs("main", { className: "relative flex h-[calc(100vh-56px)] max-w-full flex-1 flex-row", children: [
34031
34060
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex w-12 flex-col items-center justify-between border-r py-2", children: [
34032
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col", children: m.map((g, h) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
34061
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col", children: m.map((h, b) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
34033
34062
  /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
34034
34063
  "button",
34035
34064
  {
34036
- className: `mb-2 rounded-lg p-2 text-gray-500 transition-colors ${r === h ? "bg-primary text-white" : "hover:bg-primary hover:text-white"}`,
34037
- onClick: () => u(h),
34038
- children: g.icon
34065
+ className: `mb-2 rounded-lg p-2 text-gray-500 transition-colors ${r === b ? "bg-primary text-white" : "hover:bg-primary hover:text-white"}`,
34066
+ onClick: () => u(b),
34067
+ children: get$1(h, "icon", null)
34039
34068
  },
34040
- h
34069
+ b
34041
34070
  ) }),
34042
- /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: p(g.label) }) })
34043
- ] })) }),
34071
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: p(h.label) }) })
34072
+ ] }, "button" + b)) }),
34044
34073
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
34045
34074
  /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
34046
34075
  "button",
@@ -34062,10 +34091,10 @@ const RootLayout = () => {
34062
34091
  transition: { duration: 0.3, ease: "easeInOut" },
34063
34092
  children: r !== null && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "no-scrollbar overflow h-full overflow-x-hidden", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col p-3", children: [
34064
34093
  /* @__PURE__ */ jsxRuntimeExports.jsxs("h2", { className: "-mt-1 flex h-10 items-center space-x-1 text-base font-bold", children: [
34065
- m[r].icon,
34094
+ get$1(m, `${r}.icon`, null),
34066
34095
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: p(m[r].label) })
34067
34096
  ] }),
34068
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: React__default.createElement(m[r].component, {}) }) })
34097
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: React__default.createElement(get$1(m, `${r}.component`, null), {}) }) })
34069
34098
  ] }) })
34070
34099
  }
34071
34100
  ),
@@ -34073,7 +34102,7 @@ const RootLayout = () => {
34073
34102
  /* @__PURE__ */ jsxRuntimeExports.jsx(CanvasTopBar, {}),
34074
34103
  /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CanvasArea$1, {}) })
34075
34104
  ] }),
34076
- o !== LAYOUT_VARIANTS.SINGLE_SIDE_PANEL ? /* @__PURE__ */ jsxRuntimeExports.jsx(
34105
+ isDualLayout(o) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
34077
34106
  motion.div,
34078
34107
  {
34079
34108
  className: "h-full max-h-full border-l border-border",
@@ -34154,46 +34183,47 @@ const RootLayout = () => {
34154
34183
  ] }) }) });
34155
34184
  };
34156
34185
  export {
34157
- useSelectedBlock as $,
34186
+ useSelectedBlockAllClasses as $,
34158
34187
  AddBlocksPanel$1 as A,
34159
34188
  BlockSettings as B,
34160
34189
  ChaiSelect$1 as C,
34161
34190
  DefaultChaiBlocks as D,
34162
- useAddClassesToBlocks as E,
34191
+ useAddBlock as E,
34163
34192
  FaCheck as F,
34164
- useCanvasWidth as G,
34165
- useCanvasZoom as H,
34193
+ useAddClassesToBlocks as G,
34194
+ useCanvasWidth as H,
34166
34195
  ImportHTML$1 as I,
34167
- useCopyBlockIds as J,
34168
- useCopyToClipboard as K,
34169
- useCurrentPage as L,
34170
- useCutBlockIds as M,
34171
- useDarkMode as N,
34196
+ useCanvasZoom as J,
34197
+ useCopyBlockIds as K,
34198
+ useCopyToClipboard as L,
34199
+ useCurrentPage as M,
34200
+ useCutBlockIds as N,
34172
34201
  Outline$1 as O,
34173
- useDuplicateBlocks as P,
34174
- useGetPageData as Q,
34175
- useHiddenBlockIds as R,
34176
- useHighlightBlockId as S,
34202
+ useDarkMode as P,
34203
+ useDuplicateBlocks as Q,
34204
+ useGetPageData as R,
34205
+ useHiddenBlockIds as S,
34177
34206
  ThemeOptions as T,
34178
34207
  UILibraries as U,
34179
- usePasteBlocks as V,
34180
- useBrandingOptions as W,
34181
- useRemoveBlocks as X,
34182
- useRemoveClassesFromBlocks as Y,
34183
- useSelectedBlockCurrentClasses as Z,
34184
- useSelectedBlockAllClasses as _,
34208
+ useHighlightBlockId as V,
34209
+ usePasteBlocks as W,
34210
+ useBrandingOptions as X,
34211
+ useRemoveBlocks as Y,
34212
+ useRemoveClassesFromBlocks as Z,
34213
+ useSelectedBlockCurrentClasses as _,
34185
34214
  useSelectedBlockIds as a,
34186
- useStylingBreakpoint as a0,
34187
- useUILibraryBlocks as a1,
34188
- useStylingState as a2,
34189
- useSelectedBlocksDisplayChild as a3,
34190
- useAllBlocks as a4,
34191
- useActivePanel as a5,
34192
- useAddBlockParent as a6,
34193
- useSelectedBreakpoints as a7,
34194
- useSelectedStylingBlocks as a8,
34195
- useLayoutVariant as a9,
34196
- useBlocksStoreUndoableActions as aa,
34215
+ useSelectedBlock as a0,
34216
+ useStylingBreakpoint as a1,
34217
+ useUILibraryBlocks as a2,
34218
+ useStylingState as a3,
34219
+ useSelectedBlocksDisplayChild as a4,
34220
+ useAllBlocks as a5,
34221
+ useActivePanel as a6,
34222
+ useAddBlockParent as a7,
34223
+ useSelectedBreakpoints as a8,
34224
+ useSelectedStylingBlocks as a9,
34225
+ useLayoutVariant as aa,
34226
+ useBlocksStoreUndoableActions as ab,
34197
34227
  useUpdateBlocksProps as b,
34198
34228
  useUpdateBlocksPropsRealtime as c,
34199
34229
  useBuilderProp as d,
@@ -34201,22 +34231,22 @@ export {
34201
34231
  usePreviewMode as f,
34202
34232
  CanvasArea$1 as g,
34203
34233
  BlockStyling as h,
34204
- emitChaiBuilderMsg as i,
34205
- useChaiBuilderMsgListener as j,
34206
- CHAI_BUILDER_EVENTS as k,
34207
- AISetContext as l,
34208
- AIUserPrompt as m,
34209
- BlockAttributesEditor as n,
34210
- ChaiBuilderEditor as o,
34211
- DarkMode as p,
34212
- Breakpoints as q,
34213
- UndoRedo as r,
34214
- getBlocksFromHTML as s,
34215
- useBlocksStore as t,
34234
+ AddBlocksDialog as i,
34235
+ emitChaiBuilderMsg as j,
34236
+ useChaiBuilderMsgListener as k,
34237
+ CHAI_BUILDER_EVENTS as l,
34238
+ AISetContext as m,
34239
+ AIUserPrompt as n,
34240
+ BlockAttributesEditor as o,
34241
+ ChaiBuilderEditor as p,
34242
+ DarkMode as q,
34243
+ Breakpoints as r,
34244
+ UndoRedo as s,
34245
+ getBlocksFromHTML as t,
34216
34246
  useCodeEditor as u,
34217
- useUndoManager as v,
34218
- useBuilderReset as w,
34219
- useReadOnlyMode as x,
34220
- useActiveModal as y,
34221
- useAddBlock as z
34247
+ useBlocksStore as v,
34248
+ useUndoManager as w,
34249
+ useBuilderReset as x,
34250
+ useReadOnlyMode as y,
34251
+ useActiveModal as z
34222
34252
  };