@chaibuilder/sdk 1.2.75 → 1.2.76
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-HxRQW3jF.js → CodeEditor-QaDlSeLr.js} +1 -1
- package/dist/{CodeEditor-bLHnkh3p.cjs → CodeEditor-Z7_R7BRg.cjs} +1 -1
- package/dist/{Topbar-BoiUPZ7V.cjs → Topbar-DAK9vNL3.cjs} +1 -1
- package/dist/{Topbar--rV07rOP.js → Topbar-wHQxajBp.js} +1 -1
- package/dist/{UnsplashImages-HCgUgi0z.cjs → UnsplashImages-4uUS8SMq.cjs} +1 -1
- package/dist/{UnsplashImages-tuqgUrm5.js → UnsplashImages-fsj0Hn0B.js} +1 -1
- package/dist/{UploadImages-5_8G8NXf.js → UploadImages-lDHrM-Jw.js} +1 -1
- package/dist/{UploadImages-HeJuyKpH.cjs → UploadImages-lnaTQHCD.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{index-AAGeGuFf.cjs → index-VVV4PtIa.cjs} +2 -2
- package/dist/{index-Uhj6zHCH.js → index-qHOh12Rg.js} +521 -520
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +17 -17
- package/package.json +1 -1
|
@@ -129,7 +129,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
129
129
|
D,
|
|
130
130
|
T
|
|
131
131
|
);
|
|
132
|
-
resolvePromise(D, L), W(L), (q == null ? void 0 : q.d) !== G.d &&
|
|
132
|
+
resolvePromise(D, L), W(L), (q == null ? void 0 : q.d) !== G.d && R(k, G, q == null ? void 0 : q.d);
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
(L) => {
|
|
@@ -140,7 +140,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
140
140
|
D,
|
|
141
141
|
T
|
|
142
142
|
);
|
|
143
|
-
rejectPromise(D, L), J(L), (q == null ? void 0 : q.d) !== G.d &&
|
|
143
|
+
rejectPromise(D, L), J(L), (q == null ? void 0 : q.d) !== G.d && R(k, G, q == null ? void 0 : q.d);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
), V = (L) => {
|
|
@@ -215,7 +215,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
215
215
|
return O || (O = P(k)), O;
|
|
216
216
|
}, v = (k, O) => !O.l.size && (!O.t.size || O.t.size === 1 && O.t.has(k)), S = (k) => {
|
|
217
217
|
const O = n.get(k);
|
|
218
|
-
O && v(k, O) &&
|
|
218
|
+
O && v(k, O) && C(k);
|
|
219
219
|
}, E = (k) => {
|
|
220
220
|
const O = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new WeakMap(), M = (D) => {
|
|
221
221
|
const W = n.get(D);
|
|
@@ -284,7 +284,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
284
284
|
M && (T.u = M);
|
|
285
285
|
}
|
|
286
286
|
return T;
|
|
287
|
-
},
|
|
287
|
+
}, C = (k) => {
|
|
288
288
|
var O;
|
|
289
289
|
const T = (O = n.get(k)) == null ? void 0 : O.u;
|
|
290
290
|
T && T(), n.delete(k), (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && l.delete(k);
|
|
@@ -292,10 +292,10 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
292
292
|
M ? (hasPromiseAtomValue(M) && cancelPromise(M.v), M.d.forEach((V, D) => {
|
|
293
293
|
if (D !== k) {
|
|
294
294
|
const W = n.get(D);
|
|
295
|
-
W && (W.t.delete(k), v(D, W) &&
|
|
295
|
+
W && (W.t.delete(k), v(D, W) && C(D));
|
|
296
296
|
}
|
|
297
297
|
})) : (define_import_meta_env_default$2 ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", k);
|
|
298
|
-
},
|
|
298
|
+
}, R = (k, O, T) => {
|
|
299
299
|
const M = new Set(O.d.keys());
|
|
300
300
|
T == null || T.forEach((V, D) => {
|
|
301
301
|
if (M.has(D)) {
|
|
@@ -303,7 +303,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
303
303
|
return;
|
|
304
304
|
}
|
|
305
305
|
const W = n.get(D);
|
|
306
|
-
W && (W.t.delete(k), v(D, W) &&
|
|
306
|
+
W && (W.t.delete(k), v(D, W) && C(D));
|
|
307
307
|
}), M.forEach((V) => {
|
|
308
308
|
const D = n.get(V);
|
|
309
309
|
D ? D.t.add(k) : n.has(k) && P(V, k);
|
|
@@ -315,7 +315,7 @@ const hasInitialValue = (r) => "init" in r, isActuallyWritableAtom = (r) => !!r.
|
|
|
315
315
|
o.clear(), O.forEach(([T, M]) => {
|
|
316
316
|
const V = c(T);
|
|
317
317
|
if (V) {
|
|
318
|
-
V.d !== (M == null ? void 0 : M.d) &&
|
|
318
|
+
V.d !== (M == null ? void 0 : M.d) && R(T, V, M == null ? void 0 : M.d);
|
|
319
319
|
const D = n.get(T);
|
|
320
320
|
D && !// TODO This seems pretty hacky. Hope to fix it.
|
|
321
321
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
@@ -387,23 +387,23 @@ function splitAtom(r, n) {
|
|
|
387
387
|
return;
|
|
388
388
|
}
|
|
389
389
|
const S = (w) => {
|
|
390
|
-
const A = w(i), P = w(r),
|
|
391
|
-
if (
|
|
390
|
+
const A = w(i), P = w(r), R = a(P, A == null ? void 0 : A.arr).keyList.indexOf(x);
|
|
391
|
+
if (R < 0 || R >= P.length) {
|
|
392
392
|
const I = c[a(c).keyList.indexOf(x)];
|
|
393
393
|
if (I)
|
|
394
394
|
return I;
|
|
395
395
|
throw new Error("splitAtom: index out of bounds for read");
|
|
396
396
|
}
|
|
397
|
-
return P[
|
|
397
|
+
return P[R];
|
|
398
398
|
}, E = (w, A, P) => {
|
|
399
|
-
const
|
|
400
|
-
if (j < 0 || j >=
|
|
399
|
+
const C = w(i), R = w(r), j = a(R, C == null ? void 0 : C.arr).keyList.indexOf(x);
|
|
400
|
+
if (j < 0 || j >= R.length)
|
|
401
401
|
throw new Error("splitAtom: index out of bounds for write");
|
|
402
|
-
const k = isFunction$1(P) ? P(
|
|
402
|
+
const k = isFunction$1(P) ? P(R[j]) : P;
|
|
403
403
|
A(r, [
|
|
404
|
-
...
|
|
404
|
+
...R.slice(0, j),
|
|
405
405
|
k,
|
|
406
|
-
...
|
|
406
|
+
...R.slice(j + 1)
|
|
407
407
|
]);
|
|
408
408
|
};
|
|
409
409
|
p[b] = isWritable(r) ? atom(S, E) : atom(S);
|
|
@@ -1216,12 +1216,12 @@ const useBlocksStoreManager = () => {
|
|
|
1216
1216
|
return {
|
|
1217
1217
|
moveBlocks: (x, v, S) => {
|
|
1218
1218
|
const E = map(x, (A) => {
|
|
1219
|
-
const
|
|
1220
|
-
return { _id: A, oldParent:
|
|
1219
|
+
const C = n.find((j) => j._id === A)._parent || null, I = n.filter((j) => C ? j._parent === C : !j._parent).map((j) => j._id).indexOf(A);
|
|
1220
|
+
return { _id: A, oldParent: C, oldPosition: I };
|
|
1221
1221
|
}), w = E.find(({ _id: A }) => A === x[0]);
|
|
1222
1222
|
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,
|
|
1223
|
+
undo: () => each(E, ({ _id: A, oldParent: P, oldPosition: C }) => {
|
|
1224
|
+
l([A], P, C);
|
|
1225
1225
|
}),
|
|
1226
1226
|
redo: () => l(x, v, S)
|
|
1227
1227
|
}));
|
|
@@ -1247,8 +1247,8 @@ const useBlocksStoreManager = () => {
|
|
|
1247
1247
|
else {
|
|
1248
1248
|
const w = keys(v);
|
|
1249
1249
|
E = map(x, (A) => {
|
|
1250
|
-
const P = n.find((
|
|
1251
|
-
return each(w, (
|
|
1250
|
+
const P = n.find((R) => R._id === A), C = { _id: A };
|
|
1251
|
+
return each(w, (R) => C[R] = P[R]), C;
|
|
1252
1252
|
});
|
|
1253
1253
|
}
|
|
1254
1254
|
c(map(x, (w) => ({ _id: w, ...v }))), r({
|
|
@@ -3254,14 +3254,14 @@ const useHandleCanvasDblClick = () => {
|
|
|
3254
3254
|
}, [a, d]);
|
|
3255
3255
|
const x = get$1(n, "headingFont", "DM Sans"), v = get$1(n, "bodyFont", "DM Sans");
|
|
3256
3256
|
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"),
|
|
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"), C = get$1(n, "bodyTextLightColor", "#fff"), R = getPalette([
|
|
3258
3258
|
{ color: S, name: "primary" },
|
|
3259
3259
|
{ color: E, name: "secondary" }
|
|
3260
3260
|
]), I = {
|
|
3261
3261
|
"bg-light": w,
|
|
3262
3262
|
"bg-dark": A,
|
|
3263
3263
|
"text-dark": P,
|
|
3264
|
-
"text-light":
|
|
3264
|
+
"text-light": C
|
|
3265
3265
|
}, j = get$1(n, "roundedCorners", "0");
|
|
3266
3266
|
!m || !m.tailwind || (m.tailwind.config = {
|
|
3267
3267
|
darkMode: "class",
|
|
@@ -3281,7 +3281,7 @@ const useHandleCanvasDblClick = () => {
|
|
|
3281
3281
|
borderRadius: {
|
|
3282
3282
|
DEFAULT: `${j || "0"}px`
|
|
3283
3283
|
},
|
|
3284
|
-
colors: { ...I, ...
|
|
3284
|
+
colors: { ...I, ...R }
|
|
3285
3285
|
}
|
|
3286
3286
|
},
|
|
3287
3287
|
plugins: [
|
|
@@ -3409,10 +3409,10 @@ function BlocksRendererStatic({ blocks: r }) {
|
|
|
3409
3409
|
const E = getBlockComponent(h._type), w = get$1(E, "builderComponent", get$1(E, "component", null));
|
|
3410
3410
|
if (isNull(w))
|
|
3411
3411
|
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(
|
|
3412
|
+
const A = has(E, "getBlockStateFrom") ? E == null ? void 0 : E.getBlockStateFrom(h, n) : [], P = g(A), C = d(h);
|
|
3413
|
+
if (get$1(C, "__isHidden", !1) && !includes(o, h._id))
|
|
3414
3414
|
return null;
|
|
3415
|
-
const
|
|
3415
|
+
const R = i && isDescendant(i._id, h._id, n);
|
|
3416
3416
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { children: React__default.createElement(w, {
|
|
3417
3417
|
blockProps: {
|
|
3418
3418
|
...includes(o, h._id) ? { "force-show": "" } : {},
|
|
@@ -3422,15 +3422,15 @@ function BlocksRendererStatic({ blocks: r }) {
|
|
|
3422
3422
|
// @ts-ignore
|
|
3423
3423
|
{
|
|
3424
3424
|
"data-dnd": canAcceptChildBlock(h._type, i == null ? void 0 : i._type) ? "yes" : "no",
|
|
3425
|
-
"data-dnd-dragged": i._id === h._id ||
|
|
3425
|
+
"data-dnd-dragged": i._id === h._id || R ? "yes" : "no"
|
|
3426
3426
|
}
|
|
3427
3427
|
) : {},
|
|
3428
|
-
...l === h._id && !
|
|
3428
|
+
...l === h._id && !R ? { "data-drop": "yes" } : {},
|
|
3429
3429
|
...includes(a, h._id) ? { "data-cut-block": "yes" } : {}
|
|
3430
3430
|
},
|
|
3431
3431
|
index: b,
|
|
3432
3432
|
...applyBindings(h, m),
|
|
3433
|
-
...omit(
|
|
3433
|
+
...omit(C, ["__isHidden"]),
|
|
3434
3434
|
...v,
|
|
3435
3435
|
inBuilder: !0,
|
|
3436
3436
|
blockState: P
|
|
@@ -3483,41 +3483,41 @@ const useAllDataProviders = () => useMemo$1(() => getChaiDataProviders(), []), B
|
|
|
3483
3483
|
n(l);
|
|
3484
3484
|
}, []), /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: "main-content", className: "h-full w-full", ref: a, children: r });
|
|
3485
3485
|
}, 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((
|
|
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 = (C) => {
|
|
3487
|
+
d((R) => ({ ...R, width: C }));
|
|
3488
3488
|
};
|
|
3489
3489
|
useEffect$1(() => {
|
|
3490
3490
|
if (!c.current)
|
|
3491
3491
|
return;
|
|
3492
|
-
const { clientWidth:
|
|
3493
|
-
d({ width:
|
|
3492
|
+
const { clientWidth: C, clientHeight: R } = c.current;
|
|
3493
|
+
d({ width: C, height: R });
|
|
3494
3494
|
}, [c, n]);
|
|
3495
|
-
const A = (
|
|
3496
|
-
const { top: I } =
|
|
3497
|
-
return I +
|
|
3495
|
+
const A = (C, R = 0) => {
|
|
3496
|
+
const { top: I } = C.getBoundingClientRect();
|
|
3497
|
+
return I + R >= 0 && I - R <= window.innerHeight;
|
|
3498
3498
|
};
|
|
3499
3499
|
useEffect$1(() => {
|
|
3500
|
-
var
|
|
3500
|
+
var C, R;
|
|
3501
3501
|
if (a && a.type !== "Multiple" && l.current) {
|
|
3502
3502
|
const I = getElementByDataBlockId(l.current.contentDocument, a._id);
|
|
3503
|
-
I && (A(I) || (
|
|
3503
|
+
I && (A(I) || (R = (C = l.current) == null ? void 0 : C.contentWindow) == null || R.scrollTo({ top: I.offsetTop, behavior: "smooth" }), g([I]));
|
|
3504
3504
|
}
|
|
3505
3505
|
}, [a]), useEffect$1(() => {
|
|
3506
3506
|
if (!isEmpty(x) && l.current) {
|
|
3507
|
-
const
|
|
3507
|
+
const C = getElementByStyleId(
|
|
3508
3508
|
l.current.contentDocument,
|
|
3509
3509
|
first(x).id
|
|
3510
3510
|
);
|
|
3511
|
-
h(
|
|
3511
|
+
h(C ? [C] : [null]);
|
|
3512
3512
|
} else
|
|
3513
3513
|
h([null]);
|
|
3514
3514
|
}, [x]);
|
|
3515
3515
|
const P = useMemo$1(() => {
|
|
3516
|
-
let
|
|
3517
|
-
return
|
|
3516
|
+
let C = IframeInitialContent;
|
|
3517
|
+
return C = C.replace("__HTML_DIR__", E), r === "offline" && (C = C.replace(
|
|
3518
3518
|
"https://old.chaibuilder.com/offline/tailwind.cdn.js",
|
|
3519
3519
|
"/offline/tailwind.cdn.js"
|
|
3520
|
-
),
|
|
3520
|
+
), C = C.replace("https://unpkg.com/aos@next/dist/aos.css", "/offline/aos.css"), C = C.replace("https://unpkg.com/aos@next/dist/aos.js", "/offline/aos.js")), C;
|
|
3521
3521
|
}, [r]);
|
|
3522
3522
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ResizableCanvasWrapper, { onMount: w, onResize: w, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3523
3523
|
"div",
|
|
@@ -3585,7 +3585,7 @@ let ErrorBoundary$2 = class extends React__default.Component {
|
|
|
3585
3585
|
] }) : this.props.children;
|
|
3586
3586
|
}
|
|
3587
3587
|
};
|
|
3588
|
-
const CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-
|
|
3588
|
+
const CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-QaDlSeLr.js")), CanvasArea = () => {
|
|
3589
3589
|
const [r] = useCodeEditor();
|
|
3590
3590
|
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
3591
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, { className: "h-full" }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$2, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(StaticCanvas$1, {}) }) }),
|
|
@@ -3663,8 +3663,8 @@ const CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-HxRQW3jF.js"
|
|
|
3663
3663
|
React.useEffect(() => () => {
|
|
3664
3664
|
isEqual(a, c.current) || o(c.current);
|
|
3665
3665
|
}, []);
|
|
3666
|
-
const d = ({ formData:
|
|
3667
|
-
|
|
3666
|
+
const d = ({ formData: C }, R) => {
|
|
3667
|
+
R && (i(C), c.current = C);
|
|
3668
3668
|
}, {
|
|
3669
3669
|
bodyFont: m,
|
|
3670
3670
|
headingFont: p,
|
|
@@ -3717,9 +3717,9 @@ const CodeEditor$1 = React__default.lazy(() => import("./CodeEditor-HxRQW3jF.js"
|
|
|
3717
3717
|
type: "object",
|
|
3718
3718
|
properties: {}
|
|
3719
3719
|
}, P = {};
|
|
3720
|
-
return Object.keys(w).forEach((
|
|
3721
|
-
const
|
|
3722
|
-
return A.properties || (A.properties = {}), A.properties[
|
|
3720
|
+
return Object.keys(w).forEach((C) => {
|
|
3721
|
+
const R = w[C];
|
|
3722
|
+
return A.properties || (A.properties = {}), A.properties[C] = R.schema, P[C] = R.uiSchema, !0;
|
|
3723
3723
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("flex h-full w-full select-none flex-col", n), children: [
|
|
3724
3724
|
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
3725
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -3971,31 +3971,31 @@ function TbEyeDown(r) {
|
|
|
3971
3971
|
const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
3972
3972
|
const a = useBuilderProp("outlineMenuItems", []), [, i] = useAddBlocksModal(), { t: l } = useTranslation(), [c] = useAtom$1(canvasIframeAtom);
|
|
3973
3973
|
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
|
-
|
|
3974
|
+
const d = r.children.length > 0, { id: m, data: p, isSelected: g, willReceiveDrop: h, isDragging: b, isEditing: x, handleClick: v } = r, S = (R) => {
|
|
3975
|
+
R.stopPropagation(), r.toggle();
|
|
3976
|
+
}, E = (R) => {
|
|
3977
|
+
R.isInternal && (u = R.isOpen, R.isOpen && R.close());
|
|
3978
|
+
}, w = (R) => {
|
|
3979
|
+
R.isInternal && u !== null && (u ? R.open() : R.close(), u = null);
|
|
3980
|
+
}, A = (R) => {
|
|
3981
|
+
R.stopPropagation(), r.isOpen || r.toggle(), v(R);
|
|
3982
3982
|
};
|
|
3983
3983
|
useEffect$1(() => {
|
|
3984
|
-
const
|
|
3984
|
+
const R = setTimeout(() => {
|
|
3985
3985
|
h && !r.isOpen && !b && r.toggle();
|
|
3986
3986
|
}, 500);
|
|
3987
|
-
return () => clearTimeout(
|
|
3987
|
+
return () => clearTimeout(R);
|
|
3988
3988
|
}, [h, r, b]);
|
|
3989
3989
|
const P = useMemo$1(() => {
|
|
3990
|
-
const
|
|
3991
|
-
for (let j = 0; j <
|
|
3992
|
-
if (
|
|
3993
|
-
const k = p[
|
|
3990
|
+
const R = Object.keys(p), I = [];
|
|
3991
|
+
for (let j = 0; j < R.length; j++)
|
|
3992
|
+
if (R[j].endsWith("_attrs")) {
|
|
3993
|
+
const k = p[R[j]], O = Object.keys(k).join("|");
|
|
3994
3994
|
O.match(/x-data/) && I.push("data"), O.match(/x-on/) && I.push("event"), O.match(/x-show|x-if/) && I.push("show");
|
|
3995
3995
|
}
|
|
3996
3996
|
return I;
|
|
3997
|
-
}, [p]),
|
|
3998
|
-
const j = c.contentDocument || c.contentWindow.document, k = j.querySelector(`[data-block-id=${
|
|
3997
|
+
}, [p]), C = (R, I) => {
|
|
3998
|
+
const j = c.contentDocument || c.contentWindow.document, k = j.querySelector(`[data-block-id=${R}]`);
|
|
3999
3999
|
k && k.setAttribute("data-drop", I);
|
|
4000
4000
|
const O = k.getBoundingClientRect(), T = c.getBoundingClientRect();
|
|
4001
4001
|
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 +4019,14 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4019
4019
|
ref: o,
|
|
4020
4020
|
onDragStart: () => E(r),
|
|
4021
4021
|
onDragEnd: () => w(r),
|
|
4022
|
-
onDragOver: (
|
|
4023
|
-
|
|
4022
|
+
onDragOver: (R) => {
|
|
4023
|
+
R.preventDefault(), C(m, "yes");
|
|
4024
4024
|
},
|
|
4025
|
-
onDragLeave: (
|
|
4026
|
-
|
|
4025
|
+
onDragLeave: (R) => {
|
|
4026
|
+
R.preventDefault(), C(m, "no");
|
|
4027
4027
|
},
|
|
4028
|
-
onDrop: (
|
|
4029
|
-
|
|
4028
|
+
onDrop: (R) => {
|
|
4029
|
+
R.preventDefault(), C(m, "no");
|
|
4030
4030
|
},
|
|
4031
4031
|
className: cn(
|
|
4032
4032
|
"group flex !h-full w-full items-center justify-between space-x-px !rounded py-px outline-none",
|
|
@@ -4049,8 +4049,8 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4049
4049
|
"div",
|
|
4050
4050
|
{
|
|
4051
4051
|
className: "ml-2 flex items-center gap-x-1 truncate text-[11px]",
|
|
4052
|
-
onDoubleClick: (
|
|
4053
|
-
|
|
4052
|
+
onDoubleClick: (R) => {
|
|
4053
|
+
R.stopPropagation(), r.edit(), r.deselect();
|
|
4054
4054
|
},
|
|
4055
4055
|
children: [
|
|
4056
4056
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: (p == null ? void 0 : p._name) || (p == null ? void 0 : p._type.split("/").pop()) }),
|
|
@@ -4075,16 +4075,16 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4075
4075
|
),
|
|
4076
4076
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { className: "isolate z-[9999]", children: l("Add block") })
|
|
4077
4077
|
] }) : null,
|
|
4078
|
-
a.map((
|
|
4078
|
+
a.map((R) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip$1, { children: [
|
|
4079
4079
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4080
4080
|
TooltipTrigger,
|
|
4081
4081
|
{
|
|
4082
4082
|
className: "cursor-pointer rounded bg-transparent hover:bg-white hover:text-blue-500",
|
|
4083
4083
|
asChild: !0,
|
|
4084
|
-
children: React__default.createElement(
|
|
4084
|
+
children: React__default.createElement(R.item, { blockId: m })
|
|
4085
4085
|
}
|
|
4086
4086
|
),
|
|
4087
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { className: "isolate z-10", children:
|
|
4087
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { className: "isolate z-10", children: R.tooltip })
|
|
4088
4088
|
] }))
|
|
4089
4089
|
] })
|
|
4090
4090
|
]
|
|
@@ -4406,9 +4406,9 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4406
4406
|
const n = parse$1(getSanitizedHTML(r));
|
|
4407
4407
|
return isEmpty(r) ? [] : flatten(traverseNodes(n));
|
|
4408
4408
|
}, ImportHTML = () => {
|
|
4409
|
-
const { t: r } = useTranslation(), [n, o] = useState$1(""), { addPredefinedBlock: a } = useAddBlock(), [i] = useSelectedBlockIds(), [, l] = useAtom$1(activePanelAtom$1), c = () => {
|
|
4410
|
-
const
|
|
4411
|
-
a([...
|
|
4409
|
+
const { t: r } = useTranslation(), [n, o] = useState$1(""), { addPredefinedBlock: a } = useAddBlock(), [i] = useSelectedBlockIds(), [, l] = useAtom$1(activePanelAtom$1), [, c] = useAddBlocksModal(), u = () => {
|
|
4410
|
+
const d = getBlocksFromHTML(n);
|
|
4411
|
+
a([...d], first(i) || null), o(""), c(""), l(OUTLINE_KEY);
|
|
4412
4412
|
};
|
|
4413
4413
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { className: "border-border/0 p-0 shadow-none", children: [
|
|
4414
4414
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { className: "p-3", children: /* @__PURE__ */ jsxRuntimeExports.jsx(CardDescription, { children: r("html_snippet_description") }) }),
|
|
@@ -4419,8 +4419,8 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4419
4419
|
{
|
|
4420
4420
|
autoFocus: !0,
|
|
4421
4421
|
tabIndex: 1,
|
|
4422
|
-
ref: (
|
|
4423
|
-
onChange: (
|
|
4422
|
+
ref: (d) => d && d.focus(),
|
|
4423
|
+
onChange: (d) => o(d.target.value),
|
|
4424
4424
|
rows: 12,
|
|
4425
4425
|
value: n,
|
|
4426
4426
|
placeholder: r("enter_code_snippet"),
|
|
@@ -4428,7 +4428,7 @@ const Node = memo(({ node: r, style: n, dragHandle: o }) => {
|
|
|
4428
4428
|
}
|
|
4429
4429
|
)
|
|
4430
4430
|
] }) }),
|
|
4431
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(CardFooter, { className: "flex flex-col justify-end p-3", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { disabled: n.trim() === "", onClick: () =>
|
|
4431
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardFooter, { className: "flex flex-col justify-end p-3", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { disabled: n.trim() === "", onClick: () => u(), size: "sm", className: "w-full", children: r("import_html") }) })
|
|
4432
4432
|
] });
|
|
4433
4433
|
}, ImportHTML$1 = ImportHTML, isBoolean = (r) => typeof r == "boolean" || r instanceof Boolean, isNumber = (r) => typeof r == "number" || r instanceof Number, isBigInt = (r) => typeof r == "bigint" || r instanceof BigInt, isDate = (r) => !!r && r instanceof Date, isString = (r) => typeof r == "string" || r instanceof String, isArray$4 = (r) => Array.isArray(r), isObject$1 = (r) => r instanceof Object && r !== null;
|
|
4434
4434
|
function useBool(r) {
|
|
@@ -4458,8 +4458,8 @@ function ExpandableObject(r) {
|
|
|
4458
4458
|
useEffect$1(() => {
|
|
4459
4459
|
g.current ? x(m(u, o, n)) : g.current = !0;
|
|
4460
4460
|
}, [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
|
-
|
|
4461
|
+
const v = h ? d.collapseIcon : d.expandIcon, S = h ? "collapse JSON" : "expand JSON", E = useComponentId(), w = u + 1, A = a.length - 1, P = (C) => {
|
|
4462
|
+
C.key === " " && (C.preventDefault(), b());
|
|
4463
4463
|
};
|
|
4464
4464
|
return /* @__PURE__ */ createElement$1("div", {
|
|
4465
4465
|
className: d.basicChildStyle,
|
|
@@ -4485,12 +4485,12 @@ function ExpandableObject(r) {
|
|
|
4485
4485
|
className: d.punctuation
|
|
4486
4486
|
}, l), h ? /* @__PURE__ */ createElement$1("div", {
|
|
4487
4487
|
id: E
|
|
4488
|
-
}, a.map((
|
|
4489
|
-
key:
|
|
4490
|
-
field:
|
|
4491
|
-
value:
|
|
4488
|
+
}, a.map((C, R) => /* @__PURE__ */ createElement$1(DataRender, {
|
|
4489
|
+
key: C[0] || R,
|
|
4490
|
+
field: C[0],
|
|
4491
|
+
value: C[1],
|
|
4492
4492
|
style: d,
|
|
4493
|
-
lastElement:
|
|
4493
|
+
lastElement: R === A,
|
|
4494
4494
|
level: w,
|
|
4495
4495
|
shouldExpandNode: m,
|
|
4496
4496
|
clickToExpandNode: p
|
|
@@ -4970,7 +4970,7 @@ const ViewData = ({ data: r, fullView: n }) => {
|
|
|
4970
4970
|
}
|
|
4971
4971
|
)
|
|
4972
4972
|
] });
|
|
4973
|
-
}, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-
|
|
4973
|
+
}, UnsplashImages = React__default.lazy(() => import("./UnsplashImages-fsj0Hn0B.js")), UploadImages = React__default.lazy(() => import("./UploadImages-lDHrM-Jw.js")), ImagesPanel = ({
|
|
4974
4974
|
isModalView: r = !1,
|
|
4975
4975
|
onSelect: n = () => {
|
|
4976
4976
|
}
|
|
@@ -5325,8 +5325,9 @@ function FaRecycle(r) {
|
|
|
5325
5325
|
function FaSpinner(r) {
|
|
5326
5326
|
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
5327
|
}
|
|
5328
|
+
const SECONDS = 4;
|
|
5328
5329
|
function Countdown() {
|
|
5329
|
-
const [r, n] = useState$1(
|
|
5330
|
+
const [r, n] = useState$1(SECONDS), [o, a] = useState$1(!1);
|
|
5330
5331
|
useEffect$1(() => {
|
|
5331
5332
|
if (o && r > 0) {
|
|
5332
5333
|
const d = setTimeout(() => {
|
|
@@ -5334,15 +5335,15 @@ function Countdown() {
|
|
|
5334
5335
|
}, 100);
|
|
5335
5336
|
return () => clearTimeout(d);
|
|
5336
5337
|
} else
|
|
5337
|
-
r <= 0 && (a(!1), n(
|
|
5338
|
+
r <= 0 && (a(!1), n(SECONDS));
|
|
5338
5339
|
}, [o, r]);
|
|
5339
5340
|
const i = () => {
|
|
5340
|
-
a(!0), n(
|
|
5341
|
+
a(!0), n(SECONDS);
|
|
5341
5342
|
};
|
|
5342
5343
|
useEffect$1(() => {
|
|
5343
|
-
r ===
|
|
5344
|
+
r === SECONDS && i();
|
|
5344
5345
|
}, [r]);
|
|
5345
|
-
const l = 18, c = 2 * Math.PI * l, u = c * (1 - (
|
|
5346
|
+
const l = 18, c = 2 * Math.PI * l, u = c * (1 - (SECONDS - r) / SECONDS);
|
|
5346
5347
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative h-4 w-4", children: [
|
|
5347
5348
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { className: "h-full w-full", viewBox: "0 0 40 40", children: [
|
|
5348
5349
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -5384,7 +5385,7 @@ const AskAIStyles = ({ blockId: r }) => {
|
|
|
5384
5385
|
}, []);
|
|
5385
5386
|
const p = (g) => {
|
|
5386
5387
|
const { usage: h } = g || {};
|
|
5387
|
-
!i && h && m(h), setTimeout(() => m(void 0),
|
|
5388
|
+
!i && h && m(h), setTimeout(() => m(void 0), 4e3), i || c("");
|
|
5388
5389
|
};
|
|
5389
5390
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "", children: [
|
|
5390
5391
|
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "mb-1 text-sm font-semibold leading-none tracking-tight", children: n("ask_ai") }),
|
|
@@ -5444,12 +5445,12 @@ const AskAIStyles = ({ blockId: r }) => {
|
|
|
5444
5445
|
keys: ["name"]
|
|
5445
5446
|
});
|
|
5446
5447
|
function ManualClasses() {
|
|
5447
|
-
var
|
|
5448
|
-
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 = (
|
|
5449
|
-
const
|
|
5450
|
-
a(l,
|
|
5451
|
-
}, [b, x] = useState$1([]), v = ({ value:
|
|
5452
|
-
const I =
|
|
5448
|
+
var C;
|
|
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 = (C = first(n)) == null ? void 0 : C.prop, g = reject((get$1(o, p, "").replace(STYLES_KEY, "").split(",").pop() || "").split(" "), isEmpty), h = () => {
|
|
5450
|
+
const R = u.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
|
|
5451
|
+
a(l, R, !0), d("");
|
|
5452
|
+
}, [b, x] = useState$1([]), v = ({ value: R }) => {
|
|
5453
|
+
const I = R.trim().toLowerCase(), j = I.match(/.+:/g);
|
|
5453
5454
|
let k = [];
|
|
5454
5455
|
if (j && j.length > 0) {
|
|
5455
5456
|
const [O] = j, T = I.replace(O, "");
|
|
@@ -5462,17 +5463,17 @@ function ManualClasses() {
|
|
|
5462
5463
|
return x(map(k, "item"));
|
|
5463
5464
|
}, S = () => {
|
|
5464
5465
|
x([]);
|
|
5465
|
-
}, E = (
|
|
5466
|
+
}, E = (R) => R.name, w = (R) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "rounded-md p-1", children: R.name }), A = {
|
|
5466
5467
|
autoComplete: "off",
|
|
5467
5468
|
autoCorrect: "off",
|
|
5468
5469
|
autoCapitalize: "off",
|
|
5469
5470
|
spellCheck: !1,
|
|
5470
5471
|
placeholder: r("enter_classes_separated_by_space"),
|
|
5471
5472
|
value: u,
|
|
5472
|
-
onKeyDown: (
|
|
5473
|
-
|
|
5473
|
+
onKeyDown: (R) => {
|
|
5474
|
+
R.key === "Enter" && u.trim() !== "" && h();
|
|
5474
5475
|
},
|
|
5475
|
-
onChange: (
|
|
5476
|
+
onChange: (R, { newValue: I }) => d(I),
|
|
5476
5477
|
className: "w-full rounded-md text-xs px-2 hover:outline-0 bg-background border-border py-1"
|
|
5477
5478
|
}, P = () => {
|
|
5478
5479
|
if (navigator.clipboard === void 0) {
|
|
@@ -5542,22 +5543,22 @@ function ManualClasses() {
|
|
|
5542
5543
|
)
|
|
5543
5544
|
] }),
|
|
5544
5545
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full flex-wrap gap-2 overflow-x-hidden", children: React.Children.toArray(
|
|
5545
|
-
g.map((
|
|
5546
|
+
g.map((R) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
5546
5547
|
"div",
|
|
5547
5548
|
{
|
|
5548
5549
|
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",
|
|
5549
5550
|
children: [
|
|
5550
|
-
|
|
5551
|
+
R,
|
|
5551
5552
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5552
5553
|
Cross2Icon,
|
|
5553
5554
|
{
|
|
5554
|
-
onClick: () => i(l, [
|
|
5555
|
+
onClick: () => i(l, [R]),
|
|
5555
5556
|
className: "invisible absolute right-1 rounded-full bg-red-400 hover:text-white group-hover:visible group-hover:cursor-pointer"
|
|
5556
5557
|
}
|
|
5557
5558
|
)
|
|
5558
5559
|
]
|
|
5559
5560
|
},
|
|
5560
|
-
|
|
5561
|
+
R
|
|
5561
5562
|
))
|
|
5562
5563
|
) })
|
|
5563
5564
|
]
|
|
@@ -6216,7 +6217,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6216
6217
|
}
|
|
6217
6218
|
h(O), i(O === "class" || isEmpty(k) ? "" : k);
|
|
6218
6219
|
}, [l, d, m]);
|
|
6219
|
-
const
|
|
6220
|
+
const C = useThrottledCallback((k) => c(k), [c], THROTTLE_TIME), R = useThrottledCallback((k) => c(k, !1), [c], THROTTLE_TIME), I = useCallback$1(
|
|
6220
6221
|
(k = !1) => {
|
|
6221
6222
|
const O = getUserInputValues(`${a}`, m);
|
|
6222
6223
|
if (get$1(O, "error", !1)) {
|
|
@@ -6225,15 +6226,15 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6225
6226
|
}
|
|
6226
6227
|
const T = get$1(O, "unit") !== "" ? get$1(O, "unit") : g;
|
|
6227
6228
|
if (T === "auto" || T === "none") {
|
|
6228
|
-
|
|
6229
|
+
C(`${u}${T}`);
|
|
6229
6230
|
return;
|
|
6230
6231
|
}
|
|
6231
6232
|
if (get$1(O, "value") === "")
|
|
6232
6233
|
return;
|
|
6233
6234
|
const V = `${get$1(O, "value", "").startsWith("-") ? "-" : ""}${u}[${get$1(O, "value", "").replace("-", "")}${T === "-" ? "" : T}]`;
|
|
6234
|
-
k ?
|
|
6235
|
+
k ? R(V) : C(V);
|
|
6235
6236
|
},
|
|
6236
|
-
[
|
|
6237
|
+
[C, R, a, g, u, m]
|
|
6237
6238
|
), j = useCallback$1(
|
|
6238
6239
|
(k) => {
|
|
6239
6240
|
const O = getUserInputValues(`${a}`, m);
|
|
@@ -6242,15 +6243,15 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6242
6243
|
return;
|
|
6243
6244
|
}
|
|
6244
6245
|
if (k === "auto" || k === "none") {
|
|
6245
|
-
|
|
6246
|
+
C(`${u}${k}`);
|
|
6246
6247
|
return;
|
|
6247
6248
|
}
|
|
6248
6249
|
if (get$1(O, "value") === "")
|
|
6249
6250
|
return;
|
|
6250
6251
|
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}]`;
|
|
6251
|
-
|
|
6252
|
+
C(V);
|
|
6252
6253
|
},
|
|
6253
|
-
[
|
|
6254
|
+
[C, a, u, m]
|
|
6254
6255
|
);
|
|
6255
6256
|
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: [
|
|
6256
6257
|
/* @__PURE__ */ jsxRuntimeExports.jsx("input", { className: "w-20 rounded py-1", readOnly: !0, value: l }),
|
|
@@ -6275,7 +6276,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6275
6276
|
let T = isNaN$1(O) ? 0 : O;
|
|
6276
6277
|
k.keyCode === 38 && (T += 1), k.keyCode === 40 && (T -= 1);
|
|
6277
6278
|
const M = `${T}`, D = `${M.startsWith("-") ? "-" : ""}${u}[${M.replace("-", "")}${g === "-" ? "" : g}]`;
|
|
6278
|
-
|
|
6279
|
+
R(D);
|
|
6279
6280
|
},
|
|
6280
6281
|
onKeyUp: (k) => {
|
|
6281
6282
|
A && (k.preventDefault(), P(!1));
|
|
@@ -6328,14 +6329,14 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6328
6329
|
if (S(() => ""), w(!1), isEmpty(k))
|
|
6329
6330
|
return;
|
|
6330
6331
|
const O = `${k}`, M = `${O.startsWith("-") ? "-" : ""}${u}[${O.replace("-", "")}${g === "-" ? "" : g}]`;
|
|
6331
|
-
|
|
6332
|
+
C(M);
|
|
6332
6333
|
},
|
|
6333
6334
|
onDrag: (k) => {
|
|
6334
6335
|
if (isEmpty(k))
|
|
6335
6336
|
return;
|
|
6336
6337
|
S(k);
|
|
6337
6338
|
const O = `${k}`, M = `${O.startsWith("-") ? "-" : ""}${u}[${O.replace("-", "")}${g === "-" ? "" : g}]`;
|
|
6338
|
-
|
|
6339
|
+
R(M);
|
|
6339
6340
|
},
|
|
6340
6341
|
currentValue: a,
|
|
6341
6342
|
unit: g,
|
|
@@ -6433,8 +6434,8 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6433
6434
|
}, getBreakpoint = (r) => `${r.toUpperCase()} ${BREAKPOINTS[r] ? `(${BREAKPOINTS[r]} & up)` : ""}`, BlockStyle = (r) => {
|
|
6434
6435
|
const { t: n } = useTranslation(), { type: o = "icons", label: a, property: i, onEmitChange: l = () => {
|
|
6435
6436
|
}, 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(
|
|
6436
|
-
(
|
|
6437
|
-
const j = { dark: d, mq: p, mod: m, cls:
|
|
6437
|
+
(R, I = !0) => {
|
|
6438
|
+
const j = { dark: d, mq: p, mod: m, cls: R, property: i, fullCls: "" };
|
|
6438
6439
|
(d || m !== "") && (j.mq = "xs");
|
|
6439
6440
|
const k = generateFullClsName(j);
|
|
6440
6441
|
h(x, [k], I);
|
|
@@ -6447,7 +6448,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6447
6448
|
l(w, g);
|
|
6448
6449
|
}, [w, l, g]);
|
|
6449
6450
|
const [, , A] = useCanvasWidth(), P = useCallback$1(
|
|
6450
|
-
(
|
|
6451
|
+
(R) => {
|
|
6451
6452
|
A({
|
|
6452
6453
|
xs: 400,
|
|
6453
6454
|
sm: 640,
|
|
@@ -6455,12 +6456,12 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6455
6456
|
lg: 1024,
|
|
6456
6457
|
xl: 1420,
|
|
6457
6458
|
"2xl": 1920
|
|
6458
|
-
}[
|
|
6459
|
+
}[R]);
|
|
6459
6460
|
},
|
|
6460
6461
|
[A]
|
|
6461
|
-
),
|
|
6462
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(BlockStyleProvider, { canChange: w, canReset: g &&
|
|
6463
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `text-[11px] ${g && !
|
|
6462
|
+
), C = get$1(g, "dark", null) === d && get$1(g, "mod", null) === m && get$1(g, "mq", null) === p;
|
|
6463
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(BlockStyleProvider, { canChange: w, canReset: g && C, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
|
|
6464
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `text-[11px] ${g && !C ? "text-foreground" : ""}`, children: n(a) }) }),
|
|
6464
6465
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-row items-center", children: [
|
|
6465
6466
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-[150px]", children: [
|
|
6466
6467
|
o === "arbitrary" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -6479,7 +6480,7 @@ const RangeChoices = ({ property: r, onChange: n }) => {
|
|
|
6479
6480
|
o === "color" && /* @__PURE__ */ jsxRuntimeExports.jsx(ColorChoice, { property: i, onChange: S }),
|
|
6480
6481
|
o === "dropdown" && /* @__PURE__ */ jsxRuntimeExports.jsx(DropDownChoices, { label: a, property: i, onChange: S })
|
|
6481
6482
|
] }),
|
|
6482
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `w-[30px] cursor-pointer ${v ? "visible" : "invisible"}`, children:
|
|
6483
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `w-[30px] cursor-pointer ${v ? "visible" : "invisible"}`, children: C ? /* @__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: [
|
|
6483
6484
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
6484
6485
|
"button",
|
|
6485
6486
|
{
|
|
@@ -6777,9 +6778,9 @@ const BlockCard = ({
|
|
|
6777
6778
|
if (x(first(w)) && (A = null), !isEmpty(w)) {
|
|
6778
6779
|
const P = { blocks: w, uiLibrary: !0, parent: A };
|
|
6779
6780
|
if (E.dataTransfer.setData("text/plain", JSON.stringify(P)), r.preview) {
|
|
6780
|
-
const
|
|
6781
|
-
|
|
6782
|
-
E.dataTransfer.setDragImage(
|
|
6781
|
+
const C = new Image();
|
|
6782
|
+
C.src = r.preview, C.onload = () => {
|
|
6783
|
+
E.dataTransfer.setDragImage(C, 0, 0);
|
|
6783
6784
|
};
|
|
6784
6785
|
} else
|
|
6785
6786
|
E.dataTransfer.setDragImage(new Image(), 0, 0);
|
|
@@ -7490,7 +7491,7 @@ const AIUserPrompt = ({ blockId: r }) => {
|
|
|
7490
7491
|
}, []);
|
|
7491
7492
|
const h = (b) => {
|
|
7492
7493
|
const { usage: x } = b || {};
|
|
7493
|
-
!i && x && p(x), setTimeout(() => p(void 0),
|
|
7494
|
+
!i && x && p(x), setTimeout(() => p(void 0), 4e3), i || c("");
|
|
7494
7495
|
};
|
|
7495
7496
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "", children: [
|
|
7496
7497
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -7681,8 +7682,8 @@ const AIUserPrompt = ({ blockId: r }) => {
|
|
|
7681
7682
|
o(P), i(a), c(""), d(""), h("");
|
|
7682
7683
|
}
|
|
7683
7684
|
}, S = (P) => {
|
|
7684
|
-
const
|
|
7685
|
-
o(
|
|
7685
|
+
const C = a.filter((R, I) => I !== P);
|
|
7686
|
+
o(C), i(C);
|
|
7686
7687
|
}, E = (P) => {
|
|
7687
7688
|
p(P), c(a[P].key), d(a[P].value);
|
|
7688
7689
|
}, w = () => {
|
|
@@ -7749,22 +7750,22 @@ const AIUserPrompt = ({ blockId: r }) => {
|
|
|
7749
7750
|
]
|
|
7750
7751
|
}
|
|
7751
7752
|
),
|
|
7752
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-4 space-y-1 overflow-y-auto", children: a.map((P,
|
|
7753
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-4 space-y-1 overflow-y-auto", children: a.map((P, C) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between rounded bg-muted p-1.5 text-sm", children: [
|
|
7753
7754
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mr-2 flex flex-col", children: [
|
|
7754
7755
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncate font-semibold", children: P.key }),
|
|
7755
7756
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-wrap max-w-[200px] text-muted-foreground", children: P.value.toString() })
|
|
7756
7757
|
] }),
|
|
7757
7758
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-shrink-0", children: [
|
|
7758
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Button$1, { variant: "ghost", size: "icon", className: "h-6 w-6", onClick: () => E(
|
|
7759
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Button$1, { variant: "ghost", size: "icon", className: "h-6 w-6", onClick: () => E(C), children: [
|
|
7759
7760
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Edit2, { className: "h-3 w-3" }),
|
|
7760
7761
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sr-only", children: "Edit attribute" })
|
|
7761
7762
|
] }),
|
|
7762
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Button$1, { variant: "ghost", size: "icon", className: "h-6 w-6", onClick: () => S(
|
|
7763
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Button$1, { variant: "ghost", size: "icon", className: "h-6 w-6", onClick: () => S(C), children: [
|
|
7763
7764
|
/* @__PURE__ */ jsxRuntimeExports.jsx(X, { className: "h-3 w-3" }),
|
|
7764
7765
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sr-only", children: "Remove attribute" })
|
|
7765
7766
|
] })
|
|
7766
7767
|
] })
|
|
7767
|
-
] },
|
|
7768
|
+
] }, C)) })
|
|
7768
7769
|
] });
|
|
7769
7770
|
}), BlockAttributesEditor = React.memo(() => {
|
|
7770
7771
|
const r = useSelectedBlock(), [n, o] = useState$1([]), [a] = useSelectedStylingBlocks(), i = useUpdateBlocksPropsRealtime(), l = useUpdateBlocksProps(), c = `${get$1(a, "0.prop")}_attrs`;
|
|
@@ -7843,15 +7844,15 @@ function useAtomsSnapshot({
|
|
|
7843
7844
|
A && "v" in A && h.set(w, A.v);
|
|
7844
7845
|
const P = (E = o.dev_get_mounted) == null ? void 0 : E.call(o, w);
|
|
7845
7846
|
if (P) {
|
|
7846
|
-
let
|
|
7847
|
-
r || (
|
|
7848
|
-
Array.from(
|
|
7847
|
+
let C = P.t;
|
|
7848
|
+
r || (C = new Set(
|
|
7849
|
+
Array.from(C.values()).filter(
|
|
7849
7850
|
/* NOTE: This just removes private atoms from the dependents list,
|
|
7850
7851
|
instead of hiding them from the dependency chain and showing
|
|
7851
7852
|
the nested dependents of the private atoms. */
|
|
7852
|
-
(
|
|
7853
|
+
(R) => !R.debugPrivate
|
|
7853
7854
|
)
|
|
7854
|
-
)), b.set(w,
|
|
7855
|
+
)), b.set(w, C);
|
|
7855
7856
|
}
|
|
7856
7857
|
}
|
|
7857
7858
|
if (isEqualAtomsValues(u, h) && isEqualAtomsDependents(d, b))
|
|
@@ -8066,7 +8067,7 @@ function compile(r) {
|
|
|
8066
8067
|
return dealloc(parse("", null, null, null, [""], r = alloc(r), 0, [0], r));
|
|
8067
8068
|
}
|
|
8068
8069
|
function parse(r, n, o, a, i, l, c, u, d) {
|
|
8069
|
-
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,
|
|
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, C = l, R = a, I = A; S; )
|
|
8070
8071
|
switch (x = w, w = next()) {
|
|
8071
8072
|
case 40:
|
|
8072
8073
|
if (x != 108 && charat(I, g - 1) == 58) {
|
|
@@ -8112,19 +8113,19 @@ function parse(r, n, o, a, i, l, c, u, d) {
|
|
|
8112
8113
|
case 59:
|
|
8113
8114
|
I += ";";
|
|
8114
8115
|
default:
|
|
8115
|
-
if (append(
|
|
8116
|
+
if (append(R = ruleset(I, n, o, m, p, i, u, A, P = [], C = [], g), l), w === 123)
|
|
8116
8117
|
if (p === 0)
|
|
8117
|
-
parse(I, n,
|
|
8118
|
+
parse(I, n, R, R, P, l, g, u, C);
|
|
8118
8119
|
else
|
|
8119
8120
|
switch (h === 99 && charat(I, 3) === 110 ? 100 : h) {
|
|
8120
8121
|
case 100:
|
|
8121
8122
|
case 108:
|
|
8122
8123
|
case 109:
|
|
8123
8124
|
case 115:
|
|
8124
|
-
parse(r,
|
|
8125
|
+
parse(r, R, R, a && append(ruleset(r, R, R, 0, 0, i, u, A, i, P = [], g), C), i, C, g, u, a ? P : C);
|
|
8125
8126
|
break;
|
|
8126
8127
|
default:
|
|
8127
|
-
parse(I,
|
|
8128
|
+
parse(I, R, R, R, [""], C, 0, u, C);
|
|
8128
8129
|
}
|
|
8129
8130
|
}
|
|
8130
8131
|
m = p = b = 0, v = E = 1, A = I = "", g = c;
|
|
@@ -8488,8 +8489,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
8488
8489
|
};
|
|
8489
8490
|
d = function(S, E, w, A) {
|
|
8490
8491
|
p = w, process.env.NODE_ENV !== "production" && E.map !== void 0 && (p = {
|
|
8491
|
-
insert: function(
|
|
8492
|
-
w.insert(
|
|
8492
|
+
insert: function(C) {
|
|
8493
|
+
w.insert(C + E.map);
|
|
8493
8494
|
}
|
|
8494
8495
|
}), b(S ? S + "{" + E.styles + "}" : E.styles), A && (x.inserted[E.name] = !0);
|
|
8495
8496
|
};
|
|
@@ -8536,65 +8537,65 @@ function requireReactIs_production_min() {
|
|
|
8536
8537
|
return reactIs_production_min;
|
|
8537
8538
|
hasRequiredReactIs_production_min = 1;
|
|
8538
8539
|
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;
|
|
8539
|
-
function A(
|
|
8540
|
-
if (typeof
|
|
8541
|
-
var
|
|
8542
|
-
switch (
|
|
8540
|
+
function A(C) {
|
|
8541
|
+
if (typeof C == "object" && C !== null) {
|
|
8542
|
+
var R = C.$$typeof;
|
|
8543
|
+
switch (R) {
|
|
8543
8544
|
case n:
|
|
8544
|
-
switch (
|
|
8545
|
+
switch (C = C.type, C) {
|
|
8545
8546
|
case d:
|
|
8546
8547
|
case m:
|
|
8547
8548
|
case a:
|
|
8548
8549
|
case l:
|
|
8549
8550
|
case i:
|
|
8550
8551
|
case g:
|
|
8551
|
-
return
|
|
8552
|
+
return C;
|
|
8552
8553
|
default:
|
|
8553
|
-
switch (
|
|
8554
|
+
switch (C = C && C.$$typeof, C) {
|
|
8554
8555
|
case u:
|
|
8555
8556
|
case p:
|
|
8556
8557
|
case x:
|
|
8557
8558
|
case b:
|
|
8558
8559
|
case c:
|
|
8559
|
-
return R;
|
|
8560
|
-
default:
|
|
8561
8560
|
return C;
|
|
8561
|
+
default:
|
|
8562
|
+
return R;
|
|
8562
8563
|
}
|
|
8563
8564
|
}
|
|
8564
8565
|
case o:
|
|
8565
|
-
return
|
|
8566
|
-
}
|
|
8567
|
-
}
|
|
8568
|
-
}
|
|
8569
|
-
function P(
|
|
8570
|
-
return A(
|
|
8571
|
-
}
|
|
8572
|
-
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(
|
|
8573
|
-
return P(
|
|
8574
|
-
}, reactIs_production_min.isConcurrentMode = P, reactIs_production_min.isContextConsumer = function(
|
|
8575
|
-
return A(
|
|
8576
|
-
}, reactIs_production_min.isContextProvider = function(
|
|
8577
|
-
return A(
|
|
8578
|
-
}, reactIs_production_min.isElement = function(
|
|
8579
|
-
return typeof
|
|
8580
|
-
}, reactIs_production_min.isForwardRef = function(
|
|
8581
|
-
return A(
|
|
8582
|
-
}, reactIs_production_min.isFragment = function(
|
|
8583
|
-
return A(
|
|
8584
|
-
}, reactIs_production_min.isLazy = function(
|
|
8585
|
-
return A(
|
|
8586
|
-
}, reactIs_production_min.isMemo = function(
|
|
8587
|
-
return A(
|
|
8588
|
-
}, reactIs_production_min.isPortal = function(
|
|
8589
|
-
return A(
|
|
8590
|
-
}, reactIs_production_min.isProfiler = function(
|
|
8591
|
-
return A(
|
|
8592
|
-
}, reactIs_production_min.isStrictMode = function(
|
|
8593
|
-
return A(
|
|
8594
|
-
}, reactIs_production_min.isSuspense = function(
|
|
8595
|
-
return A(
|
|
8596
|
-
}, reactIs_production_min.isValidElementType = function(
|
|
8597
|
-
return typeof
|
|
8566
|
+
return R;
|
|
8567
|
+
}
|
|
8568
|
+
}
|
|
8569
|
+
}
|
|
8570
|
+
function P(C) {
|
|
8571
|
+
return A(C) === m;
|
|
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(C) {
|
|
8574
|
+
return P(C) || A(C) === d;
|
|
8575
|
+
}, reactIs_production_min.isConcurrentMode = P, reactIs_production_min.isContextConsumer = function(C) {
|
|
8576
|
+
return A(C) === u;
|
|
8577
|
+
}, reactIs_production_min.isContextProvider = function(C) {
|
|
8578
|
+
return A(C) === c;
|
|
8579
|
+
}, reactIs_production_min.isElement = function(C) {
|
|
8580
|
+
return typeof C == "object" && C !== null && C.$$typeof === n;
|
|
8581
|
+
}, reactIs_production_min.isForwardRef = function(C) {
|
|
8582
|
+
return A(C) === p;
|
|
8583
|
+
}, reactIs_production_min.isFragment = function(C) {
|
|
8584
|
+
return A(C) === a;
|
|
8585
|
+
}, reactIs_production_min.isLazy = function(C) {
|
|
8586
|
+
return A(C) === x;
|
|
8587
|
+
}, reactIs_production_min.isMemo = function(C) {
|
|
8588
|
+
return A(C) === b;
|
|
8589
|
+
}, reactIs_production_min.isPortal = function(C) {
|
|
8590
|
+
return A(C) === o;
|
|
8591
|
+
}, reactIs_production_min.isProfiler = function(C) {
|
|
8592
|
+
return A(C) === l;
|
|
8593
|
+
}, reactIs_production_min.isStrictMode = function(C) {
|
|
8594
|
+
return A(C) === i;
|
|
8595
|
+
}, reactIs_production_min.isSuspense = function(C) {
|
|
8596
|
+
return A(C) === g;
|
|
8597
|
+
}, reactIs_production_min.isValidElementType = function(C) {
|
|
8598
|
+
return typeof C == "string" || typeof C == "function" || C === a || C === m || C === l || C === i || C === g || C === h || typeof C == "object" && C !== null && (C.$$typeof === x || C.$$typeof === b || C.$$typeof === c || C.$$typeof === u || C.$$typeof === p || C.$$typeof === S || C.$$typeof === E || C.$$typeof === w || C.$$typeof === v);
|
|
8598
8599
|
}, reactIs_production_min.typeOf = A, reactIs_production_min;
|
|
8599
8600
|
}
|
|
8600
8601
|
var reactIs_development = {};
|
|
@@ -8646,7 +8647,7 @@ function requireReactIs_development() {
|
|
|
8646
8647
|
}
|
|
8647
8648
|
}
|
|
8648
8649
|
}
|
|
8649
|
-
var
|
|
8650
|
+
var C = d, R = 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;
|
|
8650
8651
|
function q(K) {
|
|
8651
8652
|
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;
|
|
8652
8653
|
}
|
|
@@ -8686,7 +8687,7 @@ function requireReactIs_development() {
|
|
|
8686
8687
|
function se(K) {
|
|
8687
8688
|
return P(K) === g;
|
|
8688
8689
|
}
|
|
8689
|
-
reactIs_development.AsyncMode =
|
|
8690
|
+
reactIs_development.AsyncMode = C, reactIs_development.ConcurrentMode = R, 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;
|
|
8690
8691
|
}()), reactIs_development;
|
|
8691
8692
|
}
|
|
8692
8693
|
process.env.NODE_ENV === "production" ? reactIs$1.exports = requireReactIs_production_min() : reactIs$1.exports = requireReactIs_development();
|
|
@@ -10728,9 +10729,9 @@ function useMove(r, n, o = "ltr") {
|
|
|
10728
10729
|
a.current.style.userSelect = "none";
|
|
10729
10730
|
const P = a.current.getBoundingClientRect();
|
|
10730
10731
|
if (P.width && P.height) {
|
|
10731
|
-
const
|
|
10732
|
+
const C = clamp$1((w - P.left) / P.width, 0, 1);
|
|
10732
10733
|
r({
|
|
10733
|
-
x: o === "ltr" ?
|
|
10734
|
+
x: o === "ltr" ? C : 1 - C,
|
|
10734
10735
|
y: clamp$1((A - P.top) / P.height, 0, 1)
|
|
10735
10736
|
});
|
|
10736
10737
|
}
|
|
@@ -10858,7 +10859,7 @@ function useScrollIntoView({
|
|
|
10858
10859
|
}) - (p.current ? 0 : w);
|
|
10859
10860
|
function P() {
|
|
10860
10861
|
d.current === 0 && (d.current = performance.now());
|
|
10861
|
-
const
|
|
10862
|
+
const R = performance.now() - d.current, I = h || r === 0 ? 1 : R / r, j = w + A * a(I);
|
|
10862
10863
|
setScrollParam({
|
|
10863
10864
|
parent: p.current,
|
|
10864
10865
|
axis: n,
|
|
@@ -10922,8 +10923,8 @@ function extractSystemStyles(r) {
|
|
|
10922
10923
|
opacity: w,
|
|
10923
10924
|
ff: A,
|
|
10924
10925
|
fz: P,
|
|
10925
|
-
fw:
|
|
10926
|
-
lts:
|
|
10926
|
+
fw: C,
|
|
10927
|
+
lts: R,
|
|
10927
10928
|
ta: I,
|
|
10928
10929
|
lh: j,
|
|
10929
10930
|
fs: k,
|
|
@@ -11011,8 +11012,8 @@ function extractSystemStyles(r) {
|
|
|
11011
11012
|
opacity: w,
|
|
11012
11013
|
ff: A,
|
|
11013
11014
|
fz: P,
|
|
11014
|
-
fw:
|
|
11015
|
-
lts:
|
|
11015
|
+
fw: C,
|
|
11016
|
+
lts: R,
|
|
11016
11017
|
ta: I,
|
|
11017
11018
|
lh: j,
|
|
11018
11019
|
fs: k,
|
|
@@ -12079,8 +12080,8 @@ const defaultProps$A = {
|
|
|
12079
12080
|
classNames: w,
|
|
12080
12081
|
styles: A,
|
|
12081
12082
|
unstyled: P,
|
|
12082
|
-
span:
|
|
12083
|
-
__staticSelector:
|
|
12083
|
+
span: C,
|
|
12084
|
+
__staticSelector: R
|
|
12084
12085
|
} = o, I = __objRest$L(o, [
|
|
12085
12086
|
"className",
|
|
12086
12087
|
"size",
|
|
@@ -12115,11 +12116,11 @@ const defaultProps$A = {
|
|
|
12115
12116
|
transform: c,
|
|
12116
12117
|
align: d,
|
|
12117
12118
|
gradient: h
|
|
12118
|
-
}, { unstyled: P, name:
|
|
12119
|
+
}, { unstyled: P, name: R || "Text", variant: m, size: i });
|
|
12119
12120
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$14({
|
|
12120
12121
|
ref: n,
|
|
12121
12122
|
className: k(j.root, { [j.gradient]: m === "gradient" }, a),
|
|
12122
|
-
component:
|
|
12123
|
+
component: C ? "span" : "div"
|
|
12123
12124
|
}, I));
|
|
12124
12125
|
});
|
|
12125
12126
|
_Text.displayName = "@mantine/core/Text";
|
|
@@ -12384,7 +12385,7 @@ function SelectItems({
|
|
|
12384
12385
|
size: g
|
|
12385
12386
|
}), w = [], A = [];
|
|
12386
12387
|
let P = null;
|
|
12387
|
-
const
|
|
12388
|
+
const C = (I, j) => {
|
|
12388
12389
|
const k = typeof i == "function" ? i(I.value) : !1;
|
|
12389
12390
|
return /* @__PURE__ */ React__default.createElement(p, __spreadValues$$({
|
|
12390
12391
|
key: I.value,
|
|
@@ -12408,15 +12409,15 @@ function SelectItems({
|
|
|
12408
12409
|
variant: S
|
|
12409
12410
|
}, I));
|
|
12410
12411
|
};
|
|
12411
|
-
let
|
|
12412
|
+
let R = null;
|
|
12412
12413
|
if (r.forEach((I, j) => {
|
|
12413
|
-
I.creatable ? P = j : I.group ? (
|
|
12414
|
+
I.creatable ? P = j : I.group ? (R !== I.group && (R = I.group, A.push(/* @__PURE__ */ React__default.createElement("div", {
|
|
12414
12415
|
className: E.separator,
|
|
12415
12416
|
key: `__mantine-divider-${j}`
|
|
12416
12417
|
}, /* @__PURE__ */ React__default.createElement(Divider, {
|
|
12417
12418
|
classNames: { label: E.separatorLabel },
|
|
12418
12419
|
label: I.group
|
|
12419
|
-
})))), A.push(
|
|
12420
|
+
})))), A.push(C(I, j))) : w.push(C(I, j));
|
|
12420
12421
|
}), b) {
|
|
12421
12422
|
const I = r[P];
|
|
12422
12423
|
w.push(/* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -12580,7 +12581,7 @@ const defaultProps$x = {
|
|
|
12580
12581
|
"unstyled",
|
|
12581
12582
|
"variant",
|
|
12582
12583
|
"viewportProps"
|
|
12583
|
-
]), [w, A] = useState$1(!1), P = useMantineTheme(), { classes:
|
|
12584
|
+
]), [w, A] = useState$1(!1), P = useMantineTheme(), { classes: C, cx: R } = useStyles$D({ scrollbarSize: u, offsetScrollbars: g, scrollbarHovered: w, hidden: m === "never" }, { name: "ScrollArea", classNames: l, styles: c, unstyled: x, variant: v });
|
|
12584
12585
|
return /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Root, {
|
|
12585
12586
|
type: m === "never" ? "always" : m,
|
|
12586
12587
|
scrollHideDelay: d,
|
|
@@ -12588,9 +12589,9 @@ const defaultProps$x = {
|
|
|
12588
12589
|
ref: n,
|
|
12589
12590
|
asChild: !0
|
|
12590
12591
|
}, /* @__PURE__ */ React__default.createElement(Box, __spreadValues$Z({
|
|
12591
|
-
className: C
|
|
12592
|
+
className: R(C.root, i)
|
|
12592
12593
|
}, E), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Viewport, __spreadProps$F(__spreadValues$Z({}, S), {
|
|
12593
|
-
className:
|
|
12594
|
+
className: C.viewport,
|
|
12594
12595
|
ref: h,
|
|
12595
12596
|
onScroll: typeof b == "function" ? ({ currentTarget: I }) => b({
|
|
12596
12597
|
x: I.scrollLeft,
|
|
@@ -12598,22 +12599,22 @@ const defaultProps$x = {
|
|
|
12598
12599
|
}) : void 0
|
|
12599
12600
|
}), a), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Scrollbar, {
|
|
12600
12601
|
orientation: "horizontal",
|
|
12601
|
-
className:
|
|
12602
|
+
className: C.scrollbar,
|
|
12602
12603
|
forceMount: !0,
|
|
12603
12604
|
onMouseEnter: () => A(!0),
|
|
12604
12605
|
onMouseLeave: () => A(!1)
|
|
12605
12606
|
}, /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Thumb, {
|
|
12606
|
-
className:
|
|
12607
|
+
className: C.thumb
|
|
12607
12608
|
})), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Scrollbar, {
|
|
12608
12609
|
orientation: "vertical",
|
|
12609
|
-
className:
|
|
12610
|
+
className: C.scrollbar,
|
|
12610
12611
|
forceMount: !0,
|
|
12611
12612
|
onMouseEnter: () => A(!0),
|
|
12612
12613
|
onMouseLeave: () => A(!1)
|
|
12613
12614
|
}, /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Thumb, {
|
|
12614
|
-
className:
|
|
12615
|
+
className: C.thumb
|
|
12615
12616
|
})), /* @__PURE__ */ React__default.createElement(ScrollAreaPrimitive.Corner, {
|
|
12616
|
-
className:
|
|
12617
|
+
className: C.corner
|
|
12617
12618
|
})));
|
|
12618
12619
|
}), ScrollAreaAutosize = forwardRef$1((r, n) => {
|
|
12619
12620
|
const o = useComponentDefaultProps("ScrollAreaAutosize", defaultProps$x, r), {
|
|
@@ -12810,7 +12811,7 @@ const useHover = function(r, n) {
|
|
|
12810
12811
|
floating: b
|
|
12811
12812
|
},
|
|
12812
12813
|
refs: x
|
|
12813
|
-
} = r, v = useFloatingTree(), S = useFloatingParentNodeId(), E = useLatestRef(i), w = useLatestRef(a), A = React.useRef(), P = React.useRef(),
|
|
12814
|
+
} = r, v = useFloatingTree(), S = useFloatingParentNodeId(), E = useLatestRef(i), w = useLatestRef(a), A = React.useRef(), P = React.useRef(), C = React.useRef(), R = React.useRef(), I = React.useRef(!0), j = React.useRef(!1), k = React.useRef(() => {
|
|
12814
12815
|
}), O = React.useCallback(() => {
|
|
12815
12816
|
var D;
|
|
12816
12817
|
const W = (D = p.current.openEvent) == null ? void 0 : D.type;
|
|
@@ -12820,7 +12821,7 @@ const useHover = function(r, n) {
|
|
|
12820
12821
|
if (!o)
|
|
12821
12822
|
return;
|
|
12822
12823
|
function D() {
|
|
12823
|
-
clearTimeout(P.current), clearTimeout(
|
|
12824
|
+
clearTimeout(P.current), clearTimeout(R.current), I.current = !0;
|
|
12824
12825
|
}
|
|
12825
12826
|
return g.on("dismiss", D), () => {
|
|
12826
12827
|
g.off("dismiss", D);
|
|
@@ -12839,9 +12840,9 @@ const useHover = function(r, n) {
|
|
|
12839
12840
|
const T = React.useCallback(function(D) {
|
|
12840
12841
|
D === void 0 && (D = !0);
|
|
12841
12842
|
const W = getDelay(w.current, "close", A.current);
|
|
12842
|
-
W && !
|
|
12843
|
+
W && !C.current ? (clearTimeout(P.current), P.current = setTimeout(() => m(!1), W)) : D && (clearTimeout(P.current), m(!1));
|
|
12843
12844
|
}, [w, m]), M = React.useCallback(() => {
|
|
12844
|
-
k.current(),
|
|
12845
|
+
k.current(), C.current = void 0;
|
|
12845
12846
|
}, []), V = React.useCallback(() => {
|
|
12846
12847
|
if (j.current) {
|
|
12847
12848
|
const D = getDocument(x.floating.current).body;
|
|
@@ -12868,8 +12869,8 @@ const useHover = function(r, n) {
|
|
|
12868
12869
|
return;
|
|
12869
12870
|
k.current();
|
|
12870
12871
|
const q = getDocument(b);
|
|
12871
|
-
if (clearTimeout(
|
|
12872
|
-
d || clearTimeout(P.current),
|
|
12872
|
+
if (clearTimeout(R.current), E.current) {
|
|
12873
|
+
d || clearTimeout(P.current), C.current = E.current({
|
|
12873
12874
|
...r,
|
|
12874
12875
|
tree: v,
|
|
12875
12876
|
x: L.clientX,
|
|
@@ -12878,7 +12879,7 @@ const useHover = function(r, n) {
|
|
|
12878
12879
|
V(), M(), T();
|
|
12879
12880
|
}
|
|
12880
12881
|
});
|
|
12881
|
-
const G =
|
|
12882
|
+
const G = C.current;
|
|
12882
12883
|
q.addEventListener("mousemove", G), k.current = () => {
|
|
12883
12884
|
q.removeEventListener("mousemove", G);
|
|
12884
12885
|
};
|
|
@@ -12920,7 +12921,7 @@ const useHover = function(r, n) {
|
|
|
12920
12921
|
}, [o, d, S, b, h, v, E, p, O]), index(() => {
|
|
12921
12922
|
d || (A.current = void 0, M(), V());
|
|
12922
12923
|
}, [d, M, V]), React.useEffect(() => () => {
|
|
12923
|
-
M(), clearTimeout(P.current), clearTimeout(
|
|
12924
|
+
M(), clearTimeout(P.current), clearTimeout(R.current), V();
|
|
12924
12925
|
}, [o, M, V]), React.useMemo(() => {
|
|
12925
12926
|
if (!o)
|
|
12926
12927
|
return {};
|
|
@@ -12932,7 +12933,7 @@ const useHover = function(r, n) {
|
|
|
12932
12933
|
onPointerDown: D,
|
|
12933
12934
|
onPointerEnter: D,
|
|
12934
12935
|
onMouseMove() {
|
|
12935
|
-
d || c === 0 || (clearTimeout(
|
|
12936
|
+
d || c === 0 || (clearTimeout(R.current), R.current = setTimeout(() => {
|
|
12936
12937
|
I.current || m(!0);
|
|
12937
12938
|
}, c));
|
|
12938
12939
|
}
|
|
@@ -13135,7 +13136,7 @@ const bubbleHandlerKeys = {
|
|
|
13135
13136
|
ancestorScroll: S = !1,
|
|
13136
13137
|
bubbles: E = !0
|
|
13137
13138
|
} = n === void 0 ? {} : n;
|
|
13138
|
-
const w = useFloatingTree(), A = useFloatingParentNodeId() != null, P = useEvent(typeof h == "function" ? h : () => !1),
|
|
13139
|
+
const w = useFloatingTree(), A = useFloatingParentNodeId() != null, P = useEvent(typeof h == "function" ? h : () => !1), C = typeof h == "function" ? P : h, R = React.useRef(!1), {
|
|
13139
13140
|
escapeKeyBubbles: I,
|
|
13140
13141
|
outsidePressBubbles: j
|
|
13141
13142
|
} = normalizeBubblesProp(E);
|
|
@@ -13168,8 +13169,8 @@ const bubbleHandlerKeys = {
|
|
|
13168
13169
|
}
|
|
13169
13170
|
}
|
|
13170
13171
|
function O(D) {
|
|
13171
|
-
const W =
|
|
13172
|
-
if (
|
|
13172
|
+
const W = R.current;
|
|
13173
|
+
if (R.current = !1, W || typeof C == "function" && !C(D))
|
|
13173
13174
|
return;
|
|
13174
13175
|
const J = getTarget(D);
|
|
13175
13176
|
if (isHTMLElement(J) && d) {
|
|
@@ -13209,7 +13210,7 @@ const bubbleHandlerKeys = {
|
|
|
13209
13210
|
a(!1);
|
|
13210
13211
|
}
|
|
13211
13212
|
const M = getDocument(d);
|
|
13212
|
-
g && M.addEventListener("keydown", k),
|
|
13213
|
+
g && M.addEventListener("keydown", k), C && M.addEventListener(b, O);
|
|
13213
13214
|
let V = [];
|
|
13214
13215
|
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) => {
|
|
13215
13216
|
var W;
|
|
@@ -13219,13 +13220,13 @@ const bubbleHandlerKeys = {
|
|
|
13219
13220
|
passive: !0
|
|
13220
13221
|
});
|
|
13221
13222
|
}), () => {
|
|
13222
|
-
g && M.removeEventListener("keydown", k),
|
|
13223
|
+
g && M.removeEventListener("keydown", k), C && M.removeEventListener(b, O), V.forEach((D) => {
|
|
13223
13224
|
D.removeEventListener("scroll", T);
|
|
13224
13225
|
});
|
|
13225
13226
|
};
|
|
13226
|
-
}, [m, d, u, c, g,
|
|
13227
|
-
|
|
13228
|
-
}, [
|
|
13227
|
+
}, [m, d, u, c, g, C, b, i, w, l, o, a, S, p, I, j, A]), React.useEffect(() => {
|
|
13228
|
+
R.current = !1;
|
|
13229
|
+
}, [C, b]), React.useMemo(() => p ? {
|
|
13229
13230
|
reference: {
|
|
13230
13231
|
[bubbleHandlerKeys[v]]: () => {
|
|
13231
13232
|
x && (i.emit("dismiss", {
|
|
@@ -13238,7 +13239,7 @@ const bubbleHandlerKeys = {
|
|
|
13238
13239
|
},
|
|
13239
13240
|
floating: {
|
|
13240
13241
|
[captureHandlerKeys[b]]: () => {
|
|
13241
|
-
|
|
13242
|
+
R.current = !0;
|
|
13242
13243
|
}
|
|
13243
13244
|
}
|
|
13244
13245
|
} : {}, [p, i, x, b, v, a]);
|
|
@@ -13618,11 +13619,11 @@ function useTransition({
|
|
|
13618
13619
|
if (h(P), P === 0)
|
|
13619
13620
|
typeof w == "function" && w(), typeof A == "function" && A(), x(E ? "entered" : "exited");
|
|
13620
13621
|
else {
|
|
13621
|
-
const
|
|
13622
|
+
const C = window.setTimeout(() => {
|
|
13622
13623
|
typeof w == "function" && w(), x(E ? "entering" : "exiting");
|
|
13623
13624
|
}, 10);
|
|
13624
13625
|
v.current = window.setTimeout(() => {
|
|
13625
|
-
window.clearTimeout(
|
|
13626
|
+
window.clearTimeout(C), typeof A == "function" && A(), x(E ? "entered" : "exited");
|
|
13626
13627
|
}, P);
|
|
13627
13628
|
}
|
|
13628
13629
|
};
|
|
@@ -13910,8 +13911,8 @@ function Popover(r) {
|
|
|
13910
13911
|
withArrow: w,
|
|
13911
13912
|
arrowSize: A,
|
|
13912
13913
|
arrowOffset: P,
|
|
13913
|
-
arrowRadius:
|
|
13914
|
-
arrowPosition:
|
|
13914
|
+
arrowRadius: C,
|
|
13915
|
+
arrowPosition: R,
|
|
13915
13916
|
unstyled: I,
|
|
13916
13917
|
classNames: j,
|
|
13917
13918
|
styles: k,
|
|
@@ -14012,8 +14013,8 @@ function Popover(r) {
|
|
|
14012
14013
|
withArrow: w,
|
|
14013
14014
|
arrowSize: A,
|
|
14014
14015
|
arrowOffset: P,
|
|
14015
|
-
arrowRadius:
|
|
14016
|
-
arrowPosition:
|
|
14016
|
+
arrowRadius: C,
|
|
14017
|
+
arrowPosition: R,
|
|
14017
14018
|
placement: be.floating.placement,
|
|
14018
14019
|
trapFocus: W,
|
|
14019
14020
|
withinPortal: T,
|
|
@@ -14178,8 +14179,8 @@ function useInputProps(r, n, o) {
|
|
|
14178
14179
|
id: w,
|
|
14179
14180
|
size: A,
|
|
14180
14181
|
style: P,
|
|
14181
|
-
inputContainer:
|
|
14182
|
-
inputWrapperOrder:
|
|
14182
|
+
inputContainer: C,
|
|
14183
|
+
inputWrapperOrder: R,
|
|
14183
14184
|
withAsterisk: I,
|
|
14184
14185
|
variant: j
|
|
14185
14186
|
} = a, k = __objRest$A(a, [
|
|
@@ -14221,8 +14222,8 @@ function useInputProps(r, n, o) {
|
|
|
14221
14222
|
id: O,
|
|
14222
14223
|
size: A,
|
|
14223
14224
|
style: P,
|
|
14224
|
-
inputContainer:
|
|
14225
|
-
inputWrapperOrder:
|
|
14225
|
+
inputContainer: C,
|
|
14226
|
+
inputWrapperOrder: R,
|
|
14226
14227
|
withAsterisk: I,
|
|
14227
14228
|
variant: j
|
|
14228
14229
|
}, E);
|
|
@@ -14506,8 +14507,8 @@ const defaultProps$q = {
|
|
|
14506
14507
|
__staticSelector: w,
|
|
14507
14508
|
unstyled: A,
|
|
14508
14509
|
inputWrapperOrder: P,
|
|
14509
|
-
withAsterisk:
|
|
14510
|
-
variant:
|
|
14510
|
+
withAsterisk: C,
|
|
14511
|
+
variant: R
|
|
14511
14512
|
} = o, I = __objRest$w(o, [
|
|
14512
14513
|
"className",
|
|
14513
14514
|
"label",
|
|
@@ -14534,16 +14535,16 @@ const defaultProps$q = {
|
|
|
14534
14535
|
styles: v,
|
|
14535
14536
|
name: ["InputWrapper", w],
|
|
14536
14537
|
unstyled: A,
|
|
14537
|
-
variant:
|
|
14538
|
+
variant: R,
|
|
14538
14539
|
size: S
|
|
14539
14540
|
}), O = {
|
|
14540
14541
|
classNames: x,
|
|
14541
14542
|
styles: v,
|
|
14542
14543
|
unstyled: A,
|
|
14543
14544
|
size: S,
|
|
14544
|
-
variant:
|
|
14545
|
+
variant: R,
|
|
14545
14546
|
__staticSelector: w
|
|
14546
|
-
}, T = typeof
|
|
14547
|
+
}, T = typeof C == "boolean" ? C : 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({
|
|
14547
14548
|
key: "label",
|
|
14548
14549
|
labelElement: p,
|
|
14549
14550
|
id: u ? `${u}-label` : void 0,
|
|
@@ -14799,8 +14800,8 @@ const defaultProps$o = {
|
|
|
14799
14800
|
styles: w,
|
|
14800
14801
|
__staticSelector: A,
|
|
14801
14802
|
multiline: P,
|
|
14802
|
-
sx:
|
|
14803
|
-
unstyled:
|
|
14803
|
+
sx: C,
|
|
14804
|
+
unstyled: R,
|
|
14804
14805
|
pointer: I
|
|
14805
14806
|
} = o, j = __objRest$u(o, [
|
|
14806
14807
|
"className",
|
|
@@ -14834,10 +14835,10 @@ const defaultProps$o = {
|
|
|
14834
14835
|
offsetBottom: k,
|
|
14835
14836
|
offsetTop: O,
|
|
14836
14837
|
pointer: I
|
|
14837
|
-
}, { classNames: E, styles: w, name: ["Input", A], unstyled:
|
|
14838
|
+
}, { classNames: E, styles: w, name: ["Input", A], unstyled: R, variant: u, size: v }), { systemStyles: D, rest: W } = extractSystemStyles(j);
|
|
14838
14839
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$J(__spreadValues$J({
|
|
14839
14840
|
className: V(M.wrapper, a),
|
|
14840
|
-
sx:
|
|
14841
|
+
sx: C,
|
|
14841
14842
|
style: m
|
|
14842
14843
|
}, D), S), d && /* @__PURE__ */ React__default.createElement("div", {
|
|
14843
14844
|
className: M.icon
|
|
@@ -15233,8 +15234,8 @@ const defaultProps$l = {
|
|
|
15233
15234
|
loaderProps: w,
|
|
15234
15235
|
gradient: A,
|
|
15235
15236
|
classNames: P,
|
|
15236
|
-
styles:
|
|
15237
|
-
unstyled:
|
|
15237
|
+
styles: C,
|
|
15238
|
+
unstyled: R
|
|
15238
15239
|
} = o, I = __objRest$r(o, [
|
|
15239
15240
|
"className",
|
|
15240
15241
|
"size",
|
|
@@ -15264,7 +15265,7 @@ const defaultProps$l = {
|
|
|
15264
15265
|
gradient: A,
|
|
15265
15266
|
withLeftIcon: !!m,
|
|
15266
15267
|
withRightIcon: !!p
|
|
15267
|
-
}, { name: "Button", unstyled:
|
|
15268
|
+
}, { name: "Button", unstyled: R, classNames: P, styles: C, variant: h, size: i }), T = O.fn.variant({ color: l, variant: h }), M = /* @__PURE__ */ React__default.createElement(Loader, __spreadValues$E({
|
|
15268
15269
|
color: T.color,
|
|
15269
15270
|
size: `calc(${getSize({ size: i, sizes: sizes$1 }).height} / 2)`
|
|
15270
15271
|
}, w));
|
|
@@ -15276,7 +15277,7 @@ const defaultProps$l = {
|
|
|
15276
15277
|
"data-disabled": u || void 0,
|
|
15277
15278
|
"data-loading": S || void 0,
|
|
15278
15279
|
ref: n,
|
|
15279
|
-
unstyled:
|
|
15280
|
+
unstyled: R
|
|
15280
15281
|
}, I), /* @__PURE__ */ React__default.createElement("div", {
|
|
15281
15282
|
className: j.inner
|
|
15282
15283
|
}, (m || S && E === "left") && /* @__PURE__ */ React__default.createElement("span", {
|
|
@@ -15684,14 +15685,14 @@ const defaultProps$g = {
|
|
|
15684
15685
|
"unstyled",
|
|
15685
15686
|
"processing",
|
|
15686
15687
|
"variant"
|
|
15687
|
-
]), { classes:
|
|
15688
|
+
]), { classes: C, cx: R } = 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 });
|
|
15688
15689
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadValues$w({
|
|
15689
15690
|
ref: n,
|
|
15690
|
-
className: C
|
|
15691
|
+
className: R(C.root, p)
|
|
15691
15692
|
}, P), !v && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
15692
|
-
className: C
|
|
15693
|
+
className: R(C.indicator, C.common)
|
|
15693
15694
|
}, b), w && /* @__PURE__ */ React__default.createElement("div", {
|
|
15694
|
-
className: C
|
|
15695
|
+
className: R(C.processing, C.common)
|
|
15695
15696
|
})), a);
|
|
15696
15697
|
});
|
|
15697
15698
|
Indicator.displayName = "@mantine/core/Indicator";
|
|
@@ -15930,7 +15931,7 @@ const defaultProps$d = {
|
|
|
15930
15931
|
"unstyled",
|
|
15931
15932
|
"variant",
|
|
15932
15933
|
"keepMounted"
|
|
15933
|
-
]), { classes: A, cx: P, theme:
|
|
15934
|
+
]), { classes: A, cx: P, theme: C } = useStyles$j(null, { name: "LoadingOverlay", unstyled: v, variant: S }), R = `calc(${p} + 1)`;
|
|
15934
15935
|
return /* @__PURE__ */ React__default.createElement(Transition, {
|
|
15935
15936
|
keepMounted: E,
|
|
15936
15937
|
duration: d,
|
|
@@ -15942,16 +15943,16 @@ const defaultProps$d = {
|
|
|
15942
15943
|
style: __spreadProps$m(__spreadValues$r(__spreadValues$r({}, I), g), { zIndex: p }),
|
|
15943
15944
|
ref: n
|
|
15944
15945
|
}, w), h ? /* @__PURE__ */ React__default.createElement("div", {
|
|
15945
|
-
style: { zIndex:
|
|
15946
|
+
style: { zIndex: R }
|
|
15946
15947
|
}, h) : /* @__PURE__ */ React__default.createElement(Loader, __spreadValues$r({
|
|
15947
|
-
style: { zIndex:
|
|
15948
|
+
style: { zIndex: R }
|
|
15948
15949
|
}, l)), /* @__PURE__ */ React__default.createElement(Overlay, {
|
|
15949
15950
|
opacity: c,
|
|
15950
15951
|
zIndex: p,
|
|
15951
15952
|
radius: b,
|
|
15952
15953
|
blur: x,
|
|
15953
15954
|
unstyled: v,
|
|
15954
|
-
color: u || (
|
|
15955
|
+
color: u || (C.colorScheme === "dark" ? C.colors.dark[5] : C.white)
|
|
15955
15956
|
})));
|
|
15956
15957
|
});
|
|
15957
15958
|
LoadingOverlay.displayName = "@mantine/core/LoadingOverlay";
|
|
@@ -16172,8 +16173,8 @@ const defaultProps$c = {
|
|
|
16172
16173
|
onChange: w,
|
|
16173
16174
|
disableRightSectionRotation: A,
|
|
16174
16175
|
childrenOffset: P,
|
|
16175
|
-
disabled:
|
|
16176
|
-
onClick:
|
|
16176
|
+
disabled: C,
|
|
16177
|
+
onClick: R
|
|
16177
16178
|
} = o, I = __objRest$g(o, [
|
|
16178
16179
|
"label",
|
|
16179
16180
|
"description",
|
|
@@ -16201,7 +16202,7 @@ const defaultProps$c = {
|
|
|
16201
16202
|
finalValue: !1,
|
|
16202
16203
|
onChange: w
|
|
16203
16204
|
}), M = !!v, V = (D) => {
|
|
16204
|
-
M ? (D.preventDefault(),
|
|
16205
|
+
M ? (D.preventDefault(), R == null || R(D), T(!O)) : R == null || R(D);
|
|
16205
16206
|
};
|
|
16206
16207
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(UnstyledButton, __spreadValues$m({
|
|
16207
16208
|
ref: n,
|
|
@@ -16210,8 +16211,8 @@ const defaultProps$c = {
|
|
|
16210
16211
|
onClick: V,
|
|
16211
16212
|
unstyled: p,
|
|
16212
16213
|
"data-expanded": O || void 0,
|
|
16213
|
-
"data-disabled":
|
|
16214
|
-
disabled:
|
|
16214
|
+
"data-disabled": C || void 0,
|
|
16215
|
+
disabled: C
|
|
16215
16216
|
}, I), l && /* @__PURE__ */ React__default.createElement("span", {
|
|
16216
16217
|
className: j.icon
|
|
16217
16218
|
}, l), /* @__PURE__ */ React__default.createElement("span", {
|
|
@@ -16405,8 +16406,8 @@ function TooltipFloating(r) {
|
|
|
16405
16406
|
width: w,
|
|
16406
16407
|
zIndex: A,
|
|
16407
16408
|
disabled: P,
|
|
16408
|
-
variant:
|
|
16409
|
-
} = o,
|
|
16409
|
+
variant: C
|
|
16410
|
+
} = o, R = __objRest$e(o, [
|
|
16410
16411
|
"children",
|
|
16411
16412
|
"refProp",
|
|
16412
16413
|
"withinPortal",
|
|
@@ -16429,7 +16430,7 @@ function TooltipFloating(r) {
|
|
|
16429
16430
|
]), { handleMouseMove: I, x: j, y: k, opened: O, boundaryRef: T, floating: M, setOpened: V } = useFloatingTooltip({
|
|
16430
16431
|
offset: v,
|
|
16431
16432
|
position: S
|
|
16432
|
-
}), { classes: D, cx: W } = useStyles$h({ radius: h, color: b, multiline: E, width: w }, { name: "TooltipFloating", classNames: m, styles: p, unstyled: g, variant:
|
|
16433
|
+
}), { classes: D, cx: W } = useStyles$h({ radius: h, color: b, multiline: E, width: w }, { name: "TooltipFloating", classNames: m, styles: p, unstyled: g, variant: C });
|
|
16433
16434
|
if (!isElement$1(a))
|
|
16434
16435
|
throw new Error(TOOLTIP_ERRORS.children);
|
|
16435
16436
|
const J = useMergedRef(T, a.ref), F = (q) => {
|
|
@@ -16441,7 +16442,7 @@ function TooltipFloating(r) {
|
|
|
16441
16442
|
};
|
|
16442
16443
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(OptionalPortal, __spreadProps$g(__spreadValues$j({}, c), {
|
|
16443
16444
|
withinPortal: l
|
|
16444
|
-
}), /* @__PURE__ */ React__default.createElement(Box, __spreadProps$g(__spreadValues$j({},
|
|
16445
|
+
}), /* @__PURE__ */ React__default.createElement(Box, __spreadProps$g(__spreadValues$j({}, R), {
|
|
16445
16446
|
ref: M,
|
|
16446
16447
|
className: W(D.tooltip, d),
|
|
16447
16448
|
style: __spreadProps$g(__spreadValues$j({}, u), {
|
|
@@ -16481,7 +16482,7 @@ function useTooltip(r) {
|
|
|
16481
16482
|
arrow({ element: r.arrowRef, padding: r.arrowOffset }),
|
|
16482
16483
|
...r.inline ? [inline()] : []
|
|
16483
16484
|
]
|
|
16484
|
-
}), { getReferenceProps:
|
|
16485
|
+
}), { getReferenceProps: C, getFloatingProps: R } = useInteractions([
|
|
16485
16486
|
useHover(v, {
|
|
16486
16487
|
enabled: r.events.hover,
|
|
16487
16488
|
delay: l ? u : { open: r.openDelay, close: r.closeDelay },
|
|
@@ -16507,8 +16508,8 @@ function useTooltip(r) {
|
|
|
16507
16508
|
arrowY: P,
|
|
16508
16509
|
reference: b,
|
|
16509
16510
|
floating: x,
|
|
16510
|
-
getFloatingProps:
|
|
16511
|
-
getReferenceProps:
|
|
16511
|
+
getFloatingProps: R,
|
|
16512
|
+
getReferenceProps: C,
|
|
16512
16513
|
isGroupPhase: i && d && d !== c,
|
|
16513
16514
|
opened: i,
|
|
16514
16515
|
placement: w
|
|
@@ -16564,8 +16565,8 @@ const defaultProps$9 = {
|
|
|
16564
16565
|
styles: w,
|
|
16565
16566
|
unstyled: A,
|
|
16566
16567
|
style: P,
|
|
16567
|
-
className:
|
|
16568
|
-
withArrow:
|
|
16568
|
+
className: C,
|
|
16569
|
+
withArrow: R,
|
|
16569
16570
|
arrowSize: I,
|
|
16570
16571
|
arrowOffset: j,
|
|
16571
16572
|
arrowRadius: k,
|
|
@@ -16630,7 +16631,7 @@ const defaultProps$9 = {
|
|
|
16630
16631
|
events: W,
|
|
16631
16632
|
arrowRef: a,
|
|
16632
16633
|
arrowOffset: j,
|
|
16633
|
-
offset: T + (
|
|
16634
|
+
offset: T + (R ? I / 2 : 0),
|
|
16634
16635
|
positionDependencies: [...L, l],
|
|
16635
16636
|
inline: z
|
|
16636
16637
|
});
|
|
@@ -16659,7 +16660,7 @@ const defaultProps$9 = {
|
|
|
16659
16660
|
ref: a,
|
|
16660
16661
|
arrowX: $.arrowX,
|
|
16661
16662
|
arrowY: $.arrowY,
|
|
16662
|
-
visible:
|
|
16663
|
+
visible: R,
|
|
16663
16664
|
position: $.placement,
|
|
16664
16665
|
arrowSize: I,
|
|
16665
16666
|
arrowOffset: j,
|
|
@@ -16675,7 +16676,7 @@ const defaultProps$9 = {
|
|
|
16675
16676
|
onPointerDown: r.onPointerDown,
|
|
16676
16677
|
onPointerEnter: r.onPointerEnter,
|
|
16677
16678
|
[u]: ae,
|
|
16678
|
-
className: ne(
|
|
16679
|
+
className: ne(C, l.props.className)
|
|
16679
16680
|
}, l.props))));
|
|
16680
16681
|
});
|
|
16681
16682
|
_Tooltip.Group = TooltipGroup;
|
|
@@ -16780,8 +16781,8 @@ const defaultProps$8 = {
|
|
|
16780
16781
|
styles: w,
|
|
16781
16782
|
filter: A,
|
|
16782
16783
|
maxDropdownHeight: P,
|
|
16783
|
-
searchable:
|
|
16784
|
-
clearable:
|
|
16784
|
+
searchable: C,
|
|
16785
|
+
clearable: R,
|
|
16785
16786
|
nothingFound: I,
|
|
16786
16787
|
limit: j,
|
|
16787
16788
|
disabled: k,
|
|
@@ -16861,12 +16862,12 @@ const defaultProps$8 = {
|
|
|
16861
16862
|
"readOnly",
|
|
16862
16863
|
"clearButtonProps",
|
|
16863
16864
|
"hoverOnSearchChange"
|
|
16864
|
-
]), { 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"),
|
|
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"), Ce = Je === "column", { scrollIntoView: De, targetRef: Ve, scrollableRef: nt } = useScrollIntoView({
|
|
16865
16866
|
duration: 0,
|
|
16866
16867
|
offset: 5,
|
|
16867
16868
|
cancelable: !1,
|
|
16868
16869
|
isList: !0
|
|
16869
|
-
}), Ye = re === void 0 ?
|
|
16870
|
+
}), Ye = re === void 0 ? R : re, Se = (H) => {
|
|
16870
16871
|
if (ge !== H) {
|
|
16871
16872
|
Ge(H);
|
|
16872
16873
|
const ie = H ? ee : G;
|
|
@@ -16874,27 +16875,27 @@ const defaultProps$8 = {
|
|
|
16874
16875
|
}
|
|
16875
16876
|
}, qe = D && typeof W == "function";
|
|
16876
16877
|
let We = null;
|
|
16877
|
-
const ot = c.map((H) => typeof H == "string" ? { label: H, value: H } : H), Ue = groupOptions({ data: ot }), [
|
|
16878
|
+
const ot = c.map((H) => typeof H == "string" ? { label: H, value: H } : H), Ue = groupOptions({ data: ot }), [Re, Me, Xe] = useUncontrolled({
|
|
16878
16879
|
value: u,
|
|
16879
16880
|
defaultValue: d,
|
|
16880
16881
|
finalValue: null,
|
|
16881
16882
|
onChange: m
|
|
16882
|
-
}), Pe = Ue.find((H) => H.value ===
|
|
16883
|
+
}), Pe = Ue.find((H) => H.value === Re), [Ie, at] = useUncontrolled({
|
|
16883
16884
|
value: T,
|
|
16884
16885
|
defaultValue: (Pe == null ? void 0 : Pe.label) || "",
|
|
16885
16886
|
finalValue: void 0,
|
|
16886
16887
|
onChange: O
|
|
16887
16888
|
}), Oe = (H) => {
|
|
16888
|
-
at(H),
|
|
16889
|
+
at(H), C && typeof O == "function" && O(H);
|
|
16889
16890
|
}, st = () => {
|
|
16890
16891
|
var H;
|
|
16891
16892
|
Z || (Me(null), Xe || Oe(""), (H = He.current) == null || H.focus());
|
|
16892
16893
|
};
|
|
16893
16894
|
useEffect$1(() => {
|
|
16894
|
-
const H = Ue.find((ie) => ie.value ===
|
|
16895
|
-
H ? Oe(H.label) : (!qe || !
|
|
16896
|
-
}, [
|
|
16897
|
-
Pe && (!
|
|
16895
|
+
const H = Ue.find((ie) => ie.value === Re);
|
|
16896
|
+
H ? Oe(H.label) : (!qe || !Re) && Oe("");
|
|
16897
|
+
}, [Re]), useEffect$1(() => {
|
|
16898
|
+
Pe && (!C || !ge) && Oe(Pe.label);
|
|
16898
16899
|
}, [Pe == null ? void 0 : Pe.label]);
|
|
16899
16900
|
const je = (H) => {
|
|
16900
16901
|
if (!Z)
|
|
@@ -16910,12 +16911,12 @@ const defaultProps$8 = {
|
|
|
16910
16911
|
}
|
|
16911
16912
|
}, he = filterData({
|
|
16912
16913
|
data: Ue,
|
|
16913
|
-
searchable:
|
|
16914
|
+
searchable: C,
|
|
16914
16915
|
limit: j,
|
|
16915
16916
|
searchValue: Ie,
|
|
16916
16917
|
filter: A,
|
|
16917
16918
|
filterDataOnExactSearchMatch: ae,
|
|
16918
|
-
value:
|
|
16919
|
+
value: Re
|
|
16919
16920
|
});
|
|
16920
16921
|
qe && J(Ie, he) && (We = W(Ie), he.push({ label: Ie, value: Ie, creatable: !0 }));
|
|
16921
16922
|
const Qe = (H, ie, ue) => {
|
|
@@ -16928,21 +16929,21 @@ const defaultProps$8 = {
|
|
|
16928
16929
|
useDidUpdate(() => {
|
|
16929
16930
|
ve(fe && Ie ? 0 : -1);
|
|
16930
16931
|
}, [Ie, fe]);
|
|
16931
|
-
const Le =
|
|
16932
|
+
const Le = Re ? he.findIndex((H) => H.value === Re) : 0, Ee = !Z && (he.length > 0 ? ge : ge && !!I), _e = () => {
|
|
16932
16933
|
ve((H) => {
|
|
16933
16934
|
var ie;
|
|
16934
16935
|
const ue = Qe(H, (de) => de - 1, (de) => de > 0);
|
|
16935
|
-
return Ve.current = Fe.current[(ie = he[ue]) == null ? void 0 : ie.value], Ee && De({ alignment:
|
|
16936
|
+
return Ve.current = Fe.current[(ie = he[ue]) == null ? void 0 : ie.value], Ee && De({ alignment: Ce ? "start" : "end" }), ue;
|
|
16936
16937
|
});
|
|
16937
16938
|
}, $e = () => {
|
|
16938
16939
|
ve((H) => {
|
|
16939
16940
|
var ie;
|
|
16940
16941
|
const ue = Qe(H, (de) => de + 1, (de) => de < he.length - 1);
|
|
16941
|
-
return Ve.current = Fe.current[(ie = he[ue]) == null ? void 0 : ie.value], Ee && De({ alignment:
|
|
16942
|
+
return Ve.current = Fe.current[(ie = he[ue]) == null ? void 0 : ie.value], Ee && De({ alignment: Ce ? "end" : "start" }), ue;
|
|
16942
16943
|
});
|
|
16943
16944
|
}, Ke = () => window.setTimeout(() => {
|
|
16944
16945
|
var H;
|
|
16945
|
-
Ve.current = Fe.current[(H = he[Le]) == null ? void 0 : H.value], De({ alignment:
|
|
16946
|
+
Ve.current = Fe.current[(H = he[Le]) == null ? void 0 : H.value], De({ alignment: Ce ? "end" : "start" });
|
|
16946
16947
|
}, 50);
|
|
16947
16948
|
useDidUpdate(() => {
|
|
16948
16949
|
Ee && Ke();
|
|
@@ -16950,26 +16951,26 @@ const defaultProps$8 = {
|
|
|
16950
16951
|
const N = (H) => {
|
|
16951
16952
|
switch (typeof g == "function" && g(H), H.key) {
|
|
16952
16953
|
case "ArrowUp": {
|
|
16953
|
-
H.preventDefault(), ge ?
|
|
16954
|
+
H.preventDefault(), ge ? Ce ? _e() : $e() : (ve(Le), Se(!0), Ke());
|
|
16954
16955
|
break;
|
|
16955
16956
|
}
|
|
16956
16957
|
case "ArrowDown": {
|
|
16957
|
-
H.preventDefault(), ge ?
|
|
16958
|
+
H.preventDefault(), ge ? Ce ? $e() : _e() : (ve(Le), Se(!0), Ke());
|
|
16958
16959
|
break;
|
|
16959
16960
|
}
|
|
16960
16961
|
case "Home": {
|
|
16961
|
-
if (!
|
|
16962
|
+
if (!C) {
|
|
16962
16963
|
H.preventDefault(), ge || Se(!0);
|
|
16963
16964
|
const ie = he.findIndex((ue) => !ue.disabled);
|
|
16964
|
-
ve(ie), Ee && De({ alignment:
|
|
16965
|
+
ve(ie), Ee && De({ alignment: Ce ? "end" : "start" });
|
|
16965
16966
|
}
|
|
16966
16967
|
break;
|
|
16967
16968
|
}
|
|
16968
16969
|
case "End": {
|
|
16969
|
-
if (!
|
|
16970
|
+
if (!C) {
|
|
16970
16971
|
H.preventDefault(), ge || Se(!0);
|
|
16971
16972
|
const ie = he.map((ue) => !!ue.disabled).lastIndexOf(!1);
|
|
16972
|
-
ve(ie), Ee && De({ alignment:
|
|
16973
|
+
ve(ie), Ee && De({ alignment: Ce ? "end" : "start" });
|
|
16973
16974
|
}
|
|
16974
16975
|
break;
|
|
16975
16976
|
}
|
|
@@ -16978,22 +16979,22 @@ const defaultProps$8 = {
|
|
|
16978
16979
|
break;
|
|
16979
16980
|
}
|
|
16980
16981
|
case " ": {
|
|
16981
|
-
|
|
16982
|
+
C || (H.preventDefault(), he[ke] && ge ? je(he[ke]) : (Se(!0), ve(Le), Ke()));
|
|
16982
16983
|
break;
|
|
16983
16984
|
}
|
|
16984
16985
|
case "Enter":
|
|
16985
|
-
|
|
16986
|
+
C || H.preventDefault(), he[ke] && ge && (H.preventDefault(), je(he[ke]));
|
|
16986
16987
|
}
|
|
16987
16988
|
}, B = (H) => {
|
|
16988
16989
|
typeof h == "function" && h(H);
|
|
16989
|
-
const ie = Ue.find((ue) => ue.value ===
|
|
16990
|
+
const ie = Ue.find((ue) => ue.value === Re);
|
|
16990
16991
|
F && he[ke] && ge && je(he[ke]), Oe((ie == null ? void 0 : ie.label) || ""), Se(!1);
|
|
16991
16992
|
}, Y = (H) => {
|
|
16992
|
-
typeof b == "function" && b(H),
|
|
16993
|
+
typeof b == "function" && b(H), C && Se(!0);
|
|
16993
16994
|
}, oe = (H) => {
|
|
16994
|
-
Z || (Oe(H.currentTarget.value),
|
|
16995
|
+
Z || (Oe(H.currentTarget.value), R && H.currentTarget.value === "" && Me(null), ve(-1), Se(!0));
|
|
16995
16996
|
}, ce = () => {
|
|
16996
|
-
Z || (Se(!ge),
|
|
16997
|
+
Z || (Se(!ge), Re && !ge && ve(Le));
|
|
16997
16998
|
};
|
|
16998
16999
|
return /* @__PURE__ */ React__default.createElement(Input.Wrapper, __spreadProps$e(__spreadValues$h({}, i), {
|
|
16999
17000
|
__staticSelector: "Select"
|
|
@@ -17024,7 +17025,7 @@ const defaultProps$8 = {
|
|
|
17024
17025
|
}, /* @__PURE__ */ React__default.createElement("input", {
|
|
17025
17026
|
type: "hidden",
|
|
17026
17027
|
name: Q,
|
|
17027
|
-
value:
|
|
17028
|
+
value: Re || "",
|
|
17028
17029
|
form: se,
|
|
17029
17030
|
disabled: k
|
|
17030
17031
|
}), /* @__PURE__ */ React__default.createElement(Input, __spreadValues$h(__spreadProps$e(__spreadValues$h(__spreadValues$h({
|
|
@@ -17043,12 +17044,12 @@ const defaultProps$8 = {
|
|
|
17043
17044
|
onMouseDown: ce,
|
|
17044
17045
|
onBlur: B,
|
|
17045
17046
|
onFocus: Y,
|
|
17046
|
-
readOnly: !
|
|
17047
|
+
readOnly: !C || Z,
|
|
17047
17048
|
disabled: k,
|
|
17048
17049
|
"data-mantine-stop-propagation": Ee,
|
|
17049
17050
|
name: null,
|
|
17050
17051
|
classNames: __spreadProps$e(__spreadValues$h({}, E), {
|
|
17051
|
-
input: Ze({ [be.input]: !
|
|
17052
|
+
input: Ze({ [be.input]: !C }, E == null ? void 0 : E.input)
|
|
17052
17053
|
})
|
|
17053
17054
|
}), getSelectRightSectionProps({
|
|
17054
17055
|
theme: Ne,
|
|
@@ -17056,7 +17057,7 @@ const defaultProps$8 = {
|
|
|
17056
17057
|
rightSectionWidth: V,
|
|
17057
17058
|
styles: w,
|
|
17058
17059
|
size: a.size,
|
|
17059
|
-
shouldClear:
|
|
17060
|
+
shouldClear: R && !!Pe,
|
|
17060
17061
|
onClear: st,
|
|
17061
17062
|
error: i.error,
|
|
17062
17063
|
clearButtonProps: le,
|
|
@@ -17076,7 +17077,7 @@ const defaultProps$8 = {
|
|
|
17076
17077
|
hovered: ke,
|
|
17077
17078
|
classNames: E,
|
|
17078
17079
|
styles: w,
|
|
17079
|
-
isItemSelected: (H) => H ===
|
|
17080
|
+
isItemSelected: (H) => H === Re,
|
|
17080
17081
|
uuid: a.id,
|
|
17081
17082
|
__staticSelector: "Select",
|
|
17082
17083
|
onItemHover: ve,
|
|
@@ -17205,13 +17206,13 @@ const Thumb = forwardRef$1(({
|
|
|
17205
17206
|
onBlur: w,
|
|
17206
17207
|
showLabelOnHover: A,
|
|
17207
17208
|
isHovered: P,
|
|
17208
|
-
children:
|
|
17209
|
-
disabled:
|
|
17209
|
+
children: C = null,
|
|
17210
|
+
disabled: R,
|
|
17210
17211
|
unstyled: I,
|
|
17211
17212
|
thumbSize: j,
|
|
17212
17213
|
variant: k
|
|
17213
17214
|
}, O) => {
|
|
17214
|
-
const { classes: T, cx: M, theme: V } = useStyles$d({ color: d, disabled:
|
|
17215
|
+
const { classes: T, cx: M, theme: V } = useStyles$d({ color: d, disabled: R, 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;
|
|
17215
17216
|
return /* @__PURE__ */ React__default.createElement(Box, {
|
|
17216
17217
|
tabIndex: 0,
|
|
17217
17218
|
role: "slider",
|
|
@@ -17232,7 +17233,7 @@ const Thumb = forwardRef$1(({
|
|
|
17232
17233
|
onKeyDownCapture: u,
|
|
17233
17234
|
onClick: (F) => F.stopPropagation(),
|
|
17234
17235
|
style: { [V.dir === "rtl" ? "right" : "left"]: `${a}%` }
|
|
17235
|
-
},
|
|
17236
|
+
}, C, /* @__PURE__ */ React__default.createElement(Transition, {
|
|
17236
17237
|
mounted: i != null && J,
|
|
17237
17238
|
duration: b,
|
|
17238
17239
|
transition: h,
|
|
@@ -17558,8 +17559,8 @@ const defaultProps$7 = {
|
|
|
17558
17559
|
label: w,
|
|
17559
17560
|
labelTransition: A,
|
|
17560
17561
|
labelTransitionDuration: P,
|
|
17561
|
-
labelTransitionTimingFunction:
|
|
17562
|
-
labelAlwaysOn:
|
|
17562
|
+
labelTransitionTimingFunction: C,
|
|
17563
|
+
labelAlwaysOn: R,
|
|
17563
17564
|
thumbLabel: I,
|
|
17564
17565
|
showLabelOnHover: j,
|
|
17565
17566
|
thumbChildren: k,
|
|
@@ -17694,8 +17695,8 @@ const defaultProps$7 = {
|
|
|
17694
17695
|
ref: _,
|
|
17695
17696
|
labelTransition: A,
|
|
17696
17697
|
labelTransitionDuration: P,
|
|
17697
|
-
labelTransitionTimingFunction:
|
|
17698
|
-
labelAlwaysOn:
|
|
17698
|
+
labelTransitionTimingFunction: C,
|
|
17699
|
+
labelAlwaysOn: R,
|
|
17699
17700
|
classNames: a,
|
|
17700
17701
|
styles: i,
|
|
17701
17702
|
thumbLabel: I,
|
|
@@ -17979,8 +17980,8 @@ const defaultProps$3 = {}, Tab = forwardRef$1((r, n) => {
|
|
|
17979
17980
|
classNames: h.classNames,
|
|
17980
17981
|
styles: h.styles,
|
|
17981
17982
|
variant: h.variant
|
|
17982
|
-
}), w = a === h.value, A = h.getPanelId(a), P = h.mountedPanelIds.includes(a) ? A : void 0,
|
|
17983
|
-
h.onTabChange(h.allowTabDeactivation && a === h.value ? null : a), c == null || c(
|
|
17983
|
+
}), w = a === h.value, A = h.getPanelId(a), P = h.mountedPanelIds.includes(a) ? A : void 0, C = (R) => {
|
|
17984
|
+
h.onTabChange(h.allowTabDeactivation && a === h.value ? null : a), c == null || c(R);
|
|
17984
17985
|
};
|
|
17985
17986
|
return /* @__PURE__ */ React__default.createElement(UnstyledButton, __spreadProps$5(__spreadValues$6({}, g), {
|
|
17986
17987
|
unstyled: h.unstyled,
|
|
@@ -17993,7 +17994,7 @@ const defaultProps$3 = {}, Tab = forwardRef$1((r, n) => {
|
|
|
17993
17994
|
"aria-selected": w,
|
|
17994
17995
|
tabIndex: w || h.value === null ? 0 : -1,
|
|
17995
17996
|
"aria-controls": P,
|
|
17996
|
-
onClick:
|
|
17997
|
+
onClick: C,
|
|
17997
17998
|
onKeyDown: createScopedKeydownHandler({
|
|
17998
17999
|
siblingSelector: '[role="tab"]',
|
|
17999
18000
|
parentSelector: '[role="tablist"]',
|
|
@@ -18032,7 +18033,7 @@ function TabsProvider({
|
|
|
18032
18033
|
styles: S,
|
|
18033
18034
|
unstyled: E
|
|
18034
18035
|
}) {
|
|
18035
|
-
const w = useId$2(c), [A, P] = useState$1([]), [
|
|
18036
|
+
const w = useId$2(c), [A, P] = useState$1([]), [C, R] = useUncontrolled({
|
|
18036
18037
|
value: n,
|
|
18037
18038
|
defaultValue: r,
|
|
18038
18039
|
finalValue: null,
|
|
@@ -18041,14 +18042,14 @@ function TabsProvider({
|
|
|
18041
18042
|
return /* @__PURE__ */ React__default.createElement(TabsContextProvider, {
|
|
18042
18043
|
value: {
|
|
18043
18044
|
placement: b,
|
|
18044
|
-
value:
|
|
18045
|
+
value: C,
|
|
18045
18046
|
orientation: a,
|
|
18046
18047
|
id: w,
|
|
18047
18048
|
loop: l,
|
|
18048
18049
|
activateTabWithKeyboard: u,
|
|
18049
18050
|
getTabId: getSafeId(`${w}-tab`, TABS_ERRORS.value),
|
|
18050
18051
|
getPanelId: getSafeId(`${w}-panel`, TABS_ERRORS.value),
|
|
18051
|
-
onTabChange:
|
|
18052
|
+
onTabChange: R,
|
|
18052
18053
|
setMountedPanelIds: P,
|
|
18053
18054
|
mountedPanelIds: A,
|
|
18054
18055
|
allowTabDeactivation: d,
|
|
@@ -18114,8 +18115,8 @@ const defaultProps$2 = {
|
|
|
18114
18115
|
radius: w,
|
|
18115
18116
|
inverted: A,
|
|
18116
18117
|
keepMounted: P,
|
|
18117
|
-
placement:
|
|
18118
|
-
} = o,
|
|
18118
|
+
placement: C
|
|
18119
|
+
} = o, R = __objRest$4(o, [
|
|
18119
18120
|
"defaultValue",
|
|
18120
18121
|
"value",
|
|
18121
18122
|
"orientation",
|
|
@@ -18135,7 +18136,7 @@ const defaultProps$2 = {
|
|
|
18135
18136
|
"inverted",
|
|
18136
18137
|
"keepMounted",
|
|
18137
18138
|
"placement"
|
|
18138
|
-
]), { classes: I, cx: j } = useStyles$4({ orientation: l, color: b, radius: w, inverted: A, placement:
|
|
18139
|
+
]), { classes: I, cx: j } = useStyles$4({ orientation: l, color: b, radius: w, inverted: A, placement: C }, { unstyled: v, name: "Tabs", classNames: S, styles: E, variant: h });
|
|
18139
18140
|
return /* @__PURE__ */ React__default.createElement(TabsProvider, {
|
|
18140
18141
|
activateTabWithKeyboard: u,
|
|
18141
18142
|
defaultValue: a,
|
|
@@ -18150,11 +18151,11 @@ const defaultProps$2 = {
|
|
|
18150
18151
|
radius: w,
|
|
18151
18152
|
inverted: A,
|
|
18152
18153
|
keepMounted: P,
|
|
18153
|
-
placement:
|
|
18154
|
+
placement: C,
|
|
18154
18155
|
classNames: S,
|
|
18155
18156
|
styles: E,
|
|
18156
18157
|
unstyled: v
|
|
18157
|
-
}, /* @__PURE__ */ React__default.createElement(Box, __spreadProps$4(__spreadValues$5({},
|
|
18158
|
+
}, /* @__PURE__ */ React__default.createElement(Box, __spreadProps$4(__spreadValues$5({}, R), {
|
|
18158
18159
|
className: j(I.root, x),
|
|
18159
18160
|
id: p,
|
|
18160
18161
|
ref: n
|
|
@@ -18550,8 +18551,8 @@ function stringify(r, n, o, a = {}) {
|
|
|
18550
18551
|
const w = i ? " " : "", A = i ? `
|
|
18551
18552
|
` : "";
|
|
18552
18553
|
let P = `var x${w}=${w}${E};${A}`;
|
|
18553
|
-
for (const [
|
|
18554
|
-
const I = quote_1.stringifyPath(
|
|
18554
|
+
for (const [C, R] of d.entries()) {
|
|
18555
|
+
const I = quote_1.stringifyPath(C, v), j = quote_1.stringifyPath(R, v);
|
|
18555
18556
|
P += `x${I}${w}=${w}x${j};${A}`;
|
|
18556
18557
|
}
|
|
18557
18558
|
return `(function${w}()${w}{${A}${P}return x;${A}}())`;
|
|
@@ -18607,13 +18608,13 @@ function PanelWithForwardedRef({
|
|
|
18607
18608
|
getPanelStyle: w,
|
|
18608
18609
|
registerPanel: A,
|
|
18609
18610
|
resizePanel: P,
|
|
18610
|
-
unregisterPanel:
|
|
18611
|
-
} = x,
|
|
18611
|
+
unregisterPanel: C
|
|
18612
|
+
} = x, R = useRef({
|
|
18612
18613
|
onCollapse: m,
|
|
18613
18614
|
onResize: p
|
|
18614
18615
|
});
|
|
18615
18616
|
if (useEffect(() => {
|
|
18616
|
-
|
|
18617
|
+
R.current.onCollapse = m, R.current.onResize = p;
|
|
18617
18618
|
}), d < 0 || d > 100)
|
|
18618
18619
|
throw Error(`Panel minSize must be between 0 and 100, but was ${d}`);
|
|
18619
18620
|
if (u < 0 || u > 100)
|
|
@@ -18626,7 +18627,7 @@ function PanelWithForwardedRef({
|
|
|
18626
18627
|
const I = w(v, i), j = useRef({
|
|
18627
18628
|
size: parseSizeFromStyle(I)
|
|
18628
18629
|
}), k = useRef({
|
|
18629
|
-
callbacksRef:
|
|
18630
|
+
callbacksRef: R,
|
|
18630
18631
|
collapsedSize: o,
|
|
18631
18632
|
collapsible: a,
|
|
18632
18633
|
defaultSize: i,
|
|
@@ -18637,10 +18638,10 @@ function PanelWithForwardedRef({
|
|
|
18637
18638
|
order: g
|
|
18638
18639
|
});
|
|
18639
18640
|
return useIsomorphicLayoutEffect(() => {
|
|
18640
|
-
j.current.size = parseSizeFromStyle(I), k.current.callbacksRef =
|
|
18641
|
+
j.current.size = parseSizeFromStyle(I), k.current.callbacksRef = R, 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;
|
|
18641
18642
|
}), useIsomorphicLayoutEffect(() => (A(v, k), () => {
|
|
18642
|
-
|
|
18643
|
-
}), [g, v, A,
|
|
18643
|
+
C(v);
|
|
18644
|
+
}), [g, v, A, C]), useImperativeHandle(l, () => ({
|
|
18644
18645
|
collapse: () => S(v),
|
|
18645
18646
|
expand: () => E(v),
|
|
18646
18647
|
getCollapsed() {
|
|
@@ -18815,12 +18816,12 @@ function useWindowSplitterPanelGroupBehavior({
|
|
|
18815
18816
|
if (S == null || E == null)
|
|
18816
18817
|
return () => {
|
|
18817
18818
|
};
|
|
18818
|
-
let w = 0, A = 100, P = 0,
|
|
18819
|
+
let w = 0, A = 100, P = 0, C = 0;
|
|
18819
18820
|
v.forEach((T) => {
|
|
18820
|
-
T.current.id === S ? (A = T.current.maxSize, w = T.current.minSize) : (P += T.current.minSize,
|
|
18821
|
+
T.current.id === S ? (A = T.current.maxSize, w = T.current.minSize) : (P += T.current.minSize, C += T.current.maxSize);
|
|
18821
18822
|
});
|
|
18822
|
-
const
|
|
18823
|
-
b.setAttribute("aria-valuemax", "" + Math.round(
|
|
18823
|
+
const R = Math.min(A, 100 - P), I = Math.max(w, (v.length - 1) * 100 - C), j = getFlexGrow(u, S, i);
|
|
18824
|
+
b.setAttribute("aria-valuemax", "" + Math.round(R)), b.setAttribute("aria-valuemin", "" + Math.round(I)), b.setAttribute("aria-valuenow", "" + Math.round(parseInt(j)));
|
|
18824
18825
|
const k = (T) => {
|
|
18825
18826
|
if (!T.defaultPrevented)
|
|
18826
18827
|
switch (T.key) {
|
|
@@ -18939,10 +18940,10 @@ function getMovement(r, n, o, a, i, l, c) {
|
|
|
18939
18940
|
E = -x;
|
|
18940
18941
|
break;
|
|
18941
18942
|
}
|
|
18942
|
-
const [w, A] = getResizeHandlePanelIds(n, o, a), P = E < 0 ? w : A,
|
|
18943
|
-
if (
|
|
18944
|
-
const I = p[
|
|
18945
|
-
(I === 0 || I.toPrecision(PRECISION) ===
|
|
18943
|
+
const [w, A] = getResizeHandlePanelIds(n, o, a), P = E < 0 ? w : A, C = a.findIndex((I) => I.current.id === P), R = a[C];
|
|
18944
|
+
if (R.current.collapsible) {
|
|
18945
|
+
const I = p[C];
|
|
18946
|
+
(I === 0 || I.toPrecision(PRECISION) === R.current.minSize.toPrecision(PRECISION)) && (E = E < 0 ? -R.current.minSize * x : R.current.minSize * x);
|
|
18946
18947
|
}
|
|
18947
18948
|
return E;
|
|
18948
18949
|
} else
|
|
@@ -19075,7 +19076,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19075
19076
|
useEffect(() => {
|
|
19076
19077
|
E.current.onLayout = u;
|
|
19077
19078
|
});
|
|
19078
|
-
const w = useRef({}), [A, P] = useState([]),
|
|
19079
|
+
const w = useRef({}), [A, P] = useState([]), C = useRef(/* @__PURE__ */ new Map()), R = useRef(0), I = useRef({
|
|
19079
19080
|
direction: a,
|
|
19080
19081
|
panels: x,
|
|
19081
19082
|
sizes: A
|
|
@@ -19103,7 +19104,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19103
19104
|
panels: x,
|
|
19104
19105
|
setSizes: P,
|
|
19105
19106
|
sizes: A,
|
|
19106
|
-
panelSizeBeforeCollapse:
|
|
19107
|
+
panelSizeBeforeCollapse: C
|
|
19107
19108
|
}), useEffect(() => {
|
|
19108
19109
|
const {
|
|
19109
19110
|
onLayout: F
|
|
@@ -19188,12 +19189,12 @@ function PanelGroupWithForwardedRef({
|
|
|
19188
19189
|
return;
|
|
19189
19190
|
const re = getPanelGroup(g).getBoundingClientRect(), $ = G === "horizontal";
|
|
19190
19191
|
document.dir === "rtl" && $ && (Q = -Q);
|
|
19191
|
-
const ae = $ ? re.width : re.height, se = Q / ae * 100, K = adjustByDelta(q, ee, te, _, se, z,
|
|
19192
|
-
if ((isMouseEvent(q) || isTouchEvent(q)) &&
|
|
19192
|
+
const ae = $ ? re.width : re.height, se = Q / ae * 100, K = adjustByDelta(q, ee, te, _, se, z, C.current, S.current), Z = !areEqual(z, K);
|
|
19193
|
+
if ((isMouseEvent(q) || isTouchEvent(q)) && R.current != se && setGlobalCursorStyle(Z ? $ ? "horizontal" : "vertical" : $ ? Q < 0 ? "horizontal-min" : "horizontal-max" : Q < 0 ? "vertical-min" : "vertical-max"), Z) {
|
|
19193
19194
|
const le = w.current;
|
|
19194
19195
|
P(K), callPanelCallbacks(U, K, le);
|
|
19195
19196
|
}
|
|
19196
|
-
|
|
19197
|
+
R.current = se;
|
|
19197
19198
|
}, [g]), T = useCallback((F) => {
|
|
19198
19199
|
v((L) => {
|
|
19199
19200
|
if (!L.has(F))
|
|
@@ -19220,11 +19221,11 @@ function PanelGroupWithForwardedRef({
|
|
|
19220
19221
|
const _ = q[te];
|
|
19221
19222
|
if (_ === ee)
|
|
19222
19223
|
return;
|
|
19223
|
-
|
|
19224
|
+
C.current.set(F, _);
|
|
19224
19225
|
const [Q, ne] = getBeforeAndAfterIds(F, U);
|
|
19225
19226
|
if (Q == null || ne == null)
|
|
19226
19227
|
return;
|
|
19227
|
-
const $ = te === U.length - 1 ? _ : ee - _, ae = adjustByDelta(null, L, Q, ne, $, q,
|
|
19228
|
+
const $ = te === U.length - 1 ? _ : ee - _, ae = adjustByDelta(null, L, Q, ne, $, q, C.current, null);
|
|
19228
19229
|
if (q !== ae) {
|
|
19229
19230
|
const se = w.current;
|
|
19230
19231
|
P(ae), callPanelCallbacks(U, ae, se);
|
|
@@ -19239,7 +19240,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19239
19240
|
const {
|
|
19240
19241
|
collapsedSize: ee,
|
|
19241
19242
|
minSize: z
|
|
19242
|
-
} = G.current, U =
|
|
19243
|
+
} = G.current, U = C.current.get(F) || z;
|
|
19243
19244
|
if (!U)
|
|
19244
19245
|
return;
|
|
19245
19246
|
const te = panelsMapToSortedArray(L), _ = te.indexOf(G);
|
|
@@ -19248,7 +19249,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19248
19249
|
const [ne, re] = getBeforeAndAfterIds(F, te);
|
|
19249
19250
|
if (ne == null || re == null)
|
|
19250
19251
|
return;
|
|
19251
|
-
const ae = _ === te.length - 1 ? ee - U : U, se = adjustByDelta(null, L, ne, re, ae, q,
|
|
19252
|
+
const ae = _ === te.length - 1 ? ee - U : U, se = adjustByDelta(null, L, ne, re, ae, q, C.current, null);
|
|
19252
19253
|
if (q !== se) {
|
|
19253
19254
|
const K = w.current;
|
|
19254
19255
|
P(se), callPanelCallbacks(te, se, K);
|
|
@@ -19275,7 +19276,7 @@ function PanelGroupWithForwardedRef({
|
|
|
19275
19276
|
const [$, ae] = getBeforeAndAfterIds(F, Q);
|
|
19276
19277
|
if ($ == null || ae == null)
|
|
19277
19278
|
return;
|
|
19278
|
-
const K = ne === Q.length - 1 ? re - L : L - re, Z = adjustByDelta(null, q, $, ae, K, G,
|
|
19279
|
+
const K = ne === Q.length - 1 ? re - L : L - re, Z = adjustByDelta(null, q, $, ae, K, G, C.current, null);
|
|
19279
19280
|
if (G !== Z) {
|
|
19280
19281
|
const le = w.current;
|
|
19281
19282
|
P(Z), callPanelCallbacks(Q, Z, le);
|
|
@@ -19357,7 +19358,7 @@ function PanelResizeHandle$1({
|
|
|
19357
19358
|
registerResizeHandle: b,
|
|
19358
19359
|
startDragging: x,
|
|
19359
19360
|
stopDragging: v
|
|
19360
|
-
} = m, S = useUniqueId(a), E = p === S, [w, A] = useState(!1), [P,
|
|
19361
|
+
} = m, S = useUniqueId(a), E = p === S, [w, A] = useState(!1), [P, C] = useState(null), R = useCallback(() => {
|
|
19361
19362
|
u.current.blur(), v();
|
|
19362
19363
|
const {
|
|
19363
19364
|
onDragging: k
|
|
@@ -19366,10 +19367,10 @@ function PanelResizeHandle$1({
|
|
|
19366
19367
|
}, [v]);
|
|
19367
19368
|
useEffect(() => {
|
|
19368
19369
|
if (o)
|
|
19369
|
-
|
|
19370
|
+
C(null);
|
|
19370
19371
|
else {
|
|
19371
19372
|
const j = b(S);
|
|
19372
|
-
|
|
19373
|
+
C(() => j);
|
|
19373
19374
|
}
|
|
19374
19375
|
}, [o, S, b]), useEffect(() => {
|
|
19375
19376
|
if (o || P == null || !E)
|
|
@@ -19379,10 +19380,10 @@ function PanelResizeHandle$1({
|
|
|
19379
19380
|
}, k = (M) => {
|
|
19380
19381
|
P(M);
|
|
19381
19382
|
}, T = u.current.ownerDocument;
|
|
19382
|
-
return T.body.addEventListener("contextmenu",
|
|
19383
|
-
T.body.removeEventListener("contextmenu",
|
|
19383
|
+
return T.body.addEventListener("contextmenu", R), T.body.addEventListener("mousemove", j), T.body.addEventListener("touchmove", j), T.body.addEventListener("mouseleave", k), window.addEventListener("mouseup", R), window.addEventListener("touchend", R), () => {
|
|
19384
|
+
T.body.removeEventListener("contextmenu", R), T.body.removeEventListener("mousemove", j), T.body.removeEventListener("touchmove", j), T.body.removeEventListener("mouseleave", k), window.removeEventListener("mouseup", R), window.removeEventListener("touchend", R);
|
|
19384
19385
|
};
|
|
19385
|
-
}, [g, o, E, P,
|
|
19386
|
+
}, [g, o, E, P, R]), useWindowSplitterResizeHandlerBehavior({
|
|
19386
19387
|
disabled: o,
|
|
19387
19388
|
handleId: S,
|
|
19388
19389
|
resizeHandler: P
|
|
@@ -19409,9 +19410,9 @@ function PanelResizeHandle$1({
|
|
|
19409
19410
|
} = d.current;
|
|
19410
19411
|
k && k(!0);
|
|
19411
19412
|
},
|
|
19412
|
-
onMouseUp:
|
|
19413
|
-
onTouchCancel:
|
|
19414
|
-
onTouchEnd:
|
|
19413
|
+
onMouseUp: R,
|
|
19414
|
+
onTouchCancel: R,
|
|
19415
|
+
onTouchEnd: R,
|
|
19415
19416
|
onTouchStart: (j) => {
|
|
19416
19417
|
x(S, j.nativeEvent);
|
|
19417
19418
|
const {
|
|
@@ -19617,17 +19618,17 @@ function JSONNestedNode(r) {
|
|
|
19617
19618
|
...r,
|
|
19618
19619
|
circularCache: n,
|
|
19619
19620
|
level: g + 1
|
|
19620
|
-
}) : null, P = /* @__PURE__ */ React__default.createElement("span", v("nestedNodeItemType", S), b),
|
|
19621
|
-
return u ? /* @__PURE__ */ React__default.createElement("li", v("rootNode", ...
|
|
19621
|
+
}) : null, P = /* @__PURE__ */ React__default.createElement("span", v("nestedNodeItemType", S), b), C = c(h, i, P, a(i, o), m), R = [m, h, S, l];
|
|
19622
|
+
return u ? /* @__PURE__ */ React__default.createElement("li", v("rootNode", ...R), /* @__PURE__ */ React__default.createElement("ul", v("rootNodeChildren", ...R), A)) : /* @__PURE__ */ React__default.createElement("li", v("nestedNode", ...R), l && /* @__PURE__ */ React__default.createElement(JSONArrow, {
|
|
19622
19623
|
styling: v,
|
|
19623
19624
|
nodeType: h,
|
|
19624
19625
|
expanded: S,
|
|
19625
19626
|
onClick: w
|
|
19626
|
-
}), /* @__PURE__ */ React__default.createElement("label", _extends$1({}, v(["label", "nestedNodeLabel"], ...
|
|
19627
|
+
}), /* @__PURE__ */ React__default.createElement("label", _extends$1({}, v(["label", "nestedNodeLabel"], ...R), {
|
|
19627
19628
|
onClick: w
|
|
19628
|
-
}), p(...
|
|
19629
|
+
}), p(...R)), /* @__PURE__ */ React__default.createElement("span", _extends$1({}, v("nestedNodeItemString", ...R), {
|
|
19629
19630
|
onClick: w
|
|
19630
|
-
}),
|
|
19631
|
+
}), C), /* @__PURE__ */ React__default.createElement("ul", v("nestedNodeChildren", ...R), A));
|
|
19631
19632
|
}
|
|
19632
19633
|
function createItemString$2(r) {
|
|
19633
19634
|
const n = Object.getOwnPropertyNames(r).length;
|
|
@@ -21809,9 +21810,9 @@ function createHybrid(r, n, o, a, i, l, c, u, d, m) {
|
|
|
21809
21810
|
for (var E = arguments.length, w = Array(E), A = E; A--; )
|
|
21810
21811
|
w[A] = arguments[A];
|
|
21811
21812
|
if (b)
|
|
21812
|
-
var P = getHolder(S),
|
|
21813
|
-
if (a && (w = composeArgs(w, a, i, b)), l && (w = composeArgsRight(w, l, c, b)), E -=
|
|
21814
|
-
var
|
|
21813
|
+
var P = getHolder(S), C = countHolders(w, P);
|
|
21814
|
+
if (a && (w = composeArgs(w, a, i, b)), l && (w = composeArgsRight(w, l, c, b)), E -= C, b && E < m) {
|
|
21815
|
+
var R = replaceHolders(w, P);
|
|
21815
21816
|
return createRecurry(
|
|
21816
21817
|
r,
|
|
21817
21818
|
n,
|
|
@@ -21819,7 +21820,7 @@ function createHybrid(r, n, o, a, i, l, c, u, d, m) {
|
|
|
21819
21820
|
S.placeholder,
|
|
21820
21821
|
o,
|
|
21821
21822
|
w,
|
|
21822
|
-
|
|
21823
|
+
R,
|
|
21823
21824
|
u,
|
|
21824
21825
|
d,
|
|
21825
21826
|
m - E
|
|
@@ -22689,8 +22690,8 @@ var Prism$1 = function() {
|
|
|
22689
22690
|
b.hasOwnProperty(E) || (S[E] = v[E]);
|
|
22690
22691
|
}
|
|
22691
22692
|
var A = x[g];
|
|
22692
|
-
return x[g] = S, a.languages.DFS(a.languages, function(P,
|
|
22693
|
-
|
|
22693
|
+
return x[g] = S, a.languages.DFS(a.languages, function(P, C) {
|
|
22694
|
+
C === A && P != g && (this[P] = S);
|
|
22694
22695
|
}), S;
|
|
22695
22696
|
},
|
|
22696
22697
|
// Traverse a language definition with Depth First Search
|
|
@@ -22852,7 +22853,7 @@ var Prism$1 = function() {
|
|
|
22852
22853
|
for (var A = 0; A < w.length; ++A) {
|
|
22853
22854
|
if (S && S.cause == E + "," + A)
|
|
22854
22855
|
return;
|
|
22855
|
-
var P = w[A],
|
|
22856
|
+
var P = w[A], C = P.inside, R = !!P.lookbehind, I = !!P.greedy, j = P.alias;
|
|
22856
22857
|
if (I && !P.pattern.global) {
|
|
22857
22858
|
var k = P.pattern.toString().match(/[imsuy]*$/)[0];
|
|
22858
22859
|
P.pattern = RegExp(P.pattern.source, k + "g");
|
|
@@ -22864,7 +22865,7 @@ var Prism$1 = function() {
|
|
|
22864
22865
|
if (!(V instanceof i)) {
|
|
22865
22866
|
var D = 1, W;
|
|
22866
22867
|
if (I) {
|
|
22867
|
-
if (W = l(O, M, g,
|
|
22868
|
+
if (W = l(O, M, g, R), !W || W.index >= g.length)
|
|
22868
22869
|
break;
|
|
22869
22870
|
var q = W.index, J = W.index + W[0].length, F = M;
|
|
22870
22871
|
for (F += T.value.length; q >= F; )
|
|
@@ -22874,13 +22875,13 @@ var Prism$1 = function() {
|
|
|
22874
22875
|
for (var L = T; L !== h.tail && (F < J || typeof L.value == "string"); L = L.next)
|
|
22875
22876
|
D++, F += L.value.length;
|
|
22876
22877
|
D--, V = g.slice(M, F), W.index -= M;
|
|
22877
|
-
} else if (W = l(O, 0, V,
|
|
22878
|
+
} else if (W = l(O, 0, V, R), !W)
|
|
22878
22879
|
continue;
|
|
22879
22880
|
var q = W.index, G = W[0], ee = V.slice(0, q), z = V.slice(q + G.length), U = M + V.length;
|
|
22880
22881
|
S && U > S.reach && (S.reach = U);
|
|
22881
22882
|
var te = T.prev;
|
|
22882
22883
|
ee && (te = d(h, te, ee), M += ee.length), m(h, te, D);
|
|
22883
|
-
var _ = new i(E,
|
|
22884
|
+
var _ = new i(E, C ? a.tokenize(G, C) : G, j, G);
|
|
22884
22885
|
if (T = d(h, te, _), z && d(h, T, z), D > 1) {
|
|
22885
22886
|
var Q = {
|
|
22886
22887
|
cause: E + "," + A,
|
|
@@ -24370,15 +24371,15 @@ prism.languages.sql = {
|
|
|
24370
24371
|
for (var j = I.content, k; b.indexOf(k = u(E++, v)) !== -1; )
|
|
24371
24372
|
;
|
|
24372
24373
|
return w[k] = j, k;
|
|
24373
|
-
}).join(""), P = d(A, x, v),
|
|
24374
|
+
}).join(""), P = d(A, x, v), C = Object.keys(w);
|
|
24374
24375
|
E = 0;
|
|
24375
|
-
function
|
|
24376
|
+
function R(I) {
|
|
24376
24377
|
for (var j = 0; j < I.length; j++) {
|
|
24377
|
-
if (E >=
|
|
24378
|
+
if (E >= C.length)
|
|
24378
24379
|
return;
|
|
24379
24380
|
var k = I[j];
|
|
24380
24381
|
if (typeof k == "string" || typeof k.content == "string") {
|
|
24381
|
-
var O =
|
|
24382
|
+
var O = C[E], T = typeof k == "string" ? k : (
|
|
24382
24383
|
/** @type {string} */
|
|
24383
24384
|
k.content
|
|
24384
24385
|
), M = T.indexOf(O);
|
|
@@ -24387,17 +24388,17 @@ prism.languages.sql = {
|
|
|
24387
24388
|
var V = T.substring(0, M), D = m(w[O]), W = T.substring(M + O.length), J = [];
|
|
24388
24389
|
if (V && J.push(V), J.push(D), W) {
|
|
24389
24390
|
var F = [W];
|
|
24390
|
-
|
|
24391
|
+
R(F), J.push.apply(J, F);
|
|
24391
24392
|
}
|
|
24392
24393
|
typeof k == "string" ? (I.splice.apply(I, [j, 1].concat(J)), j += J.length - 1) : k.content = J;
|
|
24393
24394
|
}
|
|
24394
24395
|
} else {
|
|
24395
24396
|
var L = k.content;
|
|
24396
|
-
Array.isArray(L) ?
|
|
24397
|
+
Array.isArray(L) ? R(L) : R([L]);
|
|
24397
24398
|
}
|
|
24398
24399
|
}
|
|
24399
24400
|
}
|
|
24400
|
-
return
|
|
24401
|
+
return R(P), new r.Token(v, P, "language-" + v, b);
|
|
24401
24402
|
}
|
|
24402
24403
|
var g = {
|
|
24403
24404
|
javascript: !0,
|
|
@@ -24422,10 +24423,10 @@ prism.languages.sql = {
|
|
|
24422
24423
|
if (w.type === "template-string") {
|
|
24423
24424
|
var P = A[1];
|
|
24424
24425
|
if (A.length === 3 && typeof P != "string" && P.type === "embedded-code") {
|
|
24425
|
-
var
|
|
24426
|
+
var C = h(P), R = P.alias, I = Array.isArray(R) ? R[0] : R, j = r.languages[I];
|
|
24426
24427
|
if (!j)
|
|
24427
24428
|
continue;
|
|
24428
|
-
A[1] = p(
|
|
24429
|
+
A[1] = p(C, j, I);
|
|
24429
24430
|
}
|
|
24430
24431
|
} else
|
|
24431
24432
|
x(A);
|
|
@@ -25893,11 +25894,11 @@ const prismDefaultProps = {
|
|
|
25893
25894
|
"radius",
|
|
25894
25895
|
"getPrismTheme",
|
|
25895
25896
|
"variant"
|
|
25896
|
-
]),
|
|
25897
|
+
]), C = v && typeof i == "string" ? i.trim() : i, R = C.split(`
|
|
25897
25898
|
`).length.toString().length, I = useMantineTheme(), j = useClipboard(), k = x || I.colorScheme, { classes: O, cx: T } = useStyles$2({
|
|
25898
25899
|
colorScheme: k,
|
|
25899
25900
|
native: b !== ScrollArea,
|
|
25900
|
-
maxLineSize:
|
|
25901
|
+
maxLineSize: R,
|
|
25901
25902
|
radius: E
|
|
25902
25903
|
}, { name: "Prism", classNames: u, styles: d, unstyled: S, variant: A });
|
|
25903
25904
|
return /* @__PURE__ */ React__default.createElement(Box, __spreadProps$2(__spreadValues$2({
|
|
@@ -25916,13 +25917,13 @@ const prismDefaultProps = {
|
|
|
25916
25917
|
}, /* @__PURE__ */ React__default.createElement(ActionIcon, {
|
|
25917
25918
|
className: O.copy,
|
|
25918
25919
|
"aria-label": j.copied ? p : m,
|
|
25919
|
-
onClick: () => j.copy(
|
|
25920
|
+
onClick: () => j.copy(C),
|
|
25920
25921
|
unstyled: S
|
|
25921
25922
|
}, /* @__PURE__ */ React__default.createElement(CopyIcon, {
|
|
25922
25923
|
copied: j.copied
|
|
25923
25924
|
}))), /* @__PURE__ */ React__default.createElement(Highlight$1, __spreadProps$2(__spreadValues$2({}, defaultProps), {
|
|
25924
25925
|
theme: w(I, k),
|
|
25925
|
-
code:
|
|
25926
|
+
code: C,
|
|
25926
25927
|
language: l
|
|
25927
25928
|
}), ({
|
|
25928
25929
|
className: M,
|
|
@@ -26255,10 +26256,10 @@ var diffMatchPatch = { exports: {} };
|
|
|
26255
26256
|
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++)
|
|
26256
26257
|
b[v] = -1, x[v] = -1;
|
|
26257
26258
|
b[g + 1] = 0, x[g + 1] = 0;
|
|
26258
|
-
for (var S = d - m, E = S % 2 != 0, w = 0, A = 0, P = 0,
|
|
26259
|
-
for (var I = -
|
|
26259
|
+
for (var S = d - m, E = S % 2 != 0, w = 0, A = 0, P = 0, C = 0, R = 0; R < p && !((/* @__PURE__ */ new Date()).getTime() > u); R++) {
|
|
26260
|
+
for (var I = -R + w; I <= R - A; I += 2) {
|
|
26260
26261
|
var j = g + I, k;
|
|
26261
|
-
I == -
|
|
26262
|
+
I == -R || I != R && b[j - 1] < b[j + 1] ? k = b[j + 1] : k = b[j - 1] + 1;
|
|
26262
26263
|
for (var O = k - I; k < d && O < m && l.charAt(k) == c.charAt(O); )
|
|
26263
26264
|
k++, O++;
|
|
26264
26265
|
if (b[j] = k, k > d)
|
|
@@ -26274,13 +26275,13 @@ var diffMatchPatch = { exports: {} };
|
|
|
26274
26275
|
}
|
|
26275
26276
|
}
|
|
26276
26277
|
}
|
|
26277
|
-
for (var V = -
|
|
26278
|
+
for (var V = -R + P; V <= R - C; V += 2) {
|
|
26278
26279
|
var T = g + V, M;
|
|
26279
|
-
V == -
|
|
26280
|
+
V == -R || V != R && x[T - 1] < x[T + 1] ? M = x[T + 1] : M = x[T - 1] + 1;
|
|
26280
26281
|
for (var D = M - V; M < d && D < m && l.charAt(d - M - 1) == c.charAt(m - D - 1); )
|
|
26281
26282
|
M++, D++;
|
|
26282
26283
|
if (x[T] = M, M > d)
|
|
26283
|
-
|
|
26284
|
+
C += 2;
|
|
26284
26285
|
else if (D > m)
|
|
26285
26286
|
P += 2;
|
|
26286
26287
|
else if (!E) {
|
|
@@ -26355,16 +26356,16 @@ var diffMatchPatch = { exports: {} };
|
|
|
26355
26356
|
if (u.length < 4 || d.length * 2 < u.length)
|
|
26356
26357
|
return null;
|
|
26357
26358
|
var m = this;
|
|
26358
|
-
function p(A, P,
|
|
26359
|
-
for (var
|
|
26359
|
+
function p(A, P, C) {
|
|
26360
|
+
for (var R = A.substring(C, C + Math.floor(A.length / 4)), I = -1, j = "", k, O, T, M; (I = P.indexOf(R, I + 1)) != -1; ) {
|
|
26360
26361
|
var V = m.diff_commonPrefix(
|
|
26361
|
-
A.substring(
|
|
26362
|
+
A.substring(C),
|
|
26362
26363
|
P.substring(I)
|
|
26363
26364
|
), D = m.diff_commonSuffix(
|
|
26364
|
-
A.substring(0,
|
|
26365
|
+
A.substring(0, C),
|
|
26365
26366
|
P.substring(0, I)
|
|
26366
26367
|
);
|
|
26367
|
-
j.length < D + V && (j = P.substring(I - D, I) + P.substring(I, I + V), k = A.substring(0,
|
|
26368
|
+
j.length < D + V && (j = P.substring(I - D, I) + P.substring(I, I + V), k = A.substring(0, C - D), O = A.substring(C + V), T = P.substring(0, I - D), M = P.substring(I + V));
|
|
26368
26369
|
}
|
|
26369
26370
|
return j.length * 2 >= A.length ? [
|
|
26370
26371
|
k,
|
|
@@ -26417,8 +26418,8 @@ var diffMatchPatch = { exports: {} };
|
|
|
26417
26418
|
function c(w, A) {
|
|
26418
26419
|
if (!w || !A)
|
|
26419
26420
|
return 6;
|
|
26420
|
-
var P = w.charAt(w.length - 1),
|
|
26421
|
-
return M || V ? 5 : O || T ? 4 :
|
|
26421
|
+
var P = w.charAt(w.length - 1), C = A.charAt(0), R = P.match(n.nonAlphaNumericRegex_), I = C.match(n.nonAlphaNumericRegex_), j = R && P.match(n.whitespaceRegex_), k = I && C.match(n.whitespaceRegex_), O = j && P.match(n.linebreakRegex_), T = k && C.match(n.linebreakRegex_), M = O && w.match(n.blanklineEndRegex_), V = T && A.match(n.blanklineStartRegex_);
|
|
26422
|
+
return M || V ? 5 : O || T ? 4 : R && !j && k ? 3 : j || k ? 2 : R || I ? 1 : 0;
|
|
26422
26423
|
}
|
|
26423
26424
|
for (var u = 1; u < l.length - 1; ) {
|
|
26424
26425
|
if (l[u - 1][0] == i && l[u + 1][0] == i) {
|
|
@@ -26580,14 +26581,14 @@ var diffMatchPatch = { exports: {} };
|
|
|
26580
26581
|
for (x = 0, v = S; x < v; )
|
|
26581
26582
|
p(w, u + v) <= g ? x = v : S = v, v = Math.floor((S - x) / 2 + x);
|
|
26582
26583
|
S = v;
|
|
26583
|
-
var A = Math.max(1, u - v + 1), P = Math.min(u + v, l.length) + c.length,
|
|
26584
|
-
|
|
26585
|
-
for (var
|
|
26586
|
-
var I = d[l.charAt(
|
|
26587
|
-
if (w === 0 ? R
|
|
26588
|
-
var j = p(w,
|
|
26584
|
+
var A = Math.max(1, u - v + 1), P = Math.min(u + v, l.length) + c.length, C = Array(P + 2);
|
|
26585
|
+
C[P + 1] = (1 << w) - 1;
|
|
26586
|
+
for (var R = P; R >= A; R--) {
|
|
26587
|
+
var I = d[l.charAt(R - 1)];
|
|
26588
|
+
if (w === 0 ? C[R] = (C[R + 1] << 1 | 1) & I : C[R] = (C[R + 1] << 1 | 1) & I | ((E[R + 1] | E[R]) << 1 | 1) | E[R + 1], C[R] & b) {
|
|
26589
|
+
var j = p(w, R - 1);
|
|
26589
26590
|
if (j <= g)
|
|
26590
|
-
if (g = j, h =
|
|
26591
|
+
if (g = j, h = R - 1, h > u)
|
|
26591
26592
|
A = Math.max(1, 2 * u - h);
|
|
26592
26593
|
else
|
|
26593
26594
|
break;
|
|
@@ -26595,7 +26596,7 @@ var diffMatchPatch = { exports: {} };
|
|
|
26595
26596
|
}
|
|
26596
26597
|
if (p(w + 1, u) > g)
|
|
26597
26598
|
break;
|
|
26598
|
-
E =
|
|
26599
|
+
E = C;
|
|
26599
26600
|
}
|
|
26600
26601
|
return h;
|
|
26601
26602
|
}, n.prototype.match_alphabet_ = function(l) {
|
|
@@ -27974,19 +27975,19 @@ const diffFilter$2 = function r(n) {
|
|
|
27974
27975
|
n.options && n.options.arrays && n.options.arrays.includeValueOnMove && (A = !0);
|
|
27975
27976
|
const P = E.length;
|
|
27976
27977
|
for (l = a; l < g - i; l++) {
|
|
27977
|
-
const
|
|
27978
|
-
if (
|
|
27979
|
-
let
|
|
27978
|
+
const C = arrayIndexOf(S.indices2, l - a);
|
|
27979
|
+
if (C < 0) {
|
|
27980
|
+
let R = !1;
|
|
27980
27981
|
if (w && P > 0) {
|
|
27981
27982
|
for (let I = 0; I < P; I++)
|
|
27982
27983
|
if (c = E[I], matchItems(x, v, c - a, l - a, o)) {
|
|
27983
|
-
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),
|
|
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), R = !0;
|
|
27984
27985
|
break;
|
|
27985
27986
|
}
|
|
27986
27987
|
}
|
|
27987
|
-
|
|
27988
|
+
R || (b[l] = [m[l]]);
|
|
27988
27989
|
} else
|
|
27989
|
-
c = S.indices1[
|
|
27990
|
+
c = S.indices1[C] + a, u = S.indices2[C] + a, h = new DiffContext(n.left[c], n.right[u]), n.push(h, u);
|
|
27990
27991
|
}
|
|
27991
27992
|
n.setResult(b).exit();
|
|
27992
27993
|
};
|
|
@@ -28419,27 +28420,27 @@ var require_react_is_production_min = __commonJS({
|
|
|
28419
28420
|
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js"(r) {
|
|
28420
28421
|
init_react_shim();
|
|
28421
28422
|
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;
|
|
28422
|
-
function P(
|
|
28423
|
-
if (typeof
|
|
28424
|
-
var I =
|
|
28423
|
+
function P(R) {
|
|
28424
|
+
if (typeof R == "object" && R !== null) {
|
|
28425
|
+
var I = R.$$typeof;
|
|
28425
28426
|
switch (I) {
|
|
28426
28427
|
case o:
|
|
28427
|
-
switch (
|
|
28428
|
+
switch (R = R.type, R) {
|
|
28428
28429
|
case m:
|
|
28429
28430
|
case p:
|
|
28430
28431
|
case i:
|
|
28431
28432
|
case c:
|
|
28432
28433
|
case l:
|
|
28433
28434
|
case h:
|
|
28434
|
-
return
|
|
28435
|
+
return R;
|
|
28435
28436
|
default:
|
|
28436
|
-
switch (
|
|
28437
|
+
switch (R = R && R.$$typeof, R) {
|
|
28437
28438
|
case d:
|
|
28438
28439
|
case g:
|
|
28439
28440
|
case v:
|
|
28440
28441
|
case x:
|
|
28441
28442
|
case u:
|
|
28442
|
-
return
|
|
28443
|
+
return R;
|
|
28443
28444
|
default:
|
|
28444
28445
|
return I;
|
|
28445
28446
|
}
|
|
@@ -28449,35 +28450,35 @@ var require_react_is_production_min = __commonJS({
|
|
|
28449
28450
|
}
|
|
28450
28451
|
}
|
|
28451
28452
|
}
|
|
28452
|
-
function R
|
|
28453
|
-
return P(
|
|
28454
|
-
}
|
|
28455
|
-
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(
|
|
28456
|
-
return R
|
|
28457
|
-
}, r.isConcurrentMode =
|
|
28458
|
-
return P(
|
|
28459
|
-
}, r.isContextProvider = function(
|
|
28460
|
-
return P(
|
|
28461
|
-
}, r.isElement = function(
|
|
28462
|
-
return typeof
|
|
28463
|
-
}, r.isForwardRef = function(
|
|
28464
|
-
return P(
|
|
28465
|
-
}, r.isFragment = function(
|
|
28466
|
-
return P(
|
|
28467
|
-
}, r.isLazy = function(
|
|
28468
|
-
return P(
|
|
28469
|
-
}, r.isMemo = function(
|
|
28470
|
-
return P(
|
|
28471
|
-
}, r.isPortal = function(
|
|
28472
|
-
return P(
|
|
28473
|
-
}, r.isProfiler = function(
|
|
28474
|
-
return P(
|
|
28475
|
-
}, r.isStrictMode = function(
|
|
28476
|
-
return P(
|
|
28477
|
-
}, r.isSuspense = function(
|
|
28478
|
-
return P(
|
|
28479
|
-
}, r.isValidElementType = function(
|
|
28480
|
-
return typeof
|
|
28453
|
+
function C(R) {
|
|
28454
|
+
return P(R) === 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(R) {
|
|
28457
|
+
return C(R) || P(R) === m;
|
|
28458
|
+
}, r.isConcurrentMode = C, r.isContextConsumer = function(R) {
|
|
28459
|
+
return P(R) === d;
|
|
28460
|
+
}, r.isContextProvider = function(R) {
|
|
28461
|
+
return P(R) === u;
|
|
28462
|
+
}, r.isElement = function(R) {
|
|
28463
|
+
return typeof R == "object" && R !== null && R.$$typeof === o;
|
|
28464
|
+
}, r.isForwardRef = function(R) {
|
|
28465
|
+
return P(R) === g;
|
|
28466
|
+
}, r.isFragment = function(R) {
|
|
28467
|
+
return P(R) === i;
|
|
28468
|
+
}, r.isLazy = function(R) {
|
|
28469
|
+
return P(R) === v;
|
|
28470
|
+
}, r.isMemo = function(R) {
|
|
28471
|
+
return P(R) === x;
|
|
28472
|
+
}, r.isPortal = function(R) {
|
|
28473
|
+
return P(R) === a;
|
|
28474
|
+
}, r.isProfiler = function(R) {
|
|
28475
|
+
return P(R) === c;
|
|
28476
|
+
}, r.isStrictMode = function(R) {
|
|
28477
|
+
return P(R) === l;
|
|
28478
|
+
}, r.isSuspense = function(R) {
|
|
28479
|
+
return P(R) === h;
|
|
28480
|
+
}, r.isValidElementType = function(R) {
|
|
28481
|
+
return typeof R == "string" || typeof R == "function" || R === i || R === p || R === c || R === l || R === h || R === b || typeof R == "object" && R !== null && (R.$$typeof === v || R.$$typeof === x || R.$$typeof === u || R.$$typeof === d || R.$$typeof === g || R.$$typeof === E || R.$$typeof === w || R.$$typeof === A || R.$$typeof === S);
|
|
28481
28482
|
}, r.typeOf = P;
|
|
28482
28483
|
}
|
|
28483
28484
|
}), require_react_is_development = __commonJS({
|
|
@@ -28488,7 +28489,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28488
28489
|
return typeof Z == "string" || typeof Z == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
28489
28490
|
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);
|
|
28490
28491
|
}
|
|
28491
|
-
function
|
|
28492
|
+
function C(Z) {
|
|
28492
28493
|
if (typeof Z == "object" && Z !== null) {
|
|
28493
28494
|
var le = Z.$$typeof;
|
|
28494
28495
|
switch (le) {
|
|
@@ -28520,47 +28521,47 @@ var require_react_is_production_min = __commonJS({
|
|
|
28520
28521
|
}
|
|
28521
28522
|
}
|
|
28522
28523
|
}
|
|
28523
|
-
var
|
|
28524
|
+
var R = 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;
|
|
28524
28525
|
function G(Z) {
|
|
28525
|
-
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) ||
|
|
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) || C(Z) === m;
|
|
28526
28527
|
}
|
|
28527
28528
|
function ee(Z) {
|
|
28528
|
-
return
|
|
28529
|
+
return C(Z) === p;
|
|
28529
28530
|
}
|
|
28530
28531
|
function z(Z) {
|
|
28531
|
-
return
|
|
28532
|
+
return C(Z) === d;
|
|
28532
28533
|
}
|
|
28533
28534
|
function U(Z) {
|
|
28534
|
-
return
|
|
28535
|
+
return C(Z) === u;
|
|
28535
28536
|
}
|
|
28536
28537
|
function te(Z) {
|
|
28537
28538
|
return typeof Z == "object" && Z !== null && Z.$$typeof === o;
|
|
28538
28539
|
}
|
|
28539
28540
|
function _(Z) {
|
|
28540
|
-
return
|
|
28541
|
+
return C(Z) === g;
|
|
28541
28542
|
}
|
|
28542
28543
|
function Q(Z) {
|
|
28543
|
-
return
|
|
28544
|
+
return C(Z) === i;
|
|
28544
28545
|
}
|
|
28545
28546
|
function ne(Z) {
|
|
28546
|
-
return
|
|
28547
|
+
return C(Z) === v;
|
|
28547
28548
|
}
|
|
28548
28549
|
function re(Z) {
|
|
28549
|
-
return
|
|
28550
|
+
return C(Z) === x;
|
|
28550
28551
|
}
|
|
28551
28552
|
function $(Z) {
|
|
28552
|
-
return
|
|
28553
|
+
return C(Z) === a;
|
|
28553
28554
|
}
|
|
28554
28555
|
function ae(Z) {
|
|
28555
|
-
return
|
|
28556
|
+
return C(Z) === c;
|
|
28556
28557
|
}
|
|
28557
28558
|
function se(Z) {
|
|
28558
|
-
return
|
|
28559
|
+
return C(Z) === l;
|
|
28559
28560
|
}
|
|
28560
28561
|
function K(Z) {
|
|
28561
|
-
return
|
|
28562
|
+
return C(Z) === h;
|
|
28562
28563
|
}
|
|
28563
|
-
r.AsyncMode =
|
|
28564
|
+
r.AsyncMode = R, 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 = C;
|
|
28564
28565
|
}();
|
|
28565
28566
|
}
|
|
28566
28567
|
}), require_react_is = __commonJS({
|
|
@@ -28701,8 +28702,8 @@ var require_react_is_production_min = __commonJS({
|
|
|
28701
28702
|
string: A("string"),
|
|
28702
28703
|
symbol: A("symbol"),
|
|
28703
28704
|
any: P(),
|
|
28704
|
-
arrayOf:
|
|
28705
|
-
element:
|
|
28705
|
+
arrayOf: C,
|
|
28706
|
+
element: R(),
|
|
28706
28707
|
elementType: I(),
|
|
28707
28708
|
instanceOf: j,
|
|
28708
28709
|
node: M(),
|
|
@@ -28759,7 +28760,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28759
28760
|
function P() {
|
|
28760
28761
|
return w(d);
|
|
28761
28762
|
}
|
|
28762
|
-
function
|
|
28763
|
+
function C(z) {
|
|
28763
28764
|
function U(te, _, Q, ne, re) {
|
|
28764
28765
|
if (typeof z != "function")
|
|
28765
28766
|
return new E("Property `" + re + "` of component `" + Q + "` has invalid PropType notation inside arrayOf.");
|
|
@@ -28777,7 +28778,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
28777
28778
|
}
|
|
28778
28779
|
return w(U);
|
|
28779
28780
|
}
|
|
28780
|
-
function
|
|
28781
|
+
function R() {
|
|
28781
28782
|
function z(U, te, _, Q, ne) {
|
|
28782
28783
|
var re = U[te];
|
|
28783
28784
|
if (!m(re)) {
|
|
@@ -30076,10 +30077,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30076
30077
|
r.flat = n(A);
|
|
30077
30078
|
var P = require_google();
|
|
30078
30079
|
r.google = n(P);
|
|
30079
|
-
var
|
|
30080
|
-
r.grayscale = n(
|
|
30081
|
-
var
|
|
30082
|
-
r.greenscreen = n(
|
|
30080
|
+
var C = require_grayscale();
|
|
30081
|
+
r.grayscale = n(C);
|
|
30082
|
+
var R = require_greenscreen();
|
|
30083
|
+
r.greenscreen = n(R);
|
|
30083
30084
|
var I = require_harmonic();
|
|
30084
30085
|
r.harmonic = n(I);
|
|
30085
30086
|
var j = require_hopscotch();
|
|
@@ -30574,10 +30575,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30574
30575
|
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;
|
|
30575
30576
|
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];
|
|
30576
30577
|
}, l.rgb.hsv = function(p) {
|
|
30577
|
-
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),
|
|
30578
|
-
return (A -
|
|
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), C = function(R) {
|
|
30579
|
+
return (A - R) / 6 / P + 1 / 2;
|
|
30579
30580
|
};
|
|
30580
|
-
return P === 0 ? x = v = 0 : (v = P / A, g =
|
|
30581
|
+
return P === 0 ? x = v = 0 : (v = P / A, g = C(S), h = C(E), b = C(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)), [
|
|
30581
30582
|
x * 360,
|
|
30582
30583
|
v * 100,
|
|
30583
30584
|
A * 100
|
|
@@ -30646,30 +30647,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30646
30647
|
}, l.hwb.rgb = function(p) {
|
|
30647
30648
|
var g = p[0] / 360, h = p[1] / 100, b = p[2] / 100, x = h + b, v, S, E, w;
|
|
30648
30649
|
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);
|
|
30649
|
-
var A, P,
|
|
30650
|
+
var A, P, C;
|
|
30650
30651
|
switch (v) {
|
|
30651
30652
|
default:
|
|
30652
30653
|
case 6:
|
|
30653
30654
|
case 0:
|
|
30654
|
-
A = S, P = w,
|
|
30655
|
+
A = S, P = w, C = h;
|
|
30655
30656
|
break;
|
|
30656
30657
|
case 1:
|
|
30657
|
-
A = w, P = S,
|
|
30658
|
+
A = w, P = S, C = h;
|
|
30658
30659
|
break;
|
|
30659
30660
|
case 2:
|
|
30660
|
-
A = h, P = S,
|
|
30661
|
+
A = h, P = S, C = w;
|
|
30661
30662
|
break;
|
|
30662
30663
|
case 3:
|
|
30663
|
-
A = h, P = w,
|
|
30664
|
+
A = h, P = w, C = S;
|
|
30664
30665
|
break;
|
|
30665
30666
|
case 4:
|
|
30666
|
-
A = w, P = h,
|
|
30667
|
+
A = w, P = h, C = S;
|
|
30667
30668
|
break;
|
|
30668
30669
|
case 5:
|
|
30669
|
-
A = S, P = h,
|
|
30670
|
+
A = S, P = h, C = w;
|
|
30670
30671
|
break;
|
|
30671
30672
|
}
|
|
30672
|
-
return [A * 255, P * 255,
|
|
30673
|
+
return [A * 255, P * 255, C * 255];
|
|
30673
30674
|
}, l.cmyk.rgb = function(p) {
|
|
30674
30675
|
var g = p[0] / 100, h = p[1] / 100, b = p[2] / 100, x = p[3] / 100, v, S, E;
|
|
30675
30676
|
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];
|
|
@@ -30918,12 +30919,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30918
30919
|
], this.valpha = 1;
|
|
30919
30920
|
else {
|
|
30920
30921
|
this.valpha = 1;
|
|
30921
|
-
var
|
|
30922
|
-
"alpha" in v && (
|
|
30923
|
-
var
|
|
30924
|
-
if (!(
|
|
30922
|
+
var C = Object.keys(v);
|
|
30923
|
+
"alpha" in v && (C.splice(C.indexOf("alpha"), 1), this.valpha = typeof v.alpha == "number" ? v.alpha : 0);
|
|
30924
|
+
var R = C.sort().join("");
|
|
30925
|
+
if (!(R in c))
|
|
30925
30926
|
throw new Error("Unable to parse color from object: " + JSON.stringify(v));
|
|
30926
|
-
this.model = c[
|
|
30927
|
+
this.model = c[R];
|
|
30927
30928
|
var I = a[this.model].labels, j = [];
|
|
30928
30929
|
for (E = 0; E < I.length; E++)
|
|
30929
30930
|
j.push(v[I[E]]);
|
|
@@ -31079,11 +31080,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31079
31080
|
mix: function(v, S) {
|
|
31080
31081
|
if (!v || !v.rgb)
|
|
31081
31082
|
throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof v);
|
|
31082
|
-
var E = v.rgb(), w = this.rgb(), A = S === void 0 ? 0.5 : S, P = 2 * A - 1,
|
|
31083
|
+
var E = v.rgb(), w = this.rgb(), A = S === void 0 ? 0.5 : S, P = 2 * A - 1, C = E.alpha() - w.alpha(), R = ((P * C === -1 ? P : (P + C) / (1 + P * C)) + 1) / 2, I = 1 - R;
|
|
31083
31084
|
return d.rgb(
|
|
31084
|
-
|
|
31085
|
-
|
|
31086
|
-
|
|
31085
|
+
R * E.red() + I * w.red(),
|
|
31086
|
+
R * E.green() + I * w.green(),
|
|
31087
|
+
R * E.blue() + I * w.blue(),
|
|
31087
31088
|
E.alpha() * A + w.alpha() * (1 - A)
|
|
31088
31089
|
);
|
|
31089
31090
|
}
|
|
@@ -31146,7 +31147,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31146
31147
|
["partial", m],
|
|
31147
31148
|
["partialRight", p],
|
|
31148
31149
|
["rearg", h]
|
|
31149
|
-
], A = "[object Function]", P = "[object GeneratorFunction]",
|
|
31150
|
+
], A = "[object Function]", P = "[object GeneratorFunction]", C = "[object Symbol]", R = /[\\^$.*+?()[\]{}|]/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")();
|
|
31150
31151
|
function G(N, B, Y) {
|
|
31151
31152
|
switch (Y.length) {
|
|
31152
31153
|
case 0:
|
|
@@ -31214,7 +31215,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31214
31215
|
var N = /[^.]+$/.exec(K && K.keys && K.keys.IE_PROTO || "");
|
|
31215
31216
|
return N ? "Symbol(src)_1." + N : "";
|
|
31216
31217
|
}(), le = ae.toString, fe = se.hasOwnProperty, Te = se.toString, be = RegExp(
|
|
31217
|
-
"^" + le.call(fe).replace(
|
|
31218
|
+
"^" + le.call(fe).replace(R, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
31218
31219
|
), Ze = Object.create, Ne = Math.max, ge = Math.min, Ge = function() {
|
|
31219
31220
|
var N = We(Object, "defineProperty"), B = We.name;
|
|
31220
31221
|
return B && B.length > 2 ? N : void 0;
|
|
@@ -31253,14 +31254,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31253
31254
|
return B;
|
|
31254
31255
|
}
|
|
31255
31256
|
function rt(N, B, Y) {
|
|
31256
|
-
var oe = B & i, ce =
|
|
31257
|
+
var oe = B & i, ce = Ce(N);
|
|
31257
31258
|
function H() {
|
|
31258
31259
|
var ie = this && this !== q && this instanceof H ? ce : N;
|
|
31259
31260
|
return ie.apply(oe ? Y : this, arguments);
|
|
31260
31261
|
}
|
|
31261
31262
|
return H;
|
|
31262
31263
|
}
|
|
31263
|
-
function
|
|
31264
|
+
function Ce(N) {
|
|
31264
31265
|
return function() {
|
|
31265
31266
|
var B = arguments;
|
|
31266
31267
|
switch (B.length) {
|
|
@@ -31286,7 +31287,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31286
31287
|
};
|
|
31287
31288
|
}
|
|
31288
31289
|
function De(N, B, Y) {
|
|
31289
|
-
var oe =
|
|
31290
|
+
var oe = Ce(N);
|
|
31290
31291
|
function ce() {
|
|
31291
31292
|
for (var H = arguments.length, ie = Array(H), ue = H, de = qe(ce); ue--; )
|
|
31292
31293
|
ie[ue] = arguments[ue];
|
|
@@ -31310,7 +31311,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31310
31311
|
return ce;
|
|
31311
31312
|
}
|
|
31312
31313
|
function Ve(N, B, Y, oe, ce, H, ie, ue, de, me) {
|
|
31313
|
-
var pe = B & g, xe = B & i, ye = B & l, we = B & (u | d), it = B & b, et = ye ? void 0 :
|
|
31314
|
+
var pe = B & g, xe = B & i, ye = B & l, we = B & (u | d), it = B & b, et = ye ? void 0 : Ce(N);
|
|
31314
31315
|
function tt() {
|
|
31315
31316
|
for (var Be = arguments.length, Ae = Array(Be), lt = Be; lt--; )
|
|
31316
31317
|
Ae[lt] = arguments[lt];
|
|
@@ -31332,12 +31333,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31332
31333
|
);
|
|
31333
31334
|
}
|
|
31334
31335
|
var dt = xe ? Y : this, ct = ye ? dt[N] : N;
|
|
31335
|
-
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 ||
|
|
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 || Ce(ct)), ct.apply(dt, Ae);
|
|
31336
31337
|
}
|
|
31337
31338
|
return tt;
|
|
31338
31339
|
}
|
|
31339
31340
|
function nt(N, B, Y, oe) {
|
|
31340
|
-
var ce = B & i, H =
|
|
31341
|
+
var ce = B & i, H = Ce(N);
|
|
31341
31342
|
function ie() {
|
|
31342
31343
|
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; )
|
|
31343
31344
|
xe[me] = oe[me];
|
|
@@ -31398,7 +31399,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31398
31399
|
/* [wrapped with ` + B + `] */
|
|
31399
31400
|
`);
|
|
31400
31401
|
}
|
|
31401
|
-
function
|
|
31402
|
+
function Re(N, B) {
|
|
31402
31403
|
return B = B ?? v, !!B && (typeof N == "number" || W.test(N)) && N > -1 && N % 1 == 0 && N < B;
|
|
31403
31404
|
}
|
|
31404
31405
|
function Me(N) {
|
|
@@ -31407,7 +31408,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31407
31408
|
function Xe(N, B) {
|
|
31408
31409
|
for (var Y = N.length, oe = ge(B.length, Y), ce = Je(N); oe--; ) {
|
|
31409
31410
|
var H = B[oe];
|
|
31410
|
-
N[oe] =
|
|
31411
|
+
N[oe] = Re(H, Y) ? ce[H] : void 0;
|
|
31411
31412
|
}
|
|
31412
31413
|
return N;
|
|
31413
31414
|
}
|
|
@@ -31455,7 +31456,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31455
31456
|
return !!N && typeof N == "object";
|
|
31456
31457
|
}
|
|
31457
31458
|
function Qe(N) {
|
|
31458
|
-
return typeof N == "symbol" || he(N) && Te.call(N) ==
|
|
31459
|
+
return typeof N == "symbol" || he(N) && Te.call(N) == C;
|
|
31459
31460
|
}
|
|
31460
31461
|
function Le(N) {
|
|
31461
31462
|
if (!N)
|
|
@@ -33977,7 +33978,7 @@ const TabletIcon = ({ landscape: r = !1 }) => /* @__PURE__ */ jsxRuntimeExports.
|
|
|
33977
33978
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
33978
33979
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {})
|
|
33979
33980
|
] }) });
|
|
33980
|
-
}, SettingsPanel$1 = SettingsPanel, TopBar = lazy(() => import("./Topbar
|
|
33981
|
+
}, SettingsPanel$1 = SettingsPanel, TopBar = lazy(() => import("./Topbar-wHQxajBp.js")), menuItems = [
|
|
33981
33982
|
{ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Layers, { size: 20 }), label: "sidebar.outline", component: Outline$1 },
|
|
33982
33983
|
{ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditIcon, { size: 16 }), label: "sidebar.edit_block", component: SettingsPanel$1 },
|
|
33983
33984
|
{ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(LightningBoltIcon, { className: "size-5" }), label: "sidebar.ai_assistant", component: AskAI },
|