@chaibuilder/sdk 1.2.80 → 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-nJAmkLwG.cjs → CodeEditor--pV1ZdgM.cjs} +1 -1
- package/dist/{CodeEditor-LsV5mq7M.js → CodeEditor-1Hftwojo.js} +1 -1
- package/dist/{Topbar--cCJT5MN.cjs → Topbar-LSKvebNl.cjs} +1 -1
- package/dist/{Topbar-CY8ipE2A.js → Topbar-dKCG36V2.js} +1 -1
- package/dist/{UnsplashImages-pKkUwrBV.cjs → UnsplashImages-XI_yvkHW.cjs} +1 -1
- package/dist/{UnsplashImages-_A9idjFx.js → UnsplashImages-umIxGYt_.js} +1 -1
- package/dist/{UploadImages-cFKKLJaD.js → UploadImages-0lyXeo9Q.js} +1 -1
- package/dist/{UploadImages-uz-HrZD6.cjs → UploadImages-OLJkwBec.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +24 -0
- package/dist/core.js +56 -53
- package/dist/{index-D2EMs9t6.js → index-Yjb0I-g2.js} +771 -652
- package/dist/{index-t4-5YjXE.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
|
] })
|
|
@@ -7354,21 +7361,24 @@ const CoreBlock = ({ block: r, disabled: n, parentId: o }) => {
|
|
|
7354
7361
|
) }),
|
|
7355
7362
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: b(c || i) }) })
|
|
7356
7363
|
] }) });
|
|
7357
|
-
},
|
|
7358
|
-
|
|
7359
|
-
|
|
7364
|
+
}, DefaultChaiBlocks = ({ parentId: r, gridCols: n = "grid-cols-2" }) => {
|
|
7365
|
+
const o = useChaiBlocks(), a = useBuilderProp("filterChaiBlock", () => !0), i = filter(o, a), l = groupBy(i, "category"), c = uniq(map(l.core, "group"));
|
|
7366
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ChaiBuilderBlocks, { gridCols: n, parentId: r, groups: c, blocks: l.core });
|
|
7367
|
+
}, CORE_GROUPS = ["basic", "typography", "media", "layout", "form", "advanced", "other"], ChaiBuilderBlocks = ({ groups: r, blocks: n, parentId: o, gridCols: a = "grid-cols-4" }) => {
|
|
7368
|
+
var u;
|
|
7369
|
+
const { t: i } = useTranslation(), [l] = useBlocksStore(), c = (u = find(l, (d) => d._id === o)) == null ? void 0 : u._type;
|
|
7360
7370
|
return React__default.Children.toArray(
|
|
7361
7371
|
map(
|
|
7362
|
-
sortBy(r, (
|
|
7363
|
-
(
|
|
7364
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(AccordionTrigger, { className: "rounded-md bg-gray-100 px-4 py-2 capitalize hover:no-underline", children: capitalize(
|
|
7365
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(AccordionContent, { className: "mx-auto max-w-xl p-3", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "grid
|
|
7366
|
-
reject(filter(values(n), { group:
|
|
7372
|
+
sortBy(r, (d) => CORE_GROUPS.indexOf(d) === -1 ? 99 : CORE_GROUPS.indexOf(d)),
|
|
7373
|
+
(d) => reject(filter(values(n), { group: d }), { hidden: !0 }).length ? /* @__PURE__ */ jsxRuntimeExports.jsx(Accordion, { type: "single", value: d, collapsible: !0, className: "w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionItem, { value: d, children: [
|
|
7374
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(AccordionTrigger, { className: "rounded-md bg-gray-100 px-4 py-2 capitalize hover:no-underline", children: capitalize(i(d.toLowerCase())) }),
|
|
7375
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(AccordionContent, { className: "mx-auto max-w-xl p-3", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "grid gap-2 " + a, children: React__default.Children.toArray(
|
|
7376
|
+
reject(filter(values(n), { group: d }), { hidden: !0 }).map((p) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
7367
7377
|
CoreBlock,
|
|
7368
7378
|
{
|
|
7369
7379
|
parentId: o,
|
|
7370
|
-
block:
|
|
7371
|
-
disabled: !canAcceptChildBlock(
|
|
7380
|
+
block: p,
|
|
7381
|
+
disabled: !canAcceptChildBlock(c, p.type) || !canBeNestedInside(c, p.type)
|
|
7372
7382
|
}
|
|
7373
7383
|
))
|
|
7374
7384
|
) }) })
|
|
@@ -7380,10 +7390,8 @@ const CoreBlock = ({ block: r, disabled: n, parentId: o }) => {
|
|
|
7380
7390
|
showHeading: n = !0,
|
|
7381
7391
|
parentId: o = void 0
|
|
7382
7392
|
}) => {
|
|
7383
|
-
const { t: a } = useTranslation(), [i, l] = useState$1("library"), [
|
|
7384
|
-
return
|
|
7385
|
-
!includes(x, c) && !isEmpty(x) && !isEmpty(c) && u(first(x));
|
|
7386
|
-
}, [x, c]), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("flex h-full w-full flex-col overflow-hidden", r), children: [
|
|
7393
|
+
const { t: a } = useTranslation(), [i, l] = useState$1("library"), [, c] = useAtom$1(showPredefinedBlockCategoryAtom), u = useBuilderProp("importHTMLSupport", !0);
|
|
7394
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("flex h-full w-full flex-col overflow-hidden", r), children: [
|
|
7387
7395
|
n ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mb-2 flex flex-col justify-between rounded-md bg-background/30 p-1", children: [
|
|
7388
7396
|
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "flex flex-col items-baseline px-1 text-xl font-semibold xl:flex-col", children: a("add_block") }),
|
|
7389
7397
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "p-0 text-xs font-light leading-3 opacity-80 xl:pl-1", children: a(i === "html" ? "enter_paste_tailwind_html" : "click_to_add_block") })
|
|
@@ -7391,21 +7399,21 @@ const CoreBlock = ({ block: r, disabled: n, parentId: o }) => {
|
|
|
7391
7399
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
7392
7400
|
Tabs$1,
|
|
7393
7401
|
{
|
|
7394
|
-
onValueChange: (
|
|
7395
|
-
|
|
7402
|
+
onValueChange: (d) => {
|
|
7403
|
+
c(""), l(d);
|
|
7396
7404
|
},
|
|
7397
7405
|
value: i,
|
|
7398
|
-
className: cn("h-max",
|
|
7399
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(TabsList$1, { className: "grid w-full " + (
|
|
7406
|
+
className: cn("h-max", u ? "" : "hidden"),
|
|
7407
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(TabsList$1, { className: "grid w-full " + (u ? "grid-cols-3" : "grid-cols-1"), children: [
|
|
7400
7408
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TabsTrigger, { value: "library", children: a("library") }),
|
|
7401
7409
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TabsTrigger, { value: "core", children: a("blocks") }),
|
|
7402
|
-
|
|
7410
|
+
u ? /* @__PURE__ */ jsxRuntimeExports.jsx(TabsTrigger, { value: "html", children: a("import") }) : null
|
|
7403
7411
|
] })
|
|
7404
7412
|
}
|
|
7405
7413
|
),
|
|
7406
|
-
i === "core" && /* @__PURE__ */ jsxRuntimeExports.jsx(ScrollArea$1, { className: "-mx-1.5 h-[calc(100vh-156px)] overflow-y-auto", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-2 w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
7414
|
+
i === "core" && /* @__PURE__ */ jsxRuntimeExports.jsx(ScrollArea$1, { className: "-mx-1.5 h-[calc(100vh-156px)] overflow-y-auto", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-2 w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(DefaultChaiBlocks, { gridCols: "grid-cols-4", parentId: o }) }) }),
|
|
7407
7415
|
i === "library" && /* @__PURE__ */ jsxRuntimeExports.jsx(UILibraries, { parentId: o }),
|
|
7408
|
-
i === "html" &&
|
|
7416
|
+
i === "html" && u ? /* @__PURE__ */ jsxRuntimeExports.jsx(ImportHTML$1, { parentId: o }) : null
|
|
7409
7417
|
] });
|
|
7410
7418
|
}, AddBlocksPanel$1 = AddBlocksPanel;
|
|
7411
7419
|
function FaCheck(r) {
|
|
@@ -7692,7 +7700,7 @@ const AIUserPrompt = ({ blockId: r }) => {
|
|
|
7692
7700
|
o(P), i(a), c(""), d(""), h("");
|
|
7693
7701
|
}
|
|
7694
7702
|
}, S = (P) => {
|
|
7695
|
-
const A = a.filter((
|
|
7703
|
+
const A = a.filter((C, I) => I !== P);
|
|
7696
7704
|
o(A), i(A);
|
|
7697
7705
|
}, E = (P) => {
|
|
7698
7706
|
m(P), c(a[P].key), d(a[P].value);
|
|
@@ -7705,7 +7713,7 @@ const AIUserPrompt = ({ blockId: r }) => {
|
|
|
7705
7713
|
const P = [...a];
|
|
7706
7714
|
P[p] = { key: l, value: u }, o(P), i(P), m(null), c(""), d(""), h("");
|
|
7707
7715
|
}
|
|
7708
|
-
},
|
|
7716
|
+
}, R = (P) => {
|
|
7709
7717
|
P.key === "Enter" && !P.shiftKey && (P.preventDefault(), p !== null ? w() : v());
|
|
7710
7718
|
};
|
|
7711
7719
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "max-w-full", children: [
|
|
@@ -7748,7 +7756,7 @@ const AIUserPrompt = ({ blockId: r }) => {
|
|
|
7748
7756
|
ref: x,
|
|
7749
7757
|
value: u,
|
|
7750
7758
|
onChange: (P) => d(P.target.value),
|
|
7751
|
-
onKeyDown:
|
|
7759
|
+
onKeyDown: R,
|
|
7752
7760
|
placeholder: "Value",
|
|
7753
7761
|
className: "bg-background text-sm"
|
|
7754
7762
|
}
|
|
@@ -7850,8 +7858,8 @@ function useAtomsSnapshot({
|
|
|
7850
7858
|
for (const w of ((v = o.dev_get_mounted_atoms) == null ? void 0 : v.call(o)) || []) {
|
|
7851
7859
|
if (!r && w.debugPrivate)
|
|
7852
7860
|
continue;
|
|
7853
|
-
const
|
|
7854
|
-
|
|
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);
|
|
7855
7863
|
const P = (E = o.dev_get_mounted) == null ? void 0 : E.call(o, w);
|
|
7856
7864
|
if (P) {
|
|
7857
7865
|
let A = P.t;
|
|
@@ -7860,7 +7868,7 @@ function useAtomsSnapshot({
|
|
|
7860
7868
|
/* NOTE: This just removes private atoms from the dependents list,
|
|
7861
7869
|
instead of hiding them from the dependency chain and showing
|
|
7862
7870
|
the nested dependents of the private atoms. */
|
|
7863
|
-
(
|
|
7871
|
+
(C) => !C.debugPrivate
|
|
7864
7872
|
)
|
|
7865
7873
|
)), b.set(w, A);
|
|
7866
7874
|
}
|
|
@@ -8077,7 +8085,7 @@ function compile(r) {
|
|
|
8077
8085
|
return dealloc(parse("", null, null, null, [""], r = alloc(r), 0, [0], r));
|
|
8078
8086
|
}
|
|
8079
8087
|
function parse(r, n, o, a, i, l, c, u, d) {
|
|
8080
|
-
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; )
|
|
8081
8089
|
switch (x = w, w = next()) {
|
|
8082
8090
|
case 40:
|
|
8083
8091
|
if (x != 108 && charat(I, g - 1) == 58) {
|
|
@@ -8123,22 +8131,22 @@ function parse(r, n, o, a, i, l, c, u, d) {
|
|
|
8123
8131
|
case 59:
|
|
8124
8132
|
I += ";";
|
|
8125
8133
|
default:
|
|
8126
|
-
if (append(
|
|
8134
|
+
if (append(C = ruleset(I, n, o, p, m, i, u, R, P = [], A = [], g), l), w === 123)
|
|
8127
8135
|
if (m === 0)
|
|
8128
|
-
parse(I, n,
|
|
8136
|
+
parse(I, n, C, C, P, l, g, u, A);
|
|
8129
8137
|
else
|
|
8130
8138
|
switch (h === 99 && charat(I, 3) === 110 ? 100 : h) {
|
|
8131
8139
|
case 100:
|
|
8132
8140
|
case 108:
|
|
8133
8141
|
case 109:
|
|
8134
8142
|
case 115:
|
|
8135
|
-
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);
|
|
8136
8144
|
break;
|
|
8137
8145
|
default:
|
|
8138
|
-
parse(I,
|
|
8146
|
+
parse(I, C, C, C, [""], A, 0, u, A);
|
|
8139
8147
|
}
|
|
8140
8148
|
}
|
|
8141
|
-
p = m = b = 0, v = E = 1,
|
|
8149
|
+
p = m = b = 0, v = E = 1, R = I = "", g = c;
|
|
8142
8150
|
break;
|
|
8143
8151
|
case 58:
|
|
8144
8152
|
g = 1 + strlen(I), b = x;
|
|
@@ -8157,7 +8165,7 @@ function parse(r, n, o, a, i, l, c, u, d) {
|
|
|
8157
8165
|
u[p++] = (strlen(I) - 1) * E, E = 1;
|
|
8158
8166
|
break;
|
|
8159
8167
|
case 64:
|
|
8160
|
-
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++;
|
|
8161
8169
|
break;
|
|
8162
8170
|
case 45:
|
|
8163
8171
|
x === 45 && strlen(I) == 2 && (v = 0);
|
|
@@ -8167,8 +8175,8 @@ function parse(r, n, o, a, i, l, c, u, d) {
|
|
|
8167
8175
|
}
|
|
8168
8176
|
function ruleset(r, n, o, a, i, l, c, u, d, p, m) {
|
|
8169
8177
|
for (var g = i - 1, h = i === 0 ? l : [""], b = sizeof(h), x = 0, v = 0, S = 0; x < a; ++x)
|
|
8170
|
-
for (var E = 0, w = substr(r, g + 1, g = abs(v = c[x])),
|
|
8171
|
-
(
|
|
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);
|
|
8172
8180
|
return node(r, n, o, i === 0 ? RULESET : u, d, p, m);
|
|
8173
8181
|
}
|
|
8174
8182
|
function comment(r, n, o) {
|
|
@@ -8497,12 +8505,12 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
8497
8505
|
})], h = middleware(p.concat(i, g)), b = function(S) {
|
|
8498
8506
|
return serialize(compile(S), h);
|
|
8499
8507
|
};
|
|
8500
|
-
d = function(S, E, w,
|
|
8508
|
+
d = function(S, E, w, R) {
|
|
8501
8509
|
m = w, process.env.NODE_ENV !== "production" && E.map !== void 0 && (m = {
|
|
8502
8510
|
insert: function(A) {
|
|
8503
8511
|
w.insert(A + E.map);
|
|
8504
8512
|
}
|
|
8505
|
-
}), b(S ? S + "{" + E.styles + "}" : E.styles),
|
|
8513
|
+
}), b(S ? S + "{" + E.styles + "}" : E.styles), R && (x.inserted[E.name] = !0);
|
|
8506
8514
|
};
|
|
8507
8515
|
}
|
|
8508
8516
|
var x = {
|
|
@@ -8547,10 +8555,10 @@ function requireReactIs_production_min() {
|
|
|
8547
8555
|
return reactIs_production_min;
|
|
8548
8556
|
hasRequiredReactIs_production_min = 1;
|
|
8549
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;
|
|
8550
|
-
function
|
|
8558
|
+
function R(A) {
|
|
8551
8559
|
if (typeof A == "object" && A !== null) {
|
|
8552
|
-
var
|
|
8553
|
-
switch (
|
|
8560
|
+
var C = A.$$typeof;
|
|
8561
|
+
switch (C) {
|
|
8554
8562
|
case n:
|
|
8555
8563
|
switch (A = A.type, A) {
|
|
8556
8564
|
case d:
|
|
@@ -8569,44 +8577,44 @@ function requireReactIs_production_min() {
|
|
|
8569
8577
|
case c:
|
|
8570
8578
|
return A;
|
|
8571
8579
|
default:
|
|
8572
|
-
return
|
|
8580
|
+
return C;
|
|
8573
8581
|
}
|
|
8574
8582
|
}
|
|
8575
8583
|
case o:
|
|
8576
|
-
return
|
|
8584
|
+
return C;
|
|
8577
8585
|
}
|
|
8578
8586
|
}
|
|
8579
8587
|
}
|
|
8580
8588
|
function P(A) {
|
|
8581
|
-
return
|
|
8589
|
+
return R(A) === p;
|
|
8582
8590
|
}
|
|
8583
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) {
|
|
8584
|
-
return P(A) ||
|
|
8592
|
+
return P(A) || R(A) === d;
|
|
8585
8593
|
}, reactIs_production_min.isConcurrentMode = P, reactIs_production_min.isContextConsumer = function(A) {
|
|
8586
|
-
return
|
|
8594
|
+
return R(A) === u;
|
|
8587
8595
|
}, reactIs_production_min.isContextProvider = function(A) {
|
|
8588
|
-
return
|
|
8596
|
+
return R(A) === c;
|
|
8589
8597
|
}, reactIs_production_min.isElement = function(A) {
|
|
8590
8598
|
return typeof A == "object" && A !== null && A.$$typeof === n;
|
|
8591
8599
|
}, reactIs_production_min.isForwardRef = function(A) {
|
|
8592
|
-
return
|
|
8600
|
+
return R(A) === m;
|
|
8593
8601
|
}, reactIs_production_min.isFragment = function(A) {
|
|
8594
|
-
return
|
|
8602
|
+
return R(A) === a;
|
|
8595
8603
|
}, reactIs_production_min.isLazy = function(A) {
|
|
8596
|
-
return
|
|
8604
|
+
return R(A) === x;
|
|
8597
8605
|
}, reactIs_production_min.isMemo = function(A) {
|
|
8598
|
-
return
|
|
8606
|
+
return R(A) === b;
|
|
8599
8607
|
}, reactIs_production_min.isPortal = function(A) {
|
|
8600
|
-
return
|
|
8608
|
+
return R(A) === o;
|
|
8601
8609
|
}, reactIs_production_min.isProfiler = function(A) {
|
|
8602
|
-
return
|
|
8610
|
+
return R(A) === l;
|
|
8603
8611
|
}, reactIs_production_min.isStrictMode = function(A) {
|
|
8604
|
-
return
|
|
8612
|
+
return R(A) === i;
|
|
8605
8613
|
}, reactIs_production_min.isSuspense = function(A) {
|
|
8606
|
-
return
|
|
8614
|
+
return R(A) === g;
|
|
8607
8615
|
}, reactIs_production_min.isValidElementType = function(A) {
|
|
8608
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);
|
|
8609
|
-
}, reactIs_production_min.typeOf =
|
|
8617
|
+
}, reactIs_production_min.typeOf = R, reactIs_production_min;
|
|
8610
8618
|
}
|
|
8611
8619
|
var reactIs_development = {};
|
|
8612
8620
|
/** @license React v16.13.1
|
|
@@ -8621,7 +8629,7 @@ var hasRequiredReactIs_development;
|
|
|
8621
8629
|
function requireReactIs_development() {
|
|
8622
8630
|
return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1, process.env.NODE_ENV !== "production" && function() {
|
|
8623
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;
|
|
8624
|
-
function
|
|
8632
|
+
function R(K) {
|
|
8625
8633
|
return typeof K == "string" || typeof K == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
8626
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);
|
|
8627
8635
|
}
|
|
@@ -8657,7 +8665,7 @@ function requireReactIs_development() {
|
|
|
8657
8665
|
}
|
|
8658
8666
|
}
|
|
8659
8667
|
}
|
|
8660
|
-
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;
|
|
8661
8669
|
function q(K) {
|
|
8662
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;
|
|
8663
8671
|
}
|
|
@@ -8697,7 +8705,7 @@ function requireReactIs_development() {
|
|
|
8697
8705
|
function se(K) {
|
|
8698
8706
|
return P(K) === g;
|
|
8699
8707
|
}
|
|
8700
|
-
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;
|
|
8701
8709
|
}()), reactIs_development;
|
|
8702
8710
|
}
|
|
8703
8711
|
process.env.NODE_ENV === "production" ? reactIs$1.exports = requireReactIs_production_min() : reactIs$1.exports = requireReactIs_development();
|
|
@@ -10733,7 +10741,7 @@ function useMove(r, n, o = "ltr") {
|
|
|
10733
10741
|
return useEffect$1(() => {
|
|
10734
10742
|
i.current = !0;
|
|
10735
10743
|
}, []), useEffect$1(() => {
|
|
10736
|
-
const p = ({ x: w, y:
|
|
10744
|
+
const p = ({ x: w, y: R }) => {
|
|
10737
10745
|
cancelAnimationFrame(c.current), c.current = requestAnimationFrame(() => {
|
|
10738
10746
|
if (i.current && a.current) {
|
|
10739
10747
|
a.current.style.userSelect = "none";
|
|
@@ -10742,7 +10750,7 @@ function useMove(r, n, o = "ltr") {
|
|
|
10742
10750
|
const A = clamp$1((w - P.left) / P.width, 0, 1);
|
|
10743
10751
|
r({
|
|
10744
10752
|
x: o === "ltr" ? A : 1 - A,
|
|
10745
|
-
y: clamp$1((
|
|
10753
|
+
y: clamp$1((R - P.top) / P.height, 0, 1)
|
|
10746
10754
|
});
|
|
10747
10755
|
}
|
|
10748
10756
|
}
|
|
@@ -10859,7 +10867,7 @@ function useScrollIntoView({
|
|
|
10859
10867
|
}, x = useCallback$1(({ alignment: S = "start" } = {}) => {
|
|
10860
10868
|
var E;
|
|
10861
10869
|
p.current = !1, u.current && b();
|
|
10862
|
-
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({
|
|
10863
10871
|
parent: m.current,
|
|
10864
10872
|
target: g.current,
|
|
10865
10873
|
axis: n,
|
|
@@ -10869,7 +10877,7 @@ function useScrollIntoView({
|
|
|
10869
10877
|
}) - (m.current ? 0 : w);
|
|
10870
10878
|
function P() {
|
|
10871
10879
|
d.current === 0 && (d.current = performance.now());
|
|
10872
|
-
const
|
|
10880
|
+
const C = performance.now() - d.current, I = h || r === 0 ? 1 : C / r, j = w + R * a(I);
|
|
10873
10881
|
setScrollParam({
|
|
10874
10882
|
parent: m.current,
|
|
10875
10883
|
axis: n,
|
|
@@ -10931,10 +10939,10 @@ function extractSystemStyles(r) {
|
|
|
10931
10939
|
bg: S,
|
|
10932
10940
|
c: E,
|
|
10933
10941
|
opacity: w,
|
|
10934
|
-
ff:
|
|
10942
|
+
ff: R,
|
|
10935
10943
|
fz: P,
|
|
10936
10944
|
fw: A,
|
|
10937
|
-
lts:
|
|
10945
|
+
lts: C,
|
|
10938
10946
|
ta: I,
|
|
10939
10947
|
lh: j,
|
|
10940
10948
|
fs: k,
|
|
@@ -11020,10 +11028,10 @@ function extractSystemStyles(r) {
|
|
|
11020
11028
|
bg: S,
|
|
11021
11029
|
c: E,
|
|
11022
11030
|
opacity: w,
|
|
11023
|
-
ff:
|
|
11031
|
+
ff: R,
|
|
11024
11032
|
fz: P,
|
|
11025
11033
|
fw: A,
|
|
11026
|
-
lts:
|
|
11034
|
+
lts: C,
|
|
11027
11035
|
ta: I,
|
|
11028
11036
|
lh: j,
|
|
11029
11037
|
fs: k,
|
|
@@ -11320,11 +11328,11 @@ function useCollapse({
|
|
|
11320
11328
|
};
|
|
11321
11329
|
function b(x = {}) {
|
|
11322
11330
|
var v = x, { style: S = {}, refKey: E = "ref" } = v, w = __objRest$X(v, ["style", "refKey"]);
|
|
11323
|
-
const
|
|
11331
|
+
const R = w[E];
|
|
11324
11332
|
return __spreadProps$L(__spreadValues$1i({
|
|
11325
11333
|
"aria-hidden": !a
|
|
11326
11334
|
}, w), {
|
|
11327
|
-
[E]: mergeRefs(i,
|
|
11335
|
+
[E]: mergeRefs(i, R),
|
|
11328
11336
|
onTransitionEnd: h,
|
|
11329
11337
|
style: __spreadValues$1i(__spreadValues$1i({ boxSizing: "border-box" }, S), u)
|
|
11330
11338
|
});
|
|
@@ -11845,7 +11853,7 @@ const defaultProps$C = {
|
|
|
11845
11853
|
"loading",
|
|
11846
11854
|
"unstyled",
|
|
11847
11855
|
"__staticSelector"
|
|
11848
|
-
]), { 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({
|
|
11849
11857
|
color: w.fn.variant({ color: i, variant: d }).color,
|
|
11850
11858
|
size: "100%",
|
|
11851
11859
|
"data-action-icon-loader": !0
|
|
@@ -11857,7 +11865,7 @@ const defaultProps$C = {
|
|
|
11857
11865
|
"data-disabled": m || void 0,
|
|
11858
11866
|
"data-loading": h || void 0,
|
|
11859
11867
|
unstyled: b
|
|
11860
|
-
}, v), h ?
|
|
11868
|
+
}, v), h ? R : l);
|
|
11861
11869
|
});
|
|
11862
11870
|
_ActionIcon.displayName = "@mantine/core/ActionIcon";
|
|
11863
11871
|
const ActionIcon = _ActionIcon;
|
|
@@ -12088,10 +12096,10 @@ const defaultProps$A = {
|
|
|
12088
12096
|
strikethrough: S,
|
|
12089
12097
|
italic: E,
|
|
12090
12098
|
classNames: w,
|
|
12091
|
-
styles:
|
|
12099
|
+
styles: R,
|
|
12092
12100
|
unstyled: P,
|
|
12093
12101
|
span: A,
|
|
12094
|
-
__staticSelector:
|
|
12102
|
+
__staticSelector: C
|
|
12095
12103
|
} = o, I = __objRest$L(o, [
|
|
12096
12104
|
"className",
|
|
12097
12105
|
"size",
|
|
@@ -12126,7 +12134,7 @@ const defaultProps$A = {
|
|
|
12126
12134
|
transform: c,
|
|
12127
12135
|
align: d,
|
|
12128
12136
|
gradient: h
|
|
12129
|
-
}, { unstyled: P, name:
|
|
12137
|
+
}, { unstyled: P, name: C || "Text", variant: p, size: i });
|
|
12130
12138
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$14({
|
|
12131
12139
|
ref: n,
|
|
12132
12140
|
className: k(j.root, { [j.gradient]: p === "gradient" }, a),
|
|
@@ -12289,16 +12297,16 @@ const defaultProps$y = {
|
|
|
12289
12297
|
"styles",
|
|
12290
12298
|
"classNames",
|
|
12291
12299
|
"unstyled"
|
|
12292
|
-
]), { 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);
|
|
12293
12301
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$11({
|
|
12294
12302
|
ref: n,
|
|
12295
12303
|
className: S(v.root, {
|
|
12296
12304
|
[v.vertical]: E,
|
|
12297
12305
|
[v.horizontal]: w,
|
|
12298
|
-
[v.withLabel]:
|
|
12306
|
+
[v.withLabel]: R
|
|
12299
12307
|
}, a),
|
|
12300
12308
|
role: "separator"
|
|
12301
|
-
}, x),
|
|
12309
|
+
}, x), R && /* @__PURE__ */ React__default.createElement(Text, __spreadProps$H(__spreadValues$11({}, p), {
|
|
12302
12310
|
size: (p == null ? void 0 : p.size) || "xs",
|
|
12303
12311
|
mt: rem(2),
|
|
12304
12312
|
className: S(v.label, v[d], {
|
|
@@ -12393,7 +12401,7 @@ function SelectItems({
|
|
|
12393
12401
|
name: c,
|
|
12394
12402
|
variant: S,
|
|
12395
12403
|
size: g
|
|
12396
|
-
}), w = [],
|
|
12404
|
+
}), w = [], R = [];
|
|
12397
12405
|
let P = null;
|
|
12398
12406
|
const A = (I, j) => {
|
|
12399
12407
|
const k = typeof i == "function" ? i(I.value) : !1;
|
|
@@ -12419,15 +12427,15 @@ function SelectItems({
|
|
|
12419
12427
|
variant: S
|
|
12420
12428
|
}, I));
|
|
12421
12429
|
};
|
|
12422
|
-
let
|
|
12430
|
+
let C = null;
|
|
12423
12431
|
if (r.forEach((I, j) => {
|
|
12424
|
-
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", {
|
|
12425
12433
|
className: E.separator,
|
|
12426
12434
|
key: `__mantine-divider-${j}`
|
|
12427
12435
|
}, /* @__PURE__ */ React__default.createElement(Divider, {
|
|
12428
12436
|
classNames: { label: E.separatorLabel },
|
|
12429
12437
|
label: I.group
|
|
12430
|
-
})))),
|
|
12438
|
+
})))), R.push(A(I, j))) : w.push(A(I, j));
|
|
12431
12439
|
}), b) {
|
|
12432
12440
|
const I = r[P];
|
|
12433
12441
|
w.push(/* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -12444,10 +12452,10 @@ function SelectItems({
|
|
|
12444
12452
|
}
|
|
12445
12453
|
}, x));
|
|
12446
12454
|
}
|
|
12447
|
-
return
|
|
12455
|
+
return R.length > 0 && w.length > 0 && w.unshift(/* @__PURE__ */ React__default.createElement("div", {
|
|
12448
12456
|
className: E.separator,
|
|
12449
12457
|
key: "empty-group-separator"
|
|
12450
|
-
}, /* @__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, {
|
|
12451
12459
|
size: g,
|
|
12452
12460
|
unstyled: v,
|
|
12453
12461
|
className: E.nothingFound
|
|
@@ -12591,7 +12599,7 @@ const defaultProps$x = {
|
|
|
12591
12599
|
"unstyled",
|
|
12592
12600
|
"variant",
|
|
12593
12601
|
"viewportProps"
|
|
12594
|
-
]), [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 });
|
|
12595
12603
|
return /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Root, {
|
|
12596
12604
|
type: p === "never" ? "always" : p,
|
|
12597
12605
|
scrollHideDelay: d,
|
|
@@ -12599,7 +12607,7 @@ const defaultProps$x = {
|
|
|
12599
12607
|
ref: n,
|
|
12600
12608
|
asChild: !0
|
|
12601
12609
|
}, /* @__PURE__ */ React__default.createElement(Box, __spreadValues$Z({
|
|
12602
|
-
className:
|
|
12610
|
+
className: C(A.root, i)
|
|
12603
12611
|
}, E), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Viewport, __spreadProps$F(__spreadValues$Z({}, S), {
|
|
12604
12612
|
className: A.viewport,
|
|
12605
12613
|
ref: h,
|
|
@@ -12611,16 +12619,16 @@ const defaultProps$x = {
|
|
|
12611
12619
|
orientation: "horizontal",
|
|
12612
12620
|
className: A.scrollbar,
|
|
12613
12621
|
forceMount: !0,
|
|
12614
|
-
onMouseEnter: () =>
|
|
12615
|
-
onMouseLeave: () =>
|
|
12622
|
+
onMouseEnter: () => R(!0),
|
|
12623
|
+
onMouseLeave: () => R(!1)
|
|
12616
12624
|
}, /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Thumb, {
|
|
12617
12625
|
className: A.thumb
|
|
12618
12626
|
})), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Scrollbar, {
|
|
12619
12627
|
orientation: "vertical",
|
|
12620
12628
|
className: A.scrollbar,
|
|
12621
12629
|
forceMount: !0,
|
|
12622
|
-
onMouseEnter: () =>
|
|
12623
|
-
onMouseLeave: () =>
|
|
12630
|
+
onMouseEnter: () => R(!0),
|
|
12631
|
+
onMouseLeave: () => R(!1)
|
|
12624
12632
|
}, /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Thumb, {
|
|
12625
12633
|
className: A.thumb
|
|
12626
12634
|
})), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Corner, {
|
|
@@ -12821,7 +12829,7 @@ const useHover = function(r, n) {
|
|
|
12821
12829
|
floating: b
|
|
12822
12830
|
},
|
|
12823
12831
|
refs: x
|
|
12824
|
-
} = 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(() => {
|
|
12825
12833
|
}), O = React.useCallback(() => {
|
|
12826
12834
|
var D;
|
|
12827
12835
|
const W = (D = m.current.openEvent) == null ? void 0 : D.type;
|
|
@@ -12831,7 +12839,7 @@ const useHover = function(r, n) {
|
|
|
12831
12839
|
if (!o)
|
|
12832
12840
|
return;
|
|
12833
12841
|
function D() {
|
|
12834
|
-
clearTimeout(P.current), clearTimeout(
|
|
12842
|
+
clearTimeout(P.current), clearTimeout(C.current), I.current = !0;
|
|
12835
12843
|
}
|
|
12836
12844
|
return g.on("dismiss", D), () => {
|
|
12837
12845
|
g.off("dismiss", D);
|
|
@@ -12849,7 +12857,7 @@ const useHover = function(r, n) {
|
|
|
12849
12857
|
}, [b, d, p, o, E, m, O]);
|
|
12850
12858
|
const T = React.useCallback(function(D) {
|
|
12851
12859
|
D === void 0 && (D = !0);
|
|
12852
|
-
const W = getDelay(w.current, "close",
|
|
12860
|
+
const W = getDelay(w.current, "close", R.current);
|
|
12853
12861
|
W && !A.current ? (clearTimeout(P.current), P.current = setTimeout(() => p(!1), W)) : D && (clearTimeout(P.current), p(!1));
|
|
12854
12862
|
}, [w, p]), B = React.useCallback(() => {
|
|
12855
12863
|
k.current(), A.current = void 0;
|
|
@@ -12866,10 +12874,10 @@ const useHover = function(r, n) {
|
|
|
12866
12874
|
return m.current.openEvent ? ["click", "mousedown"].includes(m.current.openEvent.type) : !1;
|
|
12867
12875
|
}
|
|
12868
12876
|
function W(V) {
|
|
12869
|
-
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)
|
|
12870
12878
|
return;
|
|
12871
12879
|
m.current.openEvent = V;
|
|
12872
|
-
const q = getDelay(w.current, "open",
|
|
12880
|
+
const q = getDelay(w.current, "open", R.current);
|
|
12873
12881
|
q ? P.current = setTimeout(() => {
|
|
12874
12882
|
p(!0);
|
|
12875
12883
|
}, q) : p(!0);
|
|
@@ -12879,7 +12887,7 @@ const useHover = function(r, n) {
|
|
|
12879
12887
|
return;
|
|
12880
12888
|
k.current();
|
|
12881
12889
|
const q = getDocument(b);
|
|
12882
|
-
if (clearTimeout(
|
|
12890
|
+
if (clearTimeout(C.current), E.current) {
|
|
12883
12891
|
d || clearTimeout(P.current), A.current = E.current({
|
|
12884
12892
|
...r,
|
|
12885
12893
|
tree: v,
|
|
@@ -12929,21 +12937,21 @@ const useHover = function(r, n) {
|
|
|
12929
12937
|
}
|
|
12930
12938
|
}
|
|
12931
12939
|
}, [o, d, S, b, h, v, E, m, O]), index(() => {
|
|
12932
|
-
d || (
|
|
12940
|
+
d || (R.current = void 0, B(), L());
|
|
12933
12941
|
}, [d, B, L]), React.useEffect(() => () => {
|
|
12934
|
-
B(), clearTimeout(P.current), clearTimeout(
|
|
12942
|
+
B(), clearTimeout(P.current), clearTimeout(C.current), L();
|
|
12935
12943
|
}, [o, B, L]), React.useMemo(() => {
|
|
12936
12944
|
if (!o)
|
|
12937
12945
|
return {};
|
|
12938
12946
|
function D(W) {
|
|
12939
|
-
|
|
12947
|
+
R.current = W.pointerType;
|
|
12940
12948
|
}
|
|
12941
12949
|
return {
|
|
12942
12950
|
reference: {
|
|
12943
12951
|
onPointerDown: D,
|
|
12944
12952
|
onPointerEnter: D,
|
|
12945
12953
|
onMouseMove() {
|
|
12946
|
-
d || c === 0 || (clearTimeout(
|
|
12954
|
+
d || c === 0 || (clearTimeout(C.current), C.current = setTimeout(() => {
|
|
12947
12955
|
I.current || p(!0);
|
|
12948
12956
|
}, c));
|
|
12949
12957
|
}
|
|
@@ -13146,7 +13154,7 @@ const bubbleHandlerKeys = {
|
|
|
13146
13154
|
ancestorScroll: S = !1,
|
|
13147
13155
|
bubbles: E = !0
|
|
13148
13156
|
} = n === void 0 ? {} : n;
|
|
13149
|
-
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), {
|
|
13150
13158
|
escapeKeyBubbles: I,
|
|
13151
13159
|
outsidePressBubbles: j
|
|
13152
13160
|
} = normalizeBubblesProp(E);
|
|
@@ -13179,8 +13187,8 @@ const bubbleHandlerKeys = {
|
|
|
13179
13187
|
}
|
|
13180
13188
|
}
|
|
13181
13189
|
function O(D) {
|
|
13182
|
-
const W =
|
|
13183
|
-
if (
|
|
13190
|
+
const W = C.current;
|
|
13191
|
+
if (C.current = !1, W || typeof A == "function" && !A(D))
|
|
13184
13192
|
return;
|
|
13185
13193
|
const J = getTarget(D);
|
|
13186
13194
|
if (isHTMLElement(J) && d) {
|
|
@@ -13210,7 +13218,7 @@ const bubbleHandlerKeys = {
|
|
|
13210
13218
|
i.emit("dismiss", {
|
|
13211
13219
|
type: "outsidePress",
|
|
13212
13220
|
data: {
|
|
13213
|
-
returnFocus:
|
|
13221
|
+
returnFocus: R ? {
|
|
13214
13222
|
preventScroll: !0
|
|
13215
13223
|
} : isVirtualClick(D) || isVirtualPointerEvent(D)
|
|
13216
13224
|
}
|
|
@@ -13234,8 +13242,8 @@ const bubbleHandlerKeys = {
|
|
|
13234
13242
|
D.removeEventListener("scroll", T);
|
|
13235
13243
|
});
|
|
13236
13244
|
};
|
|
13237
|
-
}, [p, d, u, c, g, A, b, i, w, l, o, a, S, m, I, j,
|
|
13238
|
-
|
|
13245
|
+
}, [p, d, u, c, g, A, b, i, w, l, o, a, S, m, I, j, R]), React.useEffect(() => {
|
|
13246
|
+
C.current = !1;
|
|
13239
13247
|
}, [A, b]), React.useMemo(() => m ? {
|
|
13240
13248
|
reference: {
|
|
13241
13249
|
[bubbleHandlerKeys[v]]: () => {
|
|
@@ -13249,7 +13257,7 @@ const bubbleHandlerKeys = {
|
|
|
13249
13257
|
},
|
|
13250
13258
|
floating: {
|
|
13251
13259
|
[captureHandlerKeys[b]]: () => {
|
|
13252
|
-
|
|
13260
|
+
C.current = !0;
|
|
13253
13261
|
}
|
|
13254
13262
|
}
|
|
13255
13263
|
} : {}, [m, i, x, b, v, a]);
|
|
@@ -13623,17 +13631,17 @@ function useTransition({
|
|
|
13623
13631
|
onExited: u
|
|
13624
13632
|
}) {
|
|
13625
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) => {
|
|
13626
|
-
const w = E ? i : l,
|
|
13634
|
+
const w = E ? i : l, R = E ? c : u;
|
|
13627
13635
|
x(E ? "pre-entering" : "pre-exiting"), window.clearTimeout(v.current);
|
|
13628
13636
|
const P = m ? 0 : E ? r : n;
|
|
13629
13637
|
if (h(P), P === 0)
|
|
13630
|
-
typeof w == "function" && w(), typeof
|
|
13638
|
+
typeof w == "function" && w(), typeof R == "function" && R(), x(E ? "entered" : "exited");
|
|
13631
13639
|
else {
|
|
13632
13640
|
const A = window.setTimeout(() => {
|
|
13633
13641
|
typeof w == "function" && w(), x(E ? "entering" : "exiting");
|
|
13634
13642
|
}, 10);
|
|
13635
13643
|
v.current = window.setTimeout(() => {
|
|
13636
|
-
window.clearTimeout(A), typeof
|
|
13644
|
+
window.clearTimeout(A), typeof R == "function" && R(), x(E ? "entered" : "exited");
|
|
13637
13645
|
}, P);
|
|
13638
13646
|
}
|
|
13639
13647
|
};
|
|
@@ -13919,10 +13927,10 @@ function Popover(r) {
|
|
|
13919
13927
|
width: S,
|
|
13920
13928
|
middlewares: E,
|
|
13921
13929
|
withArrow: w,
|
|
13922
|
-
arrowSize:
|
|
13930
|
+
arrowSize: R,
|
|
13923
13931
|
arrowOffset: P,
|
|
13924
13932
|
arrowRadius: A,
|
|
13925
|
-
arrowPosition:
|
|
13933
|
+
arrowPosition: C,
|
|
13926
13934
|
unstyled: I,
|
|
13927
13935
|
classNames: j,
|
|
13928
13936
|
styles: k,
|
|
@@ -13988,7 +13996,7 @@ function Popover(r) {
|
|
|
13988
13996
|
middlewares: E,
|
|
13989
13997
|
width: S,
|
|
13990
13998
|
position: getFloatingPosition(Te.dir, m),
|
|
13991
|
-
offset: typeof g == "number" ? g + (w ?
|
|
13999
|
+
offset: typeof g == "number" ? g + (w ? R / 2 : 0) : g,
|
|
13992
14000
|
arrowRef: u,
|
|
13993
14001
|
arrowOffset: P,
|
|
13994
14002
|
onPositionChange: h,
|
|
@@ -14021,10 +14029,10 @@ function Popover(r) {
|
|
|
14021
14029
|
transitionProps: v,
|
|
14022
14030
|
width: S,
|
|
14023
14031
|
withArrow: w,
|
|
14024
|
-
arrowSize:
|
|
14032
|
+
arrowSize: R,
|
|
14025
14033
|
arrowOffset: P,
|
|
14026
14034
|
arrowRadius: A,
|
|
14027
|
-
arrowPosition:
|
|
14035
|
+
arrowPosition: C,
|
|
14028
14036
|
placement: be.floating.placement,
|
|
14029
14037
|
trapFocus: W,
|
|
14030
14038
|
withinPortal: T,
|
|
@@ -14187,10 +14195,10 @@ function useInputProps(r, n, o) {
|
|
|
14187
14195
|
descriptionProps: S,
|
|
14188
14196
|
wrapperProps: E,
|
|
14189
14197
|
id: w,
|
|
14190
|
-
size:
|
|
14198
|
+
size: R,
|
|
14191
14199
|
style: P,
|
|
14192
14200
|
inputContainer: A,
|
|
14193
|
-
inputWrapperOrder:
|
|
14201
|
+
inputWrapperOrder: C,
|
|
14194
14202
|
withAsterisk: I,
|
|
14195
14203
|
variant: j
|
|
14196
14204
|
} = a, k = __objRest$A(a, [
|
|
@@ -14230,10 +14238,10 @@ function useInputProps(r, n, o) {
|
|
|
14230
14238
|
unstyled: g,
|
|
14231
14239
|
styles: p,
|
|
14232
14240
|
id: O,
|
|
14233
|
-
size:
|
|
14241
|
+
size: R,
|
|
14234
14242
|
style: P,
|
|
14235
14243
|
inputContainer: A,
|
|
14236
|
-
inputWrapperOrder:
|
|
14244
|
+
inputWrapperOrder: C,
|
|
14237
14245
|
withAsterisk: I,
|
|
14238
14246
|
variant: j
|
|
14239
14247
|
}, E);
|
|
@@ -14248,7 +14256,7 @@ function useInputProps(r, n, o) {
|
|
|
14248
14256
|
styles: p,
|
|
14249
14257
|
unstyled: g,
|
|
14250
14258
|
id: O,
|
|
14251
|
-
size:
|
|
14259
|
+
size: R,
|
|
14252
14260
|
__staticSelector: h,
|
|
14253
14261
|
error: c,
|
|
14254
14262
|
variant: j
|
|
@@ -14515,10 +14523,10 @@ const defaultProps$q = {
|
|
|
14515
14523
|
size: S,
|
|
14516
14524
|
inputContainer: E,
|
|
14517
14525
|
__staticSelector: w,
|
|
14518
|
-
unstyled:
|
|
14526
|
+
unstyled: R,
|
|
14519
14527
|
inputWrapperOrder: P,
|
|
14520
14528
|
withAsterisk: A,
|
|
14521
|
-
variant:
|
|
14529
|
+
variant: C
|
|
14522
14530
|
} = o, I = __objRest$w(o, [
|
|
14523
14531
|
"className",
|
|
14524
14532
|
"label",
|
|
@@ -14544,15 +14552,15 @@ const defaultProps$q = {
|
|
|
14544
14552
|
classNames: x,
|
|
14545
14553
|
styles: v,
|
|
14546
14554
|
name: ["InputWrapper", w],
|
|
14547
|
-
unstyled:
|
|
14548
|
-
variant:
|
|
14555
|
+
unstyled: R,
|
|
14556
|
+
variant: C,
|
|
14549
14557
|
size: S
|
|
14550
14558
|
}), O = {
|
|
14551
14559
|
classNames: x,
|
|
14552
14560
|
styles: v,
|
|
14553
|
-
unstyled:
|
|
14561
|
+
unstyled: R,
|
|
14554
14562
|
size: S,
|
|
14555
|
-
variant:
|
|
14563
|
+
variant: C,
|
|
14556
14564
|
__staticSelector: w
|
|
14557
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({
|
|
14558
14566
|
key: "label",
|
|
@@ -14808,10 +14816,10 @@ const defaultProps$o = {
|
|
|
14808
14816
|
wrapperProps: S,
|
|
14809
14817
|
classNames: E,
|
|
14810
14818
|
styles: w,
|
|
14811
|
-
__staticSelector:
|
|
14819
|
+
__staticSelector: R,
|
|
14812
14820
|
multiline: P,
|
|
14813
14821
|
sx: A,
|
|
14814
|
-
unstyled:
|
|
14822
|
+
unstyled: C,
|
|
14815
14823
|
pointer: I
|
|
14816
14824
|
} = o, j = __objRest$u(o, [
|
|
14817
14825
|
"className",
|
|
@@ -14845,7 +14853,7 @@ const defaultProps$o = {
|
|
|
14845
14853
|
offsetBottom: k,
|
|
14846
14854
|
offsetTop: O,
|
|
14847
14855
|
pointer: I
|
|
14848
|
-
}, { 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);
|
|
14849
14857
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$J(__spreadValues$J({
|
|
14850
14858
|
className: L(B.wrapper, a),
|
|
14851
14859
|
sx: A,
|
|
@@ -15242,10 +15250,10 @@ const defaultProps$l = {
|
|
|
15242
15250
|
loading: S,
|
|
15243
15251
|
loaderPosition: E,
|
|
15244
15252
|
loaderProps: w,
|
|
15245
|
-
gradient:
|
|
15253
|
+
gradient: R,
|
|
15246
15254
|
classNames: P,
|
|
15247
15255
|
styles: A,
|
|
15248
|
-
unstyled:
|
|
15256
|
+
unstyled: C
|
|
15249
15257
|
} = o, I = __objRest$r(o, [
|
|
15250
15258
|
"className",
|
|
15251
15259
|
"size",
|
|
@@ -15272,10 +15280,10 @@ const defaultProps$l = {
|
|
|
15272
15280
|
color: l,
|
|
15273
15281
|
fullWidth: g,
|
|
15274
15282
|
compact: v,
|
|
15275
|
-
gradient:
|
|
15283
|
+
gradient: R,
|
|
15276
15284
|
withLeftIcon: !!p,
|
|
15277
15285
|
withRightIcon: !!m
|
|
15278
|
-
}, { 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({
|
|
15279
15287
|
color: T.color,
|
|
15280
15288
|
size: `calc(${getSize({ size: i, sizes: sizes$1 }).height} / 2)`
|
|
15281
15289
|
}, w));
|
|
@@ -15287,7 +15295,7 @@ const defaultProps$l = {
|
|
|
15287
15295
|
"data-disabled": u || void 0,
|
|
15288
15296
|
"data-loading": S || void 0,
|
|
15289
15297
|
ref: n,
|
|
15290
|
-
unstyled:
|
|
15298
|
+
unstyled: C
|
|
15291
15299
|
}, I), /* @__PURE__ */ React__default.createElement("div", {
|
|
15292
15300
|
className: j.inner
|
|
15293
15301
|
}, (p || S && E === "left") && /* @__PURE__ */ React__default.createElement("span", {
|
|
@@ -15433,10 +15441,10 @@ const defaultProps$j = {
|
|
|
15433
15441
|
"unstyled",
|
|
15434
15442
|
"center",
|
|
15435
15443
|
"fixed"
|
|
15436
|
-
]), { 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 });
|
|
15437
15445
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$A({
|
|
15438
15446
|
ref: n,
|
|
15439
|
-
className:
|
|
15447
|
+
className: R(w.root, g),
|
|
15440
15448
|
"data-center": v || void 0
|
|
15441
15449
|
}, E), m);
|
|
15442
15450
|
});
|
|
@@ -15676,7 +15684,7 @@ const defaultProps$g = {
|
|
|
15676
15684
|
zIndex: S,
|
|
15677
15685
|
unstyled: E,
|
|
15678
15686
|
processing: w,
|
|
15679
|
-
variant:
|
|
15687
|
+
variant: R
|
|
15680
15688
|
} = o, P = __objRest$m(o, [
|
|
15681
15689
|
"children",
|
|
15682
15690
|
"position",
|
|
@@ -15695,14 +15703,14 @@ const defaultProps$g = {
|
|
|
15695
15703
|
"unstyled",
|
|
15696
15704
|
"processing",
|
|
15697
15705
|
"variant"
|
|
15698
|
-
]), { 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 });
|
|
15699
15707
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$w({
|
|
15700
15708
|
ref: n,
|
|
15701
|
-
className:
|
|
15709
|
+
className: C(A.root, m)
|
|
15702
15710
|
}, P), !v && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
15703
|
-
className:
|
|
15711
|
+
className: C(A.indicator, A.common)
|
|
15704
15712
|
}, b), w && /* @__PURE__ */ React__default.createElement("div", {
|
|
15705
|
-
className:
|
|
15713
|
+
className: C(A.processing, A.common)
|
|
15706
15714
|
})), a);
|
|
15707
15715
|
});
|
|
15708
15716
|
Indicator.displayName = "@mantine/core/Indicator";
|
|
@@ -15772,10 +15780,10 @@ const defaultProps$f = {}, ListItem = forwardRef$1((r, n) => {
|
|
|
15772
15780
|
styles: x,
|
|
15773
15781
|
unstyled: v,
|
|
15774
15782
|
variant: S
|
|
15775
|
-
} = 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 });
|
|
15776
15784
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$v({
|
|
15777
15785
|
component: "li",
|
|
15778
|
-
className:
|
|
15786
|
+
className: R(w.item, a),
|
|
15779
15787
|
"data-with-icon": !!E || void 0,
|
|
15780
15788
|
ref: n
|
|
15781
15789
|
}, c), /* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -15941,7 +15949,7 @@ const defaultProps$d = {
|
|
|
15941
15949
|
"unstyled",
|
|
15942
15950
|
"variant",
|
|
15943
15951
|
"keepMounted"
|
|
15944
|
-
]), { classes:
|
|
15952
|
+
]), { classes: R, cx: P, theme: A } = useStyles$j(null, { name: "LoadingOverlay", unstyled: v, variant: S }), C = `calc(${m} + 1)`;
|
|
15945
15953
|
return /* @__PURE__ */ React__default.createElement(Transition, {
|
|
15946
15954
|
keepMounted: E,
|
|
15947
15955
|
duration: d,
|
|
@@ -15949,13 +15957,13 @@ const defaultProps$d = {
|
|
|
15949
15957
|
mounted: i,
|
|
15950
15958
|
transition: "fade"
|
|
15951
15959
|
}, (I) => /* @__PURE__ */ React__default.createElement(Box, __spreadValues$r({
|
|
15952
|
-
className: P(
|
|
15960
|
+
className: P(R.root, a),
|
|
15953
15961
|
style: __spreadProps$m(__spreadValues$r(__spreadValues$r({}, I), g), { zIndex: m }),
|
|
15954
15962
|
ref: n
|
|
15955
15963
|
}, w), h ? /* @__PURE__ */ React__default.createElement("div", {
|
|
15956
|
-
style: { zIndex:
|
|
15964
|
+
style: { zIndex: C }
|
|
15957
15965
|
}, h) : /* @__PURE__ */ React__default.createElement(Loader, __spreadValues$r({
|
|
15958
|
-
style: { zIndex:
|
|
15966
|
+
style: { zIndex: C }
|
|
15959
15967
|
}, l)), /* @__PURE__ */ React__default.createElement(Overlay, {
|
|
15960
15968
|
opacity: c,
|
|
15961
15969
|
zIndex: m,
|
|
@@ -16181,10 +16189,10 @@ const defaultProps$c = {
|
|
|
16181
16189
|
opened: S,
|
|
16182
16190
|
defaultOpened: E,
|
|
16183
16191
|
onChange: w,
|
|
16184
|
-
disableRightSectionRotation:
|
|
16192
|
+
disableRightSectionRotation: R,
|
|
16185
16193
|
childrenOffset: P,
|
|
16186
16194
|
disabled: A,
|
|
16187
|
-
onClick:
|
|
16195
|
+
onClick: C
|
|
16188
16196
|
} = o, I = __objRest$g(o, [
|
|
16189
16197
|
"label",
|
|
16190
16198
|
"description",
|
|
@@ -16212,7 +16220,7 @@ const defaultProps$c = {
|
|
|
16212
16220
|
finalValue: !1,
|
|
16213
16221
|
onChange: w
|
|
16214
16222
|
}), B = !!v, L = (D) => {
|
|
16215
|
-
B ? (D.preventDefault(),
|
|
16223
|
+
B ? (D.preventDefault(), C == null || C(D), T(!O)) : C == null || C(D);
|
|
16216
16224
|
};
|
|
16217
16225
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(UnstyledButton, __spreadValues$m({
|
|
16218
16226
|
ref: n,
|
|
@@ -16239,7 +16247,7 @@ const defaultProps$c = {
|
|
|
16239
16247
|
className: j.description
|
|
16240
16248
|
}, i)), (B || c) && /* @__PURE__ */ React__default.createElement("span", {
|
|
16241
16249
|
className: j.rightSection,
|
|
16242
|
-
"data-rotate": O && !
|
|
16250
|
+
"data-rotate": O && !R || void 0
|
|
16243
16251
|
}, B ? c || /* @__PURE__ */ React__default.createElement(ChevronIcon$1, {
|
|
16244
16252
|
width: rem(14),
|
|
16245
16253
|
height: rem(14),
|
|
@@ -16414,10 +16422,10 @@ function TooltipFloating(r) {
|
|
|
16414
16422
|
position: S,
|
|
16415
16423
|
multiline: E,
|
|
16416
16424
|
width: w,
|
|
16417
|
-
zIndex:
|
|
16425
|
+
zIndex: R,
|
|
16418
16426
|
disabled: P,
|
|
16419
16427
|
variant: A
|
|
16420
|
-
} = o,
|
|
16428
|
+
} = o, C = __objRest$e(o, [
|
|
16421
16429
|
"children",
|
|
16422
16430
|
"refProp",
|
|
16423
16431
|
"withinPortal",
|
|
@@ -16452,11 +16460,11 @@ function TooltipFloating(r) {
|
|
|
16452
16460
|
};
|
|
16453
16461
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(OptionalPortal, __spreadProps$g(__spreadValues$j({}, c), {
|
|
16454
16462
|
withinPortal: l
|
|
16455
|
-
}), /* @__PURE__ */ React__default.createElement(Box, __spreadProps$g(__spreadValues$j({},
|
|
16463
|
+
}), /* @__PURE__ */ React__default.createElement(Box, __spreadProps$g(__spreadValues$j({}, C), {
|
|
16456
16464
|
ref: B,
|
|
16457
16465
|
className: W(D.tooltip, d),
|
|
16458
16466
|
style: __spreadProps$g(__spreadValues$j({}, u), {
|
|
16459
|
-
zIndex:
|
|
16467
|
+
zIndex: R,
|
|
16460
16468
|
display: !P && O ? "block" : "none",
|
|
16461
16469
|
top: k ?? "",
|
|
16462
16470
|
left: (n = Math.round(j)) != null ? n : ""
|
|
@@ -16480,7 +16488,7 @@ function useTooltip(r) {
|
|
|
16480
16488
|
refs: S,
|
|
16481
16489
|
update: E,
|
|
16482
16490
|
placement: w,
|
|
16483
|
-
middlewareData: { arrow: { x:
|
|
16491
|
+
middlewareData: { arrow: { x: R, y: P } = {} }
|
|
16484
16492
|
} = useFloating({
|
|
16485
16493
|
placement: r.position,
|
|
16486
16494
|
open: i,
|
|
@@ -16492,7 +16500,7 @@ function useTooltip(r) {
|
|
|
16492
16500
|
arrow({ element: r.arrowRef, padding: r.arrowOffset }),
|
|
16493
16501
|
...r.inline ? [inline()] : []
|
|
16494
16502
|
]
|
|
16495
|
-
}), { getReferenceProps: A, getFloatingProps:
|
|
16503
|
+
}), { getReferenceProps: A, getFloatingProps: C } = useInteractions([
|
|
16496
16504
|
useHover(v, {
|
|
16497
16505
|
enabled: r.events.hover,
|
|
16498
16506
|
delay: l ? u : { open: r.openDelay, close: r.closeDelay },
|
|
@@ -16514,11 +16522,11 @@ function useTooltip(r) {
|
|
|
16514
16522
|
}, [w]), {
|
|
16515
16523
|
x: g,
|
|
16516
16524
|
y: h,
|
|
16517
|
-
arrowX:
|
|
16525
|
+
arrowX: R,
|
|
16518
16526
|
arrowY: P,
|
|
16519
16527
|
reference: b,
|
|
16520
16528
|
floating: x,
|
|
16521
|
-
getFloatingProps:
|
|
16529
|
+
getFloatingProps: C,
|
|
16522
16530
|
getReferenceProps: A,
|
|
16523
16531
|
isGroupPhase: i && d && d !== c,
|
|
16524
16532
|
opened: i,
|
|
@@ -16573,10 +16581,10 @@ const defaultProps$9 = {
|
|
|
16573
16581
|
color: S,
|
|
16574
16582
|
classNames: E,
|
|
16575
16583
|
styles: w,
|
|
16576
|
-
unstyled:
|
|
16584
|
+
unstyled: R,
|
|
16577
16585
|
style: P,
|
|
16578
16586
|
className: A,
|
|
16579
|
-
withArrow:
|
|
16587
|
+
withArrow: C,
|
|
16580
16588
|
arrowSize: I,
|
|
16581
16589
|
arrowOffset: j,
|
|
16582
16590
|
arrowRadius: k,
|
|
@@ -16632,7 +16640,7 @@ const defaultProps$9 = {
|
|
|
16632
16640
|
"inline",
|
|
16633
16641
|
"variant",
|
|
16634
16642
|
"keepMounted"
|
|
16635
|
-
]), { 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({
|
|
16636
16644
|
position: getFloatingPosition(re.dir, c),
|
|
16637
16645
|
closeDelay: m,
|
|
16638
16646
|
openDelay: p,
|
|
@@ -16641,7 +16649,7 @@ const defaultProps$9 = {
|
|
|
16641
16649
|
events: W,
|
|
16642
16650
|
arrowRef: a,
|
|
16643
16651
|
arrowOffset: j,
|
|
16644
|
-
offset: T + (
|
|
16652
|
+
offset: T + (C ? I / 2 : 0),
|
|
16645
16653
|
positionDependencies: [...V, l],
|
|
16646
16654
|
inline: z
|
|
16647
16655
|
});
|
|
@@ -16670,7 +16678,7 @@ const defaultProps$9 = {
|
|
|
16670
16678
|
ref: a,
|
|
16671
16679
|
arrowX: $.arrowX,
|
|
16672
16680
|
arrowY: $.arrowY,
|
|
16673
|
-
visible:
|
|
16681
|
+
visible: C,
|
|
16674
16682
|
position: $.placement,
|
|
16675
16683
|
arrowSize: I,
|
|
16676
16684
|
arrowOffset: j,
|
|
@@ -16789,10 +16797,10 @@ const defaultProps$8 = {
|
|
|
16789
16797
|
unstyled: S,
|
|
16790
16798
|
classNames: E,
|
|
16791
16799
|
styles: w,
|
|
16792
|
-
filter:
|
|
16800
|
+
filter: R,
|
|
16793
16801
|
maxDropdownHeight: P,
|
|
16794
16802
|
searchable: A,
|
|
16795
|
-
clearable:
|
|
16803
|
+
clearable: C,
|
|
16796
16804
|
nothingFound: I,
|
|
16797
16805
|
limit: j,
|
|
16798
16806
|
disabled: k,
|
|
@@ -16872,12 +16880,12 @@ const defaultProps$8 = {
|
|
|
16872
16880
|
"readOnly",
|
|
16873
16881
|
"clearButtonProps",
|
|
16874
16882
|
"hoverOnSearchChange"
|
|
16875
|
-
]), { 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({
|
|
16876
16884
|
duration: 0,
|
|
16877
16885
|
offset: 5,
|
|
16878
16886
|
cancelable: !1,
|
|
16879
16887
|
isList: !0
|
|
16880
|
-
}), Ye = re === void 0 ?
|
|
16888
|
+
}), Ye = re === void 0 ? C : re, Se = (H) => {
|
|
16881
16889
|
if (ge !== H) {
|
|
16882
16890
|
Ge(H);
|
|
16883
16891
|
const ie = H ? ee : G;
|
|
@@ -16885,12 +16893,12 @@ const defaultProps$8 = {
|
|
|
16885
16893
|
}
|
|
16886
16894
|
}, qe = D && typeof W == "function";
|
|
16887
16895
|
let We = null;
|
|
16888
|
-
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({
|
|
16889
16897
|
value: u,
|
|
16890
16898
|
defaultValue: d,
|
|
16891
16899
|
finalValue: null,
|
|
16892
16900
|
onChange: p
|
|
16893
|
-
}), Pe = Ue.find((H) => H.value ===
|
|
16901
|
+
}), Pe = Ue.find((H) => H.value === Ce), [Ie, at] = useUncontrolled({
|
|
16894
16902
|
value: T,
|
|
16895
16903
|
defaultValue: (Pe == null ? void 0 : Pe.label) || "",
|
|
16896
16904
|
finalValue: void 0,
|
|
@@ -16902,9 +16910,9 @@ const defaultProps$8 = {
|
|
|
16902
16910
|
Z || (Be(null), Xe || Oe(""), (H = He.current) == null || H.focus());
|
|
16903
16911
|
};
|
|
16904
16912
|
useEffect$1(() => {
|
|
16905
|
-
const H = Ue.find((ie) => ie.value ===
|
|
16906
|
-
H ? Oe(H.label) : (!qe || !
|
|
16907
|
-
}, [
|
|
16913
|
+
const H = Ue.find((ie) => ie.value === Ce);
|
|
16914
|
+
H ? Oe(H.label) : (!qe || !Ce) && Oe("");
|
|
16915
|
+
}, [Ce]), useEffect$1(() => {
|
|
16908
16916
|
Pe && (!A || !ge) && Oe(Pe.label);
|
|
16909
16917
|
}, [Pe == null ? void 0 : Pe.label]);
|
|
16910
16918
|
const je = (H) => {
|
|
@@ -16924,9 +16932,9 @@ const defaultProps$8 = {
|
|
|
16924
16932
|
searchable: A,
|
|
16925
16933
|
limit: j,
|
|
16926
16934
|
searchValue: Ie,
|
|
16927
|
-
filter:
|
|
16935
|
+
filter: R,
|
|
16928
16936
|
filterDataOnExactSearchMatch: ae,
|
|
16929
|
-
value:
|
|
16937
|
+
value: Ce
|
|
16930
16938
|
});
|
|
16931
16939
|
qe && J(Ie, he) && (We = W(Ie), he.push({ label: Ie, value: Ie, creatable: !0 }));
|
|
16932
16940
|
const Qe = (H, ie, ue) => {
|
|
@@ -16939,21 +16947,21 @@ const defaultProps$8 = {
|
|
|
16939
16947
|
useDidUpdate(() => {
|
|
16940
16948
|
ve(fe && Ie ? 0 : -1);
|
|
16941
16949
|
}, [Ie, fe]);
|
|
16942
|
-
const Ve =
|
|
16950
|
+
const Ve = Ce ? he.findIndex((H) => H.value === Ce) : 0, Ee = !Z && (he.length > 0 ? ge : ge && !!I), _e = () => {
|
|
16943
16951
|
ve((H) => {
|
|
16944
16952
|
var ie;
|
|
16945
16953
|
const ue = Qe(H, (de) => de - 1, (de) => de > 0);
|
|
16946
|
-
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;
|
|
16947
16955
|
});
|
|
16948
16956
|
}, $e = () => {
|
|
16949
16957
|
ve((H) => {
|
|
16950
16958
|
var ie;
|
|
16951
16959
|
const ue = Qe(H, (de) => de + 1, (de) => de < he.length - 1);
|
|
16952
|
-
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;
|
|
16953
16961
|
});
|
|
16954
16962
|
}, Ke = () => window.setTimeout(() => {
|
|
16955
16963
|
var H;
|
|
16956
|
-
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" });
|
|
16957
16965
|
}, 50);
|
|
16958
16966
|
useDidUpdate(() => {
|
|
16959
16967
|
Ee && Ke();
|
|
@@ -16961,18 +16969,18 @@ const defaultProps$8 = {
|
|
|
16961
16969
|
const N = (H) => {
|
|
16962
16970
|
switch (typeof g == "function" && g(H), H.key) {
|
|
16963
16971
|
case "ArrowUp": {
|
|
16964
|
-
H.preventDefault(), ge ?
|
|
16972
|
+
H.preventDefault(), ge ? Re ? _e() : $e() : (ve(Ve), Se(!0), Ke());
|
|
16965
16973
|
break;
|
|
16966
16974
|
}
|
|
16967
16975
|
case "ArrowDown": {
|
|
16968
|
-
H.preventDefault(), ge ?
|
|
16976
|
+
H.preventDefault(), ge ? Re ? $e() : _e() : (ve(Ve), Se(!0), Ke());
|
|
16969
16977
|
break;
|
|
16970
16978
|
}
|
|
16971
16979
|
case "Home": {
|
|
16972
16980
|
if (!A) {
|
|
16973
16981
|
H.preventDefault(), ge || Se(!0);
|
|
16974
16982
|
const ie = he.findIndex((ue) => !ue.disabled);
|
|
16975
|
-
ve(ie), Ee && De({ alignment:
|
|
16983
|
+
ve(ie), Ee && De({ alignment: Re ? "end" : "start" });
|
|
16976
16984
|
}
|
|
16977
16985
|
break;
|
|
16978
16986
|
}
|
|
@@ -16980,7 +16988,7 @@ const defaultProps$8 = {
|
|
|
16980
16988
|
if (!A) {
|
|
16981
16989
|
H.preventDefault(), ge || Se(!0);
|
|
16982
16990
|
const ie = he.map((ue) => !!ue.disabled).lastIndexOf(!1);
|
|
16983
|
-
ve(ie), Ee && De({ alignment:
|
|
16991
|
+
ve(ie), Ee && De({ alignment: Re ? "end" : "start" });
|
|
16984
16992
|
}
|
|
16985
16993
|
break;
|
|
16986
16994
|
}
|
|
@@ -16997,14 +17005,14 @@ const defaultProps$8 = {
|
|
|
16997
17005
|
}
|
|
16998
17006
|
}, M = (H) => {
|
|
16999
17007
|
typeof h == "function" && h(H);
|
|
17000
|
-
const ie = Ue.find((ue) => ue.value ===
|
|
17008
|
+
const ie = Ue.find((ue) => ue.value === Ce);
|
|
17001
17009
|
F && he[ke] && ge && je(he[ke]), Oe((ie == null ? void 0 : ie.label) || ""), Se(!1);
|
|
17002
17010
|
}, Y = (H) => {
|
|
17003
17011
|
typeof b == "function" && b(H), A && Se(!0);
|
|
17004
17012
|
}, oe = (H) => {
|
|
17005
|
-
Z || (Oe(H.currentTarget.value),
|
|
17013
|
+
Z || (Oe(H.currentTarget.value), C && H.currentTarget.value === "" && Be(null), ve(-1), Se(!0));
|
|
17006
17014
|
}, ce = () => {
|
|
17007
|
-
Z || (Se(!ge),
|
|
17015
|
+
Z || (Se(!ge), Ce && !ge && ve(Ve));
|
|
17008
17016
|
};
|
|
17009
17017
|
return /* @__PURE__ */ React__default.createElement(Input.Wrapper, __spreadProps$e(__spreadValues$h({}, i), {
|
|
17010
17018
|
__staticSelector: "Select"
|
|
@@ -17035,7 +17043,7 @@ const defaultProps$8 = {
|
|
|
17035
17043
|
}, /* @__PURE__ */ React__default.createElement("input", {
|
|
17036
17044
|
type: "hidden",
|
|
17037
17045
|
name: Q,
|
|
17038
|
-
value:
|
|
17046
|
+
value: Ce || "",
|
|
17039
17047
|
form: se,
|
|
17040
17048
|
disabled: k
|
|
17041
17049
|
}), /* @__PURE__ */ React__default.createElement(Input, __spreadValues$h(__spreadProps$e(__spreadValues$h(__spreadValues$h({
|
|
@@ -17067,7 +17075,7 @@ const defaultProps$8 = {
|
|
|
17067
17075
|
rightSectionWidth: L,
|
|
17068
17076
|
styles: w,
|
|
17069
17077
|
size: a.size,
|
|
17070
|
-
shouldClear:
|
|
17078
|
+
shouldClear: C && !!Pe,
|
|
17071
17079
|
onClear: st,
|
|
17072
17080
|
error: i.error,
|
|
17073
17081
|
clearButtonProps: le,
|
|
@@ -17087,7 +17095,7 @@ const defaultProps$8 = {
|
|
|
17087
17095
|
hovered: ke,
|
|
17088
17096
|
classNames: E,
|
|
17089
17097
|
styles: w,
|
|
17090
|
-
isItemSelected: (H) => H ===
|
|
17098
|
+
isItemSelected: (H) => H === Ce,
|
|
17091
17099
|
uuid: a.id,
|
|
17092
17100
|
__staticSelector: "Select",
|
|
17093
17101
|
onItemHover: ve,
|
|
@@ -17214,15 +17222,15 @@ const Thumb = forwardRef$1(({
|
|
|
17214
17222
|
thumbLabel: S,
|
|
17215
17223
|
onFocus: E,
|
|
17216
17224
|
onBlur: w,
|
|
17217
|
-
showLabelOnHover:
|
|
17225
|
+
showLabelOnHover: R,
|
|
17218
17226
|
isHovered: P,
|
|
17219
17227
|
children: A = null,
|
|
17220
|
-
disabled:
|
|
17228
|
+
disabled: C,
|
|
17221
17229
|
unstyled: I,
|
|
17222
17230
|
thumbSize: j,
|
|
17223
17231
|
variant: k
|
|
17224
17232
|
}, O) => {
|
|
17225
|
-
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;
|
|
17226
17234
|
return /* @__PURE__ */ React__default.createElement(Box, {
|
|
17227
17235
|
tabIndex: 0,
|
|
17228
17236
|
role: "slider",
|
|
@@ -17314,10 +17322,10 @@ function Marks({
|
|
|
17314
17322
|
inverted: b,
|
|
17315
17323
|
variant: x
|
|
17316
17324
|
}) {
|
|
17317
|
-
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, {
|
|
17318
17326
|
className: v.markWrapper,
|
|
17319
17327
|
sx: { left: `${getPosition({ value: w.value, min: i, max: l })}%` },
|
|
17320
|
-
key:
|
|
17328
|
+
key: R
|
|
17321
17329
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
17322
17330
|
className: S(v.mark, {
|
|
17323
17331
|
[v.markFilled]: isMarkFilled({ mark: w, value: c, offset: p, inverted: b })
|
|
@@ -17567,10 +17575,10 @@ const defaultProps$7 = {
|
|
|
17567
17575
|
name: S,
|
|
17568
17576
|
marks: E,
|
|
17569
17577
|
label: w,
|
|
17570
|
-
labelTransition:
|
|
17578
|
+
labelTransition: R,
|
|
17571
17579
|
labelTransitionDuration: P,
|
|
17572
17580
|
labelTransitionTimingFunction: A,
|
|
17573
|
-
labelAlwaysOn:
|
|
17581
|
+
labelAlwaysOn: C,
|
|
17574
17582
|
thumbLabel: I,
|
|
17575
17583
|
showLabelOnHover: j,
|
|
17576
17584
|
thumbChildren: k,
|
|
@@ -17703,10 +17711,10 @@ const defaultProps$7 = {
|
|
|
17703
17711
|
size: p,
|
|
17704
17712
|
label: re,
|
|
17705
17713
|
ref: _,
|
|
17706
|
-
labelTransition:
|
|
17714
|
+
labelTransition: R,
|
|
17707
17715
|
labelTransitionDuration: P,
|
|
17708
17716
|
labelTransitionTimingFunction: A,
|
|
17709
|
-
labelAlwaysOn:
|
|
17717
|
+
labelAlwaysOn: C,
|
|
17710
17718
|
classNames: a,
|
|
17711
17719
|
styles: i,
|
|
17712
17720
|
thumbLabel: I,
|
|
@@ -17990,8 +17998,8 @@ const defaultProps$3 = {}, Tab = forwardRef$1((r, n) => {
|
|
|
17990
17998
|
classNames: h.classNames,
|
|
17991
17999
|
styles: h.styles,
|
|
17992
18000
|
variant: h.variant
|
|
17993
|
-
}), w = a === h.value,
|
|
17994
|
-
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);
|
|
17995
18003
|
};
|
|
17996
18004
|
return /* @__PURE__ */ React__default.createElement(UnstyledButton, __spreadProps$5(__spreadValues$6({}, g), {
|
|
17997
18005
|
unstyled: h.unstyled,
|
|
@@ -18043,7 +18051,7 @@ function TabsProvider({
|
|
|
18043
18051
|
styles: S,
|
|
18044
18052
|
unstyled: E
|
|
18045
18053
|
}) {
|
|
18046
|
-
const w = useId$2(c), [
|
|
18054
|
+
const w = useId$2(c), [R, P] = useState$1([]), [A, C] = useUncontrolled({
|
|
18047
18055
|
value: n,
|
|
18048
18056
|
defaultValue: r,
|
|
18049
18057
|
finalValue: null,
|
|
@@ -18059,9 +18067,9 @@ function TabsProvider({
|
|
|
18059
18067
|
activateTabWithKeyboard: u,
|
|
18060
18068
|
getTabId: getSafeId(`${w}-tab`, TABS_ERRORS.value),
|
|
18061
18069
|
getPanelId: getSafeId(`${w}-panel`, TABS_ERRORS.value),
|
|
18062
|
-
onTabChange:
|
|
18070
|
+
onTabChange: C,
|
|
18063
18071
|
setMountedPanelIds: P,
|
|
18064
|
-
mountedPanelIds:
|
|
18072
|
+
mountedPanelIds: R,
|
|
18065
18073
|
allowTabDeactivation: d,
|
|
18066
18074
|
variant: p,
|
|
18067
18075
|
color: m,
|
|
@@ -18123,10 +18131,10 @@ const defaultProps$2 = {
|
|
|
18123
18131
|
classNames: S,
|
|
18124
18132
|
styles: E,
|
|
18125
18133
|
radius: w,
|
|
18126
|
-
inverted:
|
|
18134
|
+
inverted: R,
|
|
18127
18135
|
keepMounted: P,
|
|
18128
18136
|
placement: A
|
|
18129
|
-
} = o,
|
|
18137
|
+
} = o, C = __objRest$4(o, [
|
|
18130
18138
|
"defaultValue",
|
|
18131
18139
|
"value",
|
|
18132
18140
|
"orientation",
|
|
@@ -18146,7 +18154,7 @@ const defaultProps$2 = {
|
|
|
18146
18154
|
"inverted",
|
|
18147
18155
|
"keepMounted",
|
|
18148
18156
|
"placement"
|
|
18149
|
-
]), { 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 });
|
|
18150
18158
|
return /* @__PURE__ */ React__default.createElement(TabsProvider, {
|
|
18151
18159
|
activateTabWithKeyboard: u,
|
|
18152
18160
|
defaultValue: a,
|
|
@@ -18159,13 +18167,13 @@ const defaultProps$2 = {
|
|
|
18159
18167
|
color: b,
|
|
18160
18168
|
variant: h,
|
|
18161
18169
|
radius: w,
|
|
18162
|
-
inverted:
|
|
18170
|
+
inverted: R,
|
|
18163
18171
|
keepMounted: P,
|
|
18164
18172
|
placement: A,
|
|
18165
18173
|
classNames: S,
|
|
18166
18174
|
styles: E,
|
|
18167
18175
|
unstyled: v
|
|
18168
|
-
}, /* @__PURE__ */ React__default.createElement(Box, __spreadProps$4(__spreadValues$5({},
|
|
18176
|
+
}, /* @__PURE__ */ React__default.createElement(Box, __spreadProps$4(__spreadValues$5({}, C), {
|
|
18169
18177
|
className: j(I.root, x),
|
|
18170
18178
|
id: m,
|
|
18171
18179
|
ref: n
|
|
@@ -18535,37 +18543,37 @@ const stringify_1 = stringify$1, quote_1 = quote, ROOT_SENTINEL = Symbol("root")
|
|
|
18535
18543
|
function stringify(r, n, o, a = {}) {
|
|
18536
18544
|
const i = typeof o == "string" ? o : " ".repeat(o || 0), l = [], c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
|
|
18537
18545
|
let p = 0;
|
|
18538
|
-
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) => {
|
|
18539
18547
|
if (++p > b || h && w === void 0 || l.length > m)
|
|
18540
18548
|
return;
|
|
18541
|
-
if (
|
|
18542
|
-
return x(w, i, v,
|
|
18543
|
-
l.push(
|
|
18544
|
-
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);
|
|
18545
18553
|
return l.pop(), P;
|
|
18546
|
-
}, S = g ? (w,
|
|
18554
|
+
}, S = g ? (w, R) => {
|
|
18547
18555
|
if (w !== null && (typeof w == "object" || typeof w == "function" || typeof w == "symbol")) {
|
|
18548
18556
|
if (u.has(w))
|
|
18549
|
-
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);
|
|
18550
18558
|
u.set(w, l.slice(1));
|
|
18551
18559
|
}
|
|
18552
|
-
return x(w, i, v,
|
|
18553
|
-
} : (w,
|
|
18560
|
+
return x(w, i, v, R);
|
|
18561
|
+
} : (w, R) => {
|
|
18554
18562
|
if (c.has(w))
|
|
18555
18563
|
return;
|
|
18556
18564
|
c.add(w);
|
|
18557
|
-
const P = x(w, i, v,
|
|
18565
|
+
const P = x(w, i, v, R);
|
|
18558
18566
|
return c.delete(w), P;
|
|
18559
18567
|
}, E = v(r, ROOT_SENTINEL);
|
|
18560
18568
|
if (d.size) {
|
|
18561
|
-
const w = i ? " " : "",
|
|
18569
|
+
const w = i ? " " : "", R = i ? `
|
|
18562
18570
|
` : "";
|
|
18563
|
-
let P = `var x${w}=${w}${E};${
|
|
18564
|
-
for (const [A,
|
|
18565
|
-
const I = quote_1.stringifyPath(A, v), j = quote_1.stringifyPath(
|
|
18566
|
-
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}`;
|
|
18567
18575
|
}
|
|
18568
|
-
return `(function${w}()${w}{${
|
|
18576
|
+
return `(function${w}()${w}{${R}${P}return x;${R}}())`;
|
|
18569
18577
|
}
|
|
18570
18578
|
return E;
|
|
18571
18579
|
}
|
|
@@ -18616,15 +18624,15 @@ function PanelWithForwardedRef({
|
|
|
18616
18624
|
collapsePanel: S,
|
|
18617
18625
|
expandPanel: E,
|
|
18618
18626
|
getPanelStyle: w,
|
|
18619
|
-
registerPanel:
|
|
18627
|
+
registerPanel: R,
|
|
18620
18628
|
resizePanel: P,
|
|
18621
18629
|
unregisterPanel: A
|
|
18622
|
-
} = x,
|
|
18630
|
+
} = x, C = useRef({
|
|
18623
18631
|
onCollapse: p,
|
|
18624
18632
|
onResize: m
|
|
18625
18633
|
});
|
|
18626
18634
|
if (useEffect(() => {
|
|
18627
|
-
|
|
18635
|
+
C.current.onCollapse = p, C.current.onResize = m;
|
|
18628
18636
|
}), d < 0 || d > 100)
|
|
18629
18637
|
throw Error(`Panel minSize must be between 0 and 100, but was ${d}`);
|
|
18630
18638
|
if (u < 0 || u > 100)
|
|
@@ -18637,7 +18645,7 @@ function PanelWithForwardedRef({
|
|
|
18637
18645
|
const I = w(v, i), j = useRef({
|
|
18638
18646
|
size: parseSizeFromStyle(I)
|
|
18639
18647
|
}), k = useRef({
|
|
18640
|
-
callbacksRef:
|
|
18648
|
+
callbacksRef: C,
|
|
18641
18649
|
collapsedSize: o,
|
|
18642
18650
|
collapsible: a,
|
|
18643
18651
|
defaultSize: i,
|
|
@@ -18648,10 +18656,10 @@ function PanelWithForwardedRef({
|
|
|
18648
18656
|
order: g
|
|
18649
18657
|
});
|
|
18650
18658
|
return useIsomorphicLayoutEffect(() => {
|
|
18651
|
-
j.current.size = parseSizeFromStyle(I), k.current.callbacksRef =
|
|
18652
|
-
}), 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), () => {
|
|
18653
18661
|
A(v);
|
|
18654
|
-
}), [g, v,
|
|
18662
|
+
}), [g, v, R, A]), useImperativeHandle(l, () => ({
|
|
18655
18663
|
collapse: () => S(v),
|
|
18656
18664
|
expand: () => E(v),
|
|
18657
18665
|
getCollapsed() {
|
|
@@ -18697,10 +18705,10 @@ function adjustByDelta(r, n, o, a, i, l, c, u) {
|
|
|
18697
18705
|
const m = panelsMapToSortedArray(n), g = p.concat();
|
|
18698
18706
|
let h = 0;
|
|
18699
18707
|
{
|
|
18700
|
-
const v = i < 0 ? a : o, S = m.findIndex((P) => P.current.id === v), E = m[S], w = p[S],
|
|
18701
|
-
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)
|
|
18702
18710
|
return p;
|
|
18703
|
-
|
|
18711
|
+
R === 0 && w > 0 && c.set(v, w), i = i < 0 ? w - R : R - w;
|
|
18704
18712
|
}
|
|
18705
18713
|
let b = i < 0 ? o : a, x = m.findIndex((v) => v.current.id === b);
|
|
18706
18714
|
for (; ; ) {
|
|
@@ -18826,12 +18834,12 @@ function useWindowSplitterPanelGroupBehavior({
|
|
|
18826
18834
|
if (S == null || E == null)
|
|
18827
18835
|
return () => {
|
|
18828
18836
|
};
|
|
18829
|
-
let w = 0,
|
|
18837
|
+
let w = 0, R = 100, P = 0, A = 0;
|
|
18830
18838
|
v.forEach((T) => {
|
|
18831
|
-
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);
|
|
18832
18840
|
});
|
|
18833
|
-
const
|
|
18834
|
-
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)));
|
|
18835
18843
|
const k = (T) => {
|
|
18836
18844
|
if (!T.defaultPrevented)
|
|
18837
18845
|
switch (T.key) {
|
|
@@ -18950,10 +18958,10 @@ function getMovement(r, n, o, a, i, l, c) {
|
|
|
18950
18958
|
E = -x;
|
|
18951
18959
|
break;
|
|
18952
18960
|
}
|
|
18953
|
-
const [w,
|
|
18954
|
-
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) {
|
|
18955
18963
|
const I = m[A];
|
|
18956
|
-
(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);
|
|
18957
18965
|
}
|
|
18958
18966
|
return E;
|
|
18959
18967
|
} else
|
|
@@ -19086,10 +19094,10 @@ function PanelGroupWithForwardedRef({
|
|
|
19086
19094
|
useEffect(() => {
|
|
19087
19095
|
E.current.onLayout = u;
|
|
19088
19096
|
});
|
|
19089
|
-
const w = useRef({}), [
|
|
19097
|
+
const w = useRef({}), [R, P] = useState([]), A = useRef(/* @__PURE__ */ new Map()), C = useRef(0), I = useRef({
|
|
19090
19098
|
direction: a,
|
|
19091
19099
|
panels: x,
|
|
19092
|
-
sizes:
|
|
19100
|
+
sizes: R
|
|
19093
19101
|
});
|
|
19094
19102
|
useImperativeHandle(l, () => ({
|
|
19095
19103
|
getLayout: () => {
|
|
@@ -19107,13 +19115,13 @@ function PanelGroupWithForwardedRef({
|
|
|
19107
19115
|
P(F), callPanelCallbacks(ee, F, G);
|
|
19108
19116
|
}
|
|
19109
19117
|
}), []), useIsomorphicLayoutEffect(() => {
|
|
19110
|
-
I.current.direction = a, I.current.panels = x, I.current.sizes =
|
|
19118
|
+
I.current.direction = a, I.current.panels = x, I.current.sizes = R;
|
|
19111
19119
|
}), useWindowSplitterPanelGroupBehavior({
|
|
19112
19120
|
committedValuesRef: I,
|
|
19113
19121
|
groupId: g,
|
|
19114
19122
|
panels: x,
|
|
19115
19123
|
setSizes: P,
|
|
19116
|
-
sizes:
|
|
19124
|
+
sizes: R,
|
|
19117
19125
|
panelSizeBeforeCollapse: A
|
|
19118
19126
|
}), useEffect(() => {
|
|
19119
19127
|
const {
|
|
@@ -19127,7 +19135,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19127
19135
|
const G = w.current, ee = panelsMapToSortedArray(V);
|
|
19128
19136
|
callPanelCallbacks(ee, q, G);
|
|
19129
19137
|
}
|
|
19130
|
-
}, [
|
|
19138
|
+
}, [R]), useIsomorphicLayoutEffect(() => {
|
|
19131
19139
|
if (I.current.sizes.length === x.size)
|
|
19132
19140
|
return;
|
|
19133
19141
|
let V = null;
|
|
@@ -19152,12 +19160,12 @@ function PanelGroupWithForwardedRef({
|
|
|
19152
19160
|
}
|
|
19153
19161
|
}, [r, x, d]), useEffect(() => {
|
|
19154
19162
|
if (r) {
|
|
19155
|
-
if (
|
|
19163
|
+
if (R.length === 0 || R.length !== x.size)
|
|
19156
19164
|
return;
|
|
19157
19165
|
const F = panelsMapToSortedArray(x);
|
|
19158
|
-
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);
|
|
19159
19167
|
}
|
|
19160
|
-
}, [r, x,
|
|
19168
|
+
}, [r, x, R, d]);
|
|
19161
19169
|
const j = useCallback((F, V) => {
|
|
19162
19170
|
const {
|
|
19163
19171
|
panels: q
|
|
@@ -19170,7 +19178,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19170
19178
|
overflow: "hidden"
|
|
19171
19179
|
} : {
|
|
19172
19180
|
flexBasis: 0,
|
|
19173
|
-
flexGrow: getFlexGrow(q, F,
|
|
19181
|
+
flexGrow: getFlexGrow(q, F, R),
|
|
19174
19182
|
flexShrink: 1,
|
|
19175
19183
|
// Without this, Panel sizes may be unintentionally overridden by their content.
|
|
19176
19184
|
overflow: "hidden",
|
|
@@ -19178,7 +19186,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19178
19186
|
// This avoid edge cases like nested iframes.
|
|
19179
19187
|
pointerEvents: i && h !== null ? "none" : void 0
|
|
19180
19188
|
};
|
|
19181
|
-
}, [h, i,
|
|
19189
|
+
}, [h, i, R]), k = useCallback((F, V) => {
|
|
19182
19190
|
v((q) => {
|
|
19183
19191
|
if (q.has(F))
|
|
19184
19192
|
return q;
|
|
@@ -19200,11 +19208,11 @@ function PanelGroupWithForwardedRef({
|
|
|
19200
19208
|
const re = getPanelGroup(g).getBoundingClientRect(), $ = G === "horizontal";
|
|
19201
19209
|
document.dir === "rtl" && $ && (Q = -Q);
|
|
19202
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);
|
|
19203
|
-
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) {
|
|
19204
19212
|
const le = w.current;
|
|
19205
19213
|
P(K), callPanelCallbacks(U, K, le);
|
|
19206
19214
|
}
|
|
19207
|
-
|
|
19215
|
+
C.current = se;
|
|
19208
19216
|
}, [g]), T = useCallback((F) => {
|
|
19209
19217
|
v((V) => {
|
|
19210
19218
|
if (!V.has(F))
|
|
@@ -19368,7 +19376,7 @@ function PanelResizeHandle$1({
|
|
|
19368
19376
|
registerResizeHandle: b,
|
|
19369
19377
|
startDragging: x,
|
|
19370
19378
|
stopDragging: v
|
|
19371
|
-
} = 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(() => {
|
|
19372
19380
|
u.current.blur(), v();
|
|
19373
19381
|
const {
|
|
19374
19382
|
onDragging: k
|
|
@@ -19390,10 +19398,10 @@ function PanelResizeHandle$1({
|
|
|
19390
19398
|
}, k = (B) => {
|
|
19391
19399
|
P(B);
|
|
19392
19400
|
}, T = u.current.ownerDocument;
|
|
19393
|
-
return T.body.addEventListener("contextmenu",
|
|
19394
|
-
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);
|
|
19395
19403
|
};
|
|
19396
|
-
}, [g, o, E, P,
|
|
19404
|
+
}, [g, o, E, P, C]), useWindowSplitterResizeHandlerBehavior({
|
|
19397
19405
|
disabled: o,
|
|
19398
19406
|
handleId: S,
|
|
19399
19407
|
resizeHandler: P
|
|
@@ -19411,8 +19419,8 @@ function PanelResizeHandle$1({
|
|
|
19411
19419
|
"data-panel-group-id": h,
|
|
19412
19420
|
"data-panel-resize-handle-enabled": !o,
|
|
19413
19421
|
"data-panel-resize-handle-id": S,
|
|
19414
|
-
onBlur: () =>
|
|
19415
|
-
onFocus: () =>
|
|
19422
|
+
onBlur: () => R(!1),
|
|
19423
|
+
onFocus: () => R(!0),
|
|
19416
19424
|
onMouseDown: (j) => {
|
|
19417
19425
|
x(S, j.nativeEvent);
|
|
19418
19426
|
const {
|
|
@@ -19420,9 +19428,9 @@ function PanelResizeHandle$1({
|
|
|
19420
19428
|
} = d.current;
|
|
19421
19429
|
k && k(!0);
|
|
19422
19430
|
},
|
|
19423
|
-
onMouseUp:
|
|
19424
|
-
onTouchCancel:
|
|
19425
|
-
onTouchEnd:
|
|
19431
|
+
onMouseUp: C,
|
|
19432
|
+
onTouchCancel: C,
|
|
19433
|
+
onTouchEnd: C,
|
|
19426
19434
|
onTouchStart: (j) => {
|
|
19427
19435
|
x(S, j.nativeEvent);
|
|
19428
19436
|
const {
|
|
@@ -19624,21 +19632,21 @@ function JSONNestedNode(r) {
|
|
|
19624
19632
|
d ? !1 : x(p, i, g)
|
|
19625
19633
|
), w = useCallback$1(() => {
|
|
19626
19634
|
l && E(!S);
|
|
19627
|
-
}, [l, S]),
|
|
19635
|
+
}, [l, S]), R = S || u && g === 0 ? renderChildNodes({
|
|
19628
19636
|
...r,
|
|
19629
19637
|
circularCache: n,
|
|
19630
19638
|
level: g + 1
|
|
19631
|
-
}) : null, P = /* @__PURE__ */ React__default.createElement("span", v("nestedNodeItemType", S), b), A = c(h, i, P, a(i, o), p),
|
|
19632
|
-
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, {
|
|
19633
19641
|
styling: v,
|
|
19634
19642
|
nodeType: h,
|
|
19635
19643
|
expanded: S,
|
|
19636
19644
|
onClick: w
|
|
19637
|
-
}), /* @__PURE__ */ React__default.createElement("label", _extends$1({}, v(["label", "nestedNodeLabel"], ...
|
|
19645
|
+
}), /* @__PURE__ */ React__default.createElement("label", _extends$1({}, v(["label", "nestedNodeLabel"], ...C), {
|
|
19638
19646
|
onClick: w
|
|
19639
|
-
}), m(...
|
|
19647
|
+
}), m(...C)), /* @__PURE__ */ React__default.createElement("span", _extends$1({}, v("nestedNodeItemString", ...C), {
|
|
19640
19648
|
onClick: w
|
|
19641
|
-
}), A), /* @__PURE__ */ React__default.createElement("ul", v("nestedNodeChildren", ...
|
|
19649
|
+
}), A), /* @__PURE__ */ React__default.createElement("ul", v("nestedNodeChildren", ...C), R));
|
|
19642
19650
|
}
|
|
19643
19651
|
function createItemString$2(r) {
|
|
19644
19652
|
const n = Object.getOwnPropertyNames(r).length;
|
|
@@ -21817,12 +21825,12 @@ function createCurry(r, n, o) {
|
|
|
21817
21825
|
function createHybrid(r, n, o, a, i, l, c, u, d, p) {
|
|
21818
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);
|
|
21819
21827
|
function S() {
|
|
21820
|
-
for (var E = arguments.length, w = Array(E),
|
|
21821
|
-
w[
|
|
21828
|
+
for (var E = arguments.length, w = Array(E), R = E; R--; )
|
|
21829
|
+
w[R] = arguments[R];
|
|
21822
21830
|
if (b)
|
|
21823
21831
|
var P = getHolder(S), A = countHolders(w, P);
|
|
21824
21832
|
if (a && (w = composeArgs(w, a, i, b)), l && (w = composeArgsRight(w, l, c, b)), E -= A, b && E < p) {
|
|
21825
|
-
var
|
|
21833
|
+
var C = replaceHolders(w, P);
|
|
21826
21834
|
return createRecurry(
|
|
21827
21835
|
r,
|
|
21828
21836
|
n,
|
|
@@ -21830,7 +21838,7 @@ function createHybrid(r, n, o, a, i, l, c, u, d, p) {
|
|
|
21830
21838
|
S.placeholder,
|
|
21831
21839
|
o,
|
|
21832
21840
|
w,
|
|
21833
|
-
|
|
21841
|
+
C,
|
|
21834
21842
|
u,
|
|
21835
21843
|
d,
|
|
21836
21844
|
p - E
|
|
@@ -22699,9 +22707,9 @@ var Prism$1 = function() {
|
|
|
22699
22707
|
b.hasOwnProperty(w) && (S[w] = b[w]);
|
|
22700
22708
|
b.hasOwnProperty(E) || (S[E] = v[E]);
|
|
22701
22709
|
}
|
|
22702
|
-
var
|
|
22710
|
+
var R = x[g];
|
|
22703
22711
|
return x[g] = S, a.languages.DFS(a.languages, function(P, A) {
|
|
22704
|
-
A ===
|
|
22712
|
+
A === R && P != g && (this[P] = S);
|
|
22705
22713
|
}), S;
|
|
22706
22714
|
},
|
|
22707
22715
|
// Traverse a language definition with Depth First Search
|
|
@@ -22711,8 +22719,8 @@ var Prism$1 = function() {
|
|
|
22711
22719
|
for (var E in h)
|
|
22712
22720
|
if (h.hasOwnProperty(E)) {
|
|
22713
22721
|
b.call(h, E, h[E], x || E);
|
|
22714
|
-
var w = h[E],
|
|
22715
|
-
|
|
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));
|
|
22716
22724
|
}
|
|
22717
22725
|
}
|
|
22718
22726
|
},
|
|
@@ -22828,8 +22836,8 @@ var Prism$1 = function() {
|
|
|
22828
22836
|
return h;
|
|
22829
22837
|
if (Array.isArray(h)) {
|
|
22830
22838
|
var x = "";
|
|
22831
|
-
return h.forEach(function(
|
|
22832
|
-
x += g(
|
|
22839
|
+
return h.forEach(function(R) {
|
|
22840
|
+
x += g(R, b);
|
|
22833
22841
|
}), x;
|
|
22834
22842
|
}
|
|
22835
22843
|
var v = {
|
|
@@ -22860,10 +22868,10 @@ var Prism$1 = function() {
|
|
|
22860
22868
|
if (!(!b.hasOwnProperty(E) || !b[E])) {
|
|
22861
22869
|
var w = b[E];
|
|
22862
22870
|
w = Array.isArray(w) ? w : [w];
|
|
22863
|
-
for (var
|
|
22864
|
-
if (S && S.cause == E + "," +
|
|
22871
|
+
for (var R = 0; R < w.length; ++R) {
|
|
22872
|
+
if (S && S.cause == E + "," + R)
|
|
22865
22873
|
return;
|
|
22866
|
-
var P = w[
|
|
22874
|
+
var P = w[R], A = P.inside, C = !!P.lookbehind, I = !!P.greedy, j = P.alias;
|
|
22867
22875
|
if (I && !P.pattern.global) {
|
|
22868
22876
|
var k = P.pattern.toString().match(/[imsuy]*$/)[0];
|
|
22869
22877
|
P.pattern = RegExp(P.pattern.source, k + "g");
|
|
@@ -22875,7 +22883,7 @@ var Prism$1 = function() {
|
|
|
22875
22883
|
if (!(L instanceof i)) {
|
|
22876
22884
|
var D = 1, W;
|
|
22877
22885
|
if (I) {
|
|
22878
|
-
if (W = l(O, B, g,
|
|
22886
|
+
if (W = l(O, B, g, C), !W || W.index >= g.length)
|
|
22879
22887
|
break;
|
|
22880
22888
|
var q = W.index, J = W.index + W[0].length, F = B;
|
|
22881
22889
|
for (F += T.value.length; q >= F; )
|
|
@@ -22885,7 +22893,7 @@ var Prism$1 = function() {
|
|
|
22885
22893
|
for (var V = T; V !== h.tail && (F < J || typeof V.value == "string"); V = V.next)
|
|
22886
22894
|
D++, F += V.value.length;
|
|
22887
22895
|
D--, L = g.slice(B, F), W.index -= B;
|
|
22888
|
-
} else if (W = l(O, 0, L,
|
|
22896
|
+
} else if (W = l(O, 0, L, C), !W)
|
|
22889
22897
|
continue;
|
|
22890
22898
|
var q = W.index, G = W[0], ee = L.slice(0, q), z = L.slice(q + G.length), U = B + L.length;
|
|
22891
22899
|
S && U > S.reach && (S.reach = U);
|
|
@@ -22894,7 +22902,7 @@ var Prism$1 = function() {
|
|
|
22894
22902
|
var _ = new i(E, A ? a.tokenize(G, A) : G, j, G);
|
|
22895
22903
|
if (T = d(h, te, _), z && d(h, T, z), D > 1) {
|
|
22896
22904
|
var Q = {
|
|
22897
|
-
cause: E + "," +
|
|
22905
|
+
cause: E + "," + R,
|
|
22898
22906
|
reach: U
|
|
22899
22907
|
};
|
|
22900
22908
|
c(g, h, b, T.prev, B, Q), S && Q.reach > S.reach && (S.reach = Q.reach);
|
|
@@ -24109,8 +24117,8 @@ prism.languages.js = prism.languages.javascript;
|
|
|
24109
24117
|
if (S && E && S.type === "code-language" && E.type === "code-block" && typeof S.content == "string") {
|
|
24110
24118
|
var w = S.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
|
24111
24119
|
w = (/[a-z][\w-]*/i.exec(w) || [""])[0].toLowerCase();
|
|
24112
|
-
var
|
|
24113
|
-
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];
|
|
24114
24122
|
}
|
|
24115
24123
|
}
|
|
24116
24124
|
}
|
|
@@ -24237,8 +24245,8 @@ prism.hooks.add("after-tokenize", function r(n) {
|
|
|
24237
24245
|
}
|
|
24238
24246
|
function c(v, S) {
|
|
24239
24247
|
for (var E = 1, w = a; w < o.length; w++) {
|
|
24240
|
-
var
|
|
24241
|
-
if (
|
|
24248
|
+
var R = o[w], P = R.content;
|
|
24249
|
+
if (R.type === "punctuation" && typeof P == "string") {
|
|
24242
24250
|
if (v.test(P))
|
|
24243
24251
|
E++;
|
|
24244
24252
|
else if (S.test(P) && (E--, E === 0))
|
|
@@ -24375,15 +24383,15 @@ prism.languages.sql = {
|
|
|
24375
24383
|
pattern: RegExp(l),
|
|
24376
24384
|
lookbehind: !0
|
|
24377
24385
|
}
|
|
24378
|
-
}), E = 0, w = {},
|
|
24386
|
+
}), E = 0, w = {}, R = S.map(function(I) {
|
|
24379
24387
|
if (typeof I == "string")
|
|
24380
24388
|
return I;
|
|
24381
24389
|
for (var j = I.content, k; b.indexOf(k = u(E++, v)) !== -1; )
|
|
24382
24390
|
;
|
|
24383
24391
|
return w[k] = j, k;
|
|
24384
|
-
}).join(""), P = d(
|
|
24392
|
+
}).join(""), P = d(R, x, v), A = Object.keys(w);
|
|
24385
24393
|
E = 0;
|
|
24386
|
-
function
|
|
24394
|
+
function C(I) {
|
|
24387
24395
|
for (var j = 0; j < I.length; j++) {
|
|
24388
24396
|
if (E >= A.length)
|
|
24389
24397
|
return;
|
|
@@ -24398,17 +24406,17 @@ prism.languages.sql = {
|
|
|
24398
24406
|
var L = T.substring(0, B), D = p(w[O]), W = T.substring(B + O.length), J = [];
|
|
24399
24407
|
if (L && J.push(L), J.push(D), W) {
|
|
24400
24408
|
var F = [W];
|
|
24401
|
-
|
|
24409
|
+
C(F), J.push.apply(J, F);
|
|
24402
24410
|
}
|
|
24403
24411
|
typeof k == "string" ? (I.splice.apply(I, [j, 1].concat(J)), j += J.length - 1) : k.content = J;
|
|
24404
24412
|
}
|
|
24405
24413
|
} else {
|
|
24406
24414
|
var V = k.content;
|
|
24407
|
-
Array.isArray(V) ?
|
|
24415
|
+
Array.isArray(V) ? C(V) : C([V]);
|
|
24408
24416
|
}
|
|
24409
24417
|
}
|
|
24410
24418
|
}
|
|
24411
|
-
return
|
|
24419
|
+
return C(P), new r.Token(v, P, "language-" + v, b);
|
|
24412
24420
|
}
|
|
24413
24421
|
var g = {
|
|
24414
24422
|
javascript: !0,
|
|
@@ -24425,21 +24433,21 @@ prism.languages.sql = {
|
|
|
24425
24433
|
for (var S = 0, E = v.length; S < E; S++) {
|
|
24426
24434
|
var w = v[S];
|
|
24427
24435
|
if (typeof w != "string") {
|
|
24428
|
-
var
|
|
24429
|
-
if (!Array.isArray(
|
|
24430
|
-
typeof
|
|
24436
|
+
var R = w.content;
|
|
24437
|
+
if (!Array.isArray(R)) {
|
|
24438
|
+
typeof R != "string" && x([R]);
|
|
24431
24439
|
continue;
|
|
24432
24440
|
}
|
|
24433
24441
|
if (w.type === "template-string") {
|
|
24434
|
-
var P =
|
|
24435
|
-
if (
|
|
24436
|
-
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];
|
|
24437
24445
|
if (!j)
|
|
24438
24446
|
continue;
|
|
24439
|
-
|
|
24447
|
+
R[1] = m(A, j, I);
|
|
24440
24448
|
}
|
|
24441
24449
|
} else
|
|
24442
|
-
x(
|
|
24450
|
+
x(R);
|
|
24443
24451
|
}
|
|
24444
24452
|
}
|
|
24445
24453
|
}
|
|
@@ -25885,7 +25893,7 @@ const prismDefaultProps = {
|
|
|
25885
25893
|
unstyled: S,
|
|
25886
25894
|
radius: E,
|
|
25887
25895
|
getPrismTheme: w,
|
|
25888
|
-
variant:
|
|
25896
|
+
variant: R
|
|
25889
25897
|
} = o, P = __objRest$2(o, [
|
|
25890
25898
|
"className",
|
|
25891
25899
|
"children",
|
|
@@ -25904,13 +25912,13 @@ const prismDefaultProps = {
|
|
|
25904
25912
|
"radius",
|
|
25905
25913
|
"getPrismTheme",
|
|
25906
25914
|
"variant"
|
|
25907
|
-
]), A = v && typeof i == "string" ? i.trim() : i,
|
|
25915
|
+
]), A = v && typeof i == "string" ? i.trim() : i, C = A.split(`
|
|
25908
25916
|
`).length.toString().length, I = useMantineTheme(), j = useClipboard(), k = x || I.colorScheme, { classes: O, cx: T } = useStyles$2({
|
|
25909
25917
|
colorScheme: k,
|
|
25910
25918
|
native: b !== ScrollArea,
|
|
25911
|
-
maxLineSize:
|
|
25919
|
+
maxLineSize: C,
|
|
25912
25920
|
radius: E
|
|
25913
|
-
}, { name: "Prism", classNames: u, styles: d, unstyled: S, variant:
|
|
25921
|
+
}, { name: "Prism", classNames: u, styles: d, unstyled: S, variant: R });
|
|
25914
25922
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadProps$2(__spreadValues$2({
|
|
25915
25923
|
className: T(O.root, a),
|
|
25916
25924
|
ref: n
|
|
@@ -26142,8 +26150,8 @@ var diffMatchPatch = { exports: {} };
|
|
|
26142
26150
|
];
|
|
26143
26151
|
var b = this.diff_halfMatch_(l, c);
|
|
26144
26152
|
if (b) {
|
|
26145
|
-
var x = b[0], v = b[1], S = b[2], E = b[3], w = b[4],
|
|
26146
|
-
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(
|
|
26147
26155
|
[new n.Diff(i, w)],
|
|
26148
26156
|
P
|
|
26149
26157
|
);
|
|
@@ -26182,14 +26190,14 @@ var diffMatchPatch = { exports: {} };
|
|
|
26182
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++)
|
|
26183
26191
|
b[v] = -1, x[v] = -1;
|
|
26184
26192
|
b[g + 1] = 0, x[g + 1] = 0;
|
|
26185
|
-
for (var S = d - p, E = S % 2 != 0, w = 0,
|
|
26186
|
-
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) {
|
|
26187
26195
|
var j = g + I, k;
|
|
26188
|
-
I == -
|
|
26196
|
+
I == -C || I != C && b[j - 1] < b[j + 1] ? k = b[j + 1] : k = b[j - 1] + 1;
|
|
26189
26197
|
for (var O = k - I; k < d && O < p && l.charAt(k) == c.charAt(O); )
|
|
26190
26198
|
k++, O++;
|
|
26191
26199
|
if (b[j] = k, k > d)
|
|
26192
|
-
|
|
26200
|
+
R += 2;
|
|
26193
26201
|
else if (O > p)
|
|
26194
26202
|
w += 2;
|
|
26195
26203
|
else if (E) {
|
|
@@ -26201,9 +26209,9 @@ var diffMatchPatch = { exports: {} };
|
|
|
26201
26209
|
}
|
|
26202
26210
|
}
|
|
26203
26211
|
}
|
|
26204
|
-
for (var L = -
|
|
26212
|
+
for (var L = -C + P; L <= C - A; L += 2) {
|
|
26205
26213
|
var T = g + L, B;
|
|
26206
|
-
L == -
|
|
26214
|
+
L == -C || L != C && x[T - 1] < x[T + 1] ? B = x[T + 1] : B = x[T - 1] + 1;
|
|
26207
26215
|
for (var D = B - L; B < d && D < p && l.charAt(d - B - 1) == c.charAt(p - D - 1); )
|
|
26208
26216
|
B++, D++;
|
|
26209
26217
|
if (x[T] = B, B > d)
|
|
@@ -26282,18 +26290,18 @@ var diffMatchPatch = { exports: {} };
|
|
|
26282
26290
|
if (u.length < 4 || d.length * 2 < u.length)
|
|
26283
26291
|
return null;
|
|
26284
26292
|
var p = this;
|
|
26285
|
-
function m(
|
|
26286
|
-
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; ) {
|
|
26287
26295
|
var L = p.diff_commonPrefix(
|
|
26288
|
-
|
|
26296
|
+
R.substring(A),
|
|
26289
26297
|
P.substring(I)
|
|
26290
26298
|
), D = p.diff_commonSuffix(
|
|
26291
|
-
|
|
26299
|
+
R.substring(0, A),
|
|
26292
26300
|
P.substring(0, I)
|
|
26293
26301
|
);
|
|
26294
|
-
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));
|
|
26295
26303
|
}
|
|
26296
|
-
return j.length * 2 >=
|
|
26304
|
+
return j.length * 2 >= R.length ? [
|
|
26297
26305
|
k,
|
|
26298
26306
|
O,
|
|
26299
26307
|
T,
|
|
@@ -26341,11 +26349,11 @@ var diffMatchPatch = { exports: {} };
|
|
|
26341
26349
|
m++;
|
|
26342
26350
|
}
|
|
26343
26351
|
}, n.prototype.diff_cleanupSemanticLossless = function(l) {
|
|
26344
|
-
function c(w,
|
|
26345
|
-
if (!w || !
|
|
26352
|
+
function c(w, R) {
|
|
26353
|
+
if (!w || !R)
|
|
26346
26354
|
return 6;
|
|
26347
|
-
var P = w.charAt(w.length - 1), A =
|
|
26348
|
-
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;
|
|
26349
26357
|
}
|
|
26350
26358
|
for (var u = 1; u < l.length - 1; ) {
|
|
26351
26359
|
if (l[u - 1][0] == i && l[u + 1][0] == i) {
|
|
@@ -26507,15 +26515,15 @@ var diffMatchPatch = { exports: {} };
|
|
|
26507
26515
|
for (x = 0, v = S; x < v; )
|
|
26508
26516
|
m(w, u + v) <= g ? x = v : S = v, v = Math.floor((S - x) / 2 + x);
|
|
26509
26517
|
S = v;
|
|
26510
|
-
var
|
|
26518
|
+
var R = Math.max(1, u - v + 1), P = Math.min(u + v, l.length) + c.length, A = Array(P + 2);
|
|
26511
26519
|
A[P + 1] = (1 << w) - 1;
|
|
26512
|
-
for (var
|
|
26513
|
-
var I = d[l.charAt(
|
|
26514
|
-
if (w === 0 ? A[
|
|
26515
|
-
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);
|
|
26516
26524
|
if (j <= g)
|
|
26517
|
-
if (g = j, h =
|
|
26518
|
-
|
|
26525
|
+
if (g = j, h = C - 1, h > u)
|
|
26526
|
+
R = Math.max(1, 2 * u - h);
|
|
26519
26527
|
else
|
|
26520
26528
|
break;
|
|
26521
26529
|
}
|
|
@@ -26575,19 +26583,19 @@ var diffMatchPatch = { exports: {} };
|
|
|
26575
26583
|
if (p.length === 0)
|
|
26576
26584
|
return [];
|
|
26577
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++) {
|
|
26578
|
-
var w = p[E][0],
|
|
26586
|
+
var w = p[E][0], R = p[E][1];
|
|
26579
26587
|
switch (!h && w !== i && (g.start1 = b, g.start2 = x), w) {
|
|
26580
26588
|
case a:
|
|
26581
|
-
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);
|
|
26582
26590
|
break;
|
|
26583
26591
|
case o:
|
|
26584
|
-
g.length1 +=
|
|
26592
|
+
g.length1 += R.length, g.diffs[h++] = p[E], S = S.substring(0, x) + S.substring(x + R.length);
|
|
26585
26593
|
break;
|
|
26586
26594
|
case i:
|
|
26587
|
-
|
|
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);
|
|
26588
26596
|
break;
|
|
26589
26597
|
}
|
|
26590
|
-
w !== a && (b +=
|
|
26598
|
+
w !== a && (b += R.length), w !== o && (x += R.length);
|
|
26591
26599
|
}
|
|
26592
26600
|
return h && (this.patch_addContext_(g, v), m.push(g)), m;
|
|
26593
26601
|
}, n.prototype.patch_deepCopy = function(l) {
|
|
@@ -26628,8 +26636,8 @@ var diffMatchPatch = { exports: {} };
|
|
|
26628
26636
|
p[m] = !1;
|
|
26629
26637
|
else {
|
|
26630
26638
|
this.diff_cleanupSemanticLossless(S);
|
|
26631
|
-
for (var E = 0, w,
|
|
26632
|
-
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];
|
|
26633
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(
|
|
26634
26642
|
S,
|
|
26635
26643
|
E + P[1].length
|
|
@@ -27331,7 +27339,7 @@ function requireTemplates() {
|
|
|
27331
27339
|
return templates = (p, m) => {
|
|
27332
27340
|
const g = [], h = [];
|
|
27333
27341
|
let b = [];
|
|
27334
|
-
if (m.replace(r, (x, v, S, E, w,
|
|
27342
|
+
if (m.replace(r, (x, v, S, E, w, R) => {
|
|
27335
27343
|
if (v)
|
|
27336
27344
|
b.push(l(v));
|
|
27337
27345
|
else if (E) {
|
|
@@ -27342,7 +27350,7 @@ function requireTemplates() {
|
|
|
27342
27350
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
27343
27351
|
h.push(d(p, g)(b.join(""))), b = [], g.pop();
|
|
27344
27352
|
} else
|
|
27345
|
-
b.push(
|
|
27353
|
+
b.push(R);
|
|
27346
27354
|
}), h.push(b.join("")), g.length > 0) {
|
|
27347
27355
|
const x = `Chalk template literal is missing ${g.length} closing bracket${g.length === 1 ? "" : "s"} (\`}\`)`;
|
|
27348
27356
|
throw new Error(x);
|
|
@@ -27897,21 +27905,21 @@ const diffFilter$2 = function r(n) {
|
|
|
27897
27905
|
arrayIndexOf(S.indices1, l - a) < 0 && (b[`_${l}`] = [d[l], 0, 0], E.push(l));
|
|
27898
27906
|
let w = !0;
|
|
27899
27907
|
n.options && n.options.arrays && n.options.arrays.detectMove === !1 && (w = !1);
|
|
27900
|
-
let
|
|
27901
|
-
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);
|
|
27902
27910
|
const P = E.length;
|
|
27903
27911
|
for (l = a; l < g - i; l++) {
|
|
27904
27912
|
const A = arrayIndexOf(S.indices2, l - a);
|
|
27905
27913
|
if (A < 0) {
|
|
27906
|
-
let
|
|
27914
|
+
let C = !1;
|
|
27907
27915
|
if (w && P > 0) {
|
|
27908
27916
|
for (let I = 0; I < P; I++)
|
|
27909
27917
|
if (c = E[I], matchItems(x, v, c - a, l - a, o)) {
|
|
27910
|
-
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;
|
|
27911
27919
|
break;
|
|
27912
27920
|
}
|
|
27913
27921
|
}
|
|
27914
|
-
|
|
27922
|
+
C || (b[l] = [p[l]]);
|
|
27915
27923
|
} else
|
|
27916
27924
|
c = S.indices1[A] + a, u = S.indices2[A] + a, h = new DiffContext(n.left[c], n.right[u]), n.push(h, u);
|
|
27917
27925
|
}
|
|
@@ -28345,28 +28353,28 @@ chalkColor("green"), chalkColor("red"), chalkColor("gray"), chalkColor("yellow")
|
|
|
28345
28353
|
var require_react_is_production_min = __commonJS({
|
|
28346
28354
|
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js"(r) {
|
|
28347
28355
|
init_react_shim();
|
|
28348
|
-
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,
|
|
28349
|
-
function P(
|
|
28350
|
-
if (typeof
|
|
28351
|
-
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;
|
|
28352
28360
|
switch (I) {
|
|
28353
28361
|
case o:
|
|
28354
|
-
switch (
|
|
28362
|
+
switch (C = C.type, C) {
|
|
28355
28363
|
case p:
|
|
28356
28364
|
case m:
|
|
28357
28365
|
case i:
|
|
28358
28366
|
case c:
|
|
28359
28367
|
case l:
|
|
28360
28368
|
case h:
|
|
28361
|
-
return
|
|
28369
|
+
return C;
|
|
28362
28370
|
default:
|
|
28363
|
-
switch (
|
|
28371
|
+
switch (C = C && C.$$typeof, C) {
|
|
28364
28372
|
case d:
|
|
28365
28373
|
case g:
|
|
28366
28374
|
case v:
|
|
28367
28375
|
case x:
|
|
28368
28376
|
case u:
|
|
28369
|
-
return
|
|
28377
|
+
return C;
|
|
28370
28378
|
default:
|
|
28371
28379
|
return I;
|
|
28372
28380
|
}
|
|
@@ -28376,44 +28384,44 @@ var require_react_is_production_min = __commonJS({
|
|
|
28376
28384
|
}
|
|
28377
28385
|
}
|
|
28378
28386
|
}
|
|
28379
|
-
function A(
|
|
28380
|
-
return P(
|
|
28381
|
-
}
|
|
28382
|
-
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(
|
|
28383
|
-
return A(
|
|
28384
|
-
}, r.isConcurrentMode = A, r.isContextConsumer = function(
|
|
28385
|
-
return P(
|
|
28386
|
-
}, r.isContextProvider = function(
|
|
28387
|
-
return P(
|
|
28388
|
-
}, r.isElement = function(
|
|
28389
|
-
return typeof
|
|
28390
|
-
}, r.isForwardRef = function(
|
|
28391
|
-
return P(
|
|
28392
|
-
}, r.isFragment = function(
|
|
28393
|
-
return P(
|
|
28394
|
-
}, r.isLazy = function(
|
|
28395
|
-
return P(
|
|
28396
|
-
}, r.isMemo = function(
|
|
28397
|
-
return P(
|
|
28398
|
-
}, r.isPortal = function(
|
|
28399
|
-
return P(
|
|
28400
|
-
}, r.isProfiler = function(
|
|
28401
|
-
return P(
|
|
28402
|
-
}, r.isStrictMode = function(
|
|
28403
|
-
return P(
|
|
28404
|
-
}, r.isSuspense = function(
|
|
28405
|
-
return P(
|
|
28406
|
-
}, r.isValidElementType = function(
|
|
28407
|
-
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);
|
|
28408
28416
|
}, r.typeOf = P;
|
|
28409
28417
|
}
|
|
28410
28418
|
}), require_react_is_development = __commonJS({
|
|
28411
28419
|
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(r) {
|
|
28412
28420
|
init_react_shim(), process.env.NODE_ENV !== "production" && function() {
|
|
28413
|
-
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;
|
|
28414
28422
|
function P(Z) {
|
|
28415
28423
|
return typeof Z == "string" || typeof Z == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
28416
|
-
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);
|
|
28417
28425
|
}
|
|
28418
28426
|
function A(Z) {
|
|
28419
28427
|
if (typeof Z == "object" && Z !== null) {
|
|
@@ -28447,7 +28455,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28447
28455
|
}
|
|
28448
28456
|
}
|
|
28449
28457
|
}
|
|
28450
|
-
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;
|
|
28451
28459
|
function G(Z) {
|
|
28452
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;
|
|
28453
28461
|
}
|
|
@@ -28487,7 +28495,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28487
28495
|
function K(Z) {
|
|
28488
28496
|
return A(Z) === h;
|
|
28489
28497
|
}
|
|
28490
|
-
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;
|
|
28491
28499
|
}();
|
|
28492
28500
|
}
|
|
28493
28501
|
}), require_react_is = __commonJS({
|
|
@@ -28619,17 +28627,17 @@ var require_react_is_production_min = __commonJS({
|
|
|
28619
28627
|
return U;
|
|
28620
28628
|
}
|
|
28621
28629
|
var x = "<<anonymous>>", v = {
|
|
28622
|
-
array:
|
|
28623
|
-
bigint:
|
|
28624
|
-
bool:
|
|
28625
|
-
func:
|
|
28626
|
-
number:
|
|
28627
|
-
object:
|
|
28628
|
-
string:
|
|
28629
|
-
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"),
|
|
28630
28638
|
any: P(),
|
|
28631
28639
|
arrayOf: A,
|
|
28632
|
-
element:
|
|
28640
|
+
element: C(),
|
|
28633
28641
|
elementType: I(),
|
|
28634
28642
|
instanceOf: j,
|
|
28635
28643
|
node: B(),
|
|
@@ -28669,7 +28677,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28669
28677
|
var Q = _.bind(null, !1);
|
|
28670
28678
|
return Q.isRequired = _.bind(null, !0), Q;
|
|
28671
28679
|
}
|
|
28672
|
-
function
|
|
28680
|
+
function R(z) {
|
|
28673
28681
|
function U(te, _, Q, ne, re, $) {
|
|
28674
28682
|
var ae = te[_], se = V(ae);
|
|
28675
28683
|
if (se !== z) {
|
|
@@ -28704,7 +28712,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28704
28712
|
}
|
|
28705
28713
|
return w(U);
|
|
28706
28714
|
}
|
|
28707
|
-
function
|
|
28715
|
+
function C() {
|
|
28708
28716
|
function z(U, te, _, Q, ne) {
|
|
28709
28717
|
var re = U[te];
|
|
28710
28718
|
if (!p(re)) {
|
|
@@ -29999,14 +30007,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
29999
30007
|
r.eighties = n(E);
|
|
30000
30008
|
var w = require_embers();
|
|
30001
30009
|
r.embers = n(w);
|
|
30002
|
-
var
|
|
30003
|
-
r.flat = n(
|
|
30010
|
+
var R = require_flat();
|
|
30011
|
+
r.flat = n(R);
|
|
30004
30012
|
var P = require_google();
|
|
30005
30013
|
r.google = n(P);
|
|
30006
30014
|
var A = require_grayscale();
|
|
30007
30015
|
r.grayscale = n(A);
|
|
30008
|
-
var
|
|
30009
|
-
r.greenscreen = n(
|
|
30016
|
+
var C = require_greenscreen();
|
|
30017
|
+
r.greenscreen = n(C);
|
|
30010
30018
|
var I = require_harmonic();
|
|
30011
30019
|
r.harmonic = n(I);
|
|
30012
30020
|
var j = require_hopscotch();
|
|
@@ -30242,17 +30250,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30242
30250
|
}, u.get.rgb = function(m) {
|
|
30243
30251
|
if (!m)
|
|
30244
30252
|
return null;
|
|
30245
|
-
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;
|
|
30246
30254
|
if (E = m.match(h)) {
|
|
30247
|
-
for (
|
|
30255
|
+
for (R = E[2], E = E[1], w = 0; w < 3; w++) {
|
|
30248
30256
|
var P = w * 2;
|
|
30249
30257
|
S[w] = parseInt(E.slice(P, P + 2), 16);
|
|
30250
30258
|
}
|
|
30251
|
-
|
|
30259
|
+
R && (S[3] = parseInt(R, 16) / 255);
|
|
30252
30260
|
} else if (E = m.match(g)) {
|
|
30253
|
-
for (E = E[1],
|
|
30261
|
+
for (E = E[1], R = E[3], w = 0; w < 3; w++)
|
|
30254
30262
|
S[w] = parseInt(E[w] + E[w], 16);
|
|
30255
|
-
|
|
30263
|
+
R && (S[3] = parseInt(R + R, 16) / 255);
|
|
30256
30264
|
} else if (E = m.match(b)) {
|
|
30257
30265
|
for (w = 0; w < 3; w++)
|
|
30258
30266
|
S[w] = parseInt(E[w + 1], 0);
|
|
@@ -30498,16 +30506,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30498
30506
|
}
|
|
30499
30507
|
var c, u, d;
|
|
30500
30508
|
l.rgb.hsl = function(m) {
|
|
30501
|
-
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,
|
|
30502
|
-
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];
|
|
30503
30511
|
}, l.rgb.hsv = function(m) {
|
|
30504
|
-
var g, h, b, x, v, S = m[0] / 255, E = m[1] / 255, w = m[2] / 255,
|
|
30505
|
-
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;
|
|
30506
30514
|
};
|
|
30507
|
-
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)), [
|
|
30508
30516
|
x * 360,
|
|
30509
30517
|
v * 100,
|
|
30510
|
-
|
|
30518
|
+
R * 100
|
|
30511
30519
|
];
|
|
30512
30520
|
}, l.rgb.hwb = function(m) {
|
|
30513
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));
|
|
@@ -30545,8 +30553,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30545
30553
|
if (h === 0)
|
|
30546
30554
|
return w = b * 255, [w, w, w];
|
|
30547
30555
|
b < 0.5 ? v = b * (1 + h) : v = b + h - b * h, x = 2 * b - v, E = [0, 0, 0];
|
|
30548
|
-
for (var
|
|
30549
|
-
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;
|
|
30550
30558
|
return E;
|
|
30551
30559
|
}, l.hsl.hsv = function(m) {
|
|
30552
30560
|
var g = m[0], h = m[1] / 100, b = m[2] / 100, x = h, v = Math.max(b, 0.01), S, E;
|
|
@@ -30573,30 +30581,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30573
30581
|
}, l.hwb.rgb = function(m) {
|
|
30574
30582
|
var g = m[0] / 360, h = m[1] / 100, b = m[2] / 100, x = h + b, v, S, E, w;
|
|
30575
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);
|
|
30576
|
-
var
|
|
30584
|
+
var R, P, A;
|
|
30577
30585
|
switch (v) {
|
|
30578
30586
|
default:
|
|
30579
30587
|
case 6:
|
|
30580
30588
|
case 0:
|
|
30581
|
-
|
|
30589
|
+
R = S, P = w, A = h;
|
|
30582
30590
|
break;
|
|
30583
30591
|
case 1:
|
|
30584
|
-
|
|
30592
|
+
R = w, P = S, A = h;
|
|
30585
30593
|
break;
|
|
30586
30594
|
case 2:
|
|
30587
|
-
|
|
30595
|
+
R = h, P = S, A = w;
|
|
30588
30596
|
break;
|
|
30589
30597
|
case 3:
|
|
30590
|
-
|
|
30598
|
+
R = h, P = w, A = S;
|
|
30591
30599
|
break;
|
|
30592
30600
|
case 4:
|
|
30593
|
-
|
|
30601
|
+
R = w, P = h, A = S;
|
|
30594
30602
|
break;
|
|
30595
30603
|
case 5:
|
|
30596
|
-
|
|
30604
|
+
R = S, P = h, A = w;
|
|
30597
30605
|
break;
|
|
30598
30606
|
}
|
|
30599
|
-
return [
|
|
30607
|
+
return [R * 255, P * 255, A * 255];
|
|
30600
30608
|
}, l.cmyk.rgb = function(m) {
|
|
30601
30609
|
var g = m[0] / 100, h = m[1] / 100, b = m[2] / 100, x = m[3] / 100, v, S, E;
|
|
30602
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];
|
|
@@ -30609,8 +30617,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30609
30617
|
}, l.lab.xyz = function(m) {
|
|
30610
30618
|
var g = m[0], h = m[1], b = m[2], x, v, S;
|
|
30611
30619
|
v = (g + 16) / 116, x = h / 500 + v, S = v - b / 200;
|
|
30612
|
-
var E = Math.pow(v, 3), w = Math.pow(x, 3),
|
|
30613
|
-
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];
|
|
30614
30622
|
}, l.lab.lch = function(m) {
|
|
30615
30623
|
var g = m[0], h = m[1], b = m[2], x, v, S;
|
|
30616
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];
|
|
@@ -30829,10 +30837,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30829
30837
|
else if (v instanceof d)
|
|
30830
30838
|
this.model = v.model, this.color = v.color.slice(), this.valpha = v.valpha;
|
|
30831
30839
|
else if (typeof v == "string") {
|
|
30832
|
-
var
|
|
30833
|
-
if (
|
|
30840
|
+
var R = o.get(v);
|
|
30841
|
+
if (R === null)
|
|
30834
30842
|
throw new Error("Unable to parse color from string: " + v);
|
|
30835
|
-
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;
|
|
30836
30844
|
} else if (v.length) {
|
|
30837
30845
|
this.model = S || "rgb", w = a[this.model].channels;
|
|
30838
30846
|
var P = i.call(v, 0, w);
|
|
@@ -30847,10 +30855,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30847
30855
|
this.valpha = 1;
|
|
30848
30856
|
var A = Object.keys(v);
|
|
30849
30857
|
"alpha" in v && (A.splice(A.indexOf("alpha"), 1), this.valpha = typeof v.alpha == "number" ? v.alpha : 0);
|
|
30850
|
-
var
|
|
30851
|
-
if (!(
|
|
30858
|
+
var C = A.sort().join("");
|
|
30859
|
+
if (!(C in c))
|
|
30852
30860
|
throw new Error("Unable to parse color from object: " + JSON.stringify(v));
|
|
30853
|
-
this.model = c[
|
|
30861
|
+
this.model = c[C];
|
|
30854
30862
|
var I = a[this.model].labels, j = [];
|
|
30855
30863
|
for (E = 0; E < I.length; E++)
|
|
30856
30864
|
j.push(v[I[E]]);
|
|
@@ -31006,12 +31014,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31006
31014
|
mix: function(v, S) {
|
|
31007
31015
|
if (!v || !v.rgb)
|
|
31008
31016
|
throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof v);
|
|
31009
|
-
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;
|
|
31010
31018
|
return d.rgb(
|
|
31011
|
-
|
|
31012
|
-
|
|
31013
|
-
|
|
31014
|
-
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)
|
|
31015
31023
|
);
|
|
31016
31024
|
}
|
|
31017
31025
|
}, Object.keys(a).forEach(function(v) {
|
|
@@ -31041,8 +31049,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31041
31049
|
return v = Array.isArray(v) ? v : [v], v.forEach(function(w) {
|
|
31042
31050
|
(u[w] || (u[w] = []))[S] = E;
|
|
31043
31051
|
}), v = v[0], function(w) {
|
|
31044
|
-
var
|
|
31045
|
-
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);
|
|
31046
31054
|
};
|
|
31047
31055
|
}
|
|
31048
31056
|
function h(v) {
|
|
@@ -31073,7 +31081,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31073
31081
|
["partial", p],
|
|
31074
31082
|
["partialRight", m],
|
|
31075
31083
|
["rearg", h]
|
|
31076
|
-
],
|
|
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")();
|
|
31077
31085
|
function G(N, M, Y) {
|
|
31078
31086
|
switch (Y.length) {
|
|
31079
31087
|
case 0:
|
|
@@ -31141,7 +31149,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31141
31149
|
var N = /[^.]+$/.exec(K && K.keys && K.keys.IE_PROTO || "");
|
|
31142
31150
|
return N ? "Symbol(src)_1." + N : "";
|
|
31143
31151
|
}(), le = ae.toString, fe = se.hasOwnProperty, Te = se.toString, be = RegExp(
|
|
31144
|
-
"^" + le.call(fe).replace(
|
|
31152
|
+
"^" + le.call(fe).replace(C, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
31145
31153
|
), Ze = Object.create, Ne = Math.max, ge = Math.min, Ge = function() {
|
|
31146
31154
|
var N = We(Object, "defineProperty"), M = We.name;
|
|
31147
31155
|
return M && M.length > 2 ? N : void 0;
|
|
@@ -31180,14 +31188,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31180
31188
|
return M;
|
|
31181
31189
|
}
|
|
31182
31190
|
function rt(N, M, Y) {
|
|
31183
|
-
var oe = M & i, ce =
|
|
31191
|
+
var oe = M & i, ce = Re(N);
|
|
31184
31192
|
function H() {
|
|
31185
31193
|
var ie = this && this !== q && this instanceof H ? ce : N;
|
|
31186
31194
|
return ie.apply(oe ? Y : this, arguments);
|
|
31187
31195
|
}
|
|
31188
31196
|
return H;
|
|
31189
31197
|
}
|
|
31190
|
-
function
|
|
31198
|
+
function Re(N) {
|
|
31191
31199
|
return function() {
|
|
31192
31200
|
var M = arguments;
|
|
31193
31201
|
switch (M.length) {
|
|
@@ -31213,7 +31221,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31213
31221
|
};
|
|
31214
31222
|
}
|
|
31215
31223
|
function De(N, M, Y) {
|
|
31216
|
-
var oe =
|
|
31224
|
+
var oe = Re(N);
|
|
31217
31225
|
function ce() {
|
|
31218
31226
|
for (var H = arguments.length, ie = Array(H), ue = H, de = qe(ce); ue--; )
|
|
31219
31227
|
ie[ue] = arguments[ue];
|
|
@@ -31237,7 +31245,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31237
31245
|
return ce;
|
|
31238
31246
|
}
|
|
31239
31247
|
function Le(N, M, Y, oe, ce, H, ie, ue, de, me) {
|
|
31240
|
-
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);
|
|
31241
31249
|
function tt() {
|
|
31242
31250
|
for (var Me = arguments.length, Ae = Array(Me), lt = Me; lt--; )
|
|
31243
31251
|
Ae[lt] = arguments[lt];
|
|
@@ -31259,12 +31267,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31259
31267
|
);
|
|
31260
31268
|
}
|
|
31261
31269
|
var dt = xe ? Y : this, ct = ye ? dt[N] : N;
|
|
31262
|
-
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);
|
|
31263
31271
|
}
|
|
31264
31272
|
return tt;
|
|
31265
31273
|
}
|
|
31266
31274
|
function nt(N, M, Y, oe) {
|
|
31267
|
-
var ce = M & i, H =
|
|
31275
|
+
var ce = M & i, H = Re(N);
|
|
31268
31276
|
function ie() {
|
|
31269
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; )
|
|
31270
31278
|
xe[me] = oe[me];
|
|
@@ -31325,7 +31333,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31325
31333
|
/* [wrapped with ` + M + `] */
|
|
31326
31334
|
`);
|
|
31327
31335
|
}
|
|
31328
|
-
function
|
|
31336
|
+
function Ce(N, M) {
|
|
31329
31337
|
return M = M ?? v, !!M && (typeof N == "number" || W.test(N)) && N > -1 && N % 1 == 0 && N < M;
|
|
31330
31338
|
}
|
|
31331
31339
|
function Be(N) {
|
|
@@ -31334,7 +31342,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31334
31342
|
function Xe(N, M) {
|
|
31335
31343
|
for (var Y = N.length, oe = ge(M.length, Y), ce = Je(N); oe--; ) {
|
|
31336
31344
|
var H = M[oe];
|
|
31337
|
-
N[oe] =
|
|
31345
|
+
N[oe] = Ce(H, Y) ? ce[H] : void 0;
|
|
31338
31346
|
}
|
|
31339
31347
|
return N;
|
|
31340
31348
|
}
|
|
@@ -31372,7 +31380,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31372
31380
|
}
|
|
31373
31381
|
function st(N) {
|
|
31374
31382
|
var M = je(N) ? Te.call(N) : "";
|
|
31375
|
-
return M ==
|
|
31383
|
+
return M == R || M == P;
|
|
31376
31384
|
}
|
|
31377
31385
|
function je(N) {
|
|
31378
31386
|
var M = typeof N;
|
|
@@ -31619,10 +31627,10 @@ function useInternalAtomValue(r) {
|
|
|
31619
31627
|
return;
|
|
31620
31628
|
const S = o.get(selectedAtomAtom);
|
|
31621
31629
|
if (S) {
|
|
31622
|
-
const { l: w = [], t:
|
|
31630
|
+
const { l: w = [], t: R } = ((E = n.dev_get_mounted) == null ? void 0 : E.call(n, S.atom)) || {};
|
|
31623
31631
|
if (Array.from(w).every(
|
|
31624
31632
|
isInternalAtomSubscribeFunction
|
|
31625
|
-
) &&
|
|
31633
|
+
) && R && (R == null ? void 0 : R.size) <= 1)
|
|
31626
31634
|
return a(void 0);
|
|
31627
31635
|
}
|
|
31628
31636
|
}, h = p == null ? void 0 : p(g, 2), b = n.sub(r, m);
|
|
@@ -33448,8 +33456,8 @@ function useSyncSnapshotHistory() {
|
|
|
33448
33456
|
} : h[atomToPrintable(E)] = {
|
|
33449
33457
|
status: "pending"
|
|
33450
33458
|
} : h[atomToPrintable(E)] = w.v));
|
|
33451
|
-
const
|
|
33452
|
-
|
|
33459
|
+
const R = (S = r.dev_get_mounted) == null ? void 0 : S.call(r, E);
|
|
33460
|
+
R && b.set(E, R.t);
|
|
33453
33461
|
}
|
|
33454
33462
|
c({ values: g, dependents: b }, h);
|
|
33455
33463
|
}, d = (g) => {
|
|
@@ -33895,7 +33903,7 @@ const TabletIcon = ({ landscape: r = !1 }) => /* @__PURE__ */ jsxRuntimeExports.
|
|
|
33895
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: [
|
|
33896
33904
|
/* @__PURE__ */ jsxRuntimeExports.jsx(MixerHorizontalIcon, { className: "mx-auto text-3xl" }),
|
|
33897
33905
|
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { children: n("please_select_a_block_to_edit") })
|
|
33898
|
-
] }) }) : /* @__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: [
|
|
33899
33907
|
/* @__PURE__ */ jsxRuntimeExports.jsx(BlockSettings, {}),
|
|
33900
33908
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
33901
33909
|
/* @__PURE__ */ jsxRuntimeExports.jsx(BlockStyling, {}),
|
|
@@ -33915,68 +33923,176 @@ const TabletIcon = ({ landscape: r = !1 }) => /* @__PURE__ */ jsxRuntimeExports.
|
|
|
33915
33923
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
33916
33924
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {})
|
|
33917
33925
|
] }) });
|
|
33918
|
-
}, SettingsPanel$1 = SettingsPanel
|
|
33919
|
-
|
|
33920
|
-
{
|
|
33921
|
-
|
|
33922
|
-
|
|
33923
|
-
|
|
33924
|
-
|
|
33925
|
-
|
|
33926
|
-
|
|
33927
|
-
|
|
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 = () => {
|
|
33928
33992
|
const { savePage: r } = useSavePage(), n = useBuilderProp("autoSaveSupport", !0), o = useBuilderProp("autoSaveInterval", 60);
|
|
33929
33993
|
useIntervalEffect(() => {
|
|
33930
33994
|
n && r();
|
|
33931
33995
|
}, o * 1e3);
|
|
33932
33996
|
}, RootLayout = () => {
|
|
33933
|
-
const [r, n] = useState$1(0);
|
|
33934
|
-
useChaiBuilderMsgListener(({ name:
|
|
33935
|
-
|
|
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);
|
|
33936
34000
|
});
|
|
33937
|
-
const
|
|
33938
|
-
|
|
34001
|
+
const l = useBuilderProp("sideBarComponents.top", []), c = (g) => {
|
|
34002
|
+
g.preventDefault();
|
|
33939
34003
|
};
|
|
33940
34004
|
useAtom$1(selectedLibraryAtom), useKeyEventWatcher(), useExpandTree(), useAutoSave();
|
|
33941
|
-
const
|
|
33942
|
-
n(r ===
|
|
33943
|
-
},
|
|
33944
|
-
|
|
33945
|
-
|
|
33946
|
-
|
|
33947
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
33948
|
-
|
|
33949
|
-
|
|
33950
|
-
|
|
33951
|
-
|
|
33952
|
-
|
|
33953
|
-
|
|
33954
|
-
|
|
33955
|
-
|
|
33956
|
-
|
|
33957
|
-
|
|
33958
|
-
|
|
33959
|
-
|
|
33960
|
-
|
|
33961
|
-
|
|
33962
|
-
|
|
33963
|
-
|
|
33964
|
-
|
|
33965
|
-
|
|
33966
|
-
|
|
33967
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
33968
|
-
|
|
33969
|
-
|
|
33970
|
-
|
|
33971
|
-
|
|
33972
|
-
|
|
33973
|
-
|
|
33974
|
-
|
|
33975
|
-
|
|
33976
|
-
|
|
33977
|
-
|
|
33978
|
-
|
|
33979
|
-
|
|
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) })
|
|
33980
34096
|
] }) });
|
|
33981
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: [
|
|
33982
34098
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -34036,43 +34152,46 @@ const TabletIcon = ({ landscape: r = !1 }) => /* @__PURE__ */ jsxRuntimeExports.
|
|
|
34036
34152
|
] }) }) });
|
|
34037
34153
|
};
|
|
34038
34154
|
export {
|
|
34039
|
-
|
|
34155
|
+
useSelectedBlock as $,
|
|
34040
34156
|
AddBlocksPanel$1 as A,
|
|
34041
34157
|
BlockSettings as B,
|
|
34042
34158
|
ChaiSelect$1 as C,
|
|
34043
|
-
|
|
34044
|
-
|
|
34159
|
+
DefaultChaiBlocks as D,
|
|
34160
|
+
useAddClassesToBlocks as E,
|
|
34045
34161
|
FaCheck as F,
|
|
34046
|
-
|
|
34047
|
-
|
|
34162
|
+
useCanvasWidth as G,
|
|
34163
|
+
useCanvasZoom as H,
|
|
34048
34164
|
ImportHTML$1 as I,
|
|
34049
|
-
|
|
34050
|
-
|
|
34051
|
-
|
|
34052
|
-
|
|
34053
|
-
|
|
34165
|
+
useCopyBlockIds as J,
|
|
34166
|
+
useCopyToClipboard as K,
|
|
34167
|
+
useCurrentPage as L,
|
|
34168
|
+
useCutBlockIds as M,
|
|
34169
|
+
useDarkMode as N,
|
|
34054
34170
|
Outline$1 as O,
|
|
34055
|
-
|
|
34056
|
-
|
|
34057
|
-
|
|
34058
|
-
|
|
34171
|
+
useDuplicateBlocks as P,
|
|
34172
|
+
useGetPageData as Q,
|
|
34173
|
+
useHiddenBlockIds as R,
|
|
34174
|
+
useHighlightBlockId as S,
|
|
34059
34175
|
ThemeOptions as T,
|
|
34060
34176
|
UILibraries as U,
|
|
34061
|
-
|
|
34062
|
-
|
|
34063
|
-
|
|
34064
|
-
|
|
34065
|
-
|
|
34066
|
-
|
|
34177
|
+
usePasteBlocks as V,
|
|
34178
|
+
useBrandingOptions as W,
|
|
34179
|
+
useRemoveBlocks as X,
|
|
34180
|
+
useRemoveClassesFromBlocks as Y,
|
|
34181
|
+
useSelectedBlockCurrentClasses as Z,
|
|
34182
|
+
useSelectedBlockAllClasses as _,
|
|
34067
34183
|
useSelectedBlockIds as a,
|
|
34068
|
-
|
|
34069
|
-
|
|
34070
|
-
|
|
34071
|
-
|
|
34072
|
-
|
|
34073
|
-
|
|
34074
|
-
|
|
34075
|
-
|
|
34184
|
+
useStylingBreakpoint as a0,
|
|
34185
|
+
useUILibraryBlocks as a1,
|
|
34186
|
+
useStylingState as a2,
|
|
34187
|
+
useSelectedBlocksDisplayChild as a3,
|
|
34188
|
+
useAllBlocks as a4,
|
|
34189
|
+
useActivePanel as a5,
|
|
34190
|
+
useAddBlockParent as a6,
|
|
34191
|
+
useSelectedBreakpoints as a7,
|
|
34192
|
+
useSelectedStylingBlocks as a8,
|
|
34193
|
+
useLayoutVariant as a9,
|
|
34194
|
+
useBlocksStoreUndoableActions as aa,
|
|
34076
34195
|
useUpdateBlocksProps as b,
|
|
34077
34196
|
useUpdateBlocksPropsRealtime as c,
|
|
34078
34197
|
useBuilderProp as d,
|
|
@@ -34087,15 +34206,15 @@ export {
|
|
|
34087
34206
|
AIUserPrompt as m,
|
|
34088
34207
|
BlockAttributesEditor as n,
|
|
34089
34208
|
ChaiBuilderEditor as o,
|
|
34090
|
-
|
|
34091
|
-
|
|
34092
|
-
|
|
34093
|
-
|
|
34094
|
-
|
|
34209
|
+
DarkMode as p,
|
|
34210
|
+
Breakpoints as q,
|
|
34211
|
+
UndoRedo as r,
|
|
34212
|
+
getBlocksFromHTML as s,
|
|
34213
|
+
useBlocksStore as t,
|
|
34095
34214
|
useCodeEditor as u,
|
|
34096
|
-
|
|
34097
|
-
|
|
34098
|
-
|
|
34099
|
-
|
|
34100
|
-
|
|
34215
|
+
useUndoManager as v,
|
|
34216
|
+
useBuilderReset as w,
|
|
34217
|
+
useReadOnlyMode as x,
|
|
34218
|
+
useActiveModal as y,
|
|
34219
|
+
useAddBlock as z
|
|
34101
34220
|
};
|