@chaibuilder/sdk 1.0.3 → 1.0.5
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/{AddBlocks-3446caa6.js → AddBlocks-94cf46d7.js} +1 -1
- package/dist/{AddBlocks-5fa3b893.cjs → AddBlocks-bebc8e38.cjs} +1 -1
- package/dist/{BrandingOptions-127004d9.cjs → BrandingOptions-703e2c8b.cjs} +1 -1
- package/dist/{BrandingOptions-b64ac63a.js → BrandingOptions-c22ad026.js} +1 -1
- package/dist/{CanvasArea-a834a8d0.js → CanvasArea-90b0f63d.js} +2 -2
- package/dist/{CanvasArea-e6f83912.cjs → CanvasArea-cd4da772.cjs} +2 -2
- package/dist/{CurrentPage-9d2e0a84.cjs → CurrentPage-7a6d4643.cjs} +1 -1
- package/dist/{CurrentPage-38bf7384.js → CurrentPage-aa4de22f.js} +1 -1
- package/dist/{Layers-12a8b1e7.cjs → Layers-94260926.cjs} +1 -1
- package/dist/{Layers-51b87bb4.js → Layers-cff22f39.js} +2 -2
- package/dist/{MarkAsGlobalBlock-8050aa44.cjs → MarkAsGlobalBlock-4f1e20b0.cjs} +1 -1
- package/dist/{MarkAsGlobalBlock-9cf87fe6.js → MarkAsGlobalBlock-d9bcd24a.js} +1 -1
- package/dist/{PagesPanel-39a90c0f.cjs → PagesPanel-53b0eff4.cjs} +1 -1
- package/dist/{PagesPanel-ec1c1e69.js → PagesPanel-bb740126.js} +2 -2
- package/dist/{ProjectPanel-119c5cc6.js → ProjectPanel-7dab69b4.js} +2 -2
- package/dist/{ProjectPanel-c95c40eb.cjs → ProjectPanel-c0f6a656.cjs} +1 -1
- package/dist/{Settings-8f30ff27.js → Settings-00337fa2.js} +1 -1
- package/dist/{Settings-cf2eb8a0.cjs → Settings-f4f20456.cjs} +1 -1
- package/dist/{SidePanels-d3c0f0aa.cjs → SidePanels-b3e85d16.cjs} +1 -1
- package/dist/{SidePanels-2b030a30.js → SidePanels-ef5cf825.js} +2 -2
- package/dist/{Topbar-bb32e803.js → Topbar-3c249ffe.js} +1 -1
- package/dist/{Topbar-d3aa7d1b.cjs → Topbar-58a2d4b3.cjs} +1 -1
- package/dist/{add-page-modal-8e7f343f.js → add-page-modal-7ccb5b8e.js} +1 -1
- package/dist/{add-page-modal-dfc01491.cjs → add-page-modal-7f75bbb5.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{delete-page-modal-0aa418a6.js → delete-page-modal-4af2dc82.js} +1 -1
- package/dist/{delete-page-modal-eac58724.cjs → delete-page-modal-a88a20fd.cjs} +1 -1
- package/dist/{index-d643d970.js → index-11d42656.js} +184 -181
- package/dist/{index-e77767e0.cjs → index-b7e3f3cb.cjs} +2 -2
- package/dist/{page-viewer-94d094ba.cjs → page-viewer-2936d827.cjs} +1 -1
- package/dist/{page-viewer-1d8a4153.js → page-viewer-f4770b77.js} +2 -2
- package/dist/{project-general-setting-1318cab7.js → project-general-setting-61e24f3d.js} +1 -1
- package/dist/{project-general-setting-03494f42.cjs → project-general-setting-6f0e0138.cjs} +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +3 -3
- package/dist/{single-page-detail-aa50dfdd.js → single-page-detail-515b1f19.js} +2 -2
- package/dist/{single-page-detail-45d9ca3c.cjs → single-page-detail-abca8ffb.cjs} +1 -1
- package/package.json +1 -1
|
@@ -3012,12 +3012,12 @@ function Ie(e) {
|
|
|
3012
3012
|
function wi(e) {
|
|
3013
3013
|
return `___ref-${e || ""}`;
|
|
3014
3014
|
}
|
|
3015
|
-
var QC = Object.defineProperty, XC = Object.defineProperties, _C = Object.getOwnPropertyDescriptors, Zp = Object.getOwnPropertySymbols, $C = Object.prototype.hasOwnProperty,
|
|
3015
|
+
var QC = Object.defineProperty, XC = Object.defineProperties, _C = Object.getOwnPropertyDescriptors, Zp = Object.getOwnPropertySymbols, $C = Object.prototype.hasOwnProperty, eI = Object.prototype.propertyIsEnumerable, Up = (e, t, r) => t in e ? QC(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, io = (e, t) => {
|
|
3016
3016
|
for (var r in t || (t = {}))
|
|
3017
3017
|
$C.call(t, r) && Up(e, r, t[r]);
|
|
3018
3018
|
if (Zp)
|
|
3019
3019
|
for (var r of Zp(t))
|
|
3020
|
-
|
|
3020
|
+
eI.call(t, r) && Up(e, r, t[r]);
|
|
3021
3021
|
return e;
|
|
3022
3022
|
}, lo = (e, t) => XC(e, _C(t));
|
|
3023
3023
|
const co = {
|
|
@@ -3112,7 +3112,7 @@ const co = {
|
|
|
3112
3112
|
common: { transformOrigin: "top right" }
|
|
3113
3113
|
})
|
|
3114
3114
|
}, Jp = ["mousedown", "touchstart"];
|
|
3115
|
-
function
|
|
3115
|
+
function tI(e, t, r) {
|
|
3116
3116
|
const n = xe();
|
|
3117
3117
|
return Ce(() => {
|
|
3118
3118
|
const a = (o) => {
|
|
@@ -3128,7 +3128,7 @@ function t3(e, t, r) {
|
|
|
3128
3128
|
};
|
|
3129
3129
|
}, [n, e, r]), n;
|
|
3130
3130
|
}
|
|
3131
|
-
function
|
|
3131
|
+
function rI({ timeout: e = 2e3 } = {}) {
|
|
3132
3132
|
const [t, r] = Re(null), [n, a] = Re(!1), [o, s] = Re(null), i = (c) => {
|
|
3133
3133
|
clearTimeout(o), s(setTimeout(() => a(!1), e)), a(c);
|
|
3134
3134
|
};
|
|
@@ -3138,23 +3138,23 @@ function r3({ timeout: e = 2e3 } = {}) {
|
|
|
3138
3138
|
a(!1), r(null), clearTimeout(o);
|
|
3139
3139
|
}, error: t, copied: n };
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3141
|
+
function nI(e, t) {
|
|
3142
3142
|
try {
|
|
3143
3143
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
3144
3144
|
} catch {
|
|
3145
3145
|
return e.addListener(t), () => e.removeListener(t);
|
|
3146
3146
|
}
|
|
3147
3147
|
}
|
|
3148
|
-
function
|
|
3148
|
+
function aI(e, t) {
|
|
3149
3149
|
return typeof t == "boolean" ? t : typeof window < "u" && "matchMedia" in window ? window.matchMedia(e).matches : !1;
|
|
3150
3150
|
}
|
|
3151
|
-
function
|
|
3151
|
+
function oI(e, t, { getInitialValueInEffect: r } = {
|
|
3152
3152
|
getInitialValueInEffect: !0
|
|
3153
3153
|
}) {
|
|
3154
|
-
const [n, a] = Re(r ? t :
|
|
3154
|
+
const [n, a] = Re(r ? t : aI(e, t)), o = xe();
|
|
3155
3155
|
return Ce(() => {
|
|
3156
3156
|
if ("matchMedia" in window)
|
|
3157
|
-
return o.current = window.matchMedia(e), a(o.current.matches),
|
|
3157
|
+
return o.current = window.matchMedia(e), a(o.current.matches), nI(o.current, (s) => a(s.matches));
|
|
3158
3158
|
}, [e]), n;
|
|
3159
3159
|
}
|
|
3160
3160
|
function wo(e, t, r) {
|
|
@@ -3171,7 +3171,7 @@ function mr(e, t) {
|
|
|
3171
3171
|
r.current = !0;
|
|
3172
3172
|
}, t);
|
|
3173
3173
|
}
|
|
3174
|
-
function
|
|
3174
|
+
function sI({ opened: e, shouldReturnFocus: t = !0 }) {
|
|
3175
3175
|
const r = xe(), n = () => {
|
|
3176
3176
|
var a;
|
|
3177
3177
|
r.current && "focus" in r.current && typeof r.current.focus == "function" && ((a = r.current) == null || a.focus({ preventScroll: !0 }));
|
|
@@ -3186,16 +3186,16 @@ function s3({ opened: e, shouldReturnFocus: t = !0 }) {
|
|
|
3186
3186
|
};
|
|
3187
3187
|
}, [e, t]), n;
|
|
3188
3188
|
}
|
|
3189
|
-
const
|
|
3190
|
-
function
|
|
3189
|
+
const iI = /input|select|textarea|button|object/, Sv = "a, input, select, textarea, button, object, [tabindex]";
|
|
3190
|
+
function lI(e) {
|
|
3191
3191
|
return process.env.NODE_ENV === "test" ? !1 : e.style.display === "none";
|
|
3192
3192
|
}
|
|
3193
|
-
function
|
|
3193
|
+
function cI(e) {
|
|
3194
3194
|
if (e.getAttribute("aria-hidden") || e.getAttribute("hidden") || e.getAttribute("type") === "hidden")
|
|
3195
3195
|
return !1;
|
|
3196
3196
|
let r = e;
|
|
3197
3197
|
for (; r && !(r === document.body || r.nodeType === 11); ) {
|
|
3198
|
-
if (
|
|
3198
|
+
if (lI(r))
|
|
3199
3199
|
return !1;
|
|
3200
3200
|
r = r.parentNode;
|
|
3201
3201
|
}
|
|
@@ -3207,17 +3207,17 @@ function Av(e) {
|
|
|
3207
3207
|
}
|
|
3208
3208
|
function Vu(e) {
|
|
3209
3209
|
const t = e.nodeName.toLowerCase(), r = !Number.isNaN(Av(e));
|
|
3210
|
-
return (
|
|
3210
|
+
return (iI.test(t) && !e.disabled || e instanceof HTMLAnchorElement && e.href || r) && cI(e);
|
|
3211
3211
|
}
|
|
3212
3212
|
function Ev(e) {
|
|
3213
3213
|
const t = Av(e);
|
|
3214
3214
|
return (Number.isNaN(t) || t >= 0) && Vu(e);
|
|
3215
3215
|
}
|
|
3216
|
-
function
|
|
3216
|
+
function uI(e) {
|
|
3217
3217
|
return Array.from(e.querySelectorAll(Sv)).filter(Ev);
|
|
3218
3218
|
}
|
|
3219
|
-
function
|
|
3220
|
-
const r =
|
|
3219
|
+
function dI(e, t) {
|
|
3220
|
+
const r = uI(e);
|
|
3221
3221
|
if (!r.length) {
|
|
3222
3222
|
t.preventDefault();
|
|
3223
3223
|
return;
|
|
@@ -3232,7 +3232,7 @@ function d3(e, t) {
|
|
|
3232
3232
|
function Jd() {
|
|
3233
3233
|
return `mantine-${Math.random().toString(36).slice(2, 11)}`;
|
|
3234
3234
|
}
|
|
3235
|
-
function
|
|
3235
|
+
function fI(e, t = "body > :not(script)") {
|
|
3236
3236
|
const r = Jd(), n = Array.from(document.querySelectorAll(t)).map((a) => {
|
|
3237
3237
|
var o;
|
|
3238
3238
|
if ((o = a == null ? void 0 : a.shadowRoot) != null && o.contains(e) || a.contains(e))
|
|
@@ -3249,7 +3249,7 @@ function f3(e, t = "body > :not(script)") {
|
|
|
3249
3249
|
});
|
|
3250
3250
|
};
|
|
3251
3251
|
}
|
|
3252
|
-
function
|
|
3252
|
+
function pI(e = !0) {
|
|
3253
3253
|
const t = xe(), r = xe(null), n = (o) => {
|
|
3254
3254
|
let s = o.querySelector("[data-autofocus]");
|
|
3255
3255
|
if (!s) {
|
|
@@ -3263,7 +3263,7 @@ function p3(e = !0) {
|
|
|
3263
3263
|
r.current && (r.current(), r.current = null);
|
|
3264
3264
|
return;
|
|
3265
3265
|
}
|
|
3266
|
-
r.current =
|
|
3266
|
+
r.current = fI(o), t.current !== o && (o ? (setTimeout(() => {
|
|
3267
3267
|
o.getRootNode() ? n(o) : process.env.NODE_ENV === "development" && console.warn("[@mantine/hooks/use-focus-trap] Ref node is not part of the dom", o);
|
|
3268
3268
|
}), t.current = o) : t.current = null);
|
|
3269
3269
|
}
|
|
@@ -3273,26 +3273,26 @@ function p3(e = !0) {
|
|
|
3273
3273
|
return;
|
|
3274
3274
|
t.current && setTimeout(() => n(t.current));
|
|
3275
3275
|
const o = (s) => {
|
|
3276
|
-
s.key === "Tab" && t.current &&
|
|
3276
|
+
s.key === "Tab" && t.current && dI(t.current, s);
|
|
3277
3277
|
};
|
|
3278
3278
|
return document.addEventListener("keydown", o), () => {
|
|
3279
3279
|
document.removeEventListener("keydown", o), r.current && r.current();
|
|
3280
3280
|
};
|
|
3281
3281
|
}, [e]), a;
|
|
3282
3282
|
}
|
|
3283
|
-
const
|
|
3283
|
+
const hI = y["useId".toString()] || (() => {
|
|
3284
3284
|
});
|
|
3285
|
-
function
|
|
3286
|
-
const e =
|
|
3285
|
+
function bI() {
|
|
3286
|
+
const e = hI();
|
|
3287
3287
|
return e ? `mantine-${e.replace(/:/g, "")}` : "";
|
|
3288
3288
|
}
|
|
3289
3289
|
function nc(e) {
|
|
3290
|
-
const t =
|
|
3290
|
+
const t = bI(), [r, n] = Re(t);
|
|
3291
3291
|
return wv(() => {
|
|
3292
3292
|
n(Jd());
|
|
3293
3293
|
}, []), typeof e == "string" ? e : typeof window > "u" ? t : r;
|
|
3294
3294
|
}
|
|
3295
|
-
function
|
|
3295
|
+
function gI(e, t) {
|
|
3296
3296
|
const [r, n] = Re(!1), a = xe(), o = xe();
|
|
3297
3297
|
Ce(() => {
|
|
3298
3298
|
o.current = e;
|
|
@@ -3309,18 +3309,18 @@ function g3(e, t) {
|
|
|
3309
3309
|
function Gp(e, t, r) {
|
|
3310
3310
|
Ce(() => (window.addEventListener(e, t, r), () => window.removeEventListener(e, t, r)), [e, t]);
|
|
3311
3311
|
}
|
|
3312
|
-
function
|
|
3312
|
+
function mI(e, t) {
|
|
3313
3313
|
typeof e == "function" ? e(t) : typeof e == "object" && e !== null && "current" in e && (e.current = t);
|
|
3314
3314
|
}
|
|
3315
3315
|
function Ov(...e) {
|
|
3316
3316
|
return (t) => {
|
|
3317
|
-
e.forEach((r) =>
|
|
3317
|
+
e.forEach((r) => mI(r, t));
|
|
3318
3318
|
};
|
|
3319
3319
|
}
|
|
3320
3320
|
function Qa(...e) {
|
|
3321
3321
|
return pe(Ov(...e), e);
|
|
3322
3322
|
}
|
|
3323
|
-
function
|
|
3323
|
+
function vI(e, t, r = "ltr") {
|
|
3324
3324
|
const n = xe(), a = xe(!1), o = xe(!1), s = xe(0), [i, l] = Re(!1);
|
|
3325
3325
|
return Ce(() => {
|
|
3326
3326
|
a.current = !0;
|
|
@@ -3374,9 +3374,9 @@ function Ba({
|
|
|
3374
3374
|
return e !== void 0 ? [e, n, !0] : [a, s, !1];
|
|
3375
3375
|
}
|
|
3376
3376
|
function Gd(e, t) {
|
|
3377
|
-
return
|
|
3377
|
+
return oI("(prefers-reduced-motion: reduce)", e, t);
|
|
3378
3378
|
}
|
|
3379
|
-
const
|
|
3379
|
+
const yI = (e) => e < 0.5 ? 2 * e * e : -1 + (4 - 2 * e) * e, wI = ({
|
|
3380
3380
|
axis: e,
|
|
3381
3381
|
target: t,
|
|
3382
3382
|
parent: r,
|
|
@@ -3418,7 +3418,7 @@ const y3 = (e) => e < 0.5 ? 2 * e * e : -1 + (4 - 2 * e) * e, w3 = ({
|
|
|
3418
3418
|
return n === "center" ? d - f / 2 + u.width / 2 : 0;
|
|
3419
3419
|
}
|
|
3420
3420
|
return 0;
|
|
3421
|
-
},
|
|
3421
|
+
}, SI = ({ axis: e, parent: t }) => {
|
|
3422
3422
|
if (!t && typeof document > "u")
|
|
3423
3423
|
return 0;
|
|
3424
3424
|
const r = e === "y" ? "scrollTop" : "scrollLeft";
|
|
@@ -3426,7 +3426,7 @@ const y3 = (e) => e < 0.5 ? 2 * e * e : -1 + (4 - 2 * e) * e, w3 = ({
|
|
|
3426
3426
|
return t[r];
|
|
3427
3427
|
const { body: n, documentElement: a } = document;
|
|
3428
3428
|
return n[r] + a[r];
|
|
3429
|
-
},
|
|
3429
|
+
}, AI = ({ axis: e, parent: t, distance: r }) => {
|
|
3430
3430
|
if (!t && typeof document > "u")
|
|
3431
3431
|
return;
|
|
3432
3432
|
const n = e === "y" ? "scrollTop" : "scrollLeft";
|
|
@@ -3441,7 +3441,7 @@ function Cv({
|
|
|
3441
3441
|
duration: e = 1250,
|
|
3442
3442
|
axis: t = "y",
|
|
3443
3443
|
onScrollFinish: r,
|
|
3444
|
-
easing: n =
|
|
3444
|
+
easing: n = yI,
|
|
3445
3445
|
offset: a = 0,
|
|
3446
3446
|
cancelable: o = !0,
|
|
3447
3447
|
isList: s = !1
|
|
@@ -3451,7 +3451,7 @@ function Cv({
|
|
|
3451
3451
|
}, b = pe(({ alignment: g = "start" } = {}) => {
|
|
3452
3452
|
var m;
|
|
3453
3453
|
u.current = !1, i.current && p();
|
|
3454
|
-
const v = (m =
|
|
3454
|
+
const v = (m = SI({ parent: c.current, axis: t })) != null ? m : 0, w = wI({
|
|
3455
3455
|
parent: c.current,
|
|
3456
3456
|
target: d.current,
|
|
3457
3457
|
axis: t,
|
|
@@ -3462,7 +3462,7 @@ function Cv({
|
|
|
3462
3462
|
function A() {
|
|
3463
3463
|
l.current === 0 && (l.current = performance.now());
|
|
3464
3464
|
const E = performance.now() - l.current, C = f || e === 0 ? 1 : E / e, k = v + w * n(C);
|
|
3465
|
-
|
|
3465
|
+
AI({
|
|
3466
3466
|
parent: c.current,
|
|
3467
3467
|
axis: t,
|
|
3468
3468
|
distance: k
|
|
@@ -3483,7 +3483,7 @@ function Cv({
|
|
|
3483
3483
|
cancel: p
|
|
3484
3484
|
};
|
|
3485
3485
|
}
|
|
3486
|
-
function
|
|
3486
|
+
function EI(e, t, r = { autoInvoke: !1 }) {
|
|
3487
3487
|
const n = xe(null), a = xe(null), o = pe((...i) => {
|
|
3488
3488
|
a.current || (a.current = window.setTimeout(() => {
|
|
3489
3489
|
n.current(i), a.current = null;
|
|
@@ -3495,13 +3495,13 @@ function E3(e, t, r = { autoInvoke: !1 }) {
|
|
|
3495
3495
|
n.current = e;
|
|
3496
3496
|
}, [e]), Ce(() => (r.autoInvoke && o(), s), [s, t, r.autoInvoke, o]), { start: o, clear: s };
|
|
3497
3497
|
}
|
|
3498
|
-
var Yp = Object.getOwnPropertySymbols,
|
|
3498
|
+
var Yp = Object.getOwnPropertySymbols, OI = Object.prototype.hasOwnProperty, CI = Object.prototype.propertyIsEnumerable, II = (e, t) => {
|
|
3499
3499
|
var r = {};
|
|
3500
3500
|
for (var n in e)
|
|
3501
|
-
|
|
3501
|
+
OI.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3502
3502
|
if (e != null && Yp)
|
|
3503
3503
|
for (var n of Yp(e))
|
|
3504
|
-
t.indexOf(n) < 0 &&
|
|
3504
|
+
t.indexOf(n) < 0 && CI.call(e, n) && (r[n] = e[n]);
|
|
3505
3505
|
return r;
|
|
3506
3506
|
};
|
|
3507
3507
|
function ac(e) {
|
|
@@ -3549,7 +3549,7 @@ function ac(e) {
|
|
|
3549
3549
|
right: H,
|
|
3550
3550
|
inset: ae,
|
|
3551
3551
|
display: $
|
|
3552
|
-
} = t, re =
|
|
3552
|
+
} = t, re = II(t, [
|
|
3553
3553
|
"m",
|
|
3554
3554
|
"mx",
|
|
3555
3555
|
"my",
|
|
@@ -3640,15 +3640,15 @@ function ac(e) {
|
|
|
3640
3640
|
display: $
|
|
3641
3641
|
}), rest: re };
|
|
3642
3642
|
}
|
|
3643
|
-
function
|
|
3643
|
+
function PI(e, t) {
|
|
3644
3644
|
const r = Object.keys(e).filter((n) => n !== "base").sort((n, a) => Da(ie({ size: n, sizes: t.breakpoints })) - Da(ie({ size: a, sizes: t.breakpoints })));
|
|
3645
3645
|
return "base" in e ? ["base", ...r] : r;
|
|
3646
3646
|
}
|
|
3647
|
-
function
|
|
3647
|
+
function kI({ value: e, theme: t, getValue: r, property: n }) {
|
|
3648
3648
|
if (e == null)
|
|
3649
3649
|
return;
|
|
3650
3650
|
if (typeof e == "object")
|
|
3651
|
-
return
|
|
3651
|
+
return PI(e, t).reduce((s, i) => {
|
|
3652
3652
|
if (i === "base" && e.base !== void 0) {
|
|
3653
3653
|
const u = r(e.base, t);
|
|
3654
3654
|
return Array.isArray(n) ? (n.forEach((c) => {
|
|
@@ -3665,32 +3665,32 @@ function k3({ value: e, theme: t, getValue: r, property: n }) {
|
|
|
3665
3665
|
const a = r(e, t);
|
|
3666
3666
|
return Array.isArray(n) ? n.reduce((o, s) => (o[s] = a, o), {}) : { [n]: a };
|
|
3667
3667
|
}
|
|
3668
|
-
function
|
|
3668
|
+
function xI(e, t) {
|
|
3669
3669
|
return e === "dimmed" ? t.colorScheme === "dark" ? t.colors.dark[2] : t.colors.gray[6] : t.fn.variant({ variant: "filled", color: e, primaryFallback: !1 }).background;
|
|
3670
3670
|
}
|
|
3671
|
-
function
|
|
3671
|
+
function RI(e) {
|
|
3672
3672
|
return j(e);
|
|
3673
3673
|
}
|
|
3674
|
-
function
|
|
3674
|
+
function NI(e) {
|
|
3675
3675
|
return e;
|
|
3676
3676
|
}
|
|
3677
|
-
function
|
|
3677
|
+
function MI(e, t) {
|
|
3678
3678
|
return ie({ size: e, sizes: t.fontSizes });
|
|
3679
3679
|
}
|
|
3680
|
-
const
|
|
3681
|
-
function
|
|
3682
|
-
return
|
|
3680
|
+
const TI = ["-xs", "-sm", "-md", "-lg", "-xl"];
|
|
3681
|
+
function jI(e, t) {
|
|
3682
|
+
return TI.includes(e) ? `calc(${ie({
|
|
3683
3683
|
size: e.replace("-", ""),
|
|
3684
3684
|
sizes: t.spacing
|
|
3685
3685
|
})} * -1)` : ie({ size: e, sizes: t.spacing });
|
|
3686
3686
|
}
|
|
3687
|
-
const
|
|
3688
|
-
identity:
|
|
3689
|
-
color:
|
|
3690
|
-
size:
|
|
3691
|
-
fontSize:
|
|
3692
|
-
spacing:
|
|
3693
|
-
},
|
|
3687
|
+
const zI = {
|
|
3688
|
+
identity: NI,
|
|
3689
|
+
color: xI,
|
|
3690
|
+
size: RI,
|
|
3691
|
+
fontSize: MI,
|
|
3692
|
+
spacing: jI
|
|
3693
|
+
}, FI = {
|
|
3694
3694
|
m: { type: "spacing", property: "margin" },
|
|
3695
3695
|
mt: { type: "spacing", property: "marginTop" },
|
|
3696
3696
|
mb: { type: "spacing", property: "marginBottom" },
|
|
@@ -3735,18 +3735,18 @@ const z3 = {
|
|
|
3735
3735
|
inset: { type: "size", property: "inset" },
|
|
3736
3736
|
display: { type: "identity", property: "display" }
|
|
3737
3737
|
};
|
|
3738
|
-
var
|
|
3738
|
+
var qI = Object.defineProperty, Hp = Object.getOwnPropertySymbols, DI = Object.prototype.hasOwnProperty, BI = Object.prototype.propertyIsEnumerable, Qp = (e, t, r) => t in e ? qI(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xp = (e, t) => {
|
|
3739
3739
|
for (var r in t || (t = {}))
|
|
3740
|
-
|
|
3740
|
+
DI.call(t, r) && Qp(e, r, t[r]);
|
|
3741
3741
|
if (Hp)
|
|
3742
3742
|
for (var r of Hp(t))
|
|
3743
|
-
|
|
3743
|
+
BI.call(t, r) && Qp(e, r, t[r]);
|
|
3744
3744
|
return e;
|
|
3745
3745
|
};
|
|
3746
|
-
function Lu(e, t, r =
|
|
3747
|
-
return Object.keys(r).reduce((a, o) => (o in e && e[o] !== void 0 && a.push(
|
|
3746
|
+
function Lu(e, t, r = FI) {
|
|
3747
|
+
return Object.keys(r).reduce((a, o) => (o in e && e[o] !== void 0 && a.push(kI({
|
|
3748
3748
|
value: e[o],
|
|
3749
|
-
getValue:
|
|
3749
|
+
getValue: zI[r[o].type],
|
|
3750
3750
|
property: r[o].property,
|
|
3751
3751
|
theme: t
|
|
3752
3752
|
})), a), []).reduce((a, o) => (Object.keys(o).forEach((s) => {
|
|
@@ -3756,18 +3756,18 @@ function Lu(e, t, r = F3) {
|
|
|
3756
3756
|
function _p(e, t) {
|
|
3757
3757
|
return typeof e == "function" ? e(t) : e;
|
|
3758
3758
|
}
|
|
3759
|
-
function
|
|
3759
|
+
function VI(e, t, r) {
|
|
3760
3760
|
const n = gt(), { css: a, cx: o } = yv();
|
|
3761
3761
|
return Array.isArray(e) ? o(r, a(Lu(t, n)), e.map((s) => a(_p(s, n)))) : o(r, a(_p(e, n)), a(Lu(t, n)));
|
|
3762
3762
|
}
|
|
3763
|
-
var
|
|
3763
|
+
var LI = Object.defineProperty, Si = Object.getOwnPropertySymbols, Iv = Object.prototype.hasOwnProperty, Pv = Object.prototype.propertyIsEnumerable, $p = (e, t, r) => t in e ? LI(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, KI = (e, t) => {
|
|
3764
3764
|
for (var r in t || (t = {}))
|
|
3765
3765
|
Iv.call(t, r) && $p(e, r, t[r]);
|
|
3766
3766
|
if (Si)
|
|
3767
3767
|
for (var r of Si(t))
|
|
3768
3768
|
Pv.call(t, r) && $p(e, r, t[r]);
|
|
3769
3769
|
return e;
|
|
3770
|
-
},
|
|
3770
|
+
}, WI = (e, t) => {
|
|
3771
3771
|
var r = {};
|
|
3772
3772
|
for (var n in e)
|
|
3773
3773
|
Iv.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -3777,25 +3777,25 @@ var L3 = Object.defineProperty, Si = Object.getOwnPropertySymbols, Iv = Object.p
|
|
|
3777
3777
|
return r;
|
|
3778
3778
|
};
|
|
3779
3779
|
const kv = we((e, t) => {
|
|
3780
|
-
var r = e, { className: n, component: a, style: o, sx: s } = r, i =
|
|
3780
|
+
var r = e, { className: n, component: a, style: o, sx: s } = r, i = WI(r, ["className", "component", "style", "sx"]);
|
|
3781
3781
|
const { systemStyles: l, rest: u } = ac(i), c = a || "div";
|
|
3782
|
-
return /* @__PURE__ */ y.createElement(c,
|
|
3782
|
+
return /* @__PURE__ */ y.createElement(c, KI({
|
|
3783
3783
|
ref: t,
|
|
3784
|
-
className:
|
|
3784
|
+
className: VI(s, l, n),
|
|
3785
3785
|
style: o
|
|
3786
3786
|
}, u));
|
|
3787
3787
|
});
|
|
3788
3788
|
kv.displayName = "@mantine/core/Box";
|
|
3789
3789
|
const he = kv;
|
|
3790
|
-
var
|
|
3790
|
+
var ZI = Object.defineProperty, UI = Object.defineProperties, JI = Object.getOwnPropertyDescriptors, eh = Object.getOwnPropertySymbols, GI = Object.prototype.hasOwnProperty, YI = Object.prototype.propertyIsEnumerable, th = (e, t, r) => t in e ? ZI(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rh = (e, t) => {
|
|
3791
3791
|
for (var r in t || (t = {}))
|
|
3792
|
-
|
|
3792
|
+
GI.call(t, r) && th(e, r, t[r]);
|
|
3793
3793
|
if (eh)
|
|
3794
3794
|
for (var r of eh(t))
|
|
3795
|
-
|
|
3795
|
+
YI.call(t, r) && th(e, r, t[r]);
|
|
3796
3796
|
return e;
|
|
3797
|
-
},
|
|
3798
|
-
root:
|
|
3797
|
+
}, HI = (e, t) => UI(e, JI(t)), QI = Ie((e) => ({
|
|
3798
|
+
root: HI(rh(rh({}, e.fn.focusStyles()), e.fn.fontStyles()), {
|
|
3799
3799
|
cursor: "pointer",
|
|
3800
3800
|
border: 0,
|
|
3801
3801
|
padding: 0,
|
|
@@ -3808,15 +3808,15 @@ var Z3 = Object.defineProperty, U3 = Object.defineProperties, J3 = Object.getOwn
|
|
|
3808
3808
|
boxSizing: "border-box"
|
|
3809
3809
|
})
|
|
3810
3810
|
}));
|
|
3811
|
-
const
|
|
3812
|
-
var
|
|
3811
|
+
const XI = QI;
|
|
3812
|
+
var _I = Object.defineProperty, Ai = Object.getOwnPropertySymbols, xv = Object.prototype.hasOwnProperty, Rv = Object.prototype.propertyIsEnumerable, nh = (e, t, r) => t in e ? _I(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $I = (e, t) => {
|
|
3813
3813
|
for (var r in t || (t = {}))
|
|
3814
3814
|
xv.call(t, r) && nh(e, r, t[r]);
|
|
3815
3815
|
if (Ai)
|
|
3816
3816
|
for (var r of Ai(t))
|
|
3817
3817
|
Rv.call(t, r) && nh(e, r, t[r]);
|
|
3818
3818
|
return e;
|
|
3819
|
-
},
|
|
3819
|
+
}, e3 = (e, t) => {
|
|
3820
3820
|
var r = {};
|
|
3821
3821
|
for (var n in e)
|
|
3822
3822
|
xv.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -3831,13 +3831,13 @@ const Nv = we((e, t) => {
|
|
|
3831
3831
|
component: a = "button",
|
|
3832
3832
|
unstyled: o,
|
|
3833
3833
|
variant: s
|
|
3834
|
-
} = r, i =
|
|
3834
|
+
} = r, i = e3(r, [
|
|
3835
3835
|
"className",
|
|
3836
3836
|
"component",
|
|
3837
3837
|
"unstyled",
|
|
3838
3838
|
"variant"
|
|
3839
|
-
]), { classes: l, cx: u } =
|
|
3840
|
-
return /* @__PURE__ */ y.createElement(he, $
|
|
3839
|
+
]), { classes: l, cx: u } = XI(null, { name: "UnstyledButton", unstyled: o, variant: s });
|
|
3840
|
+
return /* @__PURE__ */ y.createElement(he, $I({
|
|
3841
3841
|
component: a,
|
|
3842
3842
|
ref: t,
|
|
3843
3843
|
className: u(l.root, n),
|
|
@@ -3846,14 +3846,14 @@ const Nv = we((e, t) => {
|
|
|
3846
3846
|
});
|
|
3847
3847
|
Nv.displayName = "@mantine/core/UnstyledButton";
|
|
3848
3848
|
const oc = Nv;
|
|
3849
|
-
var
|
|
3849
|
+
var t3 = Object.defineProperty, r3 = Object.defineProperties, n3 = Object.getOwnPropertyDescriptors, Ei = Object.getOwnPropertySymbols, Mv = Object.prototype.hasOwnProperty, Tv = Object.prototype.propertyIsEnumerable, ah = (e, t, r) => t in e ? t3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pn = (e, t) => {
|
|
3850
3850
|
for (var r in t || (t = {}))
|
|
3851
3851
|
Mv.call(t, r) && ah(e, r, t[r]);
|
|
3852
3852
|
if (Ei)
|
|
3853
3853
|
for (var r of Ei(t))
|
|
3854
3854
|
Tv.call(t, r) && ah(e, r, t[r]);
|
|
3855
3855
|
return e;
|
|
3856
|
-
}, Xc = (e, t) =>
|
|
3856
|
+
}, Xc = (e, t) => r3(e, n3(t)), a3 = (e, t) => {
|
|
3857
3857
|
var r = {};
|
|
3858
3858
|
for (var n in e)
|
|
3859
3859
|
Mv.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -3862,7 +3862,7 @@ var tI = Object.defineProperty, rI = Object.defineProperties, nI = Object.getOwn
|
|
|
3862
3862
|
t.indexOf(n) < 0 && Tv.call(e, n) && (r[n] = e[n]);
|
|
3863
3863
|
return r;
|
|
3864
3864
|
};
|
|
3865
|
-
function
|
|
3865
|
+
function o3(e) {
|
|
3866
3866
|
if (!e || typeof e == "string")
|
|
3867
3867
|
return 0;
|
|
3868
3868
|
const t = e / 36;
|
|
@@ -3872,7 +3872,7 @@ function _c(e) {
|
|
|
3872
3872
|
return e != null && e.current ? e.current.scrollHeight : "auto";
|
|
3873
3873
|
}
|
|
3874
3874
|
const Ps = typeof window < "u" && window.requestAnimationFrame;
|
|
3875
|
-
function
|
|
3875
|
+
function s3({
|
|
3876
3876
|
transitionDuration: e,
|
|
3877
3877
|
transitionTimingFunction: t = "ease",
|
|
3878
3878
|
onTransitionEnd: r = () => {
|
|
@@ -3890,7 +3890,7 @@ function sI({
|
|
|
3890
3890
|
};
|
|
3891
3891
|
function d(b) {
|
|
3892
3892
|
return {
|
|
3893
|
-
transition: `height ${e ||
|
|
3893
|
+
transition: `height ${e || o3(b)}ms ${t}`
|
|
3894
3894
|
};
|
|
3895
3895
|
}
|
|
3896
3896
|
mr(() => {
|
|
@@ -3913,7 +3913,7 @@ function sI({
|
|
|
3913
3913
|
i.height === o && (u(s), r());
|
|
3914
3914
|
};
|
|
3915
3915
|
function p(b = {}) {
|
|
3916
|
-
var h = b, { style: g = {}, refKey: m = "ref" } = h, v =
|
|
3916
|
+
var h = b, { style: g = {}, refKey: m = "ref" } = h, v = a3(h, ["style", "refKey"]);
|
|
3917
3917
|
const w = v[m];
|
|
3918
3918
|
return Xc(pn({
|
|
3919
3919
|
"aria-hidden": !n
|
|
@@ -3925,14 +3925,14 @@ function sI({
|
|
|
3925
3925
|
}
|
|
3926
3926
|
return p;
|
|
3927
3927
|
}
|
|
3928
|
-
var
|
|
3928
|
+
var i3 = Object.defineProperty, Oi = Object.getOwnPropertySymbols, jv = Object.prototype.hasOwnProperty, zv = Object.prototype.propertyIsEnumerable, oh = (e, t, r) => t in e ? i3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ks = (e, t) => {
|
|
3929
3929
|
for (var r in t || (t = {}))
|
|
3930
3930
|
jv.call(t, r) && oh(e, r, t[r]);
|
|
3931
3931
|
if (Oi)
|
|
3932
3932
|
for (var r of Oi(t))
|
|
3933
3933
|
zv.call(t, r) && oh(e, r, t[r]);
|
|
3934
3934
|
return e;
|
|
3935
|
-
},
|
|
3935
|
+
}, l3 = (e, t) => {
|
|
3936
3936
|
var r = {};
|
|
3937
3937
|
for (var n in e)
|
|
3938
3938
|
jv.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -3941,12 +3941,12 @@ var iI = Object.defineProperty, Oi = Object.getOwnPropertySymbols, jv = Object.p
|
|
|
3941
3941
|
t.indexOf(n) < 0 && zv.call(e, n) && (r[n] = e[n]);
|
|
3942
3942
|
return r;
|
|
3943
3943
|
};
|
|
3944
|
-
const
|
|
3944
|
+
const c3 = {
|
|
3945
3945
|
transitionDuration: 200,
|
|
3946
3946
|
transitionTimingFunction: "ease",
|
|
3947
3947
|
animateOpacity: !0
|
|
3948
3948
|
}, Fv = we((e, t) => {
|
|
3949
|
-
const r = Ee("Collapse",
|
|
3949
|
+
const r = Ee("Collapse", c3, e), {
|
|
3950
3950
|
children: n,
|
|
3951
3951
|
in: a,
|
|
3952
3952
|
transitionDuration: o,
|
|
@@ -3954,7 +3954,7 @@ const cI = {
|
|
|
3954
3954
|
style: i,
|
|
3955
3955
|
onTransitionEnd: l,
|
|
3956
3956
|
animateOpacity: u
|
|
3957
|
-
} = r, c =
|
|
3957
|
+
} = r, c = l3(r, [
|
|
3958
3958
|
"children",
|
|
3959
3959
|
"in",
|
|
3960
3960
|
"transitionDuration",
|
|
@@ -3962,7 +3962,7 @@ const cI = {
|
|
|
3962
3962
|
"style",
|
|
3963
3963
|
"onTransitionEnd",
|
|
3964
3964
|
"animateOpacity"
|
|
3965
|
-
]), d = gt(), f = Gd(), b = (d.respectReducedMotion ? f : !1) ? 0 : o, { systemStyles: h, rest: g } = ac(c), m =
|
|
3965
|
+
]), d = gt(), f = Gd(), b = (d.respectReducedMotion ? f : !1) ? 0 : o, { systemStyles: h, rest: g } = ac(c), m = s3({
|
|
3966
3966
|
opened: a,
|
|
3967
3967
|
transitionDuration: b,
|
|
3968
3968
|
transitionTimingFunction: s,
|
|
@@ -3976,14 +3976,14 @@ const cI = {
|
|
|
3976
3976
|
}, n));
|
|
3977
3977
|
});
|
|
3978
3978
|
Fv.displayName = "@mantine/core/Collapse";
|
|
3979
|
-
var
|
|
3979
|
+
var u3 = Object.defineProperty, Ci = Object.getOwnPropertySymbols, qv = Object.prototype.hasOwnProperty, Dv = Object.prototype.propertyIsEnumerable, sh = (e, t, r) => t in e ? u3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ih = (e, t) => {
|
|
3980
3980
|
for (var r in t || (t = {}))
|
|
3981
3981
|
qv.call(t, r) && sh(e, r, t[r]);
|
|
3982
3982
|
if (Ci)
|
|
3983
3983
|
for (var r of Ci(t))
|
|
3984
3984
|
Dv.call(t, r) && sh(e, r, t[r]);
|
|
3985
3985
|
return e;
|
|
3986
|
-
},
|
|
3986
|
+
}, d3 = (e, t) => {
|
|
3987
3987
|
var r = {};
|
|
3988
3988
|
for (var n in e)
|
|
3989
3989
|
qv.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -3992,8 +3992,8 @@ var uI = Object.defineProperty, Ci = Object.getOwnPropertySymbols, qv = Object.p
|
|
|
3992
3992
|
t.indexOf(n) < 0 && Dv.call(e, n) && (r[n] = e[n]);
|
|
3993
3993
|
return r;
|
|
3994
3994
|
};
|
|
3995
|
-
function
|
|
3996
|
-
const t = e, { style: r } = t, n =
|
|
3995
|
+
function f3(e) {
|
|
3996
|
+
const t = e, { style: r } = t, n = d3(t, ["style"]);
|
|
3997
3997
|
return /* @__PURE__ */ y.createElement("svg", ih({
|
|
3998
3998
|
viewBox: "0 0 15 15",
|
|
3999
3999
|
fill: "none",
|
|
@@ -4006,15 +4006,15 @@ function fI(e) {
|
|
|
4006
4006
|
clipRule: "evenodd"
|
|
4007
4007
|
}));
|
|
4008
4008
|
}
|
|
4009
|
-
var
|
|
4009
|
+
var p3 = Object.defineProperty, h3 = Object.defineProperties, b3 = Object.getOwnPropertyDescriptors, lh = Object.getOwnPropertySymbols, g3 = Object.prototype.hasOwnProperty, m3 = Object.prototype.propertyIsEnumerable, ch = (e, t, r) => t in e ? p3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ku = (e, t) => {
|
|
4010
4010
|
for (var r in t || (t = {}))
|
|
4011
|
-
|
|
4011
|
+
g3.call(t, r) && ch(e, r, t[r]);
|
|
4012
4012
|
if (lh)
|
|
4013
4013
|
for (var r of lh(t))
|
|
4014
|
-
|
|
4014
|
+
m3.call(t, r) && ch(e, r, t[r]);
|
|
4015
4015
|
return e;
|
|
4016
|
-
}, uh = (e, t) =>
|
|
4017
|
-
const
|
|
4016
|
+
}, uh = (e, t) => h3(e, b3(t));
|
|
4017
|
+
const v3 = [
|
|
4018
4018
|
"subtle",
|
|
4019
4019
|
"filled",
|
|
4020
4020
|
"outline",
|
|
@@ -4029,7 +4029,7 @@ const vI = [
|
|
|
4029
4029
|
lg: j(34),
|
|
4030
4030
|
xl: j(44)
|
|
4031
4031
|
};
|
|
4032
|
-
function
|
|
4032
|
+
function y3({ variant: e, theme: t, color: r, gradient: n }) {
|
|
4033
4033
|
const a = t.fn.variant({ color: r, variant: e, gradient: n });
|
|
4034
4034
|
return e === "gradient" ? {
|
|
4035
4035
|
border: 0,
|
|
@@ -4038,7 +4038,7 @@ function yI({ variant: e, theme: t, color: r, gradient: n }) {
|
|
|
4038
4038
|
"&:hover": t.fn.hover({
|
|
4039
4039
|
backgroundSize: "200%"
|
|
4040
4040
|
})
|
|
4041
|
-
} :
|
|
4041
|
+
} : v3.includes(e) ? Ku({
|
|
4042
4042
|
border: `${j(1)} solid ${a.border}`,
|
|
4043
4043
|
backgroundColor: a.background,
|
|
4044
4044
|
color: a.color
|
|
@@ -4046,7 +4046,7 @@ function yI({ variant: e, theme: t, color: r, gradient: n }) {
|
|
|
4046
4046
|
backgroundColor: a.hover
|
|
4047
4047
|
})) : null;
|
|
4048
4048
|
}
|
|
4049
|
-
var
|
|
4049
|
+
var w3 = Ie((e, { radius: t, color: r, gradient: n }, { variant: a, size: o }) => ({
|
|
4050
4050
|
root: uh(Ku({
|
|
4051
4051
|
position: "relative",
|
|
4052
4052
|
borderRadius: e.fn.radius(t),
|
|
@@ -4059,7 +4059,7 @@ var wI = Ie((e, { radius: t, color: r, gradient: n }, { variant: a, size: o }) =
|
|
|
4059
4059
|
minHeight: ie({ size: o, sizes: xs }),
|
|
4060
4060
|
width: ie({ size: o, sizes: xs }),
|
|
4061
4061
|
minWidth: ie({ size: o, sizes: xs })
|
|
4062
|
-
},
|
|
4062
|
+
}, y3({ variant: a, theme: e, color: r, gradient: n })), {
|
|
4063
4063
|
"&:active": e.activeStyles,
|
|
4064
4064
|
"& [data-action-icon-loader]": {
|
|
4065
4065
|
maxWidth: "70%"
|
|
@@ -4087,8 +4087,8 @@ var wI = Ie((e, { radius: t, color: r, gradient: n }, { variant: a, size: o }) =
|
|
|
4087
4087
|
}
|
|
4088
4088
|
})
|
|
4089
4089
|
}));
|
|
4090
|
-
const
|
|
4091
|
-
var
|
|
4090
|
+
const S3 = w3;
|
|
4091
|
+
var A3 = Object.defineProperty, Ii = Object.getOwnPropertySymbols, Bv = Object.prototype.hasOwnProperty, Vv = Object.prototype.propertyIsEnumerable, dh = (e, t, r) => t in e ? A3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fh = (e, t) => {
|
|
4092
4092
|
for (var r in t || (t = {}))
|
|
4093
4093
|
Bv.call(t, r) && dh(e, r, t[r]);
|
|
4094
4094
|
if (Ii)
|
|
@@ -4104,7 +4104,7 @@ var AI = Object.defineProperty, Ii = Object.getOwnPropertySymbols, Bv = Object.p
|
|
|
4104
4104
|
t.indexOf(n) < 0 && Vv.call(e, n) && (r[n] = e[n]);
|
|
4105
4105
|
return r;
|
|
4106
4106
|
};
|
|
4107
|
-
function
|
|
4107
|
+
function E3(e) {
|
|
4108
4108
|
var t = e, { size: r, color: n } = t, a = ph(t, ["size", "color"]);
|
|
4109
4109
|
const o = a, { style: s } = o, i = ph(o, ["style"]);
|
|
4110
4110
|
return /* @__PURE__ */ y.createElement("svg", fh({
|
|
@@ -4212,7 +4212,7 @@ function EI(e) {
|
|
|
4212
4212
|
repeatCount: "indefinite"
|
|
4213
4213
|
})));
|
|
4214
4214
|
}
|
|
4215
|
-
var
|
|
4215
|
+
var O3 = Object.defineProperty, Pi = Object.getOwnPropertySymbols, Lv = Object.prototype.hasOwnProperty, Kv = Object.prototype.propertyIsEnumerable, hh = (e, t, r) => t in e ? O3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bh = (e, t) => {
|
|
4216
4216
|
for (var r in t || (t = {}))
|
|
4217
4217
|
Lv.call(t, r) && hh(e, r, t[r]);
|
|
4218
4218
|
if (Pi)
|
|
@@ -4228,7 +4228,7 @@ var OI = Object.defineProperty, Pi = Object.getOwnPropertySymbols, Lv = Object.p
|
|
|
4228
4228
|
t.indexOf(n) < 0 && Kv.call(e, n) && (r[n] = e[n]);
|
|
4229
4229
|
return r;
|
|
4230
4230
|
};
|
|
4231
|
-
function
|
|
4231
|
+
function C3(e) {
|
|
4232
4232
|
var t = e, { size: r, color: n } = t, a = gh(t, ["size", "color"]);
|
|
4233
4233
|
const o = a, { style: s } = o, i = gh(o, ["style"]);
|
|
4234
4234
|
return /* @__PURE__ */ y.createElement("svg", bh({
|
|
@@ -4258,7 +4258,7 @@ function CI(e) {
|
|
|
4258
4258
|
repeatCount: "indefinite"
|
|
4259
4259
|
})))));
|
|
4260
4260
|
}
|
|
4261
|
-
var
|
|
4261
|
+
var I3 = Object.defineProperty, ki = Object.getOwnPropertySymbols, Wv = Object.prototype.hasOwnProperty, Zv = Object.prototype.propertyIsEnumerable, mh = (e, t, r) => t in e ? I3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vh = (e, t) => {
|
|
4262
4262
|
for (var r in t || (t = {}))
|
|
4263
4263
|
Wv.call(t, r) && mh(e, r, t[r]);
|
|
4264
4264
|
if (ki)
|
|
@@ -4274,7 +4274,7 @@ var II = Object.defineProperty, ki = Object.getOwnPropertySymbols, Wv = Object.p
|
|
|
4274
4274
|
t.indexOf(n) < 0 && Zv.call(e, n) && (r[n] = e[n]);
|
|
4275
4275
|
return r;
|
|
4276
4276
|
};
|
|
4277
|
-
function
|
|
4277
|
+
function P3(e) {
|
|
4278
4278
|
var t = e, { size: r, color: n } = t, a = yh(t, ["size", "color"]);
|
|
4279
4279
|
const o = a, { style: s } = o, i = yh(o, ["style"]);
|
|
4280
4280
|
return /* @__PURE__ */ y.createElement("svg", vh({
|
|
@@ -4351,14 +4351,14 @@ function PI(e) {
|
|
|
4351
4351
|
repeatCount: "indefinite"
|
|
4352
4352
|
})));
|
|
4353
4353
|
}
|
|
4354
|
-
var
|
|
4354
|
+
var k3 = Object.defineProperty, xi = Object.getOwnPropertySymbols, Uv = Object.prototype.hasOwnProperty, Jv = Object.prototype.propertyIsEnumerable, wh = (e, t, r) => t in e ? k3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, x3 = (e, t) => {
|
|
4355
4355
|
for (var r in t || (t = {}))
|
|
4356
4356
|
Uv.call(t, r) && wh(e, r, t[r]);
|
|
4357
4357
|
if (xi)
|
|
4358
4358
|
for (var r of xi(t))
|
|
4359
4359
|
Jv.call(t, r) && wh(e, r, t[r]);
|
|
4360
4360
|
return e;
|
|
4361
|
-
},
|
|
4361
|
+
}, R3 = (e, t) => {
|
|
4362
4362
|
var r = {};
|
|
4363
4363
|
for (var n in e)
|
|
4364
4364
|
Uv.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -4368,24 +4368,24 @@ var kI = Object.defineProperty, xi = Object.getOwnPropertySymbols, Uv = Object.p
|
|
|
4368
4368
|
return r;
|
|
4369
4369
|
};
|
|
4370
4370
|
const $c = {
|
|
4371
|
-
bars:
|
|
4372
|
-
oval:
|
|
4373
|
-
dots:
|
|
4374
|
-
},
|
|
4371
|
+
bars: E3,
|
|
4372
|
+
oval: C3,
|
|
4373
|
+
dots: P3
|
|
4374
|
+
}, N3 = {
|
|
4375
4375
|
xs: j(18),
|
|
4376
4376
|
sm: j(22),
|
|
4377
4377
|
md: j(36),
|
|
4378
4378
|
lg: j(44),
|
|
4379
4379
|
xl: j(58)
|
|
4380
|
-
},
|
|
4380
|
+
}, M3 = {
|
|
4381
4381
|
size: "md"
|
|
4382
4382
|
};
|
|
4383
4383
|
function sc(e) {
|
|
4384
|
-
const t = Ee("Loader",
|
|
4385
|
-
return /* @__PURE__ */ y.createElement(he,
|
|
4384
|
+
const t = Ee("Loader", M3, e), { size: r, color: n, variant: a } = t, o = R3(t, ["size", "color", "variant"]), s = gt(), i = a in $c ? a : s.loader;
|
|
4385
|
+
return /* @__PURE__ */ y.createElement(he, x3({
|
|
4386
4386
|
role: "presentation",
|
|
4387
4387
|
component: $c[i] || $c.bars,
|
|
4388
|
-
size: ie({ size: r, sizes:
|
|
4388
|
+
size: ie({ size: r, sizes: N3 }),
|
|
4389
4389
|
color: s.fn.variant({
|
|
4390
4390
|
variant: "filled",
|
|
4391
4391
|
primaryFallback: !1,
|
|
@@ -4394,14 +4394,14 @@ function sc(e) {
|
|
|
4394
4394
|
}, o));
|
|
4395
4395
|
}
|
|
4396
4396
|
sc.displayName = "@mantine/core/Loader";
|
|
4397
|
-
var
|
|
4397
|
+
var T3 = Object.defineProperty, Ri = Object.getOwnPropertySymbols, Gv = Object.prototype.hasOwnProperty, Yv = Object.prototype.propertyIsEnumerable, Sh = (e, t, r) => t in e ? T3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ah = (e, t) => {
|
|
4398
4398
|
for (var r in t || (t = {}))
|
|
4399
4399
|
Gv.call(t, r) && Sh(e, r, t[r]);
|
|
4400
4400
|
if (Ri)
|
|
4401
4401
|
for (var r of Ri(t))
|
|
4402
4402
|
Yv.call(t, r) && Sh(e, r, t[r]);
|
|
4403
4403
|
return e;
|
|
4404
|
-
},
|
|
4404
|
+
}, j3 = (e, t) => {
|
|
4405
4405
|
var r = {};
|
|
4406
4406
|
for (var n in e)
|
|
4407
4407
|
Gv.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -4410,12 +4410,12 @@ var TI = Object.defineProperty, Ri = Object.getOwnPropertySymbols, Gv = Object.p
|
|
|
4410
4410
|
t.indexOf(n) < 0 && Yv.call(e, n) && (r[n] = e[n]);
|
|
4411
4411
|
return r;
|
|
4412
4412
|
};
|
|
4413
|
-
const
|
|
4413
|
+
const z3 = {
|
|
4414
4414
|
color: "gray",
|
|
4415
4415
|
size: "md",
|
|
4416
4416
|
variant: "subtle"
|
|
4417
4417
|
}, Hv = we((e, t) => {
|
|
4418
|
-
const r = Ee("ActionIcon",
|
|
4418
|
+
const r = Ee("ActionIcon", z3, e), {
|
|
4419
4419
|
className: n,
|
|
4420
4420
|
color: a,
|
|
4421
4421
|
children: o,
|
|
@@ -4428,7 +4428,7 @@ const zI = {
|
|
|
4428
4428
|
loading: f,
|
|
4429
4429
|
unstyled: p,
|
|
4430
4430
|
__staticSelector: b
|
|
4431
|
-
} = r, h =
|
|
4431
|
+
} = r, h = j3(r, [
|
|
4432
4432
|
"className",
|
|
4433
4433
|
"color",
|
|
4434
4434
|
"children",
|
|
@@ -4441,7 +4441,7 @@ const zI = {
|
|
|
4441
4441
|
"loading",
|
|
4442
4442
|
"unstyled",
|
|
4443
4443
|
"__staticSelector"
|
|
4444
|
-
]), { classes: g, cx: m, theme: v } =
|
|
4444
|
+
]), { classes: g, cx: m, theme: v } = S3({ radius: s, color: a, gradient: u }, { name: ["ActionIcon", b], unstyled: p, size: i, variant: l }), w = /* @__PURE__ */ y.createElement(sc, Ah({
|
|
4445
4445
|
color: v.fn.variant({ color: a, variant: l }).color,
|
|
4446
4446
|
size: "100%",
|
|
4447
4447
|
"data-action-icon-loader": !0
|
|
@@ -4457,14 +4457,14 @@ const zI = {
|
|
|
4457
4457
|
});
|
|
4458
4458
|
Hv.displayName = "@mantine/core/ActionIcon";
|
|
4459
4459
|
const Gt = Hv;
|
|
4460
|
-
var
|
|
4460
|
+
var F3 = Object.defineProperty, q3 = Object.defineProperties, D3 = Object.getOwnPropertyDescriptors, Ni = Object.getOwnPropertySymbols, Qv = Object.prototype.hasOwnProperty, Xv = Object.prototype.propertyIsEnumerable, Eh = (e, t, r) => t in e ? F3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, B3 = (e, t) => {
|
|
4461
4461
|
for (var r in t || (t = {}))
|
|
4462
4462
|
Qv.call(t, r) && Eh(e, r, t[r]);
|
|
4463
4463
|
if (Ni)
|
|
4464
4464
|
for (var r of Ni(t))
|
|
4465
4465
|
Xv.call(t, r) && Eh(e, r, t[r]);
|
|
4466
4466
|
return e;
|
|
4467
|
-
},
|
|
4467
|
+
}, V3 = (e, t) => q3(e, D3(t)), L3 = (e, t) => {
|
|
4468
4468
|
var r = {};
|
|
4469
4469
|
for (var n in e)
|
|
4470
4470
|
Qv.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -4474,10 +4474,10 @@ var FI = Object.defineProperty, qI = Object.defineProperties, DI = Object.getOwn
|
|
|
4474
4474
|
return r;
|
|
4475
4475
|
};
|
|
4476
4476
|
function _v(e) {
|
|
4477
|
-
const t = Ee("Portal", {}, e), { children: r, target: n, className: a, innerRef: o } = t, s =
|
|
4477
|
+
const t = Ee("Portal", {}, e), { children: r, target: n, className: a, innerRef: o } = t, s = L3(t, ["children", "target", "className", "innerRef"]), i = gt(), [l, u] = Re(!1), c = xe();
|
|
4478
4478
|
return wv(() => (u(!0), c.current = n ? typeof n == "string" ? document.querySelector(n) : n : document.createElement("div"), n || document.body.appendChild(c.current), () => {
|
|
4479
4479
|
!n && document.body.removeChild(c.current);
|
|
4480
|
-
}), [n]), l ? iE(/* @__PURE__ */ y.createElement("div",
|
|
4480
|
+
}), [n]), l ? iE(/* @__PURE__ */ y.createElement("div", V3(B3({
|
|
4481
4481
|
className: a,
|
|
4482
4482
|
dir: i.dir
|
|
4483
4483
|
}, s), {
|
|
@@ -4485,14 +4485,14 @@ function _v(e) {
|
|
|
4485
4485
|
}), r), c.current) : null;
|
|
4486
4486
|
}
|
|
4487
4487
|
_v.displayName = "@mantine/core/Portal";
|
|
4488
|
-
var
|
|
4488
|
+
var K3 = Object.defineProperty, Mi = Object.getOwnPropertySymbols, $v = Object.prototype.hasOwnProperty, ey = Object.prototype.propertyIsEnumerable, Oh = (e, t, r) => t in e ? K3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, W3 = (e, t) => {
|
|
4489
4489
|
for (var r in t || (t = {}))
|
|
4490
4490
|
$v.call(t, r) && Oh(e, r, t[r]);
|
|
4491
4491
|
if (Mi)
|
|
4492
4492
|
for (var r of Mi(t))
|
|
4493
4493
|
ey.call(t, r) && Oh(e, r, t[r]);
|
|
4494
4494
|
return e;
|
|
4495
|
-
},
|
|
4495
|
+
}, Z3 = (e, t) => {
|
|
4496
4496
|
var r = {};
|
|
4497
4497
|
for (var n in e)
|
|
4498
4498
|
$v.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -4502,18 +4502,18 @@ var KI = Object.defineProperty, Mi = Object.getOwnPropertySymbols, $v = Object.p
|
|
|
4502
4502
|
return r;
|
|
4503
4503
|
};
|
|
4504
4504
|
function ic(e) {
|
|
4505
|
-
var t = e, { withinPortal: r = !0, children: n } = t, a =
|
|
4506
|
-
return r ? /* @__PURE__ */ y.createElement(_v,
|
|
4505
|
+
var t = e, { withinPortal: r = !0, children: n } = t, a = Z3(t, ["withinPortal", "children"]);
|
|
4506
|
+
return r ? /* @__PURE__ */ y.createElement(_v, W3({}, a), n) : /* @__PURE__ */ y.createElement(y.Fragment, null, n);
|
|
4507
4507
|
}
|
|
4508
4508
|
ic.displayName = "@mantine/core/OptionalPortal";
|
|
4509
|
-
var
|
|
4509
|
+
var U3 = Object.defineProperty, Ti = Object.getOwnPropertySymbols, ty = Object.prototype.hasOwnProperty, ry = Object.prototype.propertyIsEnumerable, Ch = (e, t, r) => t in e ? U3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ih = (e, t) => {
|
|
4510
4510
|
for (var r in t || (t = {}))
|
|
4511
4511
|
ty.call(t, r) && Ch(e, r, t[r]);
|
|
4512
4512
|
if (Ti)
|
|
4513
4513
|
for (var r of Ti(t))
|
|
4514
4514
|
ry.call(t, r) && Ch(e, r, t[r]);
|
|
4515
4515
|
return e;
|
|
4516
|
-
},
|
|
4516
|
+
}, J3 = (e, t) => {
|
|
4517
4517
|
var r = {};
|
|
4518
4518
|
for (var n in e)
|
|
4519
4519
|
ty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -4523,7 +4523,7 @@ var UI = Object.defineProperty, Ti = Object.getOwnPropertySymbols, ty = Object.p
|
|
|
4523
4523
|
return r;
|
|
4524
4524
|
};
|
|
4525
4525
|
function ny(e) {
|
|
4526
|
-
const t = e, { width: r, height: n, style: a } = t, o =
|
|
4526
|
+
const t = e, { width: r, height: n, style: a } = t, o = J3(t, ["width", "height", "style"]);
|
|
4527
4527
|
return /* @__PURE__ */ y.createElement("svg", Ih({
|
|
4528
4528
|
viewBox: "0 0 15 15",
|
|
4529
4529
|
fill: "none",
|
|
@@ -4537,14 +4537,14 @@ function ny(e) {
|
|
|
4537
4537
|
}));
|
|
4538
4538
|
}
|
|
4539
4539
|
ny.displayName = "@mantine/core/CloseIcon";
|
|
4540
|
-
var
|
|
4540
|
+
var G3 = Object.defineProperty, ji = Object.getOwnPropertySymbols, ay = Object.prototype.hasOwnProperty, oy = Object.prototype.propertyIsEnumerable, Ph = (e, t, r) => t in e ? G3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Y3 = (e, t) => {
|
|
4541
4541
|
for (var r in t || (t = {}))
|
|
4542
4542
|
ay.call(t, r) && Ph(e, r, t[r]);
|
|
4543
4543
|
if (ji)
|
|
4544
4544
|
for (var r of ji(t))
|
|
4545
4545
|
oy.call(t, r) && Ph(e, r, t[r]);
|
|
4546
4546
|
return e;
|
|
4547
|
-
},
|
|
4547
|
+
}, H3 = (e, t) => {
|
|
4548
4548
|
var r = {};
|
|
4549
4549
|
for (var n in e)
|
|
4550
4550
|
ay.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -4553,17 +4553,17 @@ var GI = Object.defineProperty, ji = Object.getOwnPropertySymbols, ay = Object.p
|
|
|
4553
4553
|
t.indexOf(n) < 0 && oy.call(e, n) && (r[n] = e[n]);
|
|
4554
4554
|
return r;
|
|
4555
4555
|
};
|
|
4556
|
-
const
|
|
4556
|
+
const Q3 = {
|
|
4557
4557
|
xs: j(12),
|
|
4558
4558
|
sm: j(16),
|
|
4559
4559
|
md: j(20),
|
|
4560
4560
|
lg: j(28),
|
|
4561
4561
|
xl: j(34)
|
|
4562
|
-
},
|
|
4562
|
+
}, X3 = {
|
|
4563
4563
|
size: "sm"
|
|
4564
4564
|
}, sy = we((e, t) => {
|
|
4565
|
-
const r = Ee("CloseButton",
|
|
4566
|
-
return /* @__PURE__ */ y.createElement(Gt,
|
|
4565
|
+
const r = Ee("CloseButton", X3, e), { iconSize: n, size: a, children: o } = r, s = H3(r, ["iconSize", "size", "children"]), i = j(n || Q3[a]);
|
|
4566
|
+
return /* @__PURE__ */ y.createElement(Gt, Y3({
|
|
4567
4567
|
ref: t,
|
|
4568
4568
|
__staticSelector: "CloseButton",
|
|
4569
4569
|
size: a
|
|
@@ -4573,8 +4573,8 @@ const QI = {
|
|
|
4573
4573
|
}));
|
|
4574
4574
|
});
|
|
4575
4575
|
sy.displayName = "@mantine/core/CloseButton";
|
|
4576
|
-
const
|
|
4577
|
-
var $
|
|
4576
|
+
const _3 = sy;
|
|
4577
|
+
var $3 = Object.defineProperty, eP = Object.defineProperties, tP = Object.getOwnPropertyDescriptors, kh = Object.getOwnPropertySymbols, rP = Object.prototype.hasOwnProperty, nP = Object.prototype.propertyIsEnumerable, xh = (e, t, r) => t in e ? $3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Rs = (e, t) => {
|
|
4578
4578
|
for (var r in t || (t = {}))
|
|
4579
4579
|
rP.call(t, r) && xh(e, r, t[r]);
|
|
4580
4580
|
if (kh)
|
|
@@ -6289,7 +6289,7 @@ function By({
|
|
|
6289
6289
|
active: t = !0,
|
|
6290
6290
|
refProp: r = "ref"
|
|
6291
6291
|
}) {
|
|
6292
|
-
const n =
|
|
6292
|
+
const n = pI(t), a = Qa(n, e == null ? void 0 : e.ref);
|
|
6293
6293
|
return tc(e) ? Jl(e, { [r]: a }) : e;
|
|
6294
6294
|
}
|
|
6295
6295
|
By.displayName = "@mantine/core/FocusTrap";
|
|
@@ -6425,7 +6425,7 @@ function Zy(e) {
|
|
|
6425
6425
|
styles: l.styles,
|
|
6426
6426
|
unstyled: l.unstyled,
|
|
6427
6427
|
variant: l.variant
|
|
6428
|
-
}), d =
|
|
6428
|
+
}), d = sI({
|
|
6429
6429
|
opened: l.opened,
|
|
6430
6430
|
shouldReturnFocus: l.returnFocus
|
|
6431
6431
|
}), f = l.withRoles ? {
|
|
@@ -6607,7 +6607,7 @@ function Xa(e) {
|
|
|
6607
6607
|
onOpen: W,
|
|
6608
6608
|
onClose: Q
|
|
6609
6609
|
});
|
|
6610
|
-
|
|
6610
|
+
tI(() => Xe.opened && T && Xe.onClose(), q, [ue, Y]);
|
|
6611
6611
|
const ro = pe((Je) => {
|
|
6612
6612
|
G(Je), Xe.floating.reference(Je);
|
|
6613
6613
|
}, [Xe.floating.reference]), Nr = pe((Je) => {
|
|
@@ -8648,7 +8648,7 @@ function K1({
|
|
|
8648
8648
|
size: n,
|
|
8649
8649
|
error: a
|
|
8650
8650
|
}) {
|
|
8651
|
-
return e ? /* @__PURE__ */ y.createElement(
|
|
8651
|
+
return e ? /* @__PURE__ */ y.createElement(_3, _N(XN({}, t), {
|
|
8652
8652
|
variant: "transparent",
|
|
8653
8653
|
onClick: r,
|
|
8654
8654
|
size: n,
|
|
@@ -8866,7 +8866,7 @@ const mM = {
|
|
|
8866
8866
|
}, a)), (N || s) && /* @__PURE__ */ y.createElement("span", {
|
|
8867
8867
|
className: k.rightSection,
|
|
8868
8868
|
"data-rotate": T && !w || void 0
|
|
8869
|
-
}, N ? s || /* @__PURE__ */ y.createElement(
|
|
8869
|
+
}, N ? s || /* @__PURE__ */ y.createElement(f3, {
|
|
8870
8870
|
width: j(14),
|
|
8871
8871
|
height: j(14),
|
|
8872
8872
|
style: { transform: "rotate(-90deg)" }
|
|
@@ -10251,7 +10251,7 @@ const UT = {
|
|
|
10251
10251
|
const me = nT({ value: Y, min: d, max: f, step: p, precision: W });
|
|
10252
10252
|
D(me), L.current = me;
|
|
10253
10253
|
}
|
|
10254
|
-
}, [T, d, f, p, W, D]), { ref: le, active: ue } =
|
|
10254
|
+
}, [T, d, f, p, W, D]), { ref: le, active: ue } = vI(re, { onScrubEnd: () => l == null ? void 0 : l(L.current) }, Z.dir), G = (Y) => {
|
|
10255
10255
|
if (!T)
|
|
10256
10256
|
switch (Y.key) {
|
|
10257
10257
|
case "ArrowUp": {
|
|
@@ -18743,7 +18743,7 @@ const lz = {
|
|
|
18743
18743
|
"getPrismTheme",
|
|
18744
18744
|
"variant"
|
|
18745
18745
|
]), S = h && typeof a == "string" ? a.trim() : a, E = S.split(`
|
|
18746
|
-
`).length.toString().length, C = gt(), k =
|
|
18746
|
+
`).length.toString().length, C = gt(), k = rI(), I = b || C.colorScheme, { classes: T, cx: z } = nz({
|
|
18747
18747
|
colorScheme: I,
|
|
18748
18748
|
native: p !== Yd,
|
|
18749
18749
|
maxLineSize: E,
|
|
@@ -25668,7 +25668,7 @@ var YD = (e, t) => e.find((r) => r.id === t), Oc = Fe([]), kS = () => Rr(Oc, ke(
|
|
|
25668
25668
|
);
|
|
25669
25669
|
return Math.max(n, 0);
|
|
25670
25670
|
}, uB = (e, t) => {
|
|
25671
|
-
const r = cB(), n =
|
|
25671
|
+
const r = cB(), n = gI(t, r);
|
|
25672
25672
|
return Ce(() => (e && n.start(), n.stop()), [e, n, t]), n;
|
|
25673
25673
|
}, dB = () => {
|
|
25674
25674
|
const { value: e, max: t, isSlidePossible: r } = jf(), [n, a] = rB(), { next: o, reset: s } = TS(), [i, l] = Re(!1), u = pe(() => {
|
|
@@ -25872,7 +25872,7 @@ var ld = {
|
|
|
25872
25872
|
transform: "rotate(130deg)"
|
|
25873
25873
|
}
|
|
25874
25874
|
}, AB = (e) => {
|
|
25875
|
-
const [t, r] = Re(!1), n = Gm(hS()), a = tB(), { start: o, clear: s } =
|
|
25875
|
+
const [t, r] = Re(!1), n = Gm(hS()), a = tB(), { start: o, clear: s } = EI(() => r(!1), 1750);
|
|
25876
25876
|
Ce(() => s, [s]);
|
|
25877
25877
|
const i = () => {
|
|
25878
25878
|
r(!0), o(), n(e.snapshotToGoTo);
|
|
@@ -27491,7 +27491,7 @@ const VZ = () => {
|
|
|
27491
27491
|
const a = gr(e);
|
|
27492
27492
|
kd(a) && (n = [a, ...NL(t, a)]), r(n);
|
|
27493
27493
|
}, [e, t, r]);
|
|
27494
|
-
}, fU = () => Ge(mA), TL = Vn(() => import("./SidePanels-
|
|
27494
|
+
}, fU = () => Ge(mA), TL = Vn(() => import("./SidePanels-ef5cf825.js")), jL = Vn(() => import("./Topbar-3c249ffe.js")), zL = Vn(() => import("./CanvasArea-90b0f63d.js")), FL = Vn(() => import("./Settings-00337fa2.js")), qL = () => {
|
|
27495
27495
|
const [e] = Ne(kc), t = (a) => {
|
|
27496
27496
|
a.preventDefault();
|
|
27497
27497
|
};
|
|
@@ -28749,7 +28749,7 @@ function MK() {
|
|
|
28749
28749
|
};
|
|
28750
28750
|
return SK(dm(dm({}, t), e));
|
|
28751
28751
|
}
|
|
28752
|
-
const TK = "@chaibuilder/sdk", jK = "1.0.
|
|
28752
|
+
const TK = "@chaibuilder/sdk", jK = "1.0.5", zK = "module", FK = [
|
|
28753
28753
|
"dist"
|
|
28754
28754
|
], qK = "dist/core.js", DK = !1, BK = {
|
|
28755
28755
|
".": {
|
|
@@ -30736,7 +30736,7 @@ const Dt = {
|
|
|
30736
30736
|
return ds({
|
|
30737
30737
|
queryKey: ["project"],
|
|
30738
30738
|
queryFn: async () => {
|
|
30739
|
-
const n = await Dt.get(`${r}/project`).then((a) => a.json());
|
|
30739
|
+
const { data: n } = await Dt.get(`${r}/project`).then((a) => a.json());
|
|
30740
30740
|
if (!e && n) {
|
|
30741
30741
|
const a = localStorage.getItem("currentPage");
|
|
30742
30742
|
t(a || (n == null ? void 0 : n.homepage));
|
|
@@ -30748,14 +30748,17 @@ const Dt = {
|
|
|
30748
30748
|
const e = ft();
|
|
30749
30749
|
return ds({
|
|
30750
30750
|
queryKey: ["pages"],
|
|
30751
|
-
queryFn: async () =>
|
|
30751
|
+
queryFn: async () => {
|
|
30752
|
+
const { data: t } = await Dt.get(`${e}/pages`).then((r) => r.json());
|
|
30753
|
+
return t || [];
|
|
30754
|
+
}
|
|
30752
30755
|
});
|
|
30753
30756
|
}, QA = () => {
|
|
30754
30757
|
const [e, t] = Gn(), { data: r } = _f(), n = ft();
|
|
30755
30758
|
return ds({
|
|
30756
30759
|
queryKey: ["page_data", e],
|
|
30757
30760
|
queryFn: async () => {
|
|
30758
|
-
const a = await Dt.get(`${n}/page?uuid=${e}`);
|
|
30761
|
+
const { data: a } = await Dt.get(`${n}/page?uuid=${e}`).then((o) => o.json());
|
|
30759
30762
|
return a.ok ? a.json() : (t(r.homepage), null);
|
|
30760
30763
|
},
|
|
30761
30764
|
enabled: !!e,
|
|
@@ -30772,7 +30775,7 @@ const Dt = {
|
|
|
30772
30775
|
] }) }), MW = (e = "Project updated successfully.") => {
|
|
30773
30776
|
const t = Qt(), r = ft();
|
|
30774
30777
|
return or({
|
|
30775
|
-
mutationFn: async (n) => await Dt.put(`${r}/project`, n),
|
|
30778
|
+
mutationFn: async (n) => await Dt.put(`${r}/project`, n).then((a) => a.json()),
|
|
30776
30779
|
onSuccess: () => {
|
|
30777
30780
|
t.invalidateQueries({ queryKey: ["project"] }), Pr.success(e);
|
|
30778
30781
|
}
|
|
@@ -30793,7 +30796,7 @@ const Dt = {
|
|
|
30793
30796
|
}, jW = () => {
|
|
30794
30797
|
const e = ft(), [t] = Gn(), r = Qt();
|
|
30795
30798
|
return or({
|
|
30796
|
-
mutationFn: async (n) => Dt.put(`${e}/page`, n),
|
|
30799
|
+
mutationFn: async (n) => Dt.put(`${e}/page`, n).then((a) => a.json()),
|
|
30797
30800
|
onSuccess: async (n) => {
|
|
30798
30801
|
var o;
|
|
30799
30802
|
const a = await n.json();
|
|
@@ -30813,7 +30816,7 @@ const Dt = {
|
|
|
30813
30816
|
slug: o,
|
|
30814
30817
|
uuid: r,
|
|
30815
30818
|
isHomepage: (n == null ? void 0 : n.homepage) === r
|
|
30816
|
-
});
|
|
30819
|
+
}).then((s) => s.json());
|
|
30817
30820
|
},
|
|
30818
30821
|
onSuccess: async (o) => {
|
|
30819
30822
|
var i;
|
|
@@ -30831,7 +30834,7 @@ const Dt = {
|
|
|
30831
30834
|
}, hU = () => {
|
|
30832
30835
|
const e = Qt(), t = ft();
|
|
30833
30836
|
return or({
|
|
30834
|
-
mutationFn: async (r) => Dt.delete(`${t}/page`, r),
|
|
30837
|
+
mutationFn: async (r) => Dt.delete(`${t}/page`, r).then((n) => n.json()),
|
|
30835
30838
|
onSuccess: () => {
|
|
30836
30839
|
Pr.success("Page deleted successfully."), e.invalidateQueries({ queryKey: ["pages"] });
|
|
30837
30840
|
}
|
|
@@ -30839,7 +30842,7 @@ const Dt = {
|
|
|
30839
30842
|
}, FW = () => {
|
|
30840
30843
|
const e = Qt(), t = ft();
|
|
30841
30844
|
return or({
|
|
30842
|
-
mutationFn: async (r) => Dt.post(`${t}/take-control`, { uuid: r }),
|
|
30845
|
+
mutationFn: async (r) => Dt.post(`${t}/take-control`, { uuid: r }).then((n) => n.json()),
|
|
30843
30846
|
onSuccess: (r, n) => {
|
|
30844
30847
|
e.invalidateQueries({ queryKey: ["page_data", n] });
|
|
30845
30848
|
}
|
|
@@ -30848,7 +30851,7 @@ const Dt = {
|
|
|
30848
30851
|
const e = ft();
|
|
30849
30852
|
return or({
|
|
30850
30853
|
mutationFn: async () => {
|
|
30851
|
-
const t = await Dt.get(`${e}/library`).then((r) => r.json());
|
|
30854
|
+
const { data: t } = await Dt.get(`${e}/library`).then((r) => r.json());
|
|
30852
30855
|
return ju(
|
|
30853
30856
|
Le(t, (r) => !Hl(r, "hidden")),
|
|
30854
30857
|
"group"
|
|
@@ -30862,8 +30865,7 @@ const Dt = {
|
|
|
30862
30865
|
if (!t || !t.uuid)
|
|
30863
30866
|
return [];
|
|
30864
30867
|
try {
|
|
30865
|
-
const r = await Dt.get(`${e}/block?uuid=${t.uuid}&format=${t.format}`).then(async (n) => t.format === "html" ? zE(await n.text()) : await n.json());
|
|
30866
|
-
debugger;
|
|
30868
|
+
const { data: r } = await Dt.get(`${e}/block?uuid=${t.uuid}&format=${t.format}`).then(async (n) => t.format === "html" ? zE(await n.text()) : await n.json());
|
|
30867
30869
|
return rn(r, "0._name", yE(t.group)), r || [];
|
|
30868
30870
|
} catch {
|
|
30869
30871
|
return [];
|
|
@@ -30875,11 +30877,13 @@ const Dt = {
|
|
|
30875
30877
|
return or({
|
|
30876
30878
|
mutationFn: async (t) => {
|
|
30877
30879
|
const r = new FormData();
|
|
30878
|
-
|
|
30880
|
+
r.append("file", t);
|
|
30881
|
+
const { data: n } = await fetch(`${e}/upload`, {
|
|
30879
30882
|
method: "POST",
|
|
30880
30883
|
headers: { "x-chai-access-token": fs() },
|
|
30881
30884
|
body: r
|
|
30882
|
-
})).json();
|
|
30885
|
+
}).then((a) => a.json());
|
|
30886
|
+
return n;
|
|
30883
30887
|
}
|
|
30884
30888
|
});
|
|
30885
30889
|
}, VW = () => {
|
|
@@ -30908,11 +30912,12 @@ const Dt = {
|
|
|
30908
30912
|
throw n.status === 401 ? new Error("Invalid login credentials") : new Error("Invalid");
|
|
30909
30913
|
},
|
|
30910
30914
|
onSuccess: (r) => {
|
|
30911
|
-
|
|
30915
|
+
const { data: n } = r;
|
|
30916
|
+
if (!n.accessToken) {
|
|
30912
30917
|
Pr.error("Something went wrong. Please try again.", { position: "top-center" });
|
|
30913
30918
|
return;
|
|
30914
30919
|
}
|
|
30915
|
-
localStorage.setItem("__chai_at",
|
|
30920
|
+
localStorage.setItem("__chai_at", n.accessToken), localStorage.setItem("__chai_ur", JSON.stringify(Xo(n, ["accessToken"]))), t.invalidateQueries({ queryKey: ["verify"] }), Pr.success("Logged in successfully.");
|
|
30916
30921
|
},
|
|
30917
30922
|
onError: () => {
|
|
30918
30923
|
Pr.error("Invalid login credentials. Please try again.", { position: "top-center" });
|
|
@@ -30933,11 +30938,9 @@ const Dt = {
|
|
|
30933
30938
|
const e = ft(), t = Qt();
|
|
30934
30939
|
return or({
|
|
30935
30940
|
mutationFn: async () => {
|
|
30936
|
-
const r = await Dt.post(`${e}/logout`);
|
|
30937
|
-
if (r
|
|
30938
|
-
|
|
30939
|
-
return localStorage.clear(), t.invalidateQueries({ queryKey: ["verify"] }), { logout: n && (n == null ? void 0 : n.result) === "success" };
|
|
30940
|
-
}
|
|
30941
|
+
const { result: r } = await Dt.post(`${e}/logout`).then((n) => n.json());
|
|
30942
|
+
if (r === "success")
|
|
30943
|
+
return localStorage.clear(), t.invalidateQueries({ queryKey: ["verify"] }), { logout: !0 };
|
|
30941
30944
|
throw new Error("Invalid session");
|
|
30942
30945
|
}
|
|
30943
30946
|
});
|
|
@@ -30971,7 +30974,7 @@ const Dt = {
|
|
|
30971
30974
|
] })
|
|
30972
30975
|
] })
|
|
30973
30976
|
] });
|
|
30974
|
-
}, UW = () => /* @__PURE__ */ _.jsx(ZW, { children: /* @__PURE__ */ _.jsx("button", { className: "border-gray-200 rounded-md p-2 mb-2 border", children: /* @__PURE__ */ _.jsx(JE, { className: "w-4 h-4 text-red-500 cursor-pointer hover:text-red-300 duration-300" }) }) }), JW = UW, GW = Vn(() => import("./PagesPanel-
|
|
30977
|
+
}, UW = () => /* @__PURE__ */ _.jsx(ZW, { children: /* @__PURE__ */ _.jsx("button", { className: "border-gray-200 rounded-md p-2 mb-2 border", children: /* @__PURE__ */ _.jsx(JE, { className: "w-4 h-4 text-red-500 cursor-pointer hover:text-red-300 duration-300" }) }) }), JW = UW, GW = Vn(() => import("./PagesPanel-bb740126.js")), YW = Vn(() => import("./ProjectPanel-7dab69b4.js")), HW = Vn(() => import("./CurrentPage-aa4de22f.js")), QW = () => /* @__PURE__ */ _.jsx("h2", { children: "Your Logo" }), XW = () => {
|
|
30975
30978
|
const { mutate: e } = zW();
|
|
30976
30979
|
return Ir("editable", !0) ? /* @__PURE__ */ _.jsx(xd, { onClick: e, className: "bg-blue-600 text-white", children: "Publish" }) : null;
|
|
30977
30980
|
}, _W = (e) => {
|