@chaibuilder/sdk 1.2.81 → 1.2.82
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-d_5YVs-1.cjs → CodeEditor--pV1ZdgM.cjs} +1 -1
- package/dist/{CodeEditor-u-gDiPZ2.js → CodeEditor-1Hftwojo.js} +1 -1
- package/dist/{Topbar-QNcTBAxD.cjs → Topbar-LSKvebNl.cjs} +1 -1
- package/dist/{Topbar-qT5SdMRK.js → Topbar-dKCG36V2.js} +1 -1
- package/dist/{UnsplashImages-sgNjZifT.cjs → UnsplashImages-XI_yvkHW.cjs} +1 -1
- package/dist/{UnsplashImages-gys3oUzE.js → UnsplashImages-umIxGYt_.js} +1 -1
- package/dist/{UploadImages-EQnGq0Zj.js → UploadImages-0lyXeo9Q.js} +1 -1
- package/dist/{UploadImages-pGw_00d5.cjs → UploadImages-OLJkwBec.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +19 -0
- package/dist/core.js +43 -41
- package/dist/{index-kTk1tj2l.js → index-Yjb0I-g2.js} +710 -593
- package/dist/{index-csmyn0rE.cjs → index-vCSdGq4C.cjs} +15 -15
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ 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
7
|
import { S as Skeleton, C as ContextMenu, a as ContextMenuTrigger, b as ContextMenuContent, c as ContextMenuItem, T as Tooltip$1, d as TooltipTrigger, e as TooltipContent, B as Button$1, f as Card, g as CardHeader, h as CardDescription, i as CardContent, L as Label, j as Textarea, k as CardFooter, D as Dialog, l as DialogTrigger, m as DialogContent, n as DialogHeader, o as DialogTitle, p as DialogDescription, q as DialogFooter, P as Popover$1, r as PopoverTrigger, s as PopoverContent, t as Command, u as CommandInput, v as CommandList, w as CommandEmpty, x as CommandGroup, y as CommandItem, z as Tabs$1, A as TabsList$1, E as TabsTrigger, F as TabsContent, G as Switch, H as Accordion, I as AccordionItem, J as AccordionTrigger, K as AccordionContent, M as useToast, N as Input$2, O as TooltipPortal, Q as DropdownMenu, R as DropdownMenuTrigger, U as DropdownMenuContent, V as ScrollArea$1, W as DropdownMenuLabel, X as DropdownMenuSeparator, Y as DropdownMenuGroup, Z as DropdownMenuItem, _ as DropdownMenuShortcut, $ as AlertDialog, a0 as AlertDialogTrigger, a1 as AlertDialogContent, a2 as AlertDialogHeader, a3 as AlertDialogTitle, a4 as AlertDialogDescription, a5 as AlertDialogFooter, a6 as AlertDialogCancel, a7 as AlertDialogAction, a8 as DropdownMenuCheckboxItem, a9 as HoverCard, aa as HoverCardTrigger, ab as HoverCardContent, ac as Separator, ad as TooltipProvider, ae as Toaster } from "./context-menu-zu6r7B6f.js";
|
|
8
|
-
import { has, find, filter, flatten, map, omit, isString as isString$1, includes, without, get as get$1, set, isEmpty, forIn, isObject as isObject$2, each, first, noop as noop$1, keys, startsWith, range, values, flattenDeep, isNull, pick, sortBy, chunk, throttle, memoize as memoize$1, debounce as debounce$1, isEqual, flatMapDeep, forEach, capitalize, last, startCase, truncate, isArray as isArray$5, split, toLower, cloneDeep, reject, nth, isNumber as isNumber$1, parseInt as parseInt$1, isNaN as isNaN$1, findLast, intersection, groupBy, isFunction as isFunction$2, uniq, toUpper, round } from "lodash-es";
|
|
8
|
+
import { has, find, filter, flatten, map, omit, isString as isString$1, includes, without, get as get$1, set, isEmpty, forIn, isObject as isObject$2, each, first, noop as noop$1, keys, startsWith, range, values, flattenDeep, isNull, pick, sortBy, chunk, throttle, memoize as memoize$1, debounce as debounce$1, isEqual, flatMapDeep, forEach, capitalize, last, startCase, truncate, isArray as isArray$5, split, toLower, cloneDeep, reject, nth, isNumber as isNumber$1, parseInt as parseInt$1, isNaN as isNaN$1, findLast, intersection, groupBy, isFunction as isFunction$2, uniq, toUpper, round, compact } from "lodash-es";
|
|
9
9
|
import { atom as atom$1, useAtomValue as useAtomValue$1, useAtom as useAtom$1, useSetAtom as useSetAtom$1, getDefaultStore as getDefaultStore$1 } from "jotai";
|
|
10
10
|
import { g as generateUUID, a as getBreakpointValue$1, f, y, s, c as cn, G as GenIcon } from "./iconBase-zweRWSz0.js";
|
|
11
11
|
import { getBlockComponent, getChaiDataProviders, useGlobalStylingPresets, useChaiBlocks, syncBlocksWithDefaults } from "@chaibuilder/runtime";
|
|
@@ -34,7 +34,7 @@ import { Resizable } from "re-resizable";
|
|
|
34
34
|
import validator from "@rjsf/validator-ajv8";
|
|
35
35
|
import Form from "@rjsf/core";
|
|
36
36
|
import { Tree } from "react-arborist";
|
|
37
|
-
import { DatabaseIcon, PlusIcon as PlusIcon$1, EditIcon, TrashIcon as TrashIcon$1, Check, Loader as Loader$1, SparklesIcon, SmileIcon, ShuffleIcon, ChevronDown, Edit2, X, Layers, PaintBucketIcon } from "lucide-react";
|
|
37
|
+
import { DatabaseIcon, PlusIcon as PlusIcon$1, EditIcon, TrashIcon as TrashIcon$1, Check, Loader as Loader$1, SparklesIcon, SmileIcon, ShuffleIcon, ChevronDown, Edit2, X, LayoutTemplate, Layers, PaintBucketIcon } from "lucide-react";
|
|
38
38
|
import { parse as parse$1, stringify as stringify$3 } from "himalaya";
|
|
39
39
|
import IconPicker, { IconPickerItem } from "react-icons-picker";
|
|
40
40
|
import Autosuggest from "react-autosuggest";
|
|
@@ -130,7 +130,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
130
130
|
D,
|
|
131
131
|
T
|
|
132
132
|
);
|
|
133
|
-
resolvePromise(D, V), W(V), (q == null ? void 0 : q.d) !== G.d &&
|
|
133
|
+
resolvePromise(D, V), W(V), (q == null ? void 0 : q.d) !== G.d && C(k, G, q == null ? void 0 : q.d);
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
136
|
(V) => {
|
|
@@ -141,7 +141,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
141
141
|
D,
|
|
142
142
|
T
|
|
143
143
|
);
|
|
144
|
-
rejectPromise(D, V), J(V), (q == null ? void 0 : q.d) !== G.d &&
|
|
144
|
+
rejectPromise(D, V), J(V), (q == null ? void 0 : q.d) !== G.d && C(k, G, q == null ? void 0 : q.d);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
), L = (V) => {
|
|
@@ -194,7 +194,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
194
194
|
get setSelf() {
|
|
195
195
|
return (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && !isActuallyWritableAtom(k) && console.warn("setSelf function cannot be used with read-only atom"), !W && isActuallyWritableAtom(k) && (W = (...F) => {
|
|
196
196
|
if ((define_import_meta_env_default$2 ? "production" : void 0) !== "production" && B && console.warn("setSelf function cannot be called in sync"), !B)
|
|
197
|
-
return
|
|
197
|
+
return R(k, ...F);
|
|
198
198
|
}), W;
|
|
199
199
|
}
|
|
200
200
|
};
|
|
@@ -267,7 +267,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
267
267
|
return F;
|
|
268
268
|
}, D = k.write(B, L, ...O);
|
|
269
269
|
return T = !1, D;
|
|
270
|
-
},
|
|
270
|
+
}, R = (k, ...O) => {
|
|
271
271
|
const T = w(k, ...O), B = I();
|
|
272
272
|
return (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && i.forEach(
|
|
273
273
|
(L) => L({ type: "write", flushed: B })
|
|
@@ -281,7 +281,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
281
281
|
const D = n.get(L);
|
|
282
282
|
D ? D.t.add(k) : L !== k && P(L, k);
|
|
283
283
|
}), h(k), isActuallyWritableAtom(k) && k.onMount) {
|
|
284
|
-
const B = k.onMount((...L) =>
|
|
284
|
+
const B = k.onMount((...L) => R(k, ...L));
|
|
285
285
|
B && (T.u = B);
|
|
286
286
|
}
|
|
287
287
|
return T;
|
|
@@ -296,7 +296,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
296
296
|
W && (W.t.delete(k), v(D, W) && A(D));
|
|
297
297
|
}
|
|
298
298
|
})) : (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", k);
|
|
299
|
-
},
|
|
299
|
+
}, C = (k, O, T) => {
|
|
300
300
|
const B = new Set(O.d.keys());
|
|
301
301
|
T == null || T.forEach((L, D) => {
|
|
302
302
|
if (B.has(D)) {
|
|
@@ -316,7 +316,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
316
316
|
o.clear(), O.forEach(([T, B]) => {
|
|
317
317
|
const L = c(T);
|
|
318
318
|
if (L) {
|
|
319
|
-
L.d !== (B == null ? void 0 : B.d) &&
|
|
319
|
+
L.d !== (B == null ? void 0 : B.d) && C(T, L, B == null ? void 0 : B.d);
|
|
320
320
|
const D = n.get(T);
|
|
321
321
|
D && !// TODO This seems pretty hacky. Hope to fix it.
|
|
322
322
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
@@ -337,7 +337,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
337
337
|
};
|
|
338
338
|
return (define_import_meta_env_default$2 ? "production" : void 0) !== "production" ? {
|
|
339
339
|
get: b,
|
|
340
|
-
set:
|
|
340
|
+
set: R,
|
|
341
341
|
sub: j,
|
|
342
342
|
// store dev methods (these are tentative and subject to change without notice)
|
|
343
343
|
dev_subscribe_store: (k, O) => O !== 2 ? (console.warn(
|
|
@@ -360,7 +360,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
360
360
|
}
|
|
361
361
|
} : {
|
|
362
362
|
get: b,
|
|
363
|
-
set:
|
|
363
|
+
set: R,
|
|
364
364
|
sub: j
|
|
365
365
|
};
|
|
366
366
|
};
|
|
@@ -388,23 +388,23 @@ function splitAtom(r, n) {
|
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
390
|
const S = (w) => {
|
|
391
|
-
const
|
|
392
|
-
if (
|
|
391
|
+
const R = w(i), P = w(r), C = a(P, R == null ? void 0 : R.arr).keyList.indexOf(x);
|
|
392
|
+
if (C < 0 || C >= P.length) {
|
|
393
393
|
const I = c[a(c).keyList.indexOf(x)];
|
|
394
394
|
if (I)
|
|
395
395
|
return I;
|
|
396
396
|
throw new Error("splitAtom: index out of bounds for read");
|
|
397
397
|
}
|
|
398
|
-
return P[
|
|
399
|
-
}, E = (w,
|
|
400
|
-
const A = w(i),
|
|
401
|
-
if (j < 0 || j >=
|
|
398
|
+
return P[C];
|
|
399
|
+
}, E = (w, R, P) => {
|
|
400
|
+
const A = w(i), C = w(r), j = a(C, A == null ? void 0 : A.arr).keyList.indexOf(x);
|
|
401
|
+
if (j < 0 || j >= C.length)
|
|
402
402
|
throw new Error("splitAtom: index out of bounds for write");
|
|
403
|
-
const k = isFunction$1(P) ? P(
|
|
404
|
-
|
|
405
|
-
...
|
|
403
|
+
const k = isFunction$1(P) ? P(C[j]) : P;
|
|
404
|
+
R(r, [
|
|
405
|
+
...C.slice(0, j),
|
|
406
406
|
k,
|
|
407
|
-
...
|
|
407
|
+
...C.slice(j + 1)
|
|
408
408
|
]);
|
|
409
409
|
};
|
|
410
410
|
m[b] = isWritable(r) ? atom(S, E) : atom(S);
|
|
@@ -1216,13 +1216,13 @@ const useBlocksStoreManager = () => {
|
|
|
1216
1216
|
} = useBlocksStoreManager();
|
|
1217
1217
|
return {
|
|
1218
1218
|
moveBlocks: (x, v, S) => {
|
|
1219
|
-
const E = map(x, (
|
|
1220
|
-
const A = n.find((j) => j._id ===
|
|
1221
|
-
return { _id:
|
|
1222
|
-
}), w = E.find(({ _id:
|
|
1219
|
+
const E = map(x, (R) => {
|
|
1220
|
+
const A = n.find((j) => j._id === R)._parent || null, I = n.filter((j) => A ? j._parent === A : !j._parent).map((j) => j._id).indexOf(R);
|
|
1221
|
+
return { _id: R, oldParent: A, oldPosition: I };
|
|
1222
|
+
}), w = E.find(({ _id: R }) => R === x[0]);
|
|
1223
1223
|
w && w.oldParent === v && w.oldPosition === S || (l(x, v, S), r({
|
|
1224
|
-
undo: () => each(E, ({ _id:
|
|
1225
|
-
l([
|
|
1224
|
+
undo: () => each(E, ({ _id: R, oldParent: P, oldPosition: A }) => {
|
|
1225
|
+
l([R], P, A);
|
|
1226
1226
|
}),
|
|
1227
1227
|
redo: () => l(x, v, S)
|
|
1228
1228
|
}));
|
|
@@ -1235,7 +1235,7 @@ const useBlocksStoreManager = () => {
|
|
|
1235
1235
|
},
|
|
1236
1236
|
removeBlocks: (x) => {
|
|
1237
1237
|
var w;
|
|
1238
|
-
const v = (w = first(x)) == null ? void 0 : w._parent, E = n.filter((
|
|
1238
|
+
const v = (w = first(x)) == null ? void 0 : w._parent, E = n.filter((R) => v ? R._parent === v : !R._parent).indexOf(first(x));
|
|
1239
1239
|
i(map(x, "_id")), r({
|
|
1240
1240
|
undo: () => a(x, v, E),
|
|
1241
1241
|
redo: () => i(map(x, "_id"))
|
|
@@ -1247,9 +1247,9 @@ const useBlocksStoreManager = () => {
|
|
|
1247
1247
|
E = map(x, (w) => ({ _id: w, ...S }));
|
|
1248
1248
|
else {
|
|
1249
1249
|
const w = keys(v);
|
|
1250
|
-
E = map(x, (
|
|
1251
|
-
const P = n.find((
|
|
1252
|
-
return each(w, (
|
|
1250
|
+
E = map(x, (R) => {
|
|
1251
|
+
const P = n.find((C) => C._id === R), A = { _id: R };
|
|
1252
|
+
return each(w, (C) => A[C] = P[C]), A;
|
|
1253
1253
|
});
|
|
1254
1254
|
}
|
|
1255
1255
|
c(map(x, (w) => ({ _id: w, ...v }))), r({
|
|
@@ -1269,8 +1269,8 @@ const useBlocksStoreManager = () => {
|
|
|
1269
1269
|
updateMultipleBlocksProps: (x) => {
|
|
1270
1270
|
let v = [];
|
|
1271
1271
|
v = map(x, (S) => {
|
|
1272
|
-
const E = keys(S), w = n.find((P) => P._id === S._id),
|
|
1273
|
-
return each(E, (P) =>
|
|
1272
|
+
const E = keys(S), w = n.find((P) => P._id === S._id), R = {};
|
|
1273
|
+
return each(E, (P) => R[P] = w[P]), R;
|
|
1274
1274
|
}), c(x), r({
|
|
1275
1275
|
undo: () => c(v),
|
|
1276
1276
|
redo: () => c(x)
|
|
@@ -2782,7 +2782,14 @@ const useReadOnlyMode = () => useAtomValue$1(readOnlyModeAtom), activePanelAtom
|
|
|
2782
2782
|
}
|
|
2783
2783
|
}, []);
|
|
2784
2784
|
return [r, o];
|
|
2785
|
-
}, codeEditorAtom = atom$1(null), useCodeEditor = () => useAtom$1(codeEditorAtom),
|
|
2785
|
+
}, codeEditorAtom = atom$1(null), useCodeEditor = () => useAtom$1(codeEditorAtom), LAYOUT_VARIANTS = {
|
|
2786
|
+
SINGLE_SIDE_PANEL: "SINGLE_SIDE_PANEL",
|
|
2787
|
+
DUAL_SIDE_PANEL: "DUAL_SIDE_PANEL",
|
|
2788
|
+
DUAL_SIDE_PANEL_ADVANCED: "DUAL_SIDE_PANEL_ADVANCED"
|
|
2789
|
+
}, layoutVariantAtom = atomWithStorage("__layout_variant", LAYOUT_VARIANTS.SINGLE_SIDE_PANEL), useLayoutVariant = () => {
|
|
2790
|
+
const [r, n] = useAtom$1(layoutVariantAtom), o = useBuilderProp("layoutVariant", LAYOUT_VARIANTS.SINGLE_SIDE_PANEL);
|
|
2791
|
+
return [r || o, n];
|
|
2792
|
+
}, IframeInitialContent = `<!doctype html>
|
|
2786
2793
|
<html lang="en" dir="__HTML_DIR__" class="scroll-smooth h-full overflow-y-auto">
|
|
2787
2794
|
<head>
|
|
2788
2795
|
<meta charset="UTF-8">
|
|
@@ -3033,8 +3040,8 @@ const useDnd = () => {
|
|
|
3033
3040
|
g.preventDefault(), g.stopPropagation(), throttledDragOver(g);
|
|
3034
3041
|
},
|
|
3035
3042
|
onDrop: (g) => {
|
|
3036
|
-
var
|
|
3037
|
-
const h = dropTarget, x = getOrientation(h) === "vertical" ? g.clientY + ((
|
|
3043
|
+
var R;
|
|
3044
|
+
const h = dropTarget, x = getOrientation(h) === "vertical" ? g.clientY + ((R = iframeDocument == null ? void 0 : iframeDocument.defaultView) == null ? void 0 : R.scrollY) : g.clientX;
|
|
3038
3045
|
dropIndex = calculateDropIndex(x, possiblePositions);
|
|
3039
3046
|
const v = u, S = h.getAttribute("data-block-id"), E = dropTarget.getAttribute("data-dnd-dragged") !== "yes";
|
|
3040
3047
|
if ((v == null ? void 0 : v._id) === S || !E) {
|
|
@@ -3264,12 +3271,12 @@ const useHandleCanvasDblClick = () => {
|
|
|
3264
3271
|
}, [a, d]);
|
|
3265
3272
|
const x = get$1(n, "headingFont", "DM Sans"), v = get$1(n, "bodyFont", "DM Sans");
|
|
3266
3273
|
return useEffect$1(() => {
|
|
3267
|
-
const S = get$1(n, "primaryColor", "#000"), E = get$1(n, "secondaryColor", "#FFF"), w = get$1(n, "bodyBgLightColor", "#fff"),
|
|
3274
|
+
const S = get$1(n, "primaryColor", "#000"), E = get$1(n, "secondaryColor", "#FFF"), w = get$1(n, "bodyBgLightColor", "#fff"), R = get$1(n, "bodyBgDarkColor", "#000"), P = get$1(n, "bodyTextDarkColor", "#000"), A = get$1(n, "bodyTextLightColor", "#fff"), C = getPalette([
|
|
3268
3275
|
{ color: S, name: "primary" },
|
|
3269
3276
|
{ color: E, name: "secondary" }
|
|
3270
3277
|
]), I = {
|
|
3271
3278
|
"bg-light": w,
|
|
3272
|
-
"bg-dark":
|
|
3279
|
+
"bg-dark": R,
|
|
3273
3280
|
"text-dark": P,
|
|
3274
3281
|
"text-light": A
|
|
3275
3282
|
}, j = get$1(n, "roundedCorners", "0");
|
|
@@ -3291,7 +3298,7 @@ const useHandleCanvasDblClick = () => {
|
|
|
3291
3298
|
borderRadius: {
|
|
3292
3299
|
DEFAULT: `${j || "0"}px`
|
|
3293
3300
|
},
|
|
3294
|
-
colors: { ...I, ...
|
|
3301
|
+
colors: { ...I, ...C }
|
|
3295
3302
|
}
|
|
3296
3303
|
},
|
|
3297
3304
|
plugins: [
|
|
@@ -3419,10 +3426,10 @@ function BlocksRendererStatic({ blocks: r }) {
|
|
|
3419
3426
|
const E = getBlockComponent(h._type), w = get$1(E, "builderComponent", get$1(E, "component", null));
|
|
3420
3427
|
if (isNull(w))
|
|
3421
3428
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("noscript", { children: `<!-- ${h == null ? void 0 : h._type} not registered -->` });
|
|
3422
|
-
const
|
|
3429
|
+
const R = has(E, "getBlockStateFrom") ? E == null ? void 0 : E.getBlockStateFrom(h, n) : [], P = g(R), A = d(h);
|
|
3423
3430
|
if (get$1(A, "__isHidden", !1) && !includes(o, h._id))
|
|
3424
3431
|
return null;
|
|
3425
|
-
const
|
|
3432
|
+
const C = i && isDescendant(i._id, h._id, n);
|
|
3426
3433
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { children: React__default.createElement(w, {
|
|
3427
3434
|
blockProps: {
|
|
3428
3435
|
...includes(o, h._id) ? { "force-show": "" } : {},
|
|
@@ -3432,10 +3439,10 @@ function BlocksRendererStatic({ blocks: r }) {
|
|
|
3432
3439
|
// @ts-ignore
|
|
3433
3440
|
{
|
|
3434
3441
|
"data-dnd": canAcceptChildBlock(h._type, i == null ? void 0 : i._type) ? "yes" : "no",
|
|
3435
|
-
"data-dnd-dragged": i._id === h._id ||
|
|
3442
|
+
"data-dnd-dragged": i._id === h._id || C ? "yes" : "no"
|
|
3436
3443
|
}
|
|
3437
3444
|
) : {},
|
|
3438
|
-
...l === h._id && !
|
|
3445
|
+
...l === h._id && !C ? { "data-drop": "yes" } : {},
|
|
3439
3446
|
...includes(a, h._id) ? { "data-cut-block": "yes" } : {}
|
|
3440
3447
|
},
|
|
3441
3448
|
index: b,
|
|
@@ -3494,23 +3501,23 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
|
|
|
3494
3501
|
}, []), /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: "main-content", className: "h-full w-full p-10 pb-0", ref: a, children: r });
|
|
3495
3502
|
}, getElementByStyleId = (r, n) => r.querySelector(`[data-style-id="${n}"]`), StaticCanvas = () => {
|
|
3496
3503
|
const [r] = useAtom$1(networkModeAtom), [n] = useCanvasWidth(), [, o] = useSelectedBlockIds(), a = useSelectedBlock(), [, i] = useHighlightBlockId(), l = useRef$1(null), c = useRef$1(null), [u, d] = useState$1({ width: 0, height: 0 }), p = useCanvasScale(u), [m, g] = useState$1([]), [, h] = useState$1([]), [, b] = useAtom$1(canvasIframeAtom), [x, v] = useSelectedStylingBlocks(), S = useBuilderProp("loading", !1), E = useBuilderProp("htmlDir", "ltr"), w = (A) => {
|
|
3497
|
-
d((
|
|
3504
|
+
d((C) => ({ ...C, width: A }));
|
|
3498
3505
|
};
|
|
3499
3506
|
useEffect$1(() => {
|
|
3500
3507
|
if (!c.current)
|
|
3501
3508
|
return;
|
|
3502
|
-
const { clientWidth: A, clientHeight:
|
|
3503
|
-
d({ width: A, height:
|
|
3509
|
+
const { clientWidth: A, clientHeight: C } = c.current;
|
|
3510
|
+
d({ width: A, height: C });
|
|
3504
3511
|
}, [c, n]);
|
|
3505
|
-
const
|
|
3512
|
+
const R = (A, C = 0) => {
|
|
3506
3513
|
const { top: I } = A.getBoundingClientRect();
|
|
3507
|
-
return I +
|
|
3514
|
+
return I + C >= 0 && I - C <= window.innerHeight;
|
|
3508
3515
|
};
|
|
3509
3516
|
useEffect$1(() => {
|
|
3510
|
-
var A,
|
|
3517
|
+
var A, C;
|
|
3511
3518
|
if (a && a.type !== "Multiple" && l.current) {
|
|
3512
3519
|
const I = getElementByDataBlockId(l.current.contentDocument, a._id);
|
|
3513
|
-
I && (
|
|
3520
|
+
I && (R(I) || (C = (A = l.current) == null ? void 0 : A.contentWindow) == null || C.scrollTo({ top: I.offsetTop, behavior: "smooth" }), g([I]));
|
|
3514
3521
|
}
|
|
3515
3522
|
}, [a]), useEffect$1(() => {
|
|
3516
3523
|
if (!isEmpty(x) && l.current) {
|
|
@@ -3579,7 +3586,7 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
|
|
|
3579
3586
|
}, StaticCanvas$1 = StaticCanvas, FallbackError = () => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-full w-full rounded-md bg-red-200 p-4 text-red-500", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center", children: [
|
|
3580
3587
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "font-semibold", children: "Oops! Something went wrong." }),
|
|
3581
3588
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "Please try again." })
|
|
3582
|
-
] }) }), CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-
|
|
3589
|
+
] }) }), CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-1Hftwojo.js")), CanvasArea = () => {
|
|
3583
3590
|
const [r] = useCodeEditor(), n = useBuilderProp("onError", noop$1);
|
|
3584
3591
|
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: [
|
|
3585
3592
|
/* @__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, {}) }) }),
|
|
@@ -3657,8 +3664,8 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
|
|
|
3657
3664
|
React.useEffect(() => () => {
|
|
3658
3665
|
isEqual(a, c.current) || o(c.current);
|
|
3659
3666
|
}, []);
|
|
3660
|
-
const d = ({ formData: A },
|
|
3661
|
-
|
|
3667
|
+
const d = ({ formData: A }, C) => {
|
|
3668
|
+
C && (i(A), c.current = A);
|
|
3662
3669
|
}, {
|
|
3663
3670
|
bodyFont: p,
|
|
3664
3671
|
headingFont: m,
|
|
@@ -3707,13 +3714,13 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
|
|
|
3707
3714
|
default: b
|
|
3708
3715
|
})
|
|
3709
3716
|
});
|
|
3710
|
-
const
|
|
3717
|
+
const R = {
|
|
3711
3718
|
type: "object",
|
|
3712
3719
|
properties: {}
|
|
3713
3720
|
}, P = {};
|
|
3714
3721
|
return Object.keys(w).forEach((A) => {
|
|
3715
|
-
const
|
|
3716
|
-
return
|
|
3722
|
+
const C = w[A];
|
|
3723
|
+
return R.properties || (R.properties = {}), R.properties[A] = C.schema, P[A] = C.uiSchema, !0;
|
|
3717
3724
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("flex h-full w-full select-none flex-col", n), children: [
|
|
3718
3725
|
r ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "rounded-md bg-background/30 p-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "px-1 font-semibold", children: u("Theme Configuration") }) }) : null,
|
|
3719
3726
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -3726,7 +3733,7 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
|
|
|
3726
3733
|
liveOmit: !0,
|
|
3727
3734
|
liveValidate: !0,
|
|
3728
3735
|
uiSchema: P,
|
|
3729
|
-
schema:
|
|
3736
|
+
schema: R,
|
|
3730
3737
|
formData: a,
|
|
3731
3738
|
validator,
|
|
3732
3739
|
onChange: d
|
|
@@ -3980,17 +3987,17 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
3980
3987
|
}, 500);
|
|
3981
3988
|
return () => clearTimeout(A);
|
|
3982
3989
|
}, [g, r, h]);
|
|
3983
|
-
const
|
|
3984
|
-
const A = Object.keys(p),
|
|
3990
|
+
const R = useMemo$1(() => {
|
|
3991
|
+
const A = Object.keys(p), C = [];
|
|
3985
3992
|
for (let I = 0; I < A.length; I++)
|
|
3986
3993
|
if (A[I].endsWith("_attrs")) {
|
|
3987
3994
|
const j = p[A[I]], k = Object.keys(j).join("|");
|
|
3988
|
-
k.match(/x-data/) &&
|
|
3995
|
+
k.match(/x-data/) && C.push("data"), k.match(/x-on/) && C.push("event"), k.match(/x-show|x-if/) && C.push("show");
|
|
3989
3996
|
}
|
|
3990
|
-
return
|
|
3991
|
-
}, [p]), P = (A,
|
|
3997
|
+
return C;
|
|
3998
|
+
}, [p]), P = (A, C) => {
|
|
3992
3999
|
const I = l.contentDocument || l.contentWindow.document, j = I.querySelector(`[data-block-id=${A}]`);
|
|
3993
|
-
j && j.setAttribute("data-drop",
|
|
4000
|
+
j && j.setAttribute("data-drop", C);
|
|
3994
4001
|
const k = j.getBoundingClientRect(), O = l.getBoundingClientRect();
|
|
3995
4002
|
k.top >= O.top && k.left >= O.left && k.bottom <= O.bottom && k.right <= O.right || (I.documentElement.scrollTop = j.offsetTop - O.top);
|
|
3996
4003
|
};
|
|
@@ -4048,9 +4055,9 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4048
4055
|
},
|
|
4049
4056
|
children: [
|
|
4050
4057
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: (p == null ? void 0 : p._name) || (p == null ? void 0 : p._type.split("/").pop()) }),
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4058
|
+
R.includes("data") && /* @__PURE__ */ jsxRuntimeExports.jsx(VscJson, { className: "h-3 w-3 text-orange-600" }),
|
|
4059
|
+
R.includes("event") && /* @__PURE__ */ jsxRuntimeExports.jsx(BsLightningFill, { className: "h-3 w-3 text-yellow-500" }),
|
|
4060
|
+
R.includes("show") && /* @__PURE__ */ jsxRuntimeExports.jsx(TbEyeDown, { className: "h-3 w-3 text-orange-600" })
|
|
4054
4061
|
]
|
|
4055
4062
|
}
|
|
4056
4063
|
)
|
|
@@ -4463,7 +4470,7 @@ function ExpandableObject(r) {
|
|
|
4463
4470
|
useEffect$1(() => {
|
|
4464
4471
|
g.current ? x(p(u, o, n)) : g.current = !0;
|
|
4465
4472
|
}, [p]);
|
|
4466
|
-
const v = h ? d.collapseIcon : d.expandIcon, S = h ? "collapse JSON" : "expand JSON", E = useComponentId(), w = u + 1,
|
|
4473
|
+
const v = h ? d.collapseIcon : d.expandIcon, S = h ? "collapse JSON" : "expand JSON", E = useComponentId(), w = u + 1, R = a.length - 1, P = (A) => {
|
|
4467
4474
|
A.key === " " && (A.preventDefault(), b());
|
|
4468
4475
|
};
|
|
4469
4476
|
return /* @__PURE__ */ createElement$1("div", {
|
|
@@ -4490,12 +4497,12 @@ function ExpandableObject(r) {
|
|
|
4490
4497
|
className: d.punctuation
|
|
4491
4498
|
}, l), h ? /* @__PURE__ */ createElement$1("div", {
|
|
4492
4499
|
id: E
|
|
4493
|
-
}, a.map((A,
|
|
4494
|
-
key: A[0] ||
|
|
4500
|
+
}, a.map((A, C) => /* @__PURE__ */ createElement$1(DataRender, {
|
|
4501
|
+
key: A[0] || C,
|
|
4495
4502
|
field: A[0],
|
|
4496
4503
|
value: A[1],
|
|
4497
4504
|
style: d,
|
|
4498
|
-
lastElement:
|
|
4505
|
+
lastElement: C === R,
|
|
4499
4506
|
level: w,
|
|
4500
4507
|
shouldExpandNode: p,
|
|
4501
4508
|
clickToExpandNode: m
|
|
@@ -4976,7 +4983,7 @@ const ViewData = ({ data: r, fullView: n }) => {
|
|
|
4976
4983
|
}
|
|
4977
4984
|
)
|
|
4978
4985
|
] });
|
|
4979
|
-
}, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-
|
|
4986
|
+
}, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-umIxGYt_.js")), UploadImages = React__default.lazy(() => import("./UploadImages-0lyXeo9Q.js")), ImagesPanel = ({
|
|
4980
4987
|
isModalView: r = !1,
|
|
4981
4988
|
onSelect: n = () => {
|
|
4982
4989
|
}
|
|
@@ -5453,10 +5460,10 @@ const AskAIStyles = ({ blockId: r }) => {
|
|
|
5453
5460
|
function ManualClasses() {
|
|
5454
5461
|
var A;
|
|
5455
5462
|
const { t: r } = useTranslation(), [n] = useSelectedStylingBlocks(), o = useSelectedBlock(), a = useAddClassesToBlocks(), i = useRemoveClassesFromBlocks(), [l] = useSelectedBlockIds(), c = useBuilderProp("askAiCallBack", null), [u, d] = useState$1(""), { toast: p } = useToast(), m = (A = first(n)) == null ? void 0 : A.prop, g = reject((get$1(o, m, "").replace(STYLES_KEY, "").split(",").pop() || "").split(" "), isEmpty), h = () => {
|
|
5456
|
-
const
|
|
5457
|
-
a(l,
|
|
5458
|
-
}, [b, x] = useState$1([]), v = ({ value:
|
|
5459
|
-
const I =
|
|
5463
|
+
const C = u.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
|
|
5464
|
+
a(l, C, !0), d("");
|
|
5465
|
+
}, [b, x] = useState$1([]), v = ({ value: C }) => {
|
|
5466
|
+
const I = C.trim().toLowerCase(), j = I.match(/.+:/g);
|
|
5460
5467
|
let k = [];
|
|
5461
5468
|
if (j && j.length > 0) {
|
|
5462
5469
|
const [O] = j, T = I.replace(O, "");
|
|
@@ -5469,17 +5476,17 @@ function ManualClasses() {
|
|
|
5469
5476
|
return x(map(k, "item"));
|
|
5470
5477
|
}, S = () => {
|
|
5471
5478
|
x([]);
|
|
5472
|
-
}, E = (
|
|
5479
|
+
}, E = (C) => C.name, w = (C) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "rounded-md p-1", children: C.name }), R = {
|
|
5473
5480
|
autoComplete: "off",
|
|
5474
5481
|
autoCorrect: "off",
|
|
5475
5482
|
autoCapitalize: "off",
|
|
5476
5483
|
spellCheck: !1,
|
|
5477
5484
|
placeholder: r("enter_classes_separated_by_space"),
|
|
5478
5485
|
value: u,
|
|
5479
|
-
onKeyDown: (
|
|
5480
|
-
|
|
5486
|
+
onKeyDown: (C) => {
|
|
5487
|
+
C.key === "Enter" && u.trim() !== "" && h();
|
|
5481
5488
|
},
|
|
5482
|
-
onChange: (
|
|
5489
|
+
onChange: (C, { newValue: I }) => d(I),
|
|
5483
5490
|
className: "w-full rounded-md text-xs px-2 hover:outline-0 bg-background border-border py-1"
|
|
5484
5491
|
}, P = () => {
|
|
5485
5492
|
if (navigator.clipboard === void 0) {
|
|
@@ -5525,7 +5532,7 @@ function ManualClasses() {
|
|
|
5525
5532
|
onSuggestionsClearRequested: S,
|
|
5526
5533
|
getSuggestionValue: E,
|
|
5527
5534
|
renderSuggestion: w,
|
|
5528
|
-
inputProps:
|
|
5535
|
+
inputProps: R,
|
|
5529
5536
|
containerProps: {
|
|
5530
5537
|
className: "relative h-8 w-full gap-y-1 py-1 border-gray-600"
|
|
5531
5538
|
},
|
|
@@ -5549,22 +5556,22 @@ function ManualClasses() {
|
|
|
5549
5556
|
)
|
|
5550
5557
|
] }),
|
|
5551
5558
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full flex-wrap gap-2 overflow-x-hidden", children: React.Children.toArray(
|
|
5552
|
-
g.map((
|
|
5559
|
+
g.map((C) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
5553
5560
|
"div",
|
|
5554
5561
|
{
|
|
5555
5562
|
className: "group relative flex max-w-[260px] cursor-default items-center gap-x-1 truncate rounded border border-gray-300 bg-gray-200 p-px px-1.5 text-[11px] text-gray-600 hover:border-gray-300",
|
|
5556
5563
|
children: [
|
|
5557
|
-
|
|
5564
|
+
C,
|
|
5558
5565
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5559
5566
|
Cross2Icon,
|
|
5560
5567
|
{
|
|
5561
|
-
onClick: () => i(l, [
|
|
5568
|
+
onClick: () => i(l, [C]),
|
|
5562
5569
|
className: "invisible absolute right-1 rounded-full bg-red-400 hover:text-white group-hover:visible group-hover:cursor-pointer"
|
|
5563
5570
|
}
|
|
5564
5571
|
)
|
|
5565
5572
|
]
|
|
5566
5573
|
},
|
|
5567
|
-
|
|
5574
|
+
C
|
|
5568
5575
|
))
|
|
5569
5576
|
) })
|
|
5570
5577
|
]
|
|
@@ -6214,7 +6221,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6214
6221
|
},
|
|
6215
6222
|
a
|
|
6216
6223
|
)) }), THROTTLE_TIME = 50, AdvanceChoices = (r) => {
|
|
6217
|
-
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), [
|
|
6224
|
+
const [n, o] = useState$1(!1), [a, i] = useState$1(""), { currentClass: l, onChange: c, classPrefix: u, cssProperty: d, units: p, negative: m } = r, [g, h] = useState$1(d != null && d.toLowerCase().includes("width") ? "%" : p[0]), [b, x] = useState$1(!1), [v, S] = useState$1(""), [E, w] = useState$1(!1), [R, P] = useState$1(!1);
|
|
6218
6225
|
useEffect$1(() => {
|
|
6219
6226
|
const { value: k, unit: O } = getClassValueAndUnit(l);
|
|
6220
6227
|
if (O === "") {
|
|
@@ -6223,7 +6230,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6223
6230
|
}
|
|
6224
6231
|
h(O), i(O === "class" || isEmpty(k) ? "" : k);
|
|
6225
6232
|
}, [l, d, p]);
|
|
6226
|
-
const A = useThrottledCallback((k) => c(k), [c], THROTTLE_TIME),
|
|
6233
|
+
const A = useThrottledCallback((k) => c(k), [c], THROTTLE_TIME), C = useThrottledCallback((k) => c(k, !1), [c], THROTTLE_TIME), I = useCallback$1(
|
|
6227
6234
|
(k = !1) => {
|
|
6228
6235
|
const O = getUserInputValues(`${a}`, p);
|
|
6229
6236
|
if (get$1(O, "error", !1)) {
|
|
@@ -6238,9 +6245,9 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6238
6245
|
if (get$1(O, "value") === "")
|
|
6239
6246
|
return;
|
|
6240
6247
|
const L = `${get$1(O, "value", "").startsWith("-") ? "-" : ""}${u}[${get$1(O, "value", "").replace("-", "")}${T === "-" ? "" : T}]`;
|
|
6241
|
-
k ?
|
|
6248
|
+
k ? C(L) : A(L);
|
|
6242
6249
|
},
|
|
6243
|
-
[A,
|
|
6250
|
+
[A, C, a, g, u, p]
|
|
6244
6251
|
), j = useCallback$1(
|
|
6245
6252
|
(k) => {
|
|
6246
6253
|
const O = getUserInputValues(`${a}`, p);
|
|
@@ -6282,10 +6289,10 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6282
6289
|
let T = isNaN$1(O) ? 0 : O;
|
|
6283
6290
|
k.keyCode === 38 && (T += 1), k.keyCode === 40 && (T -= 1);
|
|
6284
6291
|
const B = `${T}`, D = `${B.startsWith("-") ? "-" : ""}${u}[${B.replace("-", "")}${g === "-" ? "" : g}]`;
|
|
6285
|
-
|
|
6292
|
+
C(D);
|
|
6286
6293
|
},
|
|
6287
6294
|
onKeyUp: (k) => {
|
|
6288
|
-
|
|
6295
|
+
R && (k.preventDefault(), P(!1));
|
|
6289
6296
|
},
|
|
6290
6297
|
onBlur: () => I(),
|
|
6291
6298
|
onChange: (k) => {
|
|
@@ -6342,7 +6349,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6342
6349
|
return;
|
|
6343
6350
|
S(k);
|
|
6344
6351
|
const O = `${k}`, B = `${O.startsWith("-") ? "-" : ""}${u}[${O.replace("-", "")}${g === "-" ? "" : g}]`;
|
|
6345
|
-
|
|
6352
|
+
C(B);
|
|
6346
6353
|
},
|
|
6347
6354
|
currentValue: a,
|
|
6348
6355
|
unit: g,
|
|
@@ -6440,8 +6447,8 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6440
6447
|
}, getBreakpoint = (r) => `${r.toUpperCase()} ${BREAKPOINTS[r] ? `(${BREAKPOINTS[r]} & up)` : ""}`, BlockStyle = (r) => {
|
|
6441
6448
|
const { t: n } = useTranslation(), { type: o = "icons", label: a, property: i, onEmitChange: l = () => {
|
|
6442
6449
|
}, 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(
|
|
6443
|
-
(
|
|
6444
|
-
const j = { dark: d, mq: m, mod: p, cls:
|
|
6450
|
+
(C, I = !0) => {
|
|
6451
|
+
const j = { dark: d, mq: m, mod: p, cls: C, property: i, fullCls: "" };
|
|
6445
6452
|
(d || p !== "") && (j.mq = "xs");
|
|
6446
6453
|
const k = generateFullClsName(j);
|
|
6447
6454
|
h(x, [k], I);
|
|
@@ -6453,18 +6460,18 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6453
6460
|
useEffect$1(() => {
|
|
6454
6461
|
l(w, g);
|
|
6455
6462
|
}, [w, l, g]);
|
|
6456
|
-
const [, ,
|
|
6457
|
-
(
|
|
6458
|
-
|
|
6463
|
+
const [, , R] = useCanvasWidth(), P = useCallback$1(
|
|
6464
|
+
(C) => {
|
|
6465
|
+
R({
|
|
6459
6466
|
xs: 400,
|
|
6460
6467
|
sm: 640,
|
|
6461
6468
|
md: 800,
|
|
6462
6469
|
lg: 1024,
|
|
6463
6470
|
xl: 1420,
|
|
6464
6471
|
"2xl": 1920
|
|
6465
|
-
}[
|
|
6472
|
+
}[C]);
|
|
6466
6473
|
},
|
|
6467
|
-
[
|
|
6474
|
+
[R]
|
|
6468
6475
|
), A = get$1(g, "dark", null) === d && get$1(g, "mod", null) === p && get$1(g, "mq", null) === m;
|
|
6469
6476
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(BlockStyleProvider, { canChange: w, canReset: g && A, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
|
|
6470
6477
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `text-[11px] ${g && !A ? "text-foreground" : ""}`, children: n(a) }) }),
|
|
@@ -6781,15 +6788,15 @@ const BlockCard = ({
|
|
|
6781
6788
|
const E = await l(n, r);
|
|
6782
6789
|
let w = o;
|
|
6783
6790
|
if (b(first(E)) && (w = null), !isEmpty(E)) {
|
|
6784
|
-
const
|
|
6785
|
-
if (S.dataTransfer.setData("text/plain", JSON.stringify(
|
|
6791
|
+
const R = { blocks: E, uiLibrary: !0, parent: w };
|
|
6792
|
+
if (S.dataTransfer.setData("text/plain", JSON.stringify(R)), r.preview) {
|
|
6786
6793
|
const P = new Image();
|
|
6787
6794
|
P.src = r.preview, P.onload = () => {
|
|
6788
6795
|
S.dataTransfer.setDragImage(P, 0, 0);
|
|
6789
6796
|
};
|
|
6790
6797
|
} else
|
|
6791
6798
|
S.dataTransfer.setDragImage(new Image(), 0, 0);
|
|
6792
|
-
h(
|
|
6799
|
+
h(R), setTimeout(() => {
|
|
6793
6800
|
d([]), p(null), emitChaiBuilderMsg({ name: CHAI_BUILDER_EVENTS.CLOSE_ADD_BLOCK });
|
|
6794
6801
|
}, 200);
|
|
6795
6802
|
}
|
|
@@ -6840,7 +6847,7 @@ const BlockCard = ({
|
|
|
6840
6847
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, { className: "col-span-3 h-full" }),
|
|
6841
6848
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, { className: "col-span-9 h-full" })
|
|
6842
6849
|
] });
|
|
6843
|
-
const S = filter(h, (w,
|
|
6850
|
+
const S = filter(h, (w, R) => R % 2 === 0), E = filter(h, (w, R) => R % 2 === 1);
|
|
6844
6851
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "relative mt-2 flex h-full max-h-full overflow-hidden bg-background", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-full pt-2", children: [
|
|
6845
6852
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-full max-h-full w-60 flex-col gap-1 px-1 pr-2", children: [
|
|
6846
6853
|
/* @__PURE__ */ jsxRuntimeExports.jsx(UILibrariesSelect, { library: c == null ? void 0 : c.uuid, setLibrary: o, uiLibraries: a }),
|
|
@@ -6848,22 +6855,22 @@ const BlockCard = ({
|
|
|
6848
6855
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs font-bold text-gray-500", children: x("groups") }),
|
|
6849
6856
|
/* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: "mt-1" }),
|
|
6850
6857
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "no-scrollbar mt-2 h-full max-h-full flex-1 overflow-y-auto pb-20", children: React__default.Children.toArray(
|
|
6851
|
-
map(p, (w,
|
|
6858
|
+
map(p, (w, R) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
6852
6859
|
"div",
|
|
6853
6860
|
{
|
|
6854
|
-
onMouseEnter: () => v(
|
|
6861
|
+
onMouseEnter: () => v(R),
|
|
6855
6862
|
onMouseLeave: () => clearTimeout(b.current),
|
|
6856
|
-
onClick: () => g(
|
|
6863
|
+
onClick: () => g(R),
|
|
6857
6864
|
className: cn(
|
|
6858
6865
|
"flex w-full cursor-pointer items-center justify-between rounded-md p-2 text-sm transition-all ease-in-out hover:bg-gray-200",
|
|
6859
|
-
|
|
6866
|
+
R === m ? "bg-blue-500 text-white hover:bg-blue-600" : ""
|
|
6860
6867
|
),
|
|
6861
6868
|
children: [
|
|
6862
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: capitalize(x(
|
|
6869
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: capitalize(x(R.toLowerCase())) }),
|
|
6863
6870
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CaretRightIcon, { className: "ml-2 h-5 w-5" })
|
|
6864
6871
|
]
|
|
6865
6872
|
},
|
|
6866
|
-
|
|
6873
|
+
R
|
|
6867
6874
|
))
|
|
6868
6875
|
) })
|
|
6869
6876
|
] })
|
|
@@ -7693,7 +7700,7 @@ const AIUserPrompt = ({ blockId: r }) => {
|
|
|
7693
7700
|
o(P), i(a), c(""), d(""), h("");
|
|
7694
7701
|
}
|
|
7695
7702
|
}, S = (P) => {
|
|
7696
|
-
const A = a.filter((
|
|
7703
|
+
const A = a.filter((C, I) => I !== P);
|
|
7697
7704
|
o(A), i(A);
|
|
7698
7705
|
}, E = (P) => {
|
|
7699
7706
|
m(P), c(a[P].key), d(a[P].value);
|
|
@@ -7706,7 +7713,7 @@ const AIUserPrompt = ({ blockId: r }) => {
|
|
|
7706
7713
|
const P = [...a];
|
|
7707
7714
|
P[p] = { key: l, value: u }, o(P), i(P), m(null), c(""), d(""), h("");
|
|
7708
7715
|
}
|
|
7709
|
-
},
|
|
7716
|
+
}, R = (P) => {
|
|
7710
7717
|
P.key === "Enter" && !P.shiftKey && (P.preventDefault(), p !== null ? w() : v());
|
|
7711
7718
|
};
|
|
7712
7719
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "max-w-full", children: [
|
|
@@ -7749,7 +7756,7 @@ const AIUserPrompt = ({ blockId: r }) => {
|
|
|
7749
7756
|
ref: x,
|
|
7750
7757
|
value: u,
|
|
7751
7758
|
onChange: (P) => d(P.target.value),
|
|
7752
|
-
onKeyDown:
|
|
7759
|
+
onKeyDown: R,
|
|
7753
7760
|
placeholder: "Value",
|
|
7754
7761
|
className: "bg-background text-sm"
|
|
7755
7762
|
}
|
|
@@ -7851,8 +7858,8 @@ function useAtomsSnapshot({
|
|
|
7851
7858
|
for (const w of ((v = o.dev_get_mounted_atoms) == null ? void 0 : v.call(o)) || []) {
|
|
7852
7859
|
if (!r && w.debugPrivate)
|
|
7853
7860
|
continue;
|
|
7854
|
-
const
|
|
7855
|
-
|
|
7861
|
+
const R = (S = o.dev_get_atom_state) == null ? void 0 : S.call(o, w);
|
|
7862
|
+
R && "v" in R && h.set(w, R.v);
|
|
7856
7863
|
const P = (E = o.dev_get_mounted) == null ? void 0 : E.call(o, w);
|
|
7857
7864
|
if (P) {
|
|
7858
7865
|
let A = P.t;
|
|
@@ -7861,7 +7868,7 @@ function useAtomsSnapshot({
|
|
|
7861
7868
|
/* NOTE: This just removes private atoms from the dependents list,
|
|
7862
7869
|
instead of hiding them from the dependency chain and showing
|
|
7863
7870
|
the nested dependents of the private atoms. */
|
|
7864
|
-
(
|
|
7871
|
+
(C) => !C.debugPrivate
|
|
7865
7872
|
)
|
|
7866
7873
|
)), b.set(w, A);
|
|
7867
7874
|
}
|
|
@@ -8078,7 +8085,7 @@ function compile(r) {
|
|
|
8078
8085
|
return dealloc(parse("", null, null, null, [""], r = alloc(r), 0, [0], r));
|
|
8079
8086
|
}
|
|
8080
8087
|
function parse(r, n, o, a, i, l, c, u, d) {
|
|
8081
|
-
for (var p = 0, m = 0, g = c, h = 0, b = 0, x = 0, v = 1, S = 1, E = 1, w = 0,
|
|
8088
|
+
for (var p = 0, m = 0, g = c, h = 0, b = 0, x = 0, v = 1, S = 1, E = 1, w = 0, R = "", P = i, A = l, C = a, I = R; S; )
|
|
8082
8089
|
switch (x = w, w = next()) {
|
|
8083
8090
|
case 40:
|
|
8084
8091
|
if (x != 108 && charat(I, g - 1) == 58) {
|
|
@@ -8124,22 +8131,22 @@ function parse(r, n, o, a, i, l, c, u, d) {
|
|
|
8124
8131
|
case 59:
|
|
8125
8132
|
I += ";";
|
|
8126
8133
|
default:
|
|
8127
|
-
if (append(
|
|
8134
|
+
if (append(C = ruleset(I, n, o, p, m, i, u, R, P = [], A = [], g), l), w === 123)
|
|
8128
8135
|
if (m === 0)
|
|
8129
|
-
parse(I, n,
|
|
8136
|
+
parse(I, n, C, C, P, l, g, u, A);
|
|
8130
8137
|
else
|
|
8131
8138
|
switch (h === 99 && charat(I, 3) === 110 ? 100 : h) {
|
|
8132
8139
|
case 100:
|
|
8133
8140
|
case 108:
|
|
8134
8141
|
case 109:
|
|
8135
8142
|
case 115:
|
|
8136
|
-
parse(r,
|
|
8143
|
+
parse(r, C, C, a && append(ruleset(r, C, C, 0, 0, i, u, R, i, P = [], g), A), i, A, g, u, a ? P : A);
|
|
8137
8144
|
break;
|
|
8138
8145
|
default:
|
|
8139
|
-
parse(I,
|
|
8146
|
+
parse(I, C, C, C, [""], A, 0, u, A);
|
|
8140
8147
|
}
|
|
8141
8148
|
}
|
|
8142
|
-
p = m = b = 0, v = E = 1,
|
|
8149
|
+
p = m = b = 0, v = E = 1, R = I = "", g = c;
|
|
8143
8150
|
break;
|
|
8144
8151
|
case 58:
|
|
8145
8152
|
g = 1 + strlen(I), b = x;
|
|
@@ -8158,7 +8165,7 @@ function parse(r, n, o, a, i, l, c, u, d) {
|
|
|
8158
8165
|
u[p++] = (strlen(I) - 1) * E, E = 1;
|
|
8159
8166
|
break;
|
|
8160
8167
|
case 64:
|
|
8161
|
-
peek() === 45 && (I += delimit(next())), h = peek(), m = g = strlen(
|
|
8168
|
+
peek() === 45 && (I += delimit(next())), h = peek(), m = g = strlen(R = I += identifier(caret())), w++;
|
|
8162
8169
|
break;
|
|
8163
8170
|
case 45:
|
|
8164
8171
|
x === 45 && strlen(I) == 2 && (v = 0);
|
|
@@ -8168,8 +8175,8 @@ function parse(r, n, o, a, i, l, c, u, d) {
|
|
|
8168
8175
|
}
|
|
8169
8176
|
function ruleset(r, n, o, a, i, l, c, u, d, p, m) {
|
|
8170
8177
|
for (var g = i - 1, h = i === 0 ? l : [""], b = sizeof(h), x = 0, v = 0, S = 0; x < a; ++x)
|
|
8171
|
-
for (var E = 0, w = substr(r, g + 1, g = abs(v = c[x])),
|
|
8172
|
-
(
|
|
8178
|
+
for (var E = 0, w = substr(r, g + 1, g = abs(v = c[x])), R = r; E < b; ++E)
|
|
8179
|
+
(R = trim(v > 0 ? h[E] + " " + w : replace(w, /&\f/g, h[E]))) && (d[S++] = R);
|
|
8173
8180
|
return node(r, n, o, i === 0 ? RULESET : u, d, p, m);
|
|
8174
8181
|
}
|
|
8175
8182
|
function comment(r, n, o) {
|
|
@@ -8498,12 +8505,12 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
8498
8505
|
})], h = middleware(p.concat(i, g)), b = function(S) {
|
|
8499
8506
|
return serialize(compile(S), h);
|
|
8500
8507
|
};
|
|
8501
|
-
d = function(S, E, w,
|
|
8508
|
+
d = function(S, E, w, R) {
|
|
8502
8509
|
m = w, process.env.NODE_ENV !== "production" && E.map !== void 0 && (m = {
|
|
8503
8510
|
insert: function(A) {
|
|
8504
8511
|
w.insert(A + E.map);
|
|
8505
8512
|
}
|
|
8506
|
-
}), b(S ? S + "{" + E.styles + "}" : E.styles),
|
|
8513
|
+
}), b(S ? S + "{" + E.styles + "}" : E.styles), R && (x.inserted[E.name] = !0);
|
|
8507
8514
|
};
|
|
8508
8515
|
}
|
|
8509
8516
|
var x = {
|
|
@@ -8548,10 +8555,10 @@ function requireReactIs_production_min() {
|
|
|
8548
8555
|
return reactIs_production_min;
|
|
8549
8556
|
hasRequiredReactIs_production_min = 1;
|
|
8550
8557
|
var r = typeof Symbol == "function" && Symbol.for, n = r ? Symbol.for("react.element") : 60103, o = r ? Symbol.for("react.portal") : 60106, a = r ? Symbol.for("react.fragment") : 60107, i = r ? Symbol.for("react.strict_mode") : 60108, l = r ? Symbol.for("react.profiler") : 60114, c = r ? Symbol.for("react.provider") : 60109, u = r ? Symbol.for("react.context") : 60110, d = r ? Symbol.for("react.async_mode") : 60111, p = r ? Symbol.for("react.concurrent_mode") : 60111, m = r ? Symbol.for("react.forward_ref") : 60112, g = r ? Symbol.for("react.suspense") : 60113, h = r ? Symbol.for("react.suspense_list") : 60120, b = r ? Symbol.for("react.memo") : 60115, x = r ? Symbol.for("react.lazy") : 60116, v = r ? Symbol.for("react.block") : 60121, S = r ? Symbol.for("react.fundamental") : 60117, E = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
|
|
8551
|
-
function
|
|
8558
|
+
function R(A) {
|
|
8552
8559
|
if (typeof A == "object" && A !== null) {
|
|
8553
|
-
var
|
|
8554
|
-
switch (
|
|
8560
|
+
var C = A.$$typeof;
|
|
8561
|
+
switch (C) {
|
|
8555
8562
|
case n:
|
|
8556
8563
|
switch (A = A.type, A) {
|
|
8557
8564
|
case d:
|
|
@@ -8570,44 +8577,44 @@ function requireReactIs_production_min() {
|
|
|
8570
8577
|
case c:
|
|
8571
8578
|
return A;
|
|
8572
8579
|
default:
|
|
8573
|
-
return
|
|
8580
|
+
return C;
|
|
8574
8581
|
}
|
|
8575
8582
|
}
|
|
8576
8583
|
case o:
|
|
8577
|
-
return
|
|
8584
|
+
return C;
|
|
8578
8585
|
}
|
|
8579
8586
|
}
|
|
8580
8587
|
}
|
|
8581
8588
|
function P(A) {
|
|
8582
|
-
return
|
|
8589
|
+
return R(A) === p;
|
|
8583
8590
|
}
|
|
8584
8591
|
return reactIs_production_min.AsyncMode = d, reactIs_production_min.ConcurrentMode = p, reactIs_production_min.ContextConsumer = u, reactIs_production_min.ContextProvider = c, reactIs_production_min.Element = n, reactIs_production_min.ForwardRef = m, reactIs_production_min.Fragment = a, reactIs_production_min.Lazy = x, reactIs_production_min.Memo = b, reactIs_production_min.Portal = o, reactIs_production_min.Profiler = l, reactIs_production_min.StrictMode = i, reactIs_production_min.Suspense = g, reactIs_production_min.isAsyncMode = function(A) {
|
|
8585
|
-
return P(A) ||
|
|
8592
|
+
return P(A) || R(A) === d;
|
|
8586
8593
|
}, reactIs_production_min.isConcurrentMode = P, reactIs_production_min.isContextConsumer = function(A) {
|
|
8587
|
-
return
|
|
8594
|
+
return R(A) === u;
|
|
8588
8595
|
}, reactIs_production_min.isContextProvider = function(A) {
|
|
8589
|
-
return
|
|
8596
|
+
return R(A) === c;
|
|
8590
8597
|
}, reactIs_production_min.isElement = function(A) {
|
|
8591
8598
|
return typeof A == "object" && A !== null && A.$$typeof === n;
|
|
8592
8599
|
}, reactIs_production_min.isForwardRef = function(A) {
|
|
8593
|
-
return
|
|
8600
|
+
return R(A) === m;
|
|
8594
8601
|
}, reactIs_production_min.isFragment = function(A) {
|
|
8595
|
-
return
|
|
8602
|
+
return R(A) === a;
|
|
8596
8603
|
}, reactIs_production_min.isLazy = function(A) {
|
|
8597
|
-
return
|
|
8604
|
+
return R(A) === x;
|
|
8598
8605
|
}, reactIs_production_min.isMemo = function(A) {
|
|
8599
|
-
return
|
|
8606
|
+
return R(A) === b;
|
|
8600
8607
|
}, reactIs_production_min.isPortal = function(A) {
|
|
8601
|
-
return
|
|
8608
|
+
return R(A) === o;
|
|
8602
8609
|
}, reactIs_production_min.isProfiler = function(A) {
|
|
8603
|
-
return
|
|
8610
|
+
return R(A) === l;
|
|
8604
8611
|
}, reactIs_production_min.isStrictMode = function(A) {
|
|
8605
|
-
return
|
|
8612
|
+
return R(A) === i;
|
|
8606
8613
|
}, reactIs_production_min.isSuspense = function(A) {
|
|
8607
|
-
return
|
|
8614
|
+
return R(A) === g;
|
|
8608
8615
|
}, reactIs_production_min.isValidElementType = function(A) {
|
|
8609
8616
|
return typeof A == "string" || typeof A == "function" || A === a || A === p || A === l || A === i || A === g || A === h || typeof A == "object" && A !== null && (A.$$typeof === x || A.$$typeof === b || A.$$typeof === c || A.$$typeof === u || A.$$typeof === m || A.$$typeof === S || A.$$typeof === E || A.$$typeof === w || A.$$typeof === v);
|
|
8610
|
-
}, reactIs_production_min.typeOf =
|
|
8617
|
+
}, reactIs_production_min.typeOf = R, reactIs_production_min;
|
|
8611
8618
|
}
|
|
8612
8619
|
var reactIs_development = {};
|
|
8613
8620
|
/** @license React v16.13.1
|
|
@@ -8622,7 +8629,7 @@ var hasRequiredReactIs_development;
|
|
|
8622
8629
|
function requireReactIs_development() {
|
|
8623
8630
|
return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1, process.env.NODE_ENV !== "production" && function() {
|
|
8624
8631
|
var r = typeof Symbol == "function" && Symbol.for, n = r ? Symbol.for("react.element") : 60103, o = r ? Symbol.for("react.portal") : 60106, a = r ? Symbol.for("react.fragment") : 60107, i = r ? Symbol.for("react.strict_mode") : 60108, l = r ? Symbol.for("react.profiler") : 60114, c = r ? Symbol.for("react.provider") : 60109, u = r ? Symbol.for("react.context") : 60110, d = r ? Symbol.for("react.async_mode") : 60111, p = r ? Symbol.for("react.concurrent_mode") : 60111, m = r ? Symbol.for("react.forward_ref") : 60112, g = r ? Symbol.for("react.suspense") : 60113, h = r ? Symbol.for("react.suspense_list") : 60120, b = r ? Symbol.for("react.memo") : 60115, x = r ? Symbol.for("react.lazy") : 60116, v = r ? Symbol.for("react.block") : 60121, S = r ? Symbol.for("react.fundamental") : 60117, E = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
|
|
8625
|
-
function
|
|
8632
|
+
function R(K) {
|
|
8626
8633
|
return typeof K == "string" || typeof K == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
8627
8634
|
K === a || K === p || K === l || K === i || K === g || K === h || typeof K == "object" && K !== null && (K.$$typeof === x || K.$$typeof === b || K.$$typeof === c || K.$$typeof === u || K.$$typeof === m || K.$$typeof === S || K.$$typeof === E || K.$$typeof === w || K.$$typeof === v);
|
|
8628
8635
|
}
|
|
@@ -8658,7 +8665,7 @@ function requireReactIs_development() {
|
|
|
8658
8665
|
}
|
|
8659
8666
|
}
|
|
8660
8667
|
}
|
|
8661
|
-
var A = d,
|
|
8668
|
+
var A = d, C = p, I = u, j = c, k = n, O = m, T = a, B = x, L = b, D = o, W = l, J = i, F = g, V = !1;
|
|
8662
8669
|
function q(K) {
|
|
8663
8670
|
return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), G(K) || P(K) === d;
|
|
8664
8671
|
}
|
|
@@ -8698,7 +8705,7 @@ function requireReactIs_development() {
|
|
|
8698
8705
|
function se(K) {
|
|
8699
8706
|
return P(K) === g;
|
|
8700
8707
|
}
|
|
8701
|
-
reactIs_development.AsyncMode = A, reactIs_development.ConcurrentMode =
|
|
8708
|
+
reactIs_development.AsyncMode = A, reactIs_development.ConcurrentMode = C, reactIs_development.ContextConsumer = I, reactIs_development.ContextProvider = j, reactIs_development.Element = k, reactIs_development.ForwardRef = O, reactIs_development.Fragment = T, reactIs_development.Lazy = B, reactIs_development.Memo = L, reactIs_development.Portal = D, reactIs_development.Profiler = W, reactIs_development.StrictMode = J, reactIs_development.Suspense = F, reactIs_development.isAsyncMode = q, reactIs_development.isConcurrentMode = G, reactIs_development.isContextConsumer = ee, reactIs_development.isContextProvider = z, reactIs_development.isElement = U, reactIs_development.isForwardRef = te, reactIs_development.isFragment = _, reactIs_development.isLazy = Q, reactIs_development.isMemo = ne, reactIs_development.isPortal = re, reactIs_development.isProfiler = $, reactIs_development.isStrictMode = ae, reactIs_development.isSuspense = se, reactIs_development.isValidElementType = R, reactIs_development.typeOf = P;
|
|
8702
8709
|
}()), reactIs_development;
|
|
8703
8710
|
}
|
|
8704
8711
|
process.env.NODE_ENV === "production" ? reactIs$1.exports = requireReactIs_production_min() : reactIs$1.exports = requireReactIs_development();
|
|
@@ -10734,7 +10741,7 @@ function useMove(r, n, o = "ltr") {
|
|
|
10734
10741
|
return useEffect$1(() => {
|
|
10735
10742
|
i.current = !0;
|
|
10736
10743
|
}, []), useEffect$1(() => {
|
|
10737
|
-
const p = ({ x: w, y:
|
|
10744
|
+
const p = ({ x: w, y: R }) => {
|
|
10738
10745
|
cancelAnimationFrame(c.current), c.current = requestAnimationFrame(() => {
|
|
10739
10746
|
if (i.current && a.current) {
|
|
10740
10747
|
a.current.style.userSelect = "none";
|
|
@@ -10743,7 +10750,7 @@ function useMove(r, n, o = "ltr") {
|
|
|
10743
10750
|
const A = clamp$1((w - P.left) / P.width, 0, 1);
|
|
10744
10751
|
r({
|
|
10745
10752
|
x: o === "ltr" ? A : 1 - A,
|
|
10746
|
-
y: clamp$1((
|
|
10753
|
+
y: clamp$1((R - P.top) / P.height, 0, 1)
|
|
10747
10754
|
});
|
|
10748
10755
|
}
|
|
10749
10756
|
}
|
|
@@ -10860,7 +10867,7 @@ function useScrollIntoView({
|
|
|
10860
10867
|
}, x = useCallback$1(({ alignment: S = "start" } = {}) => {
|
|
10861
10868
|
var E;
|
|
10862
10869
|
p.current = !1, u.current && b();
|
|
10863
|
-
const w = (E = getScrollStart({ parent: m.current, axis: n })) != null ? E : 0,
|
|
10870
|
+
const w = (E = getScrollStart({ parent: m.current, axis: n })) != null ? E : 0, R = getRelativePosition({
|
|
10864
10871
|
parent: m.current,
|
|
10865
10872
|
target: g.current,
|
|
10866
10873
|
axis: n,
|
|
@@ -10870,7 +10877,7 @@ function useScrollIntoView({
|
|
|
10870
10877
|
}) - (m.current ? 0 : w);
|
|
10871
10878
|
function P() {
|
|
10872
10879
|
d.current === 0 && (d.current = performance.now());
|
|
10873
|
-
const
|
|
10880
|
+
const C = performance.now() - d.current, I = h || r === 0 ? 1 : C / r, j = w + R * a(I);
|
|
10874
10881
|
setScrollParam({
|
|
10875
10882
|
parent: m.current,
|
|
10876
10883
|
axis: n,
|
|
@@ -10932,10 +10939,10 @@ function extractSystemStyles(r) {
|
|
|
10932
10939
|
bg: S,
|
|
10933
10940
|
c: E,
|
|
10934
10941
|
opacity: w,
|
|
10935
|
-
ff:
|
|
10942
|
+
ff: R,
|
|
10936
10943
|
fz: P,
|
|
10937
10944
|
fw: A,
|
|
10938
|
-
lts:
|
|
10945
|
+
lts: C,
|
|
10939
10946
|
ta: I,
|
|
10940
10947
|
lh: j,
|
|
10941
10948
|
fs: k,
|
|
@@ -11021,10 +11028,10 @@ function extractSystemStyles(r) {
|
|
|
11021
11028
|
bg: S,
|
|
11022
11029
|
c: E,
|
|
11023
11030
|
opacity: w,
|
|
11024
|
-
ff:
|
|
11031
|
+
ff: R,
|
|
11025
11032
|
fz: P,
|
|
11026
11033
|
fw: A,
|
|
11027
|
-
lts:
|
|
11034
|
+
lts: C,
|
|
11028
11035
|
ta: I,
|
|
11029
11036
|
lh: j,
|
|
11030
11037
|
fs: k,
|
|
@@ -11321,11 +11328,11 @@ function useCollapse({
|
|
|
11321
11328
|
};
|
|
11322
11329
|
function b(x = {}) {
|
|
11323
11330
|
var v = x, { style: S = {}, refKey: E = "ref" } = v, w = __objRest$X(v, ["style", "refKey"]);
|
|
11324
|
-
const
|
|
11331
|
+
const R = w[E];
|
|
11325
11332
|
return __spreadProps$L(__spreadValues$1i({
|
|
11326
11333
|
"aria-hidden": !a
|
|
11327
11334
|
}, w), {
|
|
11328
|
-
[E]: mergeRefs(i,
|
|
11335
|
+
[E]: mergeRefs(i, R),
|
|
11329
11336
|
onTransitionEnd: h,
|
|
11330
11337
|
style: __spreadValues$1i(__spreadValues$1i({ boxSizing: "border-box" }, S), u)
|
|
11331
11338
|
});
|
|
@@ -11846,7 +11853,7 @@ const defaultProps$C = {
|
|
|
11846
11853
|
"loading",
|
|
11847
11854
|
"unstyled",
|
|
11848
11855
|
"__staticSelector"
|
|
11849
|
-
]), { classes: S, cx: E, theme: w } = useStyles$I({ radius: c, color: i, gradient: p }, { name: ["ActionIcon", x], unstyled: b, size: u, variant: d }),
|
|
11856
|
+
]), { classes: S, cx: E, theme: w } = useStyles$I({ radius: c, color: i, gradient: p }, { name: ["ActionIcon", x], unstyled: b, size: u, variant: d }), R = /* @__PURE__ */ React__default.createElement(Loader, __spreadValues$1a({
|
|
11850
11857
|
color: w.fn.variant({ color: i, variant: d }).color,
|
|
11851
11858
|
size: "100%",
|
|
11852
11859
|
"data-action-icon-loader": !0
|
|
@@ -11858,7 +11865,7 @@ const defaultProps$C = {
|
|
|
11858
11865
|
"data-disabled": m || void 0,
|
|
11859
11866
|
"data-loading": h || void 0,
|
|
11860
11867
|
unstyled: b
|
|
11861
|
-
}, v), h ?
|
|
11868
|
+
}, v), h ? R : l);
|
|
11862
11869
|
});
|
|
11863
11870
|
_ActionIcon.displayName = "@mantine/core/ActionIcon";
|
|
11864
11871
|
const ActionIcon = _ActionIcon;
|
|
@@ -12089,10 +12096,10 @@ const defaultProps$A = {
|
|
|
12089
12096
|
strikethrough: S,
|
|
12090
12097
|
italic: E,
|
|
12091
12098
|
classNames: w,
|
|
12092
|
-
styles:
|
|
12099
|
+
styles: R,
|
|
12093
12100
|
unstyled: P,
|
|
12094
12101
|
span: A,
|
|
12095
|
-
__staticSelector:
|
|
12102
|
+
__staticSelector: C
|
|
12096
12103
|
} = o, I = __objRest$L(o, [
|
|
12097
12104
|
"className",
|
|
12098
12105
|
"size",
|
|
@@ -12127,7 +12134,7 @@ const defaultProps$A = {
|
|
|
12127
12134
|
transform: c,
|
|
12128
12135
|
align: d,
|
|
12129
12136
|
gradient: h
|
|
12130
|
-
}, { unstyled: P, name:
|
|
12137
|
+
}, { unstyled: P, name: C || "Text", variant: p, size: i });
|
|
12131
12138
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$14({
|
|
12132
12139
|
ref: n,
|
|
12133
12140
|
className: k(j.root, { [j.gradient]: p === "gradient" }, a),
|
|
@@ -12290,16 +12297,16 @@ const defaultProps$y = {
|
|
|
12290
12297
|
"styles",
|
|
12291
12298
|
"classNames",
|
|
12292
12299
|
"unstyled"
|
|
12293
|
-
]), { classes: v, cx: S } = useStyles$F({ color: i }, { classNames: h, styles: g, unstyled: b, name: "Divider", variant: m, size: c }), E = l === "vertical", w = l === "horizontal",
|
|
12300
|
+
]), { classes: v, cx: S } = useStyles$F({ color: i }, { classNames: h, styles: g, unstyled: b, name: "Divider", variant: m, size: c }), E = l === "vertical", w = l === "horizontal", R = !!u && w, P = !(p != null && p.color);
|
|
12294
12301
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$11({
|
|
12295
12302
|
ref: n,
|
|
12296
12303
|
className: S(v.root, {
|
|
12297
12304
|
[v.vertical]: E,
|
|
12298
12305
|
[v.horizontal]: w,
|
|
12299
|
-
[v.withLabel]:
|
|
12306
|
+
[v.withLabel]: R
|
|
12300
12307
|
}, a),
|
|
12301
12308
|
role: "separator"
|
|
12302
|
-
}, x),
|
|
12309
|
+
}, x), R && /* @__PURE__ */ React__default.createElement(Text, __spreadProps$H(__spreadValues$11({}, p), {
|
|
12303
12310
|
size: (p == null ? void 0 : p.size) || "xs",
|
|
12304
12311
|
mt: rem(2),
|
|
12305
12312
|
className: S(v.label, v[d], {
|
|
@@ -12394,7 +12401,7 @@ function SelectItems({
|
|
|
12394
12401
|
name: c,
|
|
12395
12402
|
variant: S,
|
|
12396
12403
|
size: g
|
|
12397
|
-
}), w = [],
|
|
12404
|
+
}), w = [], R = [];
|
|
12398
12405
|
let P = null;
|
|
12399
12406
|
const A = (I, j) => {
|
|
12400
12407
|
const k = typeof i == "function" ? i(I.value) : !1;
|
|
@@ -12420,15 +12427,15 @@ function SelectItems({
|
|
|
12420
12427
|
variant: S
|
|
12421
12428
|
}, I));
|
|
12422
12429
|
};
|
|
12423
|
-
let
|
|
12430
|
+
let C = null;
|
|
12424
12431
|
if (r.forEach((I, j) => {
|
|
12425
|
-
I.creatable ? P = j : I.group ? (
|
|
12432
|
+
I.creatable ? P = j : I.group ? (C !== I.group && (C = I.group, R.push(/* @__PURE__ */ React__default.createElement("div", {
|
|
12426
12433
|
className: E.separator,
|
|
12427
12434
|
key: `__mantine-divider-${j}`
|
|
12428
12435
|
}, /* @__PURE__ */ React__default.createElement(Divider, {
|
|
12429
12436
|
classNames: { label: E.separatorLabel },
|
|
12430
12437
|
label: I.group
|
|
12431
|
-
})))),
|
|
12438
|
+
})))), R.push(A(I, j))) : w.push(A(I, j));
|
|
12432
12439
|
}), b) {
|
|
12433
12440
|
const I = r[P];
|
|
12434
12441
|
w.push(/* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -12445,10 +12452,10 @@ function SelectItems({
|
|
|
12445
12452
|
}
|
|
12446
12453
|
}, x));
|
|
12447
12454
|
}
|
|
12448
|
-
return
|
|
12455
|
+
return R.length > 0 && w.length > 0 && w.unshift(/* @__PURE__ */ React__default.createElement("div", {
|
|
12449
12456
|
className: E.separator,
|
|
12450
12457
|
key: "empty-group-separator"
|
|
12451
|
-
}, /* @__PURE__ */ React__default.createElement(Divider, null))),
|
|
12458
|
+
}, /* @__PURE__ */ React__default.createElement(Divider, null))), R.length > 0 || w.length > 0 ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, R, w) : /* @__PURE__ */ React__default.createElement(Text, {
|
|
12452
12459
|
size: g,
|
|
12453
12460
|
unstyled: v,
|
|
12454
12461
|
className: E.nothingFound
|
|
@@ -12592,7 +12599,7 @@ const defaultProps$x = {
|
|
|
12592
12599
|
"unstyled",
|
|
12593
12600
|
"variant",
|
|
12594
12601
|
"viewportProps"
|
|
12595
|
-
]), [w,
|
|
12602
|
+
]), [w, R] = useState$1(!1), P = useMantineTheme(), { classes: A, cx: C } = useStyles$D({ scrollbarSize: u, offsetScrollbars: g, scrollbarHovered: w, hidden: p === "never" }, { name: "ScrollArea", classNames: l, styles: c, unstyled: x, variant: v });
|
|
12596
12603
|
return /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Root, {
|
|
12597
12604
|
type: p === "never" ? "always" : p,
|
|
12598
12605
|
scrollHideDelay: d,
|
|
@@ -12600,7 +12607,7 @@ const defaultProps$x = {
|
|
|
12600
12607
|
ref: n,
|
|
12601
12608
|
asChild: !0
|
|
12602
12609
|
}, /* @__PURE__ */ React__default.createElement(Box, __spreadValues$Z({
|
|
12603
|
-
className:
|
|
12610
|
+
className: C(A.root, i)
|
|
12604
12611
|
}, E), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Viewport, __spreadProps$F(__spreadValues$Z({}, S), {
|
|
12605
12612
|
className: A.viewport,
|
|
12606
12613
|
ref: h,
|
|
@@ -12612,16 +12619,16 @@ const defaultProps$x = {
|
|
|
12612
12619
|
orientation: "horizontal",
|
|
12613
12620
|
className: A.scrollbar,
|
|
12614
12621
|
forceMount: !0,
|
|
12615
|
-
onMouseEnter: () =>
|
|
12616
|
-
onMouseLeave: () =>
|
|
12622
|
+
onMouseEnter: () => R(!0),
|
|
12623
|
+
onMouseLeave: () => R(!1)
|
|
12617
12624
|
}, /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Thumb, {
|
|
12618
12625
|
className: A.thumb
|
|
12619
12626
|
})), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Scrollbar, {
|
|
12620
12627
|
orientation: "vertical",
|
|
12621
12628
|
className: A.scrollbar,
|
|
12622
12629
|
forceMount: !0,
|
|
12623
|
-
onMouseEnter: () =>
|
|
12624
|
-
onMouseLeave: () =>
|
|
12630
|
+
onMouseEnter: () => R(!0),
|
|
12631
|
+
onMouseLeave: () => R(!1)
|
|
12625
12632
|
}, /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Thumb, {
|
|
12626
12633
|
className: A.thumb
|
|
12627
12634
|
})), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Corner, {
|
|
@@ -12822,7 +12829,7 @@ const useHover = function(r, n) {
|
|
|
12822
12829
|
floating: b
|
|
12823
12830
|
},
|
|
12824
12831
|
refs: x
|
|
12825
|
-
} = r, v = useFloatingTree(), S = useFloatingParentNodeId(), E = useLatestRef(i), w = useLatestRef(a),
|
|
12832
|
+
} = r, v = useFloatingTree(), S = useFloatingParentNodeId(), E = useLatestRef(i), w = useLatestRef(a), R = React.useRef(), P = React.useRef(), A = React.useRef(), C = React.useRef(), I = React.useRef(!0), j = React.useRef(!1), k = React.useRef(() => {
|
|
12826
12833
|
}), O = React.useCallback(() => {
|
|
12827
12834
|
var D;
|
|
12828
12835
|
const W = (D = m.current.openEvent) == null ? void 0 : D.type;
|
|
@@ -12832,7 +12839,7 @@ const useHover = function(r, n) {
|
|
|
12832
12839
|
if (!o)
|
|
12833
12840
|
return;
|
|
12834
12841
|
function D() {
|
|
12835
|
-
clearTimeout(P.current), clearTimeout(
|
|
12842
|
+
clearTimeout(P.current), clearTimeout(C.current), I.current = !0;
|
|
12836
12843
|
}
|
|
12837
12844
|
return g.on("dismiss", D), () => {
|
|
12838
12845
|
g.off("dismiss", D);
|
|
@@ -12850,7 +12857,7 @@ const useHover = function(r, n) {
|
|
|
12850
12857
|
}, [b, d, p, o, E, m, O]);
|
|
12851
12858
|
const T = React.useCallback(function(D) {
|
|
12852
12859
|
D === void 0 && (D = !0);
|
|
12853
|
-
const W = getDelay(w.current, "close",
|
|
12860
|
+
const W = getDelay(w.current, "close", R.current);
|
|
12854
12861
|
W && !A.current ? (clearTimeout(P.current), P.current = setTimeout(() => p(!1), W)) : D && (clearTimeout(P.current), p(!1));
|
|
12855
12862
|
}, [w, p]), B = React.useCallback(() => {
|
|
12856
12863
|
k.current(), A.current = void 0;
|
|
@@ -12867,10 +12874,10 @@ const useHover = function(r, n) {
|
|
|
12867
12874
|
return m.current.openEvent ? ["click", "mousedown"].includes(m.current.openEvent.type) : !1;
|
|
12868
12875
|
}
|
|
12869
12876
|
function W(V) {
|
|
12870
|
-
if (clearTimeout(P.current), I.current = !1, l && !isMouseLikePointerType(
|
|
12877
|
+
if (clearTimeout(P.current), I.current = !1, l && !isMouseLikePointerType(R.current) || c > 0 && getDelay(w.current, "open") === 0)
|
|
12871
12878
|
return;
|
|
12872
12879
|
m.current.openEvent = V;
|
|
12873
|
-
const q = getDelay(w.current, "open",
|
|
12880
|
+
const q = getDelay(w.current, "open", R.current);
|
|
12874
12881
|
q ? P.current = setTimeout(() => {
|
|
12875
12882
|
p(!0);
|
|
12876
12883
|
}, q) : p(!0);
|
|
@@ -12880,7 +12887,7 @@ const useHover = function(r, n) {
|
|
|
12880
12887
|
return;
|
|
12881
12888
|
k.current();
|
|
12882
12889
|
const q = getDocument(b);
|
|
12883
|
-
if (clearTimeout(
|
|
12890
|
+
if (clearTimeout(C.current), E.current) {
|
|
12884
12891
|
d || clearTimeout(P.current), A.current = E.current({
|
|
12885
12892
|
...r,
|
|
12886
12893
|
tree: v,
|
|
@@ -12930,21 +12937,21 @@ const useHover = function(r, n) {
|
|
|
12930
12937
|
}
|
|
12931
12938
|
}
|
|
12932
12939
|
}, [o, d, S, b, h, v, E, m, O]), index(() => {
|
|
12933
|
-
d || (
|
|
12940
|
+
d || (R.current = void 0, B(), L());
|
|
12934
12941
|
}, [d, B, L]), React.useEffect(() => () => {
|
|
12935
|
-
B(), clearTimeout(P.current), clearTimeout(
|
|
12942
|
+
B(), clearTimeout(P.current), clearTimeout(C.current), L();
|
|
12936
12943
|
}, [o, B, L]), React.useMemo(() => {
|
|
12937
12944
|
if (!o)
|
|
12938
12945
|
return {};
|
|
12939
12946
|
function D(W) {
|
|
12940
|
-
|
|
12947
|
+
R.current = W.pointerType;
|
|
12941
12948
|
}
|
|
12942
12949
|
return {
|
|
12943
12950
|
reference: {
|
|
12944
12951
|
onPointerDown: D,
|
|
12945
12952
|
onPointerEnter: D,
|
|
12946
12953
|
onMouseMove() {
|
|
12947
|
-
d || c === 0 || (clearTimeout(
|
|
12954
|
+
d || c === 0 || (clearTimeout(C.current), C.current = setTimeout(() => {
|
|
12948
12955
|
I.current || p(!0);
|
|
12949
12956
|
}, c));
|
|
12950
12957
|
}
|
|
@@ -13147,7 +13154,7 @@ const bubbleHandlerKeys = {
|
|
|
13147
13154
|
ancestorScroll: S = !1,
|
|
13148
13155
|
bubbles: E = !0
|
|
13149
13156
|
} = n === void 0 ? {} : n;
|
|
13150
|
-
const w = useFloatingTree(),
|
|
13157
|
+
const w = useFloatingTree(), R = useFloatingParentNodeId() != null, P = useEvent(typeof h == "function" ? h : () => !1), A = typeof h == "function" ? P : h, C = React.useRef(!1), {
|
|
13151
13158
|
escapeKeyBubbles: I,
|
|
13152
13159
|
outsidePressBubbles: j
|
|
13153
13160
|
} = normalizeBubblesProp(E);
|
|
@@ -13180,8 +13187,8 @@ const bubbleHandlerKeys = {
|
|
|
13180
13187
|
}
|
|
13181
13188
|
}
|
|
13182
13189
|
function O(D) {
|
|
13183
|
-
const W =
|
|
13184
|
-
if (
|
|
13190
|
+
const W = C.current;
|
|
13191
|
+
if (C.current = !1, W || typeof A == "function" && !A(D))
|
|
13185
13192
|
return;
|
|
13186
13193
|
const J = getTarget(D);
|
|
13187
13194
|
if (isHTMLElement(J) && d) {
|
|
@@ -13211,7 +13218,7 @@ const bubbleHandlerKeys = {
|
|
|
13211
13218
|
i.emit("dismiss", {
|
|
13212
13219
|
type: "outsidePress",
|
|
13213
13220
|
data: {
|
|
13214
|
-
returnFocus:
|
|
13221
|
+
returnFocus: R ? {
|
|
13215
13222
|
preventScroll: !0
|
|
13216
13223
|
} : isVirtualClick(D) || isVirtualPointerEvent(D)
|
|
13217
13224
|
}
|
|
@@ -13235,8 +13242,8 @@ const bubbleHandlerKeys = {
|
|
|
13235
13242
|
D.removeEventListener("scroll", T);
|
|
13236
13243
|
});
|
|
13237
13244
|
};
|
|
13238
|
-
}, [p, d, u, c, g, A, b, i, w, l, o, a, S, m, I, j,
|
|
13239
|
-
|
|
13245
|
+
}, [p, d, u, c, g, A, b, i, w, l, o, a, S, m, I, j, R]), React.useEffect(() => {
|
|
13246
|
+
C.current = !1;
|
|
13240
13247
|
}, [A, b]), React.useMemo(() => m ? {
|
|
13241
13248
|
reference: {
|
|
13242
13249
|
[bubbleHandlerKeys[v]]: () => {
|
|
@@ -13250,7 +13257,7 @@ const bubbleHandlerKeys = {
|
|
|
13250
13257
|
},
|
|
13251
13258
|
floating: {
|
|
13252
13259
|
[captureHandlerKeys[b]]: () => {
|
|
13253
|
-
|
|
13260
|
+
C.current = !0;
|
|
13254
13261
|
}
|
|
13255
13262
|
}
|
|
13256
13263
|
} : {}, [m, i, x, b, v, a]);
|
|
@@ -13624,17 +13631,17 @@ function useTransition({
|
|
|
13624
13631
|
onExited: u
|
|
13625
13632
|
}) {
|
|
13626
13633
|
const d = useMantineTheme(), p = useReducedMotion(), m = d.respectReducedMotion ? p : !1, [g, h] = useState$1(m ? 0 : r), [b, x] = useState$1(a ? "entered" : "exited"), v = useRef$1(-1), S = (E) => {
|
|
13627
|
-
const w = E ? i : l,
|
|
13634
|
+
const w = E ? i : l, R = E ? c : u;
|
|
13628
13635
|
x(E ? "pre-entering" : "pre-exiting"), window.clearTimeout(v.current);
|
|
13629
13636
|
const P = m ? 0 : E ? r : n;
|
|
13630
13637
|
if (h(P), P === 0)
|
|
13631
|
-
typeof w == "function" && w(), typeof
|
|
13638
|
+
typeof w == "function" && w(), typeof R == "function" && R(), x(E ? "entered" : "exited");
|
|
13632
13639
|
else {
|
|
13633
13640
|
const A = window.setTimeout(() => {
|
|
13634
13641
|
typeof w == "function" && w(), x(E ? "entering" : "exiting");
|
|
13635
13642
|
}, 10);
|
|
13636
13643
|
v.current = window.setTimeout(() => {
|
|
13637
|
-
window.clearTimeout(A), typeof
|
|
13644
|
+
window.clearTimeout(A), typeof R == "function" && R(), x(E ? "entered" : "exited");
|
|
13638
13645
|
}, P);
|
|
13639
13646
|
}
|
|
13640
13647
|
};
|
|
@@ -13920,10 +13927,10 @@ function Popover(r) {
|
|
|
13920
13927
|
width: S,
|
|
13921
13928
|
middlewares: E,
|
|
13922
13929
|
withArrow: w,
|
|
13923
|
-
arrowSize:
|
|
13930
|
+
arrowSize: R,
|
|
13924
13931
|
arrowOffset: P,
|
|
13925
13932
|
arrowRadius: A,
|
|
13926
|
-
arrowPosition:
|
|
13933
|
+
arrowPosition: C,
|
|
13927
13934
|
unstyled: I,
|
|
13928
13935
|
classNames: j,
|
|
13929
13936
|
styles: k,
|
|
@@ -13989,7 +13996,7 @@ function Popover(r) {
|
|
|
13989
13996
|
middlewares: E,
|
|
13990
13997
|
width: S,
|
|
13991
13998
|
position: getFloatingPosition(Te.dir, m),
|
|
13992
|
-
offset: typeof g == "number" ? g + (w ?
|
|
13999
|
+
offset: typeof g == "number" ? g + (w ? R / 2 : 0) : g,
|
|
13993
14000
|
arrowRef: u,
|
|
13994
14001
|
arrowOffset: P,
|
|
13995
14002
|
onPositionChange: h,
|
|
@@ -14022,10 +14029,10 @@ function Popover(r) {
|
|
|
14022
14029
|
transitionProps: v,
|
|
14023
14030
|
width: S,
|
|
14024
14031
|
withArrow: w,
|
|
14025
|
-
arrowSize:
|
|
14032
|
+
arrowSize: R,
|
|
14026
14033
|
arrowOffset: P,
|
|
14027
14034
|
arrowRadius: A,
|
|
14028
|
-
arrowPosition:
|
|
14035
|
+
arrowPosition: C,
|
|
14029
14036
|
placement: be.floating.placement,
|
|
14030
14037
|
trapFocus: W,
|
|
14031
14038
|
withinPortal: T,
|
|
@@ -14188,10 +14195,10 @@ function useInputProps(r, n, o) {
|
|
|
14188
14195
|
descriptionProps: S,
|
|
14189
14196
|
wrapperProps: E,
|
|
14190
14197
|
id: w,
|
|
14191
|
-
size:
|
|
14198
|
+
size: R,
|
|
14192
14199
|
style: P,
|
|
14193
14200
|
inputContainer: A,
|
|
14194
|
-
inputWrapperOrder:
|
|
14201
|
+
inputWrapperOrder: C,
|
|
14195
14202
|
withAsterisk: I,
|
|
14196
14203
|
variant: j
|
|
14197
14204
|
} = a, k = __objRest$A(a, [
|
|
@@ -14231,10 +14238,10 @@ function useInputProps(r, n, o) {
|
|
|
14231
14238
|
unstyled: g,
|
|
14232
14239
|
styles: p,
|
|
14233
14240
|
id: O,
|
|
14234
|
-
size:
|
|
14241
|
+
size: R,
|
|
14235
14242
|
style: P,
|
|
14236
14243
|
inputContainer: A,
|
|
14237
|
-
inputWrapperOrder:
|
|
14244
|
+
inputWrapperOrder: C,
|
|
14238
14245
|
withAsterisk: I,
|
|
14239
14246
|
variant: j
|
|
14240
14247
|
}, E);
|
|
@@ -14249,7 +14256,7 @@ function useInputProps(r, n, o) {
|
|
|
14249
14256
|
styles: p,
|
|
14250
14257
|
unstyled: g,
|
|
14251
14258
|
id: O,
|
|
14252
|
-
size:
|
|
14259
|
+
size: R,
|
|
14253
14260
|
__staticSelector: h,
|
|
14254
14261
|
error: c,
|
|
14255
14262
|
variant: j
|
|
@@ -14516,10 +14523,10 @@ const defaultProps$q = {
|
|
|
14516
14523
|
size: S,
|
|
14517
14524
|
inputContainer: E,
|
|
14518
14525
|
__staticSelector: w,
|
|
14519
|
-
unstyled:
|
|
14526
|
+
unstyled: R,
|
|
14520
14527
|
inputWrapperOrder: P,
|
|
14521
14528
|
withAsterisk: A,
|
|
14522
|
-
variant:
|
|
14529
|
+
variant: C
|
|
14523
14530
|
} = o, I = __objRest$w(o, [
|
|
14524
14531
|
"className",
|
|
14525
14532
|
"label",
|
|
@@ -14545,15 +14552,15 @@ const defaultProps$q = {
|
|
|
14545
14552
|
classNames: x,
|
|
14546
14553
|
styles: v,
|
|
14547
14554
|
name: ["InputWrapper", w],
|
|
14548
|
-
unstyled:
|
|
14549
|
-
variant:
|
|
14555
|
+
unstyled: R,
|
|
14556
|
+
variant: C,
|
|
14550
14557
|
size: S
|
|
14551
14558
|
}), O = {
|
|
14552
14559
|
classNames: x,
|
|
14553
14560
|
styles: v,
|
|
14554
|
-
unstyled:
|
|
14561
|
+
unstyled: R,
|
|
14555
14562
|
size: S,
|
|
14556
|
-
variant:
|
|
14563
|
+
variant: C,
|
|
14557
14564
|
__staticSelector: w
|
|
14558
14565
|
}, T = typeof A == "boolean" ? A : c, B = u ? `${u}-error` : b == null ? void 0 : b.id, L = u ? `${u}-description` : h == null ? void 0 : h.id, W = `${!!d && typeof d != "boolean" ? B : ""} ${p ? L : ""}`, J = W.trim().length > 0 ? W.trim() : void 0, F = i && /* @__PURE__ */ React__default.createElement(InputLabel, __spreadValues$M(__spreadValues$M({
|
|
14559
14566
|
key: "label",
|
|
@@ -14809,10 +14816,10 @@ const defaultProps$o = {
|
|
|
14809
14816
|
wrapperProps: S,
|
|
14810
14817
|
classNames: E,
|
|
14811
14818
|
styles: w,
|
|
14812
|
-
__staticSelector:
|
|
14819
|
+
__staticSelector: R,
|
|
14813
14820
|
multiline: P,
|
|
14814
14821
|
sx: A,
|
|
14815
|
-
unstyled:
|
|
14822
|
+
unstyled: C,
|
|
14816
14823
|
pointer: I
|
|
14817
14824
|
} = o, j = __objRest$u(o, [
|
|
14818
14825
|
"className",
|
|
@@ -14846,7 +14853,7 @@ const defaultProps$o = {
|
|
|
14846
14853
|
offsetBottom: k,
|
|
14847
14854
|
offsetTop: O,
|
|
14848
14855
|
pointer: I
|
|
14849
|
-
}, { classNames: E, styles: w, name: ["Input",
|
|
14856
|
+
}, { classNames: E, styles: w, name: ["Input", R], unstyled: C, variant: u, size: v }), { systemStyles: D, rest: W } = extractSystemStyles(j);
|
|
14850
14857
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$J(__spreadValues$J({
|
|
14851
14858
|
className: L(B.wrapper, a),
|
|
14852
14859
|
sx: A,
|
|
@@ -15243,10 +15250,10 @@ const defaultProps$l = {
|
|
|
15243
15250
|
loading: S,
|
|
15244
15251
|
loaderPosition: E,
|
|
15245
15252
|
loaderProps: w,
|
|
15246
|
-
gradient:
|
|
15253
|
+
gradient: R,
|
|
15247
15254
|
classNames: P,
|
|
15248
15255
|
styles: A,
|
|
15249
|
-
unstyled:
|
|
15256
|
+
unstyled: C
|
|
15250
15257
|
} = o, I = __objRest$r(o, [
|
|
15251
15258
|
"className",
|
|
15252
15259
|
"size",
|
|
@@ -15273,10 +15280,10 @@ const defaultProps$l = {
|
|
|
15273
15280
|
color: l,
|
|
15274
15281
|
fullWidth: g,
|
|
15275
15282
|
compact: v,
|
|
15276
|
-
gradient:
|
|
15283
|
+
gradient: R,
|
|
15277
15284
|
withLeftIcon: !!p,
|
|
15278
15285
|
withRightIcon: !!m
|
|
15279
|
-
}, { name: "Button", unstyled:
|
|
15286
|
+
}, { name: "Button", unstyled: C, classNames: P, styles: A, variant: h, size: i }), T = O.fn.variant({ color: l, variant: h }), B = /* @__PURE__ */ React__default.createElement(Loader, __spreadValues$E({
|
|
15280
15287
|
color: T.color,
|
|
15281
15288
|
size: `calc(${getSize({ size: i, sizes: sizes$1 }).height} / 2)`
|
|
15282
15289
|
}, w));
|
|
@@ -15288,7 +15295,7 @@ const defaultProps$l = {
|
|
|
15288
15295
|
"data-disabled": u || void 0,
|
|
15289
15296
|
"data-loading": S || void 0,
|
|
15290
15297
|
ref: n,
|
|
15291
|
-
unstyled:
|
|
15298
|
+
unstyled: C
|
|
15292
15299
|
}, I), /* @__PURE__ */ React__default.createElement("div", {
|
|
15293
15300
|
className: j.inner
|
|
15294
15301
|
}, (p || S && E === "left") && /* @__PURE__ */ React__default.createElement("span", {
|
|
@@ -15434,10 +15441,10 @@ const defaultProps$j = {
|
|
|
15434
15441
|
"unstyled",
|
|
15435
15442
|
"center",
|
|
15436
15443
|
"fixed"
|
|
15437
|
-
]), { classes: w, cx:
|
|
15444
|
+
]), { classes: w, cx: R } = useStyles$p({ color: l, opacity: i, blur: c, radius: p, gradient: u, fixed: S, zIndex: d }, { name: "Overlay", classNames: h, styles: b, unstyled: x, variant: a });
|
|
15438
15445
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$A({
|
|
15439
15446
|
ref: n,
|
|
15440
|
-
className:
|
|
15447
|
+
className: R(w.root, g),
|
|
15441
15448
|
"data-center": v || void 0
|
|
15442
15449
|
}, E), m);
|
|
15443
15450
|
});
|
|
@@ -15677,7 +15684,7 @@ const defaultProps$g = {
|
|
|
15677
15684
|
zIndex: S,
|
|
15678
15685
|
unstyled: E,
|
|
15679
15686
|
processing: w,
|
|
15680
|
-
variant:
|
|
15687
|
+
variant: R
|
|
15681
15688
|
} = o, P = __objRest$m(o, [
|
|
15682
15689
|
"children",
|
|
15683
15690
|
"position",
|
|
@@ -15696,14 +15703,14 @@ const defaultProps$g = {
|
|
|
15696
15703
|
"unstyled",
|
|
15697
15704
|
"processing",
|
|
15698
15705
|
"variant"
|
|
15699
|
-
]), { classes: A, cx:
|
|
15706
|
+
]), { classes: A, cx: C } = useStyles$m({ position: i, offset: l, radius: u, inline: d, color: g, withBorder: p, zIndex: S, withLabel: !!b }, { name: "Indicator", classNames: x, styles: h, unstyled: E, variant: R, size: c });
|
|
15700
15707
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$w({
|
|
15701
15708
|
ref: n,
|
|
15702
|
-
className:
|
|
15709
|
+
className: C(A.root, m)
|
|
15703
15710
|
}, P), !v && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
15704
|
-
className:
|
|
15711
|
+
className: C(A.indicator, A.common)
|
|
15705
15712
|
}, b), w && /* @__PURE__ */ React__default.createElement("div", {
|
|
15706
|
-
className:
|
|
15713
|
+
className: C(A.processing, A.common)
|
|
15707
15714
|
})), a);
|
|
15708
15715
|
});
|
|
15709
15716
|
Indicator.displayName = "@mantine/core/Indicator";
|
|
@@ -15773,10 +15780,10 @@ const defaultProps$f = {}, ListItem = forwardRef$1((r, n) => {
|
|
|
15773
15780
|
styles: x,
|
|
15774
15781
|
unstyled: v,
|
|
15775
15782
|
variant: S
|
|
15776
|
-
} = useListContext(), E = l || u, { classes: w, cx:
|
|
15783
|
+
} = useListContext(), E = l || u, { classes: w, cx: R } = useStyles$l({ withPadding: h, listStyleType: m, center: p, spacing: d }, { classNames: b, styles: x, unstyled: v, name: "List", variant: S, size: g });
|
|
15777
15784
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$v({
|
|
15778
15785
|
component: "li",
|
|
15779
|
-
className:
|
|
15786
|
+
className: R(w.item, a),
|
|
15780
15787
|
"data-with-icon": !!E || void 0,
|
|
15781
15788
|
ref: n
|
|
15782
15789
|
}, c), /* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -15942,7 +15949,7 @@ const defaultProps$d = {
|
|
|
15942
15949
|
"unstyled",
|
|
15943
15950
|
"variant",
|
|
15944
15951
|
"keepMounted"
|
|
15945
|
-
]), { classes:
|
|
15952
|
+
]), { classes: R, cx: P, theme: A } = useStyles$j(null, { name: "LoadingOverlay", unstyled: v, variant: S }), C = `calc(${m} + 1)`;
|
|
15946
15953
|
return /* @__PURE__ */ React__default.createElement(Transition, {
|
|
15947
15954
|
keepMounted: E,
|
|
15948
15955
|
duration: d,
|
|
@@ -15950,13 +15957,13 @@ const defaultProps$d = {
|
|
|
15950
15957
|
mounted: i,
|
|
15951
15958
|
transition: "fade"
|
|
15952
15959
|
}, (I) => /* @__PURE__ */ React__default.createElement(Box, __spreadValues$r({
|
|
15953
|
-
className: P(
|
|
15960
|
+
className: P(R.root, a),
|
|
15954
15961
|
style: __spreadProps$m(__spreadValues$r(__spreadValues$r({}, I), g), { zIndex: m }),
|
|
15955
15962
|
ref: n
|
|
15956
15963
|
}, w), h ? /* @__PURE__ */ React__default.createElement("div", {
|
|
15957
|
-
style: { zIndex:
|
|
15964
|
+
style: { zIndex: C }
|
|
15958
15965
|
}, h) : /* @__PURE__ */ React__default.createElement(Loader, __spreadValues$r({
|
|
15959
|
-
style: { zIndex:
|
|
15966
|
+
style: { zIndex: C }
|
|
15960
15967
|
}, l)), /* @__PURE__ */ React__default.createElement(Overlay, {
|
|
15961
15968
|
opacity: c,
|
|
15962
15969
|
zIndex: m,
|
|
@@ -16182,10 +16189,10 @@ const defaultProps$c = {
|
|
|
16182
16189
|
opened: S,
|
|
16183
16190
|
defaultOpened: E,
|
|
16184
16191
|
onChange: w,
|
|
16185
|
-
disableRightSectionRotation:
|
|
16192
|
+
disableRightSectionRotation: R,
|
|
16186
16193
|
childrenOffset: P,
|
|
16187
16194
|
disabled: A,
|
|
16188
|
-
onClick:
|
|
16195
|
+
onClick: C
|
|
16189
16196
|
} = o, I = __objRest$g(o, [
|
|
16190
16197
|
"label",
|
|
16191
16198
|
"description",
|
|
@@ -16213,7 +16220,7 @@ const defaultProps$c = {
|
|
|
16213
16220
|
finalValue: !1,
|
|
16214
16221
|
onChange: w
|
|
16215
16222
|
}), B = !!v, L = (D) => {
|
|
16216
|
-
B ? (D.preventDefault(),
|
|
16223
|
+
B ? (D.preventDefault(), C == null || C(D), T(!O)) : C == null || C(D);
|
|
16217
16224
|
};
|
|
16218
16225
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(UnstyledButton, __spreadValues$m({
|
|
16219
16226
|
ref: n,
|
|
@@ -16240,7 +16247,7 @@ const defaultProps$c = {
|
|
|
16240
16247
|
className: j.description
|
|
16241
16248
|
}, i)), (B || c) && /* @__PURE__ */ React__default.createElement("span", {
|
|
16242
16249
|
className: j.rightSection,
|
|
16243
|
-
"data-rotate": O && !
|
|
16250
|
+
"data-rotate": O && !R || void 0
|
|
16244
16251
|
}, B ? c || /* @__PURE__ */ React__default.createElement(ChevronIcon$1, {
|
|
16245
16252
|
width: rem(14),
|
|
16246
16253
|
height: rem(14),
|
|
@@ -16415,10 +16422,10 @@ function TooltipFloating(r) {
|
|
|
16415
16422
|
position: S,
|
|
16416
16423
|
multiline: E,
|
|
16417
16424
|
width: w,
|
|
16418
|
-
zIndex:
|
|
16425
|
+
zIndex: R,
|
|
16419
16426
|
disabled: P,
|
|
16420
16427
|
variant: A
|
|
16421
|
-
} = o,
|
|
16428
|
+
} = o, C = __objRest$e(o, [
|
|
16422
16429
|
"children",
|
|
16423
16430
|
"refProp",
|
|
16424
16431
|
"withinPortal",
|
|
@@ -16453,11 +16460,11 @@ function TooltipFloating(r) {
|
|
|
16453
16460
|
};
|
|
16454
16461
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(OptionalPortal, __spreadProps$g(__spreadValues$j({}, c), {
|
|
16455
16462
|
withinPortal: l
|
|
16456
|
-
}), /* @__PURE__ */ React__default.createElement(Box, __spreadProps$g(__spreadValues$j({},
|
|
16463
|
+
}), /* @__PURE__ */ React__default.createElement(Box, __spreadProps$g(__spreadValues$j({}, C), {
|
|
16457
16464
|
ref: B,
|
|
16458
16465
|
className: W(D.tooltip, d),
|
|
16459
16466
|
style: __spreadProps$g(__spreadValues$j({}, u), {
|
|
16460
|
-
zIndex:
|
|
16467
|
+
zIndex: R,
|
|
16461
16468
|
display: !P && O ? "block" : "none",
|
|
16462
16469
|
top: k ?? "",
|
|
16463
16470
|
left: (n = Math.round(j)) != null ? n : ""
|
|
@@ -16481,7 +16488,7 @@ function useTooltip(r) {
|
|
|
16481
16488
|
refs: S,
|
|
16482
16489
|
update: E,
|
|
16483
16490
|
placement: w,
|
|
16484
|
-
middlewareData: { arrow: { x:
|
|
16491
|
+
middlewareData: { arrow: { x: R, y: P } = {} }
|
|
16485
16492
|
} = useFloating({
|
|
16486
16493
|
placement: r.position,
|
|
16487
16494
|
open: i,
|
|
@@ -16493,7 +16500,7 @@ function useTooltip(r) {
|
|
|
16493
16500
|
arrow({ element: r.arrowRef, padding: r.arrowOffset }),
|
|
16494
16501
|
...r.inline ? [inline()] : []
|
|
16495
16502
|
]
|
|
16496
|
-
}), { getReferenceProps: A, getFloatingProps:
|
|
16503
|
+
}), { getReferenceProps: A, getFloatingProps: C } = useInteractions([
|
|
16497
16504
|
useHover(v, {
|
|
16498
16505
|
enabled: r.events.hover,
|
|
16499
16506
|
delay: l ? u : { open: r.openDelay, close: r.closeDelay },
|
|
@@ -16515,11 +16522,11 @@ function useTooltip(r) {
|
|
|
16515
16522
|
}, [w]), {
|
|
16516
16523
|
x: g,
|
|
16517
16524
|
y: h,
|
|
16518
|
-
arrowX:
|
|
16525
|
+
arrowX: R,
|
|
16519
16526
|
arrowY: P,
|
|
16520
16527
|
reference: b,
|
|
16521
16528
|
floating: x,
|
|
16522
|
-
getFloatingProps:
|
|
16529
|
+
getFloatingProps: C,
|
|
16523
16530
|
getReferenceProps: A,
|
|
16524
16531
|
isGroupPhase: i && d && d !== c,
|
|
16525
16532
|
opened: i,
|
|
@@ -16574,10 +16581,10 @@ const defaultProps$9 = {
|
|
|
16574
16581
|
color: S,
|
|
16575
16582
|
classNames: E,
|
|
16576
16583
|
styles: w,
|
|
16577
|
-
unstyled:
|
|
16584
|
+
unstyled: R,
|
|
16578
16585
|
style: P,
|
|
16579
16586
|
className: A,
|
|
16580
|
-
withArrow:
|
|
16587
|
+
withArrow: C,
|
|
16581
16588
|
arrowSize: I,
|
|
16582
16589
|
arrowOffset: j,
|
|
16583
16590
|
arrowRadius: k,
|
|
@@ -16633,7 +16640,7 @@ const defaultProps$9 = {
|
|
|
16633
16640
|
"inline",
|
|
16634
16641
|
"variant",
|
|
16635
16642
|
"keepMounted"
|
|
16636
|
-
]), { classes: Q, cx: ne, theme: re } = useStyles$h({ radius: v, color: S, width: D, multiline: L }, { name: "Tooltip", classNames: E, styles: w, unstyled:
|
|
16643
|
+
]), { classes: Q, cx: ne, theme: re } = useStyles$h({ radius: v, color: S, width: D, multiline: L }, { name: "Tooltip", classNames: E, styles: w, unstyled: R, variant: U }), $ = useTooltip({
|
|
16637
16644
|
position: getFloatingPosition(re.dir, c),
|
|
16638
16645
|
closeDelay: m,
|
|
16639
16646
|
openDelay: p,
|
|
@@ -16642,7 +16649,7 @@ const defaultProps$9 = {
|
|
|
16642
16649
|
events: W,
|
|
16643
16650
|
arrowRef: a,
|
|
16644
16651
|
arrowOffset: j,
|
|
16645
|
-
offset: T + (
|
|
16652
|
+
offset: T + (C ? I / 2 : 0),
|
|
16646
16653
|
positionDependencies: [...V, l],
|
|
16647
16654
|
inline: z
|
|
16648
16655
|
});
|
|
@@ -16671,7 +16678,7 @@ const defaultProps$9 = {
|
|
|
16671
16678
|
ref: a,
|
|
16672
16679
|
arrowX: $.arrowX,
|
|
16673
16680
|
arrowY: $.arrowY,
|
|
16674
|
-
visible:
|
|
16681
|
+
visible: C,
|
|
16675
16682
|
position: $.placement,
|
|
16676
16683
|
arrowSize: I,
|
|
16677
16684
|
arrowOffset: j,
|
|
@@ -16790,10 +16797,10 @@ const defaultProps$8 = {
|
|
|
16790
16797
|
unstyled: S,
|
|
16791
16798
|
classNames: E,
|
|
16792
16799
|
styles: w,
|
|
16793
|
-
filter:
|
|
16800
|
+
filter: R,
|
|
16794
16801
|
maxDropdownHeight: P,
|
|
16795
16802
|
searchable: A,
|
|
16796
|
-
clearable:
|
|
16803
|
+
clearable: C,
|
|
16797
16804
|
nothingFound: I,
|
|
16798
16805
|
limit: j,
|
|
16799
16806
|
disabled: k,
|
|
@@ -16873,12 +16880,12 @@ const defaultProps$8 = {
|
|
|
16873
16880
|
"readOnly",
|
|
16874
16881
|
"clearButtonProps",
|
|
16875
16882
|
"hoverOnSearchChange"
|
|
16876
|
-
]), { classes: be, cx: Ze, theme: Ne } = useStyles$g(), [ge, Ge] = useState$1(v), [ke, ve] = useState$1(-1), He = useRef$1(), Fe = useRef$1({}), [Je, rt] = useState$1("column"),
|
|
16883
|
+
]), { classes: be, cx: Ze, theme: Ne } = useStyles$g(), [ge, Ge] = useState$1(v), [ke, ve] = useState$1(-1), He = useRef$1(), Fe = useRef$1({}), [Je, rt] = useState$1("column"), Re = Je === "column", { scrollIntoView: De, targetRef: Le, scrollableRef: nt } = useScrollIntoView({
|
|
16877
16884
|
duration: 0,
|
|
16878
16885
|
offset: 5,
|
|
16879
16886
|
cancelable: !1,
|
|
16880
16887
|
isList: !0
|
|
16881
|
-
}), Ye = re === void 0 ?
|
|
16888
|
+
}), Ye = re === void 0 ? C : re, Se = (H) => {
|
|
16882
16889
|
if (ge !== H) {
|
|
16883
16890
|
Ge(H);
|
|
16884
16891
|
const ie = H ? ee : G;
|
|
@@ -16886,12 +16893,12 @@ const defaultProps$8 = {
|
|
|
16886
16893
|
}
|
|
16887
16894
|
}, qe = D && typeof W == "function";
|
|
16888
16895
|
let We = null;
|
|
16889
|
-
const ot = c.map((H) => typeof H == "string" ? { label: H, value: H } : H), Ue = groupOptions({ data: ot }), [
|
|
16896
|
+
const ot = c.map((H) => typeof H == "string" ? { label: H, value: H } : H), Ue = groupOptions({ data: ot }), [Ce, Be, Xe] = useUncontrolled({
|
|
16890
16897
|
value: u,
|
|
16891
16898
|
defaultValue: d,
|
|
16892
16899
|
finalValue: null,
|
|
16893
16900
|
onChange: p
|
|
16894
|
-
}), Pe = Ue.find((H) => H.value ===
|
|
16901
|
+
}), Pe = Ue.find((H) => H.value === Ce), [Ie, at] = useUncontrolled({
|
|
16895
16902
|
value: T,
|
|
16896
16903
|
defaultValue: (Pe == null ? void 0 : Pe.label) || "",
|
|
16897
16904
|
finalValue: void 0,
|
|
@@ -16903,9 +16910,9 @@ const defaultProps$8 = {
|
|
|
16903
16910
|
Z || (Be(null), Xe || Oe(""), (H = He.current) == null || H.focus());
|
|
16904
16911
|
};
|
|
16905
16912
|
useEffect$1(() => {
|
|
16906
|
-
const H = Ue.find((ie) => ie.value ===
|
|
16907
|
-
H ? Oe(H.label) : (!qe || !
|
|
16908
|
-
}, [
|
|
16913
|
+
const H = Ue.find((ie) => ie.value === Ce);
|
|
16914
|
+
H ? Oe(H.label) : (!qe || !Ce) && Oe("");
|
|
16915
|
+
}, [Ce]), useEffect$1(() => {
|
|
16909
16916
|
Pe && (!A || !ge) && Oe(Pe.label);
|
|
16910
16917
|
}, [Pe == null ? void 0 : Pe.label]);
|
|
16911
16918
|
const je = (H) => {
|
|
@@ -16925,9 +16932,9 @@ const defaultProps$8 = {
|
|
|
16925
16932
|
searchable: A,
|
|
16926
16933
|
limit: j,
|
|
16927
16934
|
searchValue: Ie,
|
|
16928
|
-
filter:
|
|
16935
|
+
filter: R,
|
|
16929
16936
|
filterDataOnExactSearchMatch: ae,
|
|
16930
|
-
value:
|
|
16937
|
+
value: Ce
|
|
16931
16938
|
});
|
|
16932
16939
|
qe && J(Ie, he) && (We = W(Ie), he.push({ label: Ie, value: Ie, creatable: !0 }));
|
|
16933
16940
|
const Qe = (H, ie, ue) => {
|
|
@@ -16940,21 +16947,21 @@ const defaultProps$8 = {
|
|
|
16940
16947
|
useDidUpdate(() => {
|
|
16941
16948
|
ve(fe && Ie ? 0 : -1);
|
|
16942
16949
|
}, [Ie, fe]);
|
|
16943
|
-
const Ve =
|
|
16950
|
+
const Ve = Ce ? he.findIndex((H) => H.value === Ce) : 0, Ee = !Z && (he.length > 0 ? ge : ge && !!I), _e = () => {
|
|
16944
16951
|
ve((H) => {
|
|
16945
16952
|
var ie;
|
|
16946
16953
|
const ue = Qe(H, (de) => de - 1, (de) => de > 0);
|
|
16947
|
-
return Le.current = Fe.current[(ie = he[ue]) == null ? void 0 : ie.value], Ee && De({ alignment:
|
|
16954
|
+
return Le.current = Fe.current[(ie = he[ue]) == null ? void 0 : ie.value], Ee && De({ alignment: Re ? "start" : "end" }), ue;
|
|
16948
16955
|
});
|
|
16949
16956
|
}, $e = () => {
|
|
16950
16957
|
ve((H) => {
|
|
16951
16958
|
var ie;
|
|
16952
16959
|
const ue = Qe(H, (de) => de + 1, (de) => de < he.length - 1);
|
|
16953
|
-
return Le.current = Fe.current[(ie = he[ue]) == null ? void 0 : ie.value], Ee && De({ alignment:
|
|
16960
|
+
return Le.current = Fe.current[(ie = he[ue]) == null ? void 0 : ie.value], Ee && De({ alignment: Re ? "end" : "start" }), ue;
|
|
16954
16961
|
});
|
|
16955
16962
|
}, Ke = () => window.setTimeout(() => {
|
|
16956
16963
|
var H;
|
|
16957
|
-
Le.current = Fe.current[(H = he[Ve]) == null ? void 0 : H.value], De({ alignment:
|
|
16964
|
+
Le.current = Fe.current[(H = he[Ve]) == null ? void 0 : H.value], De({ alignment: Re ? "end" : "start" });
|
|
16958
16965
|
}, 50);
|
|
16959
16966
|
useDidUpdate(() => {
|
|
16960
16967
|
Ee && Ke();
|
|
@@ -16962,18 +16969,18 @@ const defaultProps$8 = {
|
|
|
16962
16969
|
const N = (H) => {
|
|
16963
16970
|
switch (typeof g == "function" && g(H), H.key) {
|
|
16964
16971
|
case "ArrowUp": {
|
|
16965
|
-
H.preventDefault(), ge ?
|
|
16972
|
+
H.preventDefault(), ge ? Re ? _e() : $e() : (ve(Ve), Se(!0), Ke());
|
|
16966
16973
|
break;
|
|
16967
16974
|
}
|
|
16968
16975
|
case "ArrowDown": {
|
|
16969
|
-
H.preventDefault(), ge ?
|
|
16976
|
+
H.preventDefault(), ge ? Re ? $e() : _e() : (ve(Ve), Se(!0), Ke());
|
|
16970
16977
|
break;
|
|
16971
16978
|
}
|
|
16972
16979
|
case "Home": {
|
|
16973
16980
|
if (!A) {
|
|
16974
16981
|
H.preventDefault(), ge || Se(!0);
|
|
16975
16982
|
const ie = he.findIndex((ue) => !ue.disabled);
|
|
16976
|
-
ve(ie), Ee && De({ alignment:
|
|
16983
|
+
ve(ie), Ee && De({ alignment: Re ? "end" : "start" });
|
|
16977
16984
|
}
|
|
16978
16985
|
break;
|
|
16979
16986
|
}
|
|
@@ -16981,7 +16988,7 @@ const defaultProps$8 = {
|
|
|
16981
16988
|
if (!A) {
|
|
16982
16989
|
H.preventDefault(), ge || Se(!0);
|
|
16983
16990
|
const ie = he.map((ue) => !!ue.disabled).lastIndexOf(!1);
|
|
16984
|
-
ve(ie), Ee && De({ alignment:
|
|
16991
|
+
ve(ie), Ee && De({ alignment: Re ? "end" : "start" });
|
|
16985
16992
|
}
|
|
16986
16993
|
break;
|
|
16987
16994
|
}
|
|
@@ -16998,14 +17005,14 @@ const defaultProps$8 = {
|
|
|
16998
17005
|
}
|
|
16999
17006
|
}, M = (H) => {
|
|
17000
17007
|
typeof h == "function" && h(H);
|
|
17001
|
-
const ie = Ue.find((ue) => ue.value ===
|
|
17008
|
+
const ie = Ue.find((ue) => ue.value === Ce);
|
|
17002
17009
|
F && he[ke] && ge && je(he[ke]), Oe((ie == null ? void 0 : ie.label) || ""), Se(!1);
|
|
17003
17010
|
}, Y = (H) => {
|
|
17004
17011
|
typeof b == "function" && b(H), A && Se(!0);
|
|
17005
17012
|
}, oe = (H) => {
|
|
17006
|
-
Z || (Oe(H.currentTarget.value),
|
|
17013
|
+
Z || (Oe(H.currentTarget.value), C && H.currentTarget.value === "" && Be(null), ve(-1), Se(!0));
|
|
17007
17014
|
}, ce = () => {
|
|
17008
|
-
Z || (Se(!ge),
|
|
17015
|
+
Z || (Se(!ge), Ce && !ge && ve(Ve));
|
|
17009
17016
|
};
|
|
17010
17017
|
return /* @__PURE__ */ React__default.createElement(Input.Wrapper, __spreadProps$e(__spreadValues$h({}, i), {
|
|
17011
17018
|
__staticSelector: "Select"
|
|
@@ -17036,7 +17043,7 @@ const defaultProps$8 = {
|
|
|
17036
17043
|
}, /* @__PURE__ */ React__default.createElement("input", {
|
|
17037
17044
|
type: "hidden",
|
|
17038
17045
|
name: Q,
|
|
17039
|
-
value:
|
|
17046
|
+
value: Ce || "",
|
|
17040
17047
|
form: se,
|
|
17041
17048
|
disabled: k
|
|
17042
17049
|
}), /* @__PURE__ */ React__default.createElement(Input, __spreadValues$h(__spreadProps$e(__spreadValues$h(__spreadValues$h({
|
|
@@ -17068,7 +17075,7 @@ const defaultProps$8 = {
|
|
|
17068
17075
|
rightSectionWidth: L,
|
|
17069
17076
|
styles: w,
|
|
17070
17077
|
size: a.size,
|
|
17071
|
-
shouldClear:
|
|
17078
|
+
shouldClear: C && !!Pe,
|
|
17072
17079
|
onClear: st,
|
|
17073
17080
|
error: i.error,
|
|
17074
17081
|
clearButtonProps: le,
|
|
@@ -17088,7 +17095,7 @@ const defaultProps$8 = {
|
|
|
17088
17095
|
hovered: ke,
|
|
17089
17096
|
classNames: E,
|
|
17090
17097
|
styles: w,
|
|
17091
|
-
isItemSelected: (H) => H ===
|
|
17098
|
+
isItemSelected: (H) => H === Ce,
|
|
17092
17099
|
uuid: a.id,
|
|
17093
17100
|
__staticSelector: "Select",
|
|
17094
17101
|
onItemHover: ve,
|
|
@@ -17215,15 +17222,15 @@ const Thumb = forwardRef$1(({
|
|
|
17215
17222
|
thumbLabel: S,
|
|
17216
17223
|
onFocus: E,
|
|
17217
17224
|
onBlur: w,
|
|
17218
|
-
showLabelOnHover:
|
|
17225
|
+
showLabelOnHover: R,
|
|
17219
17226
|
isHovered: P,
|
|
17220
17227
|
children: A = null,
|
|
17221
|
-
disabled:
|
|
17228
|
+
disabled: C,
|
|
17222
17229
|
unstyled: I,
|
|
17223
17230
|
thumbSize: j,
|
|
17224
17231
|
variant: k
|
|
17225
17232
|
}, O) => {
|
|
17226
|
-
const { classes: T, cx: B, theme: L } = useStyles$d({ color: d, disabled:
|
|
17233
|
+
const { classes: T, cx: B, theme: L } = useStyles$d({ color: d, disabled: C, thumbSize: j }, { name: "Slider", classNames: p, styles: m, unstyled: I, variant: k, size: g }), [D, W] = useState$1(!1), J = v || l || D || R && P;
|
|
17227
17234
|
return /* @__PURE__ */ React__default.createElement(Box, {
|
|
17228
17235
|
tabIndex: 0,
|
|
17229
17236
|
role: "slider",
|
|
@@ -17315,10 +17322,10 @@ function Marks({
|
|
|
17315
17322
|
inverted: b,
|
|
17316
17323
|
variant: x
|
|
17317
17324
|
}) {
|
|
17318
|
-
const { classes: v, cx: S } = useStyles$c({ color: n, disabled: g, thumbSize: a }, { name: "Slider", classNames: u, styles: d, unstyled: h, variant: x, size: o }), E = r.map((w,
|
|
17325
|
+
const { classes: v, cx: S } = useStyles$c({ color: n, disabled: g, thumbSize: a }, { name: "Slider", classNames: u, styles: d, unstyled: h, variant: x, size: o }), E = r.map((w, R) => /* @__PURE__ */ React__default.createElement(Box, {
|
|
17319
17326
|
className: v.markWrapper,
|
|
17320
17327
|
sx: { left: `${getPosition({ value: w.value, min: i, max: l })}%` },
|
|
17321
|
-
key:
|
|
17328
|
+
key: R
|
|
17322
17329
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
17323
17330
|
className: S(v.mark, {
|
|
17324
17331
|
[v.markFilled]: isMarkFilled({ mark: w, value: c, offset: p, inverted: b })
|
|
@@ -17568,10 +17575,10 @@ const defaultProps$7 = {
|
|
|
17568
17575
|
name: S,
|
|
17569
17576
|
marks: E,
|
|
17570
17577
|
label: w,
|
|
17571
|
-
labelTransition:
|
|
17578
|
+
labelTransition: R,
|
|
17572
17579
|
labelTransitionDuration: P,
|
|
17573
17580
|
labelTransitionTimingFunction: A,
|
|
17574
|
-
labelAlwaysOn:
|
|
17581
|
+
labelAlwaysOn: C,
|
|
17575
17582
|
thumbLabel: I,
|
|
17576
17583
|
showLabelOnHover: j,
|
|
17577
17584
|
thumbChildren: k,
|
|
@@ -17704,10 +17711,10 @@ const defaultProps$7 = {
|
|
|
17704
17711
|
size: p,
|
|
17705
17712
|
label: re,
|
|
17706
17713
|
ref: _,
|
|
17707
|
-
labelTransition:
|
|
17714
|
+
labelTransition: R,
|
|
17708
17715
|
labelTransitionDuration: P,
|
|
17709
17716
|
labelTransitionTimingFunction: A,
|
|
17710
|
-
labelAlwaysOn:
|
|
17717
|
+
labelAlwaysOn: C,
|
|
17711
17718
|
classNames: a,
|
|
17712
17719
|
styles: i,
|
|
17713
17720
|
thumbLabel: I,
|
|
@@ -17991,8 +17998,8 @@ const defaultProps$3 = {}, Tab = forwardRef$1((r, n) => {
|
|
|
17991
17998
|
classNames: h.classNames,
|
|
17992
17999
|
styles: h.styles,
|
|
17993
18000
|
variant: h.variant
|
|
17994
|
-
}), w = a === h.value,
|
|
17995
|
-
h.onTabChange(h.allowTabDeactivation && a === h.value ? null : a), c == null || c(
|
|
18001
|
+
}), w = a === h.value, R = h.getPanelId(a), P = h.mountedPanelIds.includes(a) ? R : void 0, A = (C) => {
|
|
18002
|
+
h.onTabChange(h.allowTabDeactivation && a === h.value ? null : a), c == null || c(C);
|
|
17996
18003
|
};
|
|
17997
18004
|
return /* @__PURE__ */ React__default.createElement(UnstyledButton, __spreadProps$5(__spreadValues$6({}, g), {
|
|
17998
18005
|
unstyled: h.unstyled,
|
|
@@ -18044,7 +18051,7 @@ function TabsProvider({
|
|
|
18044
18051
|
styles: S,
|
|
18045
18052
|
unstyled: E
|
|
18046
18053
|
}) {
|
|
18047
|
-
const w = useId$2(c), [
|
|
18054
|
+
const w = useId$2(c), [R, P] = useState$1([]), [A, C] = useUncontrolled({
|
|
18048
18055
|
value: n,
|
|
18049
18056
|
defaultValue: r,
|
|
18050
18057
|
finalValue: null,
|
|
@@ -18060,9 +18067,9 @@ function TabsProvider({
|
|
|
18060
18067
|
activateTabWithKeyboard: u,
|
|
18061
18068
|
getTabId: getSafeId(`${w}-tab`, TABS_ERRORS.value),
|
|
18062
18069
|
getPanelId: getSafeId(`${w}-panel`, TABS_ERRORS.value),
|
|
18063
|
-
onTabChange:
|
|
18070
|
+
onTabChange: C,
|
|
18064
18071
|
setMountedPanelIds: P,
|
|
18065
|
-
mountedPanelIds:
|
|
18072
|
+
mountedPanelIds: R,
|
|
18066
18073
|
allowTabDeactivation: d,
|
|
18067
18074
|
variant: p,
|
|
18068
18075
|
color: m,
|
|
@@ -18124,10 +18131,10 @@ const defaultProps$2 = {
|
|
|
18124
18131
|
classNames: S,
|
|
18125
18132
|
styles: E,
|
|
18126
18133
|
radius: w,
|
|
18127
|
-
inverted:
|
|
18134
|
+
inverted: R,
|
|
18128
18135
|
keepMounted: P,
|
|
18129
18136
|
placement: A
|
|
18130
|
-
} = o,
|
|
18137
|
+
} = o, C = __objRest$4(o, [
|
|
18131
18138
|
"defaultValue",
|
|
18132
18139
|
"value",
|
|
18133
18140
|
"orientation",
|
|
@@ -18147,7 +18154,7 @@ const defaultProps$2 = {
|
|
|
18147
18154
|
"inverted",
|
|
18148
18155
|
"keepMounted",
|
|
18149
18156
|
"placement"
|
|
18150
|
-
]), { classes: I, cx: j } = useStyles$4({ orientation: l, color: b, radius: w, inverted:
|
|
18157
|
+
]), { classes: I, cx: j } = useStyles$4({ orientation: l, color: b, radius: w, inverted: R, placement: A }, { unstyled: v, name: "Tabs", classNames: S, styles: E, variant: h });
|
|
18151
18158
|
return /* @__PURE__ */ React__default.createElement(TabsProvider, {
|
|
18152
18159
|
activateTabWithKeyboard: u,
|
|
18153
18160
|
defaultValue: a,
|
|
@@ -18160,13 +18167,13 @@ const defaultProps$2 = {
|
|
|
18160
18167
|
color: b,
|
|
18161
18168
|
variant: h,
|
|
18162
18169
|
radius: w,
|
|
18163
|
-
inverted:
|
|
18170
|
+
inverted: R,
|
|
18164
18171
|
keepMounted: P,
|
|
18165
18172
|
placement: A,
|
|
18166
18173
|
classNames: S,
|
|
18167
18174
|
styles: E,
|
|
18168
18175
|
unstyled: v
|
|
18169
|
-
}, /* @__PURE__ */ React__default.createElement(Box, __spreadProps$4(__spreadValues$5({},
|
|
18176
|
+
}, /* @__PURE__ */ React__default.createElement(Box, __spreadProps$4(__spreadValues$5({}, C), {
|
|
18170
18177
|
className: j(I.root, x),
|
|
18171
18178
|
id: m,
|
|
18172
18179
|
ref: n
|
|
@@ -18536,37 +18543,37 @@ const stringify_1 = stringify$1, quote_1 = quote, ROOT_SENTINEL = Symbol("root")
|
|
|
18536
18543
|
function stringify(r, n, o, a = {}) {
|
|
18537
18544
|
const i = typeof o == "string" ? o : " ".repeat(o || 0), l = [], c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
|
|
18538
18545
|
let p = 0;
|
|
18539
|
-
const { maxDepth: m = 100, references: g = !1, skipUndefinedProperties: h = !1, maxValues: b = 1e5 } = a, x = replacerToString(n), v = (w,
|
|
18546
|
+
const { maxDepth: m = 100, references: g = !1, skipUndefinedProperties: h = !1, maxValues: b = 1e5 } = a, x = replacerToString(n), v = (w, R) => {
|
|
18540
18547
|
if (++p > b || h && w === void 0 || l.length > m)
|
|
18541
18548
|
return;
|
|
18542
|
-
if (
|
|
18543
|
-
return x(w, i, v,
|
|
18544
|
-
l.push(
|
|
18545
|
-
const P = S(w,
|
|
18549
|
+
if (R === void 0)
|
|
18550
|
+
return x(w, i, v, R);
|
|
18551
|
+
l.push(R);
|
|
18552
|
+
const P = S(w, R === ROOT_SENTINEL ? void 0 : R);
|
|
18546
18553
|
return l.pop(), P;
|
|
18547
|
-
}, S = g ? (w,
|
|
18554
|
+
}, S = g ? (w, R) => {
|
|
18548
18555
|
if (w !== null && (typeof w == "object" || typeof w == "function" || typeof w == "symbol")) {
|
|
18549
18556
|
if (u.has(w))
|
|
18550
|
-
return d.set(l.slice(1), u.get(w)), x(void 0, i, v,
|
|
18557
|
+
return d.set(l.slice(1), u.get(w)), x(void 0, i, v, R);
|
|
18551
18558
|
u.set(w, l.slice(1));
|
|
18552
18559
|
}
|
|
18553
|
-
return x(w, i, v,
|
|
18554
|
-
} : (w,
|
|
18560
|
+
return x(w, i, v, R);
|
|
18561
|
+
} : (w, R) => {
|
|
18555
18562
|
if (c.has(w))
|
|
18556
18563
|
return;
|
|
18557
18564
|
c.add(w);
|
|
18558
|
-
const P = x(w, i, v,
|
|
18565
|
+
const P = x(w, i, v, R);
|
|
18559
18566
|
return c.delete(w), P;
|
|
18560
18567
|
}, E = v(r, ROOT_SENTINEL);
|
|
18561
18568
|
if (d.size) {
|
|
18562
|
-
const w = i ? " " : "",
|
|
18569
|
+
const w = i ? " " : "", R = i ? `
|
|
18563
18570
|
` : "";
|
|
18564
|
-
let P = `var x${w}=${w}${E};${
|
|
18565
|
-
for (const [A,
|
|
18566
|
-
const I = quote_1.stringifyPath(A, v), j = quote_1.stringifyPath(
|
|
18567
|
-
P += `x${I}${w}=${w}x${j};${
|
|
18571
|
+
let P = `var x${w}=${w}${E};${R}`;
|
|
18572
|
+
for (const [A, C] of d.entries()) {
|
|
18573
|
+
const I = quote_1.stringifyPath(A, v), j = quote_1.stringifyPath(C, v);
|
|
18574
|
+
P += `x${I}${w}=${w}x${j};${R}`;
|
|
18568
18575
|
}
|
|
18569
|
-
return `(function${w}()${w}{${
|
|
18576
|
+
return `(function${w}()${w}{${R}${P}return x;${R}}())`;
|
|
18570
18577
|
}
|
|
18571
18578
|
return E;
|
|
18572
18579
|
}
|
|
@@ -18617,15 +18624,15 @@ function PanelWithForwardedRef({
|
|
|
18617
18624
|
collapsePanel: S,
|
|
18618
18625
|
expandPanel: E,
|
|
18619
18626
|
getPanelStyle: w,
|
|
18620
|
-
registerPanel:
|
|
18627
|
+
registerPanel: R,
|
|
18621
18628
|
resizePanel: P,
|
|
18622
18629
|
unregisterPanel: A
|
|
18623
|
-
} = x,
|
|
18630
|
+
} = x, C = useRef({
|
|
18624
18631
|
onCollapse: p,
|
|
18625
18632
|
onResize: m
|
|
18626
18633
|
});
|
|
18627
18634
|
if (useEffect(() => {
|
|
18628
|
-
|
|
18635
|
+
C.current.onCollapse = p, C.current.onResize = m;
|
|
18629
18636
|
}), d < 0 || d > 100)
|
|
18630
18637
|
throw Error(`Panel minSize must be between 0 and 100, but was ${d}`);
|
|
18631
18638
|
if (u < 0 || u > 100)
|
|
@@ -18638,7 +18645,7 @@ function PanelWithForwardedRef({
|
|
|
18638
18645
|
const I = w(v, i), j = useRef({
|
|
18639
18646
|
size: parseSizeFromStyle(I)
|
|
18640
18647
|
}), k = useRef({
|
|
18641
|
-
callbacksRef:
|
|
18648
|
+
callbacksRef: C,
|
|
18642
18649
|
collapsedSize: o,
|
|
18643
18650
|
collapsible: a,
|
|
18644
18651
|
defaultSize: i,
|
|
@@ -18649,10 +18656,10 @@ function PanelWithForwardedRef({
|
|
|
18649
18656
|
order: g
|
|
18650
18657
|
});
|
|
18651
18658
|
return useIsomorphicLayoutEffect(() => {
|
|
18652
|
-
j.current.size = parseSizeFromStyle(I), k.current.callbacksRef =
|
|
18653
|
-
}), useIsomorphicLayoutEffect(() => (
|
|
18659
|
+
j.current.size = parseSizeFromStyle(I), k.current.callbacksRef = C, k.current.collapsedSize = o, k.current.collapsible = a, k.current.defaultSize = i, k.current.id = v, k.current.idWasAutoGenerated = c == null, k.current.maxSize = u, k.current.minSize = d, k.current.order = g;
|
|
18660
|
+
}), useIsomorphicLayoutEffect(() => (R(v, k), () => {
|
|
18654
18661
|
A(v);
|
|
18655
|
-
}), [g, v,
|
|
18662
|
+
}), [g, v, R, A]), useImperativeHandle(l, () => ({
|
|
18656
18663
|
collapse: () => S(v),
|
|
18657
18664
|
expand: () => E(v),
|
|
18658
18665
|
getCollapsed() {
|
|
@@ -18698,10 +18705,10 @@ function adjustByDelta(r, n, o, a, i, l, c, u) {
|
|
|
18698
18705
|
const m = panelsMapToSortedArray(n), g = p.concat();
|
|
18699
18706
|
let h = 0;
|
|
18700
18707
|
{
|
|
18701
|
-
const v = i < 0 ? a : o, S = m.findIndex((P) => P.current.id === v), E = m[S], w = p[S],
|
|
18702
|
-
if (w ===
|
|
18708
|
+
const v = i < 0 ? a : o, S = m.findIndex((P) => P.current.id === v), E = m[S], w = p[S], R = safeResizePanel(E, Math.abs(i), w, r);
|
|
18709
|
+
if (w === R)
|
|
18703
18710
|
return p;
|
|
18704
|
-
|
|
18711
|
+
R === 0 && w > 0 && c.set(v, w), i = i < 0 ? w - R : R - w;
|
|
18705
18712
|
}
|
|
18706
18713
|
let b = i < 0 ? o : a, x = m.findIndex((v) => v.current.id === b);
|
|
18707
18714
|
for (; ; ) {
|
|
@@ -18827,12 +18834,12 @@ function useWindowSplitterPanelGroupBehavior({
|
|
|
18827
18834
|
if (S == null || E == null)
|
|
18828
18835
|
return () => {
|
|
18829
18836
|
};
|
|
18830
|
-
let w = 0,
|
|
18837
|
+
let w = 0, R = 100, P = 0, A = 0;
|
|
18831
18838
|
v.forEach((T) => {
|
|
18832
|
-
T.current.id === S ? (
|
|
18839
|
+
T.current.id === S ? (R = T.current.maxSize, w = T.current.minSize) : (P += T.current.minSize, A += T.current.maxSize);
|
|
18833
18840
|
});
|
|
18834
|
-
const
|
|
18835
|
-
b.setAttribute("aria-valuemax", "" + Math.round(
|
|
18841
|
+
const C = Math.min(R, 100 - P), I = Math.max(w, (v.length - 1) * 100 - A), j = getFlexGrow(u, S, i);
|
|
18842
|
+
b.setAttribute("aria-valuemax", "" + Math.round(C)), b.setAttribute("aria-valuemin", "" + Math.round(I)), b.setAttribute("aria-valuenow", "" + Math.round(parseInt(j)));
|
|
18836
18843
|
const k = (T) => {
|
|
18837
18844
|
if (!T.defaultPrevented)
|
|
18838
18845
|
switch (T.key) {
|
|
@@ -18951,10 +18958,10 @@ function getMovement(r, n, o, a, i, l, c) {
|
|
|
18951
18958
|
E = -x;
|
|
18952
18959
|
break;
|
|
18953
18960
|
}
|
|
18954
|
-
const [w,
|
|
18955
|
-
if (
|
|
18961
|
+
const [w, R] = getResizeHandlePanelIds(n, o, a), P = E < 0 ? w : R, A = a.findIndex((I) => I.current.id === P), C = a[A];
|
|
18962
|
+
if (C.current.collapsible) {
|
|
18956
18963
|
const I = m[A];
|
|
18957
|
-
(I === 0 || I.toPrecision(PRECISION) ===
|
|
18964
|
+
(I === 0 || I.toPrecision(PRECISION) === C.current.minSize.toPrecision(PRECISION)) && (E = E < 0 ? -C.current.minSize * x : C.current.minSize * x);
|
|
18958
18965
|
}
|
|
18959
18966
|
return E;
|
|
18960
18967
|
} else
|
|
@@ -19087,10 +19094,10 @@ function PanelGroupWithForwardedRef({
|
|
|
19087
19094
|
useEffect(() => {
|
|
19088
19095
|
E.current.onLayout = u;
|
|
19089
19096
|
});
|
|
19090
|
-
const w = useRef({}), [
|
|
19097
|
+
const w = useRef({}), [R, P] = useState([]), A = useRef(/* @__PURE__ */ new Map()), C = useRef(0), I = useRef({
|
|
19091
19098
|
direction: a,
|
|
19092
19099
|
panels: x,
|
|
19093
|
-
sizes:
|
|
19100
|
+
sizes: R
|
|
19094
19101
|
});
|
|
19095
19102
|
useImperativeHandle(l, () => ({
|
|
19096
19103
|
getLayout: () => {
|
|
@@ -19108,13 +19115,13 @@ function PanelGroupWithForwardedRef({
|
|
|
19108
19115
|
P(F), callPanelCallbacks(ee, F, G);
|
|
19109
19116
|
}
|
|
19110
19117
|
}), []), useIsomorphicLayoutEffect(() => {
|
|
19111
|
-
I.current.direction = a, I.current.panels = x, I.current.sizes =
|
|
19118
|
+
I.current.direction = a, I.current.panels = x, I.current.sizes = R;
|
|
19112
19119
|
}), useWindowSplitterPanelGroupBehavior({
|
|
19113
19120
|
committedValuesRef: I,
|
|
19114
19121
|
groupId: g,
|
|
19115
19122
|
panels: x,
|
|
19116
19123
|
setSizes: P,
|
|
19117
|
-
sizes:
|
|
19124
|
+
sizes: R,
|
|
19118
19125
|
panelSizeBeforeCollapse: A
|
|
19119
19126
|
}), useEffect(() => {
|
|
19120
19127
|
const {
|
|
@@ -19128,7 +19135,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19128
19135
|
const G = w.current, ee = panelsMapToSortedArray(V);
|
|
19129
19136
|
callPanelCallbacks(ee, q, G);
|
|
19130
19137
|
}
|
|
19131
|
-
}, [
|
|
19138
|
+
}, [R]), useIsomorphicLayoutEffect(() => {
|
|
19132
19139
|
if (I.current.sizes.length === x.size)
|
|
19133
19140
|
return;
|
|
19134
19141
|
let V = null;
|
|
@@ -19153,12 +19160,12 @@ function PanelGroupWithForwardedRef({
|
|
|
19153
19160
|
}
|
|
19154
19161
|
}, [r, x, d]), useEffect(() => {
|
|
19155
19162
|
if (r) {
|
|
19156
|
-
if (
|
|
19163
|
+
if (R.length === 0 || R.length !== x.size)
|
|
19157
19164
|
return;
|
|
19158
19165
|
const F = panelsMapToSortedArray(x);
|
|
19159
|
-
debounceMap[r] || (debounceMap[r] = debounce(savePanelGroupLayout, 100)), debounceMap[r](r, F,
|
|
19166
|
+
debounceMap[r] || (debounceMap[r] = debounce(savePanelGroupLayout, 100)), debounceMap[r](r, F, R, d);
|
|
19160
19167
|
}
|
|
19161
|
-
}, [r, x,
|
|
19168
|
+
}, [r, x, R, d]);
|
|
19162
19169
|
const j = useCallback((F, V) => {
|
|
19163
19170
|
const {
|
|
19164
19171
|
panels: q
|
|
@@ -19171,7 +19178,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19171
19178
|
overflow: "hidden"
|
|
19172
19179
|
} : {
|
|
19173
19180
|
flexBasis: 0,
|
|
19174
|
-
flexGrow: getFlexGrow(q, F,
|
|
19181
|
+
flexGrow: getFlexGrow(q, F, R),
|
|
19175
19182
|
flexShrink: 1,
|
|
19176
19183
|
// Without this, Panel sizes may be unintentionally overridden by their content.
|
|
19177
19184
|
overflow: "hidden",
|
|
@@ -19179,7 +19186,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19179
19186
|
// This avoid edge cases like nested iframes.
|
|
19180
19187
|
pointerEvents: i && h !== null ? "none" : void 0
|
|
19181
19188
|
};
|
|
19182
|
-
}, [h, i,
|
|
19189
|
+
}, [h, i, R]), k = useCallback((F, V) => {
|
|
19183
19190
|
v((q) => {
|
|
19184
19191
|
if (q.has(F))
|
|
19185
19192
|
return q;
|
|
@@ -19201,11 +19208,11 @@ function PanelGroupWithForwardedRef({
|
|
|
19201
19208
|
const re = getPanelGroup(g).getBoundingClientRect(), $ = G === "horizontal";
|
|
19202
19209
|
document.dir === "rtl" && $ && (Q = -Q);
|
|
19203
19210
|
const ae = $ ? re.width : re.height, se = Q / ae * 100, K = adjustByDelta(q, ee, te, _, se, z, A.current, S.current), Z = !areEqual(z, K);
|
|
19204
|
-
if ((isMouseEvent(q) || isTouchEvent(q)) &&
|
|
19211
|
+
if ((isMouseEvent(q) || isTouchEvent(q)) && C.current != se && setGlobalCursorStyle(Z ? $ ? "horizontal" : "vertical" : $ ? Q < 0 ? "horizontal-min" : "horizontal-max" : Q < 0 ? "vertical-min" : "vertical-max"), Z) {
|
|
19205
19212
|
const le = w.current;
|
|
19206
19213
|
P(K), callPanelCallbacks(U, K, le);
|
|
19207
19214
|
}
|
|
19208
|
-
|
|
19215
|
+
C.current = se;
|
|
19209
19216
|
}, [g]), T = useCallback((F) => {
|
|
19210
19217
|
v((V) => {
|
|
19211
19218
|
if (!V.has(F))
|
|
@@ -19369,7 +19376,7 @@ function PanelResizeHandle$1({
|
|
|
19369
19376
|
registerResizeHandle: b,
|
|
19370
19377
|
startDragging: x,
|
|
19371
19378
|
stopDragging: v
|
|
19372
|
-
} = p, S = useUniqueId(a), E = m === S, [w,
|
|
19379
|
+
} = p, S = useUniqueId(a), E = m === S, [w, R] = useState(!1), [P, A] = useState(null), C = useCallback(() => {
|
|
19373
19380
|
u.current.blur(), v();
|
|
19374
19381
|
const {
|
|
19375
19382
|
onDragging: k
|
|
@@ -19391,10 +19398,10 @@ function PanelResizeHandle$1({
|
|
|
19391
19398
|
}, k = (B) => {
|
|
19392
19399
|
P(B);
|
|
19393
19400
|
}, T = u.current.ownerDocument;
|
|
19394
|
-
return T.body.addEventListener("contextmenu",
|
|
19395
|
-
T.body.removeEventListener("contextmenu",
|
|
19401
|
+
return T.body.addEventListener("contextmenu", C), T.body.addEventListener("mousemove", j), T.body.addEventListener("touchmove", j), T.body.addEventListener("mouseleave", k), window.addEventListener("mouseup", C), window.addEventListener("touchend", C), () => {
|
|
19402
|
+
T.body.removeEventListener("contextmenu", C), T.body.removeEventListener("mousemove", j), T.body.removeEventListener("touchmove", j), T.body.removeEventListener("mouseleave", k), window.removeEventListener("mouseup", C), window.removeEventListener("touchend", C);
|
|
19396
19403
|
};
|
|
19397
|
-
}, [g, o, E, P,
|
|
19404
|
+
}, [g, o, E, P, C]), useWindowSplitterResizeHandlerBehavior({
|
|
19398
19405
|
disabled: o,
|
|
19399
19406
|
handleId: S,
|
|
19400
19407
|
resizeHandler: P
|
|
@@ -19412,8 +19419,8 @@ function PanelResizeHandle$1({
|
|
|
19412
19419
|
"data-panel-group-id": h,
|
|
19413
19420
|
"data-panel-resize-handle-enabled": !o,
|
|
19414
19421
|
"data-panel-resize-handle-id": S,
|
|
19415
|
-
onBlur: () =>
|
|
19416
|
-
onFocus: () =>
|
|
19422
|
+
onBlur: () => R(!1),
|
|
19423
|
+
onFocus: () => R(!0),
|
|
19417
19424
|
onMouseDown: (j) => {
|
|
19418
19425
|
x(S, j.nativeEvent);
|
|
19419
19426
|
const {
|
|
@@ -19421,9 +19428,9 @@ function PanelResizeHandle$1({
|
|
|
19421
19428
|
} = d.current;
|
|
19422
19429
|
k && k(!0);
|
|
19423
19430
|
},
|
|
19424
|
-
onMouseUp:
|
|
19425
|
-
onTouchCancel:
|
|
19426
|
-
onTouchEnd:
|
|
19431
|
+
onMouseUp: C,
|
|
19432
|
+
onTouchCancel: C,
|
|
19433
|
+
onTouchEnd: C,
|
|
19427
19434
|
onTouchStart: (j) => {
|
|
19428
19435
|
x(S, j.nativeEvent);
|
|
19429
19436
|
const {
|
|
@@ -19625,21 +19632,21 @@ function JSONNestedNode(r) {
|
|
|
19625
19632
|
d ? !1 : x(p, i, g)
|
|
19626
19633
|
), w = useCallback$1(() => {
|
|
19627
19634
|
l && E(!S);
|
|
19628
|
-
}, [l, S]),
|
|
19635
|
+
}, [l, S]), R = S || u && g === 0 ? renderChildNodes({
|
|
19629
19636
|
...r,
|
|
19630
19637
|
circularCache: n,
|
|
19631
19638
|
level: g + 1
|
|
19632
|
-
}) : null, P = /* @__PURE__ */ React__default.createElement("span", v("nestedNodeItemType", S), b), A = c(h, i, P, a(i, o), p),
|
|
19633
|
-
return u ? /* @__PURE__ */ React__default.createElement("li", v("rootNode", ...
|
|
19639
|
+
}) : null, P = /* @__PURE__ */ React__default.createElement("span", v("nestedNodeItemType", S), b), A = c(h, i, P, a(i, o), p), C = [p, h, S, l];
|
|
19640
|
+
return u ? /* @__PURE__ */ React__default.createElement("li", v("rootNode", ...C), /* @__PURE__ */ React__default.createElement("ul", v("rootNodeChildren", ...C), R)) : /* @__PURE__ */ React__default.createElement("li", v("nestedNode", ...C), l && /* @__PURE__ */ React__default.createElement(JSONArrow, {
|
|
19634
19641
|
styling: v,
|
|
19635
19642
|
nodeType: h,
|
|
19636
19643
|
expanded: S,
|
|
19637
19644
|
onClick: w
|
|
19638
|
-
}), /* @__PURE__ */ React__default.createElement("label", _extends$1({}, v(["label", "nestedNodeLabel"], ...
|
|
19645
|
+
}), /* @__PURE__ */ React__default.createElement("label", _extends$1({}, v(["label", "nestedNodeLabel"], ...C), {
|
|
19639
19646
|
onClick: w
|
|
19640
|
-
}), m(...
|
|
19647
|
+
}), m(...C)), /* @__PURE__ */ React__default.createElement("span", _extends$1({}, v("nestedNodeItemString", ...C), {
|
|
19641
19648
|
onClick: w
|
|
19642
|
-
}), A), /* @__PURE__ */ React__default.createElement("ul", v("nestedNodeChildren", ...
|
|
19649
|
+
}), A), /* @__PURE__ */ React__default.createElement("ul", v("nestedNodeChildren", ...C), R));
|
|
19643
19650
|
}
|
|
19644
19651
|
function createItemString$2(r) {
|
|
19645
19652
|
const n = Object.getOwnPropertyNames(r).length;
|
|
@@ -21818,12 +21825,12 @@ function createCurry(r, n, o) {
|
|
|
21818
21825
|
function createHybrid(r, n, o, a, i, l, c, u, d, p) {
|
|
21819
21826
|
var m = n & ARY_FLAG, g = n & BIND_FLAG, h = n & BIND_KEY_FLAG, b = n & (CURRY_FLAG | CURRY_RIGHT_FLAG), x = n & FLIP_FLAG, v = h ? void 0 : createCtor(r);
|
|
21820
21827
|
function S() {
|
|
21821
|
-
for (var E = arguments.length, w = Array(E),
|
|
21822
|
-
w[
|
|
21828
|
+
for (var E = arguments.length, w = Array(E), R = E; R--; )
|
|
21829
|
+
w[R] = arguments[R];
|
|
21823
21830
|
if (b)
|
|
21824
21831
|
var P = getHolder(S), A = countHolders(w, P);
|
|
21825
21832
|
if (a && (w = composeArgs(w, a, i, b)), l && (w = composeArgsRight(w, l, c, b)), E -= A, b && E < p) {
|
|
21826
|
-
var
|
|
21833
|
+
var C = replaceHolders(w, P);
|
|
21827
21834
|
return createRecurry(
|
|
21828
21835
|
r,
|
|
21829
21836
|
n,
|
|
@@ -21831,7 +21838,7 @@ function createHybrid(r, n, o, a, i, l, c, u, d, p) {
|
|
|
21831
21838
|
S.placeholder,
|
|
21832
21839
|
o,
|
|
21833
21840
|
w,
|
|
21834
|
-
|
|
21841
|
+
C,
|
|
21835
21842
|
u,
|
|
21836
21843
|
d,
|
|
21837
21844
|
p - E
|
|
@@ -22700,9 +22707,9 @@ var Prism$1 = function() {
|
|
|
22700
22707
|
b.hasOwnProperty(w) && (S[w] = b[w]);
|
|
22701
22708
|
b.hasOwnProperty(E) || (S[E] = v[E]);
|
|
22702
22709
|
}
|
|
22703
|
-
var
|
|
22710
|
+
var R = x[g];
|
|
22704
22711
|
return x[g] = S, a.languages.DFS(a.languages, function(P, A) {
|
|
22705
|
-
A ===
|
|
22712
|
+
A === R && P != g && (this[P] = S);
|
|
22706
22713
|
}), S;
|
|
22707
22714
|
},
|
|
22708
22715
|
// Traverse a language definition with Depth First Search
|
|
@@ -22712,8 +22719,8 @@ var Prism$1 = function() {
|
|
|
22712
22719
|
for (var E in h)
|
|
22713
22720
|
if (h.hasOwnProperty(E)) {
|
|
22714
22721
|
b.call(h, E, h[E], x || E);
|
|
22715
|
-
var w = h[E],
|
|
22716
|
-
|
|
22722
|
+
var w = h[E], R = a.util.type(w);
|
|
22723
|
+
R === "Object" && !v[S(w)] ? (v[S(w)] = !0, g(w, b, null, v)) : R === "Array" && !v[S(w)] && (v[S(w)] = !0, g(w, b, E, v));
|
|
22717
22724
|
}
|
|
22718
22725
|
}
|
|
22719
22726
|
},
|
|
@@ -22829,8 +22836,8 @@ var Prism$1 = function() {
|
|
|
22829
22836
|
return h;
|
|
22830
22837
|
if (Array.isArray(h)) {
|
|
22831
22838
|
var x = "";
|
|
22832
|
-
return h.forEach(function(
|
|
22833
|
-
x += g(
|
|
22839
|
+
return h.forEach(function(R) {
|
|
22840
|
+
x += g(R, b);
|
|
22834
22841
|
}), x;
|
|
22835
22842
|
}
|
|
22836
22843
|
var v = {
|
|
@@ -22861,10 +22868,10 @@ var Prism$1 = function() {
|
|
|
22861
22868
|
if (!(!b.hasOwnProperty(E) || !b[E])) {
|
|
22862
22869
|
var w = b[E];
|
|
22863
22870
|
w = Array.isArray(w) ? w : [w];
|
|
22864
|
-
for (var
|
|
22865
|
-
if (S && S.cause == E + "," +
|
|
22871
|
+
for (var R = 0; R < w.length; ++R) {
|
|
22872
|
+
if (S && S.cause == E + "," + R)
|
|
22866
22873
|
return;
|
|
22867
|
-
var P = w[
|
|
22874
|
+
var P = w[R], A = P.inside, C = !!P.lookbehind, I = !!P.greedy, j = P.alias;
|
|
22868
22875
|
if (I && !P.pattern.global) {
|
|
22869
22876
|
var k = P.pattern.toString().match(/[imsuy]*$/)[0];
|
|
22870
22877
|
P.pattern = RegExp(P.pattern.source, k + "g");
|
|
@@ -22876,7 +22883,7 @@ var Prism$1 = function() {
|
|
|
22876
22883
|
if (!(L instanceof i)) {
|
|
22877
22884
|
var D = 1, W;
|
|
22878
22885
|
if (I) {
|
|
22879
|
-
if (W = l(O, B, g,
|
|
22886
|
+
if (W = l(O, B, g, C), !W || W.index >= g.length)
|
|
22880
22887
|
break;
|
|
22881
22888
|
var q = W.index, J = W.index + W[0].length, F = B;
|
|
22882
22889
|
for (F += T.value.length; q >= F; )
|
|
@@ -22886,7 +22893,7 @@ var Prism$1 = function() {
|
|
|
22886
22893
|
for (var V = T; V !== h.tail && (F < J || typeof V.value == "string"); V = V.next)
|
|
22887
22894
|
D++, F += V.value.length;
|
|
22888
22895
|
D--, L = g.slice(B, F), W.index -= B;
|
|
22889
|
-
} else if (W = l(O, 0, L,
|
|
22896
|
+
} else if (W = l(O, 0, L, C), !W)
|
|
22890
22897
|
continue;
|
|
22891
22898
|
var q = W.index, G = W[0], ee = L.slice(0, q), z = L.slice(q + G.length), U = B + L.length;
|
|
22892
22899
|
S && U > S.reach && (S.reach = U);
|
|
@@ -22895,7 +22902,7 @@ var Prism$1 = function() {
|
|
|
22895
22902
|
var _ = new i(E, A ? a.tokenize(G, A) : G, j, G);
|
|
22896
22903
|
if (T = d(h, te, _), z && d(h, T, z), D > 1) {
|
|
22897
22904
|
var Q = {
|
|
22898
|
-
cause: E + "," +
|
|
22905
|
+
cause: E + "," + R,
|
|
22899
22906
|
reach: U
|
|
22900
22907
|
};
|
|
22901
22908
|
c(g, h, b, T.prev, B, Q), S && Q.reach > S.reach && (S.reach = Q.reach);
|
|
@@ -24110,8 +24117,8 @@ prism.languages.js = prism.languages.javascript;
|
|
|
24110
24117
|
if (S && E && S.type === "code-language" && E.type === "code-block" && typeof S.content == "string") {
|
|
24111
24118
|
var w = S.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
|
24112
24119
|
w = (/[a-z][\w-]*/i.exec(w) || [""])[0].toLowerCase();
|
|
24113
|
-
var
|
|
24114
|
-
E.alias ? typeof E.alias == "string" ? E.alias = [E.alias,
|
|
24120
|
+
var R = "language-" + w;
|
|
24121
|
+
E.alias ? typeof E.alias == "string" ? E.alias = [E.alias, R] : E.alias.push(R) : E.alias = [R];
|
|
24115
24122
|
}
|
|
24116
24123
|
}
|
|
24117
24124
|
}
|
|
@@ -24238,8 +24245,8 @@ prism.hooks.add("after-tokenize", function r(n) {
|
|
|
24238
24245
|
}
|
|
24239
24246
|
function c(v, S) {
|
|
24240
24247
|
for (var E = 1, w = a; w < o.length; w++) {
|
|
24241
|
-
var
|
|
24242
|
-
if (
|
|
24248
|
+
var R = o[w], P = R.content;
|
|
24249
|
+
if (R.type === "punctuation" && typeof P == "string") {
|
|
24243
24250
|
if (v.test(P))
|
|
24244
24251
|
E++;
|
|
24245
24252
|
else if (S.test(P) && (E--, E === 0))
|
|
@@ -24376,15 +24383,15 @@ prism.languages.sql = {
|
|
|
24376
24383
|
pattern: RegExp(l),
|
|
24377
24384
|
lookbehind: !0
|
|
24378
24385
|
}
|
|
24379
|
-
}), E = 0, w = {},
|
|
24386
|
+
}), E = 0, w = {}, R = S.map(function(I) {
|
|
24380
24387
|
if (typeof I == "string")
|
|
24381
24388
|
return I;
|
|
24382
24389
|
for (var j = I.content, k; b.indexOf(k = u(E++, v)) !== -1; )
|
|
24383
24390
|
;
|
|
24384
24391
|
return w[k] = j, k;
|
|
24385
|
-
}).join(""), P = d(
|
|
24392
|
+
}).join(""), P = d(R, x, v), A = Object.keys(w);
|
|
24386
24393
|
E = 0;
|
|
24387
|
-
function
|
|
24394
|
+
function C(I) {
|
|
24388
24395
|
for (var j = 0; j < I.length; j++) {
|
|
24389
24396
|
if (E >= A.length)
|
|
24390
24397
|
return;
|
|
@@ -24399,17 +24406,17 @@ prism.languages.sql = {
|
|
|
24399
24406
|
var L = T.substring(0, B), D = p(w[O]), W = T.substring(B + O.length), J = [];
|
|
24400
24407
|
if (L && J.push(L), J.push(D), W) {
|
|
24401
24408
|
var F = [W];
|
|
24402
|
-
|
|
24409
|
+
C(F), J.push.apply(J, F);
|
|
24403
24410
|
}
|
|
24404
24411
|
typeof k == "string" ? (I.splice.apply(I, [j, 1].concat(J)), j += J.length - 1) : k.content = J;
|
|
24405
24412
|
}
|
|
24406
24413
|
} else {
|
|
24407
24414
|
var V = k.content;
|
|
24408
|
-
Array.isArray(V) ?
|
|
24415
|
+
Array.isArray(V) ? C(V) : C([V]);
|
|
24409
24416
|
}
|
|
24410
24417
|
}
|
|
24411
24418
|
}
|
|
24412
|
-
return
|
|
24419
|
+
return C(P), new r.Token(v, P, "language-" + v, b);
|
|
24413
24420
|
}
|
|
24414
24421
|
var g = {
|
|
24415
24422
|
javascript: !0,
|
|
@@ -24426,21 +24433,21 @@ prism.languages.sql = {
|
|
|
24426
24433
|
for (var S = 0, E = v.length; S < E; S++) {
|
|
24427
24434
|
var w = v[S];
|
|
24428
24435
|
if (typeof w != "string") {
|
|
24429
|
-
var
|
|
24430
|
-
if (!Array.isArray(
|
|
24431
|
-
typeof
|
|
24436
|
+
var R = w.content;
|
|
24437
|
+
if (!Array.isArray(R)) {
|
|
24438
|
+
typeof R != "string" && x([R]);
|
|
24432
24439
|
continue;
|
|
24433
24440
|
}
|
|
24434
24441
|
if (w.type === "template-string") {
|
|
24435
|
-
var P =
|
|
24436
|
-
if (
|
|
24437
|
-
var A = h(P),
|
|
24442
|
+
var P = R[1];
|
|
24443
|
+
if (R.length === 3 && typeof P != "string" && P.type === "embedded-code") {
|
|
24444
|
+
var A = h(P), C = P.alias, I = Array.isArray(C) ? C[0] : C, j = r.languages[I];
|
|
24438
24445
|
if (!j)
|
|
24439
24446
|
continue;
|
|
24440
|
-
|
|
24447
|
+
R[1] = m(A, j, I);
|
|
24441
24448
|
}
|
|
24442
24449
|
} else
|
|
24443
|
-
x(
|
|
24450
|
+
x(R);
|
|
24444
24451
|
}
|
|
24445
24452
|
}
|
|
24446
24453
|
}
|
|
@@ -25886,7 +25893,7 @@ const prismDefaultProps = {
|
|
|
25886
25893
|
unstyled: S,
|
|
25887
25894
|
radius: E,
|
|
25888
25895
|
getPrismTheme: w,
|
|
25889
|
-
variant:
|
|
25896
|
+
variant: R
|
|
25890
25897
|
} = o, P = __objRest$2(o, [
|
|
25891
25898
|
"className",
|
|
25892
25899
|
"children",
|
|
@@ -25905,13 +25912,13 @@ const prismDefaultProps = {
|
|
|
25905
25912
|
"radius",
|
|
25906
25913
|
"getPrismTheme",
|
|
25907
25914
|
"variant"
|
|
25908
|
-
]), A = v && typeof i == "string" ? i.trim() : i,
|
|
25915
|
+
]), A = v && typeof i == "string" ? i.trim() : i, C = A.split(`
|
|
25909
25916
|
`).length.toString().length, I = useMantineTheme(), j = useClipboard(), k = x || I.colorScheme, { classes: O, cx: T } = useStyles$2({
|
|
25910
25917
|
colorScheme: k,
|
|
25911
25918
|
native: b !== ScrollArea,
|
|
25912
|
-
maxLineSize:
|
|
25919
|
+
maxLineSize: C,
|
|
25913
25920
|
radius: E
|
|
25914
|
-
}, { name: "Prism", classNames: u, styles: d, unstyled: S, variant:
|
|
25921
|
+
}, { name: "Prism", classNames: u, styles: d, unstyled: S, variant: R });
|
|
25915
25922
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadProps$2(__spreadValues$2({
|
|
25916
25923
|
className: T(O.root, a),
|
|
25917
25924
|
ref: n
|
|
@@ -26143,8 +26150,8 @@ var diffMatchPatch = { exports: {} };
|
|
|
26143
26150
|
];
|
|
26144
26151
|
var b = this.diff_halfMatch_(l, c);
|
|
26145
26152
|
if (b) {
|
|
26146
|
-
var x = b[0], v = b[1], S = b[2], E = b[3], w = b[4],
|
|
26147
|
-
return
|
|
26153
|
+
var x = b[0], v = b[1], S = b[2], E = b[3], w = b[4], R = this.diff_main(x, S, u, d), P = this.diff_main(v, E, u, d);
|
|
26154
|
+
return R.concat(
|
|
26148
26155
|
[new n.Diff(i, w)],
|
|
26149
26156
|
P
|
|
26150
26157
|
);
|
|
@@ -26183,14 +26190,14 @@ var diffMatchPatch = { exports: {} };
|
|
|
26183
26190
|
for (var d = l.length, p = c.length, m = Math.ceil((d + p) / 2), g = m, h = 2 * m, b = new Array(h), x = new Array(h), v = 0; v < h; v++)
|
|
26184
26191
|
b[v] = -1, x[v] = -1;
|
|
26185
26192
|
b[g + 1] = 0, x[g + 1] = 0;
|
|
26186
|
-
for (var S = d - p, E = S % 2 != 0, w = 0,
|
|
26187
|
-
for (var I = -
|
|
26193
|
+
for (var S = d - p, E = S % 2 != 0, w = 0, R = 0, P = 0, A = 0, C = 0; C < m && !((/* @__PURE__ */ new Date()).getTime() > u); C++) {
|
|
26194
|
+
for (var I = -C + w; I <= C - R; I += 2) {
|
|
26188
26195
|
var j = g + I, k;
|
|
26189
|
-
I == -
|
|
26196
|
+
I == -C || I != C && b[j - 1] < b[j + 1] ? k = b[j + 1] : k = b[j - 1] + 1;
|
|
26190
26197
|
for (var O = k - I; k < d && O < p && l.charAt(k) == c.charAt(O); )
|
|
26191
26198
|
k++, O++;
|
|
26192
26199
|
if (b[j] = k, k > d)
|
|
26193
|
-
|
|
26200
|
+
R += 2;
|
|
26194
26201
|
else if (O > p)
|
|
26195
26202
|
w += 2;
|
|
26196
26203
|
else if (E) {
|
|
@@ -26202,9 +26209,9 @@ var diffMatchPatch = { exports: {} };
|
|
|
26202
26209
|
}
|
|
26203
26210
|
}
|
|
26204
26211
|
}
|
|
26205
|
-
for (var L = -
|
|
26212
|
+
for (var L = -C + P; L <= C - A; L += 2) {
|
|
26206
26213
|
var T = g + L, B;
|
|
26207
|
-
L == -
|
|
26214
|
+
L == -C || L != C && x[T - 1] < x[T + 1] ? B = x[T + 1] : B = x[T - 1] + 1;
|
|
26208
26215
|
for (var D = B - L; B < d && D < p && l.charAt(d - B - 1) == c.charAt(p - D - 1); )
|
|
26209
26216
|
B++, D++;
|
|
26210
26217
|
if (x[T] = B, B > d)
|
|
@@ -26283,18 +26290,18 @@ var diffMatchPatch = { exports: {} };
|
|
|
26283
26290
|
if (u.length < 4 || d.length * 2 < u.length)
|
|
26284
26291
|
return null;
|
|
26285
26292
|
var p = this;
|
|
26286
|
-
function m(
|
|
26287
|
-
for (var
|
|
26293
|
+
function m(R, P, A) {
|
|
26294
|
+
for (var C = R.substring(A, A + Math.floor(R.length / 4)), I = -1, j = "", k, O, T, B; (I = P.indexOf(C, I + 1)) != -1; ) {
|
|
26288
26295
|
var L = p.diff_commonPrefix(
|
|
26289
|
-
|
|
26296
|
+
R.substring(A),
|
|
26290
26297
|
P.substring(I)
|
|
26291
26298
|
), D = p.diff_commonSuffix(
|
|
26292
|
-
|
|
26299
|
+
R.substring(0, A),
|
|
26293
26300
|
P.substring(0, I)
|
|
26294
26301
|
);
|
|
26295
|
-
j.length < D + L && (j = P.substring(I - D, I) + P.substring(I, I + L), k =
|
|
26302
|
+
j.length < D + L && (j = P.substring(I - D, I) + P.substring(I, I + L), k = R.substring(0, A - D), O = R.substring(A + L), T = P.substring(0, I - D), B = P.substring(I + L));
|
|
26296
26303
|
}
|
|
26297
|
-
return j.length * 2 >=
|
|
26304
|
+
return j.length * 2 >= R.length ? [
|
|
26298
26305
|
k,
|
|
26299
26306
|
O,
|
|
26300
26307
|
T,
|
|
@@ -26342,11 +26349,11 @@ var diffMatchPatch = { exports: {} };
|
|
|
26342
26349
|
m++;
|
|
26343
26350
|
}
|
|
26344
26351
|
}, n.prototype.diff_cleanupSemanticLossless = function(l) {
|
|
26345
|
-
function c(w,
|
|
26346
|
-
if (!w || !
|
|
26352
|
+
function c(w, R) {
|
|
26353
|
+
if (!w || !R)
|
|
26347
26354
|
return 6;
|
|
26348
|
-
var P = w.charAt(w.length - 1), A =
|
|
26349
|
-
return B || L ? 5 : O || T ? 4 :
|
|
26355
|
+
var P = w.charAt(w.length - 1), A = R.charAt(0), C = P.match(n.nonAlphaNumericRegex_), I = A.match(n.nonAlphaNumericRegex_), j = C && P.match(n.whitespaceRegex_), k = I && A.match(n.whitespaceRegex_), O = j && P.match(n.linebreakRegex_), T = k && A.match(n.linebreakRegex_), B = O && w.match(n.blanklineEndRegex_), L = T && R.match(n.blanklineStartRegex_);
|
|
26356
|
+
return B || L ? 5 : O || T ? 4 : C && !j && k ? 3 : j || k ? 2 : C || I ? 1 : 0;
|
|
26350
26357
|
}
|
|
26351
26358
|
for (var u = 1; u < l.length - 1; ) {
|
|
26352
26359
|
if (l[u - 1][0] == i && l[u + 1][0] == i) {
|
|
@@ -26508,15 +26515,15 @@ var diffMatchPatch = { exports: {} };
|
|
|
26508
26515
|
for (x = 0, v = S; x < v; )
|
|
26509
26516
|
m(w, u + v) <= g ? x = v : S = v, v = Math.floor((S - x) / 2 + x);
|
|
26510
26517
|
S = v;
|
|
26511
|
-
var
|
|
26518
|
+
var R = Math.max(1, u - v + 1), P = Math.min(u + v, l.length) + c.length, A = Array(P + 2);
|
|
26512
26519
|
A[P + 1] = (1 << w) - 1;
|
|
26513
|
-
for (var
|
|
26514
|
-
var I = d[l.charAt(
|
|
26515
|
-
if (w === 0 ? A[
|
|
26516
|
-
var j = m(w,
|
|
26520
|
+
for (var C = P; C >= R; C--) {
|
|
26521
|
+
var I = d[l.charAt(C - 1)];
|
|
26522
|
+
if (w === 0 ? A[C] = (A[C + 1] << 1 | 1) & I : A[C] = (A[C + 1] << 1 | 1) & I | ((E[C + 1] | E[C]) << 1 | 1) | E[C + 1], A[C] & b) {
|
|
26523
|
+
var j = m(w, C - 1);
|
|
26517
26524
|
if (j <= g)
|
|
26518
|
-
if (g = j, h =
|
|
26519
|
-
|
|
26525
|
+
if (g = j, h = C - 1, h > u)
|
|
26526
|
+
R = Math.max(1, 2 * u - h);
|
|
26520
26527
|
else
|
|
26521
26528
|
break;
|
|
26522
26529
|
}
|
|
@@ -26576,19 +26583,19 @@ var diffMatchPatch = { exports: {} };
|
|
|
26576
26583
|
if (p.length === 0)
|
|
26577
26584
|
return [];
|
|
26578
26585
|
for (var m = [], g = new n.patch_obj(), h = 0, b = 0, x = 0, v = d, S = d, E = 0; E < p.length; E++) {
|
|
26579
|
-
var w = p[E][0],
|
|
26586
|
+
var w = p[E][0], R = p[E][1];
|
|
26580
26587
|
switch (!h && w !== i && (g.start1 = b, g.start2 = x), w) {
|
|
26581
26588
|
case a:
|
|
26582
|
-
g.diffs[h++] = p[E], g.length2 +=
|
|
26589
|
+
g.diffs[h++] = p[E], g.length2 += R.length, S = S.substring(0, x) + R + S.substring(x);
|
|
26583
26590
|
break;
|
|
26584
26591
|
case o:
|
|
26585
|
-
g.length1 +=
|
|
26592
|
+
g.length1 += R.length, g.diffs[h++] = p[E], S = S.substring(0, x) + S.substring(x + R.length);
|
|
26586
26593
|
break;
|
|
26587
26594
|
case i:
|
|
26588
|
-
|
|
26595
|
+
R.length <= 2 * this.Patch_Margin && h && p.length != E + 1 ? (g.diffs[h++] = p[E], g.length1 += R.length, g.length2 += R.length) : R.length >= 2 * this.Patch_Margin && h && (this.patch_addContext_(g, v), m.push(g), g = new n.patch_obj(), h = 0, v = S, b = x);
|
|
26589
26596
|
break;
|
|
26590
26597
|
}
|
|
26591
|
-
w !== a && (b +=
|
|
26598
|
+
w !== a && (b += R.length), w !== o && (x += R.length);
|
|
26592
26599
|
}
|
|
26593
26600
|
return h && (this.patch_addContext_(g, v), m.push(g)), m;
|
|
26594
26601
|
}, n.prototype.patch_deepCopy = function(l) {
|
|
@@ -26629,8 +26636,8 @@ var diffMatchPatch = { exports: {} };
|
|
|
26629
26636
|
p[m] = !1;
|
|
26630
26637
|
else {
|
|
26631
26638
|
this.diff_cleanupSemanticLossless(S);
|
|
26632
|
-
for (var E = 0, w,
|
|
26633
|
-
var P = l[m].diffs[
|
|
26639
|
+
for (var E = 0, w, R = 0; R < l[m].diffs.length; R++) {
|
|
26640
|
+
var P = l[m].diffs[R];
|
|
26634
26641
|
P[0] !== i && (w = this.diff_xIndex(S, E)), P[0] === a ? c = c.substring(0, b + w) + P[1] + c.substring(b + w) : P[0] === o && (c = c.substring(0, b + w) + c.substring(b + this.diff_xIndex(
|
|
26635
26642
|
S,
|
|
26636
26643
|
E + P[1].length
|
|
@@ -27332,7 +27339,7 @@ function requireTemplates() {
|
|
|
27332
27339
|
return templates = (p, m) => {
|
|
27333
27340
|
const g = [], h = [];
|
|
27334
27341
|
let b = [];
|
|
27335
|
-
if (m.replace(r, (x, v, S, E, w,
|
|
27342
|
+
if (m.replace(r, (x, v, S, E, w, R) => {
|
|
27336
27343
|
if (v)
|
|
27337
27344
|
b.push(l(v));
|
|
27338
27345
|
else if (E) {
|
|
@@ -27343,7 +27350,7 @@ function requireTemplates() {
|
|
|
27343
27350
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
27344
27351
|
h.push(d(p, g)(b.join(""))), b = [], g.pop();
|
|
27345
27352
|
} else
|
|
27346
|
-
b.push(
|
|
27353
|
+
b.push(R);
|
|
27347
27354
|
}), h.push(b.join("")), g.length > 0) {
|
|
27348
27355
|
const x = `Chalk template literal is missing ${g.length} closing bracket${g.length === 1 ? "" : "s"} (\`}\`)`;
|
|
27349
27356
|
throw new Error(x);
|
|
@@ -27898,21 +27905,21 @@ const diffFilter$2 = function r(n) {
|
|
|
27898
27905
|
arrayIndexOf(S.indices1, l - a) < 0 && (b[`_${l}`] = [d[l], 0, 0], E.push(l));
|
|
27899
27906
|
let w = !0;
|
|
27900
27907
|
n.options && n.options.arrays && n.options.arrays.detectMove === !1 && (w = !1);
|
|
27901
|
-
let
|
|
27902
|
-
n.options && n.options.arrays && n.options.arrays.includeValueOnMove && (
|
|
27908
|
+
let R = !1;
|
|
27909
|
+
n.options && n.options.arrays && n.options.arrays.includeValueOnMove && (R = !0);
|
|
27903
27910
|
const P = E.length;
|
|
27904
27911
|
for (l = a; l < g - i; l++) {
|
|
27905
27912
|
const A = arrayIndexOf(S.indices2, l - a);
|
|
27906
27913
|
if (A < 0) {
|
|
27907
|
-
let
|
|
27914
|
+
let C = !1;
|
|
27908
27915
|
if (w && P > 0) {
|
|
27909
27916
|
for (let I = 0; I < P; I++)
|
|
27910
27917
|
if (c = E[I], matchItems(x, v, c - a, l - a, o)) {
|
|
27911
|
-
b[`_${c}`].splice(1, 2, l, ARRAY_MOVE),
|
|
27918
|
+
b[`_${c}`].splice(1, 2, l, ARRAY_MOVE), R || (b[`_${c}`][0] = ""), u = l, h = new DiffContext(n.left[c], n.right[u]), n.push(h, u), E.splice(I, 1), C = !0;
|
|
27912
27919
|
break;
|
|
27913
27920
|
}
|
|
27914
27921
|
}
|
|
27915
|
-
|
|
27922
|
+
C || (b[l] = [p[l]]);
|
|
27916
27923
|
} else
|
|
27917
27924
|
c = S.indices1[A] + a, u = S.indices2[A] + a, h = new DiffContext(n.left[c], n.right[u]), n.push(h, u);
|
|
27918
27925
|
}
|
|
@@ -28346,28 +28353,28 @@ chalkColor("green"), chalkColor("red"), chalkColor("gray"), chalkColor("yellow")
|
|
|
28346
28353
|
var require_react_is_production_min = __commonJS({
|
|
28347
28354
|
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js"(r) {
|
|
28348
28355
|
init_react_shim();
|
|
28349
|
-
var n = typeof Symbol == "function" && Symbol.for, o = n ? Symbol.for("react.element") : 60103, a = n ? Symbol.for("react.portal") : 60106, i = n ? Symbol.for("react.fragment") : 60107, l = n ? Symbol.for("react.strict_mode") : 60108, c = n ? Symbol.for("react.profiler") : 60114, u = n ? Symbol.for("react.provider") : 60109, d = n ? Symbol.for("react.context") : 60110, p = n ? Symbol.for("react.async_mode") : 60111, m = n ? Symbol.for("react.concurrent_mode") : 60111, g = n ? Symbol.for("react.forward_ref") : 60112, h = n ? Symbol.for("react.suspense") : 60113, b = n ? Symbol.for("react.suspense_list") : 60120, x = n ? Symbol.for("react.memo") : 60115, v = n ? Symbol.for("react.lazy") : 60116, S = n ? Symbol.for("react.block") : 60121, E = n ? Symbol.for("react.fundamental") : 60117, w = n ? Symbol.for("react.responder") : 60118,
|
|
28350
|
-
function P(
|
|
28351
|
-
if (typeof
|
|
28352
|
-
var I =
|
|
28356
|
+
var n = typeof Symbol == "function" && Symbol.for, o = n ? Symbol.for("react.element") : 60103, a = n ? Symbol.for("react.portal") : 60106, i = n ? Symbol.for("react.fragment") : 60107, l = n ? Symbol.for("react.strict_mode") : 60108, c = n ? Symbol.for("react.profiler") : 60114, u = n ? Symbol.for("react.provider") : 60109, d = n ? Symbol.for("react.context") : 60110, p = n ? Symbol.for("react.async_mode") : 60111, m = n ? Symbol.for("react.concurrent_mode") : 60111, g = n ? Symbol.for("react.forward_ref") : 60112, h = n ? Symbol.for("react.suspense") : 60113, b = n ? Symbol.for("react.suspense_list") : 60120, x = n ? Symbol.for("react.memo") : 60115, v = n ? Symbol.for("react.lazy") : 60116, S = n ? Symbol.for("react.block") : 60121, E = n ? Symbol.for("react.fundamental") : 60117, w = n ? Symbol.for("react.responder") : 60118, R = n ? Symbol.for("react.scope") : 60119;
|
|
28357
|
+
function P(C) {
|
|
28358
|
+
if (typeof C == "object" && C !== null) {
|
|
28359
|
+
var I = C.$$typeof;
|
|
28353
28360
|
switch (I) {
|
|
28354
28361
|
case o:
|
|
28355
|
-
switch (
|
|
28362
|
+
switch (C = C.type, C) {
|
|
28356
28363
|
case p:
|
|
28357
28364
|
case m:
|
|
28358
28365
|
case i:
|
|
28359
28366
|
case c:
|
|
28360
28367
|
case l:
|
|
28361
28368
|
case h:
|
|
28362
|
-
return
|
|
28369
|
+
return C;
|
|
28363
28370
|
default:
|
|
28364
|
-
switch (
|
|
28371
|
+
switch (C = C && C.$$typeof, C) {
|
|
28365
28372
|
case d:
|
|
28366
28373
|
case g:
|
|
28367
28374
|
case v:
|
|
28368
28375
|
case x:
|
|
28369
28376
|
case u:
|
|
28370
|
-
return
|
|
28377
|
+
return C;
|
|
28371
28378
|
default:
|
|
28372
28379
|
return I;
|
|
28373
28380
|
}
|
|
@@ -28377,44 +28384,44 @@ var require_react_is_production_min = __commonJS({
|
|
|
28377
28384
|
}
|
|
28378
28385
|
}
|
|
28379
28386
|
}
|
|
28380
|
-
function A(
|
|
28381
|
-
return P(
|
|
28382
|
-
}
|
|
28383
|
-
r.AsyncMode = p, r.ConcurrentMode = m, r.ContextConsumer = d, r.ContextProvider = u, r.Element = o, r.ForwardRef = g, r.Fragment = i, r.Lazy = v, r.Memo = x, r.Portal = a, r.Profiler = c, r.StrictMode = l, r.Suspense = h, r.isAsyncMode = function(
|
|
28384
|
-
return A(
|
|
28385
|
-
}, r.isConcurrentMode = A, r.isContextConsumer = function(
|
|
28386
|
-
return P(
|
|
28387
|
-
}, r.isContextProvider = function(
|
|
28388
|
-
return P(
|
|
28389
|
-
}, r.isElement = function(
|
|
28390
|
-
return typeof
|
|
28391
|
-
}, r.isForwardRef = function(
|
|
28392
|
-
return P(
|
|
28393
|
-
}, r.isFragment = function(
|
|
28394
|
-
return P(
|
|
28395
|
-
}, r.isLazy = function(
|
|
28396
|
-
return P(
|
|
28397
|
-
}, r.isMemo = function(
|
|
28398
|
-
return P(
|
|
28399
|
-
}, r.isPortal = function(
|
|
28400
|
-
return P(
|
|
28401
|
-
}, r.isProfiler = function(
|
|
28402
|
-
return P(
|
|
28403
|
-
}, r.isStrictMode = function(
|
|
28404
|
-
return P(
|
|
28405
|
-
}, r.isSuspense = function(
|
|
28406
|
-
return P(
|
|
28407
|
-
}, r.isValidElementType = function(
|
|
28408
|
-
return typeof
|
|
28387
|
+
function A(C) {
|
|
28388
|
+
return P(C) === m;
|
|
28389
|
+
}
|
|
28390
|
+
r.AsyncMode = p, r.ConcurrentMode = m, r.ContextConsumer = d, r.ContextProvider = u, r.Element = o, r.ForwardRef = g, r.Fragment = i, r.Lazy = v, r.Memo = x, r.Portal = a, r.Profiler = c, r.StrictMode = l, r.Suspense = h, r.isAsyncMode = function(C) {
|
|
28391
|
+
return A(C) || P(C) === p;
|
|
28392
|
+
}, r.isConcurrentMode = A, r.isContextConsumer = function(C) {
|
|
28393
|
+
return P(C) === d;
|
|
28394
|
+
}, r.isContextProvider = function(C) {
|
|
28395
|
+
return P(C) === u;
|
|
28396
|
+
}, r.isElement = function(C) {
|
|
28397
|
+
return typeof C == "object" && C !== null && C.$$typeof === o;
|
|
28398
|
+
}, r.isForwardRef = function(C) {
|
|
28399
|
+
return P(C) === g;
|
|
28400
|
+
}, r.isFragment = function(C) {
|
|
28401
|
+
return P(C) === i;
|
|
28402
|
+
}, r.isLazy = function(C) {
|
|
28403
|
+
return P(C) === v;
|
|
28404
|
+
}, r.isMemo = function(C) {
|
|
28405
|
+
return P(C) === x;
|
|
28406
|
+
}, r.isPortal = function(C) {
|
|
28407
|
+
return P(C) === a;
|
|
28408
|
+
}, r.isProfiler = function(C) {
|
|
28409
|
+
return P(C) === c;
|
|
28410
|
+
}, r.isStrictMode = function(C) {
|
|
28411
|
+
return P(C) === l;
|
|
28412
|
+
}, r.isSuspense = function(C) {
|
|
28413
|
+
return P(C) === h;
|
|
28414
|
+
}, r.isValidElementType = function(C) {
|
|
28415
|
+
return typeof C == "string" || typeof C == "function" || C === i || C === m || C === c || C === l || C === h || C === b || typeof C == "object" && C !== null && (C.$$typeof === v || C.$$typeof === x || C.$$typeof === u || C.$$typeof === d || C.$$typeof === g || C.$$typeof === E || C.$$typeof === w || C.$$typeof === R || C.$$typeof === S);
|
|
28409
28416
|
}, r.typeOf = P;
|
|
28410
28417
|
}
|
|
28411
28418
|
}), require_react_is_development = __commonJS({
|
|
28412
28419
|
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(r) {
|
|
28413
28420
|
init_react_shim(), process.env.NODE_ENV !== "production" && function() {
|
|
28414
|
-
var n = typeof Symbol == "function" && Symbol.for, o = n ? Symbol.for("react.element") : 60103, a = n ? Symbol.for("react.portal") : 60106, i = n ? Symbol.for("react.fragment") : 60107, l = n ? Symbol.for("react.strict_mode") : 60108, c = n ? Symbol.for("react.profiler") : 60114, u = n ? Symbol.for("react.provider") : 60109, d = n ? Symbol.for("react.context") : 60110, p = n ? Symbol.for("react.async_mode") : 60111, m = n ? Symbol.for("react.concurrent_mode") : 60111, g = n ? Symbol.for("react.forward_ref") : 60112, h = n ? Symbol.for("react.suspense") : 60113, b = n ? Symbol.for("react.suspense_list") : 60120, x = n ? Symbol.for("react.memo") : 60115, v = n ? Symbol.for("react.lazy") : 60116, S = n ? Symbol.for("react.block") : 60121, E = n ? Symbol.for("react.fundamental") : 60117, w = n ? Symbol.for("react.responder") : 60118,
|
|
28421
|
+
var n = typeof Symbol == "function" && Symbol.for, o = n ? Symbol.for("react.element") : 60103, a = n ? Symbol.for("react.portal") : 60106, i = n ? Symbol.for("react.fragment") : 60107, l = n ? Symbol.for("react.strict_mode") : 60108, c = n ? Symbol.for("react.profiler") : 60114, u = n ? Symbol.for("react.provider") : 60109, d = n ? Symbol.for("react.context") : 60110, p = n ? Symbol.for("react.async_mode") : 60111, m = n ? Symbol.for("react.concurrent_mode") : 60111, g = n ? Symbol.for("react.forward_ref") : 60112, h = n ? Symbol.for("react.suspense") : 60113, b = n ? Symbol.for("react.suspense_list") : 60120, x = n ? Symbol.for("react.memo") : 60115, v = n ? Symbol.for("react.lazy") : 60116, S = n ? Symbol.for("react.block") : 60121, E = n ? Symbol.for("react.fundamental") : 60117, w = n ? Symbol.for("react.responder") : 60118, R = n ? Symbol.for("react.scope") : 60119;
|
|
28415
28422
|
function P(Z) {
|
|
28416
28423
|
return typeof Z == "string" || typeof Z == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
28417
|
-
Z === i || Z === m || Z === c || Z === l || Z === h || Z === b || typeof Z == "object" && Z !== null && (Z.$$typeof === v || Z.$$typeof === x || Z.$$typeof === u || Z.$$typeof === d || Z.$$typeof === g || Z.$$typeof === E || Z.$$typeof === w || Z.$$typeof ===
|
|
28424
|
+
Z === i || Z === m || Z === c || Z === l || Z === h || Z === b || typeof Z == "object" && Z !== null && (Z.$$typeof === v || Z.$$typeof === x || Z.$$typeof === u || Z.$$typeof === d || Z.$$typeof === g || Z.$$typeof === E || Z.$$typeof === w || Z.$$typeof === R || Z.$$typeof === S);
|
|
28418
28425
|
}
|
|
28419
28426
|
function A(Z) {
|
|
28420
28427
|
if (typeof Z == "object" && Z !== null) {
|
|
@@ -28448,7 +28455,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28448
28455
|
}
|
|
28449
28456
|
}
|
|
28450
28457
|
}
|
|
28451
|
-
var
|
|
28458
|
+
var C = p, I = m, j = d, k = u, O = o, T = g, B = i, L = v, D = x, W = a, J = c, F = l, V = h, q = !1;
|
|
28452
28459
|
function G(Z) {
|
|
28453
28460
|
return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ee(Z) || A(Z) === p;
|
|
28454
28461
|
}
|
|
@@ -28488,7 +28495,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28488
28495
|
function K(Z) {
|
|
28489
28496
|
return A(Z) === h;
|
|
28490
28497
|
}
|
|
28491
|
-
r.AsyncMode =
|
|
28498
|
+
r.AsyncMode = C, r.ConcurrentMode = I, r.ContextConsumer = j, r.ContextProvider = k, r.Element = O, r.ForwardRef = T, r.Fragment = B, r.Lazy = L, r.Memo = D, r.Portal = W, r.Profiler = J, r.StrictMode = F, r.Suspense = V, r.isAsyncMode = G, r.isConcurrentMode = ee, r.isContextConsumer = z, r.isContextProvider = U, r.isElement = te, r.isForwardRef = _, r.isFragment = Q, r.isLazy = ne, r.isMemo = re, r.isPortal = $, r.isProfiler = ae, r.isStrictMode = se, r.isSuspense = K, r.isValidElementType = P, r.typeOf = A;
|
|
28492
28499
|
}();
|
|
28493
28500
|
}
|
|
28494
28501
|
}), require_react_is = __commonJS({
|
|
@@ -28620,17 +28627,17 @@ var require_react_is_production_min = __commonJS({
|
|
|
28620
28627
|
return U;
|
|
28621
28628
|
}
|
|
28622
28629
|
var x = "<<anonymous>>", v = {
|
|
28623
|
-
array:
|
|
28624
|
-
bigint:
|
|
28625
|
-
bool:
|
|
28626
|
-
func:
|
|
28627
|
-
number:
|
|
28628
|
-
object:
|
|
28629
|
-
string:
|
|
28630
|
-
symbol:
|
|
28630
|
+
array: R("array"),
|
|
28631
|
+
bigint: R("bigint"),
|
|
28632
|
+
bool: R("boolean"),
|
|
28633
|
+
func: R("function"),
|
|
28634
|
+
number: R("number"),
|
|
28635
|
+
object: R("object"),
|
|
28636
|
+
string: R("string"),
|
|
28637
|
+
symbol: R("symbol"),
|
|
28631
28638
|
any: P(),
|
|
28632
28639
|
arrayOf: A,
|
|
28633
|
-
element:
|
|
28640
|
+
element: C(),
|
|
28634
28641
|
elementType: I(),
|
|
28635
28642
|
instanceOf: j,
|
|
28636
28643
|
node: B(),
|
|
@@ -28670,7 +28677,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28670
28677
|
var Q = _.bind(null, !1);
|
|
28671
28678
|
return Q.isRequired = _.bind(null, !0), Q;
|
|
28672
28679
|
}
|
|
28673
|
-
function
|
|
28680
|
+
function R(z) {
|
|
28674
28681
|
function U(te, _, Q, ne, re, $) {
|
|
28675
28682
|
var ae = te[_], se = V(ae);
|
|
28676
28683
|
if (se !== z) {
|
|
@@ -28705,7 +28712,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28705
28712
|
}
|
|
28706
28713
|
return w(U);
|
|
28707
28714
|
}
|
|
28708
|
-
function
|
|
28715
|
+
function C() {
|
|
28709
28716
|
function z(U, te, _, Q, ne) {
|
|
28710
28717
|
var re = U[te];
|
|
28711
28718
|
if (!p(re)) {
|
|
@@ -30000,14 +30007,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30000
30007
|
r.eighties = n(E);
|
|
30001
30008
|
var w = require_embers();
|
|
30002
30009
|
r.embers = n(w);
|
|
30003
|
-
var
|
|
30004
|
-
r.flat = n(
|
|
30010
|
+
var R = require_flat();
|
|
30011
|
+
r.flat = n(R);
|
|
30005
30012
|
var P = require_google();
|
|
30006
30013
|
r.google = n(P);
|
|
30007
30014
|
var A = require_grayscale();
|
|
30008
30015
|
r.grayscale = n(A);
|
|
30009
|
-
var
|
|
30010
|
-
r.greenscreen = n(
|
|
30016
|
+
var C = require_greenscreen();
|
|
30017
|
+
r.greenscreen = n(C);
|
|
30011
30018
|
var I = require_harmonic();
|
|
30012
30019
|
r.harmonic = n(I);
|
|
30013
30020
|
var j = require_hopscotch();
|
|
@@ -30243,17 +30250,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30243
30250
|
}, u.get.rgb = function(m) {
|
|
30244
30251
|
if (!m)
|
|
30245
30252
|
return null;
|
|
30246
|
-
var g = /^#([a-f0-9]{3,4})$/i, h = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i, b = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, x = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, v = /^(\w+)$/, S = [0, 0, 0, 1], E, w,
|
|
30253
|
+
var g = /^#([a-f0-9]{3,4})$/i, h = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i, b = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, x = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, v = /^(\w+)$/, S = [0, 0, 0, 1], E, w, R;
|
|
30247
30254
|
if (E = m.match(h)) {
|
|
30248
|
-
for (
|
|
30255
|
+
for (R = E[2], E = E[1], w = 0; w < 3; w++) {
|
|
30249
30256
|
var P = w * 2;
|
|
30250
30257
|
S[w] = parseInt(E.slice(P, P + 2), 16);
|
|
30251
30258
|
}
|
|
30252
|
-
|
|
30259
|
+
R && (S[3] = parseInt(R, 16) / 255);
|
|
30253
30260
|
} else if (E = m.match(g)) {
|
|
30254
|
-
for (E = E[1],
|
|
30261
|
+
for (E = E[1], R = E[3], w = 0; w < 3; w++)
|
|
30255
30262
|
S[w] = parseInt(E[w] + E[w], 16);
|
|
30256
|
-
|
|
30263
|
+
R && (S[3] = parseInt(R + R, 16) / 255);
|
|
30257
30264
|
} else if (E = m.match(b)) {
|
|
30258
30265
|
for (w = 0; w < 3; w++)
|
|
30259
30266
|
S[w] = parseInt(E[w + 1], 0);
|
|
@@ -30499,16 +30506,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30499
30506
|
}
|
|
30500
30507
|
var c, u, d;
|
|
30501
30508
|
l.rgb.hsl = function(m) {
|
|
30502
|
-
var g = m[0] / 255, h = m[1] / 255, b = m[2] / 255, x = Math.min(g, h, b), v = Math.max(g, h, b), S = v - x, E, w,
|
|
30503
|
-
return v === x ? E = 0 : g === v ? E = (h - b) / S : h === v ? E = 2 + (b - g) / S : b === v && (E = 4 + (g - h) / S), E = Math.min(E * 60, 360), E < 0 && (E += 360),
|
|
30509
|
+
var g = m[0] / 255, h = m[1] / 255, b = m[2] / 255, x = Math.min(g, h, b), v = Math.max(g, h, b), S = v - x, E, w, R;
|
|
30510
|
+
return v === x ? E = 0 : g === v ? E = (h - b) / S : h === v ? E = 2 + (b - g) / S : b === v && (E = 4 + (g - h) / S), E = Math.min(E * 60, 360), E < 0 && (E += 360), R = (x + v) / 2, v === x ? w = 0 : R <= 0.5 ? w = S / (v + x) : w = S / (2 - v - x), [E, w * 100, R * 100];
|
|
30504
30511
|
}, l.rgb.hsv = function(m) {
|
|
30505
|
-
var g, h, b, x, v, S = m[0] / 255, E = m[1] / 255, w = m[2] / 255,
|
|
30506
|
-
return (
|
|
30512
|
+
var g, h, b, x, v, S = m[0] / 255, E = m[1] / 255, w = m[2] / 255, R = Math.max(S, E, w), P = R - Math.min(S, E, w), A = function(C) {
|
|
30513
|
+
return (R - C) / 6 / P + 1 / 2;
|
|
30507
30514
|
};
|
|
30508
|
-
return P === 0 ? x = v = 0 : (v = P /
|
|
30515
|
+
return P === 0 ? x = v = 0 : (v = P / R, g = A(S), h = A(E), b = A(w), S === R ? x = b - h : E === R ? x = 1 / 3 + g - b : w === R && (x = 2 / 3 + h - g), x < 0 ? x += 1 : x > 1 && (x -= 1)), [
|
|
30509
30516
|
x * 360,
|
|
30510
30517
|
v * 100,
|
|
30511
|
-
|
|
30518
|
+
R * 100
|
|
30512
30519
|
];
|
|
30513
30520
|
}, l.rgb.hwb = function(m) {
|
|
30514
30521
|
var g = m[0], h = m[1], b = m[2], x = l.rgb.hsl(m)[0], v = 1 / 255 * Math.min(g, Math.min(h, b));
|
|
@@ -30546,8 +30553,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30546
30553
|
if (h === 0)
|
|
30547
30554
|
return w = b * 255, [w, w, w];
|
|
30548
30555
|
b < 0.5 ? v = b * (1 + h) : v = b + h - b * h, x = 2 * b - v, E = [0, 0, 0];
|
|
30549
|
-
for (var
|
|
30550
|
-
S = g + 1 / 3 * -(
|
|
30556
|
+
for (var R = 0; R < 3; R++)
|
|
30557
|
+
S = g + 1 / 3 * -(R - 1), S < 0 && S++, S > 1 && S--, 6 * S < 1 ? w = x + (v - x) * 6 * S : 2 * S < 1 ? w = v : 3 * S < 2 ? w = x + (v - x) * (2 / 3 - S) * 6 : w = x, E[R] = w * 255;
|
|
30551
30558
|
return E;
|
|
30552
30559
|
}, l.hsl.hsv = function(m) {
|
|
30553
30560
|
var g = m[0], h = m[1] / 100, b = m[2] / 100, x = h, v = Math.max(b, 0.01), S, E;
|
|
@@ -30574,30 +30581,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30574
30581
|
}, l.hwb.rgb = function(m) {
|
|
30575
30582
|
var g = m[0] / 360, h = m[1] / 100, b = m[2] / 100, x = h + b, v, S, E, w;
|
|
30576
30583
|
x > 1 && (h /= x, b /= x), v = Math.floor(6 * g), S = 1 - b, E = 6 * g - v, v & 1 && (E = 1 - E), w = h + E * (S - h);
|
|
30577
|
-
var
|
|
30584
|
+
var R, P, A;
|
|
30578
30585
|
switch (v) {
|
|
30579
30586
|
default:
|
|
30580
30587
|
case 6:
|
|
30581
30588
|
case 0:
|
|
30582
|
-
|
|
30589
|
+
R = S, P = w, A = h;
|
|
30583
30590
|
break;
|
|
30584
30591
|
case 1:
|
|
30585
|
-
|
|
30592
|
+
R = w, P = S, A = h;
|
|
30586
30593
|
break;
|
|
30587
30594
|
case 2:
|
|
30588
|
-
|
|
30595
|
+
R = h, P = S, A = w;
|
|
30589
30596
|
break;
|
|
30590
30597
|
case 3:
|
|
30591
|
-
|
|
30598
|
+
R = h, P = w, A = S;
|
|
30592
30599
|
break;
|
|
30593
30600
|
case 4:
|
|
30594
|
-
|
|
30601
|
+
R = w, P = h, A = S;
|
|
30595
30602
|
break;
|
|
30596
30603
|
case 5:
|
|
30597
|
-
|
|
30604
|
+
R = S, P = h, A = w;
|
|
30598
30605
|
break;
|
|
30599
30606
|
}
|
|
30600
|
-
return [
|
|
30607
|
+
return [R * 255, P * 255, A * 255];
|
|
30601
30608
|
}, l.cmyk.rgb = function(m) {
|
|
30602
30609
|
var g = m[0] / 100, h = m[1] / 100, b = m[2] / 100, x = m[3] / 100, v, S, E;
|
|
30603
30610
|
return v = 1 - Math.min(1, g * (1 - x) + x), S = 1 - Math.min(1, h * (1 - x) + x), E = 1 - Math.min(1, b * (1 - x) + x), [v * 255, S * 255, E * 255];
|
|
@@ -30610,8 +30617,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30610
30617
|
}, l.lab.xyz = function(m) {
|
|
30611
30618
|
var g = m[0], h = m[1], b = m[2], x, v, S;
|
|
30612
30619
|
v = (g + 16) / 116, x = h / 500 + v, S = v - b / 200;
|
|
30613
|
-
var E = Math.pow(v, 3), w = Math.pow(x, 3),
|
|
30614
|
-
return v = E > 8856e-6 ? E : (v - 16 / 116) / 7.787, x = w > 8856e-6 ? w : (x - 16 / 116) / 7.787, S =
|
|
30620
|
+
var E = Math.pow(v, 3), w = Math.pow(x, 3), R = Math.pow(S, 3);
|
|
30621
|
+
return v = E > 8856e-6 ? E : (v - 16 / 116) / 7.787, x = w > 8856e-6 ? w : (x - 16 / 116) / 7.787, S = R > 8856e-6 ? R : (S - 16 / 116) / 7.787, x *= 95.047, v *= 100, S *= 108.883, [x, v, S];
|
|
30615
30622
|
}, l.lab.lch = function(m) {
|
|
30616
30623
|
var g = m[0], h = m[1], b = m[2], x, v, S;
|
|
30617
30624
|
return x = Math.atan2(b, h), v = x * 360 / 2 / Math.PI, v < 0 && (v += 360), S = Math.sqrt(h * h + b * b), [g, S, v];
|
|
@@ -30830,10 +30837,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30830
30837
|
else if (v instanceof d)
|
|
30831
30838
|
this.model = v.model, this.color = v.color.slice(), this.valpha = v.valpha;
|
|
30832
30839
|
else if (typeof v == "string") {
|
|
30833
|
-
var
|
|
30834
|
-
if (
|
|
30840
|
+
var R = o.get(v);
|
|
30841
|
+
if (R === null)
|
|
30835
30842
|
throw new Error("Unable to parse color from string: " + v);
|
|
30836
|
-
this.model =
|
|
30843
|
+
this.model = R.model, w = a[this.model].channels, this.color = R.value.slice(0, w), this.valpha = typeof R.value[w] == "number" ? R.value[w] : 1;
|
|
30837
30844
|
} else if (v.length) {
|
|
30838
30845
|
this.model = S || "rgb", w = a[this.model].channels;
|
|
30839
30846
|
var P = i.call(v, 0, w);
|
|
@@ -30848,10 +30855,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30848
30855
|
this.valpha = 1;
|
|
30849
30856
|
var A = Object.keys(v);
|
|
30850
30857
|
"alpha" in v && (A.splice(A.indexOf("alpha"), 1), this.valpha = typeof v.alpha == "number" ? v.alpha : 0);
|
|
30851
|
-
var
|
|
30852
|
-
if (!(
|
|
30858
|
+
var C = A.sort().join("");
|
|
30859
|
+
if (!(C in c))
|
|
30853
30860
|
throw new Error("Unable to parse color from object: " + JSON.stringify(v));
|
|
30854
|
-
this.model = c[
|
|
30861
|
+
this.model = c[C];
|
|
30855
30862
|
var I = a[this.model].labels, j = [];
|
|
30856
30863
|
for (E = 0; E < I.length; E++)
|
|
30857
30864
|
j.push(v[I[E]]);
|
|
@@ -31007,12 +31014,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31007
31014
|
mix: function(v, S) {
|
|
31008
31015
|
if (!v || !v.rgb)
|
|
31009
31016
|
throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof v);
|
|
31010
|
-
var E = v.rgb(), w = this.rgb(),
|
|
31017
|
+
var E = v.rgb(), w = this.rgb(), R = S === void 0 ? 0.5 : S, P = 2 * R - 1, A = E.alpha() - w.alpha(), C = ((P * A === -1 ? P : (P + A) / (1 + P * A)) + 1) / 2, I = 1 - C;
|
|
31011
31018
|
return d.rgb(
|
|
31012
|
-
|
|
31013
|
-
|
|
31014
|
-
|
|
31015
|
-
E.alpha() *
|
|
31019
|
+
C * E.red() + I * w.red(),
|
|
31020
|
+
C * E.green() + I * w.green(),
|
|
31021
|
+
C * E.blue() + I * w.blue(),
|
|
31022
|
+
E.alpha() * R + w.alpha() * (1 - R)
|
|
31016
31023
|
);
|
|
31017
31024
|
}
|
|
31018
31025
|
}, Object.keys(a).forEach(function(v) {
|
|
@@ -31042,8 +31049,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31042
31049
|
return v = Array.isArray(v) ? v : [v], v.forEach(function(w) {
|
|
31043
31050
|
(u[w] || (u[w] = []))[S] = E;
|
|
31044
31051
|
}), v = v[0], function(w) {
|
|
31045
|
-
var
|
|
31046
|
-
return arguments.length ? (E && (w = E(w)),
|
|
31052
|
+
var R;
|
|
31053
|
+
return arguments.length ? (E && (w = E(w)), R = this[v](), R.color[S] = w, R) : (R = this[v]().color[S], E && (R = E(R)), R);
|
|
31047
31054
|
};
|
|
31048
31055
|
}
|
|
31049
31056
|
function h(v) {
|
|
@@ -31074,7 +31081,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31074
31081
|
["partial", p],
|
|
31075
31082
|
["partialRight", m],
|
|
31076
31083
|
["rearg", h]
|
|
31077
|
-
],
|
|
31084
|
+
], R = "[object Function]", P = "[object GeneratorFunction]", A = "[object Symbol]", C = /[\\^$.*+?()[\]{}|]/g, I = /^\s+|\s+$/g, j = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, k = /\{\n\/\* \[wrapped with (.+)\] \*/, O = /,? & /, T = /^[-+]0x[0-9a-f]+$/i, B = /^0b[01]+$/i, L = /^\[object .+?Constructor\]$/, D = /^0o[0-7]+$/i, W = /^(?:0|[1-9]\d*)$/, J = parseInt, F = typeof global == "object" && global && global.Object === Object && global, V = typeof self == "object" && self && self.Object === Object && self, q = F || V || Function("return this")();
|
|
31078
31085
|
function G(N, M, Y) {
|
|
31079
31086
|
switch (Y.length) {
|
|
31080
31087
|
case 0:
|
|
@@ -31142,7 +31149,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31142
31149
|
var N = /[^.]+$/.exec(K && K.keys && K.keys.IE_PROTO || "");
|
|
31143
31150
|
return N ? "Symbol(src)_1." + N : "";
|
|
31144
31151
|
}(), le = ae.toString, fe = se.hasOwnProperty, Te = se.toString, be = RegExp(
|
|
31145
|
-
"^" + le.call(fe).replace(
|
|
31152
|
+
"^" + le.call(fe).replace(C, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
31146
31153
|
), Ze = Object.create, Ne = Math.max, ge = Math.min, Ge = function() {
|
|
31147
31154
|
var N = We(Object, "defineProperty"), M = We.name;
|
|
31148
31155
|
return M && M.length > 2 ? N : void 0;
|
|
@@ -31181,14 +31188,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31181
31188
|
return M;
|
|
31182
31189
|
}
|
|
31183
31190
|
function rt(N, M, Y) {
|
|
31184
|
-
var oe = M & i, ce =
|
|
31191
|
+
var oe = M & i, ce = Re(N);
|
|
31185
31192
|
function H() {
|
|
31186
31193
|
var ie = this && this !== q && this instanceof H ? ce : N;
|
|
31187
31194
|
return ie.apply(oe ? Y : this, arguments);
|
|
31188
31195
|
}
|
|
31189
31196
|
return H;
|
|
31190
31197
|
}
|
|
31191
|
-
function
|
|
31198
|
+
function Re(N) {
|
|
31192
31199
|
return function() {
|
|
31193
31200
|
var M = arguments;
|
|
31194
31201
|
switch (M.length) {
|
|
@@ -31214,7 +31221,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31214
31221
|
};
|
|
31215
31222
|
}
|
|
31216
31223
|
function De(N, M, Y) {
|
|
31217
|
-
var oe =
|
|
31224
|
+
var oe = Re(N);
|
|
31218
31225
|
function ce() {
|
|
31219
31226
|
for (var H = arguments.length, ie = Array(H), ue = H, de = qe(ce); ue--; )
|
|
31220
31227
|
ie[ue] = arguments[ue];
|
|
@@ -31238,7 +31245,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31238
31245
|
return ce;
|
|
31239
31246
|
}
|
|
31240
31247
|
function Le(N, M, Y, oe, ce, H, ie, ue, de, me) {
|
|
31241
|
-
var pe = M & g, xe = M & i, ye = M & l, we = M & (u | d), it = M & b, et = ye ? void 0 :
|
|
31248
|
+
var pe = M & g, xe = M & i, ye = M & l, we = M & (u | d), it = M & b, et = ye ? void 0 : Re(N);
|
|
31242
31249
|
function tt() {
|
|
31243
31250
|
for (var Me = arguments.length, Ae = Array(Me), lt = Me; lt--; )
|
|
31244
31251
|
Ae[lt] = arguments[lt];
|
|
@@ -31260,12 +31267,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31260
31267
|
);
|
|
31261
31268
|
}
|
|
31262
31269
|
var dt = xe ? Y : this, ct = ye ? dt[N] : N;
|
|
31263
|
-
return Me = Ae.length, ue ? Ae = Xe(Ae, ue) : it && Me > 1 && Ae.reverse(), pe && de < Me && (Ae.length = de), this && this !== q && this instanceof tt && (ct = et ||
|
|
31270
|
+
return Me = Ae.length, ue ? Ae = Xe(Ae, ue) : it && Me > 1 && Ae.reverse(), pe && de < Me && (Ae.length = de), this && this !== q && this instanceof tt && (ct = et || Re(ct)), ct.apply(dt, Ae);
|
|
31264
31271
|
}
|
|
31265
31272
|
return tt;
|
|
31266
31273
|
}
|
|
31267
31274
|
function nt(N, M, Y, oe) {
|
|
31268
|
-
var ce = M & i, H =
|
|
31275
|
+
var ce = M & i, H = Re(N);
|
|
31269
31276
|
function ie() {
|
|
31270
31277
|
for (var ue = -1, de = arguments.length, me = -1, pe = oe.length, xe = Array(pe + de), ye = this && this !== q && this instanceof ie ? H : N; ++me < pe; )
|
|
31271
31278
|
xe[me] = oe[me];
|
|
@@ -31326,7 +31333,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31326
31333
|
/* [wrapped with ` + M + `] */
|
|
31327
31334
|
`);
|
|
31328
31335
|
}
|
|
31329
|
-
function
|
|
31336
|
+
function Ce(N, M) {
|
|
31330
31337
|
return M = M ?? v, !!M && (typeof N == "number" || W.test(N)) && N > -1 && N % 1 == 0 && N < M;
|
|
31331
31338
|
}
|
|
31332
31339
|
function Be(N) {
|
|
@@ -31335,7 +31342,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31335
31342
|
function Xe(N, M) {
|
|
31336
31343
|
for (var Y = N.length, oe = ge(M.length, Y), ce = Je(N); oe--; ) {
|
|
31337
31344
|
var H = M[oe];
|
|
31338
|
-
N[oe] =
|
|
31345
|
+
N[oe] = Ce(H, Y) ? ce[H] : void 0;
|
|
31339
31346
|
}
|
|
31340
31347
|
return N;
|
|
31341
31348
|
}
|
|
@@ -31373,7 +31380,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31373
31380
|
}
|
|
31374
31381
|
function st(N) {
|
|
31375
31382
|
var M = je(N) ? Te.call(N) : "";
|
|
31376
|
-
return M ==
|
|
31383
|
+
return M == R || M == P;
|
|
31377
31384
|
}
|
|
31378
31385
|
function je(N) {
|
|
31379
31386
|
var M = typeof N;
|
|
@@ -31620,10 +31627,10 @@ function useInternalAtomValue(r) {
|
|
|
31620
31627
|
return;
|
|
31621
31628
|
const S = o.get(selectedAtomAtom);
|
|
31622
31629
|
if (S) {
|
|
31623
|
-
const { l: w = [], t:
|
|
31630
|
+
const { l: w = [], t: R } = ((E = n.dev_get_mounted) == null ? void 0 : E.call(n, S.atom)) || {};
|
|
31624
31631
|
if (Array.from(w).every(
|
|
31625
31632
|
isInternalAtomSubscribeFunction
|
|
31626
|
-
) &&
|
|
31633
|
+
) && R && (R == null ? void 0 : R.size) <= 1)
|
|
31627
31634
|
return a(void 0);
|
|
31628
31635
|
}
|
|
31629
31636
|
}, h = p == null ? void 0 : p(g, 2), b = n.sub(r, m);
|
|
@@ -33449,8 +33456,8 @@ function useSyncSnapshotHistory() {
|
|
|
33449
33456
|
} : h[atomToPrintable(E)] = {
|
|
33450
33457
|
status: "pending"
|
|
33451
33458
|
} : h[atomToPrintable(E)] = w.v));
|
|
33452
|
-
const
|
|
33453
|
-
|
|
33459
|
+
const R = (S = r.dev_get_mounted) == null ? void 0 : S.call(r, E);
|
|
33460
|
+
R && b.set(E, R.t);
|
|
33454
33461
|
}
|
|
33455
33462
|
c({ values: g, dependents: b }, h);
|
|
33456
33463
|
}, d = (g) => {
|
|
@@ -33896,7 +33903,7 @@ const TabletIcon = ({ landscape: r = !1 }) => /* @__PURE__ */ jsxRuntimeExports.
|
|
|
33896
33903
|
return isNull(r) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
|
|
33897
33904
|
/* @__PURE__ */ jsxRuntimeExports.jsx(MixerHorizontalIcon, { className: "mx-auto text-3xl" }),
|
|
33898
33905
|
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { children: n("please_select_a_block_to_edit") })
|
|
33899
|
-
] }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$1, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(FallbackError, {}), onError: i, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative flex w-full flex-col", children: [
|
|
33906
|
+
] }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$1, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(FallbackError, {}), onError: i, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative flex max-h-full w-full flex-col", children: [
|
|
33900
33907
|
/* @__PURE__ */ jsxRuntimeExports.jsx(BlockSettings, {}),
|
|
33901
33908
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
33902
33909
|
/* @__PURE__ */ jsxRuntimeExports.jsx(BlockStyling, {}),
|
|
@@ -33916,68 +33923,176 @@ const TabletIcon = ({ landscape: r = !1 }) => /* @__PURE__ */ jsxRuntimeExports.
|
|
|
33916
33923
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
33917
33924
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {})
|
|
33918
33925
|
] }) });
|
|
33919
|
-
}, SettingsPanel$1 = SettingsPanel
|
|
33920
|
-
|
|
33921
|
-
{
|
|
33922
|
-
|
|
33923
|
-
|
|
33924
|
-
|
|
33925
|
-
|
|
33926
|
-
|
|
33927
|
-
|
|
33928
|
-
|
|
33926
|
+
}, SettingsPanel$1 = SettingsPanel;
|
|
33927
|
+
function LayoutCard({ description: r, title: n, selected: o, onSelect: a, children: i }) {
|
|
33928
|
+
const { t: l } = useTranslation();
|
|
33929
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Card, { className: `cursor-pointer transition-all ${o ? "ring-2 ring-secondary" : ""}`, onClick: a, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(CardContent, { className: "p-4", children: [
|
|
33930
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
33931
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-lg font-semibold", children: n }),
|
|
33932
|
+
o && /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, { className: "text-primary" })
|
|
33933
|
+
] }),
|
|
33934
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "mb-4 text-sm text-muted-foreground", children: r }),
|
|
33935
|
+
i,
|
|
33936
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { className: "mt-4 w-full", variant: o ? "default" : "outline", children: l(o ? "Selected" : "Select") })
|
|
33937
|
+
] }) });
|
|
33938
|
+
}
|
|
33939
|
+
const ChooseLayout = ({ open: r, close: n }) => {
|
|
33940
|
+
const { t: o } = useTranslation(), [a, i] = useLayoutVariant(), l = (c) => {
|
|
33941
|
+
i(c), n();
|
|
33942
|
+
};
|
|
33943
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialog, { open: r, onOpenChange: () => r ? n() : "", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogContent, { className: "max-w-2xl overflow-hidden", children: [
|
|
33944
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogHeader, { className: "flex flex-row items-center justify-between", children: [
|
|
33945
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialogTitle, { children: o("Choose Builder Layout") }),
|
|
33946
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
33947
|
+
"button",
|
|
33948
|
+
{
|
|
33949
|
+
onClick: () => n(),
|
|
33950
|
+
className: "text-gray-500 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300",
|
|
33951
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Cross2Icon, { className: "h-6 w-6" })
|
|
33952
|
+
}
|
|
33953
|
+
)
|
|
33954
|
+
] }),
|
|
33955
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "no-scrollbar max-h-full overflow-hidden", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-2", children: [
|
|
33956
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
33957
|
+
LayoutCard,
|
|
33958
|
+
{
|
|
33959
|
+
title: o("Single side panel"),
|
|
33960
|
+
description: o("Suitable for smaller screens. Bigger canvas size."),
|
|
33961
|
+
selected: a === LAYOUT_VARIANTS.SINGLE_SIDE_PANEL,
|
|
33962
|
+
onSelect: () => l(LAYOUT_VARIANTS.SINGLE_SIDE_PANEL),
|
|
33963
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col rounded border border-border", children: [
|
|
33964
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "borde-b h-4 border-b border-border" }),
|
|
33965
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-32", children: [
|
|
33966
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-1/4 bg-secondary" }),
|
|
33967
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-3/4 border-l border-border bg-background" })
|
|
33968
|
+
] })
|
|
33969
|
+
] })
|
|
33970
|
+
}
|
|
33971
|
+
),
|
|
33972
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
33973
|
+
LayoutCard,
|
|
33974
|
+
{
|
|
33975
|
+
title: o("Dual side panel"),
|
|
33976
|
+
description: o("Suitable for larger screens. Blocks settings is always visible."),
|
|
33977
|
+
selected: a === LAYOUT_VARIANTS.DUAL_SIDE_PANEL,
|
|
33978
|
+
onSelect: () => l(LAYOUT_VARIANTS.DUAL_SIDE_PANEL),
|
|
33979
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col rounded border border-border", children: [
|
|
33980
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "borde-b h-4 border-b border-border" }),
|
|
33981
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-32", children: [
|
|
33982
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-1/4 bg-secondary" }),
|
|
33983
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-2/4 border-x border-border bg-background" }),
|
|
33984
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-1/4 bg-secondary" })
|
|
33985
|
+
] })
|
|
33986
|
+
] })
|
|
33987
|
+
}
|
|
33988
|
+
)
|
|
33989
|
+
] }) })
|
|
33990
|
+
] }) });
|
|
33991
|
+
}, TopBar = lazy(() => import("./Topbar-dKCG36V2.js")), useAutoSave = () => {
|
|
33929
33992
|
const { savePage: r } = useSavePage(), n = useBuilderProp("autoSaveSupport", !0), o = useBuilderProp("autoSaveInterval", 60);
|
|
33930
33993
|
useIntervalEffect(() => {
|
|
33931
33994
|
n && r();
|
|
33932
33995
|
}, o * 1e3);
|
|
33933
33996
|
}, RootLayout = () => {
|
|
33934
|
-
const [r, n] = useState$1(0);
|
|
33935
|
-
useChaiBuilderMsgListener(({ name:
|
|
33936
|
-
|
|
33997
|
+
const [r, n] = useState$1(0), [o] = useLayoutVariant(), [a, i] = useState$1(!1);
|
|
33998
|
+
useChaiBuilderMsgListener(({ name: g }) => {
|
|
33999
|
+
g === CHAI_BUILDER_EVENTS.SHOW_BLOCK_SETTINGS && n(1);
|
|
33937
34000
|
});
|
|
33938
|
-
const
|
|
33939
|
-
|
|
34001
|
+
const l = useBuilderProp("sideBarComponents.top", []), c = (g) => {
|
|
34002
|
+
g.preventDefault();
|
|
33940
34003
|
};
|
|
33941
34004
|
useAtom$1(selectedLibraryAtom), useKeyEventWatcher(), useExpandTree(), useAutoSave();
|
|
33942
|
-
const
|
|
33943
|
-
n(r ===
|
|
33944
|
-
},
|
|
33945
|
-
|
|
33946
|
-
|
|
33947
|
-
|
|
33948
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
33949
|
-
|
|
33950
|
-
|
|
33951
|
-
|
|
33952
|
-
|
|
33953
|
-
|
|
33954
|
-
|
|
33955
|
-
|
|
33956
|
-
|
|
33957
|
-
|
|
33958
|
-
|
|
33959
|
-
|
|
33960
|
-
|
|
33961
|
-
|
|
33962
|
-
|
|
33963
|
-
|
|
33964
|
-
|
|
33965
|
-
|
|
33966
|
-
|
|
33967
|
-
|
|
33968
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
33969
|
-
|
|
33970
|
-
|
|
33971
|
-
|
|
33972
|
-
|
|
33973
|
-
|
|
33974
|
-
|
|
33975
|
-
|
|
33976
|
-
|
|
33977
|
-
|
|
33978
|
-
|
|
33979
|
-
|
|
33980
|
-
|
|
34005
|
+
const u = (g) => {
|
|
34006
|
+
n(r === g ? null : g);
|
|
34007
|
+
}, d = useMemo$1(() => {
|
|
34008
|
+
const g = [
|
|
34009
|
+
{ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Layers, { size: 20 }), label: "sidebar.outline", component: Outline$1 },
|
|
34010
|
+
o === LAYOUT_VARIANTS.SINGLE_SIDE_PANEL ? { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditIcon, { size: 16 }), label: "sidebar.edit_block", component: SettingsPanel$1 } : null,
|
|
34011
|
+
{ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(LightningBoltIcon, { className: "size-5" }), label: "sidebar.ai_assistant", component: AskAI },
|
|
34012
|
+
{
|
|
34013
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(PaintBucketIcon, { size: 20 }),
|
|
34014
|
+
label: "sidebar.theme",
|
|
34015
|
+
component: () => /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeOptions, { showHeading: !1 })
|
|
34016
|
+
}
|
|
34017
|
+
];
|
|
34018
|
+
return compact(g);
|
|
34019
|
+
}, [o]), { t: p } = useTranslation(), m = [...d, ...l];
|
|
34020
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-screen max-h-full w-screen overflow-x-hidden bg-background text-foreground", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(TooltipProvider, { children: [
|
|
34021
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
34022
|
+
"div",
|
|
34023
|
+
{
|
|
34024
|
+
onContextMenu: c,
|
|
34025
|
+
className: "flex h-screen max-h-full flex-col bg-background text-foreground",
|
|
34026
|
+
children: [
|
|
34027
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-14 w-screen shrink-0 border-b border-border", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(TopBar, {}) }) }),
|
|
34028
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("main", { className: "relative flex h-[calc(100vh-56px)] max-w-full flex-1 flex-row", children: [
|
|
34029
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex w-12 flex-col items-center justify-between border-r py-2", children: [
|
|
34030
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col", children: m.map((g, h) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
|
|
34031
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
34032
|
+
"button",
|
|
34033
|
+
{
|
|
34034
|
+
className: `mb-2 rounded-lg p-2 text-gray-500 transition-colors ${r === h ? "bg-primary text-white" : "hover:bg-primary hover:text-white"}`,
|
|
34035
|
+
onClick: () => u(h),
|
|
34036
|
+
children: g.icon
|
|
34037
|
+
},
|
|
34038
|
+
h
|
|
34039
|
+
) }),
|
|
34040
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: p(g.label) }) })
|
|
34041
|
+
] })) }),
|
|
34042
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
|
|
34043
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
34044
|
+
"button",
|
|
34045
|
+
{
|
|
34046
|
+
onClick: () => i(!0),
|
|
34047
|
+
className: "mb-2 rounded-lg p-2 text-gray-500 transition-colors hover:bg-primary hover:text-white",
|
|
34048
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(LayoutTemplate, { size: 20 })
|
|
34049
|
+
}
|
|
34050
|
+
) }),
|
|
34051
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: p("Choose Builder Layout") }) })
|
|
34052
|
+
] }) })
|
|
34053
|
+
] }),
|
|
34054
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
34055
|
+
motion.div,
|
|
34056
|
+
{
|
|
34057
|
+
className: "h-full max-h-full border-r border-border",
|
|
34058
|
+
initial: { width: 280 },
|
|
34059
|
+
animate: { width: r !== null ? 280 : 0 },
|
|
34060
|
+
transition: { duration: 0.3, ease: "easeInOut" },
|
|
34061
|
+
children: r !== null && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "no-scrollbar overflow h-full overflow-x-hidden", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col p-3", children: [
|
|
34062
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("h2", { className: "-mt-1 flex h-10 items-center space-x-1 text-base font-bold", children: [
|
|
34063
|
+
m[r].icon,
|
|
34064
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: p(m[r].label) })
|
|
34065
|
+
] }),
|
|
34066
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: React__default.createElement(m[r].component, {}) }) })
|
|
34067
|
+
] }) })
|
|
34068
|
+
}
|
|
34069
|
+
),
|
|
34070
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-full max-h-full flex-1 flex-col bg-slate-800/20", children: [
|
|
34071
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CanvasTopBar, {}),
|
|
34072
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CanvasArea$1, {}) })
|
|
34073
|
+
] }),
|
|
34074
|
+
o !== LAYOUT_VARIANTS.SINGLE_SIDE_PANEL ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
34075
|
+
motion.div,
|
|
34076
|
+
{
|
|
34077
|
+
className: "h-full max-h-full border-l border-border",
|
|
34078
|
+
initial: { width: 280 },
|
|
34079
|
+
animate: { width: 280 },
|
|
34080
|
+
transition: { duration: 0.3, ease: "easeInOut" },
|
|
34081
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "no-scrollbar overflow h-full max-h-full overflow-x-hidden", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex max-h-full flex-col p-3", children: [
|
|
34082
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("h2", { className: "-mt-1 flex h-10 items-center space-x-1 text-base font-bold", children: [
|
|
34083
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(EditIcon, { size: "16" }),
|
|
34084
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: p("Block Settings") })
|
|
34085
|
+
] }),
|
|
34086
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(SettingsPanel$1, {}) }) })
|
|
34087
|
+
] }) })
|
|
34088
|
+
}
|
|
34089
|
+
) : null
|
|
34090
|
+
] })
|
|
34091
|
+
]
|
|
34092
|
+
}
|
|
34093
|
+
),
|
|
34094
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(AddBlocksDialog, {}),
|
|
34095
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ChooseLayout, { open: a, close: () => i(!1) })
|
|
33981
34096
|
] }) });
|
|
33982
34097
|
}, builderStore = getDefaultStore$1(), SmallScreenMessage = () => /* @__PURE__ */ jsxRuntimeExports.jsx("section", { className: "h-screen w-screen bg-gray-900 py-12 sm:py-16 lg:py-20 xl:hidden", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mx-auto max-w-7xl px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mx-auto max-w-md text-center", children: [
|
|
33983
34098
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -34075,6 +34190,8 @@ export {
|
|
|
34075
34190
|
useAddBlockParent as a6,
|
|
34076
34191
|
useSelectedBreakpoints as a7,
|
|
34077
34192
|
useSelectedStylingBlocks as a8,
|
|
34193
|
+
useLayoutVariant as a9,
|
|
34194
|
+
useBlocksStoreUndoableActions as aa,
|
|
34078
34195
|
useUpdateBlocksProps as b,
|
|
34079
34196
|
useUpdateBlocksPropsRealtime as c,
|
|
34080
34197
|
useBuilderProp as d,
|