@chaibuilder/sdk 1.1.0 → 1.1.2
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/CanvasArea-UtFK5IS6.cjs +58 -0
- package/dist/CanvasArea-dkwSFbQA.js +1412 -0
- package/dist/{CurrentPage-_Em0U2gh.cjs → CurrentPage-hHwsHam-.cjs} +1 -1
- package/dist/{CurrentPage-pSsaLyEf.js → CurrentPage-uRwS0DQC.js} +1 -1
- package/dist/{Layers-RyVRzaUa.cjs → Layers--5nyqOjK.cjs} +1 -1
- package/dist/{Layers-wp2Uc2Y5.js → Layers-eXMT1ncm.js} +1 -1
- package/dist/{PagesPanel-ZuXc2610.cjs → PagesPanel-WZgw7xVs.cjs} +1 -1
- package/dist/{PagesPanel-L2VS8RyZ.js → PagesPanel-xRUnAMIb.js} +2 -2
- package/dist/{ProjectPanel-T3AXGe7O.js → ProjectPanel-8l4Bi3Kh.js} +2 -2
- package/dist/{ProjectPanel-SErKorHi.cjs → ProjectPanel-FC03TiyG.cjs} +1 -1
- package/dist/{Settings-xkL3U3Y-.js → Settings-4v3M1bRS.js} +507 -501
- package/dist/Settings-kcmKFymH.cjs +1 -0
- package/dist/{SidePanels-pd7HYv8I.js → SidePanels-0xaw3Td6.js} +45 -39
- package/dist/{SidePanels-5FNROZe7.cjs → SidePanels-5e5q3c7J.cjs} +1 -1
- package/dist/{add-page-modal-U8EH-GIa.cjs → add-page-modal-JRSQ_N56.cjs} +1 -1
- package/dist/{add-page-modal-Njd5M7E2.js → add-page-modal-K5isTZOT.js} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +1 -0
- package/dist/core.js +1 -1
- package/dist/{delete-page-modal-0LQiM0fX.cjs → delete-page-modal-c8nB2y7w.cjs} +1 -1
- package/dist/{delete-page-modal-NT7df4pk.js → delete-page-modal-x81Ed4jF.js} +1 -1
- package/dist/{index-pYZXf7hY.cjs → index-7NRFGya_.cjs} +10 -10
- package/dist/{index-N3mTbV2j.js → index-HjvZqhVh.js} +163 -160
- package/dist/{page-viewer-e3lOBAH3.js → page-viewer-fFaDQOOI.js} +2 -2
- package/dist/{page-viewer-UxwOwHCO.cjs → page-viewer-huD5B1om.cjs} +1 -1
- package/dist/{project-general-setting-el86II8N.js → project-general-setting-rH_1r38b.js} +1 -1
- package/dist/{project-general-setting-DrLwWE-6.cjs → project-general-setting-rNNI-K6l.cjs} +1 -1
- package/dist/{single-page-detail-fUh22jZE.cjs → single-page-detail-52_cuxNe.cjs} +1 -1
- package/dist/{single-page-detail-UFEXRI81.js → single-page-detail-CrgTQFUX.js} +2 -2
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +1 -1
- package/package.json +1 -1
- package/dist/CanvasArea-TzIgm_vh.cjs +0 -58
- package/dist/CanvasArea-dS2B20gv.js +0 -1421
- package/dist/Settings-GJHtwQaa.cjs +0 -1
|
@@ -19,13 +19,13 @@ import iS from "i18next";
|
|
|
19
19
|
import { initReactI18next as oS } from "react-i18next";
|
|
20
20
|
import { j as n1 } from "./jsx-runtime-NV737rRe.js";
|
|
21
21
|
import * as O from "react";
|
|
22
|
-
import p, { useState as g1, useRef as z1, useLayoutEffect as L3, useEffect as L1, useCallback as D1, useDebugValue as
|
|
22
|
+
import p, { useState as g1, useRef as z1, useLayoutEffect as L3, useEffect as L1, useCallback as D1, useDebugValue as o91, useContext as Et, forwardRef as Q, createContext as $t, useReducer as cS, useMemo as fa, cloneElement as Ae, Fragment as hS, Children as br, Component as Ff, isValidElement as sS, createElement as G4, memo as vS, Suspense as Ue, lazy as v0 } from "react";
|
|
23
23
|
import { u as O3, a as h2, c as qf, b as wt, d as Pe, e as s2, f as d0, g as Wf, h as dS, i as J4, B as S3, S as uS, j as Kf, k as gS, l as fS, m as pS, n as zS, o as MS, p as mS, q as HS, r as VS, s as wS, t as bS, v as yS, T as xS, w as LS, x as OS, y as Uf, z as SS, A as CS, C as BS, D as AS, E as PS, F as ES, G as IS, H as kS, I as NS, J as RS, K as TS } from "./index-ORFlyrBx.js";
|
|
24
24
|
import { g as Ii, c as j0 } from "./MODIFIERS-MLfpKQY1.js";
|
|
25
25
|
import Zf from "clsx";
|
|
26
26
|
import { flushSync as DS, createPortal as jS } from "react-dom";
|
|
27
27
|
import * as je from "@radix-ui/react-scroll-area";
|
|
28
|
-
import { getOverflowAncestors as S4, offset as Gf, detectOverflow as
|
|
28
|
+
import { getOverflowAncestors as S4, offset as Gf, detectOverflow as u91, useFloating as FS, autoUpdate as qS, shift as C3, limitShift as WS, flip as Jf, inline as Yf, arrow as Qf, size as KS } from "@floating-ui/react-dom";
|
|
29
29
|
import US from "react-textarea-autosize";
|
|
30
30
|
import { useAtom as ki, atom as ZS, useAtomValue as Xf, getDefaultStore as GS } from "jotai";
|
|
31
31
|
import { FlagsProvider as JS } from "flagged";
|
|
@@ -976,7 +976,7 @@ function pB() {
|
|
|
976
976
|
Z1.AsyncMode = w, Z1.ConcurrentMode = y, Z1.ContextConsumer = x, Z1.ContextProvider = L, Z1.Element = S, Z1.ForwardRef = E, Z1.Fragment = C, Z1.Lazy = N, Z1.Memo = k, Z1.Portal = T, Z1.Profiler = U, Z1.StrictMode = t1, Z1.Suspense = Z, Z1.isAsyncMode = J, Z1.isConcurrentMode = W, Z1.isContextConsumer = G, Z1.isContextProvider = P, Z1.isElement = F, Z1.isForwardRef = a1, Z1.isFragment = _, Z1.isLazy = X, Z1.isMemo = v1, Z1.isPortal = o1, Z1.isProfiler = c1, Z1.isStrictMode = $, Z1.isSuspense = s1, Z1.isValidElementType = V, Z1.typeOf = b;
|
|
977
977
|
}()), Z1;
|
|
978
978
|
}
|
|
979
|
-
var
|
|
979
|
+
var O91 = Q4.exports;
|
|
980
980
|
process.env.NODE_ENV === "production" ? Q4.exports = fB() : Q4.exports = pB();
|
|
981
981
|
var zB = Q4.exports;
|
|
982
982
|
var hp = zB;
|
|
@@ -996,7 +996,7 @@ var MB = {
|
|
|
996
996
|
}, sp = {};
|
|
997
997
|
sp[hp.ForwardRef] = MB;
|
|
998
998
|
sp[hp.Memo] = mB;
|
|
999
|
-
var
|
|
999
|
+
var S91 = Object.prototype;
|
|
1000
1000
|
var HB = !0;
|
|
1001
1001
|
function k3(t, e, a) {
|
|
1002
1002
|
var r = "";
|
|
@@ -1267,7 +1267,7 @@ var B2, ca = function(e, a, r) {
|
|
|
1267
1267
|
}) : null
|
|
1268
1268
|
);
|
|
1269
1269
|
process.env.NODE_ENV !== "production" && (ar.displayName = "EmotionCacheContext");
|
|
1270
|
-
var
|
|
1270
|
+
var C91 = ar.Provider;
|
|
1271
1271
|
var Fi = function(e) {
|
|
1272
1272
|
return /* @__PURE__ */ Q(function(a, r) {
|
|
1273
1273
|
var n = Et(ar);
|
|
@@ -2646,7 +2646,7 @@ function Bp(t) {
|
|
|
2646
2646
|
}
|
|
2647
2647
|
});
|
|
2648
2648
|
}
|
|
2649
|
-
const
|
|
2649
|
+
const B91 = Object.keys(Lp), Ap = ["xs", "sm", "md", "lg", "xl"], iP = {
|
|
2650
2650
|
dir: "ltr",
|
|
2651
2651
|
primaryShade: {
|
|
2652
2652
|
light: 6,
|
|
@@ -3288,7 +3288,7 @@ const Ca = {
|
|
|
3288
3288
|
"pop-top-right": Sa(Oa({}, Ca), {
|
|
3289
3289
|
common: { transformOrigin: "top right" }
|
|
3290
3290
|
})
|
|
3291
|
-
},
|
|
3291
|
+
}, A91 = Object.keys(qa), Gs = ["mousedown", "touchstart"];
|
|
3292
3292
|
function YP(t, e, a) {
|
|
3293
3293
|
const r = z1();
|
|
3294
3294
|
return L1(() => {
|
|
@@ -6730,8 +6730,8 @@ var zT = e1(() => ({
|
|
|
6730
6730
|
* tabbable 6.2.0
|
|
6731
6731
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
6732
6732
|
*/
|
|
6733
|
-
var SM = typeof Element > "u",
|
|
6734
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
6733
|
+
var SM = typeof Element > "u", P91 = SM ? function() {
|
|
6734
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, E91 = !SM && Element.prototype.getRootNode ? function(t) {
|
|
6735
6735
|
var e;
|
|
6736
6736
|
return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
|
|
6737
6737
|
} : function(t) {
|
|
@@ -9365,7 +9365,7 @@ const pF = {
|
|
|
9365
9365
|
});
|
|
9366
9366
|
nh.displayName = "@mantine/core/Avatar";
|
|
9367
9367
|
nh.Group = mm;
|
|
9368
|
-
const
|
|
9368
|
+
const I91 = nh;
|
|
9369
9369
|
var zF = Object.defineProperty, MF = Object.defineProperties, mF = Object.getOwnPropertyDescriptors, M6 = Object.getOwnPropertySymbols, HF = Object.prototype.hasOwnProperty, VF = Object.prototype.propertyIsEnumerable, m6 = (t, e, a) => e in t ? zF(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a, wF = (t, e) => {
|
|
9370
9370
|
for (var a in e || (e = {}))
|
|
9371
9371
|
HF.call(e, a) && m6(t, a, e[a]);
|
|
@@ -9411,7 +9411,7 @@ const AF = {
|
|
|
9411
9411
|
}));
|
|
9412
9412
|
});
|
|
9413
9413
|
ym.displayName = "@mantine/core/BackgroundImage";
|
|
9414
|
-
const
|
|
9414
|
+
const k91 = ym;
|
|
9415
9415
|
var PF = Object.defineProperty, EF = Object.defineProperties, IF = Object.getOwnPropertyDescriptors, V6 = Object.getOwnPropertySymbols, kF = Object.prototype.hasOwnProperty, NF = Object.prototype.propertyIsEnumerable, w6 = (t, e, a) => e in t ? PF(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a, Fo = (t, e) => {
|
|
9416
9416
|
for (var a in e || (e = {}))
|
|
9417
9417
|
kF.call(e, a) && w6(t, a, e[a]);
|
|
@@ -10267,7 +10267,7 @@ const rW = {
|
|
|
10267
10267
|
});
|
|
10268
10268
|
oh.Section = Jm;
|
|
10269
10269
|
oh.displayName = "@mantine/core/Card";
|
|
10270
|
-
const
|
|
10270
|
+
const N91 = oh;
|
|
10271
10271
|
var nW = e1((t, { inline: e }) => ({
|
|
10272
10272
|
root: {
|
|
10273
10273
|
display: e ? "inline-flex" : "flex",
|
|
@@ -10298,7 +10298,7 @@ const $m = Q((t, e) => {
|
|
|
10298
10298
|
}, o));
|
|
10299
10299
|
});
|
|
10300
10300
|
$m.displayName = "@mantine/core/Center";
|
|
10301
|
-
const
|
|
10301
|
+
const R91 = $m, tH = $t(null), cW = tH.Provider, hW = () => Et(tH);
|
|
10302
10302
|
var sW = Object.defineProperty, c5 = Object.getOwnPropertySymbols, eH = Object.prototype.hasOwnProperty, aH = Object.prototype.propertyIsEnumerable, j6 = (t, e, a) => e in t ? sW(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a, F6 = (t, e) => {
|
|
10303
10303
|
for (var a in e || (e = {}))
|
|
10304
10304
|
eH.call(e, a) && j6(t, a, e[a]);
|
|
@@ -13598,7 +13598,7 @@ const OJ = {
|
|
|
13598
13598
|
}, h)));
|
|
13599
13599
|
});
|
|
13600
13600
|
QV.displayName = "@mantine/core/Highlight";
|
|
13601
|
-
const
|
|
13601
|
+
const T91 = QV, XV = {
|
|
13602
13602
|
context: "HoverCard component was not found in the tree",
|
|
13603
13603
|
children: "HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
|
|
13604
13604
|
}, [SJ, _V] = w2(XV.context);
|
|
@@ -14034,7 +14034,7 @@ const mY = {
|
|
|
14034
14034
|
})));
|
|
14035
14035
|
});
|
|
14036
14036
|
zw.displayName = "@mantine/core/InputBase";
|
|
14037
|
-
const
|
|
14037
|
+
const D91 = zw;
|
|
14038
14038
|
function P8(t, e) {
|
|
14039
14039
|
if (typeof t == "string" && t.trim().length === 0)
|
|
14040
14040
|
return !0;
|
|
@@ -25453,7 +25453,7 @@ var Eh = { exports: {} }, cL = {
|
|
|
25453
25453
|
var Ih = { exports: {} }, gn1 = function(e) {
|
|
25454
25454
|
return !e || typeof e == "string" ? !1 : e instanceof Array || Array.isArray(e) || e.length >= 0 && (e.splice instanceof Function || Object.getOwnPropertyDescriptor(e, e.length - 1) && e.constructor.name !== "String");
|
|
25455
25455
|
};
|
|
25456
|
-
var
|
|
25456
|
+
var j91 = Ih.exports, fn1 = gn1, pn1 = Array.prototype.concat, zn1 = Array.prototype.slice, Sg = Ih.exports = function(e) {
|
|
25457
25457
|
for (var a = [], r = 0, n = e.length; r < n; r++) {
|
|
25458
25458
|
var l = e[r];
|
|
25459
25459
|
fn1(l) ? a = pn1.call(a, zn1.call(l)) : a.push(l);
|
|
@@ -25466,7 +25466,7 @@ Sg.wrap = function(t) {
|
|
|
25466
25466
|
};
|
|
25467
25467
|
};
|
|
25468
25468
|
var Mn1 = Ih.exports;
|
|
25469
|
-
var
|
|
25469
|
+
var F91 = Eh.exports, Xa = cL, Er = Mn1, hL = Object.hasOwnProperty, sL = /* @__PURE__ */ Object.create(null);
|
|
25470
25470
|
for (var zc in Xa)
|
|
25471
25471
|
hL.call(Xa, zc) && (sL[Xa[zc]] = zc);
|
|
25472
25472
|
var o2 = Eh.exports = {
|
|
@@ -25717,7 +25717,7 @@ var kh = { exports: {} }, Hn1 = {
|
|
|
25717
25717
|
yellow: [255, 255, 0],
|
|
25718
25718
|
yellowgreen: [154, 205, 50]
|
|
25719
25719
|
};
|
|
25720
|
-
var
|
|
25720
|
+
var q91 = kh.exports, n0 = Hn1, vL = {};
|
|
25721
25721
|
for (var Mc in n0)
|
|
25722
25722
|
n0.hasOwnProperty(Mc) && (vL[n0[Mc]] = Mc);
|
|
25723
25723
|
var V1 = kh.exports = {
|
|
@@ -30879,7 +30879,7 @@ function El1() {
|
|
|
30879
30879
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
30880
30880
|
return t.length !== e.length || t.some((a, r) => !Object.is(a, e[r]));
|
|
30881
30881
|
}
|
|
30882
|
-
var jh = { exports: {} },
|
|
30882
|
+
var jh = { exports: {} }, K91 = jh.exports;
|
|
30883
30883
|
(function(t) {
|
|
30884
30884
|
var e = function() {
|
|
30885
30885
|
this.Diff_Timeout = 1, this.Diff_EditCost = 4, this.Match_Threshold = 0.5, this.Match_Distance = 1e3, this.Patch_DeleteThreshold = 0.5, this.Patch_Margin = 4, this.Match_MaxBits = 32;
|
|
@@ -31911,7 +31911,7 @@ function Nl1() {
|
|
|
31911
31911
|
});
|
|
31912
31912
|
}), yc = a, yc;
|
|
31913
31913
|
}
|
|
31914
|
-
var
|
|
31914
|
+
var U91 = Fh.exports;
|
|
31915
31915
|
(function(t) {
|
|
31916
31916
|
"use strict";
|
|
31917
31917
|
const e = (h, s) => (...d) => `\x1B[${h(...d) + s}m`, a = (h, s) => (...d) => {
|
|
@@ -33125,7 +33125,7 @@ function We(t) {
|
|
|
33125
33125
|
return a;
|
|
33126
33126
|
};
|
|
33127
33127
|
}
|
|
33128
|
-
const
|
|
33128
|
+
const Z91 = {
|
|
33129
33129
|
added: We("green"),
|
|
33130
33130
|
deleted: We("red"),
|
|
33131
33131
|
movedestination: We("gray"),
|
|
@@ -36288,7 +36288,7 @@ D();
|
|
|
36288
36288
|
D();
|
|
36289
36289
|
D();
|
|
36290
36290
|
D();
|
|
36291
|
-
var
|
|
36291
|
+
var G91 = qf(), iO = $t(
|
|
36292
36292
|
void 0
|
|
36293
36293
|
), Gh = () => {
|
|
36294
36294
|
const t = Et(iO);
|
|
@@ -38530,10 +38530,13 @@ object-assign/index.js:
|
|
|
38530
38530
|
*/
|
|
38531
38531
|
D();
|
|
38532
38532
|
var Ch1 = process.env.NODE_ENV !== "production" ? Sh1 : () => null;
|
|
38533
|
-
|
|
38534
|
-
dnd
|
|
38533
|
+
function Bh1() {
|
|
38534
|
+
return new URLSearchParams(window.location.search).has("dnd");
|
|
38535
|
+
}
|
|
38536
|
+
const Ah1 = {
|
|
38537
|
+
dnd: Bh1()
|
|
38535
38538
|
};
|
|
38536
|
-
class
|
|
38539
|
+
class Ph1 extends p.Component {
|
|
38537
38540
|
constructor(e) {
|
|
38538
38541
|
super(e), this.state = { hasError: !1 };
|
|
38539
38542
|
}
|
|
@@ -38551,13 +38554,13 @@ class Ah1 extends p.Component {
|
|
|
38551
38554
|
] }) : this.props.children;
|
|
38552
38555
|
}
|
|
38553
38556
|
}
|
|
38554
|
-
const
|
|
38557
|
+
const Eh1 = () => {
|
|
38555
38558
|
const [t, e] = dS(), a = J4("previewComponent");
|
|
38556
38559
|
return /* @__PURE__ */ n1.jsxs("div", { className: oC("fixed inset-0 z-[999] bg-background", t ? "block" : "hidden"), children: [
|
|
38557
38560
|
/* @__PURE__ */ n1.jsx(S3, { size: "sm", className: "absolute right-0 top-0 m-4", onClick: () => e(!1), children: "Close Preview" }),
|
|
38558
38561
|
/* @__PURE__ */ n1.jsx("div", { children: a ? /* @__PURE__ */ n1.jsx(Ue, { fallback: /* @__PURE__ */ n1.jsx(uS, { className: "h-96 w-full" }), children: p.createElement(a) }) : null })
|
|
38559
38562
|
] });
|
|
38560
|
-
},
|
|
38563
|
+
}, Ih1 = () => {
|
|
38561
38564
|
const [t, e] = Kf(), [, a] = gS(), r = fS(), n = pS(), [, l] = zS(), { pasteBlocks: i } = MS(), { undo: o, redo: c } = mS();
|
|
38562
38565
|
se("esc", () => e([]), {}, [e]), se("ctrl+c,command+c", () => a(t), {}, [t, a]), se("ctrl+d,command+d", () => n(t), { preventDefault: !0 }, [t, n]), se("ctrl+x,command+x", () => l(t), {}, [t, l]), se("ctrl+v,command+v", () => t.length === 1 ? i(t[0]) : null, {}, [t, i]), se("ctrl+z,command+z", () => o(), {}, [o]), se("ctrl+y,command+y", () => c(), {}, [c]), se(
|
|
38563
38566
|
"del, backspace",
|
|
@@ -38567,21 +38570,21 @@ const Ph1 = () => {
|
|
|
38567
38570
|
{},
|
|
38568
38571
|
[t, r]
|
|
38569
38572
|
);
|
|
38570
|
-
},
|
|
38573
|
+
}, kh1 = (t, e) => {
|
|
38571
38574
|
const a = [];
|
|
38572
38575
|
let r = Bc(t, { _id: e }), n = Ac(r, "_parent", "");
|
|
38573
38576
|
for (; _f(n) && !QS(n); )
|
|
38574
38577
|
a.push(r == null ? void 0 : r._parent), r = Bc(t, { _id: n }), n = r == null ? void 0 : r._parent;
|
|
38575
38578
|
return XS(a);
|
|
38576
|
-
}, FO = ZS([]),
|
|
38579
|
+
}, FO = ZS([]), Nh1 = () => {
|
|
38577
38580
|
const [t] = Kf(), e = Xf(HS), [, a] = ki(FO);
|
|
38578
38581
|
L1(() => {
|
|
38579
38582
|
let r = [];
|
|
38580
38583
|
const n = _S(t);
|
|
38581
|
-
_f(n) && (r = [n, ...
|
|
38584
|
+
_f(n) && (r = [n, ...kh1(e, n)]), a(r);
|
|
38582
38585
|
}, [t, e, a]);
|
|
38583
|
-
},
|
|
38584
|
-
const [, e] =
|
|
38586
|
+
}, J91 = () => Xf(FO), Rh1 = () => ki(VS), Th1 = () => fa(() => cC(), []), Y91 = ({ children: t }) => {
|
|
38587
|
+
const [, e] = Rh1(), [a] = wS(), r = Th1();
|
|
38585
38588
|
return L1(() => (e({}), ls(a, (n) => {
|
|
38586
38589
|
const l = Bc(r, { providerKey: n.providerKey });
|
|
38587
38590
|
if (l) {
|
|
@@ -38595,11 +38598,11 @@ const Ph1 = () => {
|
|
|
38595
38598
|
e((l) => (delete l[n.providerKey], l));
|
|
38596
38599
|
});
|
|
38597
38600
|
}), [r, a, e]), /* @__PURE__ */ n1.jsx(n1.Fragment, { children: t });
|
|
38598
|
-
},
|
|
38601
|
+
}, Dh1 = v0(() => import("./SidePanels-0xaw3Td6.js")), jh1 = v0(() => import("./Topbar-Jc74a6oE.js")), Fh1 = v0(() => import("./CanvasArea-dkwSFbQA.js")), qh1 = v0(() => import("./Settings-4v3M1bRS.js")), Wh1 = () => {
|
|
38599
38602
|
const [t] = ki(bS), e = (n) => {
|
|
38600
38603
|
yS() || n.preventDefault();
|
|
38601
38604
|
};
|
|
38602
|
-
|
|
38605
|
+
Ih1(), Nh1(), L1(() => (t !== "SAVED" ? window.onbeforeunload = () => "" : window.onbeforeunload = null, () => {
|
|
38603
38606
|
window.onbeforeunload = null;
|
|
38604
38607
|
}), [t]);
|
|
38605
38608
|
const a = J4("editable", !0), r = J4("nonEditableComponent", null);
|
|
@@ -38610,28 +38613,28 @@ const Ph1 = () => {
|
|
|
38610
38613
|
onContextMenu: e,
|
|
38611
38614
|
className: "flex h-screen flex-col overflow-hidden bg-background text-foreground",
|
|
38612
38615
|
children: [
|
|
38613
|
-
/* @__PURE__ */ n1.jsx("div", { className: "h-14 w-screen shrink-0 border-b border-border", children: /* @__PURE__ */ n1.jsx(Ue, { children: /* @__PURE__ */ n1.jsx(
|
|
38616
|
+
/* @__PURE__ */ n1.jsx("div", { className: "h-14 w-screen shrink-0 border-b border-border", children: /* @__PURE__ */ n1.jsx(Ue, { children: /* @__PURE__ */ n1.jsx(jh1, {}) }) }),
|
|
38614
38617
|
/* @__PURE__ */ n1.jsxs("main", { className: "flex h-full flex-row relative", children: [
|
|
38615
38618
|
a ? null : /* @__PURE__ */ n1.jsx("div", { className: "absolute backdrop-blur-[2px] flex items-center justify-center inset-0 z-[500] h-full w-full", children: /* @__PURE__ */ n1.jsx(Ue, { children: p.createElement(r) }) }),
|
|
38616
|
-
/* @__PURE__ */ n1.jsx("div", { className: "flex h-full w-fit border-border max-h-full", style: { maxHeight: "calc(100vh - 56px)" }, children: /* @__PURE__ */ n1.jsx(Ue, { children: /* @__PURE__ */ n1.jsx(
|
|
38617
|
-
/* @__PURE__ */ n1.jsx("div", { className: "h-full flex-1 bg-slate-800/20", children: /* @__PURE__ */ n1.jsx(Ue, { children: /* @__PURE__ */ n1.jsx(
|
|
38618
|
-
/* @__PURE__ */ n1.jsx("div", { className: "flex h-full w-[280px] min-w-[280px] border-l border-border", children: /* @__PURE__ */ n1.jsx(Ue, { children: /* @__PURE__ */ n1.jsx(
|
|
38619
|
+
/* @__PURE__ */ n1.jsx("div", { className: "flex h-full w-fit border-border max-h-full", style: { maxHeight: "calc(100vh - 56px)" }, children: /* @__PURE__ */ n1.jsx(Ue, { children: /* @__PURE__ */ n1.jsx(Dh1, {}) }) }),
|
|
38620
|
+
/* @__PURE__ */ n1.jsx("div", { className: "h-full flex-1 bg-slate-800/20", children: /* @__PURE__ */ n1.jsx(Ue, { children: /* @__PURE__ */ n1.jsx(Fh1, {}) }) }),
|
|
38621
|
+
/* @__PURE__ */ n1.jsx("div", { className: "flex h-full w-[280px] min-w-[280px] border-l border-border", children: /* @__PURE__ */ n1.jsx(Ue, { children: /* @__PURE__ */ n1.jsx(qh1, {}) }) })
|
|
38619
38622
|
] })
|
|
38620
38623
|
]
|
|
38621
38624
|
}
|
|
38622
38625
|
),
|
|
38623
|
-
/* @__PURE__ */ n1.jsx(
|
|
38626
|
+
/* @__PURE__ */ n1.jsx(Eh1, {})
|
|
38624
38627
|
] }) });
|
|
38625
38628
|
}, Hf = GS();
|
|
38626
|
-
var
|
|
38627
|
-
|
|
38628
|
-
const
|
|
38629
|
+
var Kh1 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
38630
|
+
Kh1.NODE_ENV === "development" && console.log("Chai Builder:", xC);
|
|
38631
|
+
const Uh1 = (t) => /* @__PURE__ */ n1.jsx(n1.Fragment, { children: t.children }), Zh1 = (t) => {
|
|
38629
38632
|
const { dndOptions: e = { backend: nC } } = t, [a] = LS(), [, r] = OS(), n = Uf();
|
|
38630
38633
|
return L1(() => {
|
|
38631
38634
|
Hf.set(
|
|
38632
38635
|
// @ts-ignore
|
|
38633
38636
|
SS,
|
|
38634
|
-
$f(t, ["blocks", "subPages", "brandingOptions", "
|
|
38637
|
+
$f(t, ["blocks", "subPages", "brandingOptions", "dataProviders"])
|
|
38635
38638
|
);
|
|
38636
38639
|
}, [t]), L1(() => {
|
|
38637
38640
|
Hf.set(CS, t.dataProviders || []);
|
|
@@ -38639,11 +38642,11 @@ const Kh1 = (t) => /* @__PURE__ */ n1.jsx(n1.Fragment, { children: t.children })
|
|
|
38639
38642
|
a(hC(t.blocks || [])), n();
|
|
38640
38643
|
}, [t.blocks]), L1(() => {
|
|
38641
38644
|
r(t.brandingOptions);
|
|
38642
|
-
}, [t.brandingOptions, r]), /* @__PURE__ */ n1.jsx(YS, { ...e, options: lC(), children: /* @__PURE__ */ n1.jsx(
|
|
38643
|
-
},
|
|
38644
|
-
/* @__PURE__ */ n1.jsxs(JS, { features:
|
|
38645
|
+
}, [t.brandingOptions, r]), /* @__PURE__ */ n1.jsx(YS, { ...e, options: lC(), children: /* @__PURE__ */ n1.jsx(Uh1, { children: /* @__PURE__ */ n1.jsx(Wh1, {}) }) });
|
|
38646
|
+
}, Gh1 = (t) => /* @__PURE__ */ n1.jsxs(Ph1, { children: [
|
|
38647
|
+
/* @__PURE__ */ n1.jsxs(JS, { features: Ah1, children: [
|
|
38645
38648
|
/* @__PURE__ */ n1.jsx(Ch1, {}),
|
|
38646
|
-
/* @__PURE__ */ n1.jsx(
|
|
38649
|
+
/* @__PURE__ */ n1.jsx(Zh1, { ...t })
|
|
38647
38650
|
] }),
|
|
38648
38651
|
/* @__PURE__ */ n1.jsx(BS, {})
|
|
38649
38652
|
] });
|
|
@@ -38666,7 +38669,7 @@ var wa = class {
|
|
|
38666
38669
|
}, ga = typeof window > "u" || "Deno" in window;
|
|
38667
38670
|
function H2() {
|
|
38668
38671
|
}
|
|
38669
|
-
function
|
|
38672
|
+
function Jh1(t, e) {
|
|
38670
38673
|
return typeof t == "function" ? t(e) : t;
|
|
38671
38674
|
}
|
|
38672
38675
|
function u3(t) {
|
|
@@ -38772,15 +38775,15 @@ function xf(t) {
|
|
|
38772
38775
|
function f3(t, e, a) {
|
|
38773
38776
|
return typeof a.structuralSharing == "function" ? a.structuralSharing(t, e) : a.structuralSharing !== !1 ? WO(t, e) : e;
|
|
38774
38777
|
}
|
|
38775
|
-
function
|
|
38778
|
+
function Yh1(t, e, a = 0) {
|
|
38776
38779
|
const r = [...t, e];
|
|
38777
38780
|
return a && r.length > a ? r.slice(1) : r;
|
|
38778
38781
|
}
|
|
38779
|
-
function
|
|
38782
|
+
function Qh1(t, e, a = 0) {
|
|
38780
38783
|
const r = [e, ...t];
|
|
38781
38784
|
return a && r.length > a ? r.slice(0, -1) : r;
|
|
38782
38785
|
}
|
|
38783
|
-
var Ye, pe, U0, Af,
|
|
38786
|
+
var Ye, pe, U0, Af, Xh1 = (Af = class extends wa {
|
|
38784
38787
|
constructor() {
|
|
38785
38788
|
super();
|
|
38786
38789
|
m1(this, Ye, void 0);
|
|
@@ -38820,7 +38823,7 @@ var Ye, pe, U0, Af, Qh1 = (Af = class extends wa {
|
|
|
38820
38823
|
var e;
|
|
38821
38824
|
return typeof B(this, Ye) == "boolean" ? B(this, Ye) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
38822
38825
|
}
|
|
38823
|
-
}, Ye = new WeakMap(), pe = new WeakMap(), U0 = new WeakMap(), Af), Ai = new
|
|
38826
|
+
}, Ye = new WeakMap(), pe = new WeakMap(), U0 = new WeakMap(), Af), Ai = new Xh1(), Z0, ze, G0, Pf, _h1 = (Pf = class extends wa {
|
|
38824
38827
|
constructor() {
|
|
38825
38828
|
super();
|
|
38826
38829
|
m1(this, Z0, !0);
|
|
@@ -38854,8 +38857,8 @@ var Ye, pe, U0, Af, Qh1 = (Af = class extends wa {
|
|
|
38854
38857
|
isOnline() {
|
|
38855
38858
|
return B(this, Z0);
|
|
38856
38859
|
}
|
|
38857
|
-
}, Z0 = new WeakMap(), ze = new WeakMap(), G0 = new WeakMap(), Pf), Pi = new
|
|
38858
|
-
function
|
|
38860
|
+
}, Z0 = new WeakMap(), ze = new WeakMap(), G0 = new WeakMap(), Pf), Pi = new _h1();
|
|
38861
|
+
function $h1(t) {
|
|
38859
38862
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
38860
38863
|
}
|
|
38861
38864
|
function Ho(t) {
|
|
@@ -38908,7 +38911,7 @@ function ZO(t) {
|
|
|
38908
38911
|
var y;
|
|
38909
38912
|
if (r)
|
|
38910
38913
|
return;
|
|
38911
|
-
const m = t.retry ?? (ga ? 0 : 3), V = t.retryDelay ??
|
|
38914
|
+
const m = t.retry ?? (ga ? 0 : 3), V = t.retryDelay ?? $h1, b = typeof V == "function" ? V(a, M) : V, w = m === !0 || typeof m == "number" && a < m || typeof m == "function" && m(a, M);
|
|
38912
38915
|
if (e || !w) {
|
|
38913
38916
|
u(M);
|
|
38914
38917
|
return;
|
|
@@ -38929,7 +38932,7 @@ function ZO(t) {
|
|
|
38929
38932
|
continueRetry: h
|
|
38930
38933
|
};
|
|
38931
38934
|
}
|
|
38932
|
-
function
|
|
38935
|
+
function ts1() {
|
|
38933
38936
|
let t = [], e = 0, a = (h) => {
|
|
38934
38937
|
h();
|
|
38935
38938
|
}, r = (h) => {
|
|
@@ -38974,7 +38977,7 @@ function $h1() {
|
|
|
38974
38977
|
}
|
|
38975
38978
|
};
|
|
38976
38979
|
}
|
|
38977
|
-
var mt =
|
|
38980
|
+
var mt = ts1(), Qe, Ef, GO = (Ef = class {
|
|
38978
38981
|
constructor() {
|
|
38979
38982
|
m1(this, Qe, void 0);
|
|
38980
38983
|
}
|
|
@@ -38995,7 +38998,7 @@ var mt = $h1(), Qe, Ef, GO = (Ef = class {
|
|
|
38995
38998
|
clearGcTimeout() {
|
|
38996
38999
|
B(this, Qe) && (clearTimeout(B(this, Qe)), u1(this, Qe, void 0));
|
|
38997
39000
|
}
|
|
38998
|
-
}, Qe = new WeakMap(), Ef), J0, Y0, p2, Me, z2, Ot, vr, Xe, Q0, U4, S2, _2, If,
|
|
39001
|
+
}, Qe = new WeakMap(), Ef), J0, Y0, p2, Me, z2, Ot, vr, Xe, Q0, U4, S2, _2, If, es1 = (If = class extends GO {
|
|
38999
39002
|
constructor(e) {
|
|
39000
39003
|
super();
|
|
39001
39004
|
m1(this, Q0);
|
|
@@ -39008,7 +39011,7 @@ var mt = $h1(), Qe, Ef, GO = (Ef = class {
|
|
|
39008
39011
|
m1(this, Ot, void 0);
|
|
39009
39012
|
m1(this, vr, void 0);
|
|
39010
39013
|
m1(this, Xe, void 0);
|
|
39011
|
-
u1(this, Xe, !1), u1(this, vr, e.defaultOptions), P1(this, Q0, U4).call(this, e.options), u1(this, Ot, []), u1(this, p2, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, u1(this, J0, e.state ||
|
|
39014
|
+
u1(this, Xe, !1), u1(this, vr, e.defaultOptions), P1(this, Q0, U4).call(this, e.options), u1(this, Ot, []), u1(this, p2, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, u1(this, J0, e.state || as1(this.options)), this.state = B(this, J0), this.scheduleGc();
|
|
39012
39015
|
}
|
|
39013
39016
|
get meta() {
|
|
39014
39017
|
return this.options.meta;
|
|
@@ -39246,7 +39249,7 @@ var mt = $h1(), Qe, Ef, GO = (Ef = class {
|
|
|
39246
39249
|
}), B(this, p2).notify({ query: this, type: "updated", action: e });
|
|
39247
39250
|
});
|
|
39248
39251
|
}, If);
|
|
39249
|
-
function
|
|
39252
|
+
function as1(t) {
|
|
39250
39253
|
const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, a = typeof e < "u", r = a ? typeof t.initialDataUpdatedAt == "function" ? t.initialDataUpdatedAt() : t.initialDataUpdatedAt : 0;
|
|
39251
39254
|
return {
|
|
39252
39255
|
data: e,
|
|
@@ -39263,7 +39266,7 @@ function es1(t) {
|
|
|
39263
39266
|
fetchStatus: "idle"
|
|
39264
39267
|
};
|
|
39265
39268
|
}
|
|
39266
|
-
var T2, kf,
|
|
39269
|
+
var T2, kf, rs1 = (kf = class extends wa {
|
|
39267
39270
|
constructor(e = {}) {
|
|
39268
39271
|
super();
|
|
39269
39272
|
m1(this, T2, void 0);
|
|
@@ -39272,7 +39275,7 @@ var T2, kf, as1 = (kf = class extends wa {
|
|
|
39272
39275
|
build(e, a, r) {
|
|
39273
39276
|
const n = a.queryKey, l = a.queryHash ?? rs(n, a);
|
|
39274
39277
|
let i = this.get(l);
|
|
39275
|
-
return i || (i = new
|
|
39278
|
+
return i || (i = new es1({
|
|
39276
39279
|
cache: this,
|
|
39277
39280
|
queryKey: n,
|
|
39278
39281
|
queryHash: l,
|
|
@@ -39335,7 +39338,7 @@ var T2, kf, as1 = (kf = class extends wa {
|
|
|
39335
39338
|
});
|
|
39336
39339
|
});
|
|
39337
39340
|
}
|
|
39338
|
-
}, T2 = new WeakMap(), kf), D2, dr, n2, X0, j2, fe, Nf,
|
|
39341
|
+
}, T2 = new WeakMap(), kf), D2, dr, n2, X0, j2, fe, Nf, ns1 = (Nf = class extends GO {
|
|
39339
39342
|
constructor(e) {
|
|
39340
39343
|
super();
|
|
39341
39344
|
m1(this, j2);
|
|
@@ -39528,7 +39531,7 @@ function JO() {
|
|
|
39528
39531
|
submittedAt: 0
|
|
39529
39532
|
};
|
|
39530
39533
|
}
|
|
39531
|
-
var M2, ur, _e, Rf,
|
|
39534
|
+
var M2, ur, _e, Rf, ls1 = (Rf = class extends wa {
|
|
39532
39535
|
constructor(e = {}) {
|
|
39533
39536
|
super();
|
|
39534
39537
|
m1(this, M2, void 0);
|
|
@@ -39537,7 +39540,7 @@ var M2, ur, _e, Rf, ns1 = (Rf = class extends wa {
|
|
|
39537
39540
|
this.config = e, u1(this, M2, []), u1(this, ur, 0);
|
|
39538
39541
|
}
|
|
39539
39542
|
build(e, a, r) {
|
|
39540
|
-
const n = new
|
|
39543
|
+
const n = new ns1({
|
|
39541
39544
|
mutationCache: this,
|
|
39542
39545
|
mutationId: ++qr(this, ur)._,
|
|
39543
39546
|
options: e.defaultMutationOptions(a),
|
|
@@ -39593,7 +39596,7 @@ var M2, ur, _e, Rf, ns1 = (Rf = class extends wa {
|
|
|
39593
39596
|
})), B(this, _e);
|
|
39594
39597
|
}
|
|
39595
39598
|
}, M2 = new WeakMap(), ur = new WeakMap(), _e = new WeakMap(), Rf);
|
|
39596
|
-
function
|
|
39599
|
+
function is1(t) {
|
|
39597
39600
|
return {
|
|
39598
39601
|
onFetch: (e, a) => {
|
|
39599
39602
|
const r = async () => {
|
|
@@ -39623,7 +39626,7 @@ function ls1(t) {
|
|
|
39623
39626
|
h(y);
|
|
39624
39627
|
const x = await s(
|
|
39625
39628
|
y
|
|
39626
|
-
), { maxPages: L } = e.options, S = w ?
|
|
39629
|
+
), { maxPages: L } = e.options, S = w ? Qh1 : Yh1;
|
|
39627
39630
|
return {
|
|
39628
39631
|
pages: S(V.pages, x, L),
|
|
39629
39632
|
pageParams: S(V.pageParams, b, L)
|
|
@@ -39631,7 +39634,7 @@ function ls1(t) {
|
|
|
39631
39634
|
};
|
|
39632
39635
|
let u;
|
|
39633
39636
|
if (l && i.length) {
|
|
39634
|
-
const V = l === "backward", b = V ?
|
|
39637
|
+
const V = l === "backward", b = V ? os1 : Lf, w = {
|
|
39635
39638
|
pages: i,
|
|
39636
39639
|
pageParams: o
|
|
39637
39640
|
}, y = b(n, w);
|
|
@@ -39674,7 +39677,7 @@ function Lf(t, { pages: e, pageParams: a }) {
|
|
|
39674
39677
|
a
|
|
39675
39678
|
);
|
|
39676
39679
|
}
|
|
39677
|
-
function
|
|
39680
|
+
function os1(t, { pages: e, pageParams: a }) {
|
|
39678
39681
|
var r;
|
|
39679
39682
|
return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
|
|
39680
39683
|
t,
|
|
@@ -39684,7 +39687,7 @@ function is1(t, { pages: e, pageParams: a }) {
|
|
|
39684
39687
|
a
|
|
39685
39688
|
);
|
|
39686
39689
|
}
|
|
39687
|
-
var Mt, me, He, _0, $0, Ve, ta, ea, Tf,
|
|
39690
|
+
var Mt, me, He, _0, $0, Ve, ta, ea, Tf, cs1 = (Tf = class {
|
|
39688
39691
|
constructor(t = {}) {
|
|
39689
39692
|
m1(this, Mt, void 0);
|
|
39690
39693
|
m1(this, me, void 0);
|
|
@@ -39694,7 +39697,7 @@ var Mt, me, He, _0, $0, Ve, ta, ea, Tf, os1 = (Tf = class {
|
|
|
39694
39697
|
m1(this, Ve, void 0);
|
|
39695
39698
|
m1(this, ta, void 0);
|
|
39696
39699
|
m1(this, ea, void 0);
|
|
39697
|
-
u1(this, Mt, t.queryCache || new
|
|
39700
|
+
u1(this, Mt, t.queryCache || new rs1()), u1(this, me, t.mutationCache || new ls1()), u1(this, He, t.defaultOptions || {}), u1(this, _0, /* @__PURE__ */ new Map()), u1(this, $0, /* @__PURE__ */ new Map()), u1(this, Ve, 0);
|
|
39698
39701
|
}
|
|
39699
39702
|
mount() {
|
|
39700
39703
|
qr(this, Ve)._++, B(this, Ve) === 1 && (u1(this, ta, Ai.subscribe(() => {
|
|
@@ -39728,7 +39731,7 @@ var Mt, me, He, _0, $0, Ve, ta, ea, Tf, os1 = (Tf = class {
|
|
|
39728
39731
|
});
|
|
39729
39732
|
}
|
|
39730
39733
|
setQueryData(t, e, a) {
|
|
39731
|
-
const r = B(this, Mt).find({ queryKey: t }), n = r == null ? void 0 : r.state.data, l =
|
|
39734
|
+
const r = B(this, Mt).find({ queryKey: t }), n = r == null ? void 0 : r.state.data, l = Jh1(e, n);
|
|
39732
39735
|
if (typeof l > "u")
|
|
39733
39736
|
return;
|
|
39734
39737
|
const i = this.defaultQueryOptions({ queryKey: t });
|
|
@@ -39804,7 +39807,7 @@ var Mt, me, He, _0, $0, Ve, ta, ea, Tf, os1 = (Tf = class {
|
|
|
39804
39807
|
return this.fetchQuery(t).then(H2).catch(H2);
|
|
39805
39808
|
}
|
|
39806
39809
|
fetchInfiniteQuery(t) {
|
|
39807
|
-
return t.behavior =
|
|
39810
|
+
return t.behavior = is1(t.pages), this.fetchQuery(t);
|
|
39808
39811
|
}
|
|
39809
39812
|
prefetchInfiniteQuery(t) {
|
|
39810
39813
|
return this.fetchInfiniteQuery(t).then(H2).catch(H2);
|
|
@@ -39875,7 +39878,7 @@ var Mt, me, He, _0, $0, Ve, ta, ea, Tf, os1 = (Tf = class {
|
|
|
39875
39878
|
clear() {
|
|
39876
39879
|
B(this, Mt).clear(), B(this, me).clear();
|
|
39877
39880
|
}
|
|
39878
|
-
}, Mt = new WeakMap(), me = new WeakMap(), He = new WeakMap(), _0 = new WeakMap(), $0 = new WeakMap(), Ve = new WeakMap(), ta = new WeakMap(), ea = new WeakMap(), Tf), Yt, tt, aa, Tt, $e, ra, F2, gr, na, la, t0, e0, we, a0, r0, Ja, fr, p3, pr, z3, zr, M3, Mr, m3, mr, H3, Hr, V3, Vr, w3, Ei, YO, Df,
|
|
39881
|
+
}, Mt = new WeakMap(), me = new WeakMap(), He = new WeakMap(), _0 = new WeakMap(), $0 = new WeakMap(), Ve = new WeakMap(), ta = new WeakMap(), ea = new WeakMap(), Tf), Yt, tt, aa, Tt, $e, ra, F2, gr, na, la, t0, e0, we, a0, r0, Ja, fr, p3, pr, z3, zr, M3, Mr, m3, mr, H3, Hr, V3, Vr, w3, Ei, YO, Df, hs1 = (Df = class extends wa {
|
|
39879
39882
|
constructor(e, a) {
|
|
39880
39883
|
super();
|
|
39881
39884
|
m1(this, r0);
|
|
@@ -39952,7 +39955,7 @@ var Mt, me, He, _0, $0, Ve, ta, ea, Tf, os1 = (Tf = class {
|
|
|
39952
39955
|
}
|
|
39953
39956
|
getOptimisticResult(e) {
|
|
39954
39957
|
const a = B(this, Yt).getQueryCache().build(B(this, Yt), e), r = this.createResult(a, e);
|
|
39955
|
-
return
|
|
39958
|
+
return vs1(this, r) && (u1(this, Tt, r), u1(this, ra, this.options), u1(this, $e, B(this, tt).state)), r;
|
|
39956
39959
|
}
|
|
39957
39960
|
getCurrentResult() {
|
|
39958
39961
|
return B(this, Tt);
|
|
@@ -40121,11 +40124,11 @@ var Mt, me, He, _0, $0, Ve, ta, ea, Tf, os1 = (Tf = class {
|
|
|
40121
40124
|
});
|
|
40122
40125
|
});
|
|
40123
40126
|
}, Df);
|
|
40124
|
-
function
|
|
40127
|
+
function ss1(t, e) {
|
|
40125
40128
|
return e.enabled !== !1 && !t.state.dataUpdatedAt && !(t.state.status === "error" && e.retryOnMount === !1);
|
|
40126
40129
|
}
|
|
40127
40130
|
function Of(t, e) {
|
|
40128
|
-
return
|
|
40131
|
+
return ss1(t, e) || t.state.dataUpdatedAt > 0 && b3(t, e, e.refetchOnMount);
|
|
40129
40132
|
}
|
|
40130
40133
|
function b3(t, e, a) {
|
|
40131
40134
|
if (e.enabled !== !1) {
|
|
@@ -40140,10 +40143,10 @@ function Sf(t, e, a, r) {
|
|
|
40140
40143
|
function ns(t, e) {
|
|
40141
40144
|
return t.isStaleByTime(e.staleTime);
|
|
40142
40145
|
}
|
|
40143
|
-
function
|
|
40146
|
+
function vs1(t, e) {
|
|
40144
40147
|
return !Bi(t.getCurrentResult(), e);
|
|
40145
40148
|
}
|
|
40146
|
-
var be, Kt, m2, te, ia, Z4, wr, y3, jf,
|
|
40149
|
+
var be, Kt, m2, te, ia, Z4, wr, y3, jf, ds1 = (jf = class extends wa {
|
|
40147
40150
|
constructor(a, r) {
|
|
40148
40151
|
super();
|
|
40149
40152
|
m1(this, ia);
|
|
@@ -40234,13 +40237,13 @@ var QO = O.createContext(
|
|
|
40234
40237
|
if (!e)
|
|
40235
40238
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
40236
40239
|
return e;
|
|
40237
|
-
},
|
|
40240
|
+
}, us1 = ({
|
|
40238
40241
|
client: t,
|
|
40239
40242
|
children: e
|
|
40240
40243
|
}) => (O.useEffect(() => (t.mount(), () => {
|
|
40241
40244
|
t.unmount();
|
|
40242
|
-
}), [t]), /* @__PURE__ */ O.createElement(QO.Provider, { value: t }, e)), XO = O.createContext(!1),
|
|
40243
|
-
function
|
|
40245
|
+
}), [t]), /* @__PURE__ */ O.createElement(QO.Provider, { value: t }, e)), XO = O.createContext(!1), gs1 = () => O.useContext(XO), X91 = XO.Provider;
|
|
40246
|
+
function fs1() {
|
|
40244
40247
|
let t = !1;
|
|
40245
40248
|
return {
|
|
40246
40249
|
clearReset: () => {
|
|
@@ -40252,35 +40255,35 @@ function gs1() {
|
|
|
40252
40255
|
isReset: () => t
|
|
40253
40256
|
};
|
|
40254
40257
|
}
|
|
40255
|
-
var
|
|
40258
|
+
var ps1 = O.createContext(fs1()), zs1 = () => O.useContext(ps1);
|
|
40256
40259
|
function _O(t, e) {
|
|
40257
40260
|
return typeof t == "function" ? t(...e) : !!t;
|
|
40258
40261
|
}
|
|
40259
|
-
var
|
|
40262
|
+
var Ms1 = (t, e) => {
|
|
40260
40263
|
(t.suspense || t.throwOnError) && (e.isReset() || (t.retryOnMount = !1));
|
|
40261
|
-
},
|
|
40264
|
+
}, ms1 = (t) => {
|
|
40262
40265
|
O.useEffect(() => {
|
|
40263
40266
|
t.clearReset();
|
|
40264
40267
|
}, [t]);
|
|
40265
|
-
},
|
|
40268
|
+
}, Hs1 = ({
|
|
40266
40269
|
result: t,
|
|
40267
40270
|
errorResetBoundary: e,
|
|
40268
40271
|
throwOnError: a,
|
|
40269
40272
|
query: r
|
|
40270
40273
|
}) => t.isError && !e.isReset() && !t.isFetching && _O(a, [t.error, r]);
|
|
40271
|
-
var
|
|
40274
|
+
var Vs1 = (t) => {
|
|
40272
40275
|
t.suspense && typeof t.staleTime != "number" && (t.staleTime = 1e3);
|
|
40273
40276
|
};
|
|
40274
|
-
var
|
|
40277
|
+
var ws1 = (t, e) => (t == null ? void 0 : t.suspense) && e.isPending, bs1 = (t, e, a) => e.fetchOptimistic(t).catch(() => {
|
|
40275
40278
|
a.clearReset();
|
|
40276
40279
|
});
|
|
40277
|
-
function
|
|
40280
|
+
function ys1(t, e, a) {
|
|
40278
40281
|
if (process.env.NODE_ENV !== "production" && (typeof t != "object" || Array.isArray(t)))
|
|
40279
40282
|
throw new Error(
|
|
40280
40283
|
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
|
40281
40284
|
);
|
|
40282
|
-
const r = b2(a), n =
|
|
40283
|
-
i._optimisticResults = n ? "isRestoring" : "optimistic",
|
|
40285
|
+
const r = b2(a), n = gs1(), l = zs1(), i = r.defaultQueryOptions(t);
|
|
40286
|
+
i._optimisticResults = n ? "isRestoring" : "optimistic", Vs1(i), Ms1(i, l), ms1(l);
|
|
40284
40287
|
const [o] = O.useState(
|
|
40285
40288
|
() => new e(
|
|
40286
40289
|
r,
|
|
@@ -40300,9 +40303,9 @@ function bs1(t, e, a) {
|
|
|
40300
40303
|
() => o.getCurrentResult()
|
|
40301
40304
|
), O.useEffect(() => {
|
|
40302
40305
|
o.setOptions(i, { listeners: !1 });
|
|
40303
|
-
}, [i, o]),
|
|
40304
|
-
throw
|
|
40305
|
-
if (
|
|
40306
|
+
}, [i, o]), ws1(i, c))
|
|
40307
|
+
throw bs1(i, o, l);
|
|
40308
|
+
if (Hs1({
|
|
40306
40309
|
result: c,
|
|
40307
40310
|
errorResetBoundary: l,
|
|
40308
40311
|
throwOnError: i.throwOnError,
|
|
@@ -40312,11 +40315,11 @@ function bs1(t, e, a) {
|
|
|
40312
40315
|
return i.notifyOnChangeProps ? c : o.trackResult(c);
|
|
40313
40316
|
}
|
|
40314
40317
|
function Dr(t, e) {
|
|
40315
|
-
return
|
|
40318
|
+
return ys1(t, hs1, e);
|
|
40316
40319
|
}
|
|
40317
40320
|
function k2(t, e) {
|
|
40318
40321
|
const a = b2(e), [r] = O.useState(
|
|
40319
|
-
() => new
|
|
40322
|
+
() => new ds1(
|
|
40320
40323
|
a,
|
|
40321
40324
|
t
|
|
40322
40325
|
)
|
|
@@ -40333,7 +40336,7 @@ function k2(t, e) {
|
|
|
40333
40336
|
() => r.getCurrentResult()
|
|
40334
40337
|
), l = O.useCallback(
|
|
40335
40338
|
(i, o) => {
|
|
40336
|
-
r.mutate(i, o).catch(
|
|
40339
|
+
r.mutate(i, o).catch(xs1);
|
|
40337
40340
|
},
|
|
40338
40341
|
[r]
|
|
40339
40342
|
);
|
|
@@ -40341,7 +40344,7 @@ function k2(t, e) {
|
|
|
40341
40344
|
throw n.error;
|
|
40342
40345
|
return { ...n, mutate: l, mutateAsync: n.mutate };
|
|
40343
40346
|
}
|
|
40344
|
-
function
|
|
40347
|
+
function xs1() {
|
|
40345
40348
|
}
|
|
40346
40349
|
function Ft() {
|
|
40347
40350
|
return b2().getQueryData(["apiBaseUrl"]) || "/api/chaibuilder";
|
|
@@ -40360,14 +40363,14 @@ const b0 = () => {
|
|
|
40360
40363
|
};
|
|
40361
40364
|
let Cf = "";
|
|
40362
40365
|
const jr = () => (Cf = localStorage.getItem("__chai_at"), Cf);
|
|
40363
|
-
function
|
|
40366
|
+
function Ls1(t) {
|
|
40364
40367
|
const e = {
|
|
40365
40368
|
method: "GET",
|
|
40366
40369
|
headers: { "x-chai-access-token": jr() }
|
|
40367
40370
|
};
|
|
40368
40371
|
return fetch(t, e);
|
|
40369
40372
|
}
|
|
40370
|
-
function
|
|
40373
|
+
function Os1(t, e) {
|
|
40371
40374
|
const a = {
|
|
40372
40375
|
method: "POST",
|
|
40373
40376
|
headers: { "x-chai-access-token": jr() },
|
|
@@ -40375,7 +40378,7 @@ function Ls1(t, e) {
|
|
|
40375
40378
|
};
|
|
40376
40379
|
return fetch(t, a);
|
|
40377
40380
|
}
|
|
40378
|
-
function
|
|
40381
|
+
function Ss1(t, e) {
|
|
40379
40382
|
const a = {
|
|
40380
40383
|
method: "PUT",
|
|
40381
40384
|
headers: { "x-chai-access-token": jr() },
|
|
@@ -40383,7 +40386,7 @@ function Os1(t, e) {
|
|
|
40383
40386
|
};
|
|
40384
40387
|
return fetch(t, a);
|
|
40385
40388
|
}
|
|
40386
|
-
function
|
|
40389
|
+
function Cs1(t, e) {
|
|
40387
40390
|
const a = {
|
|
40388
40391
|
method: "DELETE",
|
|
40389
40392
|
headers: { "x-chai-access-token": jr() },
|
|
@@ -40392,10 +40395,10 @@ function Ss1(t, e) {
|
|
|
40392
40395
|
return fetch(t, a);
|
|
40393
40396
|
}
|
|
40394
40397
|
const v2 = {
|
|
40395
|
-
get:
|
|
40396
|
-
post:
|
|
40397
|
-
put:
|
|
40398
|
-
delete:
|
|
40398
|
+
get: Ls1,
|
|
40399
|
+
post: Os1,
|
|
40400
|
+
put: Ss1,
|
|
40401
|
+
delete: Cs1
|
|
40399
40402
|
}, $O = () => {
|
|
40400
40403
|
const [t, e] = b0(), a = Ft();
|
|
40401
40404
|
return Dr({
|
|
@@ -40437,7 +40440,7 @@ const v2 = {
|
|
|
40437
40440
|
/* @__PURE__ */ n1.jsx("div", { className: "w-4 h-4 rounded-full bg-yellow-600 animate-bounce [animation-delay:.0s]" })
|
|
40438
40441
|
] }),
|
|
40439
40442
|
/* @__PURE__ */ n1.jsx("div", { className: "text-gray-700 font-thin", children: "Loading Builder..." })
|
|
40440
|
-
] }) }),
|
|
40443
|
+
] }) }), Bs1 = (t = "Project updated successfully.") => {
|
|
40441
40444
|
const e = b2(), a = Ft();
|
|
40442
40445
|
return k2({
|
|
40443
40446
|
mutationFn: async (r) => await v2.put(`${a}/project`, r).then((n) => n.json()),
|
|
@@ -40445,20 +40448,20 @@ const v2 = {
|
|
|
40445
40448
|
e.invalidateQueries({ queryKey: ["project"] }), ae.success(t);
|
|
40446
40449
|
}
|
|
40447
40450
|
});
|
|
40448
|
-
},
|
|
40451
|
+
}, As1 = () => {
|
|
40449
40452
|
const [t] = ["SAVED"], [e, a] = b0(), r = Uf();
|
|
40450
40453
|
return (n) => t !== "SAVED" ? (ae.error("You have unsaved changes. Please save before changing the page."), !1) : e === n.uuid ? !1 : (r(), setTimeout(() => {
|
|
40451
40454
|
a(n.uuid);
|
|
40452
40455
|
}, 100), !0);
|
|
40453
|
-
},
|
|
40454
|
-
const t = b2(), e =
|
|
40456
|
+
}, _91 = () => {
|
|
40457
|
+
const t = b2(), e = As1(), a = Ft();
|
|
40455
40458
|
return k2({
|
|
40456
40459
|
mutationFn: async (r) => v2.post(`${a}/pages`, r).then((n) => n.json()),
|
|
40457
40460
|
onSuccess: (r) => {
|
|
40458
40461
|
t.invalidateQueries({ queryKey: ["pages"] }), e({ uuid: r.uuid, slug: r.slug }), ae.success("Page added successfully.");
|
|
40459
40462
|
}
|
|
40460
40463
|
});
|
|
40461
|
-
},
|
|
40464
|
+
}, Ps1 = () => {
|
|
40462
40465
|
const t = Ft(), [e] = b0(), a = b2();
|
|
40463
40466
|
return k2({
|
|
40464
40467
|
mutationFn: async (r) => v2.put(`${t}/page`, r).then((n) => n.json()),
|
|
@@ -40471,7 +40474,7 @@ const v2 = {
|
|
|
40471
40474
|
ae.success("Page saved successfully.");
|
|
40472
40475
|
}
|
|
40473
40476
|
});
|
|
40474
|
-
},
|
|
40477
|
+
}, Es1 = () => {
|
|
40475
40478
|
const t = Ft(), { data: e } = tS(), [a] = b0(), { data: r } = $O(), n = b2();
|
|
40476
40479
|
return k2({
|
|
40477
40480
|
mutationFn: async () => {
|
|
@@ -40494,7 +40497,7 @@ const v2 = {
|
|
|
40494
40497
|
});
|
|
40495
40498
|
}
|
|
40496
40499
|
});
|
|
40497
|
-
},
|
|
40500
|
+
}, $91 = () => {
|
|
40498
40501
|
const t = b2(), e = Ft();
|
|
40499
40502
|
return k2({
|
|
40500
40503
|
mutationFn: async (a) => v2.delete(`${e}/page`, a).then((r) => r.json()),
|
|
@@ -40502,7 +40505,7 @@ const v2 = {
|
|
|
40502
40505
|
ae.success("Page deleted successfully."), t.invalidateQueries({ queryKey: ["pages"] });
|
|
40503
40506
|
}
|
|
40504
40507
|
});
|
|
40505
|
-
},
|
|
40508
|
+
}, Is1 = () => {
|
|
40506
40509
|
const t = b2(), e = Ft();
|
|
40507
40510
|
return k2({
|
|
40508
40511
|
mutationFn: async (a) => v2.post(`${e}/take-control`, { uuid: a }).then((r) => r.json()),
|
|
@@ -40510,7 +40513,7 @@ const v2 = {
|
|
|
40510
40513
|
t.invalidateQueries({ queryKey: ["page_data", r] });
|
|
40511
40514
|
}
|
|
40512
40515
|
});
|
|
40513
|
-
},
|
|
40516
|
+
}, ks1 = () => {
|
|
40514
40517
|
const t = Ft();
|
|
40515
40518
|
return k2({
|
|
40516
40519
|
mutationFn: async () => {
|
|
@@ -40521,7 +40524,7 @@ const v2 = {
|
|
|
40521
40524
|
);
|
|
40522
40525
|
}
|
|
40523
40526
|
});
|
|
40524
|
-
},
|
|
40527
|
+
}, Ns1 = () => {
|
|
40525
40528
|
const t = Ft();
|
|
40526
40529
|
return k2({
|
|
40527
40530
|
mutationFn: async (e) => {
|
|
@@ -40535,7 +40538,7 @@ const v2 = {
|
|
|
40535
40538
|
}
|
|
40536
40539
|
}
|
|
40537
40540
|
});
|
|
40538
|
-
},
|
|
40541
|
+
}, Rs1 = () => {
|
|
40539
40542
|
const t = Ft();
|
|
40540
40543
|
return k2({
|
|
40541
40544
|
mutationFn: async (e) => {
|
|
@@ -40565,7 +40568,7 @@ var aS = {
|
|
|
40565
40568
|
}
|
|
40566
40569
|
return t;
|
|
40567
40570
|
}, Se.apply(this, arguments);
|
|
40568
|
-
},
|
|
40571
|
+
}, Ts1 = function(t, e) {
|
|
40569
40572
|
var a = {};
|
|
40570
40573
|
for (var r in t)
|
|
40571
40574
|
Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (a[r] = t[r]);
|
|
@@ -40583,14 +40586,14 @@ function rS(t) {
|
|
|
40583
40586
|
}
|
|
40584
40587
|
function nS(t) {
|
|
40585
40588
|
return function(e) {
|
|
40586
|
-
return p.createElement(
|
|
40589
|
+
return p.createElement(Ds1, Se({
|
|
40587
40590
|
attr: Se({}, t.attr)
|
|
40588
40591
|
}, e), rS(t.child));
|
|
40589
40592
|
};
|
|
40590
40593
|
}
|
|
40591
|
-
function
|
|
40594
|
+
function Ds1(t) {
|
|
40592
40595
|
var e = function(a) {
|
|
40593
|
-
var r = t.attr, n = t.size, l = t.title, i =
|
|
40596
|
+
var r = t.attr, n = t.size, l = t.title, i = Ts1(t, ["attr", "size", "title"]), o = n || a.size || "1em", c;
|
|
40594
40597
|
return a.className && (c = a.className), t.className && (c = (c ? c + " " : "") + t.className), p.createElement("svg", Se({
|
|
40595
40598
|
stroke: "currentColor",
|
|
40596
40599
|
fill: "currentColor",
|
|
@@ -40612,11 +40615,11 @@ function Ts1(t) {
|
|
|
40612
40615
|
function lS(t) {
|
|
40613
40616
|
return nS({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z" } }] })(t);
|
|
40614
40617
|
}
|
|
40615
|
-
function
|
|
40618
|
+
function js1(t) {
|
|
40616
40619
|
return nS({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" } }] })(t);
|
|
40617
40620
|
}
|
|
40618
|
-
const
|
|
40619
|
-
const { mutate: t, isPending: e } =
|
|
40621
|
+
const Fs1 = () => {
|
|
40622
|
+
const { mutate: t, isPending: e } = Is1(), [a] = b0(), { data: r } = eS(), n = Ac(r, "lockedBy.name", ""), l = Ac(r, "lockedBy.email", "");
|
|
40620
40623
|
return /* @__PURE__ */ n1.jsxs("div", { className: "bg-white dark:bg-gray-800 rounded-lg drop-shadow-2xl mx-auto p-10 space-y-4 text-center max-w-xl", children: [
|
|
40621
40624
|
/* @__PURE__ */ n1.jsxs("h2", { className: "text-2xl font-bold", children: [
|
|
40622
40625
|
"Page is ",
|
|
@@ -40627,7 +40630,7 @@ const js1 = () => {
|
|
|
40627
40630
|
/* @__PURE__ */ n1.jsx("br", {}),
|
|
40628
40631
|
/* @__PURE__ */ n1.jsxs("div", { className: "flex items-center gap-x-3 w-max mx-auto font-medium text-gray-700 mt-2 text-sm", children: [
|
|
40629
40632
|
/* @__PURE__ */ n1.jsxs("div", { className: "flex items-center gap-x-2 bg-gray-100 py-1 px-2 rounded-md", children: [
|
|
40630
|
-
/* @__PURE__ */ n1.jsx(
|
|
40633
|
+
/* @__PURE__ */ n1.jsx(js1, { className: "w-4 h-4 text-gray-500" }),
|
|
40631
40634
|
" ",
|
|
40632
40635
|
n
|
|
40633
40636
|
] }),
|
|
@@ -40655,7 +40658,7 @@ const js1 = () => {
|
|
|
40655
40658
|
}
|
|
40656
40659
|
)
|
|
40657
40660
|
] });
|
|
40658
|
-
},
|
|
40661
|
+
}, qs1 = () => {
|
|
40659
40662
|
const t = Ft(), e = b2();
|
|
40660
40663
|
return k2({
|
|
40661
40664
|
mutationFn: async (a) => {
|
|
@@ -40676,7 +40679,7 @@ const js1 = () => {
|
|
|
40676
40679
|
ae.error("Invalid login credentials. Please try again.", { position: "top-center" });
|
|
40677
40680
|
}
|
|
40678
40681
|
});
|
|
40679
|
-
},
|
|
40682
|
+
}, Ws1 = () => {
|
|
40680
40683
|
const t = Ft();
|
|
40681
40684
|
return Dr({
|
|
40682
40685
|
queryKey: ["verify"],
|
|
@@ -40685,7 +40688,7 @@ const js1 = () => {
|
|
|
40685
40688
|
return e.ok ? (await e.json()).result === "success" ? { valid: !0 } : (localStorage.removeItem("__chai_at"), { valid: !1 }) : (localStorage.removeItem("__chai_at"), { valid: !0 });
|
|
40686
40689
|
}
|
|
40687
40690
|
});
|
|
40688
|
-
},
|
|
40691
|
+
}, Ks1 = () => {
|
|
40689
40692
|
const t = Ft(), e = b2();
|
|
40690
40693
|
return k2({
|
|
40691
40694
|
mutationFn: async () => {
|
|
@@ -40695,8 +40698,8 @@ const js1 = () => {
|
|
|
40695
40698
|
throw new Error("Invalid session");
|
|
40696
40699
|
}
|
|
40697
40700
|
});
|
|
40698
|
-
},
|
|
40699
|
-
const e =
|
|
40701
|
+
}, Us1 = ({ children: t }) => {
|
|
40702
|
+
const e = Ks1();
|
|
40700
40703
|
return /* @__PURE__ */ n1.jsxs(AS, { children: [
|
|
40701
40704
|
/* @__PURE__ */ n1.jsx(PS, { asChild: !0, children: t }),
|
|
40702
40705
|
/* @__PURE__ */ n1.jsxs(ES, { children: [
|
|
@@ -40725,11 +40728,11 @@ const js1 = () => {
|
|
|
40725
40728
|
] })
|
|
40726
40729
|
] })
|
|
40727
40730
|
] });
|
|
40728
|
-
},
|
|
40729
|
-
const { mutate: t } =
|
|
40731
|
+
}, Zs1 = () => /* @__PURE__ */ n1.jsx(Us1, { children: /* @__PURE__ */ n1.jsx("button", { className: "border-gray-200 rounded-md p-2 mb-2 border", children: /* @__PURE__ */ n1.jsx(zC, { className: "w-4 h-4 text-red-500 cursor-pointer hover:text-red-300 duration-300" }) }) }), Gs1 = v0(() => import("./PagesPanel-xRUnAMIb.js")), Js1 = v0(() => import("./ProjectPanel-8l4Bi3Kh.js")), Ys1 = v0(() => import("./CurrentPage-uRwS0DQC.js")), Qs1 = () => /* @__PURE__ */ n1.jsx("h2", { children: "Your Logo" }), Xs1 = () => {
|
|
40732
|
+
const { mutate: t } = Es1();
|
|
40730
40733
|
return J4("editable", !0) ? /* @__PURE__ */ n1.jsx(S3, { onClick: t, className: "bg-blue-600 text-white", children: "Publish" }) : null;
|
|
40731
|
-
},
|
|
40732
|
-
const { data: e, isLoading: a } = $O(), { data: r, isLoading: n } = tS(), { data: l } = eS(), { mutate: i } =
|
|
40734
|
+
}, _s1 = (t) => {
|
|
40735
|
+
const { data: e, isLoading: a } = $O(), { data: r, isLoading: n } = tS(), { data: l } = eS(), { mutate: i } = Bs1(), { mutate: o } = Ps1(), [c] = b0(), v = Rs1(), h = ks1(), s = Ns1(), d = Ft(), u = D1(
|
|
40733
40736
|
async (m) => await v.mutateAsync(m),
|
|
40734
40737
|
[v]
|
|
40735
40738
|
), f = D1(async () => await h.mutateAsync(), [h]), g = D1(
|
|
@@ -40738,12 +40741,12 @@ const js1 = () => {
|
|
|
40738
40741
|
), z = async (m = 20, V = 0) => {
|
|
40739
40742
|
const b = `limit=${m}&offset=${V}`;
|
|
40740
40743
|
return await fetch(`${d}/assets?${b}`).then((w) => w.json());
|
|
40741
|
-
}, { logo: M =
|
|
40744
|
+
}, { logo: M = Qs1 } = t;
|
|
40742
40745
|
return a || !e ? /* @__PURE__ */ n1.jsx(x3, {}) : n || !r ? /* @__PURE__ */ n1.jsx(x3, {}) : /* @__PURE__ */ n1.jsx("div", { className: "bg-background text-foreground", children: /* @__PURE__ */ n1.jsx(
|
|
40743
|
-
|
|
40746
|
+
Gh1,
|
|
40744
40747
|
{
|
|
40745
40748
|
editable: l != null && l.lockedBy ? l == null ? void 0 : l.lockedBy.self : !0,
|
|
40746
|
-
nonEditableComponent:
|
|
40749
|
+
nonEditableComponent: Fs1,
|
|
40747
40750
|
blocks: (l == null ? void 0 : l.blocks) || [],
|
|
40748
40751
|
brandingOptions: e.brandingOptions,
|
|
40749
40752
|
darkMode: t.darkMode || !1,
|
|
@@ -40752,15 +40755,15 @@ const js1 = () => {
|
|
|
40752
40755
|
onSaveBrandingOptions: async (m) => (await i({ brandingOptions: m }), !0),
|
|
40753
40756
|
topBarComponents: {
|
|
40754
40757
|
left: [M],
|
|
40755
|
-
center: [
|
|
40756
|
-
right: [
|
|
40758
|
+
center: [Ys1],
|
|
40759
|
+
right: [Xs1]
|
|
40757
40760
|
},
|
|
40758
40761
|
sideBarComponents: {
|
|
40759
40762
|
top: [
|
|
40760
|
-
{ icon: sC, name: "pages", panel:
|
|
40761
|
-
{ icon: vC, name: "settings", panel:
|
|
40763
|
+
{ icon: sC, name: "pages", panel: Gs1 },
|
|
40764
|
+
{ icon: vC, name: "settings", panel: Js1 }
|
|
40762
40765
|
],
|
|
40763
|
-
bottom: [
|
|
40766
|
+
bottom: [Zs1]
|
|
40764
40767
|
},
|
|
40765
40768
|
uploadMediaCallback: u,
|
|
40766
40769
|
fetchMediaCallback: z,
|
|
@@ -40770,8 +40773,8 @@ const js1 = () => {
|
|
|
40770
40773
|
unsplashAccessKey: t.unsplashAccessKey || ""
|
|
40771
40774
|
}
|
|
40772
40775
|
) });
|
|
40773
|
-
},
|
|
40774
|
-
const [e, a] = g1(!1), [r, n] = g1(""), [l, i] = g1(""), { mutate: o, isPending: c } =
|
|
40776
|
+
}, $s1 = ({ logo: t }) => {
|
|
40777
|
+
const [e, a] = g1(!1), [r, n] = g1(""), [l, i] = g1(""), { mutate: o, isPending: c } = qs1(), v = (h) => {
|
|
40775
40778
|
h.preventDefault(), o({ email: r, password: l });
|
|
40776
40779
|
};
|
|
40777
40780
|
return /* @__PURE__ */ n1.jsx("section", { className: "h-screen w-screen flex items-center justify-center bg-[radial-gradient(#AAA,transparent_0.5px)] duration-300 [background-size:6px_6px]", children: /* @__PURE__ */ n1.jsx("div", { className: "overflow-hidden bg-white rounded-xl w-96 drop-shadow-2xl duration-300", children: /* @__PURE__ */ n1.jsxs("div", { className: "p-12", children: [
|
|
@@ -40855,30 +40858,30 @@ const js1 = () => {
|
|
|
40855
40858
|
}
|
|
40856
40859
|
) })
|
|
40857
40860
|
] }) }) });
|
|
40858
|
-
},
|
|
40859
|
-
const { data: e, isLoading: a } =
|
|
40861
|
+
}, t91 = (t) => {
|
|
40862
|
+
const { data: e, isLoading: a } = Ws1(), r = b2();
|
|
40860
40863
|
return L1(() => {
|
|
40861
40864
|
r.setQueryData(["apiBaseUrl"], t.apiBaseUrl || "/api/chaibuilder");
|
|
40862
|
-
}, [t.apiBaseUrl, r]), a ? /* @__PURE__ */ n1.jsx(x3, {}) : e != null && e.valid ? /* @__PURE__ */ n1.jsx(
|
|
40863
|
-
},
|
|
40865
|
+
}, [t.apiBaseUrl, r]), a ? /* @__PURE__ */ n1.jsx(x3, {}) : e != null && e.valid ? /* @__PURE__ */ n1.jsx(_s1, { ...t }) : /* @__PURE__ */ n1.jsx($s1, { logo: t.logo });
|
|
40866
|
+
}, e91 = new cs1(), tv1 = (t) => /* @__PURE__ */ n1.jsxs(us1, { client: e91, children: [
|
|
40864
40867
|
/* @__PURE__ */ n1.jsx(gC, { richColors: !0 }),
|
|
40865
|
-
/* @__PURE__ */ n1.jsx(
|
|
40868
|
+
/* @__PURE__ */ n1.jsx(t91, { ...t })
|
|
40866
40869
|
] });
|
|
40867
40870
|
export {
|
|
40868
|
-
|
|
40869
|
-
|
|
40870
|
-
|
|
40871
|
+
Y91 as B,
|
|
40872
|
+
tv1 as C,
|
|
40873
|
+
Ph1 as E,
|
|
40871
40874
|
tS as a,
|
|
40872
40875
|
$O as b,
|
|
40873
|
-
|
|
40874
|
-
|
|
40876
|
+
Bs1 as c,
|
|
40877
|
+
As1 as d,
|
|
40875
40878
|
b0 as e,
|
|
40876
|
-
|
|
40877
|
-
|
|
40879
|
+
J91 as f,
|
|
40880
|
+
_91 as g,
|
|
40878
40881
|
b2 as h,
|
|
40879
|
-
|
|
40880
|
-
|
|
40881
|
-
|
|
40882
|
+
Ps1 as i,
|
|
40883
|
+
$91 as j,
|
|
40884
|
+
Gh1 as k,
|
|
40882
40885
|
zB as r,
|
|
40883
|
-
|
|
40886
|
+
Rh1 as u
|
|
40884
40887
|
};
|