@chaibuilder/sdk 1.2.88 → 1.2.89
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/dist/{CodeEditor-Oq3aZl5f.cjs → CodeEditor-nUyO-Y3p.cjs} +1 -1
- package/dist/{CodeEditor-86swShPz.js → CodeEditor-tlLB_emd.js} +3 -3
- package/dist/{Topbar-Hvj7y8Yj.js → Topbar-4sclJZrd.js} +4 -4
- package/dist/{Topbar-cFOidWo5.cjs → Topbar-z2HUDRQZ.cjs} +1 -1
- package/dist/{UnsplashImages-JkK2qDpq.js → UnsplashImages-7f-L_-9x.js} +3 -3
- package/dist/{UnsplashImages-aNzjUMdE.cjs → UnsplashImages-y5dtRWZL.cjs} +1 -1
- package/dist/{UploadImages-XD7mDSiB.cjs → UploadImages--AV-U7uF.cjs} +1 -1
- package/dist/{UploadImages--oXePb3w.js → UploadImages-hXRywPyk.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.js +3 -3
- package/dist/{index-JAlLL51L.js → index-dee0FZm6.js} +420 -394
- package/dist/{index-VEAUj2Fk.cjs → index-dsyGOJ1S.cjs} +3 -3
- package/dist/{select-FnytvxNn.cjs → select-Siy0CQZ0.cjs} +1 -1
- package/dist/{select-8MHQqep3.js → select-nNzJ_AuC.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +199 -214
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +11 -11
- package/package.json +1 -1
- package/dist/context-menu-Lx_MAqsu.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({
|
|
@@ -3279,7 +3279,7 @@ const useHandleCanvasDblClick = () => {
|
|
|
3279
3279
|
"bg-dark": A,
|
|
3280
3280
|
"text-dark": C,
|
|
3281
3281
|
"text-light": R
|
|
3282
|
-
},
|
|
3282
|
+
}, j = get$1(n, "roundedCorners", "0");
|
|
3283
3283
|
!p || !p.tailwind || (p.tailwind.config = {
|
|
3284
3284
|
darkMode: "class",
|
|
3285
3285
|
theme: {
|
|
@@ -3296,7 +3296,7 @@ const useHandleCanvasDblClick = () => {
|
|
|
3296
3296
|
body: [v]
|
|
3297
3297
|
},
|
|
3298
3298
|
borderRadius: {
|
|
3299
|
-
DEFAULT: `${
|
|
3299
|
+
DEFAULT: `${j || "0"}px`
|
|
3300
3300
|
},
|
|
3301
3301
|
colors: { ...I, ...k }
|
|
3302
3302
|
}
|
|
@@ -3305,19 +3305,19 @@ const useHandleCanvasDblClick = () => {
|
|
|
3305
3305
|
typography$1,
|
|
3306
3306
|
forms,
|
|
3307
3307
|
aspectRatio,
|
|
3308
|
-
plugin(function({ addBase: P, theme:
|
|
3308
|
+
plugin(function({ addBase: P, theme: O }) {
|
|
3309
3309
|
P({
|
|
3310
3310
|
"h1,h2,h3,h4,h5,h6": {
|
|
3311
|
-
fontFamily:
|
|
3311
|
+
fontFamily: O("fontFamily.heading")
|
|
3312
3312
|
},
|
|
3313
3313
|
body: {
|
|
3314
|
-
fontFamily:
|
|
3315
|
-
color:
|
|
3316
|
-
backgroundColor:
|
|
3314
|
+
fontFamily: O("fontFamily.body"),
|
|
3315
|
+
color: O("colors.text-light"),
|
|
3316
|
+
backgroundColor: O("colors.bg-light")
|
|
3317
3317
|
},
|
|
3318
3318
|
".dark body": {
|
|
3319
|
-
color:
|
|
3320
|
-
backgroundColor:
|
|
3319
|
+
color: O("colors.text-dark"),
|
|
3320
|
+
backgroundColor: O("colors.bg-dark")
|
|
3321
3321
|
}
|
|
3322
3322
|
});
|
|
3323
3323
|
})
|
|
@@ -3416,9 +3416,9 @@ function BlocksRendererStatic({ blocks: r }) {
|
|
|
3416
3416
|
if (g === b._id || d.includes(b._id))
|
|
3417
3417
|
return null;
|
|
3418
3418
|
const v = getSlots(b), S = {};
|
|
3419
|
-
isEmpty(v) || Object.keys(v).forEach((
|
|
3420
|
-
S[
|
|
3421
|
-
v[
|
|
3419
|
+
isEmpty(v) || Object.keys(v).forEach((j) => {
|
|
3420
|
+
S[j] = React__default.Children.toArray(
|
|
3421
|
+
v[j].map((P) => /* @__PURE__ */ jsxRuntimeExports.jsx(BlocksRendererStatic, { blocks: [find(n, { _id: P })] }))
|
|
3422
3422
|
);
|
|
3423
3423
|
});
|
|
3424
3424
|
const E = filter(n, { _parent: b._id });
|
|
@@ -3650,7 +3650,7 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
|
|
|
3650
3650
|
}
|
|
3651
3651
|
}, Breadcrumb = () => {
|
|
3652
3652
|
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: [
|
|
3653
|
+
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
3654
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("li", { className: "inline-flex items-center", children: [
|
|
3655
3655
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { onClick: () => n([]), variant: "ghost", className: "h-fit p-1 text-xs font-normal", children: "Body" }),
|
|
3656
3656
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, { size: 16 })
|
|
@@ -3674,7 +3674,7 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
|
|
|
3674
3674
|
i !== r.length - 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, { size: 16 })
|
|
3675
3675
|
] }, i))
|
|
3676
3676
|
] }) });
|
|
3677
|
-
}, CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-
|
|
3677
|
+
}, CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-tlLB_emd.js")), CanvasArea = () => {
|
|
3678
3678
|
const [r] = useCodeEditor(), n = useBuilderProp("onError", noop$1);
|
|
3679
3679
|
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
3680
|
/* @__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 +4001,34 @@ function BiExpandVertical(r) {
|
|
|
4001
4001
|
const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
4002
4002
|
const a = useBuilderProp("outlineMenuItems", []), { t: i } = useTranslation(), [l, , c] = useHiddenBlockIds(), [, u] = useHighlightBlockId(), [d] = useAtom$1(canvasIframeAtom);
|
|
4003
4003
|
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
|
-
|
|
4004
|
+
const m = r.children.length > 0, { id: g, data: h, isSelected: b, willReceiveDrop: x, isDragging: v, isEditing: S, handleClick: E } = r, w = (j) => {
|
|
4005
|
+
j.stopPropagation(), !l.includes(g) && r.toggle();
|
|
4006
|
+
}, A = (j) => {
|
|
4007
|
+
j.isInternal && (p = j.isOpen, j.isOpen && j.close());
|
|
4008
|
+
}, C = (j) => {
|
|
4009
|
+
j.isInternal && p !== null && (p ? j.open() : j.close(), p = null);
|
|
4010
|
+
}, R = (j) => {
|
|
4011
|
+
j.stopPropagation(), !r.isOpen && !l.includes(g) && r.toggle(), E(j);
|
|
4012
4012
|
};
|
|
4013
4013
|
useEffect$1(() => {
|
|
4014
|
-
const
|
|
4014
|
+
const j = setTimeout(() => {
|
|
4015
4015
|
x && !r.isOpen && !v && !l.includes(g) && r.toggle();
|
|
4016
4016
|
}, 500);
|
|
4017
|
-
return () => clearTimeout(
|
|
4017
|
+
return () => clearTimeout(j);
|
|
4018
4018
|
}, [x, r, v]);
|
|
4019
4019
|
const k = useMemo$1(() => {
|
|
4020
|
-
const
|
|
4021
|
-
for (let
|
|
4022
|
-
if (O
|
|
4023
|
-
const T = h[O
|
|
4020
|
+
const j = Object.keys(h), P = [];
|
|
4021
|
+
for (let O = 0; O < j.length; O++)
|
|
4022
|
+
if (j[O].endsWith("_attrs")) {
|
|
4023
|
+
const T = h[j[O]], N = Object.keys(T).join("|");
|
|
4024
4024
|
N.match(/x-data/) && P.push("data"), N.match(/x-on/) && P.push("event"), N.match(/x-show|x-if/) && P.push("show");
|
|
4025
4025
|
}
|
|
4026
4026
|
return P;
|
|
4027
|
-
}, [h]), I = (
|
|
4028
|
-
const
|
|
4027
|
+
}, [h]), I = (j, P) => {
|
|
4028
|
+
const O = d.contentDocument || d.contentWindow.document, T = O.querySelector(`[data-block-id=${j}]`);
|
|
4029
4029
|
T && T.setAttribute("data-drop", P);
|
|
4030
4030
|
const N = T.getBoundingClientRect(), L = d.getBoundingClientRect();
|
|
4031
|
-
N.top >= L.top && N.left >= L.left && N.bottom <= L.bottom && N.right <= L.right || (
|
|
4031
|
+
N.top >= L.top && N.left >= L.left && N.bottom <= L.bottom && N.right <= L.right || (O.documentElement.scrollTop = T.offsetTop - L.top);
|
|
4032
4032
|
};
|
|
4033
4033
|
return g === ROOT_TEMP_KEY ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
4034
4034
|
"button",
|
|
@@ -4050,17 +4050,17 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4050
4050
|
ref: l.includes(g) ? null : o,
|
|
4051
4051
|
onDragStart: () => A(r),
|
|
4052
4052
|
onDragEnd: () => C(r),
|
|
4053
|
-
onDragOver: (
|
|
4054
|
-
|
|
4053
|
+
onDragOver: (j) => {
|
|
4054
|
+
j.preventDefault(), I(g, "yes");
|
|
4055
4055
|
},
|
|
4056
|
-
onDragLeave: (
|
|
4057
|
-
|
|
4056
|
+
onDragLeave: (j) => {
|
|
4057
|
+
j.preventDefault(), I(g, "no");
|
|
4058
4058
|
},
|
|
4059
|
-
onDrop: (
|
|
4060
|
-
|
|
4059
|
+
onDrop: (j) => {
|
|
4060
|
+
j.preventDefault(), I(g, "no");
|
|
4061
4061
|
},
|
|
4062
4062
|
className: cn(
|
|
4063
|
-
"group flex !h-full w-full items-center justify-between space-x-px !rounded py-px outline-none",
|
|
4063
|
+
"group flex !h-full w-full items-center justify-between space-x-px !rounded py-px text-foreground/80 outline-none",
|
|
4064
4064
|
b ? "bg-blue-500 text-white" : "hover:bg-gray-200 dark:hover:bg-gray-800",
|
|
4065
4065
|
x && canAcceptChildBlock(h._type, "Icon") ? "bg-green-200" : "",
|
|
4066
4066
|
v && "opacity-20",
|
|
@@ -4081,8 +4081,8 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4081
4081
|
"div",
|
|
4082
4082
|
{
|
|
4083
4083
|
className: "ml-2 flex items-center gap-x-1 truncate text-[11px]",
|
|
4084
|
-
onDoubleClick: (
|
|
4085
|
-
|
|
4084
|
+
onDoubleClick: (j) => {
|
|
4085
|
+
j.stopPropagation(), r.edit(), r.deselect();
|
|
4086
4086
|
},
|
|
4087
4087
|
children: [
|
|
4088
4088
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: (h == null ? void 0 : h._name) || (h == null ? void 0 : h._type.split("/").pop()) }),
|
|
@@ -4095,16 +4095,16 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4095
4095
|
] })
|
|
4096
4096
|
] }),
|
|
4097
4097
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "invisible flex items-center space-x-1 pr-2 group-hover:visible", children: [
|
|
4098
|
-
!l.includes(g) && a.map((
|
|
4098
|
+
!l.includes(g) && a.map((j) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
|
|
4099
4099
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4100
4100
|
TooltipTrigger,
|
|
4101
4101
|
{
|
|
4102
4102
|
className: "cursor-pointer rounded bg-transparent hover:bg-white hover:text-blue-500",
|
|
4103
4103
|
asChild: !0,
|
|
4104
|
-
children: React__default.createElement(
|
|
4104
|
+
children: React__default.createElement(j.item, { blockId: g })
|
|
4105
4105
|
}
|
|
4106
4106
|
),
|
|
4107
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { className: "isolate z-10", children:
|
|
4107
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { className: "isolate z-10", children: j.tooltip })
|
|
4108
4108
|
] })),
|
|
4109
4109
|
canAddChildBlock(h == null ? void 0 : h._type) && !l.includes(g) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
|
|
4110
4110
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -4122,8 +4122,8 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4122
4122
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4123
4123
|
TooltipTrigger,
|
|
4124
4124
|
{
|
|
4125
|
-
onClick: (
|
|
4126
|
-
|
|
4125
|
+
onClick: (j) => {
|
|
4126
|
+
j.stopPropagation(), c(g), r.isOpen && r.toggle();
|
|
4127
4127
|
},
|
|
4128
4128
|
className: "cursor-pointer rounded bg-transparent hover:bg-white hover:text-black",
|
|
4129
4129
|
asChild: !0,
|
|
@@ -4142,7 +4142,7 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4142
4142
|
"input",
|
|
4143
4143
|
{
|
|
4144
4144
|
autoFocus: !0,
|
|
4145
|
-
className: "ml-2 w-full rounded-sm border border-
|
|
4145
|
+
className: "ml-2 !h-4 w-full rounded-sm border border-border bg-background px-1 text-[11px] outline-none",
|
|
4146
4146
|
type: "text",
|
|
4147
4147
|
defaultValue: ((n = r.data) == null ? void 0 : n._name) || ((o = r.data) == null ? void 0 : o._type),
|
|
4148
4148
|
onFocus: (a) => a.currentTarget.select(),
|
|
@@ -4229,8 +4229,8 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4229
4229
|
break;
|
|
4230
4230
|
}
|
|
4231
4231
|
};
|
|
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("
|
|
4232
|
+
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: [
|
|
4233
|
+
t("This page is empty"),
|
|
4234
4234
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
4235
4235
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
4236
4236
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -4516,7 +4516,7 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4516
4516
|
}
|
|
4517
4517
|
)
|
|
4518
4518
|
] }) }),
|
|
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-
|
|
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-fit", children: n("Import HTML") }) })
|
|
4520
4520
|
] });
|
|
4521
4521
|
}, 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
4522
|
function useBool(r) {
|
|
@@ -5059,7 +5059,7 @@ const ViewData = ({ data: r, fullView: n }) => {
|
|
|
5059
5059
|
}
|
|
5060
5060
|
)
|
|
5061
5061
|
] });
|
|
5062
|
-
}, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-
|
|
5062
|
+
}, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-7f-L_-9x.js")), UploadImages = React__default.lazy(() => import("./UploadImages-hXRywPyk.js")), ImagesPanel = ({
|
|
5063
5063
|
isModalView: r = !1,
|
|
5064
5064
|
onSelect: n = () => {
|
|
5065
5065
|
}
|
|
@@ -5179,7 +5179,7 @@ const ViewData = ({ data: r, fullView: n }) => {
|
|
|
5179
5179
|
placeholder: c === "page" || c === "url" ? "Enter URL" : c === "scroll" ? "#ElementID" : "Enter detail"
|
|
5180
5180
|
}
|
|
5181
5181
|
),
|
|
5182
|
-
(c === "page" || c === "url") && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
5182
|
+
(c === "page" || c === "url") && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-x-2 text-muted-foreground", children: [
|
|
5183
5183
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5184
5184
|
"input",
|
|
5185
5185
|
{
|
|
@@ -5188,7 +5188,7 @@ const ViewData = ({ data: r, fullView: n }) => {
|
|
|
5188
5188
|
spellCheck: "false",
|
|
5189
5189
|
type: "checkbox",
|
|
5190
5190
|
defaultChecked: d === "_blank",
|
|
5191
|
-
className: "cursor-pointer rounded-md border border-border",
|
|
5191
|
+
className: "!w-fit cursor-pointer rounded-md border border-border",
|
|
5192
5192
|
onChange: () => o({ ...n, target: d === "_blank" ? "_self" : "_blank" })
|
|
5193
5193
|
}
|
|
5194
5194
|
),
|
|
@@ -5265,12 +5265,12 @@ const ViewData = ({ data: r, fullView: n }) => {
|
|
|
5265
5265
|
return null;
|
|
5266
5266
|
const c = r.includes(o._id);
|
|
5267
5267
|
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-
|
|
5268
|
+
/* @__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
5269
|
o._name || o._type,
|
|
5270
|
-
"
|
|
5270
|
+
" ",
|
|
5271
5271
|
i("visibility settings")
|
|
5272
5272
|
] }),
|
|
5273
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-2
|
|
5273
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-2 pt-2", children: [
|
|
5274
5274
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5275
5275
|
Switch,
|
|
5276
5276
|
{
|
|
@@ -5539,13 +5539,13 @@ function ManualClasses() {
|
|
|
5539
5539
|
const k = u.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
|
|
5540
5540
|
a(l, k, !0), d("");
|
|
5541
5541
|
}, [b, x] = useState$1([]), v = ({ value: k }) => {
|
|
5542
|
-
const I = k.trim().toLowerCase(),
|
|
5542
|
+
const I = k.trim().toLowerCase(), j = I.match(/.+:/g);
|
|
5543
5543
|
let P = [];
|
|
5544
|
-
if (
|
|
5545
|
-
const [
|
|
5544
|
+
if (j && j.length > 0) {
|
|
5545
|
+
const [O] = j, T = I.replace(O, "");
|
|
5546
5546
|
P = fuse.search(T).map((L) => ({
|
|
5547
5547
|
...L,
|
|
5548
|
-
item: { ...L.item, name:
|
|
5548
|
+
item: { ...L.item, name: O + L.item.name }
|
|
5549
5549
|
}));
|
|
5550
5550
|
} else
|
|
5551
5551
|
P = fuse.search(I);
|
|
@@ -5614,8 +5614,8 @@ function ManualClasses() {
|
|
|
5614
5614
|
},
|
|
5615
5615
|
theme: {
|
|
5616
5616
|
suggestion: "bg-transparent",
|
|
5617
|
-
suggestionHighlighted: "!bg-gray-300 ",
|
|
5618
|
-
suggestionsContainerOpen: "absolute bg-
|
|
5617
|
+
suggestionHighlighted: "!bg-gray-300 dark:!bg-gray-800 cursor-pointer",
|
|
5618
|
+
suggestionsContainerOpen: "absolute bg-background no-scrollbar z-50 max-h-[230px] overflow-y-auto w-full border border-border rounded-md"
|
|
5619
5619
|
}
|
|
5620
5620
|
}
|
|
5621
5621
|
) }),
|
|
@@ -6299,35 +6299,35 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6299
6299
|
)) }), THROTTLE_TIME = 50, AdvanceChoices = (r) => {
|
|
6300
6300
|
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
6301
|
useEffect$1(() => {
|
|
6302
|
-
const { value: P, unit:
|
|
6303
|
-
if (
|
|
6302
|
+
const { value: P, unit: O } = getClassValueAndUnit(l);
|
|
6303
|
+
if (O === "") {
|
|
6304
6304
|
i(P), h(d != null && d.toLowerCase().includes("width") ? "%" : first(p));
|
|
6305
6305
|
return;
|
|
6306
6306
|
}
|
|
6307
|
-
h(
|
|
6307
|
+
h(O), i(O === "class" || isEmpty(P) ? "" : P);
|
|
6308
6308
|
}, [l, d, p]);
|
|
6309
6309
|
const R = useThrottledCallback((P) => c(P), [c], THROTTLE_TIME), k = useThrottledCallback((P) => c(P, !1), [c], THROTTLE_TIME), I = useCallback$1(
|
|
6310
6310
|
(P = !1) => {
|
|
6311
|
-
const
|
|
6312
|
-
if (get$1(
|
|
6311
|
+
const O = getUserInputValues(`${a}`, p);
|
|
6312
|
+
if (get$1(O, "error", !1)) {
|
|
6313
6313
|
x(!0);
|
|
6314
6314
|
return;
|
|
6315
6315
|
}
|
|
6316
|
-
const T = get$1(
|
|
6316
|
+
const T = get$1(O, "unit") !== "" ? get$1(O, "unit") : g;
|
|
6317
6317
|
if (T === "auto" || T === "none") {
|
|
6318
6318
|
R(`${u}${T}`);
|
|
6319
6319
|
return;
|
|
6320
6320
|
}
|
|
6321
|
-
if (get$1(
|
|
6321
|
+
if (get$1(O, "value") === "")
|
|
6322
6322
|
return;
|
|
6323
|
-
const L = `${get$1(
|
|
6323
|
+
const L = `${get$1(O, "value", "").startsWith("-") ? "-" : ""}${u}[${get$1(O, "value", "").replace("-", "")}${T === "-" ? "" : T}]`;
|
|
6324
6324
|
P ? k(L) : R(L);
|
|
6325
6325
|
},
|
|
6326
6326
|
[R, k, a, g, u, p]
|
|
6327
|
-
),
|
|
6327
|
+
), j = useCallback$1(
|
|
6328
6328
|
(P) => {
|
|
6329
|
-
const
|
|
6330
|
-
if (get$1(
|
|
6329
|
+
const O = getUserInputValues(`${a}`, p);
|
|
6330
|
+
if (get$1(O, "error", !1)) {
|
|
6331
6331
|
x(!0);
|
|
6332
6332
|
return;
|
|
6333
6333
|
}
|
|
@@ -6335,9 +6335,9 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6335
6335
|
R(`${u}${P}`);
|
|
6336
6336
|
return;
|
|
6337
6337
|
}
|
|
6338
|
-
if (get$1(
|
|
6338
|
+
if (get$1(O, "value") === "")
|
|
6339
6339
|
return;
|
|
6340
|
-
const T = get$1(
|
|
6340
|
+
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
6341
|
R(L);
|
|
6342
6342
|
},
|
|
6343
6343
|
[R, a, u, p]
|
|
@@ -6361,8 +6361,8 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6361
6361
|
if (P.keyCode !== 38 && P.keyCode !== 40)
|
|
6362
6362
|
return;
|
|
6363
6363
|
P.preventDefault(), C(!0);
|
|
6364
|
-
const
|
|
6365
|
-
let T = isNaN$1(
|
|
6364
|
+
const O = parseInt$1(P.target.value);
|
|
6365
|
+
let T = isNaN$1(O) ? 0 : O;
|
|
6366
6366
|
P.keyCode === 38 && (T += 1), P.keyCode === 40 && (T -= 1);
|
|
6367
6367
|
const N = `${T}`, M = `${N.startsWith("-") ? "-" : ""}${u}[${N.replace("-", "")}${g === "-" ? "" : g}]`;
|
|
6368
6368
|
k(M);
|
|
@@ -6375,8 +6375,8 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6375
6375
|
x(!1), i(P.target.value);
|
|
6376
6376
|
},
|
|
6377
6377
|
onClick: (P) => {
|
|
6378
|
-
var
|
|
6379
|
-
(
|
|
6378
|
+
var O;
|
|
6379
|
+
(O = P == null ? void 0 : P.target) == null || O.select(), o(!1);
|
|
6380
6380
|
},
|
|
6381
6381
|
value: E ? v : a,
|
|
6382
6382
|
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 +6404,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6404
6404
|
units: p,
|
|
6405
6405
|
current: g,
|
|
6406
6406
|
onSelect: (P) => {
|
|
6407
|
-
o(!1), h(P),
|
|
6407
|
+
o(!1), h(P), j(P);
|
|
6408
6408
|
}
|
|
6409
6409
|
}
|
|
6410
6410
|
) }) })
|
|
@@ -6417,14 +6417,14 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6417
6417
|
onDragEnd: (P) => {
|
|
6418
6418
|
if (S(() => ""), w(!1), isEmpty(P))
|
|
6419
6419
|
return;
|
|
6420
|
-
const
|
|
6420
|
+
const O = `${P}`, N = `${O.startsWith("-") ? "-" : ""}${u}[${O.replace("-", "")}${g === "-" ? "" : g}]`;
|
|
6421
6421
|
R(N);
|
|
6422
6422
|
},
|
|
6423
6423
|
onDrag: (P) => {
|
|
6424
6424
|
if (isEmpty(P))
|
|
6425
6425
|
return;
|
|
6426
6426
|
S(P);
|
|
6427
|
-
const
|
|
6427
|
+
const O = `${P}`, N = `${O.startsWith("-") ? "-" : ""}${u}[${O.replace("-", "")}${g === "-" ? "" : g}]`;
|
|
6428
6428
|
k(N);
|
|
6429
6429
|
},
|
|
6430
6430
|
currentValue: a,
|
|
@@ -6524,9 +6524,9 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6524
6524
|
const { t: n } = useTranslation(), { type: o = "icons", label: a, property: i, onEmitChange: l = () => {
|
|
6525
6525
|
}, 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
6526
|
(k, I = !0) => {
|
|
6527
|
-
const
|
|
6528
|
-
(d || p !== "") && (
|
|
6529
|
-
const P = generateFullClsName(
|
|
6527
|
+
const j = { dark: d, mq: m, mod: p, cls: k, property: i, fullCls: "" };
|
|
6528
|
+
(d || p !== "") && (j.mq = "xs");
|
|
6529
|
+
const P = generateFullClsName(j);
|
|
6530
6530
|
h(x, [P], I);
|
|
6531
6531
|
},
|
|
6532
6532
|
[x, d, m, p, i, h]
|
|
@@ -7461,12 +7461,12 @@ const CoreBlock = ({ block: r, disabled: n, parentId: o }) => {
|
|
|
7461
7461
|
] }) }) : null
|
|
7462
7462
|
)
|
|
7463
7463
|
);
|
|
7464
|
-
}, AddBlocksPanel = ({
|
|
7464
|
+
}, addBlockTabAtom = atomWithStorage("__add_block_tab", "library"), AddBlocksPanel = ({
|
|
7465
7465
|
className: r,
|
|
7466
7466
|
showHeading: n = !0,
|
|
7467
7467
|
parentId: o = void 0
|
|
7468
7468
|
}) => {
|
|
7469
|
-
const { t: a } = useTranslation(), [i, l] =
|
|
7469
|
+
const { t: a } = useTranslation(), [i, l] = useAtom$1(addBlockTabAtom), [, c] = useAtom$1(showPredefinedBlockCategoryAtom), u = useBuilderProp("importHTMLSupport", !0);
|
|
7470
7470
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("flex h-full w-full flex-col overflow-hidden", r), children: [
|
|
7471
7471
|
n ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mb-2 flex flex-col justify-between rounded-md bg-background/30 p-1", children: [
|
|
7472
7472
|
/* @__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 +7479,8 @@ const CoreBlock = ({ block: r, disabled: n, parentId: o }) => {
|
|
|
7479
7479
|
c(""), l(d);
|
|
7480
7480
|
},
|
|
7481
7481
|
value: i,
|
|
7482
|
-
className: cn("h-max"
|
|
7483
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(TabsList$1, { className: "grid w-full " + (u ? "grid-cols-3" : "grid-cols-
|
|
7482
|
+
className: cn("h-max"),
|
|
7483
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(TabsList$1, { className: "grid w-full " + (u ? "grid-cols-3" : "grid-cols-2"), children: [
|
|
7484
7484
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TabsTrigger, { value: "library", children: a("library") }),
|
|
7485
7485
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TabsTrigger, { value: "core", children: a("blocks") }),
|
|
7486
7486
|
u ? /* @__PURE__ */ jsxRuntimeExports.jsx(TabsTrigger, { value: "html", children: a("import") }) : null
|
|
@@ -8760,7 +8760,7 @@ function requireReactIs_development() {
|
|
|
8760
8760
|
}
|
|
8761
8761
|
}
|
|
8762
8762
|
}
|
|
8763
|
-
var R = d, k = p, I = u,
|
|
8763
|
+
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
8764
|
function q(K) {
|
|
8765
8765
|
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
8766
|
}
|
|
@@ -8800,7 +8800,7 @@ function requireReactIs_development() {
|
|
|
8800
8800
|
function se(K) {
|
|
8801
8801
|
return C(K) === g;
|
|
8802
8802
|
}
|
|
8803
|
-
reactIs_development.AsyncMode = R, reactIs_development.ConcurrentMode = k, reactIs_development.ContextConsumer = I, reactIs_development.ContextProvider =
|
|
8803
|
+
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
8804
|
}()), reactIs_development;
|
|
8805
8805
|
}
|
|
8806
8806
|
process.env.NODE_ENV === "production" ? reactIs$1.exports = requireReactIs_production_min() : reactIs$1.exports = requireReactIs_development();
|
|
@@ -10972,11 +10972,11 @@ function useScrollIntoView({
|
|
|
10972
10972
|
}) - (m.current ? 0 : w);
|
|
10973
10973
|
function C() {
|
|
10974
10974
|
d.current === 0 && (d.current = performance.now());
|
|
10975
|
-
const k = performance.now() - d.current, I = h || r === 0 ? 1 : k / r,
|
|
10975
|
+
const k = performance.now() - d.current, I = h || r === 0 ? 1 : k / r, j = w + A * a(I);
|
|
10976
10976
|
setScrollParam({
|
|
10977
10977
|
parent: m.current,
|
|
10978
10978
|
axis: n,
|
|
10979
|
-
distance:
|
|
10979
|
+
distance: j
|
|
10980
10980
|
}), !p.current && I < 1 ? u.current = requestAnimationFrame(C) : (typeof o == "function" && o(), d.current = 0, u.current = 0, b());
|
|
10981
10981
|
}
|
|
10982
10982
|
C();
|
|
@@ -11039,9 +11039,9 @@ function extractSystemStyles(r) {
|
|
|
11039
11039
|
fw: R,
|
|
11040
11040
|
lts: k,
|
|
11041
11041
|
ta: I,
|
|
11042
|
-
lh:
|
|
11042
|
+
lh: j,
|
|
11043
11043
|
fs: P,
|
|
11044
|
-
tt:
|
|
11044
|
+
tt: O,
|
|
11045
11045
|
td: T,
|
|
11046
11046
|
w: N,
|
|
11047
11047
|
miw: L,
|
|
@@ -11128,9 +11128,9 @@ function extractSystemStyles(r) {
|
|
|
11128
11128
|
fw: R,
|
|
11129
11129
|
lts: k,
|
|
11130
11130
|
ta: I,
|
|
11131
|
-
lh:
|
|
11131
|
+
lh: j,
|
|
11132
11132
|
fs: P,
|
|
11133
|
-
tt:
|
|
11133
|
+
tt: O,
|
|
11134
11134
|
td: T,
|
|
11135
11135
|
w: N,
|
|
11136
11136
|
miw: L,
|
|
@@ -12216,7 +12216,7 @@ const defaultProps$A = {
|
|
|
12216
12216
|
"unstyled",
|
|
12217
12217
|
"span",
|
|
12218
12218
|
"__staticSelector"
|
|
12219
|
-
]), { classes:
|
|
12219
|
+
]), { classes: j, cx: P } = useStyles$H({
|
|
12220
12220
|
color: u,
|
|
12221
12221
|
lineClamp: m,
|
|
12222
12222
|
truncate: g,
|
|
@@ -12232,7 +12232,7 @@ const defaultProps$A = {
|
|
|
12232
12232
|
}, { unstyled: C, name: k || "Text", variant: p, size: i });
|
|
12233
12233
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$14({
|
|
12234
12234
|
ref: n,
|
|
12235
|
-
className: P(
|
|
12235
|
+
className: P(j.root, { [j.gradient]: p === "gradient" }, a),
|
|
12236
12236
|
component: R ? "span" : "div"
|
|
12237
12237
|
}, I));
|
|
12238
12238
|
});
|
|
@@ -12498,39 +12498,39 @@ function SelectItems({
|
|
|
12498
12498
|
size: g
|
|
12499
12499
|
}), w = [], A = [];
|
|
12500
12500
|
let C = null;
|
|
12501
|
-
const R = (I,
|
|
12501
|
+
const R = (I, j) => {
|
|
12502
12502
|
const P = typeof i == "function" ? i(I.value) : !1;
|
|
12503
12503
|
return /* @__PURE__ */ React__default.createElement(m, __spreadValues$$({
|
|
12504
12504
|
key: I.value,
|
|
12505
12505
|
className: E.item,
|
|
12506
12506
|
"data-disabled": I.disabled || void 0,
|
|
12507
|
-
"data-hovered": !I.disabled && n ===
|
|
12507
|
+
"data-hovered": !I.disabled && n === j || void 0,
|
|
12508
12508
|
"data-selected": !I.disabled && P || void 0,
|
|
12509
12509
|
selected: P,
|
|
12510
|
-
onMouseEnter: () => u(
|
|
12511
|
-
id: `${l}-${
|
|
12510
|
+
onMouseEnter: () => u(j),
|
|
12511
|
+
id: `${l}-${j}`,
|
|
12512
12512
|
role: "option",
|
|
12513
12513
|
tabIndex: -1,
|
|
12514
|
-
"aria-selected": n ===
|
|
12515
|
-
ref: (
|
|
12516
|
-
p && p.current && (p.current[I.value] =
|
|
12514
|
+
"aria-selected": n === j,
|
|
12515
|
+
ref: (O) => {
|
|
12516
|
+
p && p.current && (p.current[I.value] = O);
|
|
12517
12517
|
},
|
|
12518
|
-
onMouseDown: I.disabled ? null : (
|
|
12519
|
-
|
|
12518
|
+
onMouseDown: I.disabled ? null : (O) => {
|
|
12519
|
+
O.preventDefault(), d(I);
|
|
12520
12520
|
},
|
|
12521
12521
|
disabled: I.disabled,
|
|
12522
12522
|
variant: S
|
|
12523
12523
|
}, I));
|
|
12524
12524
|
};
|
|
12525
12525
|
let k = null;
|
|
12526
|
-
if (r.forEach((I,
|
|
12527
|
-
I.creatable ? C =
|
|
12526
|
+
if (r.forEach((I, j) => {
|
|
12527
|
+
I.creatable ? C = j : I.group ? (k !== I.group && (k = I.group, A.push(/* @__PURE__ */ React__default.createElement("div", {
|
|
12528
12528
|
className: E.separator,
|
|
12529
|
-
key: `__mantine-divider-${
|
|
12529
|
+
key: `__mantine-divider-${j}`
|
|
12530
12530
|
}, /* @__PURE__ */ React__default.createElement(Divider, {
|
|
12531
12531
|
classNames: { label: E.separatorLabel },
|
|
12532
12532
|
label: I.group
|
|
12533
|
-
})))), A.push(R(I,
|
|
12533
|
+
})))), A.push(R(I, j))) : w.push(R(I, j));
|
|
12534
12534
|
}), b) {
|
|
12535
12535
|
const I = r[C];
|
|
12536
12536
|
w.push(/* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -12538,12 +12538,12 @@ function SelectItems({
|
|
|
12538
12538
|
className: E.item,
|
|
12539
12539
|
"data-hovered": n === C || void 0,
|
|
12540
12540
|
onMouseEnter: () => u(C),
|
|
12541
|
-
onMouseDown: (
|
|
12542
|
-
|
|
12541
|
+
onMouseDown: (j) => {
|
|
12542
|
+
j.preventDefault(), d(I);
|
|
12543
12543
|
},
|
|
12544
12544
|
tabIndex: -1,
|
|
12545
|
-
ref: (
|
|
12546
|
-
p && p.current && (p.current[I.value] =
|
|
12545
|
+
ref: (j) => {
|
|
12546
|
+
p && p.current && (p.current[I.value] = j);
|
|
12547
12547
|
}
|
|
12548
12548
|
}, x));
|
|
12549
12549
|
}
|
|
@@ -12924,8 +12924,8 @@ const useHover = function(r, n) {
|
|
|
12924
12924
|
floating: b
|
|
12925
12925
|
},
|
|
12926
12926
|
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
|
-
}),
|
|
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), j = React.useRef(!1), P = React.useRef(() => {
|
|
12928
|
+
}), O = React.useCallback(() => {
|
|
12929
12929
|
var M;
|
|
12930
12930
|
const W = (M = m.current.openEvent) == null ? void 0 : M.type;
|
|
12931
12931
|
return (W == null ? void 0 : W.includes("mouse")) && W !== "mousedown";
|
|
@@ -12943,13 +12943,13 @@ const useHover = function(r, n) {
|
|
|
12943
12943
|
if (!o || !E.current || !d)
|
|
12944
12944
|
return;
|
|
12945
12945
|
function M() {
|
|
12946
|
-
|
|
12946
|
+
O() && p(!1);
|
|
12947
12947
|
}
|
|
12948
12948
|
const W = getDocument(b).documentElement;
|
|
12949
12949
|
return W.addEventListener("mouseleave", M), () => {
|
|
12950
12950
|
W.removeEventListener("mouseleave", M);
|
|
12951
12951
|
};
|
|
12952
|
-
}, [b, d, p, o, E, m,
|
|
12952
|
+
}, [b, d, p, o, E, m, O]);
|
|
12953
12953
|
const T = React.useCallback(function(M) {
|
|
12954
12954
|
M === void 0 && (M = !0);
|
|
12955
12955
|
const W = getDelay(w.current, "close", A.current);
|
|
@@ -12957,9 +12957,9 @@ const useHover = function(r, n) {
|
|
|
12957
12957
|
}, [w, p]), N = React.useCallback(() => {
|
|
12958
12958
|
P.current(), R.current = void 0;
|
|
12959
12959
|
}, []), L = React.useCallback(() => {
|
|
12960
|
-
if (
|
|
12960
|
+
if (j.current) {
|
|
12961
12961
|
const M = getDocument(x.floating.current).body;
|
|
12962
|
-
M.style.pointerEvents = "", M.removeAttribute(safePolygonIdentifier),
|
|
12962
|
+
M.style.pointerEvents = "", M.removeAttribute(safePolygonIdentifier), j.current = !1;
|
|
12963
12963
|
}
|
|
12964
12964
|
}, [x]);
|
|
12965
12965
|
return React.useEffect(() => {
|
|
@@ -13021,9 +13021,9 @@ const useHover = function(r, n) {
|
|
|
13021
13021
|
}
|
|
13022
13022
|
}, [h, b, o, r, l, c, u, T, N, L, p, d, v, w, E, m]), index(() => {
|
|
13023
13023
|
var M;
|
|
13024
|
-
if (o && d && (M = E.current) != null && M.__options.blockPointerEvents &&
|
|
13024
|
+
if (o && d && (M = E.current) != null && M.__options.blockPointerEvents && O()) {
|
|
13025
13025
|
const F = getDocument(b).body;
|
|
13026
|
-
if (F.setAttribute(safePolygonIdentifier, ""), F.style.pointerEvents = "none",
|
|
13026
|
+
if (F.setAttribute(safePolygonIdentifier, ""), F.style.pointerEvents = "none", j.current = !0, isElement(h) && b) {
|
|
13027
13027
|
var W, J;
|
|
13028
13028
|
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
13029
|
return q && (q.style.pointerEvents = ""), V.style.pointerEvents = "auto", b.style.pointerEvents = "auto", () => {
|
|
@@ -13031,7 +13031,7 @@ const useHover = function(r, n) {
|
|
|
13031
13031
|
};
|
|
13032
13032
|
}
|
|
13033
13033
|
}
|
|
13034
|
-
}, [o, d, S, b, h, v, E, m,
|
|
13034
|
+
}, [o, d, S, b, h, v, E, m, O]), index(() => {
|
|
13035
13035
|
d || (A.current = void 0, N(), L());
|
|
13036
13036
|
}, [d, N, L]), React.useEffect(() => () => {
|
|
13037
13037
|
N(), clearTimeout(C.current), clearTimeout(k.current), L();
|
|
@@ -13251,12 +13251,12 @@ const bubbleHandlerKeys = {
|
|
|
13251
13251
|
} = n === void 0 ? {} : n;
|
|
13252
13252
|
const w = useFloatingTree(), A = useFloatingParentNodeId() != null, C = useEvent(typeof h == "function" ? h : () => !1), R = typeof h == "function" ? C : h, k = React.useRef(!1), {
|
|
13253
13253
|
escapeKeyBubbles: I,
|
|
13254
|
-
outsidePressBubbles:
|
|
13254
|
+
outsidePressBubbles: j
|
|
13255
13255
|
} = normalizeBubblesProp(E);
|
|
13256
13256
|
return React.useEffect(() => {
|
|
13257
13257
|
if (!o || !m)
|
|
13258
13258
|
return;
|
|
13259
|
-
p.current.__escapeKeyBubbles = I, p.current.__outsidePressBubbles =
|
|
13259
|
+
p.current.__escapeKeyBubbles = I, p.current.__outsidePressBubbles = j;
|
|
13260
13260
|
function P(M) {
|
|
13261
13261
|
if (M.key === "Escape") {
|
|
13262
13262
|
const W = w ? getChildren(w.nodesRef.current, l) : [];
|
|
@@ -13281,7 +13281,7 @@ const bubbleHandlerKeys = {
|
|
|
13281
13281
|
}), a(!1);
|
|
13282
13282
|
}
|
|
13283
13283
|
}
|
|
13284
|
-
function
|
|
13284
|
+
function O(M) {
|
|
13285
13285
|
const W = k.current;
|
|
13286
13286
|
if (k.current = !1, W || typeof R == "function" && !R(M))
|
|
13287
13287
|
return;
|
|
@@ -13323,7 +13323,7 @@ const bubbleHandlerKeys = {
|
|
|
13323
13323
|
a(!1);
|
|
13324
13324
|
}
|
|
13325
13325
|
const N = getDocument(d);
|
|
13326
|
-
g && N.addEventListener("keydown", P), R && N.addEventListener(b,
|
|
13326
|
+
g && N.addEventListener("keydown", P), R && N.addEventListener(b, O);
|
|
13327
13327
|
let L = [];
|
|
13328
13328
|
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
13329
|
var W;
|
|
@@ -13333,11 +13333,11 @@ const bubbleHandlerKeys = {
|
|
|
13333
13333
|
passive: !0
|
|
13334
13334
|
});
|
|
13335
13335
|
}), () => {
|
|
13336
|
-
g && N.removeEventListener("keydown", P), R && N.removeEventListener(b,
|
|
13336
|
+
g && N.removeEventListener("keydown", P), R && N.removeEventListener(b, O), L.forEach((M) => {
|
|
13337
13337
|
M.removeEventListener("scroll", T);
|
|
13338
13338
|
});
|
|
13339
13339
|
};
|
|
13340
|
-
}, [p, d, u, c, g, R, b, i, w, l, o, a, S, m, I,
|
|
13340
|
+
}, [p, d, u, c, g, R, b, i, w, l, o, a, S, m, I, j, A]), React.useEffect(() => {
|
|
13341
13341
|
k.current = !1;
|
|
13342
13342
|
}, [R, b]), React.useMemo(() => m ? {
|
|
13343
13343
|
reference: {
|
|
@@ -14027,9 +14027,9 @@ function Popover(r) {
|
|
|
14027
14027
|
arrowRadius: R,
|
|
14028
14028
|
arrowPosition: k,
|
|
14029
14029
|
unstyled: I,
|
|
14030
|
-
classNames:
|
|
14030
|
+
classNames: j,
|
|
14031
14031
|
styles: P,
|
|
14032
|
-
closeOnClickOutside:
|
|
14032
|
+
closeOnClickOutside: O,
|
|
14033
14033
|
withinPortal: T,
|
|
14034
14034
|
portalProps: N,
|
|
14035
14035
|
closeOnEscape: L,
|
|
@@ -14102,7 +14102,7 @@ function Popover(r) {
|
|
|
14102
14102
|
onOpen: F,
|
|
14103
14103
|
onClose: J
|
|
14104
14104
|
});
|
|
14105
|
-
useClickOutside(() => be.opened &&
|
|
14105
|
+
useClickOutside(() => be.opened && O && be.onClose(), M, [se, Z]);
|
|
14106
14106
|
const Ze = useCallback$1((ge) => {
|
|
14107
14107
|
K(ge), be.floating.reference(ge);
|
|
14108
14108
|
}, [be.floating.reference]), Ne = useCallback$1((ge) => {
|
|
@@ -14143,7 +14143,7 @@ function Popover(r) {
|
|
|
14143
14143
|
withRoles: _,
|
|
14144
14144
|
targetProps: ae,
|
|
14145
14145
|
__staticSelector: te,
|
|
14146
|
-
classNames:
|
|
14146
|
+
classNames: j,
|
|
14147
14147
|
styles: P,
|
|
14148
14148
|
unstyled: I,
|
|
14149
14149
|
variant: re,
|
|
@@ -14295,7 +14295,7 @@ function useInputProps(r, n, o) {
|
|
|
14295
14295
|
inputContainer: R,
|
|
14296
14296
|
inputWrapperOrder: k,
|
|
14297
14297
|
withAsterisk: I,
|
|
14298
|
-
variant:
|
|
14298
|
+
variant: j
|
|
14299
14299
|
} = a, P = __objRest$A(a, [
|
|
14300
14300
|
"label",
|
|
14301
14301
|
"description",
|
|
@@ -14318,7 +14318,7 @@ function useInputProps(r, n, o) {
|
|
|
14318
14318
|
"inputWrapperOrder",
|
|
14319
14319
|
"withAsterisk",
|
|
14320
14320
|
"variant"
|
|
14321
|
-
]),
|
|
14321
|
+
]), O = useId$2(w), { systemStyles: T, rest: N } = extractSystemStyles(P), L = __spreadValues$R({
|
|
14322
14322
|
label: i,
|
|
14323
14323
|
description: l,
|
|
14324
14324
|
error: c,
|
|
@@ -14332,13 +14332,13 @@ function useInputProps(r, n, o) {
|
|
|
14332
14332
|
descriptionProps: S,
|
|
14333
14333
|
unstyled: g,
|
|
14334
14334
|
styles: p,
|
|
14335
|
-
id:
|
|
14335
|
+
id: O,
|
|
14336
14336
|
size: A,
|
|
14337
14337
|
style: C,
|
|
14338
14338
|
inputContainer: R,
|
|
14339
14339
|
inputWrapperOrder: k,
|
|
14340
14340
|
withAsterisk: I,
|
|
14341
|
-
variant:
|
|
14341
|
+
variant: j
|
|
14342
14342
|
}, E);
|
|
14343
14343
|
return __spreadProps$z(__spreadValues$R({}, N), {
|
|
14344
14344
|
classNames: d,
|
|
@@ -14350,11 +14350,11 @@ function useInputProps(r, n, o) {
|
|
|
14350
14350
|
classNames: d,
|
|
14351
14351
|
styles: p,
|
|
14352
14352
|
unstyled: g,
|
|
14353
|
-
id:
|
|
14353
|
+
id: O,
|
|
14354
14354
|
size: A,
|
|
14355
14355
|
__staticSelector: h,
|
|
14356
14356
|
error: c,
|
|
14357
|
-
variant:
|
|
14357
|
+
variant: j
|
|
14358
14358
|
}
|
|
14359
14359
|
});
|
|
14360
14360
|
}
|
|
@@ -14643,14 +14643,14 @@ const defaultProps$q = {
|
|
|
14643
14643
|
"inputWrapperOrder",
|
|
14644
14644
|
"withAsterisk",
|
|
14645
14645
|
"variant"
|
|
14646
|
-
]), { classes:
|
|
14646
|
+
]), { classes: j, cx: P } = useStyles$w(null, {
|
|
14647
14647
|
classNames: x,
|
|
14648
14648
|
styles: v,
|
|
14649
14649
|
name: ["InputWrapper", w],
|
|
14650
14650
|
unstyled: A,
|
|
14651
14651
|
variant: k,
|
|
14652
14652
|
size: S
|
|
14653
|
-
}),
|
|
14653
|
+
}), O = {
|
|
14654
14654
|
classNames: x,
|
|
14655
14655
|
styles: v,
|
|
14656
14656
|
unstyled: A,
|
|
@@ -14663,15 +14663,15 @@ const defaultProps$q = {
|
|
|
14663
14663
|
id: u ? `${u}-label` : void 0,
|
|
14664
14664
|
htmlFor: u,
|
|
14665
14665
|
required: T
|
|
14666
|
-
},
|
|
14666
|
+
}, O), g), i), V = p && /* @__PURE__ */ React__default.createElement(InputDescription, __spreadProps$x(__spreadValues$M(__spreadValues$M({
|
|
14667
14667
|
key: "description"
|
|
14668
|
-
}, h),
|
|
14669
|
-
size: (h == null ? void 0 : h.size) ||
|
|
14668
|
+
}, h), O), {
|
|
14669
|
+
size: (h == null ? void 0 : h.size) || O.size,
|
|
14670
14670
|
id: (h == null ? void 0 : h.id) || L
|
|
14671
14671
|
}), p), q = /* @__PURE__ */ React__default.createElement(Fragment, {
|
|
14672
14672
|
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) ||
|
|
14673
|
+
}, E(l)), G = typeof d != "boolean" && d && /* @__PURE__ */ React__default.createElement(InputError, __spreadProps$x(__spreadValues$M(__spreadValues$M({}, b), O), {
|
|
14674
|
+
size: (b == null ? void 0 : b.size) || O.size,
|
|
14675
14675
|
key: "error",
|
|
14676
14676
|
id: (b == null ? void 0 : b.id) || N
|
|
14677
14677
|
}), d), ee = C.map((z) => {
|
|
@@ -14696,7 +14696,7 @@ const defaultProps$q = {
|
|
|
14696
14696
|
hasError: !!G
|
|
14697
14697
|
}))
|
|
14698
14698
|
}, /* @__PURE__ */ React__default.createElement(Box, __spreadValues$M({
|
|
14699
|
-
className: P(
|
|
14699
|
+
className: P(j.root, a),
|
|
14700
14700
|
ref: n
|
|
14701
14701
|
}, I), ee));
|
|
14702
14702
|
});
|
|
@@ -14916,7 +14916,7 @@ const defaultProps$o = {
|
|
|
14916
14916
|
sx: R,
|
|
14917
14917
|
unstyled: k,
|
|
14918
14918
|
pointer: I
|
|
14919
|
-
} = o,
|
|
14919
|
+
} = o, j = __objRest$u(o, [
|
|
14920
14920
|
"className",
|
|
14921
14921
|
"error",
|
|
14922
14922
|
"required",
|
|
@@ -14938,7 +14938,7 @@ const defaultProps$o = {
|
|
|
14938
14938
|
"sx",
|
|
14939
14939
|
"unstyled",
|
|
14940
14940
|
"pointer"
|
|
14941
|
-
]), { offsetBottom: P, offsetTop:
|
|
14941
|
+
]), { offsetBottom: P, offsetTop: O, describedBy: T } = useInputWrapperContext(), { classes: N, cx: L } = useStyles$v({
|
|
14942
14942
|
radius: x,
|
|
14943
14943
|
multiline: C,
|
|
14944
14944
|
invalid: !!i,
|
|
@@ -14946,9 +14946,9 @@ const defaultProps$o = {
|
|
|
14946
14946
|
iconWidth: g,
|
|
14947
14947
|
withRightSection: !!h,
|
|
14948
14948
|
offsetBottom: P,
|
|
14949
|
-
offsetTop:
|
|
14949
|
+
offsetTop: O,
|
|
14950
14950
|
pointer: I
|
|
14951
|
-
}, { classNames: E, styles: w, name: ["Input", A], unstyled: k, variant: u, size: v }), { systemStyles: M, rest: W } = extractSystemStyles(
|
|
14951
|
+
}, { classNames: E, styles: w, name: ["Input", A], unstyled: k, variant: u, size: v }), { systemStyles: M, rest: W } = extractSystemStyles(j);
|
|
14952
14952
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$J(__spreadValues$J({
|
|
14953
14953
|
className: L(N.wrapper, a),
|
|
14954
14954
|
sx: R,
|
|
@@ -15370,7 +15370,7 @@ const defaultProps$l = {
|
|
|
15370
15370
|
"classNames",
|
|
15371
15371
|
"styles",
|
|
15372
15372
|
"unstyled"
|
|
15373
|
-
]), { classes:
|
|
15373
|
+
]), { classes: j, cx: P, theme: O } = useStyles$r({
|
|
15374
15374
|
radius: b,
|
|
15375
15375
|
color: l,
|
|
15376
15376
|
fullWidth: g,
|
|
@@ -15378,12 +15378,12 @@ const defaultProps$l = {
|
|
|
15378
15378
|
gradient: A,
|
|
15379
15379
|
withLeftIcon: !!p,
|
|
15380
15380
|
withRightIcon: !!m
|
|
15381
|
-
}, { name: "Button", unstyled: k, classNames: C, styles: R, variant: h, size: i }), T =
|
|
15381
|
+
}, { 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
15382
|
color: T.color,
|
|
15383
15383
|
size: `calc(${getSize({ size: i, sizes: sizes$1 }).height} / 2)`
|
|
15384
15384
|
}, w));
|
|
15385
15385
|
return /* @__PURE__ */ React__default.createElement(UnstyledButton, __spreadValues$E({
|
|
15386
|
-
className: P(
|
|
15386
|
+
className: P(j.root, a),
|
|
15387
15387
|
type: c,
|
|
15388
15388
|
disabled: u,
|
|
15389
15389
|
"data-button": !0,
|
|
@@ -15392,16 +15392,16 @@ const defaultProps$l = {
|
|
|
15392
15392
|
ref: n,
|
|
15393
15393
|
unstyled: k
|
|
15394
15394
|
}, I), /* @__PURE__ */ React__default.createElement("div", {
|
|
15395
|
-
className:
|
|
15395
|
+
className: j.inner
|
|
15396
15396
|
}, (p || S && E === "left") && /* @__PURE__ */ React__default.createElement("span", {
|
|
15397
|
-
className: P(
|
|
15397
|
+
className: P(j.icon, j.leftIcon)
|
|
15398
15398
|
}, S && E === "left" ? N : p), S && E === "center" && /* @__PURE__ */ React__default.createElement("span", {
|
|
15399
|
-
className:
|
|
15399
|
+
className: j.centerLoader
|
|
15400
15400
|
}, N), /* @__PURE__ */ React__default.createElement("span", {
|
|
15401
|
-
className:
|
|
15401
|
+
className: j.label,
|
|
15402
15402
|
style: { textTransform: x ? "uppercase" : void 0 }
|
|
15403
15403
|
}, d), (m || S && E === "right") && /* @__PURE__ */ React__default.createElement("span", {
|
|
15404
|
-
className: P(
|
|
15404
|
+
className: P(j.icon, j.rightIcon)
|
|
15405
15405
|
}, S && E === "right" ? N : m)));
|
|
15406
15406
|
});
|
|
15407
15407
|
_Button.displayName = "@mantine/core/Button";
|
|
@@ -16309,48 +16309,48 @@ const defaultProps$c = {
|
|
|
16309
16309
|
"childrenOffset",
|
|
16310
16310
|
"disabled",
|
|
16311
16311
|
"onClick"
|
|
16312
|
-
]), { classes:
|
|
16312
|
+
]), { 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
16313
|
value: S,
|
|
16314
16314
|
defaultValue: E,
|
|
16315
16315
|
finalValue: !1,
|
|
16316
16316
|
onChange: w
|
|
16317
16317
|
}), N = !!v, L = (M) => {
|
|
16318
|
-
N ? (M.preventDefault(), k == null || k(M), T(!
|
|
16318
|
+
N ? (M.preventDefault(), k == null || k(M), T(!O)) : k == null || k(M);
|
|
16319
16319
|
};
|
|
16320
16320
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(UnstyledButton, __spreadValues$m({
|
|
16321
16321
|
ref: n,
|
|
16322
|
-
className: P(
|
|
16322
|
+
className: P(j.root, u),
|
|
16323
16323
|
"data-active": g || void 0,
|
|
16324
16324
|
onClick: L,
|
|
16325
16325
|
unstyled: m,
|
|
16326
|
-
"data-expanded":
|
|
16326
|
+
"data-expanded": O || void 0,
|
|
16327
16327
|
"data-disabled": R || void 0,
|
|
16328
16328
|
disabled: R
|
|
16329
16329
|
}, I), l && /* @__PURE__ */ React__default.createElement("span", {
|
|
16330
|
-
className:
|
|
16330
|
+
className: j.icon
|
|
16331
16331
|
}, l), /* @__PURE__ */ React__default.createElement("span", {
|
|
16332
|
-
className:
|
|
16332
|
+
className: j.body
|
|
16333
16333
|
}, /* @__PURE__ */ React__default.createElement(Text, {
|
|
16334
16334
|
component: "span",
|
|
16335
16335
|
size: "sm",
|
|
16336
|
-
className:
|
|
16336
|
+
className: j.label
|
|
16337
16337
|
}, a), /* @__PURE__ */ React__default.createElement(Text, {
|
|
16338
16338
|
component: "span",
|
|
16339
16339
|
color: "dimmed",
|
|
16340
16340
|
size: "xs",
|
|
16341
16341
|
"data-active": g || void 0,
|
|
16342
|
-
className:
|
|
16342
|
+
className: j.description
|
|
16343
16343
|
}, i)), (N || c) && /* @__PURE__ */ React__default.createElement("span", {
|
|
16344
|
-
className:
|
|
16345
|
-
"data-rotate":
|
|
16344
|
+
className: j.rightSection,
|
|
16345
|
+
"data-rotate": O && !A || void 0
|
|
16346
16346
|
}, N ? c || /* @__PURE__ */ React__default.createElement(ChevronIcon$1, {
|
|
16347
16347
|
width: rem(14),
|
|
16348
16348
|
height: rem(14),
|
|
16349
16349
|
style: { transform: "rotate(-90deg)" }
|
|
16350
16350
|
}) : c)), /* @__PURE__ */ React__default.createElement(Collapse, {
|
|
16351
|
-
in:
|
|
16351
|
+
in: O
|
|
16352
16352
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
16353
|
-
className:
|
|
16353
|
+
className: j.children
|
|
16354
16354
|
}, v)));
|
|
16355
16355
|
});
|
|
16356
16356
|
_NavLink.displayName = "@mantine/core/NavLink";
|
|
@@ -16540,7 +16540,7 @@ function TooltipFloating(r) {
|
|
|
16540
16540
|
"zIndex",
|
|
16541
16541
|
"disabled",
|
|
16542
16542
|
"variant"
|
|
16543
|
-
]), { handleMouseMove: I, x:
|
|
16543
|
+
]), { handleMouseMove: I, x: j, y: P, opened: O, boundaryRef: T, floating: N, setOpened: L } = useFloatingTooltip({
|
|
16544
16544
|
offset: v,
|
|
16545
16545
|
position: S
|
|
16546
16546
|
}), { 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 +16560,9 @@ function TooltipFloating(r) {
|
|
|
16560
16560
|
className: W(M.tooltip, d),
|
|
16561
16561
|
style: __spreadProps$g(__spreadValues$j({}, u), {
|
|
16562
16562
|
zIndex: A,
|
|
16563
|
-
display: !C &&
|
|
16563
|
+
display: !C && O ? "block" : "none",
|
|
16564
16564
|
top: P ?? "",
|
|
16565
|
-
left: (n = Math.round(
|
|
16565
|
+
left: (n = Math.round(j)) != null ? n : ""
|
|
16566
16566
|
})
|
|
16567
16567
|
}), x)), cloneElement(a, __spreadProps$g(__spreadValues$j({}, a.props), {
|
|
16568
16568
|
[i]: J,
|
|
@@ -16572,8 +16572,8 @@ function TooltipFloating(r) {
|
|
|
16572
16572
|
}
|
|
16573
16573
|
TooltipFloating.displayName = "@mantine/core/TooltipFloating";
|
|
16574
16574
|
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(
|
|
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((j) => {
|
|
16576
|
+
o(j), j && p(c);
|
|
16577
16577
|
}, [p, c]), {
|
|
16578
16578
|
x: g,
|
|
16579
16579
|
y: h,
|
|
@@ -16612,8 +16612,8 @@ function useTooltip(r) {
|
|
|
16612
16612
|
positionDependencies: r.positionDependencies,
|
|
16613
16613
|
floating: { refs: S, update: E }
|
|
16614
16614
|
}), useDidUpdate(() => {
|
|
16615
|
-
var
|
|
16616
|
-
(
|
|
16615
|
+
var j;
|
|
16616
|
+
(j = r.onPositionChange) == null || j.call(r, w);
|
|
16617
16617
|
}, [w]), {
|
|
16618
16618
|
x: g,
|
|
16619
16619
|
y: h,
|
|
@@ -16681,9 +16681,9 @@ const defaultProps$9 = {
|
|
|
16681
16681
|
className: R,
|
|
16682
16682
|
withArrow: k,
|
|
16683
16683
|
arrowSize: I,
|
|
16684
|
-
arrowOffset:
|
|
16684
|
+
arrowOffset: j,
|
|
16685
16685
|
arrowRadius: P,
|
|
16686
|
-
arrowPosition:
|
|
16686
|
+
arrowPosition: O,
|
|
16687
16687
|
offset: T,
|
|
16688
16688
|
transitionProps: N,
|
|
16689
16689
|
multiline: L,
|
|
@@ -16743,7 +16743,7 @@ const defaultProps$9 = {
|
|
|
16743
16743
|
opened: h,
|
|
16744
16744
|
events: W,
|
|
16745
16745
|
arrowRef: a,
|
|
16746
|
-
arrowOffset:
|
|
16746
|
+
arrowOffset: j,
|
|
16747
16747
|
offset: T + (k ? I / 2 : 0),
|
|
16748
16748
|
positionDependencies: [...V, l],
|
|
16749
16749
|
inline: z
|
|
@@ -16776,9 +16776,9 @@ const defaultProps$9 = {
|
|
|
16776
16776
|
visible: k,
|
|
16777
16777
|
position: $.placement,
|
|
16778
16778
|
arrowSize: I,
|
|
16779
|
-
arrowOffset:
|
|
16779
|
+
arrowOffset: j,
|
|
16780
16780
|
arrowRadius: P,
|
|
16781
|
-
arrowPosition:
|
|
16781
|
+
arrowPosition: O,
|
|
16782
16782
|
className: Q.arrow
|
|
16783
16783
|
}));
|
|
16784
16784
|
})), cloneElement(l, $.getReferenceProps(__spreadValues$i({
|
|
@@ -16897,9 +16897,9 @@ const defaultProps$8 = {
|
|
|
16897
16897
|
searchable: R,
|
|
16898
16898
|
clearable: k,
|
|
16899
16899
|
nothingFound: I,
|
|
16900
|
-
limit:
|
|
16900
|
+
limit: j,
|
|
16901
16901
|
disabled: P,
|
|
16902
|
-
onSearchChange:
|
|
16902
|
+
onSearchChange: O,
|
|
16903
16903
|
searchValue: T,
|
|
16904
16904
|
rightSection: N,
|
|
16905
16905
|
rightSectionWidth: L,
|
|
@@ -16997,20 +16997,20 @@ const defaultProps$8 = {
|
|
|
16997
16997
|
value: T,
|
|
16998
16998
|
defaultValue: (ke == null ? void 0 : ke.label) || "",
|
|
16999
16999
|
finalValue: void 0,
|
|
17000
|
-
onChange:
|
|
17001
|
-
}),
|
|
17002
|
-
at(H), R && typeof
|
|
17000
|
+
onChange: O
|
|
17001
|
+
}), je = (H) => {
|
|
17002
|
+
at(H), R && typeof O == "function" && O(H);
|
|
17003
17003
|
}, st = () => {
|
|
17004
17004
|
var H;
|
|
17005
|
-
Z || (Be(null), Xe ||
|
|
17005
|
+
Z || (Be(null), Xe || je(""), (H = He.current) == null || H.focus());
|
|
17006
17006
|
};
|
|
17007
17007
|
useEffect$1(() => {
|
|
17008
17008
|
const H = Ue.find((ie) => ie.value === Ce);
|
|
17009
|
-
H ?
|
|
17009
|
+
H ? je(H.label) : (!qe || !Ce) && je("");
|
|
17010
17010
|
}, [Ce]), useEffect$1(() => {
|
|
17011
|
-
ke && (!R || !ge) &&
|
|
17011
|
+
ke && (!R || !ge) && je(ke.label);
|
|
17012
17012
|
}, [ke == null ? void 0 : ke.label]);
|
|
17013
|
-
const
|
|
17013
|
+
const Oe = (H) => {
|
|
17014
17014
|
if (!Z)
|
|
17015
17015
|
if (Ye && (ke == null ? void 0 : ke.value) === H.value)
|
|
17016
17016
|
Be(null), Se(!1);
|
|
@@ -17020,12 +17020,12 @@ const defaultProps$8 = {
|
|
|
17020
17020
|
typeof ie < "u" && ie !== null && Be(typeof ie == "string" ? ie : ie.value);
|
|
17021
17021
|
} else
|
|
17022
17022
|
Be(H.value);
|
|
17023
|
-
Xe ||
|
|
17023
|
+
Xe || je(H.label), ve(-1), Se(!1), He.current.focus();
|
|
17024
17024
|
}
|
|
17025
17025
|
}, he = filterData({
|
|
17026
17026
|
data: Ue,
|
|
17027
17027
|
searchable: R,
|
|
17028
|
-
limit:
|
|
17028
|
+
limit: j,
|
|
17029
17029
|
searchValue: Ie,
|
|
17030
17030
|
filter: A,
|
|
17031
17031
|
filterDataOnExactSearchMatch: ae,
|
|
@@ -17092,20 +17092,20 @@ const defaultProps$8 = {
|
|
|
17092
17092
|
break;
|
|
17093
17093
|
}
|
|
17094
17094
|
case " ": {
|
|
17095
|
-
R || (H.preventDefault(), he[Pe] && ge ?
|
|
17095
|
+
R || (H.preventDefault(), he[Pe] && ge ? Oe(he[Pe]) : (Se(!0), ve(Ve), Ke()));
|
|
17096
17096
|
break;
|
|
17097
17097
|
}
|
|
17098
17098
|
case "Enter":
|
|
17099
|
-
R || H.preventDefault(), he[Pe] && ge && (H.preventDefault(),
|
|
17099
|
+
R || H.preventDefault(), he[Pe] && ge && (H.preventDefault(), Oe(he[Pe]));
|
|
17100
17100
|
}
|
|
17101
17101
|
}, D = (H) => {
|
|
17102
17102
|
typeof h == "function" && h(H);
|
|
17103
17103
|
const ie = Ue.find((ue) => ue.value === Ce);
|
|
17104
|
-
F && he[Pe] && ge &&
|
|
17104
|
+
F && he[Pe] && ge && Oe(he[Pe]), je((ie == null ? void 0 : ie.label) || ""), Se(!1);
|
|
17105
17105
|
}, Y = (H) => {
|
|
17106
17106
|
typeof b == "function" && b(H), R && Se(!0);
|
|
17107
17107
|
}, oe = (H) => {
|
|
17108
|
-
Z || (
|
|
17108
|
+
Z || (je(H.currentTarget.value), k && H.currentTarget.value === "" && Be(null), ve(-1), Se(!0));
|
|
17109
17109
|
}, ce = () => {
|
|
17110
17110
|
Z || (Se(!ge), Ce && !ge && ve(Ve));
|
|
17111
17111
|
};
|
|
@@ -17194,7 +17194,7 @@ const defaultProps$8 = {
|
|
|
17194
17194
|
uuid: a.id,
|
|
17195
17195
|
__staticSelector: "Select",
|
|
17196
17196
|
onItemHover: ve,
|
|
17197
|
-
onItemSelect:
|
|
17197
|
+
onItemSelect: Oe,
|
|
17198
17198
|
itemsRefs: Fe,
|
|
17199
17199
|
itemComponent: m,
|
|
17200
17200
|
size: a.size,
|
|
@@ -17322,10 +17322,10 @@ const Thumb = forwardRef$1(({
|
|
|
17322
17322
|
children: R = null,
|
|
17323
17323
|
disabled: k,
|
|
17324
17324
|
unstyled: I,
|
|
17325
|
-
thumbSize:
|
|
17325
|
+
thumbSize: j,
|
|
17326
17326
|
variant: P
|
|
17327
|
-
},
|
|
17328
|
-
const { classes: T, cx: N, theme: L } = useStyles$d({ color: d, disabled: k, thumbSize:
|
|
17327
|
+
}, O) => {
|
|
17328
|
+
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
17329
|
return /* @__PURE__ */ React__default.createElement(Box, {
|
|
17330
17330
|
tabIndex: 0,
|
|
17331
17331
|
role: "slider",
|
|
@@ -17333,7 +17333,7 @@ const Thumb = forwardRef$1(({
|
|
|
17333
17333
|
"aria-valuemax": r,
|
|
17334
17334
|
"aria-valuemin": n,
|
|
17335
17335
|
"aria-valuenow": o,
|
|
17336
|
-
ref:
|
|
17336
|
+
ref: O,
|
|
17337
17337
|
className: N(T.thumb, { [T.dragging]: l }),
|
|
17338
17338
|
onFocus: () => {
|
|
17339
17339
|
W(!0), typeof E == "function" && E();
|
|
@@ -17675,9 +17675,9 @@ const defaultProps$7 = {
|
|
|
17675
17675
|
labelTransitionTimingFunction: R,
|
|
17676
17676
|
labelAlwaysOn: k,
|
|
17677
17677
|
thumbLabel: I,
|
|
17678
|
-
showLabelOnHover:
|
|
17678
|
+
showLabelOnHover: j,
|
|
17679
17679
|
thumbChildren: P,
|
|
17680
|
-
disabled:
|
|
17680
|
+
disabled: O,
|
|
17681
17681
|
unstyled: T,
|
|
17682
17682
|
thumbSize: N,
|
|
17683
17683
|
scale: L,
|
|
@@ -17719,12 +17719,12 @@ const defaultProps$7 = {
|
|
|
17719
17719
|
finalValue: clamp$1(0, g, h),
|
|
17720
17720
|
onChange: u
|
|
17721
17721
|
}), 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 (!
|
|
17722
|
+
if (!O) {
|
|
17723
17723
|
const le = getChangeValue({ value: Z, min: g, max: h, step: b, precision: F });
|
|
17724
17724
|
z(le), U.current = le;
|
|
17725
17725
|
}
|
|
17726
|
-
}, [
|
|
17727
|
-
if (!
|
|
17726
|
+
}, [O, g, h, b, F, z]), { ref: ae, active: se } = useMove($, { onScrubEnd: () => d == null ? void 0 : d(U.current) }, V.dir), K = (Z) => {
|
|
17727
|
+
if (!O)
|
|
17728
17728
|
switch (Z.key) {
|
|
17729
17729
|
case "ArrowUp": {
|
|
17730
17730
|
Z.preventDefault(), _.current.focus();
|
|
@@ -17770,7 +17770,7 @@ const defaultProps$7 = {
|
|
|
17770
17770
|
size: p,
|
|
17771
17771
|
classNames: a,
|
|
17772
17772
|
styles: i,
|
|
17773
|
-
disabled:
|
|
17773
|
+
disabled: O,
|
|
17774
17774
|
unstyled: T,
|
|
17775
17775
|
variant: W
|
|
17776
17776
|
}), /* @__PURE__ */ React__default.createElement(Track, {
|
|
@@ -17788,13 +17788,13 @@ const defaultProps$7 = {
|
|
|
17788
17788
|
onChange: z,
|
|
17789
17789
|
classNames: a,
|
|
17790
17790
|
styles: i,
|
|
17791
|
-
disabled:
|
|
17791
|
+
disabled: O,
|
|
17792
17792
|
unstyled: T,
|
|
17793
17793
|
variant: W,
|
|
17794
17794
|
containerProps: {
|
|
17795
17795
|
ref: ae,
|
|
17796
|
-
onMouseEnter:
|
|
17797
|
-
onMouseLeave:
|
|
17796
|
+
onMouseEnter: j ? () => G(!0) : void 0,
|
|
17797
|
+
onMouseLeave: j ? () => G(!1) : void 0
|
|
17798
17798
|
}
|
|
17799
17799
|
}, /* @__PURE__ */ React__default.createElement(Thumb, {
|
|
17800
17800
|
max: h,
|
|
@@ -17813,9 +17813,9 @@ const defaultProps$7 = {
|
|
|
17813
17813
|
classNames: a,
|
|
17814
17814
|
styles: i,
|
|
17815
17815
|
thumbLabel: I,
|
|
17816
|
-
showLabelOnHover:
|
|
17816
|
+
showLabelOnHover: j,
|
|
17817
17817
|
isHovered: q,
|
|
17818
|
-
disabled:
|
|
17818
|
+
disabled: O,
|
|
17819
17819
|
unstyled: T,
|
|
17820
17820
|
thumbSize: N,
|
|
17821
17821
|
variant: W
|
|
@@ -18249,7 +18249,7 @@ const defaultProps$2 = {
|
|
|
18249
18249
|
"inverted",
|
|
18250
18250
|
"keepMounted",
|
|
18251
18251
|
"placement"
|
|
18252
|
-
]), { classes: I, cx:
|
|
18252
|
+
]), { 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
18253
|
return /* @__PURE__ */ React__default.createElement(TabsProvider, {
|
|
18254
18254
|
activateTabWithKeyboard: u,
|
|
18255
18255
|
defaultValue: a,
|
|
@@ -18269,7 +18269,7 @@ const defaultProps$2 = {
|
|
|
18269
18269
|
styles: E,
|
|
18270
18270
|
unstyled: v
|
|
18271
18271
|
}, /* @__PURE__ */ React__default.createElement(Box, __spreadProps$4(__spreadValues$5({}, k), {
|
|
18272
|
-
className:
|
|
18272
|
+
className: j(I.root, x),
|
|
18273
18273
|
id: m,
|
|
18274
18274
|
ref: n
|
|
18275
18275
|
}), p));
|
|
@@ -18665,8 +18665,8 @@ function stringify(r, n, o, a = {}) {
|
|
|
18665
18665
|
` : "";
|
|
18666
18666
|
let C = `var x${w}=${w}${E};${A}`;
|
|
18667
18667
|
for (const [R, k] of d.entries()) {
|
|
18668
|
-
const I = quote_1.stringifyPath(R, v),
|
|
18669
|
-
C += `x${I}${w}=${w}x${
|
|
18668
|
+
const I = quote_1.stringifyPath(R, v), j = quote_1.stringifyPath(k, v);
|
|
18669
|
+
C += `x${I}${w}=${w}x${j};${A}`;
|
|
18670
18670
|
}
|
|
18671
18671
|
return `(function${w}()${w}{${A}${C}return x;${A}}())`;
|
|
18672
18672
|
}
|
|
@@ -18737,7 +18737,7 @@ function PanelWithForwardedRef({
|
|
|
18737
18737
|
throw Error(`Panel defaultSize must be between 0 and 100, but was ${i}`);
|
|
18738
18738
|
d > i && !a && (console.error(`Panel minSize ${d} cannot be greater than defaultSize ${i}`), i = d);
|
|
18739
18739
|
}
|
|
18740
|
-
const I = w(v, i),
|
|
18740
|
+
const I = w(v, i), j = useRef({
|
|
18741
18741
|
size: parseSizeFromStyle(I)
|
|
18742
18742
|
}), P = useRef({
|
|
18743
18743
|
callbacksRef: k,
|
|
@@ -18751,19 +18751,19 @@ function PanelWithForwardedRef({
|
|
|
18751
18751
|
order: g
|
|
18752
18752
|
});
|
|
18753
18753
|
return useIsomorphicLayoutEffect(() => {
|
|
18754
|
-
|
|
18754
|
+
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
18755
|
}), useIsomorphicLayoutEffect(() => (A(v, P), () => {
|
|
18756
18756
|
R(v);
|
|
18757
18757
|
}), [g, v, A, R]), useImperativeHandle(l, () => ({
|
|
18758
18758
|
collapse: () => S(v),
|
|
18759
18759
|
expand: () => E(v),
|
|
18760
18760
|
getCollapsed() {
|
|
18761
|
-
return
|
|
18761
|
+
return j.current.size === 0;
|
|
18762
18762
|
},
|
|
18763
18763
|
getSize() {
|
|
18764
|
-
return
|
|
18764
|
+
return j.current.size;
|
|
18765
18765
|
},
|
|
18766
|
-
resize: (
|
|
18766
|
+
resize: (O) => C(v, O)
|
|
18767
18767
|
}), [S, E, v, C]), createElement(b, {
|
|
18768
18768
|
children: r,
|
|
18769
18769
|
className: n,
|
|
@@ -18933,8 +18933,8 @@ function useWindowSplitterPanelGroupBehavior({
|
|
|
18933
18933
|
v.forEach((T) => {
|
|
18934
18934
|
T.current.id === S ? (A = T.current.maxSize, w = T.current.minSize) : (C += T.current.minSize, R += T.current.maxSize);
|
|
18935
18935
|
});
|
|
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(
|
|
18936
|
+
const k = Math.min(A, 100 - C), I = Math.max(w, (v.length - 1) * 100 - R), j = getFlexGrow(u, S, i);
|
|
18937
|
+
b.setAttribute("aria-valuemax", "" + Math.round(k)), b.setAttribute("aria-valuemin", "" + Math.round(I)), b.setAttribute("aria-valuenow", "" + Math.round(parseInt(j)));
|
|
18938
18938
|
const P = (T) => {
|
|
18939
18939
|
if (!T.defaultPrevented)
|
|
18940
18940
|
switch (T.key) {
|
|
@@ -18955,9 +18955,9 @@ function useWindowSplitterPanelGroupBehavior({
|
|
|
18955
18955
|
}
|
|
18956
18956
|
};
|
|
18957
18957
|
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),
|
|
18958
|
+
const O = getPanel(S);
|
|
18959
|
+
return O != null && b.setAttribute("aria-controls", O.id), () => {
|
|
18960
|
+
b.removeAttribute("aria-valuemax"), b.removeAttribute("aria-valuemin"), b.removeAttribute("aria-valuenow"), b.removeEventListener("keydown", P), O != null && b.removeAttribute("aria-controls");
|
|
18961
18961
|
};
|
|
18962
18962
|
});
|
|
18963
18963
|
return () => {
|
|
@@ -19261,7 +19261,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19261
19261
|
debounceMap[r] || (debounceMap[r] = debounce(savePanelGroupLayout, 100)), debounceMap[r](r, F, A, d);
|
|
19262
19262
|
}
|
|
19263
19263
|
}, [r, x, A, d]);
|
|
19264
|
-
const
|
|
19264
|
+
const j = useCallback((F, V) => {
|
|
19265
19265
|
const {
|
|
19266
19266
|
panels: q
|
|
19267
19267
|
} = I.current;
|
|
@@ -19288,7 +19288,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19288
19288
|
const G = new Map(q);
|
|
19289
19289
|
return G.set(F, V), G;
|
|
19290
19290
|
});
|
|
19291
|
-
}, []),
|
|
19291
|
+
}, []), O = useCallback((F) => (q) => {
|
|
19292
19292
|
q.preventDefault();
|
|
19293
19293
|
const {
|
|
19294
19294
|
direction: G,
|
|
@@ -19399,10 +19399,10 @@ function PanelGroupWithForwardedRef({
|
|
|
19399
19399
|
collapsePanel: N,
|
|
19400
19400
|
direction: a,
|
|
19401
19401
|
expandPanel: L,
|
|
19402
|
-
getPanelStyle:
|
|
19402
|
+
getPanelStyle: j,
|
|
19403
19403
|
groupId: g,
|
|
19404
19404
|
registerPanel: P,
|
|
19405
|
-
registerResizeHandle:
|
|
19405
|
+
registerResizeHandle: O,
|
|
19406
19406
|
resizePanel: M,
|
|
19407
19407
|
startDragging: (F, V) => {
|
|
19408
19408
|
if (b(F), isMouseEvent(V) || isTouchEvent(V)) {
|
|
@@ -19418,7 +19418,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19418
19418
|
resetGlobalCursorStyle(), b(null), S.current = null;
|
|
19419
19419
|
},
|
|
19420
19420
|
unregisterPanel: T
|
|
19421
|
-
}), [h, N, a, L,
|
|
19421
|
+
}), [h, N, a, L, j, g, P, O, M, T]), J = {
|
|
19422
19422
|
display: "flex",
|
|
19423
19423
|
flexDirection: a === "horizontal" ? "row" : "column",
|
|
19424
19424
|
height: "100%",
|
|
@@ -19482,19 +19482,19 @@ function PanelResizeHandle$1({
|
|
|
19482
19482
|
if (o)
|
|
19483
19483
|
R(null);
|
|
19484
19484
|
else {
|
|
19485
|
-
const
|
|
19486
|
-
R(() =>
|
|
19485
|
+
const j = b(S);
|
|
19486
|
+
R(() => j);
|
|
19487
19487
|
}
|
|
19488
19488
|
}, [o, S, b]), useEffect(() => {
|
|
19489
19489
|
if (o || C == null || !E)
|
|
19490
19490
|
return;
|
|
19491
|
-
const
|
|
19491
|
+
const j = (N) => {
|
|
19492
19492
|
C(N);
|
|
19493
19493
|
}, P = (N) => {
|
|
19494
19494
|
C(N);
|
|
19495
19495
|
}, 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",
|
|
19496
|
+
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), () => {
|
|
19497
|
+
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
19498
|
};
|
|
19499
19499
|
}, [g, o, E, C, k]), useWindowSplitterResizeHandlerBehavior({
|
|
19500
19500
|
disabled: o,
|
|
@@ -19516,8 +19516,8 @@ function PanelResizeHandle$1({
|
|
|
19516
19516
|
"data-panel-resize-handle-id": S,
|
|
19517
19517
|
onBlur: () => A(!1),
|
|
19518
19518
|
onFocus: () => A(!0),
|
|
19519
|
-
onMouseDown: (
|
|
19520
|
-
x(S,
|
|
19519
|
+
onMouseDown: (j) => {
|
|
19520
|
+
x(S, j.nativeEvent);
|
|
19521
19521
|
const {
|
|
19522
19522
|
onDragging: P
|
|
19523
19523
|
} = d.current;
|
|
@@ -19526,8 +19526,8 @@ function PanelResizeHandle$1({
|
|
|
19526
19526
|
onMouseUp: k,
|
|
19527
19527
|
onTouchCancel: k,
|
|
19528
19528
|
onTouchEnd: k,
|
|
19529
|
-
onTouchStart: (
|
|
19530
|
-
x(S,
|
|
19529
|
+
onTouchStart: (j) => {
|
|
19530
|
+
x(S, j.nativeEvent);
|
|
19531
19531
|
const {
|
|
19532
19532
|
onDragging: P
|
|
19533
19533
|
} = d.current;
|
|
@@ -21939,8 +21939,8 @@ function createHybrid(r, n, o, a, i, l, c, u, d, p) {
|
|
|
21939
21939
|
p - E
|
|
21940
21940
|
);
|
|
21941
21941
|
}
|
|
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 && (
|
|
21942
|
+
var I = g ? o : this, j = h ? I[r] : r;
|
|
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 && (j = v || createCtor(j)), j.apply(I, w);
|
|
21944
21944
|
}
|
|
21945
21945
|
return S;
|
|
21946
21946
|
}
|
|
@@ -22966,19 +22966,19 @@ var Prism$1 = function() {
|
|
|
22966
22966
|
for (var A = 0; A < w.length; ++A) {
|
|
22967
22967
|
if (S && S.cause == E + "," + A)
|
|
22968
22968
|
return;
|
|
22969
|
-
var C = w[A], R = C.inside, k = !!C.lookbehind, I = !!C.greedy,
|
|
22969
|
+
var C = w[A], R = C.inside, k = !!C.lookbehind, I = !!C.greedy, j = C.alias;
|
|
22970
22970
|
if (I && !C.pattern.global) {
|
|
22971
22971
|
var P = C.pattern.toString().match(/[imsuy]*$/)[0];
|
|
22972
22972
|
C.pattern = RegExp(C.pattern.source, P + "g");
|
|
22973
22973
|
}
|
|
22974
|
-
for (var
|
|
22974
|
+
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
22975
|
var L = T.value;
|
|
22976
22976
|
if (h.length > g.length)
|
|
22977
22977
|
return;
|
|
22978
22978
|
if (!(L instanceof i)) {
|
|
22979
22979
|
var M = 1, W;
|
|
22980
22980
|
if (I) {
|
|
22981
|
-
if (W = l(
|
|
22981
|
+
if (W = l(O, N, g, k), !W || W.index >= g.length)
|
|
22982
22982
|
break;
|
|
22983
22983
|
var q = W.index, J = W.index + W[0].length, F = N;
|
|
22984
22984
|
for (F += T.value.length; q >= F; )
|
|
@@ -22988,13 +22988,13 @@ var Prism$1 = function() {
|
|
|
22988
22988
|
for (var V = T; V !== h.tail && (F < J || typeof V.value == "string"); V = V.next)
|
|
22989
22989
|
M++, F += V.value.length;
|
|
22990
22990
|
M--, L = g.slice(N, F), W.index -= N;
|
|
22991
|
-
} else if (W = l(
|
|
22991
|
+
} else if (W = l(O, 0, L, k), !W)
|
|
22992
22992
|
continue;
|
|
22993
22993
|
var q = W.index, G = W[0], ee = L.slice(0, q), z = L.slice(q + G.length), U = N + L.length;
|
|
22994
22994
|
S && U > S.reach && (S.reach = U);
|
|
22995
22995
|
var te = T.prev;
|
|
22996
22996
|
ee && (te = d(h, te, ee), N += ee.length), p(h, te, M);
|
|
22997
|
-
var _ = new i(E, R ? a.tokenize(G, R) : G,
|
|
22997
|
+
var _ = new i(E, R ? a.tokenize(G, R) : G, j, G);
|
|
22998
22998
|
if (T = d(h, te, _), z && d(h, T, z), M > 1) {
|
|
22999
22999
|
var Q = {
|
|
23000
23000
|
cause: E + "," + A,
|
|
@@ -24481,29 +24481,29 @@ prism.languages.sql = {
|
|
|
24481
24481
|
}), E = 0, w = {}, A = S.map(function(I) {
|
|
24482
24482
|
if (typeof I == "string")
|
|
24483
24483
|
return I;
|
|
24484
|
-
for (var
|
|
24484
|
+
for (var j = I.content, P; b.indexOf(P = u(E++, v)) !== -1; )
|
|
24485
24485
|
;
|
|
24486
|
-
return w[P] =
|
|
24486
|
+
return w[P] = j, P;
|
|
24487
24487
|
}).join(""), C = d(A, x, v), R = Object.keys(w);
|
|
24488
24488
|
E = 0;
|
|
24489
24489
|
function k(I) {
|
|
24490
|
-
for (var
|
|
24490
|
+
for (var j = 0; j < I.length; j++) {
|
|
24491
24491
|
if (E >= R.length)
|
|
24492
24492
|
return;
|
|
24493
|
-
var P = I[
|
|
24493
|
+
var P = I[j];
|
|
24494
24494
|
if (typeof P == "string" || typeof P.content == "string") {
|
|
24495
|
-
var
|
|
24495
|
+
var O = R[E], T = typeof P == "string" ? P : (
|
|
24496
24496
|
/** @type {string} */
|
|
24497
24497
|
P.content
|
|
24498
|
-
), N = T.indexOf(
|
|
24498
|
+
), N = T.indexOf(O);
|
|
24499
24499
|
if (N !== -1) {
|
|
24500
24500
|
++E;
|
|
24501
|
-
var L = T.substring(0, N), M = p(w[
|
|
24501
|
+
var L = T.substring(0, N), M = p(w[O]), W = T.substring(N + O.length), J = [];
|
|
24502
24502
|
if (L && J.push(L), J.push(M), W) {
|
|
24503
24503
|
var F = [W];
|
|
24504
24504
|
k(F), J.push.apply(J, F);
|
|
24505
24505
|
}
|
|
24506
|
-
typeof P == "string" ? (I.splice.apply(I, [
|
|
24506
|
+
typeof P == "string" ? (I.splice.apply(I, [j, 1].concat(J)), j += J.length - 1) : P.content = J;
|
|
24507
24507
|
}
|
|
24508
24508
|
} else {
|
|
24509
24509
|
var V = P.content;
|
|
@@ -24536,10 +24536,10 @@ prism.languages.sql = {
|
|
|
24536
24536
|
if (w.type === "template-string") {
|
|
24537
24537
|
var C = A[1];
|
|
24538
24538
|
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 (!
|
|
24539
|
+
var R = h(C), k = C.alias, I = Array.isArray(k) ? k[0] : k, j = r.languages[I];
|
|
24540
|
+
if (!j)
|
|
24541
24541
|
continue;
|
|
24542
|
-
A[1] = m(R,
|
|
24542
|
+
A[1] = m(R, j, I);
|
|
24543
24543
|
}
|
|
24544
24544
|
} else
|
|
24545
24545
|
x(A);
|
|
@@ -26008,32 +26008,32 @@ const prismDefaultProps = {
|
|
|
26008
26008
|
"getPrismTheme",
|
|
26009
26009
|
"variant"
|
|
26010
26010
|
]), R = v && typeof i == "string" ? i.trim() : i, k = R.split(`
|
|
26011
|
-
`).length.toString().length, I = useMantineTheme(),
|
|
26011
|
+
`).length.toString().length, I = useMantineTheme(), j = useClipboard(), P = x || I.colorScheme, { classes: O, cx: T } = useStyles$2({
|
|
26012
26012
|
colorScheme: P,
|
|
26013
26013
|
native: b !== ScrollArea,
|
|
26014
26014
|
maxLineSize: k,
|
|
26015
26015
|
radius: E
|
|
26016
26016
|
}, { name: "Prism", classNames: u, styles: d, unstyled: S, variant: A });
|
|
26017
26017
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadProps$2(__spreadValues$2({
|
|
26018
|
-
className: T(
|
|
26018
|
+
className: T(O.root, a),
|
|
26019
26019
|
ref: n
|
|
26020
26020
|
}, C), {
|
|
26021
26021
|
translate: "no"
|
|
26022
26022
|
}), !c && /* @__PURE__ */ React__default.createElement(Tooltip, {
|
|
26023
|
-
label:
|
|
26023
|
+
label: j.copied ? m : p,
|
|
26024
26024
|
position: "left",
|
|
26025
26025
|
withArrow: !0,
|
|
26026
26026
|
arrowSize: 6,
|
|
26027
26027
|
offset: 6,
|
|
26028
|
-
color:
|
|
26028
|
+
color: j.copied ? "teal" : void 0,
|
|
26029
26029
|
unstyled: S
|
|
26030
26030
|
}, /* @__PURE__ */ React__default.createElement(ActionIcon, {
|
|
26031
|
-
className:
|
|
26032
|
-
"aria-label":
|
|
26033
|
-
onClick: () =>
|
|
26031
|
+
className: O.copy,
|
|
26032
|
+
"aria-label": j.copied ? m : p,
|
|
26033
|
+
onClick: () => j.copy(R),
|
|
26034
26034
|
unstyled: S
|
|
26035
26035
|
}, /* @__PURE__ */ React__default.createElement(CopyIcon, {
|
|
26036
|
-
copied:
|
|
26036
|
+
copied: j.copied
|
|
26037
26037
|
}))), /* @__PURE__ */ React__default.createElement(Highlight$1, __spreadProps$2(__spreadValues$2({}, defaultProps), {
|
|
26038
26038
|
theme: w(I, P),
|
|
26039
26039
|
code: R,
|
|
@@ -26045,10 +26045,10 @@ const prismDefaultProps = {
|
|
|
26045
26045
|
getLineProps: W,
|
|
26046
26046
|
getTokenProps: J
|
|
26047
26047
|
}) => /* @__PURE__ */ React__default.createElement(b, {
|
|
26048
|
-
className:
|
|
26048
|
+
className: O.scrollArea,
|
|
26049
26049
|
dir: "ltr"
|
|
26050
26050
|
}, /* @__PURE__ */ React__default.createElement("pre", {
|
|
26051
|
-
className: T(
|
|
26051
|
+
className: T(O.code, N),
|
|
26052
26052
|
style: L,
|
|
26053
26053
|
dir: "ltr"
|
|
26054
26054
|
}, M.map((F, V) => {
|
|
@@ -26058,15 +26058,15 @@ const prismDefaultProps = {
|
|
|
26058
26058
|
return null;
|
|
26059
26059
|
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
26060
|
return /* @__PURE__ */ React__default.createElement("div", __spreadProps$2(__spreadValues$2({}, te), {
|
|
26061
|
-
className: T(
|
|
26061
|
+
className: T(O.line, te.className),
|
|
26062
26062
|
style: __spreadValues$2({}, _ ? { backgroundColor: Q } : null)
|
|
26063
26063
|
}), g && /* @__PURE__ */ React__default.createElement("div", {
|
|
26064
|
-
className:
|
|
26064
|
+
className: O.lineNumber,
|
|
26065
26065
|
style: {
|
|
26066
26066
|
color: _ ? I.fn.themeColor((ee = h[U]) == null ? void 0 : ee.color, P === "dark" ? 5 : 8) : void 0
|
|
26067
26067
|
}
|
|
26068
26068
|
}, ((z = h[U]) == null ? void 0 : z.label) || U), /* @__PURE__ */ React__default.createElement("div", {
|
|
26069
|
-
className:
|
|
26069
|
+
className: O.lineContent
|
|
26070
26070
|
}, F.map((ne, re) => {
|
|
26071
26071
|
var $, ae;
|
|
26072
26072
|
const se = J({ token: ne, key: re });
|
|
@@ -26287,20 +26287,20 @@ var diffMatchPatch = { exports: {} };
|
|
|
26287
26287
|
b[g + 1] = 0, x[g + 1] = 0;
|
|
26288
26288
|
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
26289
|
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[
|
|
26290
|
+
var j = g + I, P;
|
|
26291
|
+
I == -k || I != k && b[j - 1] < b[j + 1] ? P = b[j + 1] : P = b[j - 1] + 1;
|
|
26292
|
+
for (var O = P - I; P < d && O < p && l.charAt(P) == c.charAt(O); )
|
|
26293
|
+
P++, O++;
|
|
26294
|
+
if (b[j] = P, P > d)
|
|
26295
26295
|
A += 2;
|
|
26296
|
-
else if (
|
|
26296
|
+
else if (O > p)
|
|
26297
26297
|
w += 2;
|
|
26298
26298
|
else if (E) {
|
|
26299
26299
|
var T = g + S - I;
|
|
26300
26300
|
if (T >= 0 && T < h && x[T] != -1) {
|
|
26301
26301
|
var N = d - x[T];
|
|
26302
26302
|
if (P >= N)
|
|
26303
|
-
return this.diff_bisectSplit_(l, c, P,
|
|
26303
|
+
return this.diff_bisectSplit_(l, c, P, O, u);
|
|
26304
26304
|
}
|
|
26305
26305
|
}
|
|
26306
26306
|
}
|
|
@@ -26314,11 +26314,11 @@ var diffMatchPatch = { exports: {} };
|
|
|
26314
26314
|
else if (M > p)
|
|
26315
26315
|
C += 2;
|
|
26316
26316
|
else if (!E) {
|
|
26317
|
-
var
|
|
26318
|
-
if (
|
|
26319
|
-
var P = b[
|
|
26317
|
+
var j = g + S - L;
|
|
26318
|
+
if (j >= 0 && j < h && b[j] != -1) {
|
|
26319
|
+
var P = b[j], O = g + P - j;
|
|
26320
26320
|
if (N = d - N, P >= N)
|
|
26321
|
-
return this.diff_bisectSplit_(l, c, P,
|
|
26321
|
+
return this.diff_bisectSplit_(l, c, P, O, u);
|
|
26322
26322
|
}
|
|
26323
26323
|
}
|
|
26324
26324
|
}
|
|
@@ -26386,7 +26386,7 @@ var diffMatchPatch = { exports: {} };
|
|
|
26386
26386
|
return null;
|
|
26387
26387
|
var p = this;
|
|
26388
26388
|
function m(A, C, R) {
|
|
26389
|
-
for (var k = A.substring(R, R + Math.floor(A.length / 4)), I = -1,
|
|
26389
|
+
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
26390
|
var L = p.diff_commonPrefix(
|
|
26391
26391
|
A.substring(R),
|
|
26392
26392
|
C.substring(I)
|
|
@@ -26394,14 +26394,14 @@ var diffMatchPatch = { exports: {} };
|
|
|
26394
26394
|
A.substring(0, R),
|
|
26395
26395
|
C.substring(0, I)
|
|
26396
26396
|
);
|
|
26397
|
-
|
|
26397
|
+
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
26398
|
}
|
|
26399
|
-
return
|
|
26399
|
+
return j.length * 2 >= A.length ? [
|
|
26400
26400
|
P,
|
|
26401
|
-
|
|
26401
|
+
O,
|
|
26402
26402
|
T,
|
|
26403
26403
|
N,
|
|
26404
|
-
|
|
26404
|
+
j
|
|
26405
26405
|
] : null;
|
|
26406
26406
|
}
|
|
26407
26407
|
var g = m(
|
|
@@ -26447,8 +26447,8 @@ var diffMatchPatch = { exports: {} };
|
|
|
26447
26447
|
function c(w, A) {
|
|
26448
26448
|
if (!w || !A)
|
|
26449
26449
|
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 :
|
|
26450
|
+
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_);
|
|
26451
|
+
return N || L ? 5 : O || T ? 4 : k && !j && P ? 3 : j || P ? 2 : k || I ? 1 : 0;
|
|
26452
26452
|
}
|
|
26453
26453
|
for (var u = 1; u < l.length - 1; ) {
|
|
26454
26454
|
if (l[u - 1][0] == i && l[u + 1][0] == i) {
|
|
@@ -26598,8 +26598,8 @@ var diffMatchPatch = { exports: {} };
|
|
|
26598
26598
|
if (c.length > this.Match_MaxBits)
|
|
26599
26599
|
throw new Error("Pattern too long for this browser.");
|
|
26600
26600
|
var d = this.match_alphabet_(c), p = this;
|
|
26601
|
-
function m(P,
|
|
26602
|
-
var T = P / c.length, N = Math.abs(u -
|
|
26601
|
+
function m(P, O) {
|
|
26602
|
+
var T = P / c.length, N = Math.abs(u - O);
|
|
26603
26603
|
return p.Match_Distance ? T + N / p.Match_Distance : N ? 1 : T;
|
|
26604
26604
|
}
|
|
26605
26605
|
var g = this.Match_Threshold, h = l.indexOf(c, u);
|
|
@@ -26615,9 +26615,9 @@ var diffMatchPatch = { exports: {} };
|
|
|
26615
26615
|
for (var k = C; k >= A; k--) {
|
|
26616
26616
|
var I = d[l.charAt(k - 1)];
|
|
26617
26617
|
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 =
|
|
26618
|
+
var j = m(w, k - 1);
|
|
26619
|
+
if (j <= g)
|
|
26620
|
+
if (g = j, h = k - 1, h > u)
|
|
26621
26621
|
A = Math.max(1, 2 * u - h);
|
|
26622
26622
|
else
|
|
26623
26623
|
break;
|
|
@@ -28550,7 +28550,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28550
28550
|
}
|
|
28551
28551
|
}
|
|
28552
28552
|
}
|
|
28553
|
-
var k = p, I = m,
|
|
28553
|
+
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
28554
|
function G(Z) {
|
|
28555
28555
|
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
28556
|
}
|
|
@@ -28590,7 +28590,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28590
28590
|
function K(Z) {
|
|
28591
28591
|
return R(Z) === h;
|
|
28592
28592
|
}
|
|
28593
|
-
r.AsyncMode = k, r.ConcurrentMode = I, r.ContextConsumer =
|
|
28593
|
+
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
28594
|
}();
|
|
28595
28595
|
}
|
|
28596
28596
|
}), require_react_is = __commonJS({
|
|
@@ -28734,9 +28734,9 @@ var require_react_is_production_min = __commonJS({
|
|
|
28734
28734
|
arrayOf: R,
|
|
28735
28735
|
element: k(),
|
|
28736
28736
|
elementType: I(),
|
|
28737
|
-
instanceOf:
|
|
28737
|
+
instanceOf: j,
|
|
28738
28738
|
node: N(),
|
|
28739
|
-
objectOf:
|
|
28739
|
+
objectOf: O,
|
|
28740
28740
|
oneOf: P,
|
|
28741
28741
|
oneOfType: T,
|
|
28742
28742
|
shape: M,
|
|
@@ -28829,7 +28829,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28829
28829
|
}
|
|
28830
28830
|
return w(z);
|
|
28831
28831
|
}
|
|
28832
|
-
function
|
|
28832
|
+
function j(z) {
|
|
28833
28833
|
function U(te, _, Q, ne, re) {
|
|
28834
28834
|
if (!(te[_] instanceof z)) {
|
|
28835
28835
|
var $ = z.name || x, ae = ee(te[_]);
|
|
@@ -28856,7 +28856,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28856
28856
|
}
|
|
28857
28857
|
return w(U);
|
|
28858
28858
|
}
|
|
28859
|
-
function
|
|
28859
|
+
function O(z) {
|
|
28860
28860
|
function U(te, _, Q, ne, re) {
|
|
28861
28861
|
if (typeof z != "function")
|
|
28862
28862
|
return new E("Property `" + re + "` of component `" + Q + "` has invalid PropType notation inside objectOf.");
|
|
@@ -30112,12 +30112,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30112
30112
|
r.greenscreen = n(k);
|
|
30113
30113
|
var I = require_harmonic();
|
|
30114
30114
|
r.harmonic = n(I);
|
|
30115
|
-
var
|
|
30116
|
-
r.hopscotch = n(
|
|
30115
|
+
var j = require_hopscotch();
|
|
30116
|
+
r.hopscotch = n(j);
|
|
30117
30117
|
var P = require_isotope();
|
|
30118
30118
|
r.isotope = n(P);
|
|
30119
|
-
var
|
|
30120
|
-
r.marrakesh = n(
|
|
30119
|
+
var O = require_marrakesh();
|
|
30120
|
+
r.marrakesh = n(O);
|
|
30121
30121
|
var T = require_mocha();
|
|
30122
30122
|
r.mocha = n(T);
|
|
30123
30123
|
var N = require_monokai();
|
|
@@ -30954,10 +30954,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30954
30954
|
if (!(k in c))
|
|
30955
30955
|
throw new Error("Unable to parse color from object: " + JSON.stringify(v));
|
|
30956
30956
|
this.model = c[k];
|
|
30957
|
-
var I = a[this.model].labels,
|
|
30957
|
+
var I = a[this.model].labels, j = [];
|
|
30958
30958
|
for (E = 0; E < I.length; E++)
|
|
30959
|
-
|
|
30960
|
-
this.color = x(
|
|
30959
|
+
j.push(v[I[E]]);
|
|
30960
|
+
this.color = x(j);
|
|
30961
30961
|
}
|
|
30962
30962
|
if (u[this.model])
|
|
30963
30963
|
for (w = a[this.model].channels, E = 0; E < w; E++) {
|
|
@@ -31176,7 +31176,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31176
31176
|
["partial", p],
|
|
31177
31177
|
["partialRight", m],
|
|
31178
31178
|
["rearg", h]
|
|
31179
|
-
], A = "[object Function]", C = "[object GeneratorFunction]", R = "[object Symbol]", k = /[\\^$.*+?()[\]{}|]/g, I = /^\s+|\s+$/g,
|
|
31179
|
+
], 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
31180
|
function G(B, D, Y) {
|
|
31181
31181
|
switch (Y.length) {
|
|
31182
31182
|
case 0:
|
|
@@ -31250,10 +31250,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31250
31250
|
return D && D.length > 2 ? B : void 0;
|
|
31251
31251
|
}();
|
|
31252
31252
|
function Pe(B) {
|
|
31253
|
-
return
|
|
31253
|
+
return Oe(B) ? Ze(B) : {};
|
|
31254
31254
|
}
|
|
31255
31255
|
function ve(B) {
|
|
31256
|
-
if (!
|
|
31256
|
+
if (!Oe(B) || Be(B))
|
|
31257
31257
|
return !1;
|
|
31258
31258
|
var D = st(B) || re(B) ? be : L;
|
|
31259
31259
|
return D.test(Ie(B));
|
|
@@ -31312,7 +31312,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31312
31312
|
return new B(D[0], D[1], D[2], D[3], D[4], D[5], D[6]);
|
|
31313
31313
|
}
|
|
31314
31314
|
var Y = Pe(B.prototype), oe = B.apply(Y, D);
|
|
31315
|
-
return
|
|
31315
|
+
return Oe(oe) ? oe : Y;
|
|
31316
31316
|
};
|
|
31317
31317
|
}
|
|
31318
31318
|
function De(B, D, Y) {
|
|
@@ -31420,11 +31420,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31420
31420
|
}
|
|
31421
31421
|
function ot(B) {
|
|
31422
31422
|
var D = B.match(P);
|
|
31423
|
-
return D ? D[1].split(
|
|
31423
|
+
return D ? D[1].split(O) : [];
|
|
31424
31424
|
}
|
|
31425
31425
|
function Ue(B, D) {
|
|
31426
31426
|
var Y = D.length, oe = Y - 1;
|
|
31427
|
-
return D[oe] = (Y > 1 ? "& " : "") + D[oe], D = D.join(Y > 2 ? ", " : " "), B.replace(
|
|
31427
|
+
return D[oe] = (Y > 1 ? "& " : "") + D[oe], D = D.join(Y > 2 ? ", " : " "), B.replace(j, `{
|
|
31428
31428
|
/* [wrapped with ` + D + `] */
|
|
31429
31429
|
`);
|
|
31430
31430
|
}
|
|
@@ -31468,16 +31468,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31468
31468
|
D & Y[1] && !z(B, oe) && B.push(oe);
|
|
31469
31469
|
}), B.sort();
|
|
31470
31470
|
}
|
|
31471
|
-
function
|
|
31471
|
+
function je(B, D, Y) {
|
|
31472
31472
|
D = Y ? void 0 : D;
|
|
31473
31473
|
var oe = Se(B, u, void 0, void 0, void 0, void 0, void 0, D);
|
|
31474
|
-
return oe.placeholder =
|
|
31474
|
+
return oe.placeholder = je.placeholder, oe;
|
|
31475
31475
|
}
|
|
31476
31476
|
function st(B) {
|
|
31477
|
-
var D =
|
|
31477
|
+
var D = Oe(B) ? Te.call(B) : "";
|
|
31478
31478
|
return D == A || D == C;
|
|
31479
31479
|
}
|
|
31480
|
-
function
|
|
31480
|
+
function Oe(B) {
|
|
31481
31481
|
var D = typeof B;
|
|
31482
31482
|
return !!B && (D == "object" || D == "function");
|
|
31483
31483
|
}
|
|
@@ -31505,9 +31505,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31505
31505
|
return B;
|
|
31506
31506
|
if (Qe(B))
|
|
31507
31507
|
return E;
|
|
31508
|
-
if (
|
|
31508
|
+
if (Oe(B)) {
|
|
31509
31509
|
var D = typeof B.valueOf == "function" ? B.valueOf() : B;
|
|
31510
|
-
B =
|
|
31510
|
+
B = Oe(D) ? D + "" : D;
|
|
31511
31511
|
}
|
|
31512
31512
|
if (typeof B != "string")
|
|
31513
31513
|
return B === 0 ? B : +B;
|
|
@@ -31523,7 +31523,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31523
31523
|
function Ke(B) {
|
|
31524
31524
|
return B;
|
|
31525
31525
|
}
|
|
31526
|
-
|
|
31526
|
+
je.placeholder = {}, n.exports = je;
|
|
31527
31527
|
}
|
|
31528
31528
|
});
|
|
31529
31529
|
init_react_shim();
|
|
@@ -34088,7 +34088,37 @@ const ChooseLayout = ({ open: r, close: n }) => {
|
|
|
34088
34088
|
)
|
|
34089
34089
|
] }) })
|
|
34090
34090
|
] }) });
|
|
34091
|
-
},
|
|
34091
|
+
}, HotKeys = () => {
|
|
34092
|
+
const { t: r } = useTranslation(), n = {
|
|
34093
|
+
"ctrl + Z": "Undo",
|
|
34094
|
+
"ctrl + Y": "Redo",
|
|
34095
|
+
"ctrl + D": "Duplicate"
|
|
34096
|
+
}, o = {
|
|
34097
|
+
// "ctrl + /": "Rename block",
|
|
34098
|
+
"ctrl + S": "Save page",
|
|
34099
|
+
esc: "Deselect blocks",
|
|
34100
|
+
del: "Delete block"
|
|
34101
|
+
};
|
|
34102
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Dialog, { children: [
|
|
34103
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(DialogTrigger, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
|
|
34104
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { variant: "ghost", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyboardIcon, {}) }) }),
|
|
34105
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: r("Keyboard shortcuts") }) })
|
|
34106
|
+
] }) }),
|
|
34107
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(DialogContent, { className: "border-border sm:max-w-[525px]", children: [
|
|
34108
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(DialogHeader, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(DialogTitle, { className: "text-foreground", children: r("Keyboard shortcuts") }) }),
|
|
34109
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-2", children: [
|
|
34110
|
+
/* @__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: [
|
|
34111
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Badge$1, { variant: "outline", className: "border border-border p-1 px-2", children: r(a) }),
|
|
34112
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-muted-foreground", children: r(n[a]) })
|
|
34113
|
+
] }, a)) }),
|
|
34114
|
+
/* @__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: [
|
|
34115
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Badge$1, { variant: "outline", className: "border border-border p-1 px-2", children: r(a) }),
|
|
34116
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-muted-foreground", children: r(o[a]) })
|
|
34117
|
+
] }, a)) })
|
|
34118
|
+
] }) })
|
|
34119
|
+
] })
|
|
34120
|
+
] });
|
|
34121
|
+
}, TopBar = lazy(() => import("./Topbar-4sclJZrd.js")), useAutoSave = () => {
|
|
34092
34122
|
const { savePage: r } = useSavePage(), n = useBuilderProp("autoSaveSupport", !0), o = useBuilderProp("autoSaveInterval", 60);
|
|
34093
34123
|
useIntervalEffect(() => {
|
|
34094
34124
|
n && r();
|
|
@@ -34149,17 +34179,13 @@ const RootLayout = () => {
|
|
|
34149
34179
|
) }),
|
|
34150
34180
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: p(h.label) }) })
|
|
34151
34181
|
] }, "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
|
-
] }) })
|
|
34182
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col space-y-1", children: [
|
|
34183
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
|
|
34184
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { variant: "ghost", onClick: () => i(!0), children: /* @__PURE__ */ jsxRuntimeExports.jsx(LayoutTemplate, { size: 20 }) }) }),
|
|
34185
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: p("Choose Builder Layout") }) })
|
|
34186
|
+
] }),
|
|
34187
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(HotKeys, {})
|
|
34188
|
+
] })
|
|
34163
34189
|
] }),
|
|
34164
34190
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
34165
34191
|
motion.div,
|