@chaibuilder/sdk 1.2.88 → 1.2.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/{CodeEditor-Oq3aZl5f.cjs → CodeEditor-gqhS0hpB.cjs} +1 -1
- package/dist/{CodeEditor-86swShPz.js → CodeEditor-t2oVfSyK.js} +3 -3
- package/dist/Topbar-s9YVXp9Z.cjs +1 -0
- package/dist/Topbar-x0tjZaWC.js +123 -0
- package/dist/{UnsplashImages-JkK2qDpq.js → UnsplashImages-965l8pGL.js} +3 -3
- package/dist/{UnsplashImages-aNzjUMdE.cjs → UnsplashImages-DRQaQoM-.cjs} +1 -1
- package/dist/{UploadImages-XD7mDSiB.cjs → UploadImages-CumBJ3oE.cjs} +1 -1
- package/dist/{UploadImages--oXePb3w.js → UploadImages-glp4ZyQm.js} +3 -3
- package/dist/context-menu--DZnHfxj.cjs +1 -0
- package/dist/{context-menu-LFlr5p9-.js → context-menu-DeUUflYX.js} +291 -274
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +11 -28
- package/dist/core.js +53 -58
- package/dist/{index-VEAUj2Fk.cjs → index-BuZrwlQG.cjs} +3 -3
- package/dist/{index-JAlLL51L.js → index-qptv-vi2.js} +471 -477
- package/dist/style.css +1 -1
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +308 -264
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +11 -11
- package/package.json +3 -2
- package/dist/Topbar-Hvj7y8Yj.js +0 -144
- package/dist/Topbar-cFOidWo5.cjs +0 -1
- package/dist/context-menu-Lx_MAqsu.cjs +0 -1
- package/dist/select-8MHQqep3.js +0 -75
- package/dist/select-FnytvxNn.cjs +0 -1
|
@@ -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, B as Button$1, C as ContextMenu, a as ContextMenuTrigger, b as ContextMenuContent, c as ContextMenuItem, T as Tooltip$1, d as TooltipTrigger, e as TooltipContent, 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
|
|
7
|
+
import { S as Skeleton, B as Button$1, C as ContextMenu, a as ContextMenuTrigger, b as ContextMenuContent, c as ContextMenuItem, T as Tooltip$1, d as TooltipTrigger, e as TooltipContent, 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 Badge$1, ae as TooltipProvider, af as Toaster } from "./context-menu-DeUUflYX.js";
|
|
8
8
|
import { has, find, filter, flatten, map, omit, isString as isString$1, includes, without, get as get$1, compact, 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, reverse, debounce as debounce$1, 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 } 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";
|
|
@@ -19,7 +19,7 @@ import { useFeature, FlagsProvider } from "flagged";
|
|
|
19
19
|
import { useHotkeys } from "react-hotkeys-hook";
|
|
20
20
|
import { flip as flip$2 } from "@floating-ui/dom";
|
|
21
21
|
import { useFloating as useFloating$1, shift, getOverflowAncestors, autoUpdate, size, offset, limitShift, flip as flip$3, inline, arrow } from "@floating-ui/react-dom";
|
|
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, EyeOpenIcon, Cross2Icon, 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 { 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, EyeOpenIcon, Cross2Icon, 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, KeyboardIcon, LightningBoltIcon } from "@radix-ui/react-icons";
|
|
23
23
|
import { createEvent } from "react-event-hook";
|
|
24
24
|
import typography$1 from "@tailwindcss/typography";
|
|
25
25
|
import forms from "@tailwindcss/forms";
|
|
@@ -90,23 +90,23 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
90
90
|
const r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new Map();
|
|
91
91
|
let a, i, l;
|
|
92
92
|
(define_import_meta_env_default$2 ? "production" : void 0) !== "production" && (a = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set());
|
|
93
|
-
const c = (P) => r.get(P), u = (P,
|
|
94
|
-
(define_import_meta_env_default$2 ? "production" : void 0) !== "production" && Object.freeze(
|
|
93
|
+
const c = (P) => r.get(P), u = (P, O) => {
|
|
94
|
+
(define_import_meta_env_default$2 ? "production" : void 0) !== "production" && Object.freeze(O);
|
|
95
95
|
const T = r.get(P);
|
|
96
|
-
if (r.set(P,
|
|
97
|
-
const N = "v" in
|
|
96
|
+
if (r.set(P, O), o.has(P) || o.set(P, T), T && hasPromiseAtomValue(T)) {
|
|
97
|
+
const N = "v" in O ? O.v instanceof Promise ? O.v : Promise.resolve(O.v) : Promise.reject(O.e);
|
|
98
98
|
cancelPromise(T.v, N);
|
|
99
99
|
}
|
|
100
|
-
}, d = (P,
|
|
100
|
+
}, d = (P, O, T) => {
|
|
101
101
|
const N = /* @__PURE__ */ new Map();
|
|
102
102
|
let L = !1;
|
|
103
103
|
T.forEach((M, W) => {
|
|
104
|
-
!M && W === P && (M =
|
|
105
|
-
}), (L ||
|
|
106
|
-
}, p = (P,
|
|
104
|
+
!M && W === P && (M = O), M ? (N.set(W, M), O.d.get(W) !== M && (L = !0)) : (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
|
|
105
|
+
}), (L || O.d.size !== N.size) && (O.d = N);
|
|
106
|
+
}, p = (P, O, T) => {
|
|
107
107
|
const N = c(P), L = {
|
|
108
108
|
d: (N == null ? void 0 : N.d) || /* @__PURE__ */ new Map(),
|
|
109
|
-
v:
|
|
109
|
+
v: O
|
|
110
110
|
};
|
|
111
111
|
if (T && d(P, L, T), N && isEqualAtomValue(N, L) && N.d === L.d)
|
|
112
112
|
return N;
|
|
@@ -116,12 +116,12 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
116
116
|
L.v = N.v;
|
|
117
117
|
}
|
|
118
118
|
return u(P, L), L;
|
|
119
|
-
}, m = (P,
|
|
120
|
-
if (isPromiseLike$2(
|
|
119
|
+
}, m = (P, O, T, N) => {
|
|
120
|
+
if (isPromiseLike$2(O)) {
|
|
121
121
|
let L;
|
|
122
122
|
const M = new Promise((W, J) => {
|
|
123
123
|
let F = !1;
|
|
124
|
-
|
|
124
|
+
O.then(
|
|
125
125
|
(V) => {
|
|
126
126
|
if (!F) {
|
|
127
127
|
F = !0;
|
|
@@ -151,27 +151,27 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
151
151
|
), W(V));
|
|
152
152
|
};
|
|
153
153
|
});
|
|
154
|
-
return M.orig =
|
|
154
|
+
return M.orig = O, M.status = "pending", registerCancelPromise(M, (W) => {
|
|
155
155
|
W && L(W), N == null || N();
|
|
156
156
|
}), p(P, M, T);
|
|
157
157
|
}
|
|
158
|
-
return p(P,
|
|
159
|
-
}, g = (P,
|
|
158
|
+
return p(P, O, T);
|
|
159
|
+
}, g = (P, O, T) => {
|
|
160
160
|
const N = c(P), L = {
|
|
161
161
|
d: (N == null ? void 0 : N.d) || /* @__PURE__ */ new Map(),
|
|
162
|
-
e:
|
|
162
|
+
e: O
|
|
163
163
|
};
|
|
164
164
|
return T && d(P, L, T), N && isEqualAtomError(N, L) && N.d === L.d ? N : (u(P, L), L);
|
|
165
165
|
}, h = (P) => {
|
|
166
|
-
const
|
|
167
|
-
if (
|
|
166
|
+
const O = c(P);
|
|
167
|
+
if (O && (O.d.forEach((F, V) => {
|
|
168
168
|
V !== P && !n.has(V) && h(V);
|
|
169
|
-
}), Array.from(
|
|
169
|
+
}), Array.from(O.d).every(([F, V]) => {
|
|
170
170
|
const q = c(F);
|
|
171
171
|
return F === P || q === V || // TODO This is a hack, we should find a better solution.
|
|
172
172
|
q && !hasPromiseAtomValue(q) && isEqualAtomValue(q, V);
|
|
173
173
|
})))
|
|
174
|
-
return
|
|
174
|
+
return O;
|
|
175
175
|
const T = /* @__PURE__ */ new Map();
|
|
176
176
|
let N = !0;
|
|
177
177
|
const L = (F) => {
|
|
@@ -212,18 +212,18 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
212
212
|
N = !1;
|
|
213
213
|
}
|
|
214
214
|
}, b = (P) => returnAtomValue(h(P)), x = (P) => {
|
|
215
|
-
let
|
|
216
|
-
return
|
|
217
|
-
}, v = (P,
|
|
218
|
-
const
|
|
219
|
-
|
|
215
|
+
let O = n.get(P);
|
|
216
|
+
return O || (O = C(P)), O;
|
|
217
|
+
}, v = (P, O) => !O.l.size && (!O.t.size || O.t.size === 1 && O.t.has(P)), S = (P) => {
|
|
218
|
+
const O = n.get(P);
|
|
219
|
+
O && v(P, O) && R(P);
|
|
220
220
|
}, E = (P) => {
|
|
221
|
-
const
|
|
221
|
+
const O = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new WeakMap(), N = (M) => {
|
|
222
222
|
const W = n.get(M);
|
|
223
223
|
W == null || W.t.forEach((J) => {
|
|
224
|
-
J !== M && (
|
|
224
|
+
J !== M && (O.set(
|
|
225
225
|
J,
|
|
226
|
-
(
|
|
226
|
+
(O.get(J) || /* @__PURE__ */ new Set()).add(M)
|
|
227
227
|
), T.set(J, (T.get(J) || 0) + 1), N(J));
|
|
228
228
|
});
|
|
229
229
|
};
|
|
@@ -235,19 +235,19 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
235
235
|
if (J !== M) {
|
|
236
236
|
let V = T.get(J);
|
|
237
237
|
if (V && T.set(J, --V), !V) {
|
|
238
|
-
let q = !!((F =
|
|
238
|
+
let q = !!((F = O.get(J)) != null && F.size);
|
|
239
239
|
if (q) {
|
|
240
240
|
const G = c(J), ee = h(J);
|
|
241
241
|
q = !G || !isEqualAtomValue(G, ee);
|
|
242
242
|
}
|
|
243
|
-
q ||
|
|
243
|
+
q || O.forEach((G) => G.delete(J));
|
|
244
244
|
}
|
|
245
245
|
L(J);
|
|
246
246
|
}
|
|
247
247
|
});
|
|
248
248
|
};
|
|
249
249
|
L(P);
|
|
250
|
-
}, w = (P, ...
|
|
250
|
+
}, w = (P, ...O) => {
|
|
251
251
|
let T = !0;
|
|
252
252
|
const N = (W) => returnAtomValue(h(W)), L = (W, ...J) => {
|
|
253
253
|
let F;
|
|
@@ -265,16 +265,16 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
265
265
|
);
|
|
266
266
|
}
|
|
267
267
|
return F;
|
|
268
|
-
}, M = P.write(N, L, ...
|
|
268
|
+
}, M = P.write(N, L, ...O);
|
|
269
269
|
return T = !1, M;
|
|
270
|
-
}, A = (P, ...
|
|
271
|
-
const T = w(P, ...
|
|
270
|
+
}, A = (P, ...O) => {
|
|
271
|
+
const T = w(P, ...O), N = I();
|
|
272
272
|
return (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && i.forEach(
|
|
273
273
|
(L) => L({ type: "write", flushed: N })
|
|
274
274
|
), T;
|
|
275
|
-
}, C = (P,
|
|
275
|
+
}, C = (P, O) => {
|
|
276
276
|
const T = {
|
|
277
|
-
t: new Set(
|
|
277
|
+
t: new Set(O && [O]),
|
|
278
278
|
l: /* @__PURE__ */ new Set()
|
|
279
279
|
};
|
|
280
280
|
if (n.set(P, T), (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && l.add(P), h(P).d.forEach((N, L) => {
|
|
@@ -286,8 +286,8 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
286
286
|
}
|
|
287
287
|
return T;
|
|
288
288
|
}, R = (P) => {
|
|
289
|
-
var
|
|
290
|
-
const T = (
|
|
289
|
+
var O;
|
|
290
|
+
const T = (O = n.get(P)) == null ? void 0 : O.u;
|
|
291
291
|
T && T(), n.delete(P), (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && l.delete(P);
|
|
292
292
|
const N = c(P);
|
|
293
293
|
N ? (hasPromiseAtomValue(N) && cancelPromise(N.v), N.d.forEach((L, M) => {
|
|
@@ -296,8 +296,8 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
296
296
|
W && (W.t.delete(P), v(M, W) && R(M));
|
|
297
297
|
}
|
|
298
298
|
})) : (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", P);
|
|
299
|
-
}, k = (P,
|
|
300
|
-
const N = new Set(
|
|
299
|
+
}, k = (P, O, T) => {
|
|
300
|
+
const N = new Set(O.d.keys());
|
|
301
301
|
T == null || T.forEach((L, M) => {
|
|
302
302
|
if (N.has(M)) {
|
|
303
303
|
N.delete(M);
|
|
@@ -312,8 +312,8 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
312
312
|
}, I = () => {
|
|
313
313
|
let P;
|
|
314
314
|
for ((define_import_meta_env_default$2 ? "production" : void 0) !== "production" && (P = /* @__PURE__ */ new Set()); o.size; ) {
|
|
315
|
-
const
|
|
316
|
-
o.clear(),
|
|
315
|
+
const O = Array.from(o);
|
|
316
|
+
o.clear(), O.forEach(([T, N]) => {
|
|
317
317
|
const L = c(T);
|
|
318
318
|
if (L) {
|
|
319
319
|
L.d !== (N == null ? void 0 : N.d) && k(T, L, N == null ? void 0 : N.d);
|
|
@@ -326,21 +326,21 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
if ((define_import_meta_env_default$2 ? "production" : void 0) !== "production")
|
|
329
|
-
return a.forEach((
|
|
330
|
-
},
|
|
329
|
+
return a.forEach((O) => O("state")), P;
|
|
330
|
+
}, j = (P, O) => {
|
|
331
331
|
const T = x(P), N = I(), L = T.l;
|
|
332
|
-
return L.add(
|
|
332
|
+
return L.add(O), (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && (a.forEach((M) => M("sub")), i.forEach(
|
|
333
333
|
(M) => M({ type: "sub", flushed: N })
|
|
334
334
|
)), () => {
|
|
335
|
-
L.delete(
|
|
335
|
+
L.delete(O), S(P), (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && (a.forEach((M) => M("unsub")), i.forEach((M) => M({ type: "unsub" })));
|
|
336
336
|
};
|
|
337
337
|
};
|
|
338
338
|
return (define_import_meta_env_default$2 ? "production" : void 0) !== "production" ? {
|
|
339
339
|
get: b,
|
|
340
340
|
set: A,
|
|
341
|
-
sub:
|
|
341
|
+
sub: j,
|
|
342
342
|
// store dev methods (these are tentative and subject to change without notice)
|
|
343
|
-
dev_subscribe_store: (P,
|
|
343
|
+
dev_subscribe_store: (P, O) => O !== 2 ? (console.warn(
|
|
344
344
|
"The current StoreListener revision is 2. The older ones are deprecated."
|
|
345
345
|
), a.add(P), () => {
|
|
346
346
|
a.delete(P);
|
|
@@ -353,15 +353,15 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
353
353
|
dev_restore_atoms: (P) => {
|
|
354
354
|
for (const [T, N] of P)
|
|
355
355
|
hasInitialValue(T) && (m(T, N), E(T));
|
|
356
|
-
const
|
|
356
|
+
const O = I();
|
|
357
357
|
i.forEach(
|
|
358
|
-
(T) => T({ type: "restore", flushed:
|
|
358
|
+
(T) => T({ type: "restore", flushed: O })
|
|
359
359
|
);
|
|
360
360
|
}
|
|
361
361
|
} : {
|
|
362
362
|
get: b,
|
|
363
363
|
set: A,
|
|
364
|
-
sub:
|
|
364
|
+
sub: j
|
|
365
365
|
};
|
|
366
366
|
};
|
|
367
367
|
let defaultStore;
|
|
@@ -397,14 +397,14 @@ function splitAtom(r, n) {
|
|
|
397
397
|
}
|
|
398
398
|
return C[k];
|
|
399
399
|
}, E = (w, A, C) => {
|
|
400
|
-
const R = w(i), k = w(r),
|
|
401
|
-
if (
|
|
400
|
+
const R = w(i), k = w(r), j = a(k, R == null ? void 0 : R.arr).keyList.indexOf(x);
|
|
401
|
+
if (j < 0 || j >= k.length)
|
|
402
402
|
throw new Error("splitAtom: index out of bounds for write");
|
|
403
|
-
const P = isFunction$1(C) ? C(k[
|
|
403
|
+
const P = isFunction$1(C) ? C(k[j]) : C;
|
|
404
404
|
A(r, [
|
|
405
|
-
...k.slice(0,
|
|
405
|
+
...k.slice(0, j),
|
|
406
406
|
P,
|
|
407
|
-
...k.slice(
|
|
407
|
+
...k.slice(j + 1)
|
|
408
408
|
]);
|
|
409
409
|
};
|
|
410
410
|
m[b] = isWritable(r) ? atom(S, E) : atom(S);
|
|
@@ -1214,7 +1214,7 @@ const useBlocksStoreManager = () => {
|
|
|
1214
1214
|
return {
|
|
1215
1215
|
moveBlocks: (x, v, S) => {
|
|
1216
1216
|
const E = map(x, (A) => {
|
|
1217
|
-
const R = n.find((
|
|
1217
|
+
const R = n.find((j) => j._id === A)._parent || null, I = n.filter((j) => R ? j._parent === R : !j._parent).map((j) => j._id).indexOf(A);
|
|
1218
1218
|
return { _id: A, oldParent: R, oldPosition: I };
|
|
1219
1219
|
}), w = E.find(({ _id: A }) => A === x[0]);
|
|
1220
1220
|
w && w.oldParent === v && w.oldPosition === S || (l(x, v, S), r({
|
|
@@ -2700,30 +2700,10 @@ const useSelectedStylingBlocks = () => useAtom$1(selectedStylingBlocksAtom), get
|
|
|
2700
2700
|
},
|
|
2701
2701
|
[r]
|
|
2702
2702
|
);
|
|
2703
|
-
},
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
backdropClose: !0
|
|
2708
|
-
}, activeModalAtom = atom$1(defaultProps$F), useActiveModal = () => {
|
|
2709
|
-
const [r, n] = useAtom$1(activeModalAtom), o = useCallback$1(
|
|
2710
|
-
(i, l = {}, c = {}) => {
|
|
2711
|
-
n({ name: i, props: l, modalProps: c });
|
|
2712
|
-
},
|
|
2713
|
-
[n]
|
|
2714
|
-
), a = useCallback$1(
|
|
2715
|
-
(...i) => {
|
|
2716
|
-
get$1(r, "props.onClose", () => {
|
|
2717
|
-
})(...i), n(defaultProps$F);
|
|
2718
|
-
},
|
|
2719
|
-
[n, r]
|
|
2720
|
-
);
|
|
2721
|
-
return {
|
|
2722
|
-
activeModal: r,
|
|
2723
|
-
openModal: o,
|
|
2724
|
-
closeModal: a
|
|
2725
|
-
};
|
|
2726
|
-
}, useAllBlocks = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), useAtomValue$1(presentBlocksAtom)), readOnlyModeAtom = atom$1(!1);
|
|
2703
|
+
}, selectedBreakpointsAtom = atomWithStorage("selectedBreakpoints", ["XS", "MD", "XL"]), useSelectedBreakpoints = () => {
|
|
2704
|
+
const [r, n] = useAtom$1(selectedBreakpointsAtom);
|
|
2705
|
+
return [r, n];
|
|
2706
|
+
}, readOnlyModeAtom = atom$1(!1);
|
|
2727
2707
|
readOnlyModeAtom.debugLabel = "readOnlyModeAtom";
|
|
2728
2708
|
const networkModeAtom = atom$1("online");
|
|
2729
2709
|
networkModeAtom.debugLabel = "networkModeAtom";
|
|
@@ -2736,8 +2716,8 @@ const primaryLanguageAtom = atom$1("");
|
|
|
2736
2716
|
primaryLanguageAtom.debugLabel = "primaryLanguageAtom";
|
|
2737
2717
|
const canvasIframeAtom = atom$1(null);
|
|
2738
2718
|
canvasIframeAtom.debugLabel = "canvasIframeAtom";
|
|
2739
|
-
const activePanelAtom
|
|
2740
|
-
activePanelAtom
|
|
2719
|
+
const activePanelAtom = atom$1("outline");
|
|
2720
|
+
activePanelAtom.debugLabel = "activePanelAtom";
|
|
2741
2721
|
const showPredefinedBlockCategoryAtom = atom$1("");
|
|
2742
2722
|
showPredefinedBlockCategoryAtom.debugLabel = "showPredefinedBlockCategoryAtom";
|
|
2743
2723
|
const historyStatesAtom = atom$1({ undoCount: 0, redoCount: 0 });
|
|
@@ -2760,10 +2740,7 @@ const xShowBlocksAtom = atom$1([]);
|
|
|
2760
2740
|
xShowBlocksAtom.debugLabel = "xShowBlocksAtom";
|
|
2761
2741
|
const selectedLibraryAtom = atomWithStorage("_selectedLibrary", null);
|
|
2762
2742
|
selectedLibraryAtom.debugLabel = "selectedLibraryAtom";
|
|
2763
|
-
const
|
|
2764
|
-
const [r, n] = useAtom$1(selectedBreakpointsAtom);
|
|
2765
|
-
return [r, n];
|
|
2766
|
-
}, useBuilderReset = () => {
|
|
2743
|
+
const useBuilderReset = () => {
|
|
2767
2744
|
const r = useSetAtom$1(historyStatesAtom), { clear: n } = useUndoManager(), [, o] = useSelectedBlockIds(), [, a] = useHighlightBlockId(), [, i] = useSelectedStylingBlocks(), [, l] = useAtom(aiAssistantActiveAtom);
|
|
2768
2745
|
return () => {
|
|
2769
2746
|
o([]), i([]), a(""), n(), l(!1), r({ undoCount: 0, redoCount: 0 });
|
|
@@ -2779,12 +2756,8 @@ const useReadOnlyMode = () => useAtomValue$1(readOnlyModeAtom), activePanelAtom
|
|
|
2779
2756
|
}
|
|
2780
2757
|
}, []);
|
|
2781
2758
|
return [r, o];
|
|
2782
|
-
}, codeEditorAtom = atom$1(null), useCodeEditor = () => useAtom$1(codeEditorAtom),
|
|
2783
|
-
|
|
2784
|
-
DUAL_SIDE_PANEL: "DUAL_SIDE_PANEL",
|
|
2785
|
-
DUAL_SIDE_PANEL_ADVANCED: "DUAL_SIDE_PANEL_ADVANCED"
|
|
2786
|
-
}, layoutVariantAtom = atomWithStorage("__layout_variant_mode", LAYOUT_MODE.DUAL_SIDE_PANEL), useLayoutVariant = () => {
|
|
2787
|
-
const [r, n] = useAtom$1(layoutVariantAtom), o = useBuilderProp("layoutVariant", LAYOUT_MODE.DUAL_SIDE_PANEL);
|
|
2759
|
+
}, codeEditorAtom = atom$1(null), useCodeEditor = () => useAtom$1(codeEditorAtom), layoutVariantAtom = atomWithStorage("_layout_variant_mode", "DUAL_SIDE_PANEL"), useLayoutVariant = () => {
|
|
2760
|
+
const [r, n] = useAtom$1(layoutVariantAtom), o = useBuilderProp("layoutVariant", "DUAL_SIDE_PANEL");
|
|
2788
2761
|
return [r || o, n];
|
|
2789
2762
|
}, IframeInitialContent = `<!doctype html>
|
|
2790
2763
|
<html lang="en" dir="__HTML_DIR__" class="scroll-smooth h-full overflow-y-auto">
|
|
@@ -3279,7 +3252,7 @@ const useHandleCanvasDblClick = () => {
|
|
|
3279
3252
|
"bg-dark": A,
|
|
3280
3253
|
"text-dark": C,
|
|
3281
3254
|
"text-light": R
|
|
3282
|
-
},
|
|
3255
|
+
}, j = get$1(n, "roundedCorners", "0");
|
|
3283
3256
|
!p || !p.tailwind || (p.tailwind.config = {
|
|
3284
3257
|
darkMode: "class",
|
|
3285
3258
|
theme: {
|
|
@@ -3296,7 +3269,7 @@ const useHandleCanvasDblClick = () => {
|
|
|
3296
3269
|
body: [v]
|
|
3297
3270
|
},
|
|
3298
3271
|
borderRadius: {
|
|
3299
|
-
DEFAULT: `${
|
|
3272
|
+
DEFAULT: `${j || "0"}px`
|
|
3300
3273
|
},
|
|
3301
3274
|
colors: { ...I, ...k }
|
|
3302
3275
|
}
|
|
@@ -3305,19 +3278,19 @@ const useHandleCanvasDblClick = () => {
|
|
|
3305
3278
|
typography$1,
|
|
3306
3279
|
forms,
|
|
3307
3280
|
aspectRatio,
|
|
3308
|
-
plugin(function({ addBase: P, theme:
|
|
3281
|
+
plugin(function({ addBase: P, theme: O }) {
|
|
3309
3282
|
P({
|
|
3310
3283
|
"h1,h2,h3,h4,h5,h6": {
|
|
3311
|
-
fontFamily:
|
|
3284
|
+
fontFamily: O("fontFamily.heading")
|
|
3312
3285
|
},
|
|
3313
3286
|
body: {
|
|
3314
|
-
fontFamily:
|
|
3315
|
-
color:
|
|
3316
|
-
backgroundColor:
|
|
3287
|
+
fontFamily: O("fontFamily.body"),
|
|
3288
|
+
color: O("colors.text-light"),
|
|
3289
|
+
backgroundColor: O("colors.bg-light")
|
|
3317
3290
|
},
|
|
3318
3291
|
".dark body": {
|
|
3319
|
-
color:
|
|
3320
|
-
backgroundColor:
|
|
3292
|
+
color: O("colors.text-dark"),
|
|
3293
|
+
backgroundColor: O("colors.bg-dark")
|
|
3321
3294
|
}
|
|
3322
3295
|
});
|
|
3323
3296
|
})
|
|
@@ -3416,9 +3389,9 @@ function BlocksRendererStatic({ blocks: r }) {
|
|
|
3416
3389
|
if (g === b._id || d.includes(b._id))
|
|
3417
3390
|
return null;
|
|
3418
3391
|
const v = getSlots(b), S = {};
|
|
3419
|
-
isEmpty(v) || Object.keys(v).forEach((
|
|
3420
|
-
S[
|
|
3421
|
-
v[
|
|
3392
|
+
isEmpty(v) || Object.keys(v).forEach((j) => {
|
|
3393
|
+
S[j] = React__default.Children.toArray(
|
|
3394
|
+
v[j].map((P) => /* @__PURE__ */ jsxRuntimeExports.jsx(BlocksRendererStatic, { blocks: [find(n, { _id: P })] }))
|
|
3422
3395
|
);
|
|
3423
3396
|
});
|
|
3424
3397
|
const E = filter(n, { _parent: b._id });
|
|
@@ -3650,7 +3623,7 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
|
|
|
3650
3623
|
}
|
|
3651
3624
|
}, Breadcrumb = () => {
|
|
3652
3625
|
const r = useSelectedBlockHierarchy(), [, n] = useSelectedBlockIds(), [, o] = useHighlightBlockId();
|
|
3653
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "-mx-2 bg-background px-2 py-1 text-xs text-muted-foreground", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("ol", { className: "flex items-center whitespace-nowrap", children: [
|
|
3626
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "-mx-2 border-t border-border bg-background px-2 py-1 text-xs text-muted-foreground", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("ol", { className: "flex items-center whitespace-nowrap", children: [
|
|
3654
3627
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("li", { className: "inline-flex items-center", children: [
|
|
3655
3628
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { onClick: () => n([]), variant: "ghost", className: "h-fit p-1 text-xs font-normal", children: "Body" }),
|
|
3656
3629
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, { size: 16 })
|
|
@@ -3674,7 +3647,7 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
|
|
|
3674
3647
|
i !== r.length - 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, { size: 16 })
|
|
3675
3648
|
] }, i))
|
|
3676
3649
|
] }) });
|
|
3677
|
-
}, CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-
|
|
3650
|
+
}, CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-t2oVfSyK.js")), CanvasArea = () => {
|
|
3678
3651
|
const [r] = useCodeEditor(), n = useBuilderProp("onError", noop$1);
|
|
3679
3652
|
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: [
|
|
3680
3653
|
/* @__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, {}) }) }),
|
|
@@ -4001,34 +3974,34 @@ function BiExpandVertical(r) {
|
|
|
4001
3974
|
const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
4002
3975
|
const a = useBuilderProp("outlineMenuItems", []), { t: i } = useTranslation(), [l, , c] = useHiddenBlockIds(), [, u] = useHighlightBlockId(), [d] = useAtom$1(canvasIframeAtom);
|
|
4003
3976
|
let p = null;
|
|
4004
|
-
const m = r.children.length > 0, { id: g, data: h, isSelected: b, willReceiveDrop: x, isDragging: v, isEditing: S, handleClick: E } = r, w = (
|
|
4005
|
-
|
|
4006
|
-
}, A = (
|
|
4007
|
-
|
|
4008
|
-
}, C = (
|
|
4009
|
-
|
|
4010
|
-
}, R = (
|
|
4011
|
-
|
|
3977
|
+
const m = r.children.length > 0, { id: g, data: h, isSelected: b, willReceiveDrop: x, isDragging: v, isEditing: S, handleClick: E } = r, w = (j) => {
|
|
3978
|
+
j.stopPropagation(), !l.includes(g) && r.toggle();
|
|
3979
|
+
}, A = (j) => {
|
|
3980
|
+
j.isInternal && (p = j.isOpen, j.isOpen && j.close());
|
|
3981
|
+
}, C = (j) => {
|
|
3982
|
+
j.isInternal && p !== null && (p ? j.open() : j.close(), p = null);
|
|
3983
|
+
}, R = (j) => {
|
|
3984
|
+
j.stopPropagation(), !r.isOpen && !l.includes(g) && r.toggle(), E(j);
|
|
4012
3985
|
};
|
|
4013
3986
|
useEffect$1(() => {
|
|
4014
|
-
const
|
|
3987
|
+
const j = setTimeout(() => {
|
|
4015
3988
|
x && !r.isOpen && !v && !l.includes(g) && r.toggle();
|
|
4016
3989
|
}, 500);
|
|
4017
|
-
return () => clearTimeout(
|
|
3990
|
+
return () => clearTimeout(j);
|
|
4018
3991
|
}, [x, r, v]);
|
|
4019
3992
|
const k = useMemo$1(() => {
|
|
4020
|
-
const
|
|
4021
|
-
for (let
|
|
4022
|
-
if (O
|
|
4023
|
-
const T = h[O
|
|
3993
|
+
const j = Object.keys(h), P = [];
|
|
3994
|
+
for (let O = 0; O < j.length; O++)
|
|
3995
|
+
if (j[O].endsWith("_attrs")) {
|
|
3996
|
+
const T = h[j[O]], N = Object.keys(T).join("|");
|
|
4024
3997
|
N.match(/x-data/) && P.push("data"), N.match(/x-on/) && P.push("event"), N.match(/x-show|x-if/) && P.push("show");
|
|
4025
3998
|
}
|
|
4026
3999
|
return P;
|
|
4027
|
-
}, [h]), I = (
|
|
4028
|
-
const
|
|
4000
|
+
}, [h]), I = (j, P) => {
|
|
4001
|
+
const O = d.contentDocument || d.contentWindow.document, T = O.querySelector(`[data-block-id=${j}]`);
|
|
4029
4002
|
T && T.setAttribute("data-drop", P);
|
|
4030
4003
|
const N = T.getBoundingClientRect(), L = d.getBoundingClientRect();
|
|
4031
|
-
N.top >= L.top && N.left >= L.left && N.bottom <= L.bottom && N.right <= L.right || (
|
|
4004
|
+
N.top >= L.top && N.left >= L.left && N.bottom <= L.bottom && N.right <= L.right || (O.documentElement.scrollTop = T.offsetTop - L.top);
|
|
4032
4005
|
};
|
|
4033
4006
|
return g === ROOT_TEMP_KEY ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
4034
4007
|
"button",
|
|
@@ -4050,17 +4023,17 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4050
4023
|
ref: l.includes(g) ? null : o,
|
|
4051
4024
|
onDragStart: () => A(r),
|
|
4052
4025
|
onDragEnd: () => C(r),
|
|
4053
|
-
onDragOver: (
|
|
4054
|
-
|
|
4026
|
+
onDragOver: (j) => {
|
|
4027
|
+
j.preventDefault(), I(g, "yes");
|
|
4055
4028
|
},
|
|
4056
|
-
onDragLeave: (
|
|
4057
|
-
|
|
4029
|
+
onDragLeave: (j) => {
|
|
4030
|
+
j.preventDefault(), I(g, "no");
|
|
4058
4031
|
},
|
|
4059
|
-
onDrop: (
|
|
4060
|
-
|
|
4032
|
+
onDrop: (j) => {
|
|
4033
|
+
j.preventDefault(), I(g, "no");
|
|
4061
4034
|
},
|
|
4062
4035
|
className: cn(
|
|
4063
|
-
"group flex !h-full w-full items-center justify-between space-x-px !rounded py-px outline-none",
|
|
4036
|
+
"group flex !h-full w-full items-center justify-between space-x-px !rounded py-px text-foreground/80 outline-none",
|
|
4064
4037
|
b ? "bg-blue-500 text-white" : "hover:bg-gray-200 dark:hover:bg-gray-800",
|
|
4065
4038
|
x && canAcceptChildBlock(h._type, "Icon") ? "bg-green-200" : "",
|
|
4066
4039
|
v && "opacity-20",
|
|
@@ -4081,8 +4054,8 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4081
4054
|
"div",
|
|
4082
4055
|
{
|
|
4083
4056
|
className: "ml-2 flex items-center gap-x-1 truncate text-[11px]",
|
|
4084
|
-
onDoubleClick: (
|
|
4085
|
-
|
|
4057
|
+
onDoubleClick: (j) => {
|
|
4058
|
+
j.stopPropagation(), r.edit(), r.deselect();
|
|
4086
4059
|
},
|
|
4087
4060
|
children: [
|
|
4088
4061
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: (h == null ? void 0 : h._name) || (h == null ? void 0 : h._type.split("/").pop()) }),
|
|
@@ -4095,16 +4068,16 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4095
4068
|
] })
|
|
4096
4069
|
] }),
|
|
4097
4070
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "invisible flex items-center space-x-1 pr-2 group-hover:visible", children: [
|
|
4098
|
-
!l.includes(g) && a.map((
|
|
4071
|
+
!l.includes(g) && a.map((j) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
|
|
4099
4072
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4100
4073
|
TooltipTrigger,
|
|
4101
4074
|
{
|
|
4102
4075
|
className: "cursor-pointer rounded bg-transparent hover:bg-white hover:text-blue-500",
|
|
4103
4076
|
asChild: !0,
|
|
4104
|
-
children: React__default.createElement(
|
|
4077
|
+
children: React__default.createElement(j.item, { blockId: g })
|
|
4105
4078
|
}
|
|
4106
4079
|
),
|
|
4107
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { className: "isolate z-10", children:
|
|
4080
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { className: "isolate z-10", children: j.tooltip })
|
|
4108
4081
|
] })),
|
|
4109
4082
|
canAddChildBlock(h == null ? void 0 : h._type) && !l.includes(g) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
|
|
4110
4083
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -4122,8 +4095,8 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4122
4095
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4123
4096
|
TooltipTrigger,
|
|
4124
4097
|
{
|
|
4125
|
-
onClick: (
|
|
4126
|
-
|
|
4098
|
+
onClick: (j) => {
|
|
4099
|
+
j.stopPropagation(), c(g), r.isOpen && r.toggle();
|
|
4127
4100
|
},
|
|
4128
4101
|
className: "cursor-pointer rounded bg-transparent hover:bg-white hover:text-black",
|
|
4129
4102
|
asChild: !0,
|
|
@@ -4142,7 +4115,7 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4142
4115
|
"input",
|
|
4143
4116
|
{
|
|
4144
4117
|
autoFocus: !0,
|
|
4145
|
-
className: "ml-2 w-full rounded-sm border border-
|
|
4118
|
+
className: "ml-2 !h-4 w-full rounded-sm border border-border bg-background px-1 text-[11px] outline-none",
|
|
4146
4119
|
type: "text",
|
|
4147
4120
|
defaultValue: ((n = r.data) == null ? void 0 : n._name) || ((o = r.data) == null ? void 0 : o._type),
|
|
4148
4121
|
onFocus: (a) => a.currentTarget.select(),
|
|
@@ -4229,8 +4202,8 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4229
4202
|
break;
|
|
4230
4203
|
}
|
|
4231
4204
|
};
|
|
4232
|
-
return isEmpty(treeData) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex h-full w-full items-center justify-center p-8 text-center", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "mb-1.5 text-sm text-gray-400", children: [
|
|
4233
|
-
t("
|
|
4205
|
+
return isEmpty(treeData) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-10 flex h-full w-full items-center justify-center p-8 text-center", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "mb-1.5 text-sm text-gray-400", children: [
|
|
4206
|
+
t("This page is empty"),
|
|
4234
4207
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
4235
4208
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
4236
4209
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -4516,7 +4489,7 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4516
4489
|
}
|
|
4517
4490
|
)
|
|
4518
4491
|
] }) }),
|
|
4519
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(CardFooter, { className: "flex flex-col justify-end p-3", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { disabled: o.trim() === "", onClick: () => l(), size: "sm", className: "w-
|
|
4492
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardFooter, { className: "flex flex-col justify-end p-3", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { disabled: o.trim() === "", onClick: () => l(), size: "sm", className: "w-fit", children: n("Import HTML") }) })
|
|
4520
4493
|
] });
|
|
4521
4494
|
}, ImportHTML$1 = ImportHTML, isBoolean = (r) => typeof r == "boolean" || r instanceof Boolean, isNumber = (r) => typeof r == "number" || r instanceof Number, isBigInt = (r) => typeof r == "bigint" || r instanceof BigInt, isDate = (r) => !!r && r instanceof Date, isString = (r) => typeof r == "string" || r instanceof String, isArray$4 = (r) => Array.isArray(r), isObject$1 = (r) => r instanceof Object && r !== null;
|
|
4522
4495
|
function useBool(r) {
|
|
@@ -5059,7 +5032,7 @@ const ViewData = ({ data: r, fullView: n }) => {
|
|
|
5059
5032
|
}
|
|
5060
5033
|
)
|
|
5061
5034
|
] });
|
|
5062
|
-
}, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-
|
|
5035
|
+
}, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-965l8pGL.js")), UploadImages = React__default.lazy(() => import("./UploadImages-glp4ZyQm.js")), ImagesPanel = ({
|
|
5063
5036
|
isModalView: r = !1,
|
|
5064
5037
|
onSelect: n = () => {
|
|
5065
5038
|
}
|
|
@@ -5179,7 +5152,7 @@ const ViewData = ({ data: r, fullView: n }) => {
|
|
|
5179
5152
|
placeholder: c === "page" || c === "url" ? "Enter URL" : c === "scroll" ? "#ElementID" : "Enter detail"
|
|
5180
5153
|
}
|
|
5181
5154
|
),
|
|
5182
|
-
(c === "page" || c === "url") && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
5155
|
+
(c === "page" || c === "url") && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-x-2 text-muted-foreground", children: [
|
|
5183
5156
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5184
5157
|
"input",
|
|
5185
5158
|
{
|
|
@@ -5188,7 +5161,7 @@ const ViewData = ({ data: r, fullView: n }) => {
|
|
|
5188
5161
|
spellCheck: "false",
|
|
5189
5162
|
type: "checkbox",
|
|
5190
5163
|
defaultChecked: d === "_blank",
|
|
5191
|
-
className: "cursor-pointer rounded-md border border-border",
|
|
5164
|
+
className: "!w-fit cursor-pointer rounded-md border border-border",
|
|
5192
5165
|
onChange: () => o({ ...n, target: d === "_blank" ? "_self" : "_blank" })
|
|
5193
5166
|
}
|
|
5194
5167
|
),
|
|
@@ -5265,12 +5238,12 @@ const ViewData = ({ data: r, fullView: n }) => {
|
|
|
5265
5238
|
return null;
|
|
5266
5239
|
const c = r.includes(o._id);
|
|
5267
5240
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "py-2 text-xs hover:no-underline", children: [
|
|
5268
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-x-2 border-b border-border bg-
|
|
5241
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-x-2 border-b border-border bg-background py-2 font-normal text-muted-foreground", children: [
|
|
5269
5242
|
o._name || o._type,
|
|
5270
|
-
"
|
|
5243
|
+
" ",
|
|
5271
5244
|
i("visibility settings")
|
|
5272
5245
|
] }),
|
|
5273
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-2
|
|
5246
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-2 pt-2", children: [
|
|
5274
5247
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5275
5248
|
Switch,
|
|
5276
5249
|
{
|
|
@@ -5539,13 +5512,13 @@ function ManualClasses() {
|
|
|
5539
5512
|
const k = u.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
|
|
5540
5513
|
a(l, k, !0), d("");
|
|
5541
5514
|
}, [b, x] = useState$1([]), v = ({ value: k }) => {
|
|
5542
|
-
const I = k.trim().toLowerCase(),
|
|
5515
|
+
const I = k.trim().toLowerCase(), j = I.match(/.+:/g);
|
|
5543
5516
|
let P = [];
|
|
5544
|
-
if (
|
|
5545
|
-
const [
|
|
5517
|
+
if (j && j.length > 0) {
|
|
5518
|
+
const [O] = j, T = I.replace(O, "");
|
|
5546
5519
|
P = fuse.search(T).map((L) => ({
|
|
5547
5520
|
...L,
|
|
5548
|
-
item: { ...L.item, name:
|
|
5521
|
+
item: { ...L.item, name: O + L.item.name }
|
|
5549
5522
|
}));
|
|
5550
5523
|
} else
|
|
5551
5524
|
P = fuse.search(I);
|
|
@@ -5614,8 +5587,8 @@ function ManualClasses() {
|
|
|
5614
5587
|
},
|
|
5615
5588
|
theme: {
|
|
5616
5589
|
suggestion: "bg-transparent",
|
|
5617
|
-
suggestionHighlighted: "!bg-gray-300 ",
|
|
5618
|
-
suggestionsContainerOpen: "absolute bg-
|
|
5590
|
+
suggestionHighlighted: "!bg-gray-300 dark:!bg-gray-800 cursor-pointer",
|
|
5591
|
+
suggestionsContainerOpen: "absolute bg-background no-scrollbar z-50 max-h-[230px] overflow-y-auto w-full border border-border rounded-md"
|
|
5619
5592
|
}
|
|
5620
5593
|
}
|
|
5621
5594
|
) }),
|
|
@@ -6299,35 +6272,35 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6299
6272
|
)) }), THROTTLE_TIME = 50, AdvanceChoices = (r) => {
|
|
6300
6273
|
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), [A, C] = useState$1(!1);
|
|
6301
6274
|
useEffect$1(() => {
|
|
6302
|
-
const { value: P, unit:
|
|
6303
|
-
if (
|
|
6275
|
+
const { value: P, unit: O } = getClassValueAndUnit(l);
|
|
6276
|
+
if (O === "") {
|
|
6304
6277
|
i(P), h(d != null && d.toLowerCase().includes("width") ? "%" : first(p));
|
|
6305
6278
|
return;
|
|
6306
6279
|
}
|
|
6307
|
-
h(
|
|
6280
|
+
h(O), i(O === "class" || isEmpty(P) ? "" : P);
|
|
6308
6281
|
}, [l, d, p]);
|
|
6309
6282
|
const R = useThrottledCallback((P) => c(P), [c], THROTTLE_TIME), k = useThrottledCallback((P) => c(P, !1), [c], THROTTLE_TIME), I = useCallback$1(
|
|
6310
6283
|
(P = !1) => {
|
|
6311
|
-
const
|
|
6312
|
-
if (get$1(
|
|
6284
|
+
const O = getUserInputValues(`${a}`, p);
|
|
6285
|
+
if (get$1(O, "error", !1)) {
|
|
6313
6286
|
x(!0);
|
|
6314
6287
|
return;
|
|
6315
6288
|
}
|
|
6316
|
-
const T = get$1(
|
|
6289
|
+
const T = get$1(O, "unit") !== "" ? get$1(O, "unit") : g;
|
|
6317
6290
|
if (T === "auto" || T === "none") {
|
|
6318
6291
|
R(`${u}${T}`);
|
|
6319
6292
|
return;
|
|
6320
6293
|
}
|
|
6321
|
-
if (get$1(
|
|
6294
|
+
if (get$1(O, "value") === "")
|
|
6322
6295
|
return;
|
|
6323
|
-
const L = `${get$1(
|
|
6296
|
+
const L = `${get$1(O, "value", "").startsWith("-") ? "-" : ""}${u}[${get$1(O, "value", "").replace("-", "")}${T === "-" ? "" : T}]`;
|
|
6324
6297
|
P ? k(L) : R(L);
|
|
6325
6298
|
},
|
|
6326
6299
|
[R, k, a, g, u, p]
|
|
6327
|
-
),
|
|
6300
|
+
), j = useCallback$1(
|
|
6328
6301
|
(P) => {
|
|
6329
|
-
const
|
|
6330
|
-
if (get$1(
|
|
6302
|
+
const O = getUserInputValues(`${a}`, p);
|
|
6303
|
+
if (get$1(O, "error", !1)) {
|
|
6331
6304
|
x(!0);
|
|
6332
6305
|
return;
|
|
6333
6306
|
}
|
|
@@ -6335,9 +6308,9 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6335
6308
|
R(`${u}${P}`);
|
|
6336
6309
|
return;
|
|
6337
6310
|
}
|
|
6338
|
-
if (get$1(
|
|
6311
|
+
if (get$1(O, "value") === "")
|
|
6339
6312
|
return;
|
|
6340
|
-
const T = get$1(
|
|
6313
|
+
const T = get$1(O, "unit") !== "" ? get$1(O, "unit") : P, L = `${get$1(O, "value", "").startsWith("-") ? "-" : ""}${u}[${get$1(O, "value", "").replace("-", "")}${T === "-" ? "" : T}]`;
|
|
6341
6314
|
R(L);
|
|
6342
6315
|
},
|
|
6343
6316
|
[R, a, u, p]
|
|
@@ -6361,8 +6334,8 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6361
6334
|
if (P.keyCode !== 38 && P.keyCode !== 40)
|
|
6362
6335
|
return;
|
|
6363
6336
|
P.preventDefault(), C(!0);
|
|
6364
|
-
const
|
|
6365
|
-
let T = isNaN$1(
|
|
6337
|
+
const O = parseInt$1(P.target.value);
|
|
6338
|
+
let T = isNaN$1(O) ? 0 : O;
|
|
6366
6339
|
P.keyCode === 38 && (T += 1), P.keyCode === 40 && (T -= 1);
|
|
6367
6340
|
const N = `${T}`, M = `${N.startsWith("-") ? "-" : ""}${u}[${N.replace("-", "")}${g === "-" ? "" : g}]`;
|
|
6368
6341
|
k(M);
|
|
@@ -6375,8 +6348,8 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6375
6348
|
x(!1), i(P.target.value);
|
|
6376
6349
|
},
|
|
6377
6350
|
onClick: (P) => {
|
|
6378
|
-
var
|
|
6379
|
-
(
|
|
6351
|
+
var O;
|
|
6352
|
+
(O = P == null ? void 0 : P.target) == null || O.select(), o(!1);
|
|
6380
6353
|
},
|
|
6381
6354
|
value: E ? v : a,
|
|
6382
6355
|
className: "h-6 w-14 rounded rounded-r-none border border-transparent bg-background pl-2 text-sm focus-visible:outline-0".concat(
|
|
@@ -6404,7 +6377,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6404
6377
|
units: p,
|
|
6405
6378
|
current: g,
|
|
6406
6379
|
onSelect: (P) => {
|
|
6407
|
-
o(!1), h(P),
|
|
6380
|
+
o(!1), h(P), j(P);
|
|
6408
6381
|
}
|
|
6409
6382
|
}
|
|
6410
6383
|
) }) })
|
|
@@ -6417,14 +6390,14 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6417
6390
|
onDragEnd: (P) => {
|
|
6418
6391
|
if (S(() => ""), w(!1), isEmpty(P))
|
|
6419
6392
|
return;
|
|
6420
|
-
const
|
|
6393
|
+
const O = `${P}`, N = `${O.startsWith("-") ? "-" : ""}${u}[${O.replace("-", "")}${g === "-" ? "" : g}]`;
|
|
6421
6394
|
R(N);
|
|
6422
6395
|
},
|
|
6423
6396
|
onDrag: (P) => {
|
|
6424
6397
|
if (isEmpty(P))
|
|
6425
6398
|
return;
|
|
6426
6399
|
S(P);
|
|
6427
|
-
const
|
|
6400
|
+
const O = `${P}`, N = `${O.startsWith("-") ? "-" : ""}${u}[${O.replace("-", "")}${g === "-" ? "" : g}]`;
|
|
6428
6401
|
k(N);
|
|
6429
6402
|
},
|
|
6430
6403
|
currentValue: a,
|
|
@@ -6524,9 +6497,9 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6524
6497
|
const { t: n } = useTranslation(), { type: o = "icons", label: a, property: i, onEmitChange: l = () => {
|
|
6525
6498
|
}, 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(
|
|
6526
6499
|
(k, I = !0) => {
|
|
6527
|
-
const
|
|
6528
|
-
(d || p !== "") && (
|
|
6529
|
-
const P = generateFullClsName(
|
|
6500
|
+
const j = { dark: d, mq: m, mod: p, cls: k, property: i, fullCls: "" };
|
|
6501
|
+
(d || p !== "") && (j.mq = "xs");
|
|
6502
|
+
const P = generateFullClsName(j);
|
|
6530
6503
|
h(x, [P], I);
|
|
6531
6504
|
},
|
|
6532
6505
|
[x, d, m, p, i, h]
|
|
@@ -7461,12 +7434,12 @@ const CoreBlock = ({ block: r, disabled: n, parentId: o }) => {
|
|
|
7461
7434
|
] }) }) : null
|
|
7462
7435
|
)
|
|
7463
7436
|
);
|
|
7464
|
-
}, AddBlocksPanel = ({
|
|
7437
|
+
}, addBlockTabAtom = atomWithStorage("__add_block_tab", "library"), AddBlocksPanel = ({
|
|
7465
7438
|
className: r,
|
|
7466
7439
|
showHeading: n = !0,
|
|
7467
7440
|
parentId: o = void 0
|
|
7468
7441
|
}) => {
|
|
7469
|
-
const { t: a } = useTranslation(), [i, l] =
|
|
7442
|
+
const { t: a } = useTranslation(), [i, l] = useAtom$1(addBlockTabAtom), [, c] = useAtom$1(showPredefinedBlockCategoryAtom), u = useBuilderProp("importHTMLSupport", !0);
|
|
7470
7443
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("flex h-full w-full flex-col overflow-hidden", r), children: [
|
|
7471
7444
|
n ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mb-2 flex flex-col justify-between rounded-md bg-background/30 p-1", children: [
|
|
7472
7445
|
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "flex flex-col items-baseline px-1 text-xl font-semibold xl:flex-col", children: a("Add block") }),
|
|
@@ -7479,8 +7452,8 @@ const CoreBlock = ({ block: r, disabled: n, parentId: o }) => {
|
|
|
7479
7452
|
c(""), l(d);
|
|
7480
7453
|
},
|
|
7481
7454
|
value: i,
|
|
7482
|
-
className: cn("h-max"
|
|
7483
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(TabsList$1, { className: "grid w-full " + (u ? "grid-cols-3" : "grid-cols-
|
|
7455
|
+
className: cn("h-max"),
|
|
7456
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(TabsList$1, { className: "grid w-full " + (u ? "grid-cols-3" : "grid-cols-2"), children: [
|
|
7484
7457
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TabsTrigger, { value: "library", children: a("library") }),
|
|
7485
7458
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TabsTrigger, { value: "core", children: a("blocks") }),
|
|
7486
7459
|
u ? /* @__PURE__ */ jsxRuntimeExports.jsx(TabsTrigger, { value: "html", children: a("import") }) : null
|
|
@@ -8760,7 +8733,7 @@ function requireReactIs_development() {
|
|
|
8760
8733
|
}
|
|
8761
8734
|
}
|
|
8762
8735
|
}
|
|
8763
|
-
var R = d, k = p, I = u,
|
|
8736
|
+
var R = d, k = p, I = u, j = c, P = n, O = m, T = a, N = x, L = b, M = o, W = l, J = i, F = g, V = !1;
|
|
8764
8737
|
function q(K) {
|
|
8765
8738
|
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;
|
|
8766
8739
|
}
|
|
@@ -8800,7 +8773,7 @@ function requireReactIs_development() {
|
|
|
8800
8773
|
function se(K) {
|
|
8801
8774
|
return C(K) === g;
|
|
8802
8775
|
}
|
|
8803
|
-
reactIs_development.AsyncMode = R, reactIs_development.ConcurrentMode = k, reactIs_development.ContextConsumer = I, reactIs_development.ContextProvider =
|
|
8776
|
+
reactIs_development.AsyncMode = R, reactIs_development.ConcurrentMode = k, reactIs_development.ContextConsumer = I, reactIs_development.ContextProvider = j, reactIs_development.Element = P, reactIs_development.ForwardRef = O, reactIs_development.Fragment = T, reactIs_development.Lazy = N, reactIs_development.Memo = L, reactIs_development.Portal = M, 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 = A, reactIs_development.typeOf = C;
|
|
8804
8777
|
}()), reactIs_development;
|
|
8805
8778
|
}
|
|
8806
8779
|
process.env.NODE_ENV === "production" ? reactIs$1.exports = requireReactIs_production_min() : reactIs$1.exports = requireReactIs_development();
|
|
@@ -10972,11 +10945,11 @@ function useScrollIntoView({
|
|
|
10972
10945
|
}) - (m.current ? 0 : w);
|
|
10973
10946
|
function C() {
|
|
10974
10947
|
d.current === 0 && (d.current = performance.now());
|
|
10975
|
-
const k = performance.now() - d.current, I = h || r === 0 ? 1 : k / r,
|
|
10948
|
+
const k = performance.now() - d.current, I = h || r === 0 ? 1 : k / r, j = w + A * a(I);
|
|
10976
10949
|
setScrollParam({
|
|
10977
10950
|
parent: m.current,
|
|
10978
10951
|
axis: n,
|
|
10979
|
-
distance:
|
|
10952
|
+
distance: j
|
|
10980
10953
|
}), !p.current && I < 1 ? u.current = requestAnimationFrame(C) : (typeof o == "function" && o(), d.current = 0, u.current = 0, b());
|
|
10981
10954
|
}
|
|
10982
10955
|
C();
|
|
@@ -11039,9 +11012,9 @@ function extractSystemStyles(r) {
|
|
|
11039
11012
|
fw: R,
|
|
11040
11013
|
lts: k,
|
|
11041
11014
|
ta: I,
|
|
11042
|
-
lh:
|
|
11015
|
+
lh: j,
|
|
11043
11016
|
fs: P,
|
|
11044
|
-
tt:
|
|
11017
|
+
tt: O,
|
|
11045
11018
|
td: T,
|
|
11046
11019
|
w: N,
|
|
11047
11020
|
miw: L,
|
|
@@ -11128,9 +11101,9 @@ function extractSystemStyles(r) {
|
|
|
11128
11101
|
fw: R,
|
|
11129
11102
|
lts: k,
|
|
11130
11103
|
ta: I,
|
|
11131
|
-
lh:
|
|
11104
|
+
lh: j,
|
|
11132
11105
|
fs: P,
|
|
11133
|
-
tt:
|
|
11106
|
+
tt: O,
|
|
11134
11107
|
td: T,
|
|
11135
11108
|
w: N,
|
|
11136
11109
|
miw: L,
|
|
@@ -12216,7 +12189,7 @@ const defaultProps$A = {
|
|
|
12216
12189
|
"unstyled",
|
|
12217
12190
|
"span",
|
|
12218
12191
|
"__staticSelector"
|
|
12219
|
-
]), { classes:
|
|
12192
|
+
]), { classes: j, cx: P } = useStyles$H({
|
|
12220
12193
|
color: u,
|
|
12221
12194
|
lineClamp: m,
|
|
12222
12195
|
truncate: g,
|
|
@@ -12232,7 +12205,7 @@ const defaultProps$A = {
|
|
|
12232
12205
|
}, { unstyled: C, name: k || "Text", variant: p, size: i });
|
|
12233
12206
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$14({
|
|
12234
12207
|
ref: n,
|
|
12235
|
-
className: P(
|
|
12208
|
+
className: P(j.root, { [j.gradient]: p === "gradient" }, a),
|
|
12236
12209
|
component: R ? "span" : "div"
|
|
12237
12210
|
}, I));
|
|
12238
12211
|
});
|
|
@@ -12498,39 +12471,39 @@ function SelectItems({
|
|
|
12498
12471
|
size: g
|
|
12499
12472
|
}), w = [], A = [];
|
|
12500
12473
|
let C = null;
|
|
12501
|
-
const R = (I,
|
|
12474
|
+
const R = (I, j) => {
|
|
12502
12475
|
const P = typeof i == "function" ? i(I.value) : !1;
|
|
12503
12476
|
return /* @__PURE__ */ React__default.createElement(m, __spreadValues$$({
|
|
12504
12477
|
key: I.value,
|
|
12505
12478
|
className: E.item,
|
|
12506
12479
|
"data-disabled": I.disabled || void 0,
|
|
12507
|
-
"data-hovered": !I.disabled && n ===
|
|
12480
|
+
"data-hovered": !I.disabled && n === j || void 0,
|
|
12508
12481
|
"data-selected": !I.disabled && P || void 0,
|
|
12509
12482
|
selected: P,
|
|
12510
|
-
onMouseEnter: () => u(
|
|
12511
|
-
id: `${l}-${
|
|
12483
|
+
onMouseEnter: () => u(j),
|
|
12484
|
+
id: `${l}-${j}`,
|
|
12512
12485
|
role: "option",
|
|
12513
12486
|
tabIndex: -1,
|
|
12514
|
-
"aria-selected": n ===
|
|
12515
|
-
ref: (
|
|
12516
|
-
p && p.current && (p.current[I.value] =
|
|
12487
|
+
"aria-selected": n === j,
|
|
12488
|
+
ref: (O) => {
|
|
12489
|
+
p && p.current && (p.current[I.value] = O);
|
|
12517
12490
|
},
|
|
12518
|
-
onMouseDown: I.disabled ? null : (
|
|
12519
|
-
|
|
12491
|
+
onMouseDown: I.disabled ? null : (O) => {
|
|
12492
|
+
O.preventDefault(), d(I);
|
|
12520
12493
|
},
|
|
12521
12494
|
disabled: I.disabled,
|
|
12522
12495
|
variant: S
|
|
12523
12496
|
}, I));
|
|
12524
12497
|
};
|
|
12525
12498
|
let k = null;
|
|
12526
|
-
if (r.forEach((I,
|
|
12527
|
-
I.creatable ? C =
|
|
12499
|
+
if (r.forEach((I, j) => {
|
|
12500
|
+
I.creatable ? C = j : I.group ? (k !== I.group && (k = I.group, A.push(/* @__PURE__ */ React__default.createElement("div", {
|
|
12528
12501
|
className: E.separator,
|
|
12529
|
-
key: `__mantine-divider-${
|
|
12502
|
+
key: `__mantine-divider-${j}`
|
|
12530
12503
|
}, /* @__PURE__ */ React__default.createElement(Divider, {
|
|
12531
12504
|
classNames: { label: E.separatorLabel },
|
|
12532
12505
|
label: I.group
|
|
12533
|
-
})))), A.push(R(I,
|
|
12506
|
+
})))), A.push(R(I, j))) : w.push(R(I, j));
|
|
12534
12507
|
}), b) {
|
|
12535
12508
|
const I = r[C];
|
|
12536
12509
|
w.push(/* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -12538,12 +12511,12 @@ function SelectItems({
|
|
|
12538
12511
|
className: E.item,
|
|
12539
12512
|
"data-hovered": n === C || void 0,
|
|
12540
12513
|
onMouseEnter: () => u(C),
|
|
12541
|
-
onMouseDown: (
|
|
12542
|
-
|
|
12514
|
+
onMouseDown: (j) => {
|
|
12515
|
+
j.preventDefault(), d(I);
|
|
12543
12516
|
},
|
|
12544
12517
|
tabIndex: -1,
|
|
12545
|
-
ref: (
|
|
12546
|
-
p && p.current && (p.current[I.value] =
|
|
12518
|
+
ref: (j) => {
|
|
12519
|
+
p && p.current && (p.current[I.value] = j);
|
|
12547
12520
|
}
|
|
12548
12521
|
}, x));
|
|
12549
12522
|
}
|
|
@@ -12924,8 +12897,8 @@ const useHover = function(r, n) {
|
|
|
12924
12897
|
floating: b
|
|
12925
12898
|
},
|
|
12926
12899
|
refs: x
|
|
12927
|
-
} = r, v = useFloatingTree(), S = useFloatingParentNodeId(), E = useLatestRef(i), w = useLatestRef(a), A = React.useRef(), C = React.useRef(), R = React.useRef(), k = React.useRef(), I = React.useRef(!0),
|
|
12928
|
-
}),
|
|
12900
|
+
} = r, v = useFloatingTree(), S = useFloatingParentNodeId(), E = useLatestRef(i), w = useLatestRef(a), A = React.useRef(), C = React.useRef(), R = React.useRef(), k = React.useRef(), I = React.useRef(!0), j = React.useRef(!1), P = React.useRef(() => {
|
|
12901
|
+
}), O = React.useCallback(() => {
|
|
12929
12902
|
var M;
|
|
12930
12903
|
const W = (M = m.current.openEvent) == null ? void 0 : M.type;
|
|
12931
12904
|
return (W == null ? void 0 : W.includes("mouse")) && W !== "mousedown";
|
|
@@ -12943,13 +12916,13 @@ const useHover = function(r, n) {
|
|
|
12943
12916
|
if (!o || !E.current || !d)
|
|
12944
12917
|
return;
|
|
12945
12918
|
function M() {
|
|
12946
|
-
|
|
12919
|
+
O() && p(!1);
|
|
12947
12920
|
}
|
|
12948
12921
|
const W = getDocument(b).documentElement;
|
|
12949
12922
|
return W.addEventListener("mouseleave", M), () => {
|
|
12950
12923
|
W.removeEventListener("mouseleave", M);
|
|
12951
12924
|
};
|
|
12952
|
-
}, [b, d, p, o, E, m,
|
|
12925
|
+
}, [b, d, p, o, E, m, O]);
|
|
12953
12926
|
const T = React.useCallback(function(M) {
|
|
12954
12927
|
M === void 0 && (M = !0);
|
|
12955
12928
|
const W = getDelay(w.current, "close", A.current);
|
|
@@ -12957,9 +12930,9 @@ const useHover = function(r, n) {
|
|
|
12957
12930
|
}, [w, p]), N = React.useCallback(() => {
|
|
12958
12931
|
P.current(), R.current = void 0;
|
|
12959
12932
|
}, []), L = React.useCallback(() => {
|
|
12960
|
-
if (
|
|
12933
|
+
if (j.current) {
|
|
12961
12934
|
const M = getDocument(x.floating.current).body;
|
|
12962
|
-
M.style.pointerEvents = "", M.removeAttribute(safePolygonIdentifier),
|
|
12935
|
+
M.style.pointerEvents = "", M.removeAttribute(safePolygonIdentifier), j.current = !1;
|
|
12963
12936
|
}
|
|
12964
12937
|
}, [x]);
|
|
12965
12938
|
return React.useEffect(() => {
|
|
@@ -13021,9 +12994,9 @@ const useHover = function(r, n) {
|
|
|
13021
12994
|
}
|
|
13022
12995
|
}, [h, b, o, r, l, c, u, T, N, L, p, d, v, w, E, m]), index(() => {
|
|
13023
12996
|
var M;
|
|
13024
|
-
if (o && d && (M = E.current) != null && M.__options.blockPointerEvents &&
|
|
12997
|
+
if (o && d && (M = E.current) != null && M.__options.blockPointerEvents && O()) {
|
|
13025
12998
|
const F = getDocument(b).body;
|
|
13026
|
-
if (F.setAttribute(safePolygonIdentifier, ""), F.style.pointerEvents = "none",
|
|
12999
|
+
if (F.setAttribute(safePolygonIdentifier, ""), F.style.pointerEvents = "none", j.current = !0, isElement(h) && b) {
|
|
13027
13000
|
var W, J;
|
|
13028
13001
|
const V = h, q = v == null || (W = v.nodesRef.current.find((G) => G.id === S)) == null || (J = W.context) == null ? void 0 : J.elements.floating;
|
|
13029
13002
|
return q && (q.style.pointerEvents = ""), V.style.pointerEvents = "auto", b.style.pointerEvents = "auto", () => {
|
|
@@ -13031,7 +13004,7 @@ const useHover = function(r, n) {
|
|
|
13031
13004
|
};
|
|
13032
13005
|
}
|
|
13033
13006
|
}
|
|
13034
|
-
}, [o, d, S, b, h, v, E, m,
|
|
13007
|
+
}, [o, d, S, b, h, v, E, m, O]), index(() => {
|
|
13035
13008
|
d || (A.current = void 0, N(), L());
|
|
13036
13009
|
}, [d, N, L]), React.useEffect(() => () => {
|
|
13037
13010
|
N(), clearTimeout(C.current), clearTimeout(k.current), L();
|
|
@@ -13251,12 +13224,12 @@ const bubbleHandlerKeys = {
|
|
|
13251
13224
|
} = n === void 0 ? {} : n;
|
|
13252
13225
|
const w = useFloatingTree(), A = useFloatingParentNodeId() != null, C = useEvent(typeof h == "function" ? h : () => !1), R = typeof h == "function" ? C : h, k = React.useRef(!1), {
|
|
13253
13226
|
escapeKeyBubbles: I,
|
|
13254
|
-
outsidePressBubbles:
|
|
13227
|
+
outsidePressBubbles: j
|
|
13255
13228
|
} = normalizeBubblesProp(E);
|
|
13256
13229
|
return React.useEffect(() => {
|
|
13257
13230
|
if (!o || !m)
|
|
13258
13231
|
return;
|
|
13259
|
-
p.current.__escapeKeyBubbles = I, p.current.__outsidePressBubbles =
|
|
13232
|
+
p.current.__escapeKeyBubbles = I, p.current.__outsidePressBubbles = j;
|
|
13260
13233
|
function P(M) {
|
|
13261
13234
|
if (M.key === "Escape") {
|
|
13262
13235
|
const W = w ? getChildren(w.nodesRef.current, l) : [];
|
|
@@ -13281,7 +13254,7 @@ const bubbleHandlerKeys = {
|
|
|
13281
13254
|
}), a(!1);
|
|
13282
13255
|
}
|
|
13283
13256
|
}
|
|
13284
|
-
function
|
|
13257
|
+
function O(M) {
|
|
13285
13258
|
const W = k.current;
|
|
13286
13259
|
if (k.current = !1, W || typeof R == "function" && !R(M))
|
|
13287
13260
|
return;
|
|
@@ -13323,7 +13296,7 @@ const bubbleHandlerKeys = {
|
|
|
13323
13296
|
a(!1);
|
|
13324
13297
|
}
|
|
13325
13298
|
const N = getDocument(d);
|
|
13326
|
-
g && N.addEventListener("keydown", P), R && N.addEventListener(b,
|
|
13299
|
+
g && N.addEventListener("keydown", P), R && N.addEventListener(b, O);
|
|
13327
13300
|
let L = [];
|
|
13328
13301
|
return S && (isElement(u) && (L = getOverflowAncestors(u)), isElement(d) && (L = L.concat(getOverflowAncestors(d))), !isElement(c) && c && c.contextElement && (L = L.concat(getOverflowAncestors(c.contextElement)))), L = L.filter((M) => {
|
|
13329
13302
|
var W;
|
|
@@ -13333,11 +13306,11 @@ const bubbleHandlerKeys = {
|
|
|
13333
13306
|
passive: !0
|
|
13334
13307
|
});
|
|
13335
13308
|
}), () => {
|
|
13336
|
-
g && N.removeEventListener("keydown", P), R && N.removeEventListener(b,
|
|
13309
|
+
g && N.removeEventListener("keydown", P), R && N.removeEventListener(b, O), L.forEach((M) => {
|
|
13337
13310
|
M.removeEventListener("scroll", T);
|
|
13338
13311
|
});
|
|
13339
13312
|
};
|
|
13340
|
-
}, [p, d, u, c, g, R, b, i, w, l, o, a, S, m, I,
|
|
13313
|
+
}, [p, d, u, c, g, R, b, i, w, l, o, a, S, m, I, j, A]), React.useEffect(() => {
|
|
13341
13314
|
k.current = !1;
|
|
13342
13315
|
}, [R, b]), React.useMemo(() => m ? {
|
|
13343
13316
|
reference: {
|
|
@@ -14027,9 +14000,9 @@ function Popover(r) {
|
|
|
14027
14000
|
arrowRadius: R,
|
|
14028
14001
|
arrowPosition: k,
|
|
14029
14002
|
unstyled: I,
|
|
14030
|
-
classNames:
|
|
14003
|
+
classNames: j,
|
|
14031
14004
|
styles: P,
|
|
14032
|
-
closeOnClickOutside:
|
|
14005
|
+
closeOnClickOutside: O,
|
|
14033
14006
|
withinPortal: T,
|
|
14034
14007
|
portalProps: N,
|
|
14035
14008
|
closeOnEscape: L,
|
|
@@ -14102,7 +14075,7 @@ function Popover(r) {
|
|
|
14102
14075
|
onOpen: F,
|
|
14103
14076
|
onClose: J
|
|
14104
14077
|
});
|
|
14105
|
-
useClickOutside(() => be.opened &&
|
|
14078
|
+
useClickOutside(() => be.opened && O && be.onClose(), M, [se, Z]);
|
|
14106
14079
|
const Ze = useCallback$1((ge) => {
|
|
14107
14080
|
K(ge), be.floating.reference(ge);
|
|
14108
14081
|
}, [be.floating.reference]), Ne = useCallback$1((ge) => {
|
|
@@ -14143,7 +14116,7 @@ function Popover(r) {
|
|
|
14143
14116
|
withRoles: _,
|
|
14144
14117
|
targetProps: ae,
|
|
14145
14118
|
__staticSelector: te,
|
|
14146
|
-
classNames:
|
|
14119
|
+
classNames: j,
|
|
14147
14120
|
styles: P,
|
|
14148
14121
|
unstyled: I,
|
|
14149
14122
|
variant: re,
|
|
@@ -14295,7 +14268,7 @@ function useInputProps(r, n, o) {
|
|
|
14295
14268
|
inputContainer: R,
|
|
14296
14269
|
inputWrapperOrder: k,
|
|
14297
14270
|
withAsterisk: I,
|
|
14298
|
-
variant:
|
|
14271
|
+
variant: j
|
|
14299
14272
|
} = a, P = __objRest$A(a, [
|
|
14300
14273
|
"label",
|
|
14301
14274
|
"description",
|
|
@@ -14318,7 +14291,7 @@ function useInputProps(r, n, o) {
|
|
|
14318
14291
|
"inputWrapperOrder",
|
|
14319
14292
|
"withAsterisk",
|
|
14320
14293
|
"variant"
|
|
14321
|
-
]),
|
|
14294
|
+
]), O = useId$2(w), { systemStyles: T, rest: N } = extractSystemStyles(P), L = __spreadValues$R({
|
|
14322
14295
|
label: i,
|
|
14323
14296
|
description: l,
|
|
14324
14297
|
error: c,
|
|
@@ -14332,13 +14305,13 @@ function useInputProps(r, n, o) {
|
|
|
14332
14305
|
descriptionProps: S,
|
|
14333
14306
|
unstyled: g,
|
|
14334
14307
|
styles: p,
|
|
14335
|
-
id:
|
|
14308
|
+
id: O,
|
|
14336
14309
|
size: A,
|
|
14337
14310
|
style: C,
|
|
14338
14311
|
inputContainer: R,
|
|
14339
14312
|
inputWrapperOrder: k,
|
|
14340
14313
|
withAsterisk: I,
|
|
14341
|
-
variant:
|
|
14314
|
+
variant: j
|
|
14342
14315
|
}, E);
|
|
14343
14316
|
return __spreadProps$z(__spreadValues$R({}, N), {
|
|
14344
14317
|
classNames: d,
|
|
@@ -14350,11 +14323,11 @@ function useInputProps(r, n, o) {
|
|
|
14350
14323
|
classNames: d,
|
|
14351
14324
|
styles: p,
|
|
14352
14325
|
unstyled: g,
|
|
14353
|
-
id:
|
|
14326
|
+
id: O,
|
|
14354
14327
|
size: A,
|
|
14355
14328
|
__staticSelector: h,
|
|
14356
14329
|
error: c,
|
|
14357
|
-
variant:
|
|
14330
|
+
variant: j
|
|
14358
14331
|
}
|
|
14359
14332
|
});
|
|
14360
14333
|
}
|
|
@@ -14643,14 +14616,14 @@ const defaultProps$q = {
|
|
|
14643
14616
|
"inputWrapperOrder",
|
|
14644
14617
|
"withAsterisk",
|
|
14645
14618
|
"variant"
|
|
14646
|
-
]), { classes:
|
|
14619
|
+
]), { classes: j, cx: P } = useStyles$w(null, {
|
|
14647
14620
|
classNames: x,
|
|
14648
14621
|
styles: v,
|
|
14649
14622
|
name: ["InputWrapper", w],
|
|
14650
14623
|
unstyled: A,
|
|
14651
14624
|
variant: k,
|
|
14652
14625
|
size: S
|
|
14653
|
-
}),
|
|
14626
|
+
}), O = {
|
|
14654
14627
|
classNames: x,
|
|
14655
14628
|
styles: v,
|
|
14656
14629
|
unstyled: A,
|
|
@@ -14663,15 +14636,15 @@ const defaultProps$q = {
|
|
|
14663
14636
|
id: u ? `${u}-label` : void 0,
|
|
14664
14637
|
htmlFor: u,
|
|
14665
14638
|
required: T
|
|
14666
|
-
},
|
|
14639
|
+
}, O), g), i), V = p && /* @__PURE__ */ React__default.createElement(InputDescription, __spreadProps$x(__spreadValues$M(__spreadValues$M({
|
|
14667
14640
|
key: "description"
|
|
14668
|
-
}, h),
|
|
14669
|
-
size: (h == null ? void 0 : h.size) ||
|
|
14641
|
+
}, h), O), {
|
|
14642
|
+
size: (h == null ? void 0 : h.size) || O.size,
|
|
14670
14643
|
id: (h == null ? void 0 : h.id) || L
|
|
14671
14644
|
}), p), q = /* @__PURE__ */ React__default.createElement(Fragment, {
|
|
14672
14645
|
key: "input"
|
|
14673
|
-
}, E(l)), G = typeof d != "boolean" && d && /* @__PURE__ */ React__default.createElement(InputError, __spreadProps$x(__spreadValues$M(__spreadValues$M({}, b),
|
|
14674
|
-
size: (b == null ? void 0 : b.size) ||
|
|
14646
|
+
}, E(l)), G = typeof d != "boolean" && d && /* @__PURE__ */ React__default.createElement(InputError, __spreadProps$x(__spreadValues$M(__spreadValues$M({}, b), O), {
|
|
14647
|
+
size: (b == null ? void 0 : b.size) || O.size,
|
|
14675
14648
|
key: "error",
|
|
14676
14649
|
id: (b == null ? void 0 : b.id) || N
|
|
14677
14650
|
}), d), ee = C.map((z) => {
|
|
@@ -14696,7 +14669,7 @@ const defaultProps$q = {
|
|
|
14696
14669
|
hasError: !!G
|
|
14697
14670
|
}))
|
|
14698
14671
|
}, /* @__PURE__ */ React__default.createElement(Box, __spreadValues$M({
|
|
14699
|
-
className: P(
|
|
14672
|
+
className: P(j.root, a),
|
|
14700
14673
|
ref: n
|
|
14701
14674
|
}, I), ee));
|
|
14702
14675
|
});
|
|
@@ -14916,7 +14889,7 @@ const defaultProps$o = {
|
|
|
14916
14889
|
sx: R,
|
|
14917
14890
|
unstyled: k,
|
|
14918
14891
|
pointer: I
|
|
14919
|
-
} = o,
|
|
14892
|
+
} = o, j = __objRest$u(o, [
|
|
14920
14893
|
"className",
|
|
14921
14894
|
"error",
|
|
14922
14895
|
"required",
|
|
@@ -14938,7 +14911,7 @@ const defaultProps$o = {
|
|
|
14938
14911
|
"sx",
|
|
14939
14912
|
"unstyled",
|
|
14940
14913
|
"pointer"
|
|
14941
|
-
]), { offsetBottom: P, offsetTop:
|
|
14914
|
+
]), { offsetBottom: P, offsetTop: O, describedBy: T } = useInputWrapperContext(), { classes: N, cx: L } = useStyles$v({
|
|
14942
14915
|
radius: x,
|
|
14943
14916
|
multiline: C,
|
|
14944
14917
|
invalid: !!i,
|
|
@@ -14946,9 +14919,9 @@ const defaultProps$o = {
|
|
|
14946
14919
|
iconWidth: g,
|
|
14947
14920
|
withRightSection: !!h,
|
|
14948
14921
|
offsetBottom: P,
|
|
14949
|
-
offsetTop:
|
|
14922
|
+
offsetTop: O,
|
|
14950
14923
|
pointer: I
|
|
14951
|
-
}, { classNames: E, styles: w, name: ["Input", A], unstyled: k, variant: u, size: v }), { systemStyles: M, rest: W } = extractSystemStyles(
|
|
14924
|
+
}, { classNames: E, styles: w, name: ["Input", A], unstyled: k, variant: u, size: v }), { systemStyles: M, rest: W } = extractSystemStyles(j);
|
|
14952
14925
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$J(__spreadValues$J({
|
|
14953
14926
|
className: L(N.wrapper, a),
|
|
14954
14927
|
sx: R,
|
|
@@ -15370,7 +15343,7 @@ const defaultProps$l = {
|
|
|
15370
15343
|
"classNames",
|
|
15371
15344
|
"styles",
|
|
15372
15345
|
"unstyled"
|
|
15373
|
-
]), { classes:
|
|
15346
|
+
]), { classes: j, cx: P, theme: O } = useStyles$r({
|
|
15374
15347
|
radius: b,
|
|
15375
15348
|
color: l,
|
|
15376
15349
|
fullWidth: g,
|
|
@@ -15378,12 +15351,12 @@ const defaultProps$l = {
|
|
|
15378
15351
|
gradient: A,
|
|
15379
15352
|
withLeftIcon: !!p,
|
|
15380
15353
|
withRightIcon: !!m
|
|
15381
|
-
}, { name: "Button", unstyled: k, classNames: C, styles: R, variant: h, size: i }), T =
|
|
15354
|
+
}, { name: "Button", unstyled: k, classNames: C, styles: R, variant: h, size: i }), T = O.fn.variant({ color: l, variant: h }), N = /* @__PURE__ */ React__default.createElement(Loader, __spreadValues$E({
|
|
15382
15355
|
color: T.color,
|
|
15383
15356
|
size: `calc(${getSize({ size: i, sizes: sizes$1 }).height} / 2)`
|
|
15384
15357
|
}, w));
|
|
15385
15358
|
return /* @__PURE__ */ React__default.createElement(UnstyledButton, __spreadValues$E({
|
|
15386
|
-
className: P(
|
|
15359
|
+
className: P(j.root, a),
|
|
15387
15360
|
type: c,
|
|
15388
15361
|
disabled: u,
|
|
15389
15362
|
"data-button": !0,
|
|
@@ -15392,16 +15365,16 @@ const defaultProps$l = {
|
|
|
15392
15365
|
ref: n,
|
|
15393
15366
|
unstyled: k
|
|
15394
15367
|
}, I), /* @__PURE__ */ React__default.createElement("div", {
|
|
15395
|
-
className:
|
|
15368
|
+
className: j.inner
|
|
15396
15369
|
}, (p || S && E === "left") && /* @__PURE__ */ React__default.createElement("span", {
|
|
15397
|
-
className: P(
|
|
15370
|
+
className: P(j.icon, j.leftIcon)
|
|
15398
15371
|
}, S && E === "left" ? N : p), S && E === "center" && /* @__PURE__ */ React__default.createElement("span", {
|
|
15399
|
-
className:
|
|
15372
|
+
className: j.centerLoader
|
|
15400
15373
|
}, N), /* @__PURE__ */ React__default.createElement("span", {
|
|
15401
|
-
className:
|
|
15374
|
+
className: j.label,
|
|
15402
15375
|
style: { textTransform: x ? "uppercase" : void 0 }
|
|
15403
15376
|
}, d), (m || S && E === "right") && /* @__PURE__ */ React__default.createElement("span", {
|
|
15404
|
-
className: P(
|
|
15377
|
+
className: P(j.icon, j.rightIcon)
|
|
15405
15378
|
}, S && E === "right" ? N : m)));
|
|
15406
15379
|
});
|
|
15407
15380
|
_Button.displayName = "@mantine/core/Button";
|
|
@@ -16309,48 +16282,48 @@ const defaultProps$c = {
|
|
|
16309
16282
|
"childrenOffset",
|
|
16310
16283
|
"disabled",
|
|
16311
16284
|
"onClick"
|
|
16312
|
-
]), { classes:
|
|
16285
|
+
]), { classes: j, cx: P } = 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({
|
|
16313
16286
|
value: S,
|
|
16314
16287
|
defaultValue: E,
|
|
16315
16288
|
finalValue: !1,
|
|
16316
16289
|
onChange: w
|
|
16317
16290
|
}), N = !!v, L = (M) => {
|
|
16318
|
-
N ? (M.preventDefault(), k == null || k(M), T(!
|
|
16291
|
+
N ? (M.preventDefault(), k == null || k(M), T(!O)) : k == null || k(M);
|
|
16319
16292
|
};
|
|
16320
16293
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(UnstyledButton, __spreadValues$m({
|
|
16321
16294
|
ref: n,
|
|
16322
|
-
className: P(
|
|
16295
|
+
className: P(j.root, u),
|
|
16323
16296
|
"data-active": g || void 0,
|
|
16324
16297
|
onClick: L,
|
|
16325
16298
|
unstyled: m,
|
|
16326
|
-
"data-expanded":
|
|
16299
|
+
"data-expanded": O || void 0,
|
|
16327
16300
|
"data-disabled": R || void 0,
|
|
16328
16301
|
disabled: R
|
|
16329
16302
|
}, I), l && /* @__PURE__ */ React__default.createElement("span", {
|
|
16330
|
-
className:
|
|
16303
|
+
className: j.icon
|
|
16331
16304
|
}, l), /* @__PURE__ */ React__default.createElement("span", {
|
|
16332
|
-
className:
|
|
16305
|
+
className: j.body
|
|
16333
16306
|
}, /* @__PURE__ */ React__default.createElement(Text, {
|
|
16334
16307
|
component: "span",
|
|
16335
16308
|
size: "sm",
|
|
16336
|
-
className:
|
|
16309
|
+
className: j.label
|
|
16337
16310
|
}, a), /* @__PURE__ */ React__default.createElement(Text, {
|
|
16338
16311
|
component: "span",
|
|
16339
16312
|
color: "dimmed",
|
|
16340
16313
|
size: "xs",
|
|
16341
16314
|
"data-active": g || void 0,
|
|
16342
|
-
className:
|
|
16315
|
+
className: j.description
|
|
16343
16316
|
}, i)), (N || c) && /* @__PURE__ */ React__default.createElement("span", {
|
|
16344
|
-
className:
|
|
16345
|
-
"data-rotate":
|
|
16317
|
+
className: j.rightSection,
|
|
16318
|
+
"data-rotate": O && !A || void 0
|
|
16346
16319
|
}, N ? c || /* @__PURE__ */ React__default.createElement(ChevronIcon$1, {
|
|
16347
16320
|
width: rem(14),
|
|
16348
16321
|
height: rem(14),
|
|
16349
16322
|
style: { transform: "rotate(-90deg)" }
|
|
16350
16323
|
}) : c)), /* @__PURE__ */ React__default.createElement(Collapse, {
|
|
16351
|
-
in:
|
|
16324
|
+
in: O
|
|
16352
16325
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
16353
|
-
className:
|
|
16326
|
+
className: j.children
|
|
16354
16327
|
}, v)));
|
|
16355
16328
|
});
|
|
16356
16329
|
_NavLink.displayName = "@mantine/core/NavLink";
|
|
@@ -16540,7 +16513,7 @@ function TooltipFloating(r) {
|
|
|
16540
16513
|
"zIndex",
|
|
16541
16514
|
"disabled",
|
|
16542
16515
|
"variant"
|
|
16543
|
-
]), { handleMouseMove: I, x:
|
|
16516
|
+
]), { handleMouseMove: I, x: j, y: P, opened: O, boundaryRef: T, floating: N, setOpened: L } = useFloatingTooltip({
|
|
16544
16517
|
offset: v,
|
|
16545
16518
|
position: S
|
|
16546
16519
|
}), { classes: M, cx: W } = useStyles$h({ radius: h, color: b, multiline: E, width: w }, { name: "TooltipFloating", classNames: p, styles: m, unstyled: g, variant: R });
|
|
@@ -16560,9 +16533,9 @@ function TooltipFloating(r) {
|
|
|
16560
16533
|
className: W(M.tooltip, d),
|
|
16561
16534
|
style: __spreadProps$g(__spreadValues$j({}, u), {
|
|
16562
16535
|
zIndex: A,
|
|
16563
|
-
display: !C &&
|
|
16536
|
+
display: !C && O ? "block" : "none",
|
|
16564
16537
|
top: P ?? "",
|
|
16565
|
-
left: (n = Math.round(
|
|
16538
|
+
left: (n = Math.round(j)) != null ? n : ""
|
|
16566
16539
|
})
|
|
16567
16540
|
}), x)), cloneElement(a, __spreadProps$g(__spreadValues$j({}, a.props), {
|
|
16568
16541
|
[i]: J,
|
|
@@ -16572,8 +16545,8 @@ function TooltipFloating(r) {
|
|
|
16572
16545
|
}
|
|
16573
16546
|
TooltipFloating.displayName = "@mantine/core/TooltipFloating";
|
|
16574
16547
|
function useTooltip(r) {
|
|
16575
|
-
const [n, o] = useState$1(!1), i = typeof r.opened == "boolean" ? r.opened : n, l = useTooltipGroupContext(), c = useId$2(), { delay: u, currentId: d, setCurrentId: p } = useDelayGroupContext(), m = useCallback$1((
|
|
16576
|
-
o(
|
|
16548
|
+
const [n, o] = useState$1(!1), i = typeof r.opened == "boolean" ? r.opened : n, l = useTooltipGroupContext(), c = useId$2(), { delay: u, currentId: d, setCurrentId: p } = useDelayGroupContext(), m = useCallback$1((j) => {
|
|
16549
|
+
o(j), j && p(c);
|
|
16577
16550
|
}, [p, c]), {
|
|
16578
16551
|
x: g,
|
|
16579
16552
|
y: h,
|
|
@@ -16612,8 +16585,8 @@ function useTooltip(r) {
|
|
|
16612
16585
|
positionDependencies: r.positionDependencies,
|
|
16613
16586
|
floating: { refs: S, update: E }
|
|
16614
16587
|
}), useDidUpdate(() => {
|
|
16615
|
-
var
|
|
16616
|
-
(
|
|
16588
|
+
var j;
|
|
16589
|
+
(j = r.onPositionChange) == null || j.call(r, w);
|
|
16617
16590
|
}, [w]), {
|
|
16618
16591
|
x: g,
|
|
16619
16592
|
y: h,
|
|
@@ -16681,9 +16654,9 @@ const defaultProps$9 = {
|
|
|
16681
16654
|
className: R,
|
|
16682
16655
|
withArrow: k,
|
|
16683
16656
|
arrowSize: I,
|
|
16684
|
-
arrowOffset:
|
|
16657
|
+
arrowOffset: j,
|
|
16685
16658
|
arrowRadius: P,
|
|
16686
|
-
arrowPosition:
|
|
16659
|
+
arrowPosition: O,
|
|
16687
16660
|
offset: T,
|
|
16688
16661
|
transitionProps: N,
|
|
16689
16662
|
multiline: L,
|
|
@@ -16743,7 +16716,7 @@ const defaultProps$9 = {
|
|
|
16743
16716
|
opened: h,
|
|
16744
16717
|
events: W,
|
|
16745
16718
|
arrowRef: a,
|
|
16746
|
-
arrowOffset:
|
|
16719
|
+
arrowOffset: j,
|
|
16747
16720
|
offset: T + (k ? I / 2 : 0),
|
|
16748
16721
|
positionDependencies: [...V, l],
|
|
16749
16722
|
inline: z
|
|
@@ -16776,9 +16749,9 @@ const defaultProps$9 = {
|
|
|
16776
16749
|
visible: k,
|
|
16777
16750
|
position: $.placement,
|
|
16778
16751
|
arrowSize: I,
|
|
16779
|
-
arrowOffset:
|
|
16752
|
+
arrowOffset: j,
|
|
16780
16753
|
arrowRadius: P,
|
|
16781
|
-
arrowPosition:
|
|
16754
|
+
arrowPosition: O,
|
|
16782
16755
|
className: Q.arrow
|
|
16783
16756
|
}));
|
|
16784
16757
|
})), cloneElement(l, $.getReferenceProps(__spreadValues$i({
|
|
@@ -16897,9 +16870,9 @@ const defaultProps$8 = {
|
|
|
16897
16870
|
searchable: R,
|
|
16898
16871
|
clearable: k,
|
|
16899
16872
|
nothingFound: I,
|
|
16900
|
-
limit:
|
|
16873
|
+
limit: j,
|
|
16901
16874
|
disabled: P,
|
|
16902
|
-
onSearchChange:
|
|
16875
|
+
onSearchChange: O,
|
|
16903
16876
|
searchValue: T,
|
|
16904
16877
|
rightSection: N,
|
|
16905
16878
|
rightSectionWidth: L,
|
|
@@ -16997,20 +16970,20 @@ const defaultProps$8 = {
|
|
|
16997
16970
|
value: T,
|
|
16998
16971
|
defaultValue: (ke == null ? void 0 : ke.label) || "",
|
|
16999
16972
|
finalValue: void 0,
|
|
17000
|
-
onChange:
|
|
17001
|
-
}),
|
|
17002
|
-
at(H), R && typeof
|
|
16973
|
+
onChange: O
|
|
16974
|
+
}), je = (H) => {
|
|
16975
|
+
at(H), R && typeof O == "function" && O(H);
|
|
17003
16976
|
}, st = () => {
|
|
17004
16977
|
var H;
|
|
17005
|
-
Z || (Be(null), Xe ||
|
|
16978
|
+
Z || (Be(null), Xe || je(""), (H = He.current) == null || H.focus());
|
|
17006
16979
|
};
|
|
17007
16980
|
useEffect$1(() => {
|
|
17008
16981
|
const H = Ue.find((ie) => ie.value === Ce);
|
|
17009
|
-
H ?
|
|
16982
|
+
H ? je(H.label) : (!qe || !Ce) && je("");
|
|
17010
16983
|
}, [Ce]), useEffect$1(() => {
|
|
17011
|
-
ke && (!R || !ge) &&
|
|
16984
|
+
ke && (!R || !ge) && je(ke.label);
|
|
17012
16985
|
}, [ke == null ? void 0 : ke.label]);
|
|
17013
|
-
const
|
|
16986
|
+
const Oe = (H) => {
|
|
17014
16987
|
if (!Z)
|
|
17015
16988
|
if (Ye && (ke == null ? void 0 : ke.value) === H.value)
|
|
17016
16989
|
Be(null), Se(!1);
|
|
@@ -17020,12 +16993,12 @@ const defaultProps$8 = {
|
|
|
17020
16993
|
typeof ie < "u" && ie !== null && Be(typeof ie == "string" ? ie : ie.value);
|
|
17021
16994
|
} else
|
|
17022
16995
|
Be(H.value);
|
|
17023
|
-
Xe ||
|
|
16996
|
+
Xe || je(H.label), ve(-1), Se(!1), He.current.focus();
|
|
17024
16997
|
}
|
|
17025
16998
|
}, he = filterData({
|
|
17026
16999
|
data: Ue,
|
|
17027
17000
|
searchable: R,
|
|
17028
|
-
limit:
|
|
17001
|
+
limit: j,
|
|
17029
17002
|
searchValue: Ie,
|
|
17030
17003
|
filter: A,
|
|
17031
17004
|
filterDataOnExactSearchMatch: ae,
|
|
@@ -17092,20 +17065,20 @@ const defaultProps$8 = {
|
|
|
17092
17065
|
break;
|
|
17093
17066
|
}
|
|
17094
17067
|
case " ": {
|
|
17095
|
-
R || (H.preventDefault(), he[Pe] && ge ?
|
|
17068
|
+
R || (H.preventDefault(), he[Pe] && ge ? Oe(he[Pe]) : (Se(!0), ve(Ve), Ke()));
|
|
17096
17069
|
break;
|
|
17097
17070
|
}
|
|
17098
17071
|
case "Enter":
|
|
17099
|
-
R || H.preventDefault(), he[Pe] && ge && (H.preventDefault(),
|
|
17072
|
+
R || H.preventDefault(), he[Pe] && ge && (H.preventDefault(), Oe(he[Pe]));
|
|
17100
17073
|
}
|
|
17101
17074
|
}, D = (H) => {
|
|
17102
17075
|
typeof h == "function" && h(H);
|
|
17103
17076
|
const ie = Ue.find((ue) => ue.value === Ce);
|
|
17104
|
-
F && he[Pe] && ge &&
|
|
17077
|
+
F && he[Pe] && ge && Oe(he[Pe]), je((ie == null ? void 0 : ie.label) || ""), Se(!1);
|
|
17105
17078
|
}, Y = (H) => {
|
|
17106
17079
|
typeof b == "function" && b(H), R && Se(!0);
|
|
17107
17080
|
}, oe = (H) => {
|
|
17108
|
-
Z || (
|
|
17081
|
+
Z || (je(H.currentTarget.value), k && H.currentTarget.value === "" && Be(null), ve(-1), Se(!0));
|
|
17109
17082
|
}, ce = () => {
|
|
17110
17083
|
Z || (Se(!ge), Ce && !ge && ve(Ve));
|
|
17111
17084
|
};
|
|
@@ -17194,7 +17167,7 @@ const defaultProps$8 = {
|
|
|
17194
17167
|
uuid: a.id,
|
|
17195
17168
|
__staticSelector: "Select",
|
|
17196
17169
|
onItemHover: ve,
|
|
17197
|
-
onItemSelect:
|
|
17170
|
+
onItemSelect: Oe,
|
|
17198
17171
|
itemsRefs: Fe,
|
|
17199
17172
|
itemComponent: m,
|
|
17200
17173
|
size: a.size,
|
|
@@ -17322,10 +17295,10 @@ const Thumb = forwardRef$1(({
|
|
|
17322
17295
|
children: R = null,
|
|
17323
17296
|
disabled: k,
|
|
17324
17297
|
unstyled: I,
|
|
17325
|
-
thumbSize:
|
|
17298
|
+
thumbSize: j,
|
|
17326
17299
|
variant: P
|
|
17327
|
-
},
|
|
17328
|
-
const { classes: T, cx: N, theme: L } = useStyles$d({ color: d, disabled: k, thumbSize:
|
|
17300
|
+
}, O) => {
|
|
17301
|
+
const { classes: T, cx: N, theme: L } = useStyles$d({ color: d, disabled: k, thumbSize: j }, { name: "Slider", classNames: p, styles: m, unstyled: I, variant: P, size: g }), [M, W] = useState$1(!1), J = v || l || M || A && C;
|
|
17329
17302
|
return /* @__PURE__ */ React__default.createElement(Box, {
|
|
17330
17303
|
tabIndex: 0,
|
|
17331
17304
|
role: "slider",
|
|
@@ -17333,7 +17306,7 @@ const Thumb = forwardRef$1(({
|
|
|
17333
17306
|
"aria-valuemax": r,
|
|
17334
17307
|
"aria-valuemin": n,
|
|
17335
17308
|
"aria-valuenow": o,
|
|
17336
|
-
ref:
|
|
17309
|
+
ref: O,
|
|
17337
17310
|
className: N(T.thumb, { [T.dragging]: l }),
|
|
17338
17311
|
onFocus: () => {
|
|
17339
17312
|
W(!0), typeof E == "function" && E();
|
|
@@ -17675,9 +17648,9 @@ const defaultProps$7 = {
|
|
|
17675
17648
|
labelTransitionTimingFunction: R,
|
|
17676
17649
|
labelAlwaysOn: k,
|
|
17677
17650
|
thumbLabel: I,
|
|
17678
|
-
showLabelOnHover:
|
|
17651
|
+
showLabelOnHover: j,
|
|
17679
17652
|
thumbChildren: P,
|
|
17680
|
-
disabled:
|
|
17653
|
+
disabled: O,
|
|
17681
17654
|
unstyled: T,
|
|
17682
17655
|
thumbSize: N,
|
|
17683
17656
|
scale: L,
|
|
@@ -17719,12 +17692,12 @@ const defaultProps$7 = {
|
|
|
17719
17692
|
finalValue: clamp$1(0, g, h),
|
|
17720
17693
|
onChange: u
|
|
17721
17694
|
}), U = useRef$1(ee), te = useRef$1(), _ = useRef$1(), Q = getPosition({ value: ee, min: g, max: h }), ne = L(ee), re = typeof w == "function" ? w(ne) : w, $ = useCallback$1(({ x: Z }) => {
|
|
17722
|
-
if (!
|
|
17695
|
+
if (!O) {
|
|
17723
17696
|
const le = getChangeValue({ value: Z, min: g, max: h, step: b, precision: F });
|
|
17724
17697
|
z(le), U.current = le;
|
|
17725
17698
|
}
|
|
17726
|
-
}, [
|
|
17727
|
-
if (!
|
|
17699
|
+
}, [O, g, h, b, F, z]), { ref: ae, active: se } = useMove($, { onScrubEnd: () => d == null ? void 0 : d(U.current) }, V.dir), K = (Z) => {
|
|
17700
|
+
if (!O)
|
|
17728
17701
|
switch (Z.key) {
|
|
17729
17702
|
case "ArrowUp": {
|
|
17730
17703
|
Z.preventDefault(), _.current.focus();
|
|
@@ -17770,7 +17743,7 @@ const defaultProps$7 = {
|
|
|
17770
17743
|
size: p,
|
|
17771
17744
|
classNames: a,
|
|
17772
17745
|
styles: i,
|
|
17773
|
-
disabled:
|
|
17746
|
+
disabled: O,
|
|
17774
17747
|
unstyled: T,
|
|
17775
17748
|
variant: W
|
|
17776
17749
|
}), /* @__PURE__ */ React__default.createElement(Track, {
|
|
@@ -17788,13 +17761,13 @@ const defaultProps$7 = {
|
|
|
17788
17761
|
onChange: z,
|
|
17789
17762
|
classNames: a,
|
|
17790
17763
|
styles: i,
|
|
17791
|
-
disabled:
|
|
17764
|
+
disabled: O,
|
|
17792
17765
|
unstyled: T,
|
|
17793
17766
|
variant: W,
|
|
17794
17767
|
containerProps: {
|
|
17795
17768
|
ref: ae,
|
|
17796
|
-
onMouseEnter:
|
|
17797
|
-
onMouseLeave:
|
|
17769
|
+
onMouseEnter: j ? () => G(!0) : void 0,
|
|
17770
|
+
onMouseLeave: j ? () => G(!1) : void 0
|
|
17798
17771
|
}
|
|
17799
17772
|
}, /* @__PURE__ */ React__default.createElement(Thumb, {
|
|
17800
17773
|
max: h,
|
|
@@ -17813,9 +17786,9 @@ const defaultProps$7 = {
|
|
|
17813
17786
|
classNames: a,
|
|
17814
17787
|
styles: i,
|
|
17815
17788
|
thumbLabel: I,
|
|
17816
|
-
showLabelOnHover:
|
|
17789
|
+
showLabelOnHover: j,
|
|
17817
17790
|
isHovered: q,
|
|
17818
|
-
disabled:
|
|
17791
|
+
disabled: O,
|
|
17819
17792
|
unstyled: T,
|
|
17820
17793
|
thumbSize: N,
|
|
17821
17794
|
variant: W
|
|
@@ -18249,7 +18222,7 @@ const defaultProps$2 = {
|
|
|
18249
18222
|
"inverted",
|
|
18250
18223
|
"keepMounted",
|
|
18251
18224
|
"placement"
|
|
18252
|
-
]), { classes: I, cx:
|
|
18225
|
+
]), { classes: I, cx: j } = useStyles$4({ orientation: l, color: b, radius: w, inverted: A, placement: R }, { unstyled: v, name: "Tabs", classNames: S, styles: E, variant: h });
|
|
18253
18226
|
return /* @__PURE__ */ React__default.createElement(TabsProvider, {
|
|
18254
18227
|
activateTabWithKeyboard: u,
|
|
18255
18228
|
defaultValue: a,
|
|
@@ -18269,7 +18242,7 @@ const defaultProps$2 = {
|
|
|
18269
18242
|
styles: E,
|
|
18270
18243
|
unstyled: v
|
|
18271
18244
|
}, /* @__PURE__ */ React__default.createElement(Box, __spreadProps$4(__spreadValues$5({}, k), {
|
|
18272
|
-
className:
|
|
18245
|
+
className: j(I.root, x),
|
|
18273
18246
|
id: m,
|
|
18274
18247
|
ref: n
|
|
18275
18248
|
}), p));
|
|
@@ -18665,8 +18638,8 @@ function stringify(r, n, o, a = {}) {
|
|
|
18665
18638
|
` : "";
|
|
18666
18639
|
let C = `var x${w}=${w}${E};${A}`;
|
|
18667
18640
|
for (const [R, k] of d.entries()) {
|
|
18668
|
-
const I = quote_1.stringifyPath(R, v),
|
|
18669
|
-
C += `x${I}${w}=${w}x${
|
|
18641
|
+
const I = quote_1.stringifyPath(R, v), j = quote_1.stringifyPath(k, v);
|
|
18642
|
+
C += `x${I}${w}=${w}x${j};${A}`;
|
|
18670
18643
|
}
|
|
18671
18644
|
return `(function${w}()${w}{${A}${C}return x;${A}}())`;
|
|
18672
18645
|
}
|
|
@@ -18737,7 +18710,7 @@ function PanelWithForwardedRef({
|
|
|
18737
18710
|
throw Error(`Panel defaultSize must be between 0 and 100, but was ${i}`);
|
|
18738
18711
|
d > i && !a && (console.error(`Panel minSize ${d} cannot be greater than defaultSize ${i}`), i = d);
|
|
18739
18712
|
}
|
|
18740
|
-
const I = w(v, i),
|
|
18713
|
+
const I = w(v, i), j = useRef({
|
|
18741
18714
|
size: parseSizeFromStyle(I)
|
|
18742
18715
|
}), P = useRef({
|
|
18743
18716
|
callbacksRef: k,
|
|
@@ -18751,19 +18724,19 @@ function PanelWithForwardedRef({
|
|
|
18751
18724
|
order: g
|
|
18752
18725
|
});
|
|
18753
18726
|
return useIsomorphicLayoutEffect(() => {
|
|
18754
|
-
|
|
18727
|
+
j.current.size = parseSizeFromStyle(I), P.current.callbacksRef = k, P.current.collapsedSize = o, P.current.collapsible = a, P.current.defaultSize = i, P.current.id = v, P.current.idWasAutoGenerated = c == null, P.current.maxSize = u, P.current.minSize = d, P.current.order = g;
|
|
18755
18728
|
}), useIsomorphicLayoutEffect(() => (A(v, P), () => {
|
|
18756
18729
|
R(v);
|
|
18757
18730
|
}), [g, v, A, R]), useImperativeHandle(l, () => ({
|
|
18758
18731
|
collapse: () => S(v),
|
|
18759
18732
|
expand: () => E(v),
|
|
18760
18733
|
getCollapsed() {
|
|
18761
|
-
return
|
|
18734
|
+
return j.current.size === 0;
|
|
18762
18735
|
},
|
|
18763
18736
|
getSize() {
|
|
18764
|
-
return
|
|
18737
|
+
return j.current.size;
|
|
18765
18738
|
},
|
|
18766
|
-
resize: (
|
|
18739
|
+
resize: (O) => C(v, O)
|
|
18767
18740
|
}), [S, E, v, C]), createElement(b, {
|
|
18768
18741
|
children: r,
|
|
18769
18742
|
className: n,
|
|
@@ -18933,8 +18906,8 @@ function useWindowSplitterPanelGroupBehavior({
|
|
|
18933
18906
|
v.forEach((T) => {
|
|
18934
18907
|
T.current.id === S ? (A = T.current.maxSize, w = T.current.minSize) : (C += T.current.minSize, R += T.current.maxSize);
|
|
18935
18908
|
});
|
|
18936
|
-
const k = Math.min(A, 100 - C), I = Math.max(w, (v.length - 1) * 100 - R),
|
|
18937
|
-
b.setAttribute("aria-valuemax", "" + Math.round(k)), b.setAttribute("aria-valuemin", "" + Math.round(I)), b.setAttribute("aria-valuenow", "" + Math.round(parseInt(
|
|
18909
|
+
const k = Math.min(A, 100 - C), I = Math.max(w, (v.length - 1) * 100 - R), j = getFlexGrow(u, S, i);
|
|
18910
|
+
b.setAttribute("aria-valuemax", "" + Math.round(k)), b.setAttribute("aria-valuemin", "" + Math.round(I)), b.setAttribute("aria-valuenow", "" + Math.round(parseInt(j)));
|
|
18938
18911
|
const P = (T) => {
|
|
18939
18912
|
if (!T.defaultPrevented)
|
|
18940
18913
|
switch (T.key) {
|
|
@@ -18955,9 +18928,9 @@ function useWindowSplitterPanelGroupBehavior({
|
|
|
18955
18928
|
}
|
|
18956
18929
|
};
|
|
18957
18930
|
b.addEventListener("keydown", P);
|
|
18958
|
-
const
|
|
18959
|
-
return
|
|
18960
|
-
b.removeAttribute("aria-valuemax"), b.removeAttribute("aria-valuemin"), b.removeAttribute("aria-valuenow"), b.removeEventListener("keydown", P),
|
|
18931
|
+
const O = getPanel(S);
|
|
18932
|
+
return O != null && b.setAttribute("aria-controls", O.id), () => {
|
|
18933
|
+
b.removeAttribute("aria-valuemax"), b.removeAttribute("aria-valuemin"), b.removeAttribute("aria-valuenow"), b.removeEventListener("keydown", P), O != null && b.removeAttribute("aria-controls");
|
|
18961
18934
|
};
|
|
18962
18935
|
});
|
|
18963
18936
|
return () => {
|
|
@@ -19261,7 +19234,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19261
19234
|
debounceMap[r] || (debounceMap[r] = debounce(savePanelGroupLayout, 100)), debounceMap[r](r, F, A, d);
|
|
19262
19235
|
}
|
|
19263
19236
|
}, [r, x, A, d]);
|
|
19264
|
-
const
|
|
19237
|
+
const j = useCallback((F, V) => {
|
|
19265
19238
|
const {
|
|
19266
19239
|
panels: q
|
|
19267
19240
|
} = I.current;
|
|
@@ -19288,7 +19261,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19288
19261
|
const G = new Map(q);
|
|
19289
19262
|
return G.set(F, V), G;
|
|
19290
19263
|
});
|
|
19291
|
-
}, []),
|
|
19264
|
+
}, []), O = useCallback((F) => (q) => {
|
|
19292
19265
|
q.preventDefault();
|
|
19293
19266
|
const {
|
|
19294
19267
|
direction: G,
|
|
@@ -19399,10 +19372,10 @@ function PanelGroupWithForwardedRef({
|
|
|
19399
19372
|
collapsePanel: N,
|
|
19400
19373
|
direction: a,
|
|
19401
19374
|
expandPanel: L,
|
|
19402
|
-
getPanelStyle:
|
|
19375
|
+
getPanelStyle: j,
|
|
19403
19376
|
groupId: g,
|
|
19404
19377
|
registerPanel: P,
|
|
19405
|
-
registerResizeHandle:
|
|
19378
|
+
registerResizeHandle: O,
|
|
19406
19379
|
resizePanel: M,
|
|
19407
19380
|
startDragging: (F, V) => {
|
|
19408
19381
|
if (b(F), isMouseEvent(V) || isTouchEvent(V)) {
|
|
@@ -19418,7 +19391,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19418
19391
|
resetGlobalCursorStyle(), b(null), S.current = null;
|
|
19419
19392
|
},
|
|
19420
19393
|
unregisterPanel: T
|
|
19421
|
-
}), [h, N, a, L,
|
|
19394
|
+
}), [h, N, a, L, j, g, P, O, M, T]), J = {
|
|
19422
19395
|
display: "flex",
|
|
19423
19396
|
flexDirection: a === "horizontal" ? "row" : "column",
|
|
19424
19397
|
height: "100%",
|
|
@@ -19482,19 +19455,19 @@ function PanelResizeHandle$1({
|
|
|
19482
19455
|
if (o)
|
|
19483
19456
|
R(null);
|
|
19484
19457
|
else {
|
|
19485
|
-
const
|
|
19486
|
-
R(() =>
|
|
19458
|
+
const j = b(S);
|
|
19459
|
+
R(() => j);
|
|
19487
19460
|
}
|
|
19488
19461
|
}, [o, S, b]), useEffect(() => {
|
|
19489
19462
|
if (o || C == null || !E)
|
|
19490
19463
|
return;
|
|
19491
|
-
const
|
|
19464
|
+
const j = (N) => {
|
|
19492
19465
|
C(N);
|
|
19493
19466
|
}, P = (N) => {
|
|
19494
19467
|
C(N);
|
|
19495
19468
|
}, T = u.current.ownerDocument;
|
|
19496
|
-
return T.body.addEventListener("contextmenu", k), T.body.addEventListener("mousemove",
|
|
19497
|
-
T.body.removeEventListener("contextmenu", k), T.body.removeEventListener("mousemove",
|
|
19469
|
+
return T.body.addEventListener("contextmenu", k), T.body.addEventListener("mousemove", j), T.body.addEventListener("touchmove", j), T.body.addEventListener("mouseleave", P), window.addEventListener("mouseup", k), window.addEventListener("touchend", k), () => {
|
|
19470
|
+
T.body.removeEventListener("contextmenu", k), T.body.removeEventListener("mousemove", j), T.body.removeEventListener("touchmove", j), T.body.removeEventListener("mouseleave", P), window.removeEventListener("mouseup", k), window.removeEventListener("touchend", k);
|
|
19498
19471
|
};
|
|
19499
19472
|
}, [g, o, E, C, k]), useWindowSplitterResizeHandlerBehavior({
|
|
19500
19473
|
disabled: o,
|
|
@@ -19516,8 +19489,8 @@ function PanelResizeHandle$1({
|
|
|
19516
19489
|
"data-panel-resize-handle-id": S,
|
|
19517
19490
|
onBlur: () => A(!1),
|
|
19518
19491
|
onFocus: () => A(!0),
|
|
19519
|
-
onMouseDown: (
|
|
19520
|
-
x(S,
|
|
19492
|
+
onMouseDown: (j) => {
|
|
19493
|
+
x(S, j.nativeEvent);
|
|
19521
19494
|
const {
|
|
19522
19495
|
onDragging: P
|
|
19523
19496
|
} = d.current;
|
|
@@ -19526,8 +19499,8 @@ function PanelResizeHandle$1({
|
|
|
19526
19499
|
onMouseUp: k,
|
|
19527
19500
|
onTouchCancel: k,
|
|
19528
19501
|
onTouchEnd: k,
|
|
19529
|
-
onTouchStart: (
|
|
19530
|
-
x(S,
|
|
19502
|
+
onTouchStart: (j) => {
|
|
19503
|
+
x(S, j.nativeEvent);
|
|
19531
19504
|
const {
|
|
19532
19505
|
onDragging: P
|
|
19533
19506
|
} = d.current;
|
|
@@ -21939,8 +21912,8 @@ function createHybrid(r, n, o, a, i, l, c, u, d, p) {
|
|
|
21939
21912
|
p - E
|
|
21940
21913
|
);
|
|
21941
21914
|
}
|
|
21942
|
-
var I = g ? o : this,
|
|
21943
|
-
return E = w.length, u ? w = reorder(w, u) : x && E > 1 && w.reverse(), m && d < E && (w.length = d), this && this !== root && this instanceof S && (
|
|
21915
|
+
var I = g ? o : this, j = h ? I[r] : r;
|
|
21916
|
+
return E = w.length, u ? w = reorder(w, u) : x && E > 1 && w.reverse(), m && d < E && (w.length = d), this && this !== root && this instanceof S && (j = v || createCtor(j)), j.apply(I, w);
|
|
21944
21917
|
}
|
|
21945
21918
|
return S;
|
|
21946
21919
|
}
|
|
@@ -22966,19 +22939,19 @@ var Prism$1 = function() {
|
|
|
22966
22939
|
for (var A = 0; A < w.length; ++A) {
|
|
22967
22940
|
if (S && S.cause == E + "," + A)
|
|
22968
22941
|
return;
|
|
22969
|
-
var C = w[A], R = C.inside, k = !!C.lookbehind, I = !!C.greedy,
|
|
22942
|
+
var C = w[A], R = C.inside, k = !!C.lookbehind, I = !!C.greedy, j = C.alias;
|
|
22970
22943
|
if (I && !C.pattern.global) {
|
|
22971
22944
|
var P = C.pattern.toString().match(/[imsuy]*$/)[0];
|
|
22972
22945
|
C.pattern = RegExp(C.pattern.source, P + "g");
|
|
22973
22946
|
}
|
|
22974
|
-
for (var
|
|
22947
|
+
for (var O = C.pattern || C, T = x.next, N = v; T !== h.tail && !(S && N >= S.reach); N += T.value.length, T = T.next) {
|
|
22975
22948
|
var L = T.value;
|
|
22976
22949
|
if (h.length > g.length)
|
|
22977
22950
|
return;
|
|
22978
22951
|
if (!(L instanceof i)) {
|
|
22979
22952
|
var M = 1, W;
|
|
22980
22953
|
if (I) {
|
|
22981
|
-
if (W = l(
|
|
22954
|
+
if (W = l(O, N, g, k), !W || W.index >= g.length)
|
|
22982
22955
|
break;
|
|
22983
22956
|
var q = W.index, J = W.index + W[0].length, F = N;
|
|
22984
22957
|
for (F += T.value.length; q >= F; )
|
|
@@ -22988,13 +22961,13 @@ var Prism$1 = function() {
|
|
|
22988
22961
|
for (var V = T; V !== h.tail && (F < J || typeof V.value == "string"); V = V.next)
|
|
22989
22962
|
M++, F += V.value.length;
|
|
22990
22963
|
M--, L = g.slice(N, F), W.index -= N;
|
|
22991
|
-
} else if (W = l(
|
|
22964
|
+
} else if (W = l(O, 0, L, k), !W)
|
|
22992
22965
|
continue;
|
|
22993
22966
|
var q = W.index, G = W[0], ee = L.slice(0, q), z = L.slice(q + G.length), U = N + L.length;
|
|
22994
22967
|
S && U > S.reach && (S.reach = U);
|
|
22995
22968
|
var te = T.prev;
|
|
22996
22969
|
ee && (te = d(h, te, ee), N += ee.length), p(h, te, M);
|
|
22997
|
-
var _ = new i(E, R ? a.tokenize(G, R) : G,
|
|
22970
|
+
var _ = new i(E, R ? a.tokenize(G, R) : G, j, G);
|
|
22998
22971
|
if (T = d(h, te, _), z && d(h, T, z), M > 1) {
|
|
22999
22972
|
var Q = {
|
|
23000
22973
|
cause: E + "," + A,
|
|
@@ -24481,29 +24454,29 @@ prism.languages.sql = {
|
|
|
24481
24454
|
}), E = 0, w = {}, A = S.map(function(I) {
|
|
24482
24455
|
if (typeof I == "string")
|
|
24483
24456
|
return I;
|
|
24484
|
-
for (var
|
|
24457
|
+
for (var j = I.content, P; b.indexOf(P = u(E++, v)) !== -1; )
|
|
24485
24458
|
;
|
|
24486
|
-
return w[P] =
|
|
24459
|
+
return w[P] = j, P;
|
|
24487
24460
|
}).join(""), C = d(A, x, v), R = Object.keys(w);
|
|
24488
24461
|
E = 0;
|
|
24489
24462
|
function k(I) {
|
|
24490
|
-
for (var
|
|
24463
|
+
for (var j = 0; j < I.length; j++) {
|
|
24491
24464
|
if (E >= R.length)
|
|
24492
24465
|
return;
|
|
24493
|
-
var P = I[
|
|
24466
|
+
var P = I[j];
|
|
24494
24467
|
if (typeof P == "string" || typeof P.content == "string") {
|
|
24495
|
-
var
|
|
24468
|
+
var O = R[E], T = typeof P == "string" ? P : (
|
|
24496
24469
|
/** @type {string} */
|
|
24497
24470
|
P.content
|
|
24498
|
-
), N = T.indexOf(
|
|
24471
|
+
), N = T.indexOf(O);
|
|
24499
24472
|
if (N !== -1) {
|
|
24500
24473
|
++E;
|
|
24501
|
-
var L = T.substring(0, N), M = p(w[
|
|
24474
|
+
var L = T.substring(0, N), M = p(w[O]), W = T.substring(N + O.length), J = [];
|
|
24502
24475
|
if (L && J.push(L), J.push(M), W) {
|
|
24503
24476
|
var F = [W];
|
|
24504
24477
|
k(F), J.push.apply(J, F);
|
|
24505
24478
|
}
|
|
24506
|
-
typeof P == "string" ? (I.splice.apply(I, [
|
|
24479
|
+
typeof P == "string" ? (I.splice.apply(I, [j, 1].concat(J)), j += J.length - 1) : P.content = J;
|
|
24507
24480
|
}
|
|
24508
24481
|
} else {
|
|
24509
24482
|
var V = P.content;
|
|
@@ -24536,10 +24509,10 @@ prism.languages.sql = {
|
|
|
24536
24509
|
if (w.type === "template-string") {
|
|
24537
24510
|
var C = A[1];
|
|
24538
24511
|
if (A.length === 3 && typeof C != "string" && C.type === "embedded-code") {
|
|
24539
|
-
var R = h(C), k = C.alias, I = Array.isArray(k) ? k[0] : k,
|
|
24540
|
-
if (!
|
|
24512
|
+
var R = h(C), k = C.alias, I = Array.isArray(k) ? k[0] : k, j = r.languages[I];
|
|
24513
|
+
if (!j)
|
|
24541
24514
|
continue;
|
|
24542
|
-
A[1] = m(R,
|
|
24515
|
+
A[1] = m(R, j, I);
|
|
24543
24516
|
}
|
|
24544
24517
|
} else
|
|
24545
24518
|
x(A);
|
|
@@ -26008,32 +25981,32 @@ const prismDefaultProps = {
|
|
|
26008
25981
|
"getPrismTheme",
|
|
26009
25982
|
"variant"
|
|
26010
25983
|
]), R = v && typeof i == "string" ? i.trim() : i, k = R.split(`
|
|
26011
|
-
`).length.toString().length, I = useMantineTheme(),
|
|
25984
|
+
`).length.toString().length, I = useMantineTheme(), j = useClipboard(), P = x || I.colorScheme, { classes: O, cx: T } = useStyles$2({
|
|
26012
25985
|
colorScheme: P,
|
|
26013
25986
|
native: b !== ScrollArea,
|
|
26014
25987
|
maxLineSize: k,
|
|
26015
25988
|
radius: E
|
|
26016
25989
|
}, { name: "Prism", classNames: u, styles: d, unstyled: S, variant: A });
|
|
26017
25990
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadProps$2(__spreadValues$2({
|
|
26018
|
-
className: T(
|
|
25991
|
+
className: T(O.root, a),
|
|
26019
25992
|
ref: n
|
|
26020
25993
|
}, C), {
|
|
26021
25994
|
translate: "no"
|
|
26022
25995
|
}), !c && /* @__PURE__ */ React__default.createElement(Tooltip, {
|
|
26023
|
-
label:
|
|
25996
|
+
label: j.copied ? m : p,
|
|
26024
25997
|
position: "left",
|
|
26025
25998
|
withArrow: !0,
|
|
26026
25999
|
arrowSize: 6,
|
|
26027
26000
|
offset: 6,
|
|
26028
|
-
color:
|
|
26001
|
+
color: j.copied ? "teal" : void 0,
|
|
26029
26002
|
unstyled: S
|
|
26030
26003
|
}, /* @__PURE__ */ React__default.createElement(ActionIcon, {
|
|
26031
|
-
className:
|
|
26032
|
-
"aria-label":
|
|
26033
|
-
onClick: () =>
|
|
26004
|
+
className: O.copy,
|
|
26005
|
+
"aria-label": j.copied ? m : p,
|
|
26006
|
+
onClick: () => j.copy(R),
|
|
26034
26007
|
unstyled: S
|
|
26035
26008
|
}, /* @__PURE__ */ React__default.createElement(CopyIcon, {
|
|
26036
|
-
copied:
|
|
26009
|
+
copied: j.copied
|
|
26037
26010
|
}))), /* @__PURE__ */ React__default.createElement(Highlight$1, __spreadProps$2(__spreadValues$2({}, defaultProps), {
|
|
26038
26011
|
theme: w(I, P),
|
|
26039
26012
|
code: R,
|
|
@@ -26045,10 +26018,10 @@ const prismDefaultProps = {
|
|
|
26045
26018
|
getLineProps: W,
|
|
26046
26019
|
getTokenProps: J
|
|
26047
26020
|
}) => /* @__PURE__ */ React__default.createElement(b, {
|
|
26048
|
-
className:
|
|
26021
|
+
className: O.scrollArea,
|
|
26049
26022
|
dir: "ltr"
|
|
26050
26023
|
}, /* @__PURE__ */ React__default.createElement("pre", {
|
|
26051
|
-
className: T(
|
|
26024
|
+
className: T(O.code, N),
|
|
26052
26025
|
style: L,
|
|
26053
26026
|
dir: "ltr"
|
|
26054
26027
|
}, M.map((F, V) => {
|
|
@@ -26058,15 +26031,15 @@ const prismDefaultProps = {
|
|
|
26058
26031
|
return null;
|
|
26059
26032
|
const U = V + 1, te = W({ line: F, key: V }), _ = U in h, Q = P === "dark" ? I.fn.rgba(I.fn.themeColor((q = h[U]) == null ? void 0 : q.color, 9), 0.25) : I.fn.themeColor((G = h[U]) == null ? void 0 : G.color, 0);
|
|
26060
26033
|
return /* @__PURE__ */ React__default.createElement("div", __spreadProps$2(__spreadValues$2({}, te), {
|
|
26061
|
-
className: T(
|
|
26034
|
+
className: T(O.line, te.className),
|
|
26062
26035
|
style: __spreadValues$2({}, _ ? { backgroundColor: Q } : null)
|
|
26063
26036
|
}), g && /* @__PURE__ */ React__default.createElement("div", {
|
|
26064
|
-
className:
|
|
26037
|
+
className: O.lineNumber,
|
|
26065
26038
|
style: {
|
|
26066
26039
|
color: _ ? I.fn.themeColor((ee = h[U]) == null ? void 0 : ee.color, P === "dark" ? 5 : 8) : void 0
|
|
26067
26040
|
}
|
|
26068
26041
|
}, ((z = h[U]) == null ? void 0 : z.label) || U), /* @__PURE__ */ React__default.createElement("div", {
|
|
26069
|
-
className:
|
|
26042
|
+
className: O.lineContent
|
|
26070
26043
|
}, F.map((ne, re) => {
|
|
26071
26044
|
var $, ae;
|
|
26072
26045
|
const se = J({ token: ne, key: re });
|
|
@@ -26287,20 +26260,20 @@ var diffMatchPatch = { exports: {} };
|
|
|
26287
26260
|
b[g + 1] = 0, x[g + 1] = 0;
|
|
26288
26261
|
for (var S = d - p, E = S % 2 != 0, w = 0, A = 0, C = 0, R = 0, k = 0; k < m && !((/* @__PURE__ */ new Date()).getTime() > u); k++) {
|
|
26289
26262
|
for (var I = -k + w; I <= k - A; I += 2) {
|
|
26290
|
-
var
|
|
26291
|
-
I == -k || I != k && b[
|
|
26292
|
-
for (var
|
|
26293
|
-
P++,
|
|
26294
|
-
if (b[
|
|
26263
|
+
var j = g + I, P;
|
|
26264
|
+
I == -k || I != k && b[j - 1] < b[j + 1] ? P = b[j + 1] : P = b[j - 1] + 1;
|
|
26265
|
+
for (var O = P - I; P < d && O < p && l.charAt(P) == c.charAt(O); )
|
|
26266
|
+
P++, O++;
|
|
26267
|
+
if (b[j] = P, P > d)
|
|
26295
26268
|
A += 2;
|
|
26296
|
-
else if (
|
|
26269
|
+
else if (O > p)
|
|
26297
26270
|
w += 2;
|
|
26298
26271
|
else if (E) {
|
|
26299
26272
|
var T = g + S - I;
|
|
26300
26273
|
if (T >= 0 && T < h && x[T] != -1) {
|
|
26301
26274
|
var N = d - x[T];
|
|
26302
26275
|
if (P >= N)
|
|
26303
|
-
return this.diff_bisectSplit_(l, c, P,
|
|
26276
|
+
return this.diff_bisectSplit_(l, c, P, O, u);
|
|
26304
26277
|
}
|
|
26305
26278
|
}
|
|
26306
26279
|
}
|
|
@@ -26314,11 +26287,11 @@ var diffMatchPatch = { exports: {} };
|
|
|
26314
26287
|
else if (M > p)
|
|
26315
26288
|
C += 2;
|
|
26316
26289
|
else if (!E) {
|
|
26317
|
-
var
|
|
26318
|
-
if (
|
|
26319
|
-
var P = b[
|
|
26290
|
+
var j = g + S - L;
|
|
26291
|
+
if (j >= 0 && j < h && b[j] != -1) {
|
|
26292
|
+
var P = b[j], O = g + P - j;
|
|
26320
26293
|
if (N = d - N, P >= N)
|
|
26321
|
-
return this.diff_bisectSplit_(l, c, P,
|
|
26294
|
+
return this.diff_bisectSplit_(l, c, P, O, u);
|
|
26322
26295
|
}
|
|
26323
26296
|
}
|
|
26324
26297
|
}
|
|
@@ -26386,7 +26359,7 @@ var diffMatchPatch = { exports: {} };
|
|
|
26386
26359
|
return null;
|
|
26387
26360
|
var p = this;
|
|
26388
26361
|
function m(A, C, R) {
|
|
26389
|
-
for (var k = A.substring(R, R + Math.floor(A.length / 4)), I = -1,
|
|
26362
|
+
for (var k = A.substring(R, R + Math.floor(A.length / 4)), I = -1, j = "", P, O, T, N; (I = C.indexOf(k, I + 1)) != -1; ) {
|
|
26390
26363
|
var L = p.diff_commonPrefix(
|
|
26391
26364
|
A.substring(R),
|
|
26392
26365
|
C.substring(I)
|
|
@@ -26394,14 +26367,14 @@ var diffMatchPatch = { exports: {} };
|
|
|
26394
26367
|
A.substring(0, R),
|
|
26395
26368
|
C.substring(0, I)
|
|
26396
26369
|
);
|
|
26397
|
-
|
|
26370
|
+
j.length < M + L && (j = C.substring(I - M, I) + C.substring(I, I + L), P = A.substring(0, R - M), O = A.substring(R + L), T = C.substring(0, I - M), N = C.substring(I + L));
|
|
26398
26371
|
}
|
|
26399
|
-
return
|
|
26372
|
+
return j.length * 2 >= A.length ? [
|
|
26400
26373
|
P,
|
|
26401
|
-
|
|
26374
|
+
O,
|
|
26402
26375
|
T,
|
|
26403
26376
|
N,
|
|
26404
|
-
|
|
26377
|
+
j
|
|
26405
26378
|
] : null;
|
|
26406
26379
|
}
|
|
26407
26380
|
var g = m(
|
|
@@ -26447,8 +26420,8 @@ var diffMatchPatch = { exports: {} };
|
|
|
26447
26420
|
function c(w, A) {
|
|
26448
26421
|
if (!w || !A)
|
|
26449
26422
|
return 6;
|
|
26450
|
-
var C = w.charAt(w.length - 1), R = A.charAt(0), k = C.match(n.nonAlphaNumericRegex_), I = R.match(n.nonAlphaNumericRegex_),
|
|
26451
|
-
return N || L ? 5 :
|
|
26423
|
+
var C = w.charAt(w.length - 1), R = A.charAt(0), k = C.match(n.nonAlphaNumericRegex_), I = R.match(n.nonAlphaNumericRegex_), j = k && C.match(n.whitespaceRegex_), P = I && R.match(n.whitespaceRegex_), O = j && C.match(n.linebreakRegex_), T = P && R.match(n.linebreakRegex_), N = O && w.match(n.blanklineEndRegex_), L = T && A.match(n.blanklineStartRegex_);
|
|
26424
|
+
return N || L ? 5 : O || T ? 4 : k && !j && P ? 3 : j || P ? 2 : k || I ? 1 : 0;
|
|
26452
26425
|
}
|
|
26453
26426
|
for (var u = 1; u < l.length - 1; ) {
|
|
26454
26427
|
if (l[u - 1][0] == i && l[u + 1][0] == i) {
|
|
@@ -26598,8 +26571,8 @@ var diffMatchPatch = { exports: {} };
|
|
|
26598
26571
|
if (c.length > this.Match_MaxBits)
|
|
26599
26572
|
throw new Error("Pattern too long for this browser.");
|
|
26600
26573
|
var d = this.match_alphabet_(c), p = this;
|
|
26601
|
-
function m(P,
|
|
26602
|
-
var T = P / c.length, N = Math.abs(u -
|
|
26574
|
+
function m(P, O) {
|
|
26575
|
+
var T = P / c.length, N = Math.abs(u - O);
|
|
26603
26576
|
return p.Match_Distance ? T + N / p.Match_Distance : N ? 1 : T;
|
|
26604
26577
|
}
|
|
26605
26578
|
var g = this.Match_Threshold, h = l.indexOf(c, u);
|
|
@@ -26615,9 +26588,9 @@ var diffMatchPatch = { exports: {} };
|
|
|
26615
26588
|
for (var k = C; k >= A; k--) {
|
|
26616
26589
|
var I = d[l.charAt(k - 1)];
|
|
26617
26590
|
if (w === 0 ? R[k] = (R[k + 1] << 1 | 1) & I : R[k] = (R[k + 1] << 1 | 1) & I | ((E[k + 1] | E[k]) << 1 | 1) | E[k + 1], R[k] & b) {
|
|
26618
|
-
var
|
|
26619
|
-
if (
|
|
26620
|
-
if (g =
|
|
26591
|
+
var j = m(w, k - 1);
|
|
26592
|
+
if (j <= g)
|
|
26593
|
+
if (g = j, h = k - 1, h > u)
|
|
26621
26594
|
A = Math.max(1, 2 * u - h);
|
|
26622
26595
|
else
|
|
26623
26596
|
break;
|
|
@@ -28550,7 +28523,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28550
28523
|
}
|
|
28551
28524
|
}
|
|
28552
28525
|
}
|
|
28553
|
-
var k = p, I = m,
|
|
28526
|
+
var k = p, I = m, j = d, P = u, O = o, T = g, N = i, L = v, M = x, W = a, J = c, F = l, V = h, q = !1;
|
|
28554
28527
|
function G(Z) {
|
|
28555
28528
|
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) || R(Z) === p;
|
|
28556
28529
|
}
|
|
@@ -28590,7 +28563,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28590
28563
|
function K(Z) {
|
|
28591
28564
|
return R(Z) === h;
|
|
28592
28565
|
}
|
|
28593
|
-
r.AsyncMode = k, r.ConcurrentMode = I, r.ContextConsumer =
|
|
28566
|
+
r.AsyncMode = k, r.ConcurrentMode = I, r.ContextConsumer = j, r.ContextProvider = P, r.Element = O, r.ForwardRef = T, r.Fragment = N, r.Lazy = L, r.Memo = M, 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 = R;
|
|
28594
28567
|
}();
|
|
28595
28568
|
}
|
|
28596
28569
|
}), require_react_is = __commonJS({
|
|
@@ -28734,9 +28707,9 @@ var require_react_is_production_min = __commonJS({
|
|
|
28734
28707
|
arrayOf: R,
|
|
28735
28708
|
element: k(),
|
|
28736
28709
|
elementType: I(),
|
|
28737
|
-
instanceOf:
|
|
28710
|
+
instanceOf: j,
|
|
28738
28711
|
node: N(),
|
|
28739
|
-
objectOf:
|
|
28712
|
+
objectOf: O,
|
|
28740
28713
|
oneOf: P,
|
|
28741
28714
|
oneOfType: T,
|
|
28742
28715
|
shape: M,
|
|
@@ -28829,7 +28802,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28829
28802
|
}
|
|
28830
28803
|
return w(z);
|
|
28831
28804
|
}
|
|
28832
|
-
function
|
|
28805
|
+
function j(z) {
|
|
28833
28806
|
function U(te, _, Q, ne, re) {
|
|
28834
28807
|
if (!(te[_] instanceof z)) {
|
|
28835
28808
|
var $ = z.name || x, ae = ee(te[_]);
|
|
@@ -28856,7 +28829,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28856
28829
|
}
|
|
28857
28830
|
return w(U);
|
|
28858
28831
|
}
|
|
28859
|
-
function
|
|
28832
|
+
function O(z) {
|
|
28860
28833
|
function U(te, _, Q, ne, re) {
|
|
28861
28834
|
if (typeof z != "function")
|
|
28862
28835
|
return new E("Property `" + re + "` of component `" + Q + "` has invalid PropType notation inside objectOf.");
|
|
@@ -30112,12 +30085,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30112
30085
|
r.greenscreen = n(k);
|
|
30113
30086
|
var I = require_harmonic();
|
|
30114
30087
|
r.harmonic = n(I);
|
|
30115
|
-
var
|
|
30116
|
-
r.hopscotch = n(
|
|
30088
|
+
var j = require_hopscotch();
|
|
30089
|
+
r.hopscotch = n(j);
|
|
30117
30090
|
var P = require_isotope();
|
|
30118
30091
|
r.isotope = n(P);
|
|
30119
|
-
var
|
|
30120
|
-
r.marrakesh = n(
|
|
30092
|
+
var O = require_marrakesh();
|
|
30093
|
+
r.marrakesh = n(O);
|
|
30121
30094
|
var T = require_mocha();
|
|
30122
30095
|
r.mocha = n(T);
|
|
30123
30096
|
var N = require_monokai();
|
|
@@ -30954,10 +30927,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30954
30927
|
if (!(k in c))
|
|
30955
30928
|
throw new Error("Unable to parse color from object: " + JSON.stringify(v));
|
|
30956
30929
|
this.model = c[k];
|
|
30957
|
-
var I = a[this.model].labels,
|
|
30930
|
+
var I = a[this.model].labels, j = [];
|
|
30958
30931
|
for (E = 0; E < I.length; E++)
|
|
30959
|
-
|
|
30960
|
-
this.color = x(
|
|
30932
|
+
j.push(v[I[E]]);
|
|
30933
|
+
this.color = x(j);
|
|
30961
30934
|
}
|
|
30962
30935
|
if (u[this.model])
|
|
30963
30936
|
for (w = a[this.model].channels, E = 0; E < w; E++) {
|
|
@@ -31176,7 +31149,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31176
31149
|
["partial", p],
|
|
31177
31150
|
["partialRight", m],
|
|
31178
31151
|
["rearg", h]
|
|
31179
|
-
], A = "[object Function]", C = "[object GeneratorFunction]", R = "[object Symbol]", k = /[\\^$.*+?()[\]{}|]/g, I = /^\s+|\s+$/g,
|
|
31152
|
+
], A = "[object Function]", C = "[object GeneratorFunction]", R = "[object Symbol]", k = /[\\^$.*+?()[\]{}|]/g, I = /^\s+|\s+$/g, j = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, P = /\{\n\/\* \[wrapped with (.+)\] \*/, O = /,? & /, T = /^[-+]0x[0-9a-f]+$/i, N = /^0b[01]+$/i, L = /^\[object .+?Constructor\]$/, M = /^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")();
|
|
31180
31153
|
function G(B, D, Y) {
|
|
31181
31154
|
switch (Y.length) {
|
|
31182
31155
|
case 0:
|
|
@@ -31250,10 +31223,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31250
31223
|
return D && D.length > 2 ? B : void 0;
|
|
31251
31224
|
}();
|
|
31252
31225
|
function Pe(B) {
|
|
31253
|
-
return
|
|
31226
|
+
return Oe(B) ? Ze(B) : {};
|
|
31254
31227
|
}
|
|
31255
31228
|
function ve(B) {
|
|
31256
|
-
if (!
|
|
31229
|
+
if (!Oe(B) || Be(B))
|
|
31257
31230
|
return !1;
|
|
31258
31231
|
var D = st(B) || re(B) ? be : L;
|
|
31259
31232
|
return D.test(Ie(B));
|
|
@@ -31312,7 +31285,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31312
31285
|
return new B(D[0], D[1], D[2], D[3], D[4], D[5], D[6]);
|
|
31313
31286
|
}
|
|
31314
31287
|
var Y = Pe(B.prototype), oe = B.apply(Y, D);
|
|
31315
|
-
return
|
|
31288
|
+
return Oe(oe) ? oe : Y;
|
|
31316
31289
|
};
|
|
31317
31290
|
}
|
|
31318
31291
|
function De(B, D, Y) {
|
|
@@ -31420,11 +31393,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31420
31393
|
}
|
|
31421
31394
|
function ot(B) {
|
|
31422
31395
|
var D = B.match(P);
|
|
31423
|
-
return D ? D[1].split(
|
|
31396
|
+
return D ? D[1].split(O) : [];
|
|
31424
31397
|
}
|
|
31425
31398
|
function Ue(B, D) {
|
|
31426
31399
|
var Y = D.length, oe = Y - 1;
|
|
31427
|
-
return D[oe] = (Y > 1 ? "& " : "") + D[oe], D = D.join(Y > 2 ? ", " : " "), B.replace(
|
|
31400
|
+
return D[oe] = (Y > 1 ? "& " : "") + D[oe], D = D.join(Y > 2 ? ", " : " "), B.replace(j, `{
|
|
31428
31401
|
/* [wrapped with ` + D + `] */
|
|
31429
31402
|
`);
|
|
31430
31403
|
}
|
|
@@ -31468,16 +31441,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31468
31441
|
D & Y[1] && !z(B, oe) && B.push(oe);
|
|
31469
31442
|
}), B.sort();
|
|
31470
31443
|
}
|
|
31471
|
-
function
|
|
31444
|
+
function je(B, D, Y) {
|
|
31472
31445
|
D = Y ? void 0 : D;
|
|
31473
31446
|
var oe = Se(B, u, void 0, void 0, void 0, void 0, void 0, D);
|
|
31474
|
-
return oe.placeholder =
|
|
31447
|
+
return oe.placeholder = je.placeholder, oe;
|
|
31475
31448
|
}
|
|
31476
31449
|
function st(B) {
|
|
31477
|
-
var D =
|
|
31450
|
+
var D = Oe(B) ? Te.call(B) : "";
|
|
31478
31451
|
return D == A || D == C;
|
|
31479
31452
|
}
|
|
31480
|
-
function
|
|
31453
|
+
function Oe(B) {
|
|
31481
31454
|
var D = typeof B;
|
|
31482
31455
|
return !!B && (D == "object" || D == "function");
|
|
31483
31456
|
}
|
|
@@ -31505,9 +31478,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31505
31478
|
return B;
|
|
31506
31479
|
if (Qe(B))
|
|
31507
31480
|
return E;
|
|
31508
|
-
if (
|
|
31481
|
+
if (Oe(B)) {
|
|
31509
31482
|
var D = typeof B.valueOf == "function" ? B.valueOf() : B;
|
|
31510
|
-
B =
|
|
31483
|
+
B = Oe(D) ? D + "" : D;
|
|
31511
31484
|
}
|
|
31512
31485
|
if (typeof B != "string")
|
|
31513
31486
|
return B === 0 ? B : +B;
|
|
@@ -31523,7 +31496,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31523
31496
|
function Ke(B) {
|
|
31524
31497
|
return B;
|
|
31525
31498
|
}
|
|
31526
|
-
|
|
31499
|
+
je.placeholder = {}, n.exports = je;
|
|
31527
31500
|
}
|
|
31528
31501
|
});
|
|
31529
31502
|
init_react_shim();
|
|
@@ -34039,8 +34012,8 @@ const ChooseLayout = ({ open: r, close: n }) => {
|
|
|
34039
34012
|
{
|
|
34040
34013
|
title: o("Single side panel"),
|
|
34041
34014
|
description: o("Suitable for smaller screens. Bigger canvas size."),
|
|
34042
|
-
selected: a ===
|
|
34043
|
-
onSelect: () => l(
|
|
34015
|
+
selected: a === "SINGLE_SIDE_PANEL",
|
|
34016
|
+
onSelect: () => l("SINGLE_SIDE_PANEL"),
|
|
34044
34017
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col rounded border border-border", children: [
|
|
34045
34018
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "borde-b h-4 border-b border-border" }),
|
|
34046
34019
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-32", children: [
|
|
@@ -34055,8 +34028,8 @@ const ChooseLayout = ({ open: r, close: n }) => {
|
|
|
34055
34028
|
{
|
|
34056
34029
|
title: o("Dual side panel"),
|
|
34057
34030
|
description: o("Suitable for larger screens. Blocks settings is always visible."),
|
|
34058
|
-
selected: a ===
|
|
34059
|
-
onSelect: () => l(
|
|
34031
|
+
selected: a === "DUAL_SIDE_PANEL",
|
|
34032
|
+
onSelect: () => l("DUAL_SIDE_PANEL"),
|
|
34060
34033
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col rounded border border-border", children: [
|
|
34061
34034
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "borde-b h-4 border-b border-border" }),
|
|
34062
34035
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-32", children: [
|
|
@@ -34088,31 +34061,61 @@ const ChooseLayout = ({ open: r, close: n }) => {
|
|
|
34088
34061
|
)
|
|
34089
34062
|
] }) })
|
|
34090
34063
|
] }) });
|
|
34091
|
-
},
|
|
34064
|
+
}, HotKeys = () => {
|
|
34065
|
+
const { t: r } = useTranslation(), n = {
|
|
34066
|
+
"ctrl + Z": "Undo",
|
|
34067
|
+
"ctrl + Y": "Redo",
|
|
34068
|
+
"ctrl + D": "Duplicate"
|
|
34069
|
+
}, o = {
|
|
34070
|
+
// "ctrl + /": "Rename block",
|
|
34071
|
+
"ctrl + S": "Save page",
|
|
34072
|
+
esc: "Deselect blocks",
|
|
34073
|
+
del: "Delete block"
|
|
34074
|
+
};
|
|
34075
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Dialog, { children: [
|
|
34076
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(DialogTrigger, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
|
|
34077
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { variant: "ghost", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyboardIcon, { className: "size-8" }) }) }),
|
|
34078
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: r("Keyboard shortcuts") }) })
|
|
34079
|
+
] }) }),
|
|
34080
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(DialogContent, { className: "border-border sm:max-w-[525px]", children: [
|
|
34081
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(DialogHeader, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(DialogTitle, { className: "text-foreground", children: r("Keyboard shortcuts") }) }),
|
|
34082
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-2", children: [
|
|
34083
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mr-8 flex flex-col space-y-2 border-r border-border", children: Object.keys(n).map((a) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-4", children: [
|
|
34084
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Badge$1, { variant: "outline", className: "border border-border p-1 px-2", children: r(a) }),
|
|
34085
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-muted-foreground", children: r(n[a]) })
|
|
34086
|
+
] }, a)) }),
|
|
34087
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col space-y-2", children: Object.keys(o).map((a) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-4", children: [
|
|
34088
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Badge$1, { variant: "outline", className: "border border-border p-1 px-2", children: r(a) }),
|
|
34089
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-muted-foreground", children: r(o[a]) })
|
|
34090
|
+
] }, a)) })
|
|
34091
|
+
] }) })
|
|
34092
|
+
] })
|
|
34093
|
+
] });
|
|
34094
|
+
}, TopBar = lazy(() => import("./Topbar-x0tjZaWC.js")), useAutoSave = () => {
|
|
34092
34095
|
const { savePage: r } = useSavePage(), n = useBuilderProp("autoSaveSupport", !0), o = useBuilderProp("autoSaveInterval", 60);
|
|
34093
34096
|
useIntervalEffect(() => {
|
|
34094
34097
|
n && r();
|
|
34095
34098
|
}, o * 1e3);
|
|
34096
34099
|
};
|
|
34097
34100
|
function useSidebarMenuItems(r) {
|
|
34098
|
-
const n = r ===
|
|
34101
|
+
const n = r === "SINGLE_SIDE_PANEL";
|
|
34099
34102
|
return useMemo$1(() => compact([
|
|
34100
34103
|
{
|
|
34101
34104
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Layers, { size: 20 }),
|
|
34102
34105
|
label: "sidebar.outline",
|
|
34103
34106
|
component: () => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "-mt-8", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Outline$1, {}) })
|
|
34104
34107
|
},
|
|
34105
|
-
n ? { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
34108
|
+
n ? { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(GearIcon, { className: "size-5" }), label: "sidebar.edit_block", component: SettingsPanel$1 } : null,
|
|
34106
34109
|
{ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(LightningBoltIcon, { className: "size-5" }), label: "sidebar.ai_assistant", component: AskAI },
|
|
34107
34110
|
{
|
|
34108
34111
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(PaintBucketIcon, { size: 20 }),
|
|
34109
34112
|
label: "sidebar.theme",
|
|
34110
34113
|
component: () => /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeOptions, { showHeading: !1 })
|
|
34111
34114
|
}
|
|
34112
|
-
]), [
|
|
34115
|
+
]), [n]);
|
|
34113
34116
|
}
|
|
34114
34117
|
function isDualLayout(r) {
|
|
34115
|
-
return r !==
|
|
34118
|
+
return r !== "SINGLE_SIDE_PANEL";
|
|
34116
34119
|
}
|
|
34117
34120
|
const RootLayout = () => {
|
|
34118
34121
|
const [r, n] = useState$1(0), [o] = useLayoutVariant(), [a, i] = useState$1(!1);
|
|
@@ -34149,17 +34152,13 @@ const RootLayout = () => {
|
|
|
34149
34152
|
) }),
|
|
34150
34153
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: p(h.label) }) })
|
|
34151
34154
|
] }, "button" + b)) }),
|
|
34152
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
34153
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
34154
|
-
"
|
|
34155
|
-
{
|
|
34156
|
-
|
|
34157
|
-
|
|
34158
|
-
|
|
34159
|
-
}
|
|
34160
|
-
) }),
|
|
34161
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: p("Choose Builder Layout") }) })
|
|
34162
|
-
] }) })
|
|
34155
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col space-y-1", children: [
|
|
34156
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
|
|
34157
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { variant: "ghost", onClick: () => i(!0), children: /* @__PURE__ */ jsxRuntimeExports.jsx(LayoutTemplate, { size: 20 }) }) }),
|
|
34158
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: p("Choose Builder Layout") }) })
|
|
34159
|
+
] }),
|
|
34160
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(HotKeys, {})
|
|
34161
|
+
] })
|
|
34163
34162
|
] }),
|
|
34164
34163
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
34165
34164
|
motion.div,
|
|
@@ -34262,51 +34261,46 @@ const RootLayout = () => {
|
|
|
34262
34261
|
] }) }) });
|
|
34263
34262
|
};
|
|
34264
34263
|
export {
|
|
34265
|
-
|
|
34264
|
+
useStylingBreakpoint as $,
|
|
34266
34265
|
AddBlocksPanel$1 as A,
|
|
34267
34266
|
BlockSettings as B,
|
|
34268
34267
|
ChaiSelect$1 as C,
|
|
34269
34268
|
DefaultChaiBlocks as D,
|
|
34270
|
-
|
|
34269
|
+
useAddClassesToBlocks as E,
|
|
34271
34270
|
FaCheck as F,
|
|
34272
|
-
|
|
34273
|
-
|
|
34271
|
+
useCanvasWidth as G,
|
|
34272
|
+
useCanvasZoom as H,
|
|
34274
34273
|
ImportHTML$1 as I,
|
|
34275
|
-
|
|
34276
|
-
|
|
34277
|
-
|
|
34278
|
-
|
|
34279
|
-
|
|
34274
|
+
useCopyBlockIds as J,
|
|
34275
|
+
useCopyToClipboard as K,
|
|
34276
|
+
useCurrentPage as L,
|
|
34277
|
+
useCutBlockIds as M,
|
|
34278
|
+
useDarkMode as N,
|
|
34280
34279
|
Outline$1 as O,
|
|
34281
|
-
|
|
34282
|
-
|
|
34283
|
-
|
|
34284
|
-
|
|
34280
|
+
useDuplicateBlocks as P,
|
|
34281
|
+
useHiddenBlockIds as Q,
|
|
34282
|
+
useHighlightBlockId as R,
|
|
34283
|
+
usePasteBlocks as S,
|
|
34285
34284
|
ThemeOptions as T,
|
|
34286
34285
|
UILibraries as U,
|
|
34287
|
-
|
|
34288
|
-
|
|
34289
|
-
|
|
34290
|
-
|
|
34291
|
-
|
|
34292
|
-
|
|
34286
|
+
useBrandingOptions as V,
|
|
34287
|
+
useRemoveBlocks as W,
|
|
34288
|
+
useRemoveClassesFromBlocks as X,
|
|
34289
|
+
useSelectedBlockCurrentClasses as Y,
|
|
34290
|
+
useSelectedBlockAllClasses as Z,
|
|
34291
|
+
useSelectedBlock as _,
|
|
34293
34292
|
useSelectedBlockIds as a,
|
|
34294
|
-
|
|
34295
|
-
|
|
34296
|
-
|
|
34297
|
-
|
|
34298
|
-
|
|
34299
|
-
|
|
34300
|
-
|
|
34301
|
-
useAddBlockParent as a7,
|
|
34302
|
-
useSelectedBreakpoints as a8,
|
|
34303
|
-
useSelectedStylingBlocks as a9,
|
|
34304
|
-
useLayoutVariant as aa,
|
|
34305
|
-
useBlocksStoreUndoableActions as ab,
|
|
34293
|
+
useUILibraryBlocks as a0,
|
|
34294
|
+
useStylingState as a1,
|
|
34295
|
+
useSelectedBlocksDisplayChild as a2,
|
|
34296
|
+
useSelectedBreakpoints as a3,
|
|
34297
|
+
useSelectedStylingBlocks as a4,
|
|
34298
|
+
useLayoutVariant as a5,
|
|
34299
|
+
useBlocksStoreUndoableActions as a6,
|
|
34306
34300
|
useUpdateBlocksProps as b,
|
|
34307
34301
|
useUpdateBlocksPropsRealtime as c,
|
|
34308
|
-
|
|
34309
|
-
|
|
34302
|
+
useSavePage as d,
|
|
34303
|
+
useBuilderProp as e,
|
|
34310
34304
|
usePreviewMode as f,
|
|
34311
34305
|
CanvasArea$1 as g,
|
|
34312
34306
|
BlockStyling as h,
|
|
@@ -34321,11 +34315,11 @@ export {
|
|
|
34321
34315
|
DarkMode as q,
|
|
34322
34316
|
Breakpoints as r,
|
|
34323
34317
|
UndoRedo as s,
|
|
34324
|
-
|
|
34318
|
+
getClassValueAndUnit as t,
|
|
34325
34319
|
useCodeEditor as u,
|
|
34326
|
-
|
|
34327
|
-
|
|
34328
|
-
|
|
34329
|
-
|
|
34330
|
-
|
|
34320
|
+
getBlocksFromHTML as v,
|
|
34321
|
+
useBlocksStore as w,
|
|
34322
|
+
useUndoManager as x,
|
|
34323
|
+
useBuilderReset as y,
|
|
34324
|
+
useAddBlock as z
|
|
34331
34325
|
};
|