@chaibuilder/sdk 1.2.76 → 1.2.77
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-QaDlSeLr.js → CodeEditor-J-XqPeSx.js} +4 -3
- package/dist/CodeEditor-qSebvlcW.cjs +1 -0
- package/dist/Topbar-tfoXdBnv.cjs +1 -0
- package/dist/{Topbar-wHQxajBp.js → Topbar-uwCF26N5.js} +4 -3
- package/dist/UnsplashImages-wKvqSePy.cjs +1 -0
- package/dist/{UnsplashImages-fsj0Hn0B.js → UnsplashImages-ycaFnevC.js} +4 -3
- package/dist/{UploadImages-lDHrM-Jw.js → UploadImages-SBOaVL2H.js} +13 -12
- package/dist/UploadImages-_y_ACWKk.cjs +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +1 -0
- package/dist/core.js +64 -63
- package/dist/index-AnW6pixe.cjs +223 -0
- package/dist/{index-qHOh12Rg.js → index-wgzGsKsU.js} +548 -646
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +121 -123
- package/package.json +3 -2
- package/dist/CodeEditor-Z7_R7BRg.cjs +0 -1
- package/dist/Topbar-DAK9vNL3.cjs +0 -1
- package/dist/UnsplashImages-4uUS8SMq.cjs +0 -1
- package/dist/UploadImages-lnaTQHCD.cjs +0 -1
- package/dist/index-VVV4PtIa.cjs +0 -223
|
@@ -3,7 +3,7 @@ var gt = (r, n, o) => n in r ? mt(r, n, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ze = (r, n, o) => (gt(r, typeof n != "symbol" ? n + "" : n, o), o);
|
|
4
4
|
import { j as jsxRuntimeExports } from "./jsx-runtime-Sp0orL4X.js";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
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,
|
|
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
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";
|
|
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";
|
|
@@ -29,6 +29,7 @@ import { twMerge } from "tailwind-merge";
|
|
|
29
29
|
import { Provider } from "react-wrap-balancer";
|
|
30
30
|
import ReactDOM, { flushSync, createPortal } from "react-dom";
|
|
31
31
|
import PropTypes from "prop-types";
|
|
32
|
+
import { ErrorBoundary as ErrorBoundary$1 } from "react-error-boundary";
|
|
32
33
|
import { Resizable } from "re-resizable";
|
|
33
34
|
import validator from "@rjsf/validator-ajv8";
|
|
34
35
|
import Form from "@rjsf/core";
|
|
@@ -129,7 +130,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
129
130
|
D,
|
|
130
131
|
T
|
|
131
132
|
);
|
|
132
|
-
resolvePromise(D, L), W(L), (q == null ? void 0 : q.d) !== G.d &&
|
|
133
|
+
resolvePromise(D, L), W(L), (q == null ? void 0 : q.d) !== G.d && C(k, G, q == null ? void 0 : q.d);
|
|
133
134
|
}
|
|
134
135
|
},
|
|
135
136
|
(L) => {
|
|
@@ -140,7 +141,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
140
141
|
D,
|
|
141
142
|
T
|
|
142
143
|
);
|
|
143
|
-
rejectPromise(D, L), J(L), (q == null ? void 0 : q.d) !== G.d &&
|
|
144
|
+
rejectPromise(D, L), J(L), (q == null ? void 0 : q.d) !== G.d && C(k, G, q == null ? void 0 : q.d);
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
147
|
), V = (L) => {
|
|
@@ -215,7 +216,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
215
216
|
return O || (O = P(k)), O;
|
|
216
217
|
}, v = (k, O) => !O.l.size && (!O.t.size || O.t.size === 1 && O.t.has(k)), S = (k) => {
|
|
217
218
|
const O = n.get(k);
|
|
218
|
-
O && v(k, O) &&
|
|
219
|
+
O && v(k, O) && R(k);
|
|
219
220
|
}, E = (k) => {
|
|
220
221
|
const O = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new WeakMap(), M = (D) => {
|
|
221
222
|
const W = n.get(D);
|
|
@@ -284,7 +285,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
284
285
|
M && (T.u = M);
|
|
285
286
|
}
|
|
286
287
|
return T;
|
|
287
|
-
},
|
|
288
|
+
}, R = (k) => {
|
|
288
289
|
var O;
|
|
289
290
|
const T = (O = n.get(k)) == null ? void 0 : O.u;
|
|
290
291
|
T && T(), n.delete(k), (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && l.delete(k);
|
|
@@ -292,10 +293,10 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
292
293
|
M ? (hasPromiseAtomValue(M) && cancelPromise(M.v), M.d.forEach((V, D) => {
|
|
293
294
|
if (D !== k) {
|
|
294
295
|
const W = n.get(D);
|
|
295
|
-
W && (W.t.delete(k), v(D, W) &&
|
|
296
|
+
W && (W.t.delete(k), v(D, W) && R(D));
|
|
296
297
|
}
|
|
297
298
|
})) : (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", k);
|
|
298
|
-
},
|
|
299
|
+
}, C = (k, O, T) => {
|
|
299
300
|
const M = new Set(O.d.keys());
|
|
300
301
|
T == null || T.forEach((V, D) => {
|
|
301
302
|
if (M.has(D)) {
|
|
@@ -303,7 +304,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
303
304
|
return;
|
|
304
305
|
}
|
|
305
306
|
const W = n.get(D);
|
|
306
|
-
W && (W.t.delete(k), v(D, W) &&
|
|
307
|
+
W && (W.t.delete(k), v(D, W) && R(D));
|
|
307
308
|
}), M.forEach((V) => {
|
|
308
309
|
const D = n.get(V);
|
|
309
310
|
D ? D.t.add(k) : n.has(k) && P(V, k);
|
|
@@ -315,7 +316,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
315
316
|
o.clear(), O.forEach(([T, M]) => {
|
|
316
317
|
const V = c(T);
|
|
317
318
|
if (V) {
|
|
318
|
-
V.d !== (M == null ? void 0 : M.d) &&
|
|
319
|
+
V.d !== (M == null ? void 0 : M.d) && C(T, V, M == null ? void 0 : M.d);
|
|
319
320
|
const D = n.get(T);
|
|
320
321
|
D && !// TODO This seems pretty hacky. Hope to fix it.
|
|
321
322
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
@@ -387,23 +388,23 @@ function splitAtom(r, n) {
|
|
|
387
388
|
return;
|
|
388
389
|
}
|
|
389
390
|
const S = (w) => {
|
|
390
|
-
const A = w(i), P = w(r),
|
|
391
|
-
if (
|
|
391
|
+
const A = w(i), P = w(r), C = a(P, A == null ? void 0 : A.arr).keyList.indexOf(x);
|
|
392
|
+
if (C < 0 || C >= P.length) {
|
|
392
393
|
const I = c[a(c).keyList.indexOf(x)];
|
|
393
394
|
if (I)
|
|
394
395
|
return I;
|
|
395
396
|
throw new Error("splitAtom: index out of bounds for read");
|
|
396
397
|
}
|
|
397
|
-
return P[
|
|
398
|
+
return P[C];
|
|
398
399
|
}, E = (w, A, P) => {
|
|
399
|
-
const
|
|
400
|
-
if (j < 0 || j >=
|
|
400
|
+
const R = w(i), C = w(r), j = a(C, R == null ? void 0 : R.arr).keyList.indexOf(x);
|
|
401
|
+
if (j < 0 || j >= C.length)
|
|
401
402
|
throw new Error("splitAtom: index out of bounds for write");
|
|
402
|
-
const k = isFunction$1(P) ? P(
|
|
403
|
+
const k = isFunction$1(P) ? P(C[j]) : P;
|
|
403
404
|
A(r, [
|
|
404
|
-
...
|
|
405
|
+
...C.slice(0, j),
|
|
405
406
|
k,
|
|
406
|
-
...
|
|
407
|
+
...C.slice(j + 1)
|
|
407
408
|
]);
|
|
408
409
|
};
|
|
409
410
|
p[b] = isWritable(r) ? atom(S, E) : atom(S);
|
|
@@ -1216,12 +1217,12 @@ const useBlocksStoreManager = () => {
|
|
|
1216
1217
|
return {
|
|
1217
1218
|
moveBlocks: (x, v, S) => {
|
|
1218
1219
|
const E = map(x, (A) => {
|
|
1219
|
-
const
|
|
1220
|
-
return { _id: A, oldParent:
|
|
1220
|
+
const R = n.find((j) => j._id === A)._parent || null, I = n.filter((j) => R ? j._parent === R : !j._parent).map((j) => j._id).indexOf(A);
|
|
1221
|
+
return { _id: A, oldParent: R, oldPosition: I };
|
|
1221
1222
|
}), w = E.find(({ _id: A }) => A === x[0]);
|
|
1222
1223
|
w && w.oldParent === v && w.oldPosition === S || (l(x, v, S), r({
|
|
1223
|
-
undo: () => each(E, ({ _id: A, oldParent: P, oldPosition:
|
|
1224
|
-
l([A], P,
|
|
1224
|
+
undo: () => each(E, ({ _id: A, oldParent: P, oldPosition: R }) => {
|
|
1225
|
+
l([A], P, R);
|
|
1225
1226
|
}),
|
|
1226
1227
|
redo: () => l(x, v, S)
|
|
1227
1228
|
}));
|
|
@@ -1247,8 +1248,8 @@ const useBlocksStoreManager = () => {
|
|
|
1247
1248
|
else {
|
|
1248
1249
|
const w = keys(v);
|
|
1249
1250
|
E = map(x, (A) => {
|
|
1250
|
-
const P = n.find((
|
|
1251
|
-
return each(w, (
|
|
1251
|
+
const P = n.find((C) => C._id === A), R = { _id: A };
|
|
1252
|
+
return each(w, (C) => R[C] = P[C]), R;
|
|
1252
1253
|
});
|
|
1253
1254
|
}
|
|
1254
1255
|
c(map(x, (w) => ({ _id: w, ...v }))), r({
|
|
@@ -3254,14 +3255,14 @@ const useHandleCanvasDblClick = () => {
|
|
|
3254
3255
|
}, [a, d]);
|
|
3255
3256
|
const x = get$1(n, "headingFont", "DM Sans"), v = get$1(n, "bodyFont", "DM Sans");
|
|
3256
3257
|
return useEffect$1(() => {
|
|
3257
|
-
const S = get$1(n, "primaryColor", "#000"), E = get$1(n, "secondaryColor", "#FFF"), w = get$1(n, "bodyBgLightColor", "#fff"), A = get$1(n, "bodyBgDarkColor", "#000"), P = get$1(n, "bodyTextDarkColor", "#000"),
|
|
3258
|
+
const S = get$1(n, "primaryColor", "#000"), E = get$1(n, "secondaryColor", "#FFF"), w = get$1(n, "bodyBgLightColor", "#fff"), A = get$1(n, "bodyBgDarkColor", "#000"), P = get$1(n, "bodyTextDarkColor", "#000"), R = get$1(n, "bodyTextLightColor", "#fff"), C = getPalette([
|
|
3258
3259
|
{ color: S, name: "primary" },
|
|
3259
3260
|
{ color: E, name: "secondary" }
|
|
3260
3261
|
]), I = {
|
|
3261
3262
|
"bg-light": w,
|
|
3262
3263
|
"bg-dark": A,
|
|
3263
3264
|
"text-dark": P,
|
|
3264
|
-
"text-light":
|
|
3265
|
+
"text-light": R
|
|
3265
3266
|
}, j = get$1(n, "roundedCorners", "0");
|
|
3266
3267
|
!m || !m.tailwind || (m.tailwind.config = {
|
|
3267
3268
|
darkMode: "class",
|
|
@@ -3281,7 +3282,7 @@ const useHandleCanvasDblClick = () => {
|
|
|
3281
3282
|
borderRadius: {
|
|
3282
3283
|
DEFAULT: `${j || "0"}px`
|
|
3283
3284
|
},
|
|
3284
|
-
colors: { ...I, ...
|
|
3285
|
+
colors: { ...I, ...C }
|
|
3285
3286
|
}
|
|
3286
3287
|
},
|
|
3287
3288
|
plugins: [
|
|
@@ -3409,10 +3410,10 @@ function BlocksRendererStatic({ blocks: r }) {
|
|
|
3409
3410
|
const E = getBlockComponent(h._type), w = get$1(E, "builderComponent", get$1(E, "component", null));
|
|
3410
3411
|
if (isNull(w))
|
|
3411
3412
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("noscript", { children: `<!-- ${h == null ? void 0 : h._type} not registered -->` });
|
|
3412
|
-
const A = has(E, "getBlockStateFrom") ? E == null ? void 0 : E.getBlockStateFrom(h, n) : [], P = g(A),
|
|
3413
|
-
if (get$1(
|
|
3413
|
+
const A = has(E, "getBlockStateFrom") ? E == null ? void 0 : E.getBlockStateFrom(h, n) : [], P = g(A), R = d(h);
|
|
3414
|
+
if (get$1(R, "__isHidden", !1) && !includes(o, h._id))
|
|
3414
3415
|
return null;
|
|
3415
|
-
const
|
|
3416
|
+
const C = i && isDescendant(i._id, h._id, n);
|
|
3416
3417
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { children: React__default.createElement(w, {
|
|
3417
3418
|
blockProps: {
|
|
3418
3419
|
...includes(o, h._id) ? { "force-show": "" } : {},
|
|
@@ -3422,15 +3423,15 @@ function BlocksRendererStatic({ blocks: r }) {
|
|
|
3422
3423
|
// @ts-ignore
|
|
3423
3424
|
{
|
|
3424
3425
|
"data-dnd": canAcceptChildBlock(h._type, i == null ? void 0 : i._type) ? "yes" : "no",
|
|
3425
|
-
"data-dnd-dragged": i._id === h._id ||
|
|
3426
|
+
"data-dnd-dragged": i._id === h._id || C ? "yes" : "no"
|
|
3426
3427
|
}
|
|
3427
3428
|
) : {},
|
|
3428
|
-
...l === h._id && !
|
|
3429
|
+
...l === h._id && !C ? { "data-drop": "yes" } : {},
|
|
3429
3430
|
...includes(a, h._id) ? { "data-cut-block": "yes" } : {}
|
|
3430
3431
|
},
|
|
3431
3432
|
index: b,
|
|
3432
3433
|
...applyBindings(h, m),
|
|
3433
|
-
...omit(
|
|
3434
|
+
...omit(R, ["__isHidden"]),
|
|
3434
3435
|
...v,
|
|
3435
3436
|
inBuilder: !0,
|
|
3436
3437
|
blockState: P
|
|
@@ -3483,41 +3484,41 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
|
|
|
3483
3484
|
n(l);
|
|
3484
3485
|
}, []), /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: "main-content", className: "h-full w-full", ref: a, children: r });
|
|
3485
3486
|
}, getElementByStyleId = (r, n) => r.querySelector(`[data-style-id="${n}"]`), StaticCanvas = () => {
|
|
3486
|
-
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 }), m = useCanvasScale(u), [p, g] = useState$1([]), [, h] = useState$1([]), [, b] = useAtom$1(canvasIframeAtom), [x, v] = useSelectedStylingBlocks(), S = useBuilderProp("loading", !1), E = useBuilderProp("htmlDir", "ltr"), w = (
|
|
3487
|
-
d((
|
|
3487
|
+
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 }), m = useCanvasScale(u), [p, g] = useState$1([]), [, h] = useState$1([]), [, b] = useAtom$1(canvasIframeAtom), [x, v] = useSelectedStylingBlocks(), S = useBuilderProp("loading", !1), E = useBuilderProp("htmlDir", "ltr"), w = (R) => {
|
|
3488
|
+
d((C) => ({ ...C, width: R }));
|
|
3488
3489
|
};
|
|
3489
3490
|
useEffect$1(() => {
|
|
3490
3491
|
if (!c.current)
|
|
3491
3492
|
return;
|
|
3492
|
-
const { clientWidth:
|
|
3493
|
-
d({ width:
|
|
3493
|
+
const { clientWidth: R, clientHeight: C } = c.current;
|
|
3494
|
+
d({ width: R, height: C });
|
|
3494
3495
|
}, [c, n]);
|
|
3495
|
-
const A = (
|
|
3496
|
-
const { top: I } =
|
|
3497
|
-
return I +
|
|
3496
|
+
const A = (R, C = 0) => {
|
|
3497
|
+
const { top: I } = R.getBoundingClientRect();
|
|
3498
|
+
return I + C >= 0 && I - C <= window.innerHeight;
|
|
3498
3499
|
};
|
|
3499
3500
|
useEffect$1(() => {
|
|
3500
|
-
var
|
|
3501
|
+
var R, C;
|
|
3501
3502
|
if (a && a.type !== "Multiple" && l.current) {
|
|
3502
3503
|
const I = getElementByDataBlockId(l.current.contentDocument, a._id);
|
|
3503
|
-
I && (A(I) || (
|
|
3504
|
+
I && (A(I) || (C = (R = l.current) == null ? void 0 : R.contentWindow) == null || C.scrollTo({ top: I.offsetTop, behavior: "smooth" }), g([I]));
|
|
3504
3505
|
}
|
|
3505
3506
|
}, [a]), useEffect$1(() => {
|
|
3506
3507
|
if (!isEmpty(x) && l.current) {
|
|
3507
|
-
const
|
|
3508
|
+
const R = getElementByStyleId(
|
|
3508
3509
|
l.current.contentDocument,
|
|
3509
3510
|
first(x).id
|
|
3510
3511
|
);
|
|
3511
|
-
h(
|
|
3512
|
+
h(R ? [R] : [null]);
|
|
3512
3513
|
} else
|
|
3513
3514
|
h([null]);
|
|
3514
3515
|
}, [x]);
|
|
3515
3516
|
const P = useMemo$1(() => {
|
|
3516
|
-
let
|
|
3517
|
-
return
|
|
3517
|
+
let R = IframeInitialContent;
|
|
3518
|
+
return R = R.replace("__HTML_DIR__", E), r === "offline" && (R = R.replace(
|
|
3518
3519
|
"https://old.chaibuilder.com/offline/tailwind.cdn.js",
|
|
3519
3520
|
"/offline/tailwind.cdn.js"
|
|
3520
|
-
),
|
|
3521
|
+
), R = R.replace("https://unpkg.com/aos@next/dist/aos.css", "/offline/aos.css"), R = R.replace("https://unpkg.com/aos@next/dist/aos.js", "/offline/aos.js")), R;
|
|
3521
3522
|
}, [r]);
|
|
3522
3523
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ResizableCanvasWrapper, { onMount: w, onResize: w, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3523
3524
|
"div",
|
|
@@ -3566,29 +3567,13 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
|
|
|
3566
3567
|
)
|
|
3567
3568
|
}
|
|
3568
3569
|
) });
|
|
3569
|
-
}, StaticCanvas$1 = StaticCanvas
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
/**
|
|
3575
|
-
* A static method that returns an object to update the state when an error is caught.
|
|
3576
|
-
* @returns {object} An object to update the state when an error is caught.
|
|
3577
|
-
*/
|
|
3578
|
-
static getDerivedStateFromError() {
|
|
3579
|
-
return { hasError: !0 };
|
|
3580
|
-
}
|
|
3581
|
-
render() {
|
|
3582
|
-
return this.state.hasError ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "h-full w-full rounded-md bg-red-200 p-4 text-red-500", id: "errorBoundary", children: [
|
|
3583
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "font-semibold", children: "Oops! Something went wrong." }),
|
|
3584
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "Please try again later." })
|
|
3585
|
-
] }) : this.props.children;
|
|
3586
|
-
}
|
|
3587
|
-
};
|
|
3588
|
-
const CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-QaDlSeLr.js")), CanvasArea = () => {
|
|
3589
|
-
const [r] = useCodeEditor();
|
|
3570
|
+
}, 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: [
|
|
3571
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "font-semibold", children: "Oops! Something went wrong." }),
|
|
3572
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "Please try again." })
|
|
3573
|
+
] }) }), CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-J-XqPeSx.js")), CanvasArea = () => {
|
|
3574
|
+
const [r] = useCodeEditor(), n = useBuilderProp("onError", noop$1);
|
|
3590
3575
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex h-full w-full flex-col", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative flex h-full flex-col overflow-hidden bg-gray-100/40 px-2", children: [
|
|
3591
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, { className: "h-full" }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$
|
|
3576
|
+
/* @__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, {}) }) }),
|
|
3592
3577
|
r ? /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, { className: "h-full" }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Resizable, { enable: { top: !0, bottom: !1 }, className: "max-h-[400px] min-h-[200px]", children: /* @__PURE__ */ jsxRuntimeExports.jsx(CodeEditor$1, {}) }) }) : null
|
|
3593
3578
|
] }) });
|
|
3594
3579
|
}, CanvasArea$1 = CanvasArea, ColorField = ({ value: r, onChange: n, id: o, onBlur: a }) => {
|
|
@@ -3663,8 +3648,8 @@ const CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-QaDlSeLr.js"
|
|
|
3663
3648
|
React.useEffect(() => () => {
|
|
3664
3649
|
isEqual(a, c.current) || o(c.current);
|
|
3665
3650
|
}, []);
|
|
3666
|
-
const d = ({ formData:
|
|
3667
|
-
|
|
3651
|
+
const d = ({ formData: R }, C) => {
|
|
3652
|
+
C && (i(R), c.current = R);
|
|
3668
3653
|
}, {
|
|
3669
3654
|
bodyFont: m,
|
|
3670
3655
|
headingFont: p,
|
|
@@ -3717,9 +3702,9 @@ const CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-QaDlSeLr.js"
|
|
|
3717
3702
|
type: "object",
|
|
3718
3703
|
properties: {}
|
|
3719
3704
|
}, P = {};
|
|
3720
|
-
return Object.keys(w).forEach((
|
|
3721
|
-
const
|
|
3722
|
-
return A.properties || (A.properties = {}), A.properties[
|
|
3705
|
+
return Object.keys(w).forEach((R) => {
|
|
3706
|
+
const C = w[R];
|
|
3707
|
+
return A.properties || (A.properties = {}), A.properties[R] = C.schema, P[R] = C.uiSchema, !0;
|
|
3723
3708
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("flex h-full w-full select-none flex-col", n), children: [
|
|
3724
3709
|
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,
|
|
3725
3710
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -3971,31 +3956,31 @@ function TbEyeDown(r) {
|
|
|
3971
3956
|
const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
3972
3957
|
const a = useBuilderProp("outlineMenuItems", []), [, i] = useAddBlocksModal(), { t: l } = useTranslation(), [c] = useAtom$1(canvasIframeAtom);
|
|
3973
3958
|
let u = null;
|
|
3974
|
-
const d = r.children.length > 0, { id: m, data: p, isSelected: g, willReceiveDrop: h, isDragging: b, isEditing: x, handleClick: v } = r, S = (
|
|
3975
|
-
|
|
3976
|
-
}, E = (
|
|
3977
|
-
|
|
3978
|
-
}, w = (
|
|
3979
|
-
|
|
3980
|
-
}, A = (
|
|
3981
|
-
|
|
3959
|
+
const d = r.children.length > 0, { id: m, data: p, isSelected: g, willReceiveDrop: h, isDragging: b, isEditing: x, handleClick: v } = r, S = (C) => {
|
|
3960
|
+
C.stopPropagation(), r.toggle();
|
|
3961
|
+
}, E = (C) => {
|
|
3962
|
+
C.isInternal && (u = C.isOpen, C.isOpen && C.close());
|
|
3963
|
+
}, w = (C) => {
|
|
3964
|
+
C.isInternal && u !== null && (u ? C.open() : C.close(), u = null);
|
|
3965
|
+
}, A = (C) => {
|
|
3966
|
+
C.stopPropagation(), r.isOpen || r.toggle(), v(C);
|
|
3982
3967
|
};
|
|
3983
3968
|
useEffect$1(() => {
|
|
3984
|
-
const
|
|
3969
|
+
const C = setTimeout(() => {
|
|
3985
3970
|
h && !r.isOpen && !b && r.toggle();
|
|
3986
3971
|
}, 500);
|
|
3987
|
-
return () => clearTimeout(
|
|
3972
|
+
return () => clearTimeout(C);
|
|
3988
3973
|
}, [h, r, b]);
|
|
3989
3974
|
const P = useMemo$1(() => {
|
|
3990
|
-
const
|
|
3991
|
-
for (let j = 0; j <
|
|
3992
|
-
if (
|
|
3993
|
-
const k = p[
|
|
3975
|
+
const C = Object.keys(p), I = [];
|
|
3976
|
+
for (let j = 0; j < C.length; j++)
|
|
3977
|
+
if (C[j].endsWith("_attrs")) {
|
|
3978
|
+
const k = p[C[j]], O = Object.keys(k).join("|");
|
|
3994
3979
|
O.match(/x-data/) && I.push("data"), O.match(/x-on/) && I.push("event"), O.match(/x-show|x-if/) && I.push("show");
|
|
3995
3980
|
}
|
|
3996
3981
|
return I;
|
|
3997
|
-
}, [p]),
|
|
3998
|
-
const j = c.contentDocument || c.contentWindow.document, k = j.querySelector(`[data-block-id=${
|
|
3982
|
+
}, [p]), R = (C, I) => {
|
|
3983
|
+
const j = c.contentDocument || c.contentWindow.document, k = j.querySelector(`[data-block-id=${C}]`);
|
|
3999
3984
|
k && k.setAttribute("data-drop", I);
|
|
4000
3985
|
const O = k.getBoundingClientRect(), T = c.getBoundingClientRect();
|
|
4001
3986
|
O.top >= T.top && O.left >= T.left && O.bottom <= T.bottom && O.right <= T.right || (j.documentElement.scrollTop = k.offsetTop - T.top);
|
|
@@ -4019,14 +4004,14 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4019
4004
|
ref: o,
|
|
4020
4005
|
onDragStart: () => E(r),
|
|
4021
4006
|
onDragEnd: () => w(r),
|
|
4022
|
-
onDragOver: (
|
|
4023
|
-
|
|
4007
|
+
onDragOver: (C) => {
|
|
4008
|
+
C.preventDefault(), R(m, "yes");
|
|
4024
4009
|
},
|
|
4025
|
-
onDragLeave: (
|
|
4026
|
-
|
|
4010
|
+
onDragLeave: (C) => {
|
|
4011
|
+
C.preventDefault(), R(m, "no");
|
|
4027
4012
|
},
|
|
4028
|
-
onDrop: (
|
|
4029
|
-
|
|
4013
|
+
onDrop: (C) => {
|
|
4014
|
+
C.preventDefault(), R(m, "no");
|
|
4030
4015
|
},
|
|
4031
4016
|
className: cn(
|
|
4032
4017
|
"group flex !h-full w-full items-center justify-between space-x-px !rounded py-px outline-none",
|
|
@@ -4049,8 +4034,8 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4049
4034
|
"div",
|
|
4050
4035
|
{
|
|
4051
4036
|
className: "ml-2 flex items-center gap-x-1 truncate text-[11px]",
|
|
4052
|
-
onDoubleClick: (
|
|
4053
|
-
|
|
4037
|
+
onDoubleClick: (C) => {
|
|
4038
|
+
C.stopPropagation(), r.edit(), r.deselect();
|
|
4054
4039
|
},
|
|
4055
4040
|
children: [
|
|
4056
4041
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: (p == null ? void 0 : p._name) || (p == null ? void 0 : p._type.split("/").pop()) }),
|
|
@@ -4075,16 +4060,16 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4075
4060
|
),
|
|
4076
4061
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { className: "isolate z-[9999]", children: l("Add block") })
|
|
4077
4062
|
] }) : null,
|
|
4078
|
-
a.map((
|
|
4063
|
+
a.map((C) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
|
|
4079
4064
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4080
4065
|
TooltipTrigger,
|
|
4081
4066
|
{
|
|
4082
4067
|
className: "cursor-pointer rounded bg-transparent hover:bg-white hover:text-blue-500",
|
|
4083
4068
|
asChild: !0,
|
|
4084
|
-
children: React__default.createElement(
|
|
4069
|
+
children: React__default.createElement(C.item, { blockId: m })
|
|
4085
4070
|
}
|
|
4086
4071
|
),
|
|
4087
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { className: "isolate z-10", children:
|
|
4072
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { className: "isolate z-10", children: C.tooltip })
|
|
4088
4073
|
] }))
|
|
4089
4074
|
] })
|
|
4090
4075
|
]
|
|
@@ -4458,8 +4443,8 @@ function ExpandableObject(r) {
|
|
|
4458
4443
|
useEffect$1(() => {
|
|
4459
4444
|
g.current ? x(m(u, o, n)) : g.current = !0;
|
|
4460
4445
|
}, [m]);
|
|
4461
|
-
const v = h ? d.collapseIcon : d.expandIcon, S = h ? "collapse JSON" : "expand JSON", E = useComponentId(), w = u + 1, A = a.length - 1, P = (
|
|
4462
|
-
|
|
4446
|
+
const v = h ? d.collapseIcon : d.expandIcon, S = h ? "collapse JSON" : "expand JSON", E = useComponentId(), w = u + 1, A = a.length - 1, P = (R) => {
|
|
4447
|
+
R.key === " " && (R.preventDefault(), b());
|
|
4463
4448
|
};
|
|
4464
4449
|
return /* @__PURE__ */ createElement$1("div", {
|
|
4465
4450
|
className: d.basicChildStyle,
|
|
@@ -4485,12 +4470,12 @@ function ExpandableObject(r) {
|
|
|
4485
4470
|
className: d.punctuation
|
|
4486
4471
|
}, l), h ? /* @__PURE__ */ createElement$1("div", {
|
|
4487
4472
|
id: E
|
|
4488
|
-
}, a.map((
|
|
4489
|
-
key:
|
|
4490
|
-
field:
|
|
4491
|
-
value:
|
|
4473
|
+
}, a.map((R, C) => /* @__PURE__ */ createElement$1(DataRender, {
|
|
4474
|
+
key: R[0] || C,
|
|
4475
|
+
field: R[0],
|
|
4476
|
+
value: R[1],
|
|
4492
4477
|
style: d,
|
|
4493
|
-
lastElement:
|
|
4478
|
+
lastElement: C === A,
|
|
4494
4479
|
level: w,
|
|
4495
4480
|
shouldExpandNode: m,
|
|
4496
4481
|
clickToExpandNode: p
|
|
@@ -4623,12 +4608,13 @@ function getPathAndTypes(r) {
|
|
|
4623
4608
|
return a("", omit(r, ["styles", "_type", "_id", "_name", "_bindings"])), { paths: n, pathsType: o };
|
|
4624
4609
|
}
|
|
4625
4610
|
const ViewData = ({ data: r, fullView: n }) => {
|
|
4611
|
+
const o = useBuilderProp("onError", noop$1);
|
|
4626
4612
|
if (!r)
|
|
4627
4613
|
return null;
|
|
4628
|
-
const
|
|
4614
|
+
const a = typeof r;
|
|
4629
4615
|
return n ? typeof r == "object" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
4630
4616
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-3" }),
|
|
4631
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$
|
|
4617
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$1, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(FallbackError, {}), onError: o, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4632
4618
|
JsonView,
|
|
4633
4619
|
{
|
|
4634
4620
|
data: r,
|
|
@@ -4644,7 +4630,7 @@ const ViewData = ({ data: r, fullView: n }) => {
|
|
|
4644
4630
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "max-h-36 w-full overflow-y-auto overflow-x-hidden text-[12px] leading-4 text-gray-800/50", children: [
|
|
4645
4631
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "font-medium text-gray-800/80", children: "Content: " }),
|
|
4646
4632
|
r
|
|
4647
|
-
] }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full overflow-hidden whitespace-nowrap text-[10px] leading-3 text-gray-800/50", children: truncate(
|
|
4633
|
+
] }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full overflow-hidden whitespace-nowrap text-[10px] leading-3 text-gray-800/50", children: truncate(a === "object" ? JSON.stringify(r) : r, { length: 40 }) });
|
|
4648
4634
|
}, DataProvidersSuggester = ({
|
|
4649
4635
|
type: r,
|
|
4650
4636
|
value: n = "",
|
|
@@ -4970,7 +4956,7 @@ const ViewData = ({ data: r, fullView: n }) => {
|
|
|
4970
4956
|
}
|
|
4971
4957
|
)
|
|
4972
4958
|
] });
|
|
4973
|
-
}, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-
|
|
4959
|
+
}, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-ycaFnevC.js")), UploadImages = React__default.lazy(() => import("./UploadImages-SBOaVL2H.js")), ImagesPanel = ({
|
|
4974
4960
|
isModalView: r = !1,
|
|
4975
4961
|
onSelect: n = () => {
|
|
4976
4962
|
}
|
|
@@ -5325,7 +5311,7 @@ function FaRecycle(r) {
|
|
|
5325
5311
|
function FaSpinner(r) {
|
|
5326
5312
|
return GenIcon({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z" }, child: [] }] })(r);
|
|
5327
5313
|
}
|
|
5328
|
-
const SECONDS =
|
|
5314
|
+
const SECONDS = 10;
|
|
5329
5315
|
function Countdown() {
|
|
5330
5316
|
const [r, n] = useState$1(SECONDS), [o, a] = useState$1(!1);
|
|
5331
5317
|
useEffect$1(() => {
|
|
@@ -5378,14 +5364,14 @@ function Countdown() {
|
|
|
5378
5364
|
] });
|
|
5379
5365
|
}
|
|
5380
5366
|
const AskAIStyles = ({ blockId: r }) => {
|
|
5381
|
-
const { t: n } = useTranslation(), { askAi: o, loading: a, error: i } = useAskAi(), [l, c] = useState$1(""), u = useRef$1(null),
|
|
5367
|
+
const { t: n } = useTranslation(), { askAi: o, loading: a, error: i } = useAskAi(), [l, c] = useState$1(""), u = useRef$1(null), d = useRef$1(null), [m, p] = useState$1();
|
|
5382
5368
|
useEffect$1(() => {
|
|
5383
|
-
var
|
|
5384
|
-
(
|
|
5369
|
+
var h;
|
|
5370
|
+
(h = u.current) == null || h.focus();
|
|
5385
5371
|
}, []);
|
|
5386
|
-
const
|
|
5387
|
-
const { usage:
|
|
5388
|
-
!i &&
|
|
5372
|
+
const g = (h) => {
|
|
5373
|
+
const { usage: b } = h || {};
|
|
5374
|
+
!i && b && p(b), d.current = setTimeout(() => p(void 0), 1e4), i || c("");
|
|
5389
5375
|
};
|
|
5390
5376
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "", children: [
|
|
5391
5377
|
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "mb-1 text-sm font-semibold leading-none tracking-tight", children: n("ask_ai") }),
|
|
@@ -5394,12 +5380,12 @@ const AskAIStyles = ({ blockId: r }) => {
|
|
|
5394
5380
|
{
|
|
5395
5381
|
ref: u,
|
|
5396
5382
|
value: l,
|
|
5397
|
-
onChange: (
|
|
5383
|
+
onChange: (h) => c(h.target.value),
|
|
5398
5384
|
placeholder: n("ask_ai_to_edit_styles"),
|
|
5399
5385
|
className: "w-full border border-gray-400 focus:border-0",
|
|
5400
5386
|
rows: 3,
|
|
5401
|
-
onKeyDown: (
|
|
5402
|
-
|
|
5387
|
+
onKeyDown: (h) => {
|
|
5388
|
+
h.key === "Enter" && (h.preventDefault(), d.current && clearTimeout(d.current), p(void 0), o("styles", r, l, g));
|
|
5403
5389
|
}
|
|
5404
5390
|
}
|
|
5405
5391
|
),
|
|
@@ -5409,7 +5395,7 @@ const AskAIStyles = ({ blockId: r }) => {
|
|
|
5409
5395
|
{
|
|
5410
5396
|
disabled: l.trim().length < 5 || a,
|
|
5411
5397
|
onClick: () => {
|
|
5412
|
-
|
|
5398
|
+
d.current && clearTimeout(d.current), p(void 0), o("styles", r, l, g);
|
|
5413
5399
|
},
|
|
5414
5400
|
variant: "default",
|
|
5415
5401
|
className: "w-fit",
|
|
@@ -5428,11 +5414,11 @@ const AskAIStyles = ({ blockId: r }) => {
|
|
|
5428
5414
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { variant: "destructive", onClick: () => stop(), className: "hidden w-fit", size: "sm", children: n("stop") })
|
|
5429
5415
|
] }) : null
|
|
5430
5416
|
] }),
|
|
5431
|
-
|
|
5417
|
+
m ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "mb-1 flex justify-between break-words rounded border border-blue-500 bg-blue-100 p-1 text-xs text-blue-500", children: [
|
|
5432
5418
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
|
|
5433
5419
|
n("Total tokens used"),
|
|
5434
5420
|
": ",
|
|
5435
|
-
|
|
5421
|
+
m.totalTokens
|
|
5436
5422
|
] }),
|
|
5437
5423
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Countdown, {})
|
|
5438
5424
|
] }) }) : null,
|
|
@@ -5445,12 +5431,12 @@ const AskAIStyles = ({ blockId: r }) => {
|
|
|
5445
5431
|
keys: ["name"]
|
|
5446
5432
|
});
|
|
5447
5433
|
function ManualClasses() {
|
|
5448
|
-
var
|
|
5449
|
-
const { t: r } = useTranslation(), [n] = useSelectedStylingBlocks(), o = useSelectedBlock(), a = useAddClassesToBlocks(), i = useRemoveClassesFromBlocks(), [l] = useSelectedBlockIds(), c = useBuilderProp("askAiCallBack", null), [u, d] = useState$1(""), { toast: m } = useToast(), p = (
|
|
5450
|
-
const
|
|
5451
|
-
a(l,
|
|
5452
|
-
}, [b, x] = useState$1([]), v = ({ value:
|
|
5453
|
-
const I =
|
|
5434
|
+
var R;
|
|
5435
|
+
const { t: r } = useTranslation(), [n] = useSelectedStylingBlocks(), o = useSelectedBlock(), a = useAddClassesToBlocks(), i = useRemoveClassesFromBlocks(), [l] = useSelectedBlockIds(), c = useBuilderProp("askAiCallBack", null), [u, d] = useState$1(""), { toast: m } = useToast(), p = (R = first(n)) == null ? void 0 : R.prop, g = reject((get$1(o, p, "").replace(STYLES_KEY, "").split(",").pop() || "").split(" "), isEmpty), h = () => {
|
|
5436
|
+
const C = u.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
|
|
5437
|
+
a(l, C, !0), d("");
|
|
5438
|
+
}, [b, x] = useState$1([]), v = ({ value: C }) => {
|
|
5439
|
+
const I = C.trim().toLowerCase(), j = I.match(/.+:/g);
|
|
5454
5440
|
let k = [];
|
|
5455
5441
|
if (j && j.length > 0) {
|
|
5456
5442
|
const [O] = j, T = I.replace(O, "");
|
|
@@ -5463,17 +5449,17 @@ function ManualClasses() {
|
|
|
5463
5449
|
return x(map(k, "item"));
|
|
5464
5450
|
}, S = () => {
|
|
5465
5451
|
x([]);
|
|
5466
|
-
}, E = (
|
|
5452
|
+
}, E = (C) => C.name, w = (C) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "rounded-md p-1", children: C.name }), A = {
|
|
5467
5453
|
autoComplete: "off",
|
|
5468
5454
|
autoCorrect: "off",
|
|
5469
5455
|
autoCapitalize: "off",
|
|
5470
5456
|
spellCheck: !1,
|
|
5471
5457
|
placeholder: r("enter_classes_separated_by_space"),
|
|
5472
5458
|
value: u,
|
|
5473
|
-
onKeyDown: (
|
|
5474
|
-
|
|
5459
|
+
onKeyDown: (C) => {
|
|
5460
|
+
C.key === "Enter" && u.trim() !== "" && h();
|
|
5475
5461
|
},
|
|
5476
|
-
onChange: (
|
|
5462
|
+
onChange: (C, { newValue: I }) => d(I),
|
|
5477
5463
|
className: "w-full rounded-md text-xs px-2 hover:outline-0 bg-background border-border py-1"
|
|
5478
5464
|
}, P = () => {
|
|
5479
5465
|
if (navigator.clipboard === void 0) {
|
|
@@ -5543,22 +5529,22 @@ function ManualClasses() {
|
|
|
5543
5529
|
)
|
|
5544
5530
|
] }),
|
|
5545
5531
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full flex-wrap gap-2 overflow-x-hidden", children: React.Children.toArray(
|
|
5546
|
-
g.map((
|
|
5532
|
+
g.map((C) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
5547
5533
|
"div",
|
|
5548
5534
|
{
|
|
5549
5535
|
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",
|
|
5550
5536
|
children: [
|
|
5551
|
-
|
|
5537
|
+
C,
|
|
5552
5538
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5553
5539
|
Cross2Icon,
|
|
5554
5540
|
{
|
|
5555
|
-
onClick: () => i(l, [
|
|
5541
|
+
onClick: () => i(l, [C]),
|
|
5556
5542
|
className: "invisible absolute right-1 rounded-full bg-red-400 hover:text-white group-hover:visible group-hover:cursor-pointer"
|
|
5557
5543
|
}
|
|
5558
5544
|
)
|
|
5559
5545
|
]
|
|
5560
5546
|
},
|
|
5561
|
-
|
|
5547
|
+
C
|
|
5562
5548
|
))
|
|
5563
5549
|
) })
|
|
5564
5550
|
]
|
|
@@ -6217,7 +6203,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6217
6203
|
}
|
|
6218
6204
|
h(O), i(O === "class" || isEmpty(k) ? "" : k);
|
|
6219
6205
|
}, [l, d, m]);
|
|
6220
|
-
const
|
|
6206
|
+
const R = useThrottledCallback((k) => c(k), [c], THROTTLE_TIME), C = useThrottledCallback((k) => c(k, !1), [c], THROTTLE_TIME), I = useCallback$1(
|
|
6221
6207
|
(k = !1) => {
|
|
6222
6208
|
const O = getUserInputValues(`${a}`, m);
|
|
6223
6209
|
if (get$1(O, "error", !1)) {
|
|
@@ -6226,15 +6212,15 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6226
6212
|
}
|
|
6227
6213
|
const T = get$1(O, "unit") !== "" ? get$1(O, "unit") : g;
|
|
6228
6214
|
if (T === "auto" || T === "none") {
|
|
6229
|
-
|
|
6215
|
+
R(`${u}${T}`);
|
|
6230
6216
|
return;
|
|
6231
6217
|
}
|
|
6232
6218
|
if (get$1(O, "value") === "")
|
|
6233
6219
|
return;
|
|
6234
6220
|
const V = `${get$1(O, "value", "").startsWith("-") ? "-" : ""}${u}[${get$1(O, "value", "").replace("-", "")}${T === "-" ? "" : T}]`;
|
|
6235
|
-
k ?
|
|
6221
|
+
k ? C(V) : R(V);
|
|
6236
6222
|
},
|
|
6237
|
-
[
|
|
6223
|
+
[R, C, a, g, u, m]
|
|
6238
6224
|
), j = useCallback$1(
|
|
6239
6225
|
(k) => {
|
|
6240
6226
|
const O = getUserInputValues(`${a}`, m);
|
|
@@ -6243,15 +6229,15 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6243
6229
|
return;
|
|
6244
6230
|
}
|
|
6245
6231
|
if (k === "auto" || k === "none") {
|
|
6246
|
-
|
|
6232
|
+
R(`${u}${k}`);
|
|
6247
6233
|
return;
|
|
6248
6234
|
}
|
|
6249
6235
|
if (get$1(O, "value") === "")
|
|
6250
6236
|
return;
|
|
6251
6237
|
const T = get$1(O, "unit") !== "" ? get$1(O, "unit") : k, V = `${get$1(O, "value", "").startsWith("-") ? "-" : ""}${u}[${get$1(O, "value", "").replace("-", "")}${T === "-" ? "" : T}]`;
|
|
6252
|
-
|
|
6238
|
+
R(V);
|
|
6253
6239
|
},
|
|
6254
|
-
[
|
|
6240
|
+
[R, a, u, m]
|
|
6255
6241
|
);
|
|
6256
6242
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-start", children: g === "class" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
6257
6243
|
/* @__PURE__ */ jsxRuntimeExports.jsx("input", { className: "w-20 rounded py-1", readOnly: !0, value: l }),
|
|
@@ -6276,7 +6262,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6276
6262
|
let T = isNaN$1(O) ? 0 : O;
|
|
6277
6263
|
k.keyCode === 38 && (T += 1), k.keyCode === 40 && (T -= 1);
|
|
6278
6264
|
const M = `${T}`, D = `${M.startsWith("-") ? "-" : ""}${u}[${M.replace("-", "")}${g === "-" ? "" : g}]`;
|
|
6279
|
-
|
|
6265
|
+
C(D);
|
|
6280
6266
|
},
|
|
6281
6267
|
onKeyUp: (k) => {
|
|
6282
6268
|
A && (k.preventDefault(), P(!1));
|
|
@@ -6329,14 +6315,14 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6329
6315
|
if (S(() => ""), w(!1), isEmpty(k))
|
|
6330
6316
|
return;
|
|
6331
6317
|
const O = `${k}`, M = `${O.startsWith("-") ? "-" : ""}${u}[${O.replace("-", "")}${g === "-" ? "" : g}]`;
|
|
6332
|
-
|
|
6318
|
+
R(M);
|
|
6333
6319
|
},
|
|
6334
6320
|
onDrag: (k) => {
|
|
6335
6321
|
if (isEmpty(k))
|
|
6336
6322
|
return;
|
|
6337
6323
|
S(k);
|
|
6338
6324
|
const O = `${k}`, M = `${O.startsWith("-") ? "-" : ""}${u}[${O.replace("-", "")}${g === "-" ? "" : g}]`;
|
|
6339
|
-
|
|
6325
|
+
C(M);
|
|
6340
6326
|
},
|
|
6341
6327
|
currentValue: a,
|
|
6342
6328
|
unit: g,
|
|
@@ -6434,8 +6420,8 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6434
6420
|
}, getBreakpoint = (r) => `${r.toUpperCase()} ${BREAKPOINTS[r] ? `(${BREAKPOINTS[r]} & up)` : ""}`, BlockStyle = (r) => {
|
|
6435
6421
|
const { t: n } = useTranslation(), { type: o = "icons", label: a, property: i, onEmitChange: l = () => {
|
|
6436
6422
|
}, units: c, negative: u = !1 } = r, [d] = useDarkMode(), [m] = useStylingState(), [, p] = useCanvasWidth(), g = useCurrentClassByProperty(i), h = useAddClassesToBlocks(), b = useRemoveClassesFromBlocks(), [x] = useSelectedBlockIds(), v = useMemo$1(() => get$1(g, "fullCls", ""), [g]), S = useCallback$1(
|
|
6437
|
-
(
|
|
6438
|
-
const j = { dark: d, mq: p, mod: m, cls:
|
|
6423
|
+
(C, I = !0) => {
|
|
6424
|
+
const j = { dark: d, mq: p, mod: m, cls: C, property: i, fullCls: "" };
|
|
6439
6425
|
(d || m !== "") && (j.mq = "xs");
|
|
6440
6426
|
const k = generateFullClsName(j);
|
|
6441
6427
|
h(x, [k], I);
|
|
@@ -6448,7 +6434,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6448
6434
|
l(w, g);
|
|
6449
6435
|
}, [w, l, g]);
|
|
6450
6436
|
const [, , A] = useCanvasWidth(), P = useCallback$1(
|
|
6451
|
-
(
|
|
6437
|
+
(C) => {
|
|
6452
6438
|
A({
|
|
6453
6439
|
xs: 400,
|
|
6454
6440
|
sm: 640,
|
|
@@ -6456,12 +6442,12 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6456
6442
|
lg: 1024,
|
|
6457
6443
|
xl: 1420,
|
|
6458
6444
|
"2xl": 1920
|
|
6459
|
-
}[
|
|
6445
|
+
}[C]);
|
|
6460
6446
|
},
|
|
6461
6447
|
[A]
|
|
6462
|
-
),
|
|
6463
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(BlockStyleProvider, { canChange: w, canReset: g &&
|
|
6464
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `text-[11px] ${g && !
|
|
6448
|
+
), R = get$1(g, "dark", null) === d && get$1(g, "mod", null) === m && get$1(g, "mq", null) === p;
|
|
6449
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(BlockStyleProvider, { canChange: w, canReset: g && R, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
|
|
6450
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `text-[11px] ${g && !R ? "text-foreground" : ""}`, children: n(a) }) }),
|
|
6465
6451
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-row items-center", children: [
|
|
6466
6452
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-[150px]", children: [
|
|
6467
6453
|
o === "arbitrary" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -6480,7 +6466,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6480
6466
|
o === "color" && /* @__PURE__ */ jsxRuntimeExports.jsx(ColorChoice, { property: i, onChange: S }),
|
|
6481
6467
|
o === "dropdown" && /* @__PURE__ */ jsxRuntimeExports.jsx(DropDownChoices, { label: a, property: i, onChange: S })
|
|
6482
6468
|
] }),
|
|
6483
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `w-[30px] cursor-pointer ${v ? "visible" : "invisible"}`, children:
|
|
6469
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `w-[30px] cursor-pointer ${v ? "visible" : "invisible"}`, children: R ? /* @__PURE__ */ jsxRuntimeExports.jsx("button", { type: "button", onClick: () => E(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ jsxRuntimeExports.jsx(CrossCircledIcon, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : w && g ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { delayDuration: 100, children: [
|
|
6484
6470
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
6485
6471
|
"button",
|
|
6486
6472
|
{
|
|
@@ -6778,9 +6764,9 @@ const BlockCard = ({
|
|
|
6778
6764
|
if (x(first(w)) && (A = null), !isEmpty(w)) {
|
|
6779
6765
|
const P = { blocks: w, uiLibrary: !0, parent: A };
|
|
6780
6766
|
if (E.dataTransfer.setData("text/plain", JSON.stringify(P)), r.preview) {
|
|
6781
|
-
const
|
|
6782
|
-
|
|
6783
|
-
E.dataTransfer.setDragImage(
|
|
6767
|
+
const R = new Image();
|
|
6768
|
+
R.src = r.preview, R.onload = () => {
|
|
6769
|
+
E.dataTransfer.setDragImage(R, 0, 0);
|
|
6784
6770
|
};
|
|
6785
6771
|
} else
|
|
6786
6772
|
E.dataTransfer.setDragImage(new Image(), 0, 0);
|
|
@@ -7484,14 +7470,14 @@ function QuickPrompts({ onClick: r }) {
|
|
|
7484
7470
|
) }) });
|
|
7485
7471
|
}
|
|
7486
7472
|
const AIUserPrompt = ({ blockId: r }) => {
|
|
7487
|
-
const { t: n } = useTranslation(), { askAi: o, loading: a, error: i } = useAskAi(), [l, c] = useState$1(""), [u, d] = useState$1(!0), [m, p] = useState$1(), g = useRef$1(null);
|
|
7473
|
+
const { t: n } = useTranslation(), { askAi: o, loading: a, error: i } = useAskAi(), [l, c] = useState$1(""), [u, d] = useState$1(!0), [m, p] = useState$1(), g = useRef$1(null), h = useRef$1(null);
|
|
7488
7474
|
useEffect$1(() => {
|
|
7489
|
-
var
|
|
7490
|
-
(
|
|
7475
|
+
var x;
|
|
7476
|
+
(x = g.current) == null || x.focus();
|
|
7491
7477
|
}, []);
|
|
7492
|
-
const
|
|
7493
|
-
const { usage:
|
|
7494
|
-
!i &&
|
|
7478
|
+
const b = (x) => {
|
|
7479
|
+
const { usage: v } = x || {};
|
|
7480
|
+
!i && v && p(v), h.current = setTimeout(() => p(void 0), 1e4), i || c("");
|
|
7495
7481
|
};
|
|
7496
7482
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "", children: [
|
|
7497
7483
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -7511,12 +7497,12 @@ const AIUserPrompt = ({ blockId: r }) => {
|
|
|
7511
7497
|
{
|
|
7512
7498
|
ref: g,
|
|
7513
7499
|
value: l,
|
|
7514
|
-
onChange: (
|
|
7500
|
+
onChange: (x) => c(x.target.value),
|
|
7515
7501
|
placeholder: n("ask_ai_to_edit_content"),
|
|
7516
7502
|
className: "w-full border border-gray-400 focus:border-0",
|
|
7517
7503
|
rows: 3,
|
|
7518
|
-
onKeyDown: (
|
|
7519
|
-
|
|
7504
|
+
onKeyDown: (x) => {
|
|
7505
|
+
x.key === "Enter" && (x.preventDefault(), h.current && clearTimeout(h.current), p(void 0), o("content", r, l, b));
|
|
7520
7506
|
}
|
|
7521
7507
|
}
|
|
7522
7508
|
),
|
|
@@ -7526,7 +7512,7 @@ const AIUserPrompt = ({ blockId: r }) => {
|
|
|
7526
7512
|
{
|
|
7527
7513
|
disabled: l.trim().length < 5 || a,
|
|
7528
7514
|
onClick: () => {
|
|
7529
|
-
p(void 0), o("content", r, l,
|
|
7515
|
+
h.current && clearTimeout(h.current), p(void 0), o("content", r, l, b);
|
|
7530
7516
|
},
|
|
7531
7517
|
variant: "default",
|
|
7532
7518
|
className: "w-fit",
|
|
@@ -7557,8 +7543,8 @@ const AIUserPrompt = ({ blockId: r }) => {
|
|
|
7557
7543
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
7558
7544
|
QuickPrompts,
|
|
7559
7545
|
{
|
|
7560
|
-
onClick: (
|
|
7561
|
-
p(void 0), o("content", r,
|
|
7546
|
+
onClick: (x) => {
|
|
7547
|
+
h.current && clearTimeout(h.current), p(void 0), o("content", r, x, b);
|
|
7562
7548
|
}
|
|
7563
7549
|
}
|
|
7564
7550
|
)
|
|
@@ -7682,8 +7668,8 @@ const AIUserPrompt = ({ blockId: r }) => {
|
|
|
7682
7668
|
o(P), i(a), c(""), d(""), h("");
|
|
7683
7669
|
}
|
|
7684
7670
|
}, S = (P) => {
|
|
7685
|
-
const
|
|
7686
|
-
o(
|
|
7671
|
+
const R = a.filter((C, I) => I !== P);
|
|
7672
|
+
o(R), i(R);
|
|
7687
7673
|
}, E = (P) => {
|
|
7688
7674
|
p(P), c(a[P].key), d(a[P].value);
|
|
7689
7675
|
}, w = () => {
|
|
@@ -7750,22 +7736,22 @@ const AIUserPrompt = ({ blockId: r }) => {
|
|
|
7750
7736
|
]
|
|
7751
7737
|
}
|
|
7752
7738
|
),
|
|
7753
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-4 space-y-1 overflow-y-auto", children: a.map((P,
|
|
7739
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-4 space-y-1 overflow-y-auto", children: a.map((P, R) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between rounded bg-muted p-1.5 text-sm", children: [
|
|
7754
7740
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mr-2 flex flex-col", children: [
|
|
7755
7741
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncate font-semibold", children: P.key }),
|
|
7756
7742
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-wrap max-w-[200px] text-muted-foreground", children: P.value.toString() })
|
|
7757
7743
|
] }),
|
|
7758
7744
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-shrink-0", children: [
|
|
7759
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Button$1, { variant: "ghost", size: "icon", className: "h-6 w-6", onClick: () => E(
|
|
7745
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Button$1, { variant: "ghost", size: "icon", className: "h-6 w-6", onClick: () => E(R), children: [
|
|
7760
7746
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Edit2, { className: "h-3 w-3" }),
|
|
7761
7747
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sr-only", children: "Edit attribute" })
|
|
7762
7748
|
] }),
|
|
7763
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Button$1, { variant: "ghost", size: "icon", className: "h-6 w-6", onClick: () => S(
|
|
7749
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Button$1, { variant: "ghost", size: "icon", className: "h-6 w-6", onClick: () => S(R), children: [
|
|
7764
7750
|
/* @__PURE__ */ jsxRuntimeExports.jsx(X, { className: "h-3 w-3" }),
|
|
7765
7751
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sr-only", children: "Remove attribute" })
|
|
7766
7752
|
] })
|
|
7767
7753
|
] })
|
|
7768
|
-
] },
|
|
7754
|
+
] }, R)) })
|
|
7769
7755
|
] });
|
|
7770
7756
|
}), BlockAttributesEditor = React.memo(() => {
|
|
7771
7757
|
const r = useSelectedBlock(), [n, o] = useState$1([]), [a] = useSelectedStylingBlocks(), i = useUpdateBlocksPropsRealtime(), l = useUpdateBlocksProps(), c = `${get$1(a, "0.prop")}_attrs`;
|
|
@@ -7844,15 +7830,15 @@ function useAtomsSnapshot({
|
|
|
7844
7830
|
A && "v" in A && h.set(w, A.v);
|
|
7845
7831
|
const P = (E = o.dev_get_mounted) == null ? void 0 : E.call(o, w);
|
|
7846
7832
|
if (P) {
|
|
7847
|
-
let
|
|
7848
|
-
r || (
|
|
7849
|
-
Array.from(
|
|
7833
|
+
let R = P.t;
|
|
7834
|
+
r || (R = new Set(
|
|
7835
|
+
Array.from(R.values()).filter(
|
|
7850
7836
|
/* NOTE: This just removes private atoms from the dependents list,
|
|
7851
7837
|
instead of hiding them from the dependency chain and showing
|
|
7852
7838
|
the nested dependents of the private atoms. */
|
|
7853
|
-
(
|
|
7839
|
+
(C) => !C.debugPrivate
|
|
7854
7840
|
)
|
|
7855
|
-
)), b.set(w,
|
|
7841
|
+
)), b.set(w, R);
|
|
7856
7842
|
}
|
|
7857
7843
|
}
|
|
7858
7844
|
if (isEqualAtomsValues(u, h) && isEqualAtomsDependents(d, b))
|
|
@@ -8067,7 +8053,7 @@ function compile(r) {
|
|
|
8067
8053
|
return dealloc(parse("", null, null, null, [""], r = alloc(r), 0, [0], r));
|
|
8068
8054
|
}
|
|
8069
8055
|
function parse(r, n, o, a, i, l, c, u, d) {
|
|
8070
|
-
for (var m = 0, p = 0, g = c, h = 0, b = 0, x = 0, v = 1, S = 1, E = 1, w = 0, A = "", P = i,
|
|
8056
|
+
for (var m = 0, p = 0, g = c, h = 0, b = 0, x = 0, v = 1, S = 1, E = 1, w = 0, A = "", P = i, R = l, C = a, I = A; S; )
|
|
8071
8057
|
switch (x = w, w = next()) {
|
|
8072
8058
|
case 40:
|
|
8073
8059
|
if (x != 108 && charat(I, g - 1) == 58) {
|
|
@@ -8113,19 +8099,19 @@ function parse(r, n, o, a, i, l, c, u, d) {
|
|
|
8113
8099
|
case 59:
|
|
8114
8100
|
I += ";";
|
|
8115
8101
|
default:
|
|
8116
|
-
if (append(
|
|
8102
|
+
if (append(C = ruleset(I, n, o, m, p, i, u, A, P = [], R = [], g), l), w === 123)
|
|
8117
8103
|
if (p === 0)
|
|
8118
|
-
parse(I, n,
|
|
8104
|
+
parse(I, n, C, C, P, l, g, u, R);
|
|
8119
8105
|
else
|
|
8120
8106
|
switch (h === 99 && charat(I, 3) === 110 ? 100 : h) {
|
|
8121
8107
|
case 100:
|
|
8122
8108
|
case 108:
|
|
8123
8109
|
case 109:
|
|
8124
8110
|
case 115:
|
|
8125
|
-
parse(r,
|
|
8111
|
+
parse(r, C, C, a && append(ruleset(r, C, C, 0, 0, i, u, A, i, P = [], g), R), i, R, g, u, a ? P : R);
|
|
8126
8112
|
break;
|
|
8127
8113
|
default:
|
|
8128
|
-
parse(I,
|
|
8114
|
+
parse(I, C, C, C, [""], R, 0, u, R);
|
|
8129
8115
|
}
|
|
8130
8116
|
}
|
|
8131
8117
|
m = p = b = 0, v = E = 1, A = I = "", g = c;
|
|
@@ -8489,8 +8475,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
8489
8475
|
};
|
|
8490
8476
|
d = function(S, E, w, A) {
|
|
8491
8477
|
p = w, process.env.NODE_ENV !== "production" && E.map !== void 0 && (p = {
|
|
8492
|
-
insert: function(
|
|
8493
|
-
w.insert(
|
|
8478
|
+
insert: function(R) {
|
|
8479
|
+
w.insert(R + E.map);
|
|
8494
8480
|
}
|
|
8495
8481
|
}), b(S ? S + "{" + E.styles + "}" : E.styles), A && (x.inserted[E.name] = !0);
|
|
8496
8482
|
};
|
|
@@ -8537,65 +8523,65 @@ function requireReactIs_production_min() {
|
|
|
8537
8523
|
return reactIs_production_min;
|
|
8538
8524
|
hasRequiredReactIs_production_min = 1;
|
|
8539
8525
|
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, m = r ? Symbol.for("react.concurrent_mode") : 60111, p = 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;
|
|
8540
|
-
function A(
|
|
8541
|
-
if (typeof
|
|
8542
|
-
var
|
|
8543
|
-
switch (
|
|
8526
|
+
function A(R) {
|
|
8527
|
+
if (typeof R == "object" && R !== null) {
|
|
8528
|
+
var C = R.$$typeof;
|
|
8529
|
+
switch (C) {
|
|
8544
8530
|
case n:
|
|
8545
|
-
switch (
|
|
8531
|
+
switch (R = R.type, R) {
|
|
8546
8532
|
case d:
|
|
8547
8533
|
case m:
|
|
8548
8534
|
case a:
|
|
8549
8535
|
case l:
|
|
8550
8536
|
case i:
|
|
8551
8537
|
case g:
|
|
8552
|
-
return
|
|
8538
|
+
return R;
|
|
8553
8539
|
default:
|
|
8554
|
-
switch (
|
|
8540
|
+
switch (R = R && R.$$typeof, R) {
|
|
8555
8541
|
case u:
|
|
8556
8542
|
case p:
|
|
8557
8543
|
case x:
|
|
8558
8544
|
case b:
|
|
8559
8545
|
case c:
|
|
8560
|
-
return C;
|
|
8561
|
-
default:
|
|
8562
8546
|
return R;
|
|
8547
|
+
default:
|
|
8548
|
+
return C;
|
|
8563
8549
|
}
|
|
8564
8550
|
}
|
|
8565
8551
|
case o:
|
|
8566
|
-
return
|
|
8567
|
-
}
|
|
8568
|
-
}
|
|
8569
|
-
}
|
|
8570
|
-
function P(
|
|
8571
|
-
return A(
|
|
8572
|
-
}
|
|
8573
|
-
return reactIs_production_min.AsyncMode = d, reactIs_production_min.ConcurrentMode = m, reactIs_production_min.ContextConsumer = u, reactIs_production_min.ContextProvider = c, reactIs_production_min.Element = n, reactIs_production_min.ForwardRef = p, 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(
|
|
8574
|
-
return P(
|
|
8575
|
-
}, reactIs_production_min.isConcurrentMode = P, reactIs_production_min.isContextConsumer = function(
|
|
8576
|
-
return A(
|
|
8577
|
-
}, reactIs_production_min.isContextProvider = function(
|
|
8578
|
-
return A(
|
|
8579
|
-
}, reactIs_production_min.isElement = function(
|
|
8580
|
-
return typeof
|
|
8581
|
-
}, reactIs_production_min.isForwardRef = function(
|
|
8582
|
-
return A(
|
|
8583
|
-
}, reactIs_production_min.isFragment = function(
|
|
8584
|
-
return A(
|
|
8585
|
-
}, reactIs_production_min.isLazy = function(
|
|
8586
|
-
return A(
|
|
8587
|
-
}, reactIs_production_min.isMemo = function(
|
|
8588
|
-
return A(
|
|
8589
|
-
}, reactIs_production_min.isPortal = function(
|
|
8590
|
-
return A(
|
|
8591
|
-
}, reactIs_production_min.isProfiler = function(
|
|
8592
|
-
return A(
|
|
8593
|
-
}, reactIs_production_min.isStrictMode = function(
|
|
8594
|
-
return A(
|
|
8595
|
-
}, reactIs_production_min.isSuspense = function(
|
|
8596
|
-
return A(
|
|
8597
|
-
}, reactIs_production_min.isValidElementType = function(
|
|
8598
|
-
return typeof
|
|
8552
|
+
return C;
|
|
8553
|
+
}
|
|
8554
|
+
}
|
|
8555
|
+
}
|
|
8556
|
+
function P(R) {
|
|
8557
|
+
return A(R) === m;
|
|
8558
|
+
}
|
|
8559
|
+
return reactIs_production_min.AsyncMode = d, reactIs_production_min.ConcurrentMode = m, reactIs_production_min.ContextConsumer = u, reactIs_production_min.ContextProvider = c, reactIs_production_min.Element = n, reactIs_production_min.ForwardRef = p, 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(R) {
|
|
8560
|
+
return P(R) || A(R) === d;
|
|
8561
|
+
}, reactIs_production_min.isConcurrentMode = P, reactIs_production_min.isContextConsumer = function(R) {
|
|
8562
|
+
return A(R) === u;
|
|
8563
|
+
}, reactIs_production_min.isContextProvider = function(R) {
|
|
8564
|
+
return A(R) === c;
|
|
8565
|
+
}, reactIs_production_min.isElement = function(R) {
|
|
8566
|
+
return typeof R == "object" && R !== null && R.$$typeof === n;
|
|
8567
|
+
}, reactIs_production_min.isForwardRef = function(R) {
|
|
8568
|
+
return A(R) === p;
|
|
8569
|
+
}, reactIs_production_min.isFragment = function(R) {
|
|
8570
|
+
return A(R) === a;
|
|
8571
|
+
}, reactIs_production_min.isLazy = function(R) {
|
|
8572
|
+
return A(R) === x;
|
|
8573
|
+
}, reactIs_production_min.isMemo = function(R) {
|
|
8574
|
+
return A(R) === b;
|
|
8575
|
+
}, reactIs_production_min.isPortal = function(R) {
|
|
8576
|
+
return A(R) === o;
|
|
8577
|
+
}, reactIs_production_min.isProfiler = function(R) {
|
|
8578
|
+
return A(R) === l;
|
|
8579
|
+
}, reactIs_production_min.isStrictMode = function(R) {
|
|
8580
|
+
return A(R) === i;
|
|
8581
|
+
}, reactIs_production_min.isSuspense = function(R) {
|
|
8582
|
+
return A(R) === g;
|
|
8583
|
+
}, reactIs_production_min.isValidElementType = function(R) {
|
|
8584
|
+
return typeof R == "string" || typeof R == "function" || R === a || R === m || R === l || R === i || R === g || R === h || typeof R == "object" && R !== null && (R.$$typeof === x || R.$$typeof === b || R.$$typeof === c || R.$$typeof === u || R.$$typeof === p || R.$$typeof === S || R.$$typeof === E || R.$$typeof === w || R.$$typeof === v);
|
|
8599
8585
|
}, reactIs_production_min.typeOf = A, reactIs_production_min;
|
|
8600
8586
|
}
|
|
8601
8587
|
var reactIs_development = {};
|
|
@@ -8647,7 +8633,7 @@ function requireReactIs_development() {
|
|
|
8647
8633
|
}
|
|
8648
8634
|
}
|
|
8649
8635
|
}
|
|
8650
|
-
var
|
|
8636
|
+
var R = d, C = m, I = u, j = c, k = n, O = p, T = a, M = x, V = b, D = o, W = l, J = i, F = g, L = !1;
|
|
8651
8637
|
function q(K) {
|
|
8652
8638
|
return L || (L = !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;
|
|
8653
8639
|
}
|
|
@@ -8687,7 +8673,7 @@ function requireReactIs_development() {
|
|
|
8687
8673
|
function se(K) {
|
|
8688
8674
|
return P(K) === g;
|
|
8689
8675
|
}
|
|
8690
|
-
reactIs_development.AsyncMode =
|
|
8676
|
+
reactIs_development.AsyncMode = R, 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 = M, reactIs_development.Memo = V, 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 = A, reactIs_development.typeOf = P;
|
|
8691
8677
|
}()), reactIs_development;
|
|
8692
8678
|
}
|
|
8693
8679
|
process.env.NODE_ENV === "production" ? reactIs$1.exports = requireReactIs_production_min() : reactIs$1.exports = requireReactIs_development();
|
|
@@ -10729,9 +10715,9 @@ function useMove(r, n, o = "ltr") {
|
|
|
10729
10715
|
a.current.style.userSelect = "none";
|
|
10730
10716
|
const P = a.current.getBoundingClientRect();
|
|
10731
10717
|
if (P.width && P.height) {
|
|
10732
|
-
const
|
|
10718
|
+
const R = clamp$1((w - P.left) / P.width, 0, 1);
|
|
10733
10719
|
r({
|
|
10734
|
-
x: o === "ltr" ?
|
|
10720
|
+
x: o === "ltr" ? R : 1 - R,
|
|
10735
10721
|
y: clamp$1((A - P.top) / P.height, 0, 1)
|
|
10736
10722
|
});
|
|
10737
10723
|
}
|
|
@@ -10859,7 +10845,7 @@ function useScrollIntoView({
|
|
|
10859
10845
|
}) - (p.current ? 0 : w);
|
|
10860
10846
|
function P() {
|
|
10861
10847
|
d.current === 0 && (d.current = performance.now());
|
|
10862
|
-
const
|
|
10848
|
+
const C = performance.now() - d.current, I = h || r === 0 ? 1 : C / r, j = w + A * a(I);
|
|
10863
10849
|
setScrollParam({
|
|
10864
10850
|
parent: p.current,
|
|
10865
10851
|
axis: n,
|
|
@@ -10923,8 +10909,8 @@ function extractSystemStyles(r) {
|
|
|
10923
10909
|
opacity: w,
|
|
10924
10910
|
ff: A,
|
|
10925
10911
|
fz: P,
|
|
10926
|
-
fw:
|
|
10927
|
-
lts:
|
|
10912
|
+
fw: R,
|
|
10913
|
+
lts: C,
|
|
10928
10914
|
ta: I,
|
|
10929
10915
|
lh: j,
|
|
10930
10916
|
fs: k,
|
|
@@ -11012,8 +10998,8 @@ function extractSystemStyles(r) {
|
|
|
11012
10998
|
opacity: w,
|
|
11013
10999
|
ff: A,
|
|
11014
11000
|
fz: P,
|
|
11015
|
-
fw:
|
|
11016
|
-
lts:
|
|
11001
|
+
fw: R,
|
|
11002
|
+
lts: C,
|
|
11017
11003
|
ta: I,
|
|
11018
11004
|
lh: j,
|
|
11019
11005
|
fs: k,
|
|
@@ -12080,8 +12066,8 @@ const defaultProps$A = {
|
|
|
12080
12066
|
classNames: w,
|
|
12081
12067
|
styles: A,
|
|
12082
12068
|
unstyled: P,
|
|
12083
|
-
span:
|
|
12084
|
-
__staticSelector:
|
|
12069
|
+
span: R,
|
|
12070
|
+
__staticSelector: C
|
|
12085
12071
|
} = o, I = __objRest$L(o, [
|
|
12086
12072
|
"className",
|
|
12087
12073
|
"size",
|
|
@@ -12116,11 +12102,11 @@ const defaultProps$A = {
|
|
|
12116
12102
|
transform: c,
|
|
12117
12103
|
align: d,
|
|
12118
12104
|
gradient: h
|
|
12119
|
-
}, { unstyled: P, name:
|
|
12105
|
+
}, { unstyled: P, name: C || "Text", variant: m, size: i });
|
|
12120
12106
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$14({
|
|
12121
12107
|
ref: n,
|
|
12122
12108
|
className: k(j.root, { [j.gradient]: m === "gradient" }, a),
|
|
12123
|
-
component:
|
|
12109
|
+
component: R ? "span" : "div"
|
|
12124
12110
|
}, I));
|
|
12125
12111
|
});
|
|
12126
12112
|
_Text.displayName = "@mantine/core/Text";
|
|
@@ -12385,7 +12371,7 @@ function SelectItems({
|
|
|
12385
12371
|
size: g
|
|
12386
12372
|
}), w = [], A = [];
|
|
12387
12373
|
let P = null;
|
|
12388
|
-
const
|
|
12374
|
+
const R = (I, j) => {
|
|
12389
12375
|
const k = typeof i == "function" ? i(I.value) : !1;
|
|
12390
12376
|
return /* @__PURE__ */ React__default.createElement(p, __spreadValues$$({
|
|
12391
12377
|
key: I.value,
|
|
@@ -12409,15 +12395,15 @@ function SelectItems({
|
|
|
12409
12395
|
variant: S
|
|
12410
12396
|
}, I));
|
|
12411
12397
|
};
|
|
12412
|
-
let
|
|
12398
|
+
let C = null;
|
|
12413
12399
|
if (r.forEach((I, j) => {
|
|
12414
|
-
I.creatable ? P = j : I.group ? (
|
|
12400
|
+
I.creatable ? P = j : I.group ? (C !== I.group && (C = I.group, A.push(/* @__PURE__ */ React__default.createElement("div", {
|
|
12415
12401
|
className: E.separator,
|
|
12416
12402
|
key: `__mantine-divider-${j}`
|
|
12417
12403
|
}, /* @__PURE__ */ React__default.createElement(Divider, {
|
|
12418
12404
|
classNames: { label: E.separatorLabel },
|
|
12419
12405
|
label: I.group
|
|
12420
|
-
})))), A.push(
|
|
12406
|
+
})))), A.push(R(I, j))) : w.push(R(I, j));
|
|
12421
12407
|
}), b) {
|
|
12422
12408
|
const I = r[P];
|
|
12423
12409
|
w.push(/* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -12581,7 +12567,7 @@ const defaultProps$x = {
|
|
|
12581
12567
|
"unstyled",
|
|
12582
12568
|
"variant",
|
|
12583
12569
|
"viewportProps"
|
|
12584
|
-
]), [w, A] = useState$1(!1), P = useMantineTheme(), { classes:
|
|
12570
|
+
]), [w, A] = useState$1(!1), P = useMantineTheme(), { classes: R, cx: C } = useStyles$D({ scrollbarSize: u, offsetScrollbars: g, scrollbarHovered: w, hidden: m === "never" }, { name: "ScrollArea", classNames: l, styles: c, unstyled: x, variant: v });
|
|
12585
12571
|
return /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Root, {
|
|
12586
12572
|
type: m === "never" ? "always" : m,
|
|
12587
12573
|
scrollHideDelay: d,
|
|
@@ -12589,9 +12575,9 @@ const defaultProps$x = {
|
|
|
12589
12575
|
ref: n,
|
|
12590
12576
|
asChild: !0
|
|
12591
12577
|
}, /* @__PURE__ */ React__default.createElement(Box, __spreadValues$Z({
|
|
12592
|
-
className: R
|
|
12578
|
+
className: C(R.root, i)
|
|
12593
12579
|
}, E), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Viewport, __spreadProps$F(__spreadValues$Z({}, S), {
|
|
12594
|
-
className:
|
|
12580
|
+
className: R.viewport,
|
|
12595
12581
|
ref: h,
|
|
12596
12582
|
onScroll: typeof b == "function" ? ({ currentTarget: I }) => b({
|
|
12597
12583
|
x: I.scrollLeft,
|
|
@@ -12599,22 +12585,22 @@ const defaultProps$x = {
|
|
|
12599
12585
|
}) : void 0
|
|
12600
12586
|
}), a), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Scrollbar, {
|
|
12601
12587
|
orientation: "horizontal",
|
|
12602
|
-
className:
|
|
12588
|
+
className: R.scrollbar,
|
|
12603
12589
|
forceMount: !0,
|
|
12604
12590
|
onMouseEnter: () => A(!0),
|
|
12605
12591
|
onMouseLeave: () => A(!1)
|
|
12606
12592
|
}, /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Thumb, {
|
|
12607
|
-
className:
|
|
12593
|
+
className: R.thumb
|
|
12608
12594
|
})), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Scrollbar, {
|
|
12609
12595
|
orientation: "vertical",
|
|
12610
|
-
className:
|
|
12596
|
+
className: R.scrollbar,
|
|
12611
12597
|
forceMount: !0,
|
|
12612
12598
|
onMouseEnter: () => A(!0),
|
|
12613
12599
|
onMouseLeave: () => A(!1)
|
|
12614
12600
|
}, /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Thumb, {
|
|
12615
|
-
className:
|
|
12601
|
+
className: R.thumb
|
|
12616
12602
|
})), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Corner, {
|
|
12617
|
-
className:
|
|
12603
|
+
className: R.corner
|
|
12618
12604
|
})));
|
|
12619
12605
|
}), ScrollAreaAutosize = forwardRef$1((r, n) => {
|
|
12620
12606
|
const o = useComponentDefaultProps("ScrollAreaAutosize", defaultProps$x, r), {
|
|
@@ -12811,7 +12797,7 @@ const useHover = function(r, n) {
|
|
|
12811
12797
|
floating: b
|
|
12812
12798
|
},
|
|
12813
12799
|
refs: x
|
|
12814
|
-
} = r, v = useFloatingTree(), S = useFloatingParentNodeId(), E = useLatestRef(i), w = useLatestRef(a), A = React.useRef(), P = React.useRef(),
|
|
12800
|
+
} = r, v = useFloatingTree(), S = useFloatingParentNodeId(), E = useLatestRef(i), w = useLatestRef(a), A = React.useRef(), P = React.useRef(), R = React.useRef(), C = React.useRef(), I = React.useRef(!0), j = React.useRef(!1), k = React.useRef(() => {
|
|
12815
12801
|
}), O = React.useCallback(() => {
|
|
12816
12802
|
var D;
|
|
12817
12803
|
const W = (D = p.current.openEvent) == null ? void 0 : D.type;
|
|
@@ -12821,7 +12807,7 @@ const useHover = function(r, n) {
|
|
|
12821
12807
|
if (!o)
|
|
12822
12808
|
return;
|
|
12823
12809
|
function D() {
|
|
12824
|
-
clearTimeout(P.current), clearTimeout(
|
|
12810
|
+
clearTimeout(P.current), clearTimeout(C.current), I.current = !0;
|
|
12825
12811
|
}
|
|
12826
12812
|
return g.on("dismiss", D), () => {
|
|
12827
12813
|
g.off("dismiss", D);
|
|
@@ -12840,9 +12826,9 @@ const useHover = function(r, n) {
|
|
|
12840
12826
|
const T = React.useCallback(function(D) {
|
|
12841
12827
|
D === void 0 && (D = !0);
|
|
12842
12828
|
const W = getDelay(w.current, "close", A.current);
|
|
12843
|
-
W && !
|
|
12829
|
+
W && !R.current ? (clearTimeout(P.current), P.current = setTimeout(() => m(!1), W)) : D && (clearTimeout(P.current), m(!1));
|
|
12844
12830
|
}, [w, m]), M = React.useCallback(() => {
|
|
12845
|
-
k.current(),
|
|
12831
|
+
k.current(), R.current = void 0;
|
|
12846
12832
|
}, []), V = React.useCallback(() => {
|
|
12847
12833
|
if (j.current) {
|
|
12848
12834
|
const D = getDocument(x.floating.current).body;
|
|
@@ -12869,8 +12855,8 @@ const useHover = function(r, n) {
|
|
|
12869
12855
|
return;
|
|
12870
12856
|
k.current();
|
|
12871
12857
|
const q = getDocument(b);
|
|
12872
|
-
if (clearTimeout(
|
|
12873
|
-
d || clearTimeout(P.current),
|
|
12858
|
+
if (clearTimeout(C.current), E.current) {
|
|
12859
|
+
d || clearTimeout(P.current), R.current = E.current({
|
|
12874
12860
|
...r,
|
|
12875
12861
|
tree: v,
|
|
12876
12862
|
x: L.clientX,
|
|
@@ -12879,7 +12865,7 @@ const useHover = function(r, n) {
|
|
|
12879
12865
|
V(), M(), T();
|
|
12880
12866
|
}
|
|
12881
12867
|
});
|
|
12882
|
-
const G =
|
|
12868
|
+
const G = R.current;
|
|
12883
12869
|
q.addEventListener("mousemove", G), k.current = () => {
|
|
12884
12870
|
q.removeEventListener("mousemove", G);
|
|
12885
12871
|
};
|
|
@@ -12921,7 +12907,7 @@ const useHover = function(r, n) {
|
|
|
12921
12907
|
}, [o, d, S, b, h, v, E, p, O]), index(() => {
|
|
12922
12908
|
d || (A.current = void 0, M(), V());
|
|
12923
12909
|
}, [d, M, V]), React.useEffect(() => () => {
|
|
12924
|
-
M(), clearTimeout(P.current), clearTimeout(
|
|
12910
|
+
M(), clearTimeout(P.current), clearTimeout(C.current), V();
|
|
12925
12911
|
}, [o, M, V]), React.useMemo(() => {
|
|
12926
12912
|
if (!o)
|
|
12927
12913
|
return {};
|
|
@@ -12933,7 +12919,7 @@ const useHover = function(r, n) {
|
|
|
12933
12919
|
onPointerDown: D,
|
|
12934
12920
|
onPointerEnter: D,
|
|
12935
12921
|
onMouseMove() {
|
|
12936
|
-
d || c === 0 || (clearTimeout(
|
|
12922
|
+
d || c === 0 || (clearTimeout(C.current), C.current = setTimeout(() => {
|
|
12937
12923
|
I.current || m(!0);
|
|
12938
12924
|
}, c));
|
|
12939
12925
|
}
|
|
@@ -13136,7 +13122,7 @@ const bubbleHandlerKeys = {
|
|
|
13136
13122
|
ancestorScroll: S = !1,
|
|
13137
13123
|
bubbles: E = !0
|
|
13138
13124
|
} = n === void 0 ? {} : n;
|
|
13139
|
-
const w = useFloatingTree(), A = useFloatingParentNodeId() != null, P = useEvent(typeof h == "function" ? h : () => !1),
|
|
13125
|
+
const w = useFloatingTree(), A = useFloatingParentNodeId() != null, P = useEvent(typeof h == "function" ? h : () => !1), R = typeof h == "function" ? P : h, C = React.useRef(!1), {
|
|
13140
13126
|
escapeKeyBubbles: I,
|
|
13141
13127
|
outsidePressBubbles: j
|
|
13142
13128
|
} = normalizeBubblesProp(E);
|
|
@@ -13169,8 +13155,8 @@ const bubbleHandlerKeys = {
|
|
|
13169
13155
|
}
|
|
13170
13156
|
}
|
|
13171
13157
|
function O(D) {
|
|
13172
|
-
const W =
|
|
13173
|
-
if (
|
|
13158
|
+
const W = C.current;
|
|
13159
|
+
if (C.current = !1, W || typeof R == "function" && !R(D))
|
|
13174
13160
|
return;
|
|
13175
13161
|
const J = getTarget(D);
|
|
13176
13162
|
if (isHTMLElement(J) && d) {
|
|
@@ -13210,7 +13196,7 @@ const bubbleHandlerKeys = {
|
|
|
13210
13196
|
a(!1);
|
|
13211
13197
|
}
|
|
13212
13198
|
const M = getDocument(d);
|
|
13213
|
-
g && M.addEventListener("keydown", k),
|
|
13199
|
+
g && M.addEventListener("keydown", k), R && M.addEventListener(b, O);
|
|
13214
13200
|
let V = [];
|
|
13215
13201
|
return S && (isElement(u) && (V = getOverflowAncestors(u)), isElement(d) && (V = V.concat(getOverflowAncestors(d))), !isElement(c) && c && c.contextElement && (V = V.concat(getOverflowAncestors(c.contextElement)))), V = V.filter((D) => {
|
|
13216
13202
|
var W;
|
|
@@ -13220,13 +13206,13 @@ const bubbleHandlerKeys = {
|
|
|
13220
13206
|
passive: !0
|
|
13221
13207
|
});
|
|
13222
13208
|
}), () => {
|
|
13223
|
-
g && M.removeEventListener("keydown", k),
|
|
13209
|
+
g && M.removeEventListener("keydown", k), R && M.removeEventListener(b, O), V.forEach((D) => {
|
|
13224
13210
|
D.removeEventListener("scroll", T);
|
|
13225
13211
|
});
|
|
13226
13212
|
};
|
|
13227
|
-
}, [m, d, u, c, g,
|
|
13228
|
-
|
|
13229
|
-
}, [
|
|
13213
|
+
}, [m, d, u, c, g, R, b, i, w, l, o, a, S, p, I, j, A]), React.useEffect(() => {
|
|
13214
|
+
C.current = !1;
|
|
13215
|
+
}, [R, b]), React.useMemo(() => p ? {
|
|
13230
13216
|
reference: {
|
|
13231
13217
|
[bubbleHandlerKeys[v]]: () => {
|
|
13232
13218
|
x && (i.emit("dismiss", {
|
|
@@ -13239,7 +13225,7 @@ const bubbleHandlerKeys = {
|
|
|
13239
13225
|
},
|
|
13240
13226
|
floating: {
|
|
13241
13227
|
[captureHandlerKeys[b]]: () => {
|
|
13242
|
-
|
|
13228
|
+
C.current = !0;
|
|
13243
13229
|
}
|
|
13244
13230
|
}
|
|
13245
13231
|
} : {}, [p, i, x, b, v, a]);
|
|
@@ -13619,11 +13605,11 @@ function useTransition({
|
|
|
13619
13605
|
if (h(P), P === 0)
|
|
13620
13606
|
typeof w == "function" && w(), typeof A == "function" && A(), x(E ? "entered" : "exited");
|
|
13621
13607
|
else {
|
|
13622
|
-
const
|
|
13608
|
+
const R = window.setTimeout(() => {
|
|
13623
13609
|
typeof w == "function" && w(), x(E ? "entering" : "exiting");
|
|
13624
13610
|
}, 10);
|
|
13625
13611
|
v.current = window.setTimeout(() => {
|
|
13626
|
-
window.clearTimeout(
|
|
13612
|
+
window.clearTimeout(R), typeof A == "function" && A(), x(E ? "entered" : "exited");
|
|
13627
13613
|
}, P);
|
|
13628
13614
|
}
|
|
13629
13615
|
};
|
|
@@ -13911,8 +13897,8 @@ function Popover(r) {
|
|
|
13911
13897
|
withArrow: w,
|
|
13912
13898
|
arrowSize: A,
|
|
13913
13899
|
arrowOffset: P,
|
|
13914
|
-
arrowRadius:
|
|
13915
|
-
arrowPosition:
|
|
13900
|
+
arrowRadius: R,
|
|
13901
|
+
arrowPosition: C,
|
|
13916
13902
|
unstyled: I,
|
|
13917
13903
|
classNames: j,
|
|
13918
13904
|
styles: k,
|
|
@@ -14013,8 +13999,8 @@ function Popover(r) {
|
|
|
14013
13999
|
withArrow: w,
|
|
14014
14000
|
arrowSize: A,
|
|
14015
14001
|
arrowOffset: P,
|
|
14016
|
-
arrowRadius:
|
|
14017
|
-
arrowPosition:
|
|
14002
|
+
arrowRadius: R,
|
|
14003
|
+
arrowPosition: C,
|
|
14018
14004
|
placement: be.floating.placement,
|
|
14019
14005
|
trapFocus: W,
|
|
14020
14006
|
withinPortal: T,
|
|
@@ -14179,8 +14165,8 @@ function useInputProps(r, n, o) {
|
|
|
14179
14165
|
id: w,
|
|
14180
14166
|
size: A,
|
|
14181
14167
|
style: P,
|
|
14182
|
-
inputContainer:
|
|
14183
|
-
inputWrapperOrder:
|
|
14168
|
+
inputContainer: R,
|
|
14169
|
+
inputWrapperOrder: C,
|
|
14184
14170
|
withAsterisk: I,
|
|
14185
14171
|
variant: j
|
|
14186
14172
|
} = a, k = __objRest$A(a, [
|
|
@@ -14222,8 +14208,8 @@ function useInputProps(r, n, o) {
|
|
|
14222
14208
|
id: O,
|
|
14223
14209
|
size: A,
|
|
14224
14210
|
style: P,
|
|
14225
|
-
inputContainer:
|
|
14226
|
-
inputWrapperOrder:
|
|
14211
|
+
inputContainer: R,
|
|
14212
|
+
inputWrapperOrder: C,
|
|
14227
14213
|
withAsterisk: I,
|
|
14228
14214
|
variant: j
|
|
14229
14215
|
}, E);
|
|
@@ -14507,8 +14493,8 @@ const defaultProps$q = {
|
|
|
14507
14493
|
__staticSelector: w,
|
|
14508
14494
|
unstyled: A,
|
|
14509
14495
|
inputWrapperOrder: P,
|
|
14510
|
-
withAsterisk:
|
|
14511
|
-
variant:
|
|
14496
|
+
withAsterisk: R,
|
|
14497
|
+
variant: C
|
|
14512
14498
|
} = o, I = __objRest$w(o, [
|
|
14513
14499
|
"className",
|
|
14514
14500
|
"label",
|
|
@@ -14535,16 +14521,16 @@ const defaultProps$q = {
|
|
|
14535
14521
|
styles: v,
|
|
14536
14522
|
name: ["InputWrapper", w],
|
|
14537
14523
|
unstyled: A,
|
|
14538
|
-
variant:
|
|
14524
|
+
variant: C,
|
|
14539
14525
|
size: S
|
|
14540
14526
|
}), O = {
|
|
14541
14527
|
classNames: x,
|
|
14542
14528
|
styles: v,
|
|
14543
14529
|
unstyled: A,
|
|
14544
14530
|
size: S,
|
|
14545
|
-
variant:
|
|
14531
|
+
variant: C,
|
|
14546
14532
|
__staticSelector: w
|
|
14547
|
-
}, T = typeof
|
|
14533
|
+
}, T = typeof R == "boolean" ? R : c, M = u ? `${u}-error` : b == null ? void 0 : b.id, V = u ? `${u}-description` : h == null ? void 0 : h.id, W = `${!!d && typeof d != "boolean" ? M : ""} ${m ? V : ""}`, J = W.trim().length > 0 ? W.trim() : void 0, F = i && /* @__PURE__ */ React__default.createElement(InputLabel, __spreadValues$M(__spreadValues$M({
|
|
14548
14534
|
key: "label",
|
|
14549
14535
|
labelElement: p,
|
|
14550
14536
|
id: u ? `${u}-label` : void 0,
|
|
@@ -14800,8 +14786,8 @@ const defaultProps$o = {
|
|
|
14800
14786
|
styles: w,
|
|
14801
14787
|
__staticSelector: A,
|
|
14802
14788
|
multiline: P,
|
|
14803
|
-
sx:
|
|
14804
|
-
unstyled:
|
|
14789
|
+
sx: R,
|
|
14790
|
+
unstyled: C,
|
|
14805
14791
|
pointer: I
|
|
14806
14792
|
} = o, j = __objRest$u(o, [
|
|
14807
14793
|
"className",
|
|
@@ -14835,10 +14821,10 @@ const defaultProps$o = {
|
|
|
14835
14821
|
offsetBottom: k,
|
|
14836
14822
|
offsetTop: O,
|
|
14837
14823
|
pointer: I
|
|
14838
|
-
}, { classNames: E, styles: w, name: ["Input", A], unstyled:
|
|
14824
|
+
}, { classNames: E, styles: w, name: ["Input", A], unstyled: C, variant: u, size: v }), { systemStyles: D, rest: W } = extractSystemStyles(j);
|
|
14839
14825
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$J(__spreadValues$J({
|
|
14840
14826
|
className: V(M.wrapper, a),
|
|
14841
|
-
sx:
|
|
14827
|
+
sx: R,
|
|
14842
14828
|
style: m
|
|
14843
14829
|
}, D), S), d && /* @__PURE__ */ React__default.createElement("div", {
|
|
14844
14830
|
className: M.icon
|
|
@@ -15234,8 +15220,8 @@ const defaultProps$l = {
|
|
|
15234
15220
|
loaderProps: w,
|
|
15235
15221
|
gradient: A,
|
|
15236
15222
|
classNames: P,
|
|
15237
|
-
styles:
|
|
15238
|
-
unstyled:
|
|
15223
|
+
styles: R,
|
|
15224
|
+
unstyled: C
|
|
15239
15225
|
} = o, I = __objRest$r(o, [
|
|
15240
15226
|
"className",
|
|
15241
15227
|
"size",
|
|
@@ -15265,7 +15251,7 @@ const defaultProps$l = {
|
|
|
15265
15251
|
gradient: A,
|
|
15266
15252
|
withLeftIcon: !!m,
|
|
15267
15253
|
withRightIcon: !!p
|
|
15268
|
-
}, { name: "Button", unstyled:
|
|
15254
|
+
}, { name: "Button", unstyled: C, classNames: P, styles: R, variant: h, size: i }), T = O.fn.variant({ color: l, variant: h }), M = /* @__PURE__ */ React__default.createElement(Loader, __spreadValues$E({
|
|
15269
15255
|
color: T.color,
|
|
15270
15256
|
size: `calc(${getSize({ size: i, sizes: sizes$1 }).height} / 2)`
|
|
15271
15257
|
}, w));
|
|
@@ -15277,7 +15263,7 @@ const defaultProps$l = {
|
|
|
15277
15263
|
"data-disabled": u || void 0,
|
|
15278
15264
|
"data-loading": S || void 0,
|
|
15279
15265
|
ref: n,
|
|
15280
|
-
unstyled:
|
|
15266
|
+
unstyled: C
|
|
15281
15267
|
}, I), /* @__PURE__ */ React__default.createElement("div", {
|
|
15282
15268
|
className: j.inner
|
|
15283
15269
|
}, (m || S && E === "left") && /* @__PURE__ */ React__default.createElement("span", {
|
|
@@ -15685,14 +15671,14 @@ const defaultProps$g = {
|
|
|
15685
15671
|
"unstyled",
|
|
15686
15672
|
"processing",
|
|
15687
15673
|
"variant"
|
|
15688
|
-
]), { classes:
|
|
15674
|
+
]), { classes: R, cx: C } = useStyles$m({ position: i, offset: l, radius: u, inline: d, color: g, withBorder: m, zIndex: S, withLabel: !!b }, { name: "Indicator", classNames: x, styles: h, unstyled: E, variant: A, size: c });
|
|
15689
15675
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$w({
|
|
15690
15676
|
ref: n,
|
|
15691
|
-
className: R
|
|
15677
|
+
className: C(R.root, p)
|
|
15692
15678
|
}, P), !v && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
15693
|
-
className: R
|
|
15679
|
+
className: C(R.indicator, R.common)
|
|
15694
15680
|
}, b), w && /* @__PURE__ */ React__default.createElement("div", {
|
|
15695
|
-
className: R
|
|
15681
|
+
className: C(R.processing, R.common)
|
|
15696
15682
|
})), a);
|
|
15697
15683
|
});
|
|
15698
15684
|
Indicator.displayName = "@mantine/core/Indicator";
|
|
@@ -15931,7 +15917,7 @@ const defaultProps$d = {
|
|
|
15931
15917
|
"unstyled",
|
|
15932
15918
|
"variant",
|
|
15933
15919
|
"keepMounted"
|
|
15934
|
-
]), { classes: A, cx: P, theme:
|
|
15920
|
+
]), { classes: A, cx: P, theme: R } = useStyles$j(null, { name: "LoadingOverlay", unstyled: v, variant: S }), C = `calc(${p} + 1)`;
|
|
15935
15921
|
return /* @__PURE__ */ React__default.createElement(Transition, {
|
|
15936
15922
|
keepMounted: E,
|
|
15937
15923
|
duration: d,
|
|
@@ -15943,16 +15929,16 @@ const defaultProps$d = {
|
|
|
15943
15929
|
style: __spreadProps$m(__spreadValues$r(__spreadValues$r({}, I), g), { zIndex: p }),
|
|
15944
15930
|
ref: n
|
|
15945
15931
|
}, w), h ? /* @__PURE__ */ React__default.createElement("div", {
|
|
15946
|
-
style: { zIndex:
|
|
15932
|
+
style: { zIndex: C }
|
|
15947
15933
|
}, h) : /* @__PURE__ */ React__default.createElement(Loader, __spreadValues$r({
|
|
15948
|
-
style: { zIndex:
|
|
15934
|
+
style: { zIndex: C }
|
|
15949
15935
|
}, l)), /* @__PURE__ */ React__default.createElement(Overlay, {
|
|
15950
15936
|
opacity: c,
|
|
15951
15937
|
zIndex: p,
|
|
15952
15938
|
radius: b,
|
|
15953
15939
|
blur: x,
|
|
15954
15940
|
unstyled: v,
|
|
15955
|
-
color: u || (
|
|
15941
|
+
color: u || (R.colorScheme === "dark" ? R.colors.dark[5] : R.white)
|
|
15956
15942
|
})));
|
|
15957
15943
|
});
|
|
15958
15944
|
LoadingOverlay.displayName = "@mantine/core/LoadingOverlay";
|
|
@@ -16173,8 +16159,8 @@ const defaultProps$c = {
|
|
|
16173
16159
|
onChange: w,
|
|
16174
16160
|
disableRightSectionRotation: A,
|
|
16175
16161
|
childrenOffset: P,
|
|
16176
|
-
disabled:
|
|
16177
|
-
onClick:
|
|
16162
|
+
disabled: R,
|
|
16163
|
+
onClick: C
|
|
16178
16164
|
} = o, I = __objRest$g(o, [
|
|
16179
16165
|
"label",
|
|
16180
16166
|
"description",
|
|
@@ -16202,7 +16188,7 @@ const defaultProps$c = {
|
|
|
16202
16188
|
finalValue: !1,
|
|
16203
16189
|
onChange: w
|
|
16204
16190
|
}), M = !!v, V = (D) => {
|
|
16205
|
-
M ? (D.preventDefault(),
|
|
16191
|
+
M ? (D.preventDefault(), C == null || C(D), T(!O)) : C == null || C(D);
|
|
16206
16192
|
};
|
|
16207
16193
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(UnstyledButton, __spreadValues$m({
|
|
16208
16194
|
ref: n,
|
|
@@ -16211,8 +16197,8 @@ const defaultProps$c = {
|
|
|
16211
16197
|
onClick: V,
|
|
16212
16198
|
unstyled: p,
|
|
16213
16199
|
"data-expanded": O || void 0,
|
|
16214
|
-
"data-disabled":
|
|
16215
|
-
disabled:
|
|
16200
|
+
"data-disabled": R || void 0,
|
|
16201
|
+
disabled: R
|
|
16216
16202
|
}, I), l && /* @__PURE__ */ React__default.createElement("span", {
|
|
16217
16203
|
className: j.icon
|
|
16218
16204
|
}, l), /* @__PURE__ */ React__default.createElement("span", {
|
|
@@ -16406,8 +16392,8 @@ function TooltipFloating(r) {
|
|
|
16406
16392
|
width: w,
|
|
16407
16393
|
zIndex: A,
|
|
16408
16394
|
disabled: P,
|
|
16409
|
-
variant:
|
|
16410
|
-
} = o,
|
|
16395
|
+
variant: R
|
|
16396
|
+
} = o, C = __objRest$e(o, [
|
|
16411
16397
|
"children",
|
|
16412
16398
|
"refProp",
|
|
16413
16399
|
"withinPortal",
|
|
@@ -16430,7 +16416,7 @@ function TooltipFloating(r) {
|
|
|
16430
16416
|
]), { handleMouseMove: I, x: j, y: k, opened: O, boundaryRef: T, floating: M, setOpened: V } = useFloatingTooltip({
|
|
16431
16417
|
offset: v,
|
|
16432
16418
|
position: S
|
|
16433
|
-
}), { classes: D, cx: W } = useStyles$h({ radius: h, color: b, multiline: E, width: w }, { name: "TooltipFloating", classNames: m, styles: p, unstyled: g, variant:
|
|
16419
|
+
}), { classes: D, cx: W } = useStyles$h({ radius: h, color: b, multiline: E, width: w }, { name: "TooltipFloating", classNames: m, styles: p, unstyled: g, variant: R });
|
|
16434
16420
|
if (!isElement$1(a))
|
|
16435
16421
|
throw new Error(TOOLTIP_ERRORS.children);
|
|
16436
16422
|
const J = useMergedRef(T, a.ref), F = (q) => {
|
|
@@ -16442,7 +16428,7 @@ function TooltipFloating(r) {
|
|
|
16442
16428
|
};
|
|
16443
16429
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(OptionalPortal, __spreadProps$g(__spreadValues$j({}, c), {
|
|
16444
16430
|
withinPortal: l
|
|
16445
|
-
}), /* @__PURE__ */ React__default.createElement(Box, __spreadProps$g(__spreadValues$j({},
|
|
16431
|
+
}), /* @__PURE__ */ React__default.createElement(Box, __spreadProps$g(__spreadValues$j({}, C), {
|
|
16446
16432
|
ref: M,
|
|
16447
16433
|
className: W(D.tooltip, d),
|
|
16448
16434
|
style: __spreadProps$g(__spreadValues$j({}, u), {
|
|
@@ -16482,7 +16468,7 @@ function useTooltip(r) {
|
|
|
16482
16468
|
arrow({ element: r.arrowRef, padding: r.arrowOffset }),
|
|
16483
16469
|
...r.inline ? [inline()] : []
|
|
16484
16470
|
]
|
|
16485
|
-
}), { getReferenceProps:
|
|
16471
|
+
}), { getReferenceProps: R, getFloatingProps: C } = useInteractions([
|
|
16486
16472
|
useHover(v, {
|
|
16487
16473
|
enabled: r.events.hover,
|
|
16488
16474
|
delay: l ? u : { open: r.openDelay, close: r.closeDelay },
|
|
@@ -16508,8 +16494,8 @@ function useTooltip(r) {
|
|
|
16508
16494
|
arrowY: P,
|
|
16509
16495
|
reference: b,
|
|
16510
16496
|
floating: x,
|
|
16511
|
-
getFloatingProps:
|
|
16512
|
-
getReferenceProps:
|
|
16497
|
+
getFloatingProps: C,
|
|
16498
|
+
getReferenceProps: R,
|
|
16513
16499
|
isGroupPhase: i && d && d !== c,
|
|
16514
16500
|
opened: i,
|
|
16515
16501
|
placement: w
|
|
@@ -16565,8 +16551,8 @@ const defaultProps$9 = {
|
|
|
16565
16551
|
styles: w,
|
|
16566
16552
|
unstyled: A,
|
|
16567
16553
|
style: P,
|
|
16568
|
-
className:
|
|
16569
|
-
withArrow:
|
|
16554
|
+
className: R,
|
|
16555
|
+
withArrow: C,
|
|
16570
16556
|
arrowSize: I,
|
|
16571
16557
|
arrowOffset: j,
|
|
16572
16558
|
arrowRadius: k,
|
|
@@ -16631,7 +16617,7 @@ const defaultProps$9 = {
|
|
|
16631
16617
|
events: W,
|
|
16632
16618
|
arrowRef: a,
|
|
16633
16619
|
arrowOffset: j,
|
|
16634
|
-
offset: T + (
|
|
16620
|
+
offset: T + (C ? I / 2 : 0),
|
|
16635
16621
|
positionDependencies: [...L, l],
|
|
16636
16622
|
inline: z
|
|
16637
16623
|
});
|
|
@@ -16660,7 +16646,7 @@ const defaultProps$9 = {
|
|
|
16660
16646
|
ref: a,
|
|
16661
16647
|
arrowX: $.arrowX,
|
|
16662
16648
|
arrowY: $.arrowY,
|
|
16663
|
-
visible:
|
|
16649
|
+
visible: C,
|
|
16664
16650
|
position: $.placement,
|
|
16665
16651
|
arrowSize: I,
|
|
16666
16652
|
arrowOffset: j,
|
|
@@ -16676,7 +16662,7 @@ const defaultProps$9 = {
|
|
|
16676
16662
|
onPointerDown: r.onPointerDown,
|
|
16677
16663
|
onPointerEnter: r.onPointerEnter,
|
|
16678
16664
|
[u]: ae,
|
|
16679
|
-
className: ne(
|
|
16665
|
+
className: ne(R, l.props.className)
|
|
16680
16666
|
}, l.props))));
|
|
16681
16667
|
});
|
|
16682
16668
|
_Tooltip.Group = TooltipGroup;
|
|
@@ -16781,8 +16767,8 @@ const defaultProps$8 = {
|
|
|
16781
16767
|
styles: w,
|
|
16782
16768
|
filter: A,
|
|
16783
16769
|
maxDropdownHeight: P,
|
|
16784
|
-
searchable:
|
|
16785
|
-
clearable:
|
|
16770
|
+
searchable: R,
|
|
16771
|
+
clearable: C,
|
|
16786
16772
|
nothingFound: I,
|
|
16787
16773
|
limit: j,
|
|
16788
16774
|
disabled: k,
|
|
@@ -16862,12 +16848,12 @@ const defaultProps$8 = {
|
|
|
16862
16848
|
"readOnly",
|
|
16863
16849
|
"clearButtonProps",
|
|
16864
16850
|
"hoverOnSearchChange"
|
|
16865
|
-
]), { 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"),
|
|
16851
|
+
]), { 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: Ve, scrollableRef: nt } = useScrollIntoView({
|
|
16866
16852
|
duration: 0,
|
|
16867
16853
|
offset: 5,
|
|
16868
16854
|
cancelable: !1,
|
|
16869
16855
|
isList: !0
|
|
16870
|
-
}), Ye = re === void 0 ?
|
|
16856
|
+
}), Ye = re === void 0 ? C : re, Se = (H) => {
|
|
16871
16857
|
if (ge !== H) {
|
|
16872
16858
|
Ge(H);
|
|
16873
16859
|
const ie = H ? ee : G;
|
|
@@ -16875,27 +16861,27 @@ const defaultProps$8 = {
|
|
|
16875
16861
|
}
|
|
16876
16862
|
}, qe = D && typeof W == "function";
|
|
16877
16863
|
let We = null;
|
|
16878
|
-
const ot = c.map((H) => typeof H == "string" ? { label: H, value: H } : H), Ue = groupOptions({ data: ot }), [
|
|
16864
|
+
const ot = c.map((H) => typeof H == "string" ? { label: H, value: H } : H), Ue = groupOptions({ data: ot }), [Ce, Me, Xe] = useUncontrolled({
|
|
16879
16865
|
value: u,
|
|
16880
16866
|
defaultValue: d,
|
|
16881
16867
|
finalValue: null,
|
|
16882
16868
|
onChange: m
|
|
16883
|
-
}), Pe = Ue.find((H) => H.value ===
|
|
16869
|
+
}), Pe = Ue.find((H) => H.value === Ce), [Ie, at] = useUncontrolled({
|
|
16884
16870
|
value: T,
|
|
16885
16871
|
defaultValue: (Pe == null ? void 0 : Pe.label) || "",
|
|
16886
16872
|
finalValue: void 0,
|
|
16887
16873
|
onChange: O
|
|
16888
16874
|
}), Oe = (H) => {
|
|
16889
|
-
at(H),
|
|
16875
|
+
at(H), R && typeof O == "function" && O(H);
|
|
16890
16876
|
}, st = () => {
|
|
16891
16877
|
var H;
|
|
16892
16878
|
Z || (Me(null), Xe || Oe(""), (H = He.current) == null || H.focus());
|
|
16893
16879
|
};
|
|
16894
16880
|
useEffect$1(() => {
|
|
16895
|
-
const H = Ue.find((ie) => ie.value ===
|
|
16896
|
-
H ? Oe(H.label) : (!qe || !
|
|
16897
|
-
}, [
|
|
16898
|
-
Pe && (!
|
|
16881
|
+
const H = Ue.find((ie) => ie.value === Ce);
|
|
16882
|
+
H ? Oe(H.label) : (!qe || !Ce) && Oe("");
|
|
16883
|
+
}, [Ce]), useEffect$1(() => {
|
|
16884
|
+
Pe && (!R || !ge) && Oe(Pe.label);
|
|
16899
16885
|
}, [Pe == null ? void 0 : Pe.label]);
|
|
16900
16886
|
const je = (H) => {
|
|
16901
16887
|
if (!Z)
|
|
@@ -16911,12 +16897,12 @@ const defaultProps$8 = {
|
|
|
16911
16897
|
}
|
|
16912
16898
|
}, he = filterData({
|
|
16913
16899
|
data: Ue,
|
|
16914
|
-
searchable:
|
|
16900
|
+
searchable: R,
|
|
16915
16901
|
limit: j,
|
|
16916
16902
|
searchValue: Ie,
|
|
16917
16903
|
filter: A,
|
|
16918
16904
|
filterDataOnExactSearchMatch: ae,
|
|
16919
|
-
value:
|
|
16905
|
+
value: Ce
|
|
16920
16906
|
});
|
|
16921
16907
|
qe && J(Ie, he) && (We = W(Ie), he.push({ label: Ie, value: Ie, creatable: !0 }));
|
|
16922
16908
|
const Qe = (H, ie, ue) => {
|
|
@@ -16929,21 +16915,21 @@ const defaultProps$8 = {
|
|
|
16929
16915
|
useDidUpdate(() => {
|
|
16930
16916
|
ve(fe && Ie ? 0 : -1);
|
|
16931
16917
|
}, [Ie, fe]);
|
|
16932
|
-
const Le =
|
|
16918
|
+
const Le = Ce ? he.findIndex((H) => H.value === Ce) : 0, Ee = !Z && (he.length > 0 ? ge : ge && !!I), _e = () => {
|
|
16933
16919
|
ve((H) => {
|
|
16934
16920
|
var ie;
|
|
16935
16921
|
const ue = Qe(H, (de) => de - 1, (de) => de > 0);
|
|
16936
|
-
return Ve.current = Fe.current[(ie = he[ue]) == null ? void 0 : ie.value], Ee && De({ alignment:
|
|
16922
|
+
return Ve.current = Fe.current[(ie = he[ue]) == null ? void 0 : ie.value], Ee && De({ alignment: Re ? "start" : "end" }), ue;
|
|
16937
16923
|
});
|
|
16938
16924
|
}, $e = () => {
|
|
16939
16925
|
ve((H) => {
|
|
16940
16926
|
var ie;
|
|
16941
16927
|
const ue = Qe(H, (de) => de + 1, (de) => de < he.length - 1);
|
|
16942
|
-
return Ve.current = Fe.current[(ie = he[ue]) == null ? void 0 : ie.value], Ee && De({ alignment:
|
|
16928
|
+
return Ve.current = Fe.current[(ie = he[ue]) == null ? void 0 : ie.value], Ee && De({ alignment: Re ? "end" : "start" }), ue;
|
|
16943
16929
|
});
|
|
16944
16930
|
}, Ke = () => window.setTimeout(() => {
|
|
16945
16931
|
var H;
|
|
16946
|
-
Ve.current = Fe.current[(H = he[Le]) == null ? void 0 : H.value], De({ alignment:
|
|
16932
|
+
Ve.current = Fe.current[(H = he[Le]) == null ? void 0 : H.value], De({ alignment: Re ? "end" : "start" });
|
|
16947
16933
|
}, 50);
|
|
16948
16934
|
useDidUpdate(() => {
|
|
16949
16935
|
Ee && Ke();
|
|
@@ -16951,26 +16937,26 @@ const defaultProps$8 = {
|
|
|
16951
16937
|
const N = (H) => {
|
|
16952
16938
|
switch (typeof g == "function" && g(H), H.key) {
|
|
16953
16939
|
case "ArrowUp": {
|
|
16954
|
-
H.preventDefault(), ge ?
|
|
16940
|
+
H.preventDefault(), ge ? Re ? _e() : $e() : (ve(Le), Se(!0), Ke());
|
|
16955
16941
|
break;
|
|
16956
16942
|
}
|
|
16957
16943
|
case "ArrowDown": {
|
|
16958
|
-
H.preventDefault(), ge ?
|
|
16944
|
+
H.preventDefault(), ge ? Re ? $e() : _e() : (ve(Le), Se(!0), Ke());
|
|
16959
16945
|
break;
|
|
16960
16946
|
}
|
|
16961
16947
|
case "Home": {
|
|
16962
|
-
if (!
|
|
16948
|
+
if (!R) {
|
|
16963
16949
|
H.preventDefault(), ge || Se(!0);
|
|
16964
16950
|
const ie = he.findIndex((ue) => !ue.disabled);
|
|
16965
|
-
ve(ie), Ee && De({ alignment:
|
|
16951
|
+
ve(ie), Ee && De({ alignment: Re ? "end" : "start" });
|
|
16966
16952
|
}
|
|
16967
16953
|
break;
|
|
16968
16954
|
}
|
|
16969
16955
|
case "End": {
|
|
16970
|
-
if (!
|
|
16956
|
+
if (!R) {
|
|
16971
16957
|
H.preventDefault(), ge || Se(!0);
|
|
16972
16958
|
const ie = he.map((ue) => !!ue.disabled).lastIndexOf(!1);
|
|
16973
|
-
ve(ie), Ee && De({ alignment:
|
|
16959
|
+
ve(ie), Ee && De({ alignment: Re ? "end" : "start" });
|
|
16974
16960
|
}
|
|
16975
16961
|
break;
|
|
16976
16962
|
}
|
|
@@ -16979,22 +16965,22 @@ const defaultProps$8 = {
|
|
|
16979
16965
|
break;
|
|
16980
16966
|
}
|
|
16981
16967
|
case " ": {
|
|
16982
|
-
|
|
16968
|
+
R || (H.preventDefault(), he[ke] && ge ? je(he[ke]) : (Se(!0), ve(Le), Ke()));
|
|
16983
16969
|
break;
|
|
16984
16970
|
}
|
|
16985
16971
|
case "Enter":
|
|
16986
|
-
|
|
16972
|
+
R || H.preventDefault(), he[ke] && ge && (H.preventDefault(), je(he[ke]));
|
|
16987
16973
|
}
|
|
16988
16974
|
}, B = (H) => {
|
|
16989
16975
|
typeof h == "function" && h(H);
|
|
16990
|
-
const ie = Ue.find((ue) => ue.value ===
|
|
16976
|
+
const ie = Ue.find((ue) => ue.value === Ce);
|
|
16991
16977
|
F && he[ke] && ge && je(he[ke]), Oe((ie == null ? void 0 : ie.label) || ""), Se(!1);
|
|
16992
16978
|
}, Y = (H) => {
|
|
16993
|
-
typeof b == "function" && b(H),
|
|
16979
|
+
typeof b == "function" && b(H), R && Se(!0);
|
|
16994
16980
|
}, oe = (H) => {
|
|
16995
|
-
Z || (Oe(H.currentTarget.value),
|
|
16981
|
+
Z || (Oe(H.currentTarget.value), C && H.currentTarget.value === "" && Me(null), ve(-1), Se(!0));
|
|
16996
16982
|
}, ce = () => {
|
|
16997
|
-
Z || (Se(!ge),
|
|
16983
|
+
Z || (Se(!ge), Ce && !ge && ve(Le));
|
|
16998
16984
|
};
|
|
16999
16985
|
return /* @__PURE__ */ React__default.createElement(Input.Wrapper, __spreadProps$e(__spreadValues$h({}, i), {
|
|
17000
16986
|
__staticSelector: "Select"
|
|
@@ -17025,7 +17011,7 @@ const defaultProps$8 = {
|
|
|
17025
17011
|
}, /* @__PURE__ */ React__default.createElement("input", {
|
|
17026
17012
|
type: "hidden",
|
|
17027
17013
|
name: Q,
|
|
17028
|
-
value:
|
|
17014
|
+
value: Ce || "",
|
|
17029
17015
|
form: se,
|
|
17030
17016
|
disabled: k
|
|
17031
17017
|
}), /* @__PURE__ */ React__default.createElement(Input, __spreadValues$h(__spreadProps$e(__spreadValues$h(__spreadValues$h({
|
|
@@ -17044,12 +17030,12 @@ const defaultProps$8 = {
|
|
|
17044
17030
|
onMouseDown: ce,
|
|
17045
17031
|
onBlur: B,
|
|
17046
17032
|
onFocus: Y,
|
|
17047
|
-
readOnly: !
|
|
17033
|
+
readOnly: !R || Z,
|
|
17048
17034
|
disabled: k,
|
|
17049
17035
|
"data-mantine-stop-propagation": Ee,
|
|
17050
17036
|
name: null,
|
|
17051
17037
|
classNames: __spreadProps$e(__spreadValues$h({}, E), {
|
|
17052
|
-
input: Ze({ [be.input]: !
|
|
17038
|
+
input: Ze({ [be.input]: !R }, E == null ? void 0 : E.input)
|
|
17053
17039
|
})
|
|
17054
17040
|
}), getSelectRightSectionProps({
|
|
17055
17041
|
theme: Ne,
|
|
@@ -17057,7 +17043,7 @@ const defaultProps$8 = {
|
|
|
17057
17043
|
rightSectionWidth: V,
|
|
17058
17044
|
styles: w,
|
|
17059
17045
|
size: a.size,
|
|
17060
|
-
shouldClear:
|
|
17046
|
+
shouldClear: C && !!Pe,
|
|
17061
17047
|
onClear: st,
|
|
17062
17048
|
error: i.error,
|
|
17063
17049
|
clearButtonProps: le,
|
|
@@ -17077,7 +17063,7 @@ const defaultProps$8 = {
|
|
|
17077
17063
|
hovered: ke,
|
|
17078
17064
|
classNames: E,
|
|
17079
17065
|
styles: w,
|
|
17080
|
-
isItemSelected: (H) => H ===
|
|
17066
|
+
isItemSelected: (H) => H === Ce,
|
|
17081
17067
|
uuid: a.id,
|
|
17082
17068
|
__staticSelector: "Select",
|
|
17083
17069
|
onItemHover: ve,
|
|
@@ -17206,13 +17192,13 @@ const Thumb = forwardRef$1(({
|
|
|
17206
17192
|
onBlur: w,
|
|
17207
17193
|
showLabelOnHover: A,
|
|
17208
17194
|
isHovered: P,
|
|
17209
|
-
children:
|
|
17210
|
-
disabled:
|
|
17195
|
+
children: R = null,
|
|
17196
|
+
disabled: C,
|
|
17211
17197
|
unstyled: I,
|
|
17212
17198
|
thumbSize: j,
|
|
17213
17199
|
variant: k
|
|
17214
17200
|
}, O) => {
|
|
17215
|
-
const { classes: T, cx: M, theme: V } = useStyles$d({ color: d, disabled:
|
|
17201
|
+
const { classes: T, cx: M, theme: V } = useStyles$d({ color: d, disabled: C, thumbSize: j }, { name: "Slider", classNames: m, styles: p, unstyled: I, variant: k, size: g }), [D, W] = useState$1(!1), J = v || l || D || A && P;
|
|
17216
17202
|
return /* @__PURE__ */ React__default.createElement(Box, {
|
|
17217
17203
|
tabIndex: 0,
|
|
17218
17204
|
role: "slider",
|
|
@@ -17233,7 +17219,7 @@ const Thumb = forwardRef$1(({
|
|
|
17233
17219
|
onKeyDownCapture: u,
|
|
17234
17220
|
onClick: (F) => F.stopPropagation(),
|
|
17235
17221
|
style: { [V.dir === "rtl" ? "right" : "left"]: `${a}%` }
|
|
17236
|
-
},
|
|
17222
|
+
}, R, /* @__PURE__ */ React__default.createElement(Transition, {
|
|
17237
17223
|
mounted: i != null && J,
|
|
17238
17224
|
duration: b,
|
|
17239
17225
|
transition: h,
|
|
@@ -17559,8 +17545,8 @@ const defaultProps$7 = {
|
|
|
17559
17545
|
label: w,
|
|
17560
17546
|
labelTransition: A,
|
|
17561
17547
|
labelTransitionDuration: P,
|
|
17562
|
-
labelTransitionTimingFunction:
|
|
17563
|
-
labelAlwaysOn:
|
|
17548
|
+
labelTransitionTimingFunction: R,
|
|
17549
|
+
labelAlwaysOn: C,
|
|
17564
17550
|
thumbLabel: I,
|
|
17565
17551
|
showLabelOnHover: j,
|
|
17566
17552
|
thumbChildren: k,
|
|
@@ -17695,8 +17681,8 @@ const defaultProps$7 = {
|
|
|
17695
17681
|
ref: _,
|
|
17696
17682
|
labelTransition: A,
|
|
17697
17683
|
labelTransitionDuration: P,
|
|
17698
|
-
labelTransitionTimingFunction:
|
|
17699
|
-
labelAlwaysOn:
|
|
17684
|
+
labelTransitionTimingFunction: R,
|
|
17685
|
+
labelAlwaysOn: C,
|
|
17700
17686
|
classNames: a,
|
|
17701
17687
|
styles: i,
|
|
17702
17688
|
thumbLabel: I,
|
|
@@ -17980,8 +17966,8 @@ const defaultProps$3 = {}, Tab = forwardRef$1((r, n) => {
|
|
|
17980
17966
|
classNames: h.classNames,
|
|
17981
17967
|
styles: h.styles,
|
|
17982
17968
|
variant: h.variant
|
|
17983
|
-
}), w = a === h.value, A = h.getPanelId(a), P = h.mountedPanelIds.includes(a) ? A : void 0,
|
|
17984
|
-
h.onTabChange(h.allowTabDeactivation && a === h.value ? null : a), c == null || c(
|
|
17969
|
+
}), w = a === h.value, A = h.getPanelId(a), P = h.mountedPanelIds.includes(a) ? A : void 0, R = (C) => {
|
|
17970
|
+
h.onTabChange(h.allowTabDeactivation && a === h.value ? null : a), c == null || c(C);
|
|
17985
17971
|
};
|
|
17986
17972
|
return /* @__PURE__ */ React__default.createElement(UnstyledButton, __spreadProps$5(__spreadValues$6({}, g), {
|
|
17987
17973
|
unstyled: h.unstyled,
|
|
@@ -17994,7 +17980,7 @@ const defaultProps$3 = {}, Tab = forwardRef$1((r, n) => {
|
|
|
17994
17980
|
"aria-selected": w,
|
|
17995
17981
|
tabIndex: w || h.value === null ? 0 : -1,
|
|
17996
17982
|
"aria-controls": P,
|
|
17997
|
-
onClick:
|
|
17983
|
+
onClick: R,
|
|
17998
17984
|
onKeyDown: createScopedKeydownHandler({
|
|
17999
17985
|
siblingSelector: '[role="tab"]',
|
|
18000
17986
|
parentSelector: '[role="tablist"]',
|
|
@@ -18033,7 +18019,7 @@ function TabsProvider({
|
|
|
18033
18019
|
styles: S,
|
|
18034
18020
|
unstyled: E
|
|
18035
18021
|
}) {
|
|
18036
|
-
const w = useId$2(c), [A, P] = useState$1([]), [
|
|
18022
|
+
const w = useId$2(c), [A, P] = useState$1([]), [R, C] = useUncontrolled({
|
|
18037
18023
|
value: n,
|
|
18038
18024
|
defaultValue: r,
|
|
18039
18025
|
finalValue: null,
|
|
@@ -18042,14 +18028,14 @@ function TabsProvider({
|
|
|
18042
18028
|
return /* @__PURE__ */ React__default.createElement(TabsContextProvider, {
|
|
18043
18029
|
value: {
|
|
18044
18030
|
placement: b,
|
|
18045
|
-
value:
|
|
18031
|
+
value: R,
|
|
18046
18032
|
orientation: a,
|
|
18047
18033
|
id: w,
|
|
18048
18034
|
loop: l,
|
|
18049
18035
|
activateTabWithKeyboard: u,
|
|
18050
18036
|
getTabId: getSafeId(`${w}-tab`, TABS_ERRORS.value),
|
|
18051
18037
|
getPanelId: getSafeId(`${w}-panel`, TABS_ERRORS.value),
|
|
18052
|
-
onTabChange:
|
|
18038
|
+
onTabChange: C,
|
|
18053
18039
|
setMountedPanelIds: P,
|
|
18054
18040
|
mountedPanelIds: A,
|
|
18055
18041
|
allowTabDeactivation: d,
|
|
@@ -18115,8 +18101,8 @@ const defaultProps$2 = {
|
|
|
18115
18101
|
radius: w,
|
|
18116
18102
|
inverted: A,
|
|
18117
18103
|
keepMounted: P,
|
|
18118
|
-
placement:
|
|
18119
|
-
} = o,
|
|
18104
|
+
placement: R
|
|
18105
|
+
} = o, C = __objRest$4(o, [
|
|
18120
18106
|
"defaultValue",
|
|
18121
18107
|
"value",
|
|
18122
18108
|
"orientation",
|
|
@@ -18136,7 +18122,7 @@ const defaultProps$2 = {
|
|
|
18136
18122
|
"inverted",
|
|
18137
18123
|
"keepMounted",
|
|
18138
18124
|
"placement"
|
|
18139
|
-
]), { classes: I, cx: j } = useStyles$4({ orientation: l, color: b, radius: w, inverted: A, placement:
|
|
18125
|
+
]), { classes: I, cx: j } = useStyles$4({ orientation: l, color: b, radius: w, inverted: A, placement: R }, { unstyled: v, name: "Tabs", classNames: S, styles: E, variant: h });
|
|
18140
18126
|
return /* @__PURE__ */ React__default.createElement(TabsProvider, {
|
|
18141
18127
|
activateTabWithKeyboard: u,
|
|
18142
18128
|
defaultValue: a,
|
|
@@ -18151,11 +18137,11 @@ const defaultProps$2 = {
|
|
|
18151
18137
|
radius: w,
|
|
18152
18138
|
inverted: A,
|
|
18153
18139
|
keepMounted: P,
|
|
18154
|
-
placement:
|
|
18140
|
+
placement: R,
|
|
18155
18141
|
classNames: S,
|
|
18156
18142
|
styles: E,
|
|
18157
18143
|
unstyled: v
|
|
18158
|
-
}, /* @__PURE__ */ React__default.createElement(Box, __spreadProps$4(__spreadValues$5({},
|
|
18144
|
+
}, /* @__PURE__ */ React__default.createElement(Box, __spreadProps$4(__spreadValues$5({}, C), {
|
|
18159
18145
|
className: j(I.root, x),
|
|
18160
18146
|
id: p,
|
|
18161
18147
|
ref: n
|
|
@@ -18551,8 +18537,8 @@ function stringify(r, n, o, a = {}) {
|
|
|
18551
18537
|
const w = i ? " " : "", A = i ? `
|
|
18552
18538
|
` : "";
|
|
18553
18539
|
let P = `var x${w}=${w}${E};${A}`;
|
|
18554
|
-
for (const [
|
|
18555
|
-
const I = quote_1.stringifyPath(
|
|
18540
|
+
for (const [R, C] of d.entries()) {
|
|
18541
|
+
const I = quote_1.stringifyPath(R, v), j = quote_1.stringifyPath(C, v);
|
|
18556
18542
|
P += `x${I}${w}=${w}x${j};${A}`;
|
|
18557
18543
|
}
|
|
18558
18544
|
return `(function${w}()${w}{${A}${P}return x;${A}}())`;
|
|
@@ -18608,13 +18594,13 @@ function PanelWithForwardedRef({
|
|
|
18608
18594
|
getPanelStyle: w,
|
|
18609
18595
|
registerPanel: A,
|
|
18610
18596
|
resizePanel: P,
|
|
18611
|
-
unregisterPanel:
|
|
18612
|
-
} = x,
|
|
18597
|
+
unregisterPanel: R
|
|
18598
|
+
} = x, C = useRef({
|
|
18613
18599
|
onCollapse: m,
|
|
18614
18600
|
onResize: p
|
|
18615
18601
|
});
|
|
18616
18602
|
if (useEffect(() => {
|
|
18617
|
-
|
|
18603
|
+
C.current.onCollapse = m, C.current.onResize = p;
|
|
18618
18604
|
}), d < 0 || d > 100)
|
|
18619
18605
|
throw Error(`Panel minSize must be between 0 and 100, but was ${d}`);
|
|
18620
18606
|
if (u < 0 || u > 100)
|
|
@@ -18627,7 +18613,7 @@ function PanelWithForwardedRef({
|
|
|
18627
18613
|
const I = w(v, i), j = useRef({
|
|
18628
18614
|
size: parseSizeFromStyle(I)
|
|
18629
18615
|
}), k = useRef({
|
|
18630
|
-
callbacksRef:
|
|
18616
|
+
callbacksRef: C,
|
|
18631
18617
|
collapsedSize: o,
|
|
18632
18618
|
collapsible: a,
|
|
18633
18619
|
defaultSize: i,
|
|
@@ -18638,10 +18624,10 @@ function PanelWithForwardedRef({
|
|
|
18638
18624
|
order: g
|
|
18639
18625
|
});
|
|
18640
18626
|
return useIsomorphicLayoutEffect(() => {
|
|
18641
|
-
j.current.size = parseSizeFromStyle(I), k.current.callbacksRef =
|
|
18627
|
+
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;
|
|
18642
18628
|
}), useIsomorphicLayoutEffect(() => (A(v, k), () => {
|
|
18643
|
-
|
|
18644
|
-
}), [g, v, A,
|
|
18629
|
+
R(v);
|
|
18630
|
+
}), [g, v, A, R]), useImperativeHandle(l, () => ({
|
|
18645
18631
|
collapse: () => S(v),
|
|
18646
18632
|
expand: () => E(v),
|
|
18647
18633
|
getCollapsed() {
|
|
@@ -18816,12 +18802,12 @@ function useWindowSplitterPanelGroupBehavior({
|
|
|
18816
18802
|
if (S == null || E == null)
|
|
18817
18803
|
return () => {
|
|
18818
18804
|
};
|
|
18819
|
-
let w = 0, A = 100, P = 0,
|
|
18805
|
+
let w = 0, A = 100, P = 0, R = 0;
|
|
18820
18806
|
v.forEach((T) => {
|
|
18821
|
-
T.current.id === S ? (A = T.current.maxSize, w = T.current.minSize) : (P += T.current.minSize,
|
|
18807
|
+
T.current.id === S ? (A = T.current.maxSize, w = T.current.minSize) : (P += T.current.minSize, R += T.current.maxSize);
|
|
18822
18808
|
});
|
|
18823
|
-
const
|
|
18824
|
-
b.setAttribute("aria-valuemax", "" + Math.round(
|
|
18809
|
+
const C = Math.min(A, 100 - P), I = Math.max(w, (v.length - 1) * 100 - R), j = getFlexGrow(u, S, i);
|
|
18810
|
+
b.setAttribute("aria-valuemax", "" + Math.round(C)), b.setAttribute("aria-valuemin", "" + Math.round(I)), b.setAttribute("aria-valuenow", "" + Math.round(parseInt(j)));
|
|
18825
18811
|
const k = (T) => {
|
|
18826
18812
|
if (!T.defaultPrevented)
|
|
18827
18813
|
switch (T.key) {
|
|
@@ -18940,10 +18926,10 @@ function getMovement(r, n, o, a, i, l, c) {
|
|
|
18940
18926
|
E = -x;
|
|
18941
18927
|
break;
|
|
18942
18928
|
}
|
|
18943
|
-
const [w, A] = getResizeHandlePanelIds(n, o, a), P = E < 0 ? w : A,
|
|
18944
|
-
if (
|
|
18945
|
-
const I = p[
|
|
18946
|
-
(I === 0 || I.toPrecision(PRECISION) ===
|
|
18929
|
+
const [w, A] = getResizeHandlePanelIds(n, o, a), P = E < 0 ? w : A, R = a.findIndex((I) => I.current.id === P), C = a[R];
|
|
18930
|
+
if (C.current.collapsible) {
|
|
18931
|
+
const I = p[R];
|
|
18932
|
+
(I === 0 || I.toPrecision(PRECISION) === C.current.minSize.toPrecision(PRECISION)) && (E = E < 0 ? -C.current.minSize * x : C.current.minSize * x);
|
|
18947
18933
|
}
|
|
18948
18934
|
return E;
|
|
18949
18935
|
} else
|
|
@@ -19076,7 +19062,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19076
19062
|
useEffect(() => {
|
|
19077
19063
|
E.current.onLayout = u;
|
|
19078
19064
|
});
|
|
19079
|
-
const w = useRef({}), [A, P] = useState([]),
|
|
19065
|
+
const w = useRef({}), [A, P] = useState([]), R = useRef(/* @__PURE__ */ new Map()), C = useRef(0), I = useRef({
|
|
19080
19066
|
direction: a,
|
|
19081
19067
|
panels: x,
|
|
19082
19068
|
sizes: A
|
|
@@ -19104,7 +19090,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19104
19090
|
panels: x,
|
|
19105
19091
|
setSizes: P,
|
|
19106
19092
|
sizes: A,
|
|
19107
|
-
panelSizeBeforeCollapse:
|
|
19093
|
+
panelSizeBeforeCollapse: R
|
|
19108
19094
|
}), useEffect(() => {
|
|
19109
19095
|
const {
|
|
19110
19096
|
onLayout: F
|
|
@@ -19189,12 +19175,12 @@ function PanelGroupWithForwardedRef({
|
|
|
19189
19175
|
return;
|
|
19190
19176
|
const re = getPanelGroup(g).getBoundingClientRect(), $ = G === "horizontal";
|
|
19191
19177
|
document.dir === "rtl" && $ && (Q = -Q);
|
|
19192
|
-
const ae = $ ? re.width : re.height, se = Q / ae * 100, K = adjustByDelta(q, ee, te, _, se, z,
|
|
19193
|
-
if ((isMouseEvent(q) || isTouchEvent(q)) &&
|
|
19178
|
+
const ae = $ ? re.width : re.height, se = Q / ae * 100, K = adjustByDelta(q, ee, te, _, se, z, R.current, S.current), Z = !areEqual(z, K);
|
|
19179
|
+
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) {
|
|
19194
19180
|
const le = w.current;
|
|
19195
19181
|
P(K), callPanelCallbacks(U, K, le);
|
|
19196
19182
|
}
|
|
19197
|
-
|
|
19183
|
+
C.current = se;
|
|
19198
19184
|
}, [g]), T = useCallback((F) => {
|
|
19199
19185
|
v((L) => {
|
|
19200
19186
|
if (!L.has(F))
|
|
@@ -19221,11 +19207,11 @@ function PanelGroupWithForwardedRef({
|
|
|
19221
19207
|
const _ = q[te];
|
|
19222
19208
|
if (_ === ee)
|
|
19223
19209
|
return;
|
|
19224
|
-
|
|
19210
|
+
R.current.set(F, _);
|
|
19225
19211
|
const [Q, ne] = getBeforeAndAfterIds(F, U);
|
|
19226
19212
|
if (Q == null || ne == null)
|
|
19227
19213
|
return;
|
|
19228
|
-
const $ = te === U.length - 1 ? _ : ee - _, ae = adjustByDelta(null, L, Q, ne, $, q,
|
|
19214
|
+
const $ = te === U.length - 1 ? _ : ee - _, ae = adjustByDelta(null, L, Q, ne, $, q, R.current, null);
|
|
19229
19215
|
if (q !== ae) {
|
|
19230
19216
|
const se = w.current;
|
|
19231
19217
|
P(ae), callPanelCallbacks(U, ae, se);
|
|
@@ -19240,7 +19226,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19240
19226
|
const {
|
|
19241
19227
|
collapsedSize: ee,
|
|
19242
19228
|
minSize: z
|
|
19243
|
-
} = G.current, U =
|
|
19229
|
+
} = G.current, U = R.current.get(F) || z;
|
|
19244
19230
|
if (!U)
|
|
19245
19231
|
return;
|
|
19246
19232
|
const te = panelsMapToSortedArray(L), _ = te.indexOf(G);
|
|
@@ -19249,7 +19235,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19249
19235
|
const [ne, re] = getBeforeAndAfterIds(F, te);
|
|
19250
19236
|
if (ne == null || re == null)
|
|
19251
19237
|
return;
|
|
19252
|
-
const ae = _ === te.length - 1 ? ee - U : U, se = adjustByDelta(null, L, ne, re, ae, q,
|
|
19238
|
+
const ae = _ === te.length - 1 ? ee - U : U, se = adjustByDelta(null, L, ne, re, ae, q, R.current, null);
|
|
19253
19239
|
if (q !== se) {
|
|
19254
19240
|
const K = w.current;
|
|
19255
19241
|
P(se), callPanelCallbacks(te, se, K);
|
|
@@ -19276,7 +19262,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19276
19262
|
const [$, ae] = getBeforeAndAfterIds(F, Q);
|
|
19277
19263
|
if ($ == null || ae == null)
|
|
19278
19264
|
return;
|
|
19279
|
-
const K = ne === Q.length - 1 ? re - L : L - re, Z = adjustByDelta(null, q, $, ae, K, G,
|
|
19265
|
+
const K = ne === Q.length - 1 ? re - L : L - re, Z = adjustByDelta(null, q, $, ae, K, G, R.current, null);
|
|
19280
19266
|
if (G !== Z) {
|
|
19281
19267
|
const le = w.current;
|
|
19282
19268
|
P(Z), callPanelCallbacks(Q, Z, le);
|
|
@@ -19358,7 +19344,7 @@ function PanelResizeHandle$1({
|
|
|
19358
19344
|
registerResizeHandle: b,
|
|
19359
19345
|
startDragging: x,
|
|
19360
19346
|
stopDragging: v
|
|
19361
|
-
} = m, S = useUniqueId(a), E = p === S, [w, A] = useState(!1), [P,
|
|
19347
|
+
} = m, S = useUniqueId(a), E = p === S, [w, A] = useState(!1), [P, R] = useState(null), C = useCallback(() => {
|
|
19362
19348
|
u.current.blur(), v();
|
|
19363
19349
|
const {
|
|
19364
19350
|
onDragging: k
|
|
@@ -19367,10 +19353,10 @@ function PanelResizeHandle$1({
|
|
|
19367
19353
|
}, [v]);
|
|
19368
19354
|
useEffect(() => {
|
|
19369
19355
|
if (o)
|
|
19370
|
-
|
|
19356
|
+
R(null);
|
|
19371
19357
|
else {
|
|
19372
19358
|
const j = b(S);
|
|
19373
|
-
|
|
19359
|
+
R(() => j);
|
|
19374
19360
|
}
|
|
19375
19361
|
}, [o, S, b]), useEffect(() => {
|
|
19376
19362
|
if (o || P == null || !E)
|
|
@@ -19380,10 +19366,10 @@ function PanelResizeHandle$1({
|
|
|
19380
19366
|
}, k = (M) => {
|
|
19381
19367
|
P(M);
|
|
19382
19368
|
}, T = u.current.ownerDocument;
|
|
19383
|
-
return T.body.addEventListener("contextmenu",
|
|
19384
|
-
T.body.removeEventListener("contextmenu",
|
|
19369
|
+
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), () => {
|
|
19370
|
+
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);
|
|
19385
19371
|
};
|
|
19386
|
-
}, [g, o, E, P,
|
|
19372
|
+
}, [g, o, E, P, C]), useWindowSplitterResizeHandlerBehavior({
|
|
19387
19373
|
disabled: o,
|
|
19388
19374
|
handleId: S,
|
|
19389
19375
|
resizeHandler: P
|
|
@@ -19410,9 +19396,9 @@ function PanelResizeHandle$1({
|
|
|
19410
19396
|
} = d.current;
|
|
19411
19397
|
k && k(!0);
|
|
19412
19398
|
},
|
|
19413
|
-
onMouseUp:
|
|
19414
|
-
onTouchCancel:
|
|
19415
|
-
onTouchEnd:
|
|
19399
|
+
onMouseUp: C,
|
|
19400
|
+
onTouchCancel: C,
|
|
19401
|
+
onTouchEnd: C,
|
|
19416
19402
|
onTouchStart: (j) => {
|
|
19417
19403
|
x(S, j.nativeEvent);
|
|
19418
19404
|
const {
|
|
@@ -19618,17 +19604,17 @@ function JSONNestedNode(r) {
|
|
|
19618
19604
|
...r,
|
|
19619
19605
|
circularCache: n,
|
|
19620
19606
|
level: g + 1
|
|
19621
|
-
}) : null, P = /* @__PURE__ */ React__default.createElement("span", v("nestedNodeItemType", S), b),
|
|
19622
|
-
return u ? /* @__PURE__ */ React__default.createElement("li", v("rootNode", ...
|
|
19607
|
+
}) : null, P = /* @__PURE__ */ React__default.createElement("span", v("nestedNodeItemType", S), b), R = c(h, i, P, a(i, o), m), C = [m, h, S, l];
|
|
19608
|
+
return u ? /* @__PURE__ */ React__default.createElement("li", v("rootNode", ...C), /* @__PURE__ */ React__default.createElement("ul", v("rootNodeChildren", ...C), A)) : /* @__PURE__ */ React__default.createElement("li", v("nestedNode", ...C), l && /* @__PURE__ */ React__default.createElement(JSONArrow, {
|
|
19623
19609
|
styling: v,
|
|
19624
19610
|
nodeType: h,
|
|
19625
19611
|
expanded: S,
|
|
19626
19612
|
onClick: w
|
|
19627
|
-
}), /* @__PURE__ */ React__default.createElement("label", _extends$1({}, v(["label", "nestedNodeLabel"], ...
|
|
19613
|
+
}), /* @__PURE__ */ React__default.createElement("label", _extends$1({}, v(["label", "nestedNodeLabel"], ...C), {
|
|
19628
19614
|
onClick: w
|
|
19629
|
-
}), p(...
|
|
19615
|
+
}), p(...C)), /* @__PURE__ */ React__default.createElement("span", _extends$1({}, v("nestedNodeItemString", ...C), {
|
|
19630
19616
|
onClick: w
|
|
19631
|
-
}),
|
|
19617
|
+
}), R), /* @__PURE__ */ React__default.createElement("ul", v("nestedNodeChildren", ...C), A));
|
|
19632
19618
|
}
|
|
19633
19619
|
function createItemString$2(r) {
|
|
19634
19620
|
const n = Object.getOwnPropertyNames(r).length;
|
|
@@ -21810,9 +21796,9 @@ function createHybrid(r, n, o, a, i, l, c, u, d, m) {
|
|
|
21810
21796
|
for (var E = arguments.length, w = Array(E), A = E; A--; )
|
|
21811
21797
|
w[A] = arguments[A];
|
|
21812
21798
|
if (b)
|
|
21813
|
-
var P = getHolder(S),
|
|
21814
|
-
if (a && (w = composeArgs(w, a, i, b)), l && (w = composeArgsRight(w, l, c, b)), E -=
|
|
21815
|
-
var
|
|
21799
|
+
var P = getHolder(S), R = countHolders(w, P);
|
|
21800
|
+
if (a && (w = composeArgs(w, a, i, b)), l && (w = composeArgsRight(w, l, c, b)), E -= R, b && E < m) {
|
|
21801
|
+
var C = replaceHolders(w, P);
|
|
21816
21802
|
return createRecurry(
|
|
21817
21803
|
r,
|
|
21818
21804
|
n,
|
|
@@ -21820,7 +21806,7 @@ function createHybrid(r, n, o, a, i, l, c, u, d, m) {
|
|
|
21820
21806
|
S.placeholder,
|
|
21821
21807
|
o,
|
|
21822
21808
|
w,
|
|
21823
|
-
|
|
21809
|
+
C,
|
|
21824
21810
|
u,
|
|
21825
21811
|
d,
|
|
21826
21812
|
m - E
|
|
@@ -22690,8 +22676,8 @@ var Prism$1 = function() {
|
|
|
22690
22676
|
b.hasOwnProperty(E) || (S[E] = v[E]);
|
|
22691
22677
|
}
|
|
22692
22678
|
var A = x[g];
|
|
22693
|
-
return x[g] = S, a.languages.DFS(a.languages, function(P,
|
|
22694
|
-
|
|
22679
|
+
return x[g] = S, a.languages.DFS(a.languages, function(P, R) {
|
|
22680
|
+
R === A && P != g && (this[P] = S);
|
|
22695
22681
|
}), S;
|
|
22696
22682
|
},
|
|
22697
22683
|
// Traverse a language definition with Depth First Search
|
|
@@ -22853,7 +22839,7 @@ var Prism$1 = function() {
|
|
|
22853
22839
|
for (var A = 0; A < w.length; ++A) {
|
|
22854
22840
|
if (S && S.cause == E + "," + A)
|
|
22855
22841
|
return;
|
|
22856
|
-
var P = w[A],
|
|
22842
|
+
var P = w[A], R = P.inside, C = !!P.lookbehind, I = !!P.greedy, j = P.alias;
|
|
22857
22843
|
if (I && !P.pattern.global) {
|
|
22858
22844
|
var k = P.pattern.toString().match(/[imsuy]*$/)[0];
|
|
22859
22845
|
P.pattern = RegExp(P.pattern.source, k + "g");
|
|
@@ -22865,7 +22851,7 @@ var Prism$1 = function() {
|
|
|
22865
22851
|
if (!(V instanceof i)) {
|
|
22866
22852
|
var D = 1, W;
|
|
22867
22853
|
if (I) {
|
|
22868
|
-
if (W = l(O, M, g,
|
|
22854
|
+
if (W = l(O, M, g, C), !W || W.index >= g.length)
|
|
22869
22855
|
break;
|
|
22870
22856
|
var q = W.index, J = W.index + W[0].length, F = M;
|
|
22871
22857
|
for (F += T.value.length; q >= F; )
|
|
@@ -22875,13 +22861,13 @@ var Prism$1 = function() {
|
|
|
22875
22861
|
for (var L = T; L !== h.tail && (F < J || typeof L.value == "string"); L = L.next)
|
|
22876
22862
|
D++, F += L.value.length;
|
|
22877
22863
|
D--, V = g.slice(M, F), W.index -= M;
|
|
22878
|
-
} else if (W = l(O, 0, V,
|
|
22864
|
+
} else if (W = l(O, 0, V, C), !W)
|
|
22879
22865
|
continue;
|
|
22880
22866
|
var q = W.index, G = W[0], ee = V.slice(0, q), z = V.slice(q + G.length), U = M + V.length;
|
|
22881
22867
|
S && U > S.reach && (S.reach = U);
|
|
22882
22868
|
var te = T.prev;
|
|
22883
22869
|
ee && (te = d(h, te, ee), M += ee.length), m(h, te, D);
|
|
22884
|
-
var _ = new i(E,
|
|
22870
|
+
var _ = new i(E, R ? a.tokenize(G, R) : G, j, G);
|
|
22885
22871
|
if (T = d(h, te, _), z && d(h, T, z), D > 1) {
|
|
22886
22872
|
var Q = {
|
|
22887
22873
|
cause: E + "," + A,
|
|
@@ -24371,15 +24357,15 @@ prism.languages.sql = {
|
|
|
24371
24357
|
for (var j = I.content, k; b.indexOf(k = u(E++, v)) !== -1; )
|
|
24372
24358
|
;
|
|
24373
24359
|
return w[k] = j, k;
|
|
24374
|
-
}).join(""), P = d(A, x, v),
|
|
24360
|
+
}).join(""), P = d(A, x, v), R = Object.keys(w);
|
|
24375
24361
|
E = 0;
|
|
24376
|
-
function
|
|
24362
|
+
function C(I) {
|
|
24377
24363
|
for (var j = 0; j < I.length; j++) {
|
|
24378
|
-
if (E >=
|
|
24364
|
+
if (E >= R.length)
|
|
24379
24365
|
return;
|
|
24380
24366
|
var k = I[j];
|
|
24381
24367
|
if (typeof k == "string" || typeof k.content == "string") {
|
|
24382
|
-
var O =
|
|
24368
|
+
var O = R[E], T = typeof k == "string" ? k : (
|
|
24383
24369
|
/** @type {string} */
|
|
24384
24370
|
k.content
|
|
24385
24371
|
), M = T.indexOf(O);
|
|
@@ -24388,17 +24374,17 @@ prism.languages.sql = {
|
|
|
24388
24374
|
var V = T.substring(0, M), D = m(w[O]), W = T.substring(M + O.length), J = [];
|
|
24389
24375
|
if (V && J.push(V), J.push(D), W) {
|
|
24390
24376
|
var F = [W];
|
|
24391
|
-
|
|
24377
|
+
C(F), J.push.apply(J, F);
|
|
24392
24378
|
}
|
|
24393
24379
|
typeof k == "string" ? (I.splice.apply(I, [j, 1].concat(J)), j += J.length - 1) : k.content = J;
|
|
24394
24380
|
}
|
|
24395
24381
|
} else {
|
|
24396
24382
|
var L = k.content;
|
|
24397
|
-
Array.isArray(L) ?
|
|
24383
|
+
Array.isArray(L) ? C(L) : C([L]);
|
|
24398
24384
|
}
|
|
24399
24385
|
}
|
|
24400
24386
|
}
|
|
24401
|
-
return
|
|
24387
|
+
return C(P), new r.Token(v, P, "language-" + v, b);
|
|
24402
24388
|
}
|
|
24403
24389
|
var g = {
|
|
24404
24390
|
javascript: !0,
|
|
@@ -24423,10 +24409,10 @@ prism.languages.sql = {
|
|
|
24423
24409
|
if (w.type === "template-string") {
|
|
24424
24410
|
var P = A[1];
|
|
24425
24411
|
if (A.length === 3 && typeof P != "string" && P.type === "embedded-code") {
|
|
24426
|
-
var
|
|
24412
|
+
var R = h(P), C = P.alias, I = Array.isArray(C) ? C[0] : C, j = r.languages[I];
|
|
24427
24413
|
if (!j)
|
|
24428
24414
|
continue;
|
|
24429
|
-
A[1] = p(
|
|
24415
|
+
A[1] = p(R, j, I);
|
|
24430
24416
|
}
|
|
24431
24417
|
} else
|
|
24432
24418
|
x(A);
|
|
@@ -25894,11 +25880,11 @@ const prismDefaultProps = {
|
|
|
25894
25880
|
"radius",
|
|
25895
25881
|
"getPrismTheme",
|
|
25896
25882
|
"variant"
|
|
25897
|
-
]),
|
|
25883
|
+
]), R = v && typeof i == "string" ? i.trim() : i, C = R.split(`
|
|
25898
25884
|
`).length.toString().length, I = useMantineTheme(), j = useClipboard(), k = x || I.colorScheme, { classes: O, cx: T } = useStyles$2({
|
|
25899
25885
|
colorScheme: k,
|
|
25900
25886
|
native: b !== ScrollArea,
|
|
25901
|
-
maxLineSize:
|
|
25887
|
+
maxLineSize: C,
|
|
25902
25888
|
radius: E
|
|
25903
25889
|
}, { name: "Prism", classNames: u, styles: d, unstyled: S, variant: A });
|
|
25904
25890
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadProps$2(__spreadValues$2({
|
|
@@ -25917,13 +25903,13 @@ const prismDefaultProps = {
|
|
|
25917
25903
|
}, /* @__PURE__ */ React__default.createElement(ActionIcon, {
|
|
25918
25904
|
className: O.copy,
|
|
25919
25905
|
"aria-label": j.copied ? p : m,
|
|
25920
|
-
onClick: () => j.copy(
|
|
25906
|
+
onClick: () => j.copy(R),
|
|
25921
25907
|
unstyled: S
|
|
25922
25908
|
}, /* @__PURE__ */ React__default.createElement(CopyIcon, {
|
|
25923
25909
|
copied: j.copied
|
|
25924
25910
|
}))), /* @__PURE__ */ React__default.createElement(Highlight$1, __spreadProps$2(__spreadValues$2({}, defaultProps), {
|
|
25925
25911
|
theme: w(I, k),
|
|
25926
|
-
code:
|
|
25912
|
+
code: R,
|
|
25927
25913
|
language: l
|
|
25928
25914
|
}), ({
|
|
25929
25915
|
className: M,
|
|
@@ -26088,90 +26074,6 @@ PrismExport.Tabs = PrismTabs;
|
|
|
26088
26074
|
PrismExport.Tab = Tabs.Tab;
|
|
26089
26075
|
PrismExport.TabsList = Tabs.List;
|
|
26090
26076
|
PrismExport.Panel = PrismPanel;
|
|
26091
|
-
const ErrorBoundaryContext = createContext$1(null), initialState = {
|
|
26092
|
-
didCatch: !1,
|
|
26093
|
-
error: null
|
|
26094
|
-
};
|
|
26095
|
-
let ErrorBoundary$1 = class extends Component {
|
|
26096
|
-
constructor(n) {
|
|
26097
|
-
super(n), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = initialState;
|
|
26098
|
-
}
|
|
26099
|
-
static getDerivedStateFromError(n) {
|
|
26100
|
-
return {
|
|
26101
|
-
didCatch: !0,
|
|
26102
|
-
error: n
|
|
26103
|
-
};
|
|
26104
|
-
}
|
|
26105
|
-
resetErrorBoundary() {
|
|
26106
|
-
const {
|
|
26107
|
-
error: n
|
|
26108
|
-
} = this.state;
|
|
26109
|
-
if (n !== null) {
|
|
26110
|
-
for (var o, a, i = arguments.length, l = new Array(i), c = 0; c < i; c++)
|
|
26111
|
-
l[c] = arguments[c];
|
|
26112
|
-
(o = (a = this.props).onReset) === null || o === void 0 || o.call(a, {
|
|
26113
|
-
args: l,
|
|
26114
|
-
reason: "imperative-api"
|
|
26115
|
-
}), this.setState(initialState);
|
|
26116
|
-
}
|
|
26117
|
-
}
|
|
26118
|
-
componentDidCatch(n, o) {
|
|
26119
|
-
var a, i;
|
|
26120
|
-
(a = (i = this.props).onError) === null || a === void 0 || a.call(i, n, o);
|
|
26121
|
-
}
|
|
26122
|
-
componentDidUpdate(n, o) {
|
|
26123
|
-
const {
|
|
26124
|
-
didCatch: a
|
|
26125
|
-
} = this.state, {
|
|
26126
|
-
resetKeys: i
|
|
26127
|
-
} = this.props;
|
|
26128
|
-
if (a && o.error !== null && hasArrayChanged(n.resetKeys, i)) {
|
|
26129
|
-
var l, c;
|
|
26130
|
-
(l = (c = this.props).onReset) === null || l === void 0 || l.call(c, {
|
|
26131
|
-
next: i,
|
|
26132
|
-
prev: n.resetKeys,
|
|
26133
|
-
reason: "keys"
|
|
26134
|
-
}), this.setState(initialState);
|
|
26135
|
-
}
|
|
26136
|
-
}
|
|
26137
|
-
render() {
|
|
26138
|
-
const {
|
|
26139
|
-
children: n,
|
|
26140
|
-
fallbackRender: o,
|
|
26141
|
-
FallbackComponent: a,
|
|
26142
|
-
fallback: i
|
|
26143
|
-
} = this.props, {
|
|
26144
|
-
didCatch: l,
|
|
26145
|
-
error: c
|
|
26146
|
-
} = this.state;
|
|
26147
|
-
let u = n;
|
|
26148
|
-
if (l) {
|
|
26149
|
-
const d = {
|
|
26150
|
-
error: c,
|
|
26151
|
-
resetErrorBoundary: this.resetErrorBoundary
|
|
26152
|
-
};
|
|
26153
|
-
if (isValidElement(i))
|
|
26154
|
-
u = i;
|
|
26155
|
-
else if (typeof o == "function")
|
|
26156
|
-
u = o(d);
|
|
26157
|
-
else if (a)
|
|
26158
|
-
u = createElement$1(a, d);
|
|
26159
|
-
else
|
|
26160
|
-
throw c;
|
|
26161
|
-
}
|
|
26162
|
-
return createElement$1(ErrorBoundaryContext.Provider, {
|
|
26163
|
-
value: {
|
|
26164
|
-
didCatch: l,
|
|
26165
|
-
error: c,
|
|
26166
|
-
resetErrorBoundary: this.resetErrorBoundary
|
|
26167
|
-
}
|
|
26168
|
-
}, u);
|
|
26169
|
-
}
|
|
26170
|
-
};
|
|
26171
|
-
function hasArrayChanged() {
|
|
26172
|
-
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
26173
|
-
return r.length !== n.length || r.some((o, a) => !Object.is(o, n[a]));
|
|
26174
|
-
}
|
|
26175
26077
|
var diffMatchPatch = { exports: {} };
|
|
26176
26078
|
(function(r) {
|
|
26177
26079
|
var n = function() {
|
|
@@ -26256,10 +26158,10 @@ var diffMatchPatch = { exports: {} };
|
|
|
26256
26158
|
for (var d = l.length, m = c.length, p = Math.ceil((d + m) / 2), g = p, h = 2 * p, b = new Array(h), x = new Array(h), v = 0; v < h; v++)
|
|
26257
26159
|
b[v] = -1, x[v] = -1;
|
|
26258
26160
|
b[g + 1] = 0, x[g + 1] = 0;
|
|
26259
|
-
for (var S = d - m, E = S % 2 != 0, w = 0, A = 0, P = 0,
|
|
26260
|
-
for (var I = -
|
|
26161
|
+
for (var S = d - m, E = S % 2 != 0, w = 0, A = 0, P = 0, R = 0, C = 0; C < p && !((/* @__PURE__ */ new Date()).getTime() > u); C++) {
|
|
26162
|
+
for (var I = -C + w; I <= C - A; I += 2) {
|
|
26261
26163
|
var j = g + I, k;
|
|
26262
|
-
I == -
|
|
26164
|
+
I == -C || I != C && b[j - 1] < b[j + 1] ? k = b[j + 1] : k = b[j - 1] + 1;
|
|
26263
26165
|
for (var O = k - I; k < d && O < m && l.charAt(k) == c.charAt(O); )
|
|
26264
26166
|
k++, O++;
|
|
26265
26167
|
if (b[j] = k, k > d)
|
|
@@ -26275,13 +26177,13 @@ var diffMatchPatch = { exports: {} };
|
|
|
26275
26177
|
}
|
|
26276
26178
|
}
|
|
26277
26179
|
}
|
|
26278
|
-
for (var V = -
|
|
26180
|
+
for (var V = -C + P; V <= C - R; V += 2) {
|
|
26279
26181
|
var T = g + V, M;
|
|
26280
|
-
V == -
|
|
26182
|
+
V == -C || V != C && x[T - 1] < x[T + 1] ? M = x[T + 1] : M = x[T - 1] + 1;
|
|
26281
26183
|
for (var D = M - V; M < d && D < m && l.charAt(d - M - 1) == c.charAt(m - D - 1); )
|
|
26282
26184
|
M++, D++;
|
|
26283
26185
|
if (x[T] = M, M > d)
|
|
26284
|
-
|
|
26186
|
+
R += 2;
|
|
26285
26187
|
else if (D > m)
|
|
26286
26188
|
P += 2;
|
|
26287
26189
|
else if (!E) {
|
|
@@ -26356,16 +26258,16 @@ var diffMatchPatch = { exports: {} };
|
|
|
26356
26258
|
if (u.length < 4 || d.length * 2 < u.length)
|
|
26357
26259
|
return null;
|
|
26358
26260
|
var m = this;
|
|
26359
|
-
function p(A, P,
|
|
26360
|
-
for (var
|
|
26261
|
+
function p(A, P, R) {
|
|
26262
|
+
for (var C = A.substring(R, R + Math.floor(A.length / 4)), I = -1, j = "", k, O, T, M; (I = P.indexOf(C, I + 1)) != -1; ) {
|
|
26361
26263
|
var V = m.diff_commonPrefix(
|
|
26362
|
-
A.substring(
|
|
26264
|
+
A.substring(R),
|
|
26363
26265
|
P.substring(I)
|
|
26364
26266
|
), D = m.diff_commonSuffix(
|
|
26365
|
-
A.substring(0,
|
|
26267
|
+
A.substring(0, R),
|
|
26366
26268
|
P.substring(0, I)
|
|
26367
26269
|
);
|
|
26368
|
-
j.length < D + V && (j = P.substring(I - D, I) + P.substring(I, I + V), k = A.substring(0,
|
|
26270
|
+
j.length < D + V && (j = P.substring(I - D, I) + P.substring(I, I + V), k = A.substring(0, R - D), O = A.substring(R + V), T = P.substring(0, I - D), M = P.substring(I + V));
|
|
26369
26271
|
}
|
|
26370
26272
|
return j.length * 2 >= A.length ? [
|
|
26371
26273
|
k,
|
|
@@ -26418,8 +26320,8 @@ var diffMatchPatch = { exports: {} };
|
|
|
26418
26320
|
function c(w, A) {
|
|
26419
26321
|
if (!w || !A)
|
|
26420
26322
|
return 6;
|
|
26421
|
-
var P = w.charAt(w.length - 1),
|
|
26422
|
-
return M || V ? 5 : O || T ? 4 :
|
|
26323
|
+
var P = w.charAt(w.length - 1), R = A.charAt(0), C = P.match(n.nonAlphaNumericRegex_), I = R.match(n.nonAlphaNumericRegex_), j = C && P.match(n.whitespaceRegex_), k = I && R.match(n.whitespaceRegex_), O = j && P.match(n.linebreakRegex_), T = k && R.match(n.linebreakRegex_), M = O && w.match(n.blanklineEndRegex_), V = T && A.match(n.blanklineStartRegex_);
|
|
26324
|
+
return M || V ? 5 : O || T ? 4 : C && !j && k ? 3 : j || k ? 2 : C || I ? 1 : 0;
|
|
26423
26325
|
}
|
|
26424
26326
|
for (var u = 1; u < l.length - 1; ) {
|
|
26425
26327
|
if (l[u - 1][0] == i && l[u + 1][0] == i) {
|
|
@@ -26581,14 +26483,14 @@ var diffMatchPatch = { exports: {} };
|
|
|
26581
26483
|
for (x = 0, v = S; x < v; )
|
|
26582
26484
|
p(w, u + v) <= g ? x = v : S = v, v = Math.floor((S - x) / 2 + x);
|
|
26583
26485
|
S = v;
|
|
26584
|
-
var A = Math.max(1, u - v + 1), P = Math.min(u + v, l.length) + c.length,
|
|
26585
|
-
|
|
26586
|
-
for (var
|
|
26587
|
-
var I = d[l.charAt(
|
|
26588
|
-
if (w === 0 ? C
|
|
26589
|
-
var j = p(w,
|
|
26486
|
+
var A = Math.max(1, u - v + 1), P = Math.min(u + v, l.length) + c.length, R = Array(P + 2);
|
|
26487
|
+
R[P + 1] = (1 << w) - 1;
|
|
26488
|
+
for (var C = P; C >= A; C--) {
|
|
26489
|
+
var I = d[l.charAt(C - 1)];
|
|
26490
|
+
if (w === 0 ? R[C] = (R[C + 1] << 1 | 1) & I : R[C] = (R[C + 1] << 1 | 1) & I | ((E[C + 1] | E[C]) << 1 | 1) | E[C + 1], R[C] & b) {
|
|
26491
|
+
var j = p(w, C - 1);
|
|
26590
26492
|
if (j <= g)
|
|
26591
|
-
if (g = j, h =
|
|
26493
|
+
if (g = j, h = C - 1, h > u)
|
|
26592
26494
|
A = Math.max(1, 2 * u - h);
|
|
26593
26495
|
else
|
|
26594
26496
|
break;
|
|
@@ -26596,7 +26498,7 @@ var diffMatchPatch = { exports: {} };
|
|
|
26596
26498
|
}
|
|
26597
26499
|
if (p(w + 1, u) > g)
|
|
26598
26500
|
break;
|
|
26599
|
-
E =
|
|
26501
|
+
E = R;
|
|
26600
26502
|
}
|
|
26601
26503
|
return h;
|
|
26602
26504
|
}, n.prototype.match_alphabet_ = function(l) {
|
|
@@ -27975,19 +27877,19 @@ const diffFilter$2 = function r(n) {
|
|
|
27975
27877
|
n.options && n.options.arrays && n.options.arrays.includeValueOnMove && (A = !0);
|
|
27976
27878
|
const P = E.length;
|
|
27977
27879
|
for (l = a; l < g - i; l++) {
|
|
27978
|
-
const
|
|
27979
|
-
if (
|
|
27980
|
-
let
|
|
27880
|
+
const R = arrayIndexOf(S.indices2, l - a);
|
|
27881
|
+
if (R < 0) {
|
|
27882
|
+
let C = !1;
|
|
27981
27883
|
if (w && P > 0) {
|
|
27982
27884
|
for (let I = 0; I < P; I++)
|
|
27983
27885
|
if (c = E[I], matchItems(x, v, c - a, l - a, o)) {
|
|
27984
|
-
b[`_${c}`].splice(1, 2, l, ARRAY_MOVE), A || (b[`_${c}`][0] = ""), u = l, h = new DiffContext(n.left[c], n.right[u]), n.push(h, u), E.splice(I, 1),
|
|
27886
|
+
b[`_${c}`].splice(1, 2, l, ARRAY_MOVE), A || (b[`_${c}`][0] = ""), u = l, h = new DiffContext(n.left[c], n.right[u]), n.push(h, u), E.splice(I, 1), C = !0;
|
|
27985
27887
|
break;
|
|
27986
27888
|
}
|
|
27987
27889
|
}
|
|
27988
|
-
|
|
27890
|
+
C || (b[l] = [m[l]]);
|
|
27989
27891
|
} else
|
|
27990
|
-
c = S.indices1[
|
|
27892
|
+
c = S.indices1[R] + a, u = S.indices2[R] + a, h = new DiffContext(n.left[c], n.right[u]), n.push(h, u);
|
|
27991
27893
|
}
|
|
27992
27894
|
n.setResult(b).exit();
|
|
27993
27895
|
};
|
|
@@ -28420,27 +28322,27 @@ var require_react_is_production_min = __commonJS({
|
|
|
28420
28322
|
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js"(r) {
|
|
28421
28323
|
init_react_shim();
|
|
28422
28324
|
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, m = n ? Symbol.for("react.async_mode") : 60111, p = 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, A = n ? Symbol.for("react.scope") : 60119;
|
|
28423
|
-
function P(
|
|
28424
|
-
if (typeof
|
|
28425
|
-
var I =
|
|
28325
|
+
function P(C) {
|
|
28326
|
+
if (typeof C == "object" && C !== null) {
|
|
28327
|
+
var I = C.$$typeof;
|
|
28426
28328
|
switch (I) {
|
|
28427
28329
|
case o:
|
|
28428
|
-
switch (
|
|
28330
|
+
switch (C = C.type, C) {
|
|
28429
28331
|
case m:
|
|
28430
28332
|
case p:
|
|
28431
28333
|
case i:
|
|
28432
28334
|
case c:
|
|
28433
28335
|
case l:
|
|
28434
28336
|
case h:
|
|
28435
|
-
return
|
|
28337
|
+
return C;
|
|
28436
28338
|
default:
|
|
28437
|
-
switch (
|
|
28339
|
+
switch (C = C && C.$$typeof, C) {
|
|
28438
28340
|
case d:
|
|
28439
28341
|
case g:
|
|
28440
28342
|
case v:
|
|
28441
28343
|
case x:
|
|
28442
28344
|
case u:
|
|
28443
|
-
return
|
|
28345
|
+
return C;
|
|
28444
28346
|
default:
|
|
28445
28347
|
return I;
|
|
28446
28348
|
}
|
|
@@ -28450,35 +28352,35 @@ var require_react_is_production_min = __commonJS({
|
|
|
28450
28352
|
}
|
|
28451
28353
|
}
|
|
28452
28354
|
}
|
|
28453
|
-
function C
|
|
28454
|
-
return P(
|
|
28455
|
-
}
|
|
28456
|
-
r.AsyncMode = m, r.ConcurrentMode = p, 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(
|
|
28457
|
-
return C
|
|
28458
|
-
}, r.isConcurrentMode =
|
|
28459
|
-
return P(
|
|
28460
|
-
}, r.isContextProvider = function(
|
|
28461
|
-
return P(
|
|
28462
|
-
}, r.isElement = function(
|
|
28463
|
-
return typeof
|
|
28464
|
-
}, r.isForwardRef = function(
|
|
28465
|
-
return P(
|
|
28466
|
-
}, r.isFragment = function(
|
|
28467
|
-
return P(
|
|
28468
|
-
}, r.isLazy = function(
|
|
28469
|
-
return P(
|
|
28470
|
-
}, r.isMemo = function(
|
|
28471
|
-
return P(
|
|
28472
|
-
}, r.isPortal = function(
|
|
28473
|
-
return P(
|
|
28474
|
-
}, r.isProfiler = function(
|
|
28475
|
-
return P(
|
|
28476
|
-
}, r.isStrictMode = function(
|
|
28477
|
-
return P(
|
|
28478
|
-
}, r.isSuspense = function(
|
|
28479
|
-
return P(
|
|
28480
|
-
}, r.isValidElementType = function(
|
|
28481
|
-
return typeof
|
|
28355
|
+
function R(C) {
|
|
28356
|
+
return P(C) === p;
|
|
28357
|
+
}
|
|
28358
|
+
r.AsyncMode = m, r.ConcurrentMode = p, 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) {
|
|
28359
|
+
return R(C) || P(C) === m;
|
|
28360
|
+
}, r.isConcurrentMode = R, r.isContextConsumer = function(C) {
|
|
28361
|
+
return P(C) === d;
|
|
28362
|
+
}, r.isContextProvider = function(C) {
|
|
28363
|
+
return P(C) === u;
|
|
28364
|
+
}, r.isElement = function(C) {
|
|
28365
|
+
return typeof C == "object" && C !== null && C.$$typeof === o;
|
|
28366
|
+
}, r.isForwardRef = function(C) {
|
|
28367
|
+
return P(C) === g;
|
|
28368
|
+
}, r.isFragment = function(C) {
|
|
28369
|
+
return P(C) === i;
|
|
28370
|
+
}, r.isLazy = function(C) {
|
|
28371
|
+
return P(C) === v;
|
|
28372
|
+
}, r.isMemo = function(C) {
|
|
28373
|
+
return P(C) === x;
|
|
28374
|
+
}, r.isPortal = function(C) {
|
|
28375
|
+
return P(C) === a;
|
|
28376
|
+
}, r.isProfiler = function(C) {
|
|
28377
|
+
return P(C) === c;
|
|
28378
|
+
}, r.isStrictMode = function(C) {
|
|
28379
|
+
return P(C) === l;
|
|
28380
|
+
}, r.isSuspense = function(C) {
|
|
28381
|
+
return P(C) === h;
|
|
28382
|
+
}, r.isValidElementType = function(C) {
|
|
28383
|
+
return typeof C == "string" || typeof C == "function" || C === i || C === p || 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 === A || C.$$typeof === S);
|
|
28482
28384
|
}, r.typeOf = P;
|
|
28483
28385
|
}
|
|
28484
28386
|
}), require_react_is_development = __commonJS({
|
|
@@ -28489,7 +28391,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28489
28391
|
return typeof Z == "string" || typeof Z == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
28490
28392
|
Z === i || Z === p || 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 === A || Z.$$typeof === S);
|
|
28491
28393
|
}
|
|
28492
|
-
function
|
|
28394
|
+
function R(Z) {
|
|
28493
28395
|
if (typeof Z == "object" && Z !== null) {
|
|
28494
28396
|
var le = Z.$$typeof;
|
|
28495
28397
|
switch (le) {
|
|
@@ -28521,47 +28423,47 @@ var require_react_is_production_min = __commonJS({
|
|
|
28521
28423
|
}
|
|
28522
28424
|
}
|
|
28523
28425
|
}
|
|
28524
|
-
var
|
|
28426
|
+
var C = m, I = p, j = d, k = u, O = o, T = g, M = i, V = v, D = x, W = a, J = c, F = l, L = h, q = !1;
|
|
28525
28427
|
function G(Z) {
|
|
28526
|
-
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) ||
|
|
28428
|
+
return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ee(Z) || R(Z) === m;
|
|
28527
28429
|
}
|
|
28528
28430
|
function ee(Z) {
|
|
28529
|
-
return
|
|
28431
|
+
return R(Z) === p;
|
|
28530
28432
|
}
|
|
28531
28433
|
function z(Z) {
|
|
28532
|
-
return
|
|
28434
|
+
return R(Z) === d;
|
|
28533
28435
|
}
|
|
28534
28436
|
function U(Z) {
|
|
28535
|
-
return
|
|
28437
|
+
return R(Z) === u;
|
|
28536
28438
|
}
|
|
28537
28439
|
function te(Z) {
|
|
28538
28440
|
return typeof Z == "object" && Z !== null && Z.$$typeof === o;
|
|
28539
28441
|
}
|
|
28540
28442
|
function _(Z) {
|
|
28541
|
-
return
|
|
28443
|
+
return R(Z) === g;
|
|
28542
28444
|
}
|
|
28543
28445
|
function Q(Z) {
|
|
28544
|
-
return
|
|
28446
|
+
return R(Z) === i;
|
|
28545
28447
|
}
|
|
28546
28448
|
function ne(Z) {
|
|
28547
|
-
return
|
|
28449
|
+
return R(Z) === v;
|
|
28548
28450
|
}
|
|
28549
28451
|
function re(Z) {
|
|
28550
|
-
return
|
|
28452
|
+
return R(Z) === x;
|
|
28551
28453
|
}
|
|
28552
28454
|
function $(Z) {
|
|
28553
|
-
return
|
|
28455
|
+
return R(Z) === a;
|
|
28554
28456
|
}
|
|
28555
28457
|
function ae(Z) {
|
|
28556
|
-
return
|
|
28458
|
+
return R(Z) === c;
|
|
28557
28459
|
}
|
|
28558
28460
|
function se(Z) {
|
|
28559
|
-
return
|
|
28461
|
+
return R(Z) === l;
|
|
28560
28462
|
}
|
|
28561
28463
|
function K(Z) {
|
|
28562
|
-
return
|
|
28464
|
+
return R(Z) === h;
|
|
28563
28465
|
}
|
|
28564
|
-
r.AsyncMode =
|
|
28466
|
+
r.AsyncMode = C, r.ConcurrentMode = I, r.ContextConsumer = j, r.ContextProvider = k, r.Element = O, r.ForwardRef = T, r.Fragment = M, r.Lazy = V, r.Memo = D, r.Portal = W, r.Profiler = J, r.StrictMode = F, r.Suspense = L, 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 = R;
|
|
28565
28467
|
}();
|
|
28566
28468
|
}
|
|
28567
28469
|
}), require_react_is = __commonJS({
|
|
@@ -28702,8 +28604,8 @@ var require_react_is_production_min = __commonJS({
|
|
|
28702
28604
|
string: A("string"),
|
|
28703
28605
|
symbol: A("symbol"),
|
|
28704
28606
|
any: P(),
|
|
28705
|
-
arrayOf:
|
|
28706
|
-
element:
|
|
28607
|
+
arrayOf: R,
|
|
28608
|
+
element: C(),
|
|
28707
28609
|
elementType: I(),
|
|
28708
28610
|
instanceOf: j,
|
|
28709
28611
|
node: M(),
|
|
@@ -28760,7 +28662,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28760
28662
|
function P() {
|
|
28761
28663
|
return w(d);
|
|
28762
28664
|
}
|
|
28763
|
-
function
|
|
28665
|
+
function R(z) {
|
|
28764
28666
|
function U(te, _, Q, ne, re) {
|
|
28765
28667
|
if (typeof z != "function")
|
|
28766
28668
|
return new E("Property `" + re + "` of component `" + Q + "` has invalid PropType notation inside arrayOf.");
|
|
@@ -28778,7 +28680,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28778
28680
|
}
|
|
28779
28681
|
return w(U);
|
|
28780
28682
|
}
|
|
28781
|
-
function
|
|
28683
|
+
function C() {
|
|
28782
28684
|
function z(U, te, _, Q, ne) {
|
|
28783
28685
|
var re = U[te];
|
|
28784
28686
|
if (!m(re)) {
|
|
@@ -30077,10 +29979,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30077
29979
|
r.flat = n(A);
|
|
30078
29980
|
var P = require_google();
|
|
30079
29981
|
r.google = n(P);
|
|
30080
|
-
var
|
|
30081
|
-
r.grayscale = n(
|
|
30082
|
-
var
|
|
30083
|
-
r.greenscreen = n(
|
|
29982
|
+
var R = require_grayscale();
|
|
29983
|
+
r.grayscale = n(R);
|
|
29984
|
+
var C = require_greenscreen();
|
|
29985
|
+
r.greenscreen = n(C);
|
|
30084
29986
|
var I = require_harmonic();
|
|
30085
29987
|
r.harmonic = n(I);
|
|
30086
29988
|
var j = require_hopscotch();
|
|
@@ -30575,10 +30477,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30575
30477
|
var g = p[0] / 255, h = p[1] / 255, b = p[2] / 255, x = Math.min(g, h, b), v = Math.max(g, h, b), S = v - x, E, w, A;
|
|
30576
30478
|
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), A = (x + v) / 2, v === x ? w = 0 : A <= 0.5 ? w = S / (v + x) : w = S / (2 - v - x), [E, w * 100, A * 100];
|
|
30577
30479
|
}, l.rgb.hsv = function(p) {
|
|
30578
|
-
var g, h, b, x, v, S = p[0] / 255, E = p[1] / 255, w = p[2] / 255, A = Math.max(S, E, w), P = A - Math.min(S, E, w),
|
|
30579
|
-
return (A -
|
|
30480
|
+
var g, h, b, x, v, S = p[0] / 255, E = p[1] / 255, w = p[2] / 255, A = Math.max(S, E, w), P = A - Math.min(S, E, w), R = function(C) {
|
|
30481
|
+
return (A - C) / 6 / P + 1 / 2;
|
|
30580
30482
|
};
|
|
30581
|
-
return P === 0 ? x = v = 0 : (v = P / A, g =
|
|
30483
|
+
return P === 0 ? x = v = 0 : (v = P / A, g = R(S), h = R(E), b = R(w), S === A ? x = b - h : E === A ? x = 1 / 3 + g - b : w === A && (x = 2 / 3 + h - g), x < 0 ? x += 1 : x > 1 && (x -= 1)), [
|
|
30582
30484
|
x * 360,
|
|
30583
30485
|
v * 100,
|
|
30584
30486
|
A * 100
|
|
@@ -30647,30 +30549,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30647
30549
|
}, l.hwb.rgb = function(p) {
|
|
30648
30550
|
var g = p[0] / 360, h = p[1] / 100, b = p[2] / 100, x = h + b, v, S, E, w;
|
|
30649
30551
|
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);
|
|
30650
|
-
var A, P,
|
|
30552
|
+
var A, P, R;
|
|
30651
30553
|
switch (v) {
|
|
30652
30554
|
default:
|
|
30653
30555
|
case 6:
|
|
30654
30556
|
case 0:
|
|
30655
|
-
A = S, P = w,
|
|
30557
|
+
A = S, P = w, R = h;
|
|
30656
30558
|
break;
|
|
30657
30559
|
case 1:
|
|
30658
|
-
A = w, P = S,
|
|
30560
|
+
A = w, P = S, R = h;
|
|
30659
30561
|
break;
|
|
30660
30562
|
case 2:
|
|
30661
|
-
A = h, P = S,
|
|
30563
|
+
A = h, P = S, R = w;
|
|
30662
30564
|
break;
|
|
30663
30565
|
case 3:
|
|
30664
|
-
A = h, P = w,
|
|
30566
|
+
A = h, P = w, R = S;
|
|
30665
30567
|
break;
|
|
30666
30568
|
case 4:
|
|
30667
|
-
A = w, P = h,
|
|
30569
|
+
A = w, P = h, R = S;
|
|
30668
30570
|
break;
|
|
30669
30571
|
case 5:
|
|
30670
|
-
A = S, P = h,
|
|
30572
|
+
A = S, P = h, R = w;
|
|
30671
30573
|
break;
|
|
30672
30574
|
}
|
|
30673
|
-
return [A * 255, P * 255,
|
|
30575
|
+
return [A * 255, P * 255, R * 255];
|
|
30674
30576
|
}, l.cmyk.rgb = function(p) {
|
|
30675
30577
|
var g = p[0] / 100, h = p[1] / 100, b = p[2] / 100, x = p[3] / 100, v, S, E;
|
|
30676
30578
|
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];
|
|
@@ -30919,12 +30821,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30919
30821
|
], this.valpha = 1;
|
|
30920
30822
|
else {
|
|
30921
30823
|
this.valpha = 1;
|
|
30922
|
-
var
|
|
30923
|
-
"alpha" in v && (
|
|
30924
|
-
var
|
|
30925
|
-
if (!(
|
|
30824
|
+
var R = Object.keys(v);
|
|
30825
|
+
"alpha" in v && (R.splice(R.indexOf("alpha"), 1), this.valpha = typeof v.alpha == "number" ? v.alpha : 0);
|
|
30826
|
+
var C = R.sort().join("");
|
|
30827
|
+
if (!(C in c))
|
|
30926
30828
|
throw new Error("Unable to parse color from object: " + JSON.stringify(v));
|
|
30927
|
-
this.model = c[
|
|
30829
|
+
this.model = c[C];
|
|
30928
30830
|
var I = a[this.model].labels, j = [];
|
|
30929
30831
|
for (E = 0; E < I.length; E++)
|
|
30930
30832
|
j.push(v[I[E]]);
|
|
@@ -31080,11 +30982,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31080
30982
|
mix: function(v, S) {
|
|
31081
30983
|
if (!v || !v.rgb)
|
|
31082
30984
|
throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof v);
|
|
31083
|
-
var E = v.rgb(), w = this.rgb(), A = S === void 0 ? 0.5 : S, P = 2 * A - 1,
|
|
30985
|
+
var E = v.rgb(), w = this.rgb(), A = S === void 0 ? 0.5 : S, P = 2 * A - 1, R = E.alpha() - w.alpha(), C = ((P * R === -1 ? P : (P + R) / (1 + P * R)) + 1) / 2, I = 1 - C;
|
|
31084
30986
|
return d.rgb(
|
|
31085
|
-
|
|
31086
|
-
|
|
31087
|
-
|
|
30987
|
+
C * E.red() + I * w.red(),
|
|
30988
|
+
C * E.green() + I * w.green(),
|
|
30989
|
+
C * E.blue() + I * w.blue(),
|
|
31088
30990
|
E.alpha() * A + w.alpha() * (1 - A)
|
|
31089
30991
|
);
|
|
31090
30992
|
}
|
|
@@ -31147,7 +31049,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31147
31049
|
["partial", m],
|
|
31148
31050
|
["partialRight", p],
|
|
31149
31051
|
["rearg", h]
|
|
31150
|
-
], A = "[object Function]", P = "[object GeneratorFunction]",
|
|
31052
|
+
], A = "[object Function]", P = "[object GeneratorFunction]", R = "[object Symbol]", C = /[\\^$.*+?()[\]{}|]/g, I = /^\s+|\s+$/g, j = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, k = /\{\n\/\* \[wrapped with (.+)\] \*/, O = /,? & /, T = /^[-+]0x[0-9a-f]+$/i, M = /^0b[01]+$/i, V = /^\[object .+?Constructor\]$/, D = /^0o[0-7]+$/i, W = /^(?:0|[1-9]\d*)$/, J = parseInt, F = typeof global == "object" && global && global.Object === Object && global, L = typeof self == "object" && self && self.Object === Object && self, q = F || L || Function("return this")();
|
|
31151
31053
|
function G(N, B, Y) {
|
|
31152
31054
|
switch (Y.length) {
|
|
31153
31055
|
case 0:
|
|
@@ -31215,7 +31117,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31215
31117
|
var N = /[^.]+$/.exec(K && K.keys && K.keys.IE_PROTO || "");
|
|
31216
31118
|
return N ? "Symbol(src)_1." + N : "";
|
|
31217
31119
|
}(), le = ae.toString, fe = se.hasOwnProperty, Te = se.toString, be = RegExp(
|
|
31218
|
-
"^" + le.call(fe).replace(
|
|
31120
|
+
"^" + le.call(fe).replace(C, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
31219
31121
|
), Ze = Object.create, Ne = Math.max, ge = Math.min, Ge = function() {
|
|
31220
31122
|
var N = We(Object, "defineProperty"), B = We.name;
|
|
31221
31123
|
return B && B.length > 2 ? N : void 0;
|
|
@@ -31254,14 +31156,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31254
31156
|
return B;
|
|
31255
31157
|
}
|
|
31256
31158
|
function rt(N, B, Y) {
|
|
31257
|
-
var oe = B & i, ce =
|
|
31159
|
+
var oe = B & i, ce = Re(N);
|
|
31258
31160
|
function H() {
|
|
31259
31161
|
var ie = this && this !== q && this instanceof H ? ce : N;
|
|
31260
31162
|
return ie.apply(oe ? Y : this, arguments);
|
|
31261
31163
|
}
|
|
31262
31164
|
return H;
|
|
31263
31165
|
}
|
|
31264
|
-
function
|
|
31166
|
+
function Re(N) {
|
|
31265
31167
|
return function() {
|
|
31266
31168
|
var B = arguments;
|
|
31267
31169
|
switch (B.length) {
|
|
@@ -31287,7 +31189,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31287
31189
|
};
|
|
31288
31190
|
}
|
|
31289
31191
|
function De(N, B, Y) {
|
|
31290
|
-
var oe =
|
|
31192
|
+
var oe = Re(N);
|
|
31291
31193
|
function ce() {
|
|
31292
31194
|
for (var H = arguments.length, ie = Array(H), ue = H, de = qe(ce); ue--; )
|
|
31293
31195
|
ie[ue] = arguments[ue];
|
|
@@ -31311,7 +31213,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31311
31213
|
return ce;
|
|
31312
31214
|
}
|
|
31313
31215
|
function Ve(N, B, Y, oe, ce, H, ie, ue, de, me) {
|
|
31314
|
-
var pe = B & g, xe = B & i, ye = B & l, we = B & (u | d), it = B & b, et = ye ? void 0 :
|
|
31216
|
+
var pe = B & g, xe = B & i, ye = B & l, we = B & (u | d), it = B & b, et = ye ? void 0 : Re(N);
|
|
31315
31217
|
function tt() {
|
|
31316
31218
|
for (var Be = arguments.length, Ae = Array(Be), lt = Be; lt--; )
|
|
31317
31219
|
Ae[lt] = arguments[lt];
|
|
@@ -31333,12 +31235,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31333
31235
|
);
|
|
31334
31236
|
}
|
|
31335
31237
|
var dt = xe ? Y : this, ct = ye ? dt[N] : N;
|
|
31336
|
-
return Be = Ae.length, ue ? Ae = Xe(Ae, ue) : it && Be > 1 && Ae.reverse(), pe && de < Be && (Ae.length = de), this && this !== q && this instanceof tt && (ct = et ||
|
|
31238
|
+
return Be = Ae.length, ue ? Ae = Xe(Ae, ue) : it && Be > 1 && Ae.reverse(), pe && de < Be && (Ae.length = de), this && this !== q && this instanceof tt && (ct = et || Re(ct)), ct.apply(dt, Ae);
|
|
31337
31239
|
}
|
|
31338
31240
|
return tt;
|
|
31339
31241
|
}
|
|
31340
31242
|
function nt(N, B, Y, oe) {
|
|
31341
|
-
var ce = B & i, H =
|
|
31243
|
+
var ce = B & i, H = Re(N);
|
|
31342
31244
|
function ie() {
|
|
31343
31245
|
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; )
|
|
31344
31246
|
xe[me] = oe[me];
|
|
@@ -31399,7 +31301,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31399
31301
|
/* [wrapped with ` + B + `] */
|
|
31400
31302
|
`);
|
|
31401
31303
|
}
|
|
31402
|
-
function
|
|
31304
|
+
function Ce(N, B) {
|
|
31403
31305
|
return B = B ?? v, !!B && (typeof N == "number" || W.test(N)) && N > -1 && N % 1 == 0 && N < B;
|
|
31404
31306
|
}
|
|
31405
31307
|
function Me(N) {
|
|
@@ -31408,7 +31310,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31408
31310
|
function Xe(N, B) {
|
|
31409
31311
|
for (var Y = N.length, oe = ge(B.length, Y), ce = Je(N); oe--; ) {
|
|
31410
31312
|
var H = B[oe];
|
|
31411
|
-
N[oe] =
|
|
31313
|
+
N[oe] = Ce(H, Y) ? ce[H] : void 0;
|
|
31412
31314
|
}
|
|
31413
31315
|
return N;
|
|
31414
31316
|
}
|
|
@@ -31456,7 +31358,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31456
31358
|
return !!N && typeof N == "object";
|
|
31457
31359
|
}
|
|
31458
31360
|
function Qe(N) {
|
|
31459
|
-
return typeof N == "symbol" || he(N) && Te.call(N) ==
|
|
31361
|
+
return typeof N == "symbol" || he(N) && Te.call(N) == R;
|
|
31460
31362
|
}
|
|
31461
31363
|
function Le(N) {
|
|
31462
31364
|
if (!N)
|
|
@@ -33954,11 +33856,11 @@ const TabletIcon = ({ landscape: r = !1 }) => /* @__PURE__ */ jsxRuntimeExports.
|
|
|
33954
33856
|
/* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialogFooter, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialogCancel, { children: r("Close") }) })
|
|
33955
33857
|
] }) });
|
|
33956
33858
|
}, SettingsPanel = () => {
|
|
33957
|
-
const r = useSelectedBlock(), { t: n } = useTranslation(), [o, a] = useState$1(!0);
|
|
33859
|
+
const r = useSelectedBlock(), { t: n } = useTranslation(), [o, a] = useState$1(!0), i = useBuilderProp("onError", noop$1);
|
|
33958
33860
|
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: [
|
|
33959
33861
|
/* @__PURE__ */ jsxRuntimeExports.jsx(MixerHorizontalIcon, { className: "mx-auto text-3xl" }),
|
|
33960
33862
|
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { children: n("please_select_a_block_to_edit") })
|
|
33961
|
-
] }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$
|
|
33863
|
+
] }) }) : /* @__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: [
|
|
33962
33864
|
/* @__PURE__ */ jsxRuntimeExports.jsx(BlockSettings, {}),
|
|
33963
33865
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
33964
33866
|
/* @__PURE__ */ jsxRuntimeExports.jsx(BlockStyling, {}),
|
|
@@ -33978,7 +33880,7 @@ const TabletIcon = ({ landscape: r = !1 }) => /* @__PURE__ */ jsxRuntimeExports.
|
|
|
33978
33880
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
33979
33881
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {})
|
|
33980
33882
|
] }) });
|
|
33981
|
-
}, SettingsPanel$1 = SettingsPanel, TopBar = lazy(() => import("./Topbar-
|
|
33883
|
+
}, SettingsPanel$1 = SettingsPanel, TopBar = lazy(() => import("./Topbar-uwCF26N5.js")), menuItems = [
|
|
33982
33884
|
{ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Layers, { size: 20 }), label: "sidebar.outline", component: Outline$1 },
|
|
33983
33885
|
{ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditIcon, { size: 16 }), label: "sidebar.edit_block", component: SettingsPanel$1 },
|
|
33984
33886
|
{ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(LightningBoltIcon, { className: "size-5" }), label: "sidebar.ai_assistant", component: AskAI },
|
|
@@ -34096,14 +33998,14 @@ const TabletIcon = ({ landscape: r = !1 }) => /* @__PURE__ */ jsxRuntimeExports.
|
|
|
34096
33998
|
window.onbeforeunload = null;
|
|
34097
33999
|
}), [i]), /* @__PURE__ */ jsxRuntimeExports.jsx(l, {});
|
|
34098
34000
|
}, ChaiBuilderEditor = (r) => {
|
|
34099
|
-
const n = r._flags || {};
|
|
34100
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$
|
|
34001
|
+
const n = r._flags || {}, o = r.onError || noop$1;
|
|
34002
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-screen w-screen", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$1, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(FallbackError, {}), onError: o, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(FlagsProvider, { features: { ...FEATURE_TOGGLES, ...n }, children: [
|
|
34101
34003
|
/* @__PURE__ */ jsxRuntimeExports.jsx(DevTools, {}),
|
|
34102
34004
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SmallScreenMessage, {}),
|
|
34103
34005
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ChaiBuilderComponent, { ...r }),
|
|
34104
34006
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PreviewScreen, {}),
|
|
34105
34007
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Toaster, {})
|
|
34106
|
-
] }) });
|
|
34008
|
+
] }) }) });
|
|
34107
34009
|
};
|
|
34108
34010
|
export {
|
|
34109
34011
|
useSelectedBlocksDisplayChild as $,
|