@janbox/storefront-builder 1.0.9 → 2.0.0
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/README.md +83 -110
- package/dist/{countdown-timer.node-j79tvSTR.js → countdown-timer.node-OmDiT-pz.js} +139 -140
- package/dist/editor/lib/index.d.ts +1 -1
- package/dist/editor/lib/sidebar/insert-action.d.ts +15 -22
- package/dist/editor.js +981 -483
- package/dist/{index-C9Q0Iqvf.js → index-CwrFnubn.js} +342 -341
- package/dist/index.js +33 -33
- package/dist/style.css +1 -1
- package/dist/templates/elements/carousel/index.d.ts +2 -2
- package/dist/templates/elements/content-list/index.d.ts +2 -2
- package/dist/templates/elements/interactive/index.d.ts +2 -2
- package/dist/templates/elements/layout/index.d.ts +2 -2
- package/dist/templates/elements/media/index.d.ts +2 -2
- package/dist/templates/elements/text/index.d.ts +2 -2
- package/dist/templates/elements/utilities/index.d.ts +2 -2
- package/dist/templates/index.d.ts +0 -1
- package/dist/templates/sections/faqs/index.d.ts +2 -2
- package/dist/templates/sections/guarantee/index.d.ts +2 -2
- package/dist/templates/sections/hero/index.d.ts +2 -2
- package/dist/templates.js +79 -578
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsxs as u, jsx as n, Fragment as It } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { useNode as Q, ROOT_NODE as
|
|
4
|
-
import { isString as xe, isNil as ee, trimStart as Ht, isNumber as
|
|
2
|
+
import { a as Wt, F as Et, t as X, M as At, v as y, p as Dt, q as Ot, n as Ft, l as Mt, b as zt, c as $t, P as et, d as _t, i as Pn, A as kn, T as Bn, o as In, r as Wn, m as En, S as An, s as Dn, L as On, k as Fn, V as Mn, I as zn, C as $n, g as _n, j as Hn, G as Vn, H as jn, B as Un, U as Gn, R as qn, N as Jn } from "./countdown-timer.node-OmDiT-pz.js";
|
|
3
|
+
import { Element as Kn, useNode as Q, ROOT_NODE as Yn, Frame as Zn, Editor as Xn, DefaultEventHandlers as Qn } from "@craftjs/core";
|
|
4
|
+
import { isString as xe, isNil as ee, trimStart as Ht, isNumber as eo } from "lodash-es";
|
|
5
5
|
import * as m from "react";
|
|
6
|
-
import { useState as U, useEffect as we, Fragment as Vt, useMemo as
|
|
6
|
+
import { useState as U, useEffect as we, Fragment as Vt, useMemo as to } from "react";
|
|
7
7
|
import "clsx";
|
|
8
8
|
import "tailwind-merge";
|
|
9
|
-
import { W, m as ie, c as j, l as G, w as le, p as
|
|
10
|
-
import { v as E, K as
|
|
11
|
-
import { getGridProps as
|
|
9
|
+
import { W, m as ie, c as j, l as G, w as le, p as no, d as K, o as oo, n as ro, x as ao, y as tt, P as jt, e as ke, q as Ae, s as De, r as Oe, C as Fe } from "./dialog-header-DPLOS7TT.js";
|
|
10
|
+
import { v as E, K as so, E as k, i as ve, N as Be, k as at, R as Ce, G as io, n as lo, W as H, H as ce, D as Y, S as M, h as $, g as z, B as Z, T as L, p as Ut, A as Gt, b as Me, c as ge, d as ze, s as qt, e as st, F as $e, j as co, M as uo, m as Jt, l as Kt, J as ho, r as go, L as it, y as dt, Q as po, O as mo, q as Ie, o as fo, P as nt, f as xo, a as Yt } from "./anchor-target-BlOvysAr.js";
|
|
11
|
+
import { getGridProps as bo, getCellProps as wo, GRID_MINIMUM_COLS as Tt, GRID_MAXIMUM_COLS as vo, getLinkProps as Co, getButtonProps as Ro, getFlexboxProps as So, getFlexItemProps as yo, getImageProps as To, getMarqueeProps as No, MarqueeDataAttributes as Ye, getTabsProps as Lo, getSwiperProps as Po, getUnorderedListProps as ko, getIconProps as Bo, getAccordionProps as Io, getAccordionGroupProps as Wo, getAccordionDataAttributes as Te, AccordionDataAttributes as ot, getVideoProps as Eo, getBoxProps as Ao, getContainerProps as Do } from "@janbox/storefront-ui";
|
|
12
12
|
import { t as I, u as ne, i as Nt, a as rt, e as he, C as Zt } from "./color-picker-popover-B3AVFuei.js";
|
|
13
13
|
import "@janbox/storefront-ui/hooks";
|
|
14
|
-
import { useFloating as
|
|
14
|
+
import { useFloating as Oo, autoUpdate as Fo, flip as Mo, offset as zo, FloatingPortal as $o } from "@floating-ui/react";
|
|
15
15
|
import "react-use";
|
|
16
16
|
import "@janbox/storefront-ui/theme";
|
|
17
17
|
import "react-colorful";
|
|
18
|
-
import { l as A, j as D, h as T, i as O, k as N, c as be, g as lt, a as _e, e as
|
|
18
|
+
import { l as A, j as D, h as T, i as O, k as N, c as be, g as lt, a as _e, e as _o, A as ct, f as He } from "./dropzone-Dbfed3jK.js";
|
|
19
19
|
import "overlayscrollbars-react";
|
|
20
20
|
import "@tanstack/react-virtual";
|
|
21
21
|
import "react-dropzone";
|
|
@@ -25,16 +25,16 @@ import "@tiptap/extension-text-style";
|
|
|
25
25
|
import "@tiptap/react";
|
|
26
26
|
import "@tiptap/react/menus";
|
|
27
27
|
import "@tiptap/starter-kit";
|
|
28
|
-
import { useFrame as
|
|
28
|
+
import { useFrame as Ho } from "react-frame-component";
|
|
29
29
|
import "flat";
|
|
30
30
|
import "@emotion/react";
|
|
31
31
|
import "@janbox/storefront-ui/utils";
|
|
32
32
|
import { useToggle as Xt } from "usehooks-ts";
|
|
33
33
|
import { DragDropContext as Qt, Droppable as en, Draggable as tn } from "@hello-pangea/dnd";
|
|
34
|
-
import { W as
|
|
35
|
-
const
|
|
36
|
-
transform:
|
|
37
|
-
}),
|
|
34
|
+
import { W as Vo } from "./date-picker-B4Rju7gG.js";
|
|
35
|
+
const jo = () => E({
|
|
36
|
+
transform: bo
|
|
37
|
+
}), V = Kn, Uo = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
38
38
|
<path d="M11.835 15L16.835 20C17.663 20.828 19.007 20.828 19.835 20V20C20.663 19.172 20.663 17.828 19.835 17L14.835 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
39
39
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.916 5.84669C20.94 5.86969 20.958 5.89969 20.967 5.93169C21.437 7.49869 21.073 9.26169 19.835 10.4997C18.584 11.7507 16.797 12.1087 15.218 11.6167L6.871 19.9637C6.058 20.7767 4.732 20.8377 3.891 20.0537C3.007 19.2307 2.989 17.8467 3.835 16.9997L12.218 8.61669C11.726 7.03769 12.084 5.25069 13.335 3.99969C14.573 2.76169 16.336 2.39769 17.903 2.86769C17.935 2.87769 17.965 2.89469 17.988 2.91869L18.15 3.08069C18.228 3.15869 18.228 3.28569 18.15 3.36369L15.515 5.99969L17.835 8.31969L20.471 5.68369C20.549 5.60569 20.676 5.60569 20.754 5.68369L20.916 5.84669V5.84669Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
40
40
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.933 4.29296L3.607 6.31596C3.743 6.72496 4.125 6.99996 4.556 6.99996H6.835V4.72096C6.835 4.29096 6.56 3.90796 6.151 3.77196L4.128 3.09796C3.948 3.03796 3.75 3.08496 3.616 3.21896L3.054 3.78096C2.92 3.91496 2.873 4.11296 2.933 4.29296V4.29296Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -43,15 +43,15 @@ const Vo = () => E({
|
|
|
43
43
|
`, f = ({ name: e, children: o, responsive: r, slots: t }) => /* @__PURE__ */ u("div", { className: "tw:flex tw:flex-col tw:py-2 tw:gap-2", children: [
|
|
44
44
|
/* @__PURE__ */ u("div", { className: "tw:flex tw:items-center tw:gap-2", children: [
|
|
45
45
|
/* @__PURE__ */ u("div", { className: "tw:flex tw:items-center tw:gap-2", children: [
|
|
46
|
-
/* @__PURE__ */ n(W, { source:
|
|
46
|
+
/* @__PURE__ */ n(W, { source: Uo }),
|
|
47
47
|
/* @__PURE__ */ n("span", { className: "tw:text-sm tw:font-medium", children: e })
|
|
48
48
|
] }),
|
|
49
|
-
!!r && /* @__PURE__ */ n(
|
|
49
|
+
!!r && /* @__PURE__ */ n(so, {}),
|
|
50
50
|
/* @__PURE__ */ n("div", { className: "tw:flex-1 tw:flex tw:items-center tw:justify-end", children: t?.right })
|
|
51
51
|
] }),
|
|
52
52
|
/* @__PURE__ */ n("div", { className: "tw:flex tw:flex-col tw:gap-4", children: o })
|
|
53
|
-
] }),
|
|
54
|
-
const { nodeProps: e, setNodeResponsiveProps: o, setNodeProps: r } =
|
|
53
|
+
] }), Hs = () => {
|
|
54
|
+
const { nodeProps: e, setNodeResponsiveProps: o, setNodeProps: r } = jo(), { getResponsiveProp: t, currentScreen: a } = k(), s = (S, P = a) => {
|
|
55
55
|
r({
|
|
56
56
|
sx: I(S, P)
|
|
57
57
|
});
|
|
@@ -116,8 +116,8 @@ const Vo = () => E({
|
|
|
116
116
|
} }),
|
|
117
117
|
/* @__PURE__ */ n(at, { value: c, onChange: s }),
|
|
118
118
|
/* @__PURE__ */ n(Ce, { value: h, onChange: s }),
|
|
119
|
-
/* @__PURE__ */ n(
|
|
120
|
-
/* @__PURE__ */ n(
|
|
119
|
+
/* @__PURE__ */ n(io, { value: w, onChange: s }),
|
|
120
|
+
/* @__PURE__ */ n(lo, { value: b, onChange: s })
|
|
121
121
|
] }),
|
|
122
122
|
/* @__PURE__ */ u(f, { name: "Size", children: [
|
|
123
123
|
/* @__PURE__ */ n(
|
|
@@ -146,8 +146,8 @@ const Vo = () => E({
|
|
|
146
146
|
] })
|
|
147
147
|
] });
|
|
148
148
|
}, nn = () => E({
|
|
149
|
-
transform:
|
|
150
|
-
}),
|
|
149
|
+
transform: wo
|
|
150
|
+
}), Go = () => {
|
|
151
151
|
const { currentScreen: e, getResponsiveProp: o } = k(), { nodeProps: r, setNodeResponsiveProps: t } = nn(), a = o(r, "colSpan") ?? Tt;
|
|
152
152
|
return /* @__PURE__ */ n(L, { responsive: !0, name: "Col span", children: /* @__PURE__ */ n("div", { className: "tw:w-1/2", children: /* @__PURE__ */ n(
|
|
153
153
|
be,
|
|
@@ -167,10 +167,10 @@ const Vo = () => E({
|
|
|
167
167
|
mode: "onBlur",
|
|
168
168
|
size: "32",
|
|
169
169
|
min: Tt,
|
|
170
|
-
max:
|
|
170
|
+
max: vo
|
|
171
171
|
}
|
|
172
172
|
) }) });
|
|
173
|
-
},
|
|
173
|
+
}, Vs = () => {
|
|
174
174
|
const { nodeProps: e, setNodeProps: o } = nn(), { currentScreen: r, getResponsiveProp: t } = k(), a = (g, x = r) => {
|
|
175
175
|
o({ sx: I(g, x) });
|
|
176
176
|
}, s = {
|
|
@@ -215,7 +215,7 @@ const Vo = () => E({
|
|
|
215
215
|
/* @__PURE__ */ u(O, { className: "tw:px-2", children: [
|
|
216
216
|
/* @__PURE__ */ u(N, { children: [
|
|
217
217
|
/* @__PURE__ */ u(f, { name: "Layout", children: [
|
|
218
|
-
/* @__PURE__ */ n(
|
|
218
|
+
/* @__PURE__ */ n(Go, {}),
|
|
219
219
|
/* @__PURE__ */ n(Ut, { value: h, onChange: a })
|
|
220
220
|
] }),
|
|
221
221
|
/* @__PURE__ */ n(f, { name: "Size", children: /* @__PURE__ */ n(ce, { onChange: a, value: c }) })
|
|
@@ -232,8 +232,8 @@ const Vo = () => E({
|
|
|
232
232
|
] })
|
|
233
233
|
] });
|
|
234
234
|
}, ut = () => E({
|
|
235
|
-
transform:
|
|
236
|
-
}),
|
|
235
|
+
transform: Co
|
|
236
|
+
}), qo = () => {
|
|
237
237
|
const { nodeProps: e, setNodeProps: o } = ut();
|
|
238
238
|
return /* @__PURE__ */ n(L, { name: "To", children: /* @__PURE__ */ n(
|
|
239
239
|
ie,
|
|
@@ -247,7 +247,7 @@ const Vo = () => E({
|
|
|
247
247
|
classes: { container: "tw:w-1/2" }
|
|
248
248
|
}
|
|
249
249
|
) });
|
|
250
|
-
},
|
|
250
|
+
}, Jo = () => {
|
|
251
251
|
const { nodeProps: e, setNodeProps: o } = ut();
|
|
252
252
|
return /* @__PURE__ */ n(L, { name: "Rel", children: /* @__PURE__ */ n(
|
|
253
253
|
ie,
|
|
@@ -264,7 +264,7 @@ const Vo = () => E({
|
|
|
264
264
|
placeholder: "nofollow, noreferrer, noopener, ugc"
|
|
265
265
|
}
|
|
266
266
|
) });
|
|
267
|
-
},
|
|
267
|
+
}, js = () => {
|
|
268
268
|
const { nodeProps: e, setNodeResponsiveProps: o, setNodeProps: r } = ut(), { currentScreen: t, getResponsiveProp: a } = k(), s = (v, R = t) => {
|
|
269
269
|
r({ sx: I(v, R) });
|
|
270
270
|
}, i = {
|
|
@@ -329,7 +329,7 @@ const Vo = () => E({
|
|
|
329
329
|
/* @__PURE__ */ u(O, { className: "tw:px-2", children: [
|
|
330
330
|
/* @__PURE__ */ u(N, { children: [
|
|
331
331
|
/* @__PURE__ */ u(f, { name: "Insert link", children: [
|
|
332
|
-
/* @__PURE__ */ n(
|
|
332
|
+
/* @__PURE__ */ n(qo, {}),
|
|
333
333
|
/* @__PURE__ */ n(Gt, { value: e.target, onChange: p })
|
|
334
334
|
] }),
|
|
335
335
|
/* @__PURE__ */ u(f, { name: "Text", children: [
|
|
@@ -362,7 +362,7 @@ const Vo = () => E({
|
|
|
362
362
|
}
|
|
363
363
|
)
|
|
364
364
|
] }),
|
|
365
|
-
/* @__PURE__ */ n(f, { name: "SEO", children: /* @__PURE__ */ n(
|
|
365
|
+
/* @__PURE__ */ n(f, { name: "SEO", children: /* @__PURE__ */ n(Jo, {}) })
|
|
366
366
|
] }),
|
|
367
367
|
/* @__PURE__ */ u(N, { children: [
|
|
368
368
|
/* @__PURE__ */ n(f, { name: "Spacing (px)", children: /* @__PURE__ */ n(M, { value: i, onChange: s }) }),
|
|
@@ -374,7 +374,7 @@ const Vo = () => E({
|
|
|
374
374
|
] })
|
|
375
375
|
] });
|
|
376
376
|
}, Ve = () => E({
|
|
377
|
-
transform:
|
|
377
|
+
transform: Ro
|
|
378
378
|
});
|
|
379
379
|
function F(e, o) {
|
|
380
380
|
if (e === !1 || e === null || typeof e > "u")
|
|
@@ -407,18 +407,18 @@ function ht(e) {
|
|
|
407
407
|
return o;
|
|
408
408
|
}
|
|
409
409
|
function on(e, o, r = "/") {
|
|
410
|
-
return
|
|
410
|
+
return Ko(e, o, r, !1);
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function Ko(e, o, r, t) {
|
|
413
413
|
let a = typeof o == "string" ? ht(o) : o, s = de(a.pathname || "/", r);
|
|
414
414
|
if (s == null)
|
|
415
415
|
return null;
|
|
416
416
|
let i = rn(e);
|
|
417
|
-
|
|
417
|
+
Yo(i);
|
|
418
418
|
let d = null;
|
|
419
419
|
for (let l = 0; d == null && l < i.length; ++l) {
|
|
420
|
-
let c =
|
|
421
|
-
d =
|
|
420
|
+
let c = ir(s);
|
|
421
|
+
d = ar(
|
|
422
422
|
i[l],
|
|
423
423
|
c,
|
|
424
424
|
t
|
|
@@ -456,7 +456,7 @@ function rn(e, o = [], r = [], t = "", a = !1) {
|
|
|
456
456
|
l
|
|
457
457
|
)), !(i.path == null && !i.index) && o.push({
|
|
458
458
|
path: g,
|
|
459
|
-
score:
|
|
459
|
+
score: or(g, i.index),
|
|
460
460
|
routesMeta: x
|
|
461
461
|
});
|
|
462
462
|
};
|
|
@@ -483,23 +483,23 @@ function an(e) {
|
|
|
483
483
|
(l) => e.startsWith("/") && l === "" ? "/" : l
|
|
484
484
|
);
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function Yo(e) {
|
|
487
487
|
e.sort(
|
|
488
|
-
(o, r) => o.score !== r.score ? r.score - o.score :
|
|
488
|
+
(o, r) => o.score !== r.score ? r.score - o.score : rr(
|
|
489
489
|
o.routesMeta.map((t) => t.childrenIndex),
|
|
490
490
|
r.routesMeta.map((t) => t.childrenIndex)
|
|
491
491
|
)
|
|
492
492
|
);
|
|
493
493
|
}
|
|
494
|
-
var
|
|
495
|
-
function
|
|
494
|
+
var Zo = /^:[\w-]+$/, Xo = 3, Qo = 2, er = 1, tr = 10, nr = -2, Lt = (e) => e === "*";
|
|
495
|
+
function or(e, o) {
|
|
496
496
|
let r = e.split("/"), t = r.length;
|
|
497
|
-
return r.some(Lt) && (t +=
|
|
498
|
-
(a, s) => a + (
|
|
497
|
+
return r.some(Lt) && (t += nr), o && (t += Qo), r.filter((a) => !Lt(a)).reduce(
|
|
498
|
+
(a, s) => a + (Zo.test(s) ? Xo : s === "" ? er : tr),
|
|
499
499
|
t
|
|
500
500
|
);
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function rr(e, o) {
|
|
503
503
|
return e.length === o.length && e.slice(0, -1).every((t, a) => t === o[a]) ? (
|
|
504
504
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
505
505
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -512,7 +512,7 @@ function or(e, o) {
|
|
|
512
512
|
0
|
|
513
513
|
);
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function ar(e, o, r = !1) {
|
|
516
516
|
let { routesMeta: t } = e, a = {}, s = "/", i = [];
|
|
517
517
|
for (let d = 0; d < t.length; ++d) {
|
|
518
518
|
let l = t[d], c = d === t.length - 1, h = s === "/" ? o : o.slice(s.length) || "/", g = Ee(
|
|
@@ -532,7 +532,7 @@ function rr(e, o, r = !1) {
|
|
|
532
532
|
// TODO: Can this as be avoided?
|
|
533
533
|
params: a,
|
|
534
534
|
pathname: J([s, g.pathname]),
|
|
535
|
-
pathnameBase:
|
|
535
|
+
pathnameBase: ur(
|
|
536
536
|
J([s, g.pathnameBase])
|
|
537
537
|
),
|
|
538
538
|
route: x
|
|
@@ -542,7 +542,7 @@ function rr(e, o, r = !1) {
|
|
|
542
542
|
}
|
|
543
543
|
function Ee(e, o) {
|
|
544
544
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
545
|
-
let [r, t] =
|
|
545
|
+
let [r, t] = sr(
|
|
546
546
|
e.path,
|
|
547
547
|
e.caseSensitive,
|
|
548
548
|
e.end
|
|
@@ -566,7 +566,7 @@ function Ee(e, o) {
|
|
|
566
566
|
pattern: e
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function sr(e, o = !1, r = !0) {
|
|
570
570
|
te(
|
|
571
571
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
572
572
|
`Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
|
|
@@ -583,7 +583,7 @@ function ar(e, o = !1, r = !0) {
|
|
|
583
583
|
).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
584
584
|
return e.endsWith("*") ? (t.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, o ? void 0 : "i"), t];
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function ir(e) {
|
|
587
587
|
try {
|
|
588
588
|
return e.split("/").map((o) => decodeURIComponent(o).replace(/\//g, "%2F")).join("/");
|
|
589
589
|
} catch (o) {
|
|
@@ -600,8 +600,8 @@ function de(e, o) {
|
|
|
600
600
|
let r = o.endsWith("/") ? o.length - 1 : o.length, t = e.charAt(r);
|
|
601
601
|
return t && t !== "/" ? null : e.slice(r) || "/";
|
|
602
602
|
}
|
|
603
|
-
var
|
|
604
|
-
function
|
|
603
|
+
var dr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
604
|
+
function lr(e, o = "/") {
|
|
605
605
|
let {
|
|
606
606
|
pathname: r,
|
|
607
607
|
search: t = "",
|
|
@@ -609,8 +609,8 @@ function dr(e, o = "/") {
|
|
|
609
609
|
} = typeof e == "string" ? ht(e) : e, s;
|
|
610
610
|
return r ? (r = r.replace(/\/\/+/g, "/"), r.startsWith("/") ? s = Pt(r.substring(1), "/") : s = Pt(r, o)) : s = o, {
|
|
611
611
|
pathname: s,
|
|
612
|
-
search:
|
|
613
|
-
hash:
|
|
612
|
+
search: hr(t),
|
|
613
|
+
hash: gr(a)
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
616
|
function Pt(e, o) {
|
|
@@ -624,13 +624,13 @@ function Ze(e, o, r, t) {
|
|
|
624
624
|
t
|
|
625
625
|
)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function cr(e) {
|
|
628
628
|
return e.filter(
|
|
629
629
|
(o, r) => r === 0 || o.route.path && o.route.path.length > 0
|
|
630
630
|
);
|
|
631
631
|
}
|
|
632
632
|
function sn(e) {
|
|
633
|
-
let o =
|
|
633
|
+
let o = cr(e);
|
|
634
634
|
return o.map(
|
|
635
635
|
(r, t) => t === o.length - 1 ? r.pathname : r.pathnameBase
|
|
636
636
|
);
|
|
@@ -660,24 +660,24 @@ function gt(e, o, r, t = !1) {
|
|
|
660
660
|
}
|
|
661
661
|
d = g >= 0 ? o[g] : "/";
|
|
662
662
|
}
|
|
663
|
-
let l =
|
|
663
|
+
let l = lr(a, d), c = i && i !== "/" && i.endsWith("/"), h = (s || i === ".") && r.endsWith("/");
|
|
664
664
|
return !l.pathname.endsWith("/") && (c || h) && (l.pathname += "/"), l;
|
|
665
665
|
}
|
|
666
|
-
var J = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
666
|
+
var J = (e) => e.join("/").replace(/\/\/+/g, "/"), ur = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), hr = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, gr = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, pr = class {
|
|
667
667
|
constructor(e, o, r, t = !1) {
|
|
668
668
|
this.status = e, this.statusText = o || "", this.internal = t, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
|
|
669
669
|
}
|
|
670
670
|
};
|
|
671
|
-
function
|
|
671
|
+
function mr(e) {
|
|
672
672
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function fr(e) {
|
|
675
675
|
return e.map((o) => o.route.path).filter(Boolean).join("/").replace(/\/\/*/g, "/") || "/";
|
|
676
676
|
}
|
|
677
677
|
var dn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
678
678
|
function ln(e, o) {
|
|
679
679
|
let r = e;
|
|
680
|
-
if (typeof r != "string" || !
|
|
680
|
+
if (typeof r != "string" || !dr.test(r))
|
|
681
681
|
return {
|
|
682
682
|
absoluteURL: void 0,
|
|
683
683
|
isExternal: !1,
|
|
@@ -710,29 +710,29 @@ var cn = [
|
|
|
710
710
|
new Set(
|
|
711
711
|
cn
|
|
712
712
|
);
|
|
713
|
-
var
|
|
713
|
+
var xr = [
|
|
714
714
|
"GET",
|
|
715
715
|
...cn
|
|
716
716
|
];
|
|
717
|
-
new Set(
|
|
717
|
+
new Set(xr);
|
|
718
718
|
var pe = m.createContext(null);
|
|
719
719
|
pe.displayName = "DataRouter";
|
|
720
720
|
var je = m.createContext(null);
|
|
721
721
|
je.displayName = "DataRouterState";
|
|
722
722
|
var un = m.createContext(!1);
|
|
723
|
-
function
|
|
723
|
+
function br() {
|
|
724
724
|
return m.useContext(un);
|
|
725
725
|
}
|
|
726
726
|
var hn = m.createContext({
|
|
727
727
|
isTransitioning: !1
|
|
728
728
|
});
|
|
729
729
|
hn.displayName = "ViewTransition";
|
|
730
|
-
var
|
|
730
|
+
var wr = m.createContext(
|
|
731
731
|
/* @__PURE__ */ new Map()
|
|
732
732
|
);
|
|
733
|
-
|
|
734
|
-
var
|
|
735
|
-
|
|
733
|
+
wr.displayName = "Fetchers";
|
|
734
|
+
var vr = m.createContext(null);
|
|
735
|
+
vr.displayName = "Await";
|
|
736
736
|
var q = m.createContext(
|
|
737
737
|
null
|
|
738
738
|
);
|
|
@@ -749,9 +749,9 @@ var oe = m.createContext({
|
|
|
749
749
|
oe.displayName = "Route";
|
|
750
750
|
var mt = m.createContext(null);
|
|
751
751
|
mt.displayName = "RouteError";
|
|
752
|
-
var gn = "REACT_ROUTER_ERROR",
|
|
753
|
-
function
|
|
754
|
-
if (e.startsWith(`${gn}:${
|
|
752
|
+
var gn = "REACT_ROUTER_ERROR", Cr = "REDIRECT", Rr = "ROUTE_ERROR_RESPONSE";
|
|
753
|
+
function Sr(e) {
|
|
754
|
+
if (e.startsWith(`${gn}:${Cr}:{`))
|
|
755
755
|
try {
|
|
756
756
|
let o = JSON.parse(e.slice(28));
|
|
757
757
|
if (typeof o == "object" && o && typeof o.status == "number" && typeof o.statusText == "string" && typeof o.location == "string" && typeof o.reloadDocument == "boolean" && typeof o.replace == "boolean")
|
|
@@ -759,14 +759,14 @@ function Rr(e) {
|
|
|
759
759
|
} catch {
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function yr(e) {
|
|
763
763
|
if (e.startsWith(
|
|
764
|
-
`${gn}:${
|
|
764
|
+
`${gn}:${Rr}:{`
|
|
765
765
|
))
|
|
766
766
|
try {
|
|
767
767
|
let o = JSON.parse(e.slice(40));
|
|
768
768
|
if (typeof o == "object" && o && typeof o.status == "number" && typeof o.statusText == "string")
|
|
769
|
-
return new
|
|
769
|
+
return new pr(
|
|
770
770
|
o.status,
|
|
771
771
|
o.statusText,
|
|
772
772
|
o.data
|
|
@@ -774,7 +774,7 @@ function Sr(e) {
|
|
|
774
774
|
} catch {
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function Tr(e, { relative: o } = {}) {
|
|
778
778
|
F(
|
|
779
779
|
Ue(),
|
|
780
780
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -799,11 +799,11 @@ var pn = "You should call navigate() in a React.useEffect(), not when your compo
|
|
|
799
799
|
function mn(e) {
|
|
800
800
|
m.useContext(q).static || m.useLayoutEffect(e);
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function Nr() {
|
|
803
803
|
let { isDataRoute: e } = m.useContext(oe);
|
|
804
|
-
return e ?
|
|
804
|
+
return e ? zr() : Lr();
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function Lr() {
|
|
807
807
|
F(
|
|
808
808
|
Ue(),
|
|
809
809
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -854,7 +854,7 @@ function Re(e, { relative: o } = {}) {
|
|
|
854
854
|
[e, a, t, o]
|
|
855
855
|
);
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function Pr(e, o, r) {
|
|
858
858
|
F(
|
|
859
859
|
Ue(),
|
|
860
860
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -886,7 +886,7 @@ Please change the parent <Route path="${p}"> to <Route path="${p === "/" ? "*" :
|
|
|
886
886
|
), te(
|
|
887
887
|
b == null || b[b.length - 1].route.element !== void 0 || b[b.length - 1].route.Component !== void 0 || b[b.length - 1].route.lazy !== void 0,
|
|
888
888
|
`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
|
|
889
|
-
),
|
|
889
|
+
), Er(
|
|
890
890
|
b && b.map(
|
|
891
891
|
(p) => Object.assign({}, p, {
|
|
892
892
|
params: Object.assign({}, i, p.params),
|
|
@@ -916,14 +916,14 @@ Please change the parent <Route path="${p}"> to <Route path="${p === "/" ? "*" :
|
|
|
916
916
|
r
|
|
917
917
|
);
|
|
918
918
|
}
|
|
919
|
-
function
|
|
920
|
-
let e =
|
|
919
|
+
function kr() {
|
|
920
|
+
let e = Mr(), o = mr(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, t = "rgba(200,200,200, 0.5)", a = { padding: "0.5rem", backgroundColor: t }, s = { padding: "2px 4px", backgroundColor: t }, i = null;
|
|
921
921
|
return console.error(
|
|
922
922
|
"Error handled by React Router default ErrorBoundary:",
|
|
923
923
|
e
|
|
924
924
|
), i = /* @__PURE__ */ m.createElement(m.Fragment, null, /* @__PURE__ */ m.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ m.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ m.createElement("code", { style: s }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ m.createElement("code", { style: s }, "errorElement"), " prop on your route.")), /* @__PURE__ */ m.createElement(m.Fragment, null, /* @__PURE__ */ m.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ m.createElement("h3", { style: { fontStyle: "italic" } }, o), r ? /* @__PURE__ */ m.createElement("pre", { style: a }, r) : null, i);
|
|
925
925
|
}
|
|
926
|
-
var
|
|
926
|
+
var Br = /* @__PURE__ */ m.createElement(kr, null), fn = class extends m.Component {
|
|
927
927
|
constructor(e) {
|
|
928
928
|
super(e), this.state = {
|
|
929
929
|
location: e.location,
|
|
@@ -954,7 +954,7 @@ var kr = /* @__PURE__ */ m.createElement(Pr, null), fn = class extends m.Compone
|
|
|
954
954
|
render() {
|
|
955
955
|
let e = this.state.error;
|
|
956
956
|
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
|
|
957
|
-
const r =
|
|
957
|
+
const r = yr(e.digest);
|
|
958
958
|
r && (e = r);
|
|
959
959
|
}
|
|
960
960
|
let o = e !== void 0 ? /* @__PURE__ */ m.createElement(oe.Provider, { value: this.props.routeContext }, /* @__PURE__ */ m.createElement(
|
|
@@ -964,18 +964,18 @@ var kr = /* @__PURE__ */ m.createElement(Pr, null), fn = class extends m.Compone
|
|
|
964
964
|
children: this.props.component
|
|
965
965
|
}
|
|
966
966
|
)) : this.props.children;
|
|
967
|
-
return this.context ? /* @__PURE__ */ m.createElement(
|
|
967
|
+
return this.context ? /* @__PURE__ */ m.createElement(Ir, { error: e }, o) : o;
|
|
968
968
|
}
|
|
969
969
|
};
|
|
970
970
|
fn.contextType = un;
|
|
971
971
|
var Xe = /* @__PURE__ */ new WeakMap();
|
|
972
|
-
function
|
|
972
|
+
function Ir({
|
|
973
973
|
children: e,
|
|
974
974
|
error: o
|
|
975
975
|
}) {
|
|
976
976
|
let { basename: r } = m.useContext(q);
|
|
977
977
|
if (typeof o == "object" && o && "digest" in o && typeof o.digest == "string") {
|
|
978
|
-
let t =
|
|
978
|
+
let t = Sr(o.digest);
|
|
979
979
|
if (t) {
|
|
980
980
|
let a = Xe.get(o);
|
|
981
981
|
if (a) throw a;
|
|
@@ -1002,11 +1002,11 @@ function Br({
|
|
|
1002
1002
|
}
|
|
1003
1003
|
return e;
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function Wr({ routeContext: e, match: o, children: r }) {
|
|
1006
1006
|
let t = m.useContext(pe);
|
|
1007
1007
|
return t && t.static && t.staticContext && (o.route.errorElement || o.route.ErrorBoundary) && (t.staticContext._deepestRenderedBoundaryId = o.route.id), /* @__PURE__ */ m.createElement(oe.Provider, { value: e }, r);
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function Er(e, o = [], r) {
|
|
1010
1010
|
let t = r?.state;
|
|
1011
1011
|
if (e == null) {
|
|
1012
1012
|
if (!t)
|
|
@@ -1051,14 +1051,14 @@ function Wr(e, o = [], r) {
|
|
|
1051
1051
|
l(h, {
|
|
1052
1052
|
location: t.location,
|
|
1053
1053
|
params: t.matches?.[0]?.params ?? {},
|
|
1054
|
-
unstable_pattern:
|
|
1054
|
+
unstable_pattern: fr(t.matches),
|
|
1055
1055
|
errorInfo: g
|
|
1056
1056
|
});
|
|
1057
1057
|
} : void 0;
|
|
1058
1058
|
return a.reduceRight(
|
|
1059
1059
|
(h, g, x) => {
|
|
1060
1060
|
let w, b = !1, C = null, p = null;
|
|
1061
|
-
t && (w = s && g.route.id ? s[g.route.id] : void 0, C = g.route.errorElement ||
|
|
1061
|
+
t && (w = s && g.route.id ? s[g.route.id] : void 0, C = g.route.errorElement || Br, i && (d < 0 && x === 0 ? (xn(
|
|
1062
1062
|
"route-fallback",
|
|
1063
1063
|
!1,
|
|
1064
1064
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
@@ -1066,7 +1066,7 @@ function Wr(e, o = [], r) {
|
|
|
1066
1066
|
let v = o.concat(a.slice(0, x + 1)), R = () => {
|
|
1067
1067
|
let S;
|
|
1068
1068
|
return w ? S = C : b ? S = p : g.route.Component ? S = /* @__PURE__ */ m.createElement(g.route.Component, null) : g.route.element ? S = g.route.element : S = h, /* @__PURE__ */ m.createElement(
|
|
1069
|
-
|
|
1069
|
+
Wr,
|
|
1070
1070
|
{
|
|
1071
1071
|
match: g,
|
|
1072
1072
|
routeContext: {
|
|
@@ -1097,33 +1097,33 @@ function Wr(e, o = [], r) {
|
|
|
1097
1097
|
function ft(e) {
|
|
1098
1098
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function Ar(e) {
|
|
1101
1101
|
let o = m.useContext(pe);
|
|
1102
1102
|
return F(o, ft(e)), o;
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function Dr(e) {
|
|
1105
1105
|
let o = m.useContext(je);
|
|
1106
1106
|
return F(o, ft(e)), o;
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function Or(e) {
|
|
1109
1109
|
let o = m.useContext(oe);
|
|
1110
1110
|
return F(o, ft(e)), o;
|
|
1111
1111
|
}
|
|
1112
1112
|
function xt(e) {
|
|
1113
|
-
let o =
|
|
1113
|
+
let o = Or(e), r = o.matches[o.matches.length - 1];
|
|
1114
1114
|
return F(
|
|
1115
1115
|
r.route.id,
|
|
1116
1116
|
`${e} can only be used on routes that contain a unique "id"`
|
|
1117
1117
|
), r.route.id;
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function Fr() {
|
|
1120
1120
|
return xt(
|
|
1121
1121
|
"useRouteId"
|
|
1122
1122
|
/* UseRouteId */
|
|
1123
1123
|
);
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1126
|
-
let e = m.useContext(mt), o =
|
|
1125
|
+
function Mr() {
|
|
1126
|
+
let e = m.useContext(mt), o = Dr(
|
|
1127
1127
|
"useRouteError"
|
|
1128
1128
|
/* UseRouteError */
|
|
1129
1129
|
), r = xt(
|
|
@@ -1132,8 +1132,8 @@ function Fr() {
|
|
|
1132
1132
|
);
|
|
1133
1133
|
return e !== void 0 ? e : o.errors?.[r];
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1136
|
-
let { router: e } =
|
|
1135
|
+
function zr() {
|
|
1136
|
+
let { router: e } = Ar(
|
|
1137
1137
|
"useNavigate"
|
|
1138
1138
|
/* UseNavigateStable */
|
|
1139
1139
|
), o = xt(
|
|
@@ -1153,39 +1153,39 @@ var kt = {};
|
|
|
1153
1153
|
function xn(e, o, r) {
|
|
1154
1154
|
!o && !kt[e] && (kt[e] = !0, te(!1, r));
|
|
1155
1155
|
}
|
|
1156
|
-
m.memo(
|
|
1157
|
-
function
|
|
1156
|
+
m.memo($r);
|
|
1157
|
+
function $r({
|
|
1158
1158
|
routes: e,
|
|
1159
1159
|
future: o,
|
|
1160
1160
|
state: r,
|
|
1161
1161
|
isStatic: t,
|
|
1162
1162
|
onError: a
|
|
1163
1163
|
}) {
|
|
1164
|
-
return
|
|
1164
|
+
return Pr(e, void 0, { state: r, isStatic: t, onError: a });
|
|
1165
1165
|
}
|
|
1166
1166
|
var Le = "get", Pe = "application/x-www-form-urlencoded";
|
|
1167
1167
|
function Ge(e) {
|
|
1168
1168
|
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function _r(e) {
|
|
1171
1171
|
return Ge(e) && e.tagName.toLowerCase() === "button";
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function Hr(e) {
|
|
1174
1174
|
return Ge(e) && e.tagName.toLowerCase() === "form";
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function Vr(e) {
|
|
1177
1177
|
return Ge(e) && e.tagName.toLowerCase() === "input";
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function jr(e) {
|
|
1180
1180
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function Ur(e, o) {
|
|
1183
1183
|
return e.button === 0 && // Ignore everything but left clicks
|
|
1184
1184
|
(!o || o === "_self") && // Let browser handle "target=_blank" etc.
|
|
1185
|
-
!
|
|
1185
|
+
!jr(e);
|
|
1186
1186
|
}
|
|
1187
1187
|
var Ne = null;
|
|
1188
|
-
function
|
|
1188
|
+
function Gr() {
|
|
1189
1189
|
if (Ne === null)
|
|
1190
1190
|
try {
|
|
1191
1191
|
new FormData(
|
|
@@ -1198,30 +1198,30 @@ function Ur() {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
return Ne;
|
|
1200
1200
|
}
|
|
1201
|
-
var
|
|
1201
|
+
var qr = /* @__PURE__ */ new Set([
|
|
1202
1202
|
"application/x-www-form-urlencoded",
|
|
1203
1203
|
"multipart/form-data",
|
|
1204
1204
|
"text/plain"
|
|
1205
1205
|
]);
|
|
1206
1206
|
function Qe(e) {
|
|
1207
|
-
return e != null && !
|
|
1207
|
+
return e != null && !qr.has(e) ? (te(
|
|
1208
1208
|
!1,
|
|
1209
1209
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Pe}"`
|
|
1210
1210
|
), null) : e;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Jr(e, o) {
|
|
1213
1213
|
let r, t, a, s, i;
|
|
1214
|
-
if (
|
|
1214
|
+
if (Hr(e)) {
|
|
1215
1215
|
let d = e.getAttribute("action");
|
|
1216
1216
|
t = d ? de(d, o) : null, r = e.getAttribute("method") || Le, a = Qe(e.getAttribute("enctype")) || Pe, s = new FormData(e);
|
|
1217
|
-
} else if (
|
|
1217
|
+
} else if (_r(e) || Vr(e) && (e.type === "submit" || e.type === "image")) {
|
|
1218
1218
|
let d = e.form;
|
|
1219
1219
|
if (d == null)
|
|
1220
1220
|
throw new Error(
|
|
1221
1221
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
1222
1222
|
);
|
|
1223
1223
|
let l = e.getAttribute("formaction") || d.getAttribute("action");
|
|
1224
|
-
if (t = l ? de(l, o) : null, r = e.getAttribute("formmethod") || d.getAttribute("method") || Le, a = Qe(e.getAttribute("formenctype")) || Qe(d.getAttribute("enctype")) || Pe, s = new FormData(d, e), !
|
|
1224
|
+
if (t = l ? de(l, o) : null, r = e.getAttribute("formmethod") || d.getAttribute("method") || Le, a = Qe(e.getAttribute("formenctype")) || Qe(d.getAttribute("enctype")) || Pe, s = new FormData(d, e), !Gr()) {
|
|
1225
1225
|
let { name: c, type: h, value: g } = e;
|
|
1226
1226
|
if (h === "image") {
|
|
1227
1227
|
let x = c ? `${c}.` : "";
|
|
@@ -1251,7 +1251,7 @@ function bn(e, o, r, t) {
|
|
|
1251
1251
|
) : e;
|
|
1252
1252
|
return r ? a.pathname.endsWith("/") ? a.pathname = `${a.pathname}_.${t}` : a.pathname = `${a.pathname}.${t}` : a.pathname === "/" ? a.pathname = `_root.${t}` : o && de(a.pathname, o) === "/" ? a.pathname = `${o.replace(/\/$/, "")}/_root.${t}` : a.pathname = `${a.pathname.replace(/\/$/, "")}.${t}`, a;
|
|
1253
1253
|
}
|
|
1254
|
-
async function
|
|
1254
|
+
async function Kr(e, o) {
|
|
1255
1255
|
if (e.id in o)
|
|
1256
1256
|
return o[e.id];
|
|
1257
1257
|
try {
|
|
@@ -1268,22 +1268,22 @@ async function Jr(e, o) {
|
|
|
1268
1268
|
});
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1271
|
+
function Yr(e) {
|
|
1272
1272
|
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
1273
1273
|
}
|
|
1274
|
-
async function
|
|
1274
|
+
async function Zr(e, o, r) {
|
|
1275
1275
|
let t = await Promise.all(
|
|
1276
1276
|
e.map(async (a) => {
|
|
1277
1277
|
let s = o.routes[a.route.id];
|
|
1278
1278
|
if (s) {
|
|
1279
|
-
let i = await
|
|
1279
|
+
let i = await Kr(s, r);
|
|
1280
1280
|
return i.links ? i.links() : [];
|
|
1281
1281
|
}
|
|
1282
1282
|
return [];
|
|
1283
1283
|
})
|
|
1284
1284
|
);
|
|
1285
|
-
return
|
|
1286
|
-
t.flat(1).filter(
|
|
1285
|
+
return ta(
|
|
1286
|
+
t.flat(1).filter(Yr).filter((a) => a.rel === "stylesheet" || a.rel === "preload").map(
|
|
1287
1287
|
(a) => a.rel === "stylesheet" ? { ...a, rel: "prefetch", as: "style" } : { ...a, rel: "prefetch" }
|
|
1288
1288
|
)
|
|
1289
1289
|
);
|
|
@@ -1320,8 +1320,8 @@ function Bt(e, o, r, t, a, s) {
|
|
|
1320
1320
|
return !0;
|
|
1321
1321
|
}) : [];
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1324
|
-
return
|
|
1323
|
+
function Xr(e, o, { includeHydrateFallback: r } = {}) {
|
|
1324
|
+
return Qr(
|
|
1325
1325
|
e.map((t) => {
|
|
1326
1326
|
let a = o.routes[t.route.id];
|
|
1327
1327
|
if (!a) return [];
|
|
@@ -1330,19 +1330,19 @@ function Zr(e, o, { includeHydrateFallback: r } = {}) {
|
|
|
1330
1330
|
}).flat(1)
|
|
1331
1331
|
);
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function Qr(e) {
|
|
1334
1334
|
return [...new Set(e)];
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1336
|
+
function ea(e) {
|
|
1337
1337
|
let o = {}, r = Object.keys(e).sort();
|
|
1338
1338
|
for (let t of r)
|
|
1339
1339
|
o[t] = e[t];
|
|
1340
1340
|
return o;
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function ta(e, o) {
|
|
1343
1343
|
let r = /* @__PURE__ */ new Set();
|
|
1344
1344
|
return new Set(o), e.reduce((t, a) => {
|
|
1345
|
-
let s = JSON.stringify(
|
|
1345
|
+
let s = JSON.stringify(ea(a));
|
|
1346
1346
|
return r.has(s) || (r.add(s), t.push({ key: s, link: a })), t;
|
|
1347
1347
|
}, []);
|
|
1348
1348
|
}
|
|
@@ -1353,7 +1353,7 @@ function wt() {
|
|
|
1353
1353
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
1354
1354
|
), e;
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function na() {
|
|
1357
1357
|
let e = m.useContext(je);
|
|
1358
1358
|
return bt(
|
|
1359
1359
|
e,
|
|
@@ -1369,7 +1369,7 @@ function Ct() {
|
|
|
1369
1369
|
"You must render this element inside a <HydratedRouter> element"
|
|
1370
1370
|
), e;
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function oa(e, o) {
|
|
1373
1373
|
let r = m.useContext(vt), [t, a] = m.useState(!1), [s, i] = m.useState(!1), { onFocus: d, onBlur: l, onMouseEnter: c, onMouseLeave: h, onTouchStart: g } = o, x = m.useRef(null);
|
|
1374
1374
|
m.useEffect(() => {
|
|
1375
1375
|
if (e === "render" && i(!0), e === "viewport") {
|
|
@@ -1414,18 +1414,18 @@ function fe(e, o) {
|
|
|
1414
1414
|
e && e(r), r.defaultPrevented || o(r);
|
|
1415
1415
|
};
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1418
|
-
let r =
|
|
1417
|
+
function ra({ page: e, ...o }) {
|
|
1418
|
+
let r = br(), { router: t } = wt(), a = m.useMemo(
|
|
1419
1419
|
() => on(t.routes, e, t.basename),
|
|
1420
1420
|
[t.routes, e, t.basename]
|
|
1421
1421
|
);
|
|
1422
|
-
return a ? r ? /* @__PURE__ */ m.createElement(
|
|
1422
|
+
return a ? r ? /* @__PURE__ */ m.createElement(sa, { page: e, matches: a, ...o }) : /* @__PURE__ */ m.createElement(ia, { page: e, matches: a, ...o }) : null;
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function aa(e) {
|
|
1425
1425
|
let { manifest: o, routeModules: r } = Ct(), [t, a] = m.useState([]);
|
|
1426
1426
|
return m.useEffect(() => {
|
|
1427
1427
|
let s = !1;
|
|
1428
|
-
return
|
|
1428
|
+
return Zr(e, o, r).then(
|
|
1429
1429
|
(i) => {
|
|
1430
1430
|
s || a(i);
|
|
1431
1431
|
}
|
|
@@ -1434,7 +1434,7 @@ function ra(e) {
|
|
|
1434
1434
|
};
|
|
1435
1435
|
}, [e, o, r]), t;
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1437
|
+
function sa({
|
|
1438
1438
|
page: e,
|
|
1439
1439
|
matches: o,
|
|
1440
1440
|
...r
|
|
@@ -1460,12 +1460,12 @@ function aa({
|
|
|
1460
1460
|
]);
|
|
1461
1461
|
return /* @__PURE__ */ m.createElement(m.Fragment, null, i.map((d) => /* @__PURE__ */ m.createElement("link", { key: d, rel: "prefetch", as: "fetch", href: d, ...r })));
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function ia({
|
|
1464
1464
|
page: e,
|
|
1465
1465
|
matches: o,
|
|
1466
1466
|
...r
|
|
1467
1467
|
}) {
|
|
1468
|
-
let t = re(), { future: a, manifest: s, routeModules: i } = Ct(), { basename: d } = wt(), { loaderData: l, matches: c } =
|
|
1468
|
+
let t = re(), { future: a, manifest: s, routeModules: i } = Ct(), { basename: d } = wt(), { loaderData: l, matches: c } = na(), h = m.useMemo(
|
|
1469
1469
|
() => Bt(
|
|
1470
1470
|
e,
|
|
1471
1471
|
o,
|
|
@@ -1515,9 +1515,9 @@ function sa({
|
|
|
1515
1515
|
e,
|
|
1516
1516
|
i
|
|
1517
1517
|
]), w = m.useMemo(
|
|
1518
|
-
() =>
|
|
1518
|
+
() => Xr(g, s),
|
|
1519
1519
|
[g, s]
|
|
1520
|
-
), b =
|
|
1520
|
+
), b = aa(g);
|
|
1521
1521
|
return /* @__PURE__ */ m.createElement(m.Fragment, null, x.map((C) => /* @__PURE__ */ m.createElement("link", { key: C, rel: "prefetch", as: "fetch", href: C, ...r })), w.map((C) => /* @__PURE__ */ m.createElement("link", { key: C, rel: "modulepreload", href: C, ...r })), b.map(({ key: C, link: p }) => (
|
|
1522
1522
|
// these don't spread `linkProps` because they are full link descriptors
|
|
1523
1523
|
// already with their own props
|
|
@@ -1532,16 +1532,16 @@ function sa({
|
|
|
1532
1532
|
)
|
|
1533
1533
|
)));
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function da(...e) {
|
|
1536
1536
|
return (o) => {
|
|
1537
1537
|
e.forEach((r) => {
|
|
1538
1538
|
typeof r == "function" ? r(o) : r != null && (r.current = o);
|
|
1539
1539
|
});
|
|
1540
1540
|
};
|
|
1541
1541
|
}
|
|
1542
|
-
var
|
|
1542
|
+
var la = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1543
1543
|
try {
|
|
1544
|
-
|
|
1544
|
+
la && (window.__reactRouterVersion = // @ts-expect-error
|
|
1545
1545
|
"7.14.0");
|
|
1546
1546
|
} catch {
|
|
1547
1547
|
}
|
|
@@ -1564,7 +1564,7 @@ var wn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = m.forwardRef(
|
|
|
1564
1564
|
}, C) {
|
|
1565
1565
|
let { basename: p, navigator: v, unstable_useTransitions: R } = m.useContext(q), S = typeof h == "string" && wn.test(h), P = ln(h, p);
|
|
1566
1566
|
h = P.to;
|
|
1567
|
-
let B =
|
|
1567
|
+
let B = Tr(h, { relative: a }), _ = re(), ae = null;
|
|
1568
1568
|
if (d) {
|
|
1569
1569
|
let se = gt(
|
|
1570
1570
|
d,
|
|
@@ -1574,10 +1574,10 @@ var wn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = m.forwardRef(
|
|
|
1574
1574
|
);
|
|
1575
1575
|
p !== "/" && (se.pathname = se.pathname === "/" ? p : J([p, se.pathname])), ae = v.createHref(se);
|
|
1576
1576
|
}
|
|
1577
|
-
let [ue, me, Ke] =
|
|
1577
|
+
let [ue, me, Ke] = oa(
|
|
1578
1578
|
t,
|
|
1579
1579
|
b
|
|
1580
|
-
), Nn =
|
|
1580
|
+
), Nn = ga(h, {
|
|
1581
1581
|
replace: i,
|
|
1582
1582
|
unstable_mask: d,
|
|
1583
1583
|
state: l,
|
|
@@ -1600,17 +1600,17 @@ var wn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = m.forwardRef(
|
|
|
1600
1600
|
...Ke,
|
|
1601
1601
|
href: (St ? ae : void 0) || P.absoluteURL || B,
|
|
1602
1602
|
onClick: St ? Ln : o,
|
|
1603
|
-
ref:
|
|
1603
|
+
ref: da(C, me),
|
|
1604
1604
|
target: c,
|
|
1605
1605
|
"data-discover": !S && r === "render" ? "true" : void 0
|
|
1606
1606
|
}
|
|
1607
1607
|
)
|
|
1608
1608
|
);
|
|
1609
|
-
return ue && !S ? /* @__PURE__ */ m.createElement(m.Fragment, null, yt, /* @__PURE__ */ m.createElement(
|
|
1609
|
+
return ue && !S ? /* @__PURE__ */ m.createElement(m.Fragment, null, yt, /* @__PURE__ */ m.createElement(ra, { page: B })) : yt;
|
|
1610
1610
|
}
|
|
1611
1611
|
);
|
|
1612
1612
|
vn.displayName = "Link";
|
|
1613
|
-
var
|
|
1613
|
+
var ca = m.forwardRef(
|
|
1614
1614
|
function({
|
|
1615
1615
|
"aria-current": o = "page",
|
|
1616
1616
|
caseSensitive: r = !1,
|
|
@@ -1624,7 +1624,7 @@ var la = m.forwardRef(
|
|
|
1624
1624
|
}, h) {
|
|
1625
1625
|
let g = Re(i, { relative: c.relative }), x = re(), w = m.useContext(je), { navigator: b, basename: C } = m.useContext(q), p = w != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1626
1626
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1627
|
-
|
|
1627
|
+
ba(g) && d === !0, v = b.encodeLocation ? b.encodeLocation(g).pathname : g.pathname, R = x.pathname, S = w && w.navigation && w.navigation.location ? w.navigation.location.pathname : null;
|
|
1628
1628
|
r || (R = R.toLowerCase(), S = S ? S.toLowerCase() : null, v = v.toLowerCase()), S && C && (S = de(S, C) || S);
|
|
1629
1629
|
const P = v !== "/" && v.endsWith("/") ? v.length - 1 : v.length;
|
|
1630
1630
|
let B = R === v || !a && R.startsWith(v) && R.charAt(P) === "/", _ = S != null && (S === v || !a && S.startsWith(v) && S.charAt(v.length) === "/"), ae = {
|
|
@@ -1654,8 +1654,8 @@ var la = m.forwardRef(
|
|
|
1654
1654
|
);
|
|
1655
1655
|
}
|
|
1656
1656
|
);
|
|
1657
|
-
|
|
1658
|
-
var
|
|
1657
|
+
ca.displayName = "NavLink";
|
|
1658
|
+
var ua = m.forwardRef(
|
|
1659
1659
|
({
|
|
1660
1660
|
discover: e = "render",
|
|
1661
1661
|
fetcherKey: o,
|
|
@@ -1672,7 +1672,7 @@ var ca = m.forwardRef(
|
|
|
1672
1672
|
unstable_defaultShouldRevalidate: x,
|
|
1673
1673
|
...w
|
|
1674
1674
|
}, b) => {
|
|
1675
|
-
let { unstable_useTransitions: C } = m.useContext(q), p =
|
|
1675
|
+
let { unstable_useTransitions: C } = m.useContext(q), p = fa(), v = xa(d, { relative: c }), R = i.toLowerCase() === "get" ? "get" : "post", S = typeof d == "string" && wn.test(d), P = (B) => {
|
|
1676
1676
|
if (l && l(B), B.defaultPrevented) return;
|
|
1677
1677
|
B.preventDefault();
|
|
1678
1678
|
let _ = B.nativeEvent.submitter, ae = _?.getAttribute("formmethod") || i, ue = () => p(_ || B.currentTarget, {
|
|
@@ -1701,15 +1701,15 @@ var ca = m.forwardRef(
|
|
|
1701
1701
|
);
|
|
1702
1702
|
}
|
|
1703
1703
|
);
|
|
1704
|
-
|
|
1705
|
-
function
|
|
1704
|
+
ua.displayName = "Form";
|
|
1705
|
+
function ha(e) {
|
|
1706
1706
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1707
1707
|
}
|
|
1708
1708
|
function Cn(e) {
|
|
1709
1709
|
let o = m.useContext(pe);
|
|
1710
|
-
return F(o,
|
|
1710
|
+
return F(o, ha(e)), o;
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1712
|
+
function ga(e, {
|
|
1713
1713
|
target: o,
|
|
1714
1714
|
replace: r,
|
|
1715
1715
|
unstable_mask: t,
|
|
@@ -1720,10 +1720,10 @@ function ha(e, {
|
|
|
1720
1720
|
unstable_defaultShouldRevalidate: l,
|
|
1721
1721
|
unstable_useTransitions: c
|
|
1722
1722
|
} = {}) {
|
|
1723
|
-
let h =
|
|
1723
|
+
let h = Nr(), g = re(), x = Re(e, { relative: i });
|
|
1724
1724
|
return m.useCallback(
|
|
1725
1725
|
(w) => {
|
|
1726
|
-
if (
|
|
1726
|
+
if (Ur(w, o)) {
|
|
1727
1727
|
w.preventDefault();
|
|
1728
1728
|
let b = r !== void 0 ? r : We(g) === We(x), C = () => h(e, {
|
|
1729
1729
|
replace: b,
|
|
@@ -1754,20 +1754,20 @@ function ha(e, {
|
|
|
1754
1754
|
]
|
|
1755
1755
|
);
|
|
1756
1756
|
}
|
|
1757
|
-
var
|
|
1758
|
-
function
|
|
1757
|
+
var pa = 0, ma = () => `__${String(++pa)}__`;
|
|
1758
|
+
function fa() {
|
|
1759
1759
|
let { router: e } = Cn(
|
|
1760
1760
|
"useSubmit"
|
|
1761
1761
|
/* UseSubmit */
|
|
1762
|
-
), { basename: o } = m.useContext(q), r =
|
|
1762
|
+
), { basename: o } = m.useContext(q), r = Fr(), t = e.fetch, a = e.navigate;
|
|
1763
1763
|
return m.useCallback(
|
|
1764
1764
|
async (s, i = {}) => {
|
|
1765
|
-
let { action: d, method: l, encType: c, formData: h, body: g } =
|
|
1765
|
+
let { action: d, method: l, encType: c, formData: h, body: g } = Jr(
|
|
1766
1766
|
s,
|
|
1767
1767
|
o
|
|
1768
1768
|
);
|
|
1769
1769
|
if (i.navigate === !1) {
|
|
1770
|
-
let x = i.fetcherKey ||
|
|
1770
|
+
let x = i.fetcherKey || ma();
|
|
1771
1771
|
await t(x, r, i.action || d, {
|
|
1772
1772
|
unstable_defaultShouldRevalidate: i.unstable_defaultShouldRevalidate,
|
|
1773
1773
|
preventScrollReset: i.preventScrollReset,
|
|
@@ -1795,7 +1795,7 @@ function ma() {
|
|
|
1795
1795
|
[t, a, o, r]
|
|
1796
1796
|
);
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function xa(e, { relative: o } = {}) {
|
|
1799
1799
|
let { basename: r } = m.useContext(q), t = m.useContext(oe);
|
|
1800
1800
|
F(t, "useFormAction must be used inside a RouteContext");
|
|
1801
1801
|
let [a] = t.matches.slice(-1), s = { ...Re(e || ".", { relative: o }) }, i = re();
|
|
@@ -1810,7 +1810,7 @@ function fa(e, { relative: o } = {}) {
|
|
|
1810
1810
|
}
|
|
1811
1811
|
return (!e || e === ".") && a.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (s.pathname = s.pathname === "/" ? r : J([r, s.pathname])), We(s);
|
|
1812
1812
|
}
|
|
1813
|
-
function
|
|
1813
|
+
function ba(e, { relative: o } = {}) {
|
|
1814
1814
|
let r = m.useContext(hn);
|
|
1815
1815
|
F(
|
|
1816
1816
|
r != null,
|
|
@@ -1825,7 +1825,7 @@ function xa(e, { relative: o } = {}) {
|
|
|
1825
1825
|
let s = de(r.currentLocation.pathname, t) || r.currentLocation.pathname, i = de(r.nextLocation.pathname, t) || r.nextLocation.pathname;
|
|
1826
1826
|
return Ee(a.pathname, i) != null || Ee(a.pathname, s) != null;
|
|
1827
1827
|
}
|
|
1828
|
-
const
|
|
1828
|
+
const wa = ({ readonlyTo: e }) => {
|
|
1829
1829
|
const { nodeProps: o, setNodeProps: r } = Ve(), t = e ?? o.anchor?.to, a = (() => {
|
|
1830
1830
|
if (!ee(t))
|
|
1831
1831
|
return xe(t) ? t : We(t);
|
|
@@ -1855,7 +1855,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
1857
|
) });
|
|
1858
|
-
},
|
|
1858
|
+
}, va = () => {
|
|
1859
1859
|
const { nodeProps: e, setNodeResponsiveProps: o } = Ve(), { getResponsiveProp: r, currentScreen: t } = k(), a = [
|
|
1860
1860
|
{
|
|
1861
1861
|
label: "Small",
|
|
@@ -1886,7 +1886,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
1886
1886
|
onChange: s
|
|
1887
1887
|
}
|
|
1888
1888
|
) });
|
|
1889
|
-
},
|
|
1889
|
+
}, Ca = [
|
|
1890
1890
|
{
|
|
1891
1891
|
value: "contained",
|
|
1892
1892
|
label: "Contained"
|
|
@@ -1899,13 +1899,13 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
1899
1899
|
value: "text",
|
|
1900
1900
|
label: "Text"
|
|
1901
1901
|
}
|
|
1902
|
-
],
|
|
1902
|
+
], Ra = () => {
|
|
1903
1903
|
const { nodeProps: e, setNodeProps: o } = Ve(), r = (t) => {
|
|
1904
1904
|
o({
|
|
1905
1905
|
variant: t.currentTarget.value
|
|
1906
1906
|
});
|
|
1907
1907
|
};
|
|
1908
|
-
return /* @__PURE__ */ n(L, { name: "Variant", children: /* @__PURE__ */ n("div", { className: "tw:flex tw:items-center tw:gap-2", children:
|
|
1908
|
+
return /* @__PURE__ */ n(L, { name: "Variant", children: /* @__PURE__ */ n("div", { className: "tw:flex tw:items-center tw:gap-2", children: Ca.map((t) => {
|
|
1909
1909
|
const a = e?.variant === t.value;
|
|
1910
1910
|
return /* @__PURE__ */ n(
|
|
1911
1911
|
"button",
|
|
@@ -1932,7 +1932,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
1932
1932
|
t.value
|
|
1933
1933
|
);
|
|
1934
1934
|
}) }) });
|
|
1935
|
-
},
|
|
1935
|
+
}, Us = ({ readonlyTo: e }) => {
|
|
1936
1936
|
const { nodeProps: o, setNodeProps: r } = Ve(), { currentScreen: t, getResponsiveProp: a } = k(), s = (h, g = t) => {
|
|
1937
1937
|
r({
|
|
1938
1938
|
sx: I(h, g)
|
|
@@ -1972,22 +1972,22 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
) }) }),
|
|
1974
1974
|
/* @__PURE__ */ u(f, { name: "Color & Variant", children: [
|
|
1975
|
-
/* @__PURE__ */ n(
|
|
1976
|
-
/* @__PURE__ */ n(
|
|
1975
|
+
/* @__PURE__ */ n(co, { value: o.color, onChange: d }),
|
|
1976
|
+
/* @__PURE__ */ n(Ra, {})
|
|
1977
1977
|
] }),
|
|
1978
1978
|
/* @__PURE__ */ u(f, { name: "Size", children: [
|
|
1979
|
-
/* @__PURE__ */ n(
|
|
1979
|
+
/* @__PURE__ */ n(va, {}),
|
|
1980
1980
|
/* @__PURE__ */ n(H, { onChange: s, value: i })
|
|
1981
1981
|
] }),
|
|
1982
1982
|
/* @__PURE__ */ u(f, { name: "Link", children: [
|
|
1983
|
-
/* @__PURE__ */ n(
|
|
1983
|
+
/* @__PURE__ */ n(wa, { readonlyTo: e }),
|
|
1984
1984
|
/* @__PURE__ */ n(Gt, { value: o.anchor?.target, onChange: l })
|
|
1985
1985
|
] })
|
|
1986
1986
|
] }),
|
|
1987
1987
|
/* @__PURE__ */ u(N, { children: [
|
|
1988
1988
|
/* @__PURE__ */ n(f, { name: "Display on", children: /* @__PURE__ */ n(Y, {}) }),
|
|
1989
1989
|
/* @__PURE__ */ n(f, { name: "Spacing", children: /* @__PURE__ */ n(
|
|
1990
|
-
|
|
1990
|
+
uo,
|
|
1991
1991
|
{
|
|
1992
1992
|
value: {
|
|
1993
1993
|
marginTop: a(o.sx ?? {}, "marginTop"),
|
|
@@ -2002,25 +2002,25 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2002
2002
|
] })
|
|
2003
2003
|
] });
|
|
2004
2004
|
}, Rn = () => E({
|
|
2005
|
-
transform:
|
|
2006
|
-
}),
|
|
2005
|
+
transform: So
|
|
2006
|
+
}), Sa = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2007
2007
|
<path d="M19.9 13.5H4.1C2.6 13.5 2 14.14 2 15.73V19.77C2 21.36 2.6 22 4.1 22H19.9C21.4 22 22 21.36 22 19.77V15.73C22 14.14 21.4 13.5 19.9 13.5Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2008
2008
|
<path d="M19.9 2H4.1C2.6 2 2 2.64 2 4.23V8.27C2 9.86 2.6 10.5 4.1 10.5H19.9C21.4 10.5 22 9.86 22 8.27V4.23C22 2.64 21.4 2 19.9 2Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2009
|
-
</svg>`,
|
|
2009
|
+
</svg>`, ya = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2010
2010
|
<path d="M10.5 19.9V4.1C10.5 2.6 9.86 2 8.27 2H4.23C2.64 2 2 2.6 2 4.1V19.9C2 21.4 2.64 22 4.23 22H8.27C9.86 22 10.5 21.4 10.5 19.9Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2011
2011
|
<path d="M22 19.9V4.1C22 2.6 21.36 2 19.77 2H15.73C14.14 2 13.5 2.6 13.5 4.1V19.9C13.5 21.4 14.14 22 15.73 22H19.77C21.36 22 22 21.4 22 19.9Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2012
|
-
</svg>`,
|
|
2012
|
+
</svg>`, Ta = [
|
|
2013
2013
|
{
|
|
2014
2014
|
value: "row",
|
|
2015
|
-
icon:
|
|
2015
|
+
icon: ya,
|
|
2016
2016
|
label: "Row"
|
|
2017
2017
|
},
|
|
2018
2018
|
{
|
|
2019
2019
|
value: "column",
|
|
2020
|
-
icon:
|
|
2020
|
+
icon: Sa,
|
|
2021
2021
|
label: "Column"
|
|
2022
2022
|
}
|
|
2023
|
-
],
|
|
2023
|
+
], Na = () => {
|
|
2024
2024
|
const { nodeProps: e, setNodeProps: o } = Rn(), { currentScreen: r, getResponsiveProp: t } = k(), a = t(e.sx ?? {}, "flexDirection");
|
|
2025
2025
|
return /* @__PURE__ */ n(L, { responsive: !0, name: "Direction", children: /* @__PURE__ */ n(_e, { value: a, onSelectionChange: (i) => {
|
|
2026
2026
|
o({
|
|
@@ -2033,7 +2033,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2033
2033
|
r
|
|
2034
2034
|
)
|
|
2035
2035
|
});
|
|
2036
|
-
}, children:
|
|
2036
|
+
}, children: Ta.map((i) => /* @__PURE__ */ n(
|
|
2037
2037
|
G,
|
|
2038
2038
|
{
|
|
2039
2039
|
tooltip: {
|
|
@@ -2045,7 +2045,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2045
2045
|
},
|
|
2046
2046
|
i.value
|
|
2047
2047
|
)) }) });
|
|
2048
|
-
},
|
|
2048
|
+
}, Gs = () => {
|
|
2049
2049
|
const { nodeProps: e, setNodeProps: o } = Rn(), { currentScreen: r, getResponsiveProp: t } = k(), a = (v, R = r) => {
|
|
2050
2050
|
o({ sx: I(v, R) });
|
|
2051
2051
|
}, s = {
|
|
@@ -2099,7 +2099,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2099
2099
|
/* @__PURE__ */ u(N, { children: [
|
|
2100
2100
|
/* @__PURE__ */ n(f, { name: "Flex items", children: /* @__PURE__ */ n(ve, { getNewNodeElement: l }) }),
|
|
2101
2101
|
/* @__PURE__ */ u(f, { name: "Layout", children: [
|
|
2102
|
-
/* @__PURE__ */ n(
|
|
2102
|
+
/* @__PURE__ */ n(Na, {}),
|
|
2103
2103
|
/* @__PURE__ */ n(
|
|
2104
2104
|
Jt,
|
|
2105
2105
|
{
|
|
@@ -2113,7 +2113,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2113
2113
|
/* @__PURE__ */ n(at, { value: h, onChange: a }),
|
|
2114
2114
|
/* @__PURE__ */ n(Kt, { flexDirection: b, value: x, onChange: a }),
|
|
2115
2115
|
/* @__PURE__ */ n(
|
|
2116
|
-
|
|
2116
|
+
ho,
|
|
2117
2117
|
{
|
|
2118
2118
|
onChange: a,
|
|
2119
2119
|
value: C,
|
|
@@ -2148,8 +2148,8 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2148
2148
|
] })
|
|
2149
2149
|
] });
|
|
2150
2150
|
}, Rt = () => E({
|
|
2151
|
-
transform:
|
|
2152
|
-
}),
|
|
2151
|
+
transform: yo
|
|
2152
|
+
}), La = () => {
|
|
2153
2153
|
const { nodeProps: e, setNodeProps: o } = Rt(), { getResponsiveProp: r, currentScreen: t } = k(), a = r(e.sx ?? {}, "flexGrow");
|
|
2154
2154
|
return /* @__PURE__ */ n(L, { guide: "Automatically expands to fill the available space in a flex container.", name: "Auto grow", children: /* @__PURE__ */ n(le, { onChange: (i) => {
|
|
2155
2155
|
o({
|
|
@@ -2161,7 +2161,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2161
2161
|
)
|
|
2162
2162
|
});
|
|
2163
2163
|
}, checked: !ee(a) }) });
|
|
2164
|
-
},
|
|
2164
|
+
}, Pa = () => {
|
|
2165
2165
|
const { nodeProps: e, setNodeProps: o } = Rt(), { getResponsiveProp: r, currentScreen: t } = k(), a = r(e.sx ?? {}, "flexShrink");
|
|
2166
2166
|
return /* @__PURE__ */ n(L, { guide: "Automatically shrinks when there isn’t enough space in the flex container.", name: "Auto shrink", children: /* @__PURE__ */ n(le, { onChange: (i) => {
|
|
2167
2167
|
o({
|
|
@@ -2173,7 +2173,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2173
2173
|
)
|
|
2174
2174
|
});
|
|
2175
2175
|
}, checked: a !== 0 }) });
|
|
2176
|
-
},
|
|
2176
|
+
}, qs = () => {
|
|
2177
2177
|
const { nodeProps: e, setNodeProps: o } = Rt(), { currentScreen: r, getResponsiveProp: t } = k(), a = (g, x = r) => {
|
|
2178
2178
|
o({ sx: I(g, x) });
|
|
2179
2179
|
}, s = {
|
|
@@ -2217,8 +2217,8 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2217
2217
|
] }),
|
|
2218
2218
|
/* @__PURE__ */ u(O, { className: "tw:px-2", children: [
|
|
2219
2219
|
/* @__PURE__ */ n(N, { children: /* @__PURE__ */ u(f, { name: "Layout", children: [
|
|
2220
|
+
/* @__PURE__ */ n(Pa, {}),
|
|
2220
2221
|
/* @__PURE__ */ n(La, {}),
|
|
2221
|
-
/* @__PURE__ */ n(Na, {}),
|
|
2222
2222
|
/* @__PURE__ */ n(
|
|
2223
2223
|
H,
|
|
2224
2224
|
{
|
|
@@ -2338,7 +2338,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2338
2338
|
)
|
|
2339
2339
|
] }),
|
|
2340
2340
|
/* @__PURE__ */ n(f, { name: "Size", children: /* @__PURE__ */ n(H, { value: g, onChange: i }) }),
|
|
2341
|
-
e.length > 0 && /* @__PURE__ */ n(f, { name: "SEO", children: /* @__PURE__ */ n(
|
|
2341
|
+
e.length > 0 && /* @__PURE__ */ n(f, { name: "SEO", children: /* @__PURE__ */ n(go, { onChange: v, value: p, availableTags: e }) })
|
|
2342
2342
|
] }),
|
|
2343
2343
|
/* @__PURE__ */ u(N, { children: [
|
|
2344
2344
|
/* @__PURE__ */ n(f, { name: "Display on", children: /* @__PURE__ */ n(Y, {}) }),
|
|
@@ -2346,7 +2346,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2346
2346
|
] })
|
|
2347
2347
|
] })
|
|
2348
2348
|
] });
|
|
2349
|
-
},
|
|
2349
|
+
}, Js = () => /* @__PURE__ */ n(Sn, {}), Ks = () => {
|
|
2350
2350
|
const { id: e } = Q(), { actions: o, query: r } = ne(), [t, a] = U(!1), {
|
|
2351
2351
|
dom: s,
|
|
2352
2352
|
name: i,
|
|
@@ -2358,7 +2358,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2358
2358
|
} = Q((p) => {
|
|
2359
2359
|
let v = p.data.parent ? r.node(p.data.parent).get() : null;
|
|
2360
2360
|
for (; v && !Nt(v); )
|
|
2361
|
-
v = v.data.parent && v.data.parent !==
|
|
2361
|
+
v = v.data.parent && v.data.parent !== Yn ? r.node(v.data.parent).get() : null;
|
|
2362
2362
|
return {
|
|
2363
2363
|
dom: p.dom,
|
|
2364
2364
|
name: rt(p),
|
|
@@ -2368,11 +2368,11 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2368
2368
|
parentNode: p.data.parent,
|
|
2369
2369
|
selectable: Nt(p)
|
|
2370
2370
|
};
|
|
2371
|
-
}), { floatingStyles: x, refs: w } =
|
|
2371
|
+
}), { floatingStyles: x, refs: w } = Oo({
|
|
2372
2372
|
open: !0,
|
|
2373
2373
|
placement: "bottom-start",
|
|
2374
|
-
middleware: [
|
|
2375
|
-
whileElementsMounted:
|
|
2374
|
+
middleware: [Mo(), zo(4)],
|
|
2375
|
+
whileElementsMounted: Fo
|
|
2376
2376
|
}), b = (p) => {
|
|
2377
2377
|
const v = p.currentTarget.getAttribute("value");
|
|
2378
2378
|
!ee(v) && o.selectNode(v);
|
|
@@ -2383,7 +2383,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2383
2383
|
const C = () => {
|
|
2384
2384
|
o.delete(e);
|
|
2385
2385
|
};
|
|
2386
|
-
return /* @__PURE__ */ n(Vt, { children: g && w.reference.current && /* @__PURE__ */ n(
|
|
2386
|
+
return /* @__PURE__ */ n(Vt, { children: g && w.reference.current && /* @__PURE__ */ n($o, { root: document.body, children: /* @__PURE__ */ n("div", { ref: w.setFloating, style: x, children: /* @__PURE__ */ u(
|
|
2387
2387
|
"div",
|
|
2388
2388
|
{
|
|
2389
2389
|
className: j(
|
|
@@ -2401,8 +2401,8 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2401
2401
|
children: /* @__PURE__ */ n(W, { size: 16, source: it })
|
|
2402
2402
|
}
|
|
2403
2403
|
),
|
|
2404
|
-
/* @__PURE__ */ u(
|
|
2405
|
-
/* @__PURE__ */ n(
|
|
2404
|
+
/* @__PURE__ */ u(_o, { offset: 8, onOpenChange: a, open: t, children: [
|
|
2405
|
+
/* @__PURE__ */ n(no, { children: /* @__PURE__ */ n(
|
|
2406
2406
|
K,
|
|
2407
2407
|
{
|
|
2408
2408
|
suffix: /* @__PURE__ */ n(
|
|
@@ -2421,16 +2421,16 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2421
2421
|
children: i
|
|
2422
2422
|
}
|
|
2423
2423
|
) }),
|
|
2424
|
-
!!h && /* @__PURE__ */ n(
|
|
2424
|
+
!!h && /* @__PURE__ */ n(oo, { children: /* @__PURE__ */ n(ro, { onClick: b, value: h.id, children: rt(h) }) })
|
|
2425
2425
|
] }),
|
|
2426
2426
|
l && /* @__PURE__ */ n(G, { onClick: C, className: "tw:cursor-grab", size: "20", children: /* @__PURE__ */ n(W, { size: 16, source: dt }) })
|
|
2427
2427
|
]
|
|
2428
2428
|
}
|
|
2429
2429
|
) }) }) });
|
|
2430
|
-
},
|
|
2430
|
+
}, Ys = () => {
|
|
2431
2431
|
const { dom: e } = Q((a) => ({
|
|
2432
2432
|
dom: a.dom
|
|
2433
|
-
})), { window: o } =
|
|
2433
|
+
})), { window: o } = Ho(), [r, t] = U(null);
|
|
2434
2434
|
return we(() => {
|
|
2435
2435
|
if (!e || !o) return;
|
|
2436
2436
|
let a = null, s = !1;
|
|
@@ -2462,12 +2462,12 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2462
2462
|
className: "tw:outline-1 tw:outline-dashed tw:outline-ic-ink-6s tw:-outline-offset-1"
|
|
2463
2463
|
}
|
|
2464
2464
|
) : null;
|
|
2465
|
-
},
|
|
2466
|
-
transform:
|
|
2467
|
-
}),
|
|
2465
|
+
}, Zs = () => /* @__PURE__ */ n(Sn, { availableTags: ["h1", "h2", "h3", "h4", "h5", "h6", "div"] }), Se = () => E({
|
|
2466
|
+
transform: To
|
|
2467
|
+
}), ka = () => {
|
|
2468
2468
|
const { nodeProps: e, setNodeProps: o } = Se();
|
|
2469
2469
|
return /* @__PURE__ */ n(L, { direction: "vertical", name: "Alt text", children: /* @__PURE__ */ n(
|
|
2470
|
-
|
|
2470
|
+
ao,
|
|
2471
2471
|
{
|
|
2472
2472
|
onBlur: (a) => {
|
|
2473
2473
|
o({
|
|
@@ -2484,7 +2484,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2484
2484
|
value: e.alt ?? ""
|
|
2485
2485
|
}
|
|
2486
2486
|
) });
|
|
2487
|
-
},
|
|
2487
|
+
}, Ba = () => {
|
|
2488
2488
|
const { nodeProps: e, setNodeProps: o } = Se(), r = (t) => {
|
|
2489
2489
|
o({
|
|
2490
2490
|
loading: t.target.checked ? "eager" : "lazy"
|
|
@@ -2493,7 +2493,7 @@ const ba = ({ readonlyTo: e }) => {
|
|
|
2493
2493
|
return /* @__PURE__ */ n(L, { name: "Preload", children: /* @__PURE__ */ n(le, { checked: e.loading === "eager", onChange: r }) });
|
|
2494
2494
|
};
|
|
2495
2495
|
var yn = /* @__PURE__ */ ((e) => (e.Auto = "auto", e.Square = "1 / 1", e.Widescreen = "16 / 9", e.Portrait = "9 / 16", e.Custom = "custom", e))(yn || {});
|
|
2496
|
-
const
|
|
2496
|
+
const Ia = [
|
|
2497
2497
|
{
|
|
2498
2498
|
value: "auto",
|
|
2499
2499
|
label: "Original"
|
|
@@ -2514,11 +2514,11 @@ const Ba = [
|
|
|
2514
2514
|
value: "custom",
|
|
2515
2515
|
label: "Custom"
|
|
2516
2516
|
}
|
|
2517
|
-
],
|
|
2517
|
+
], Wa = ({ label: e }) => e, Ea = ({ label: e, value: o }) => [
|
|
2518
2518
|
"auto",
|
|
2519
2519
|
"custom"
|
|
2520
2520
|
/* Custom */
|
|
2521
|
-
].includes(o) ? e : `${e} (${o})`,
|
|
2521
|
+
].includes(o) ? e : `${e} (${o})`, Aa = () => {
|
|
2522
2522
|
const { nodeProps: e, setNodeProps: o } = Se(), { currentScreen: r, getResponsiveProp: t } = k(), [a, s] = U(null), i = t(e.sx ?? {}, "aspectRatio") ?? "auto", d = Object.values(yn).find((p) => p === i) ?? "custom", l = (p) => {
|
|
2523
2523
|
p.target.select();
|
|
2524
2524
|
}, c = (p = "auto") => {
|
|
@@ -2548,9 +2548,9 @@ const Ba = [
|
|
|
2548
2548
|
{
|
|
2549
2549
|
value: g,
|
|
2550
2550
|
onChange: h,
|
|
2551
|
-
optionLabel:
|
|
2552
|
-
selectedRenderer:
|
|
2553
|
-
options:
|
|
2551
|
+
optionLabel: Ea,
|
|
2552
|
+
selectedRenderer: Wa,
|
|
2553
|
+
options: Ia,
|
|
2554
2554
|
className: "tw:w-1/2"
|
|
2555
2555
|
}
|
|
2556
2556
|
) }),
|
|
@@ -2590,17 +2590,17 @@ const Ba = [
|
|
|
2590
2590
|
)
|
|
2591
2591
|
] }) })
|
|
2592
2592
|
] });
|
|
2593
|
-
},
|
|
2593
|
+
}, Da = () => {
|
|
2594
2594
|
const { nodeProps: e, setNodeProps: o } = Se();
|
|
2595
2595
|
return /* @__PURE__ */ u("div", { className: "tw:flex tw:flex-col tw:gap-2", children: [
|
|
2596
2596
|
/* @__PURE__ */ n(L, { name: "Choose image" }),
|
|
2597
|
-
/* @__PURE__ */ n(
|
|
2597
|
+
/* @__PURE__ */ n(po, { onChange: (t) => {
|
|
2598
2598
|
o({
|
|
2599
2599
|
src: t
|
|
2600
2600
|
});
|
|
2601
2601
|
}, source: e.src })
|
|
2602
2602
|
] });
|
|
2603
|
-
},
|
|
2603
|
+
}, Xs = () => {
|
|
2604
2604
|
const { currentScreen: e, getResponsiveProp: o } = k(), { readOnly: r } = Q((b) => ({
|
|
2605
2605
|
readOnly: b.dom?.getAttribute("aria-readonly") === X.True
|
|
2606
2606
|
})), { nodeProps: t, setNodeProps: a } = Se(), s = o(t.sx ?? {}, "aspectRatio") ?? "auto", i = (b, C = e) => {
|
|
@@ -2648,16 +2648,16 @@ const Ba = [
|
|
|
2648
2648
|
/* @__PURE__ */ u(O, { className: "tw:px-2", children: [
|
|
2649
2649
|
/* @__PURE__ */ u(N, { children: [
|
|
2650
2650
|
/* @__PURE__ */ u(f, { name: "Image", children: [
|
|
2651
|
-
!r && /* @__PURE__ */ n(
|
|
2652
|
-
/* @__PURE__ */ n(
|
|
2651
|
+
!r && /* @__PURE__ */ n(Da, {}),
|
|
2652
|
+
/* @__PURE__ */ n(Ba, {})
|
|
2653
2653
|
] }),
|
|
2654
2654
|
/* @__PURE__ */ u(f, { name: "Size", children: [
|
|
2655
|
-
/* @__PURE__ */ n(
|
|
2655
|
+
/* @__PURE__ */ n(Aa, {}),
|
|
2656
2656
|
/* @__PURE__ */ n(H, { value: d, onChange: i }),
|
|
2657
2657
|
s === "auto" && /* @__PURE__ */ n(ce, { value: l, onChange: i }),
|
|
2658
|
-
/* @__PURE__ */ n(
|
|
2658
|
+
/* @__PURE__ */ n(mo, { value: c, onChange: h })
|
|
2659
2659
|
] }),
|
|
2660
|
-
/* @__PURE__ */ n(f, { name: "SEO", children: /* @__PURE__ */ n(
|
|
2660
|
+
/* @__PURE__ */ n(f, { name: "SEO", children: /* @__PURE__ */ n(ka, {}) })
|
|
2661
2661
|
] }),
|
|
2662
2662
|
/* @__PURE__ */ u(N, { children: [
|
|
2663
2663
|
/* @__PURE__ */ n(f, { name: "Spacing (px)", children: /* @__PURE__ */ n(M, { value: g, onChange: i }) }),
|
|
@@ -2668,9 +2668,9 @@ const Ba = [
|
|
|
2668
2668
|
] })
|
|
2669
2669
|
] })
|
|
2670
2670
|
] });
|
|
2671
|
-
},
|
|
2672
|
-
transform:
|
|
2673
|
-
}),
|
|
2671
|
+
}, Oa = () => E({
|
|
2672
|
+
transform: No
|
|
2673
|
+
}), Fa = () => {
|
|
2674
2674
|
const { nodeDOM: e } = Q((s) => ({
|
|
2675
2675
|
nodeDOM: s.dom
|
|
2676
2676
|
})), o = (s) => s?.getAttribute(Ye.PlayState) || "on", [r, t] = U(!1), a = () => {
|
|
@@ -2691,11 +2691,11 @@ const Ba = [
|
|
|
2691
2691
|
s.disconnect();
|
|
2692
2692
|
};
|
|
2693
2693
|
}, [e]), /* @__PURE__ */ n(K, { onClick: a, children: r ? "Pause" : "Play" });
|
|
2694
|
-
},
|
|
2694
|
+
}, Ma = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2695
2695
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.73122 20.833C7.22415 21.0977 6.6107 21.0511 6.14944 20.7129C5.68817 20.3746 5.45931 19.8035 5.55932 19.2404L6.36865 14.6014L2.96123 11.3361C2.54474 10.9389 2.39209 10.3385 2.56833 9.79059C2.74456 9.24271 3.21862 8.84388 3.78858 8.764L8.51955 8.08772L10.6554 3.82694C10.9087 3.31595 11.4297 2.99268 12 2.99268C12.5703 2.99268 13.0913 3.31595 13.3446 3.82694L15.4804 8.08772L20.2114 8.764C20.7814 8.84388 21.2554 9.24271 21.4317 9.79059C21.6079 10.3385 21.4553 10.9389 21.0388 11.3361L17.6313 14.6014L18.4407 19.2414C18.5407 19.8045 18.3118 20.3756 17.8506 20.7139C17.3893 21.0521 16.7758 21.0987 16.2688 20.834L12 18.6281L7.73122 20.833Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2696
2696
|
</svg>
|
|
2697
|
-
`,
|
|
2698
|
-
const { nodeProps: e, setNodeProps: o, setNodeResponsiveProps: r } =
|
|
2697
|
+
`, Qs = () => {
|
|
2698
|
+
const { nodeProps: e, setNodeProps: o, setNodeResponsiveProps: r } = Oa(), { currentScreen: t, getResponsiveProp: a } = k(), s = (p, v = t) => {
|
|
2699
2699
|
o({ sx: I(p, v) });
|
|
2700
2700
|
};
|
|
2701
2701
|
a(e.sx ?? {}, "columnGap");
|
|
@@ -2740,7 +2740,7 @@ const Ba = [
|
|
|
2740
2740
|
), g = (p) => {
|
|
2741
2741
|
o({
|
|
2742
2742
|
separatorIcon: p.target.checked ? {
|
|
2743
|
-
source:
|
|
2743
|
+
source: Ma
|
|
2744
2744
|
} : void 0
|
|
2745
2745
|
});
|
|
2746
2746
|
}, x = (p) => {
|
|
@@ -2787,7 +2787,7 @@ const Ba = [
|
|
|
2787
2787
|
onChange: C
|
|
2788
2788
|
}
|
|
2789
2789
|
),
|
|
2790
|
-
/* @__PURE__ */ n(
|
|
2790
|
+
/* @__PURE__ */ n(Fa, {})
|
|
2791
2791
|
] }),
|
|
2792
2792
|
/* @__PURE__ */ n(
|
|
2793
2793
|
f,
|
|
@@ -2837,10 +2837,10 @@ const Ba = [
|
|
|
2837
2837
|
] })
|
|
2838
2838
|
] });
|
|
2839
2839
|
}, Tn = (e) => E({
|
|
2840
|
-
transform:
|
|
2840
|
+
transform: Lo,
|
|
2841
2841
|
nodeId: e
|
|
2842
|
-
}),
|
|
2843
|
-
const [r, t] = U(!1), [a, s] = Xt(e === 0), { nodeProps: i, setNodeProps: d } =
|
|
2842
|
+
}), za = ({ tabIndex: e, tabNodeId: o }) => {
|
|
2843
|
+
const [r, t] = U(!1), [a, s] = Xt(e === 0), { nodeProps: i, setNodeProps: d } = Ha(o), { actions: l, query: c } = ne(), { tabNode: h, tabPanelNode: g } = Q((p) => {
|
|
2844
2844
|
const v = p.data.nodes.find(
|
|
2845
2845
|
(B) => he(c.node(B).get()) === y.TabList
|
|
2846
2846
|
);
|
|
@@ -2920,7 +2920,7 @@ const Ba = [
|
|
|
2920
2920
|
]
|
|
2921
2921
|
}
|
|
2922
2922
|
) });
|
|
2923
|
-
},
|
|
2923
|
+
}, $a = () => {
|
|
2924
2924
|
const { query: e, actions: o } = ne(), { id: r, tabListNode: t, tabContentNode: a } = Q((d) => {
|
|
2925
2925
|
const l = d.data.nodes.find(
|
|
2926
2926
|
(h) => he(e.node(h).get()) === y.TabList
|
|
@@ -2952,7 +2952,7 @@ const Ba = [
|
|
|
2952
2952
|
destinationIndex: c.index
|
|
2953
2953
|
}));
|
|
2954
2954
|
}, children: /* @__PURE__ */ n(en, { droppableId: r, children: (d) => /* @__PURE__ */ u("div", { ref: d.innerRef, ...d.droppableProps, className: "tw:flex tw:flex-col tw:gap-2", children: [
|
|
2955
|
-
t.data.nodes.map((l, c) => /* @__PURE__ */ n(
|
|
2955
|
+
t.data.nodes.map((l, c) => /* @__PURE__ */ n(za, { tabNodeId: l, tabIndex: c }, l)),
|
|
2956
2956
|
d.placeholder
|
|
2957
2957
|
] }) }) }),
|
|
2958
2958
|
/* @__PURE__ */ n(K, { className: "tw:mt-2", onClick: () => {
|
|
@@ -2973,7 +2973,7 @@ const Ba = [
|
|
|
2973
2973
|
o.addNodeTree(l, a.id);
|
|
2974
2974
|
}, fullWidth: !0, prefix: /* @__PURE__ */ n(W, { source: jt }), children: "Add more" })
|
|
2975
2975
|
] });
|
|
2976
|
-
},
|
|
2976
|
+
}, _a = () => {
|
|
2977
2977
|
const { query: e } = ne(), { nodeProps: o, setNodeProps: r } = Tn(), { selectOptions: t } = Q((s) => {
|
|
2978
2978
|
const i = s.data.nodes.find(
|
|
2979
2979
|
(l) => he(e.node(l).get()) === y.TabList
|
|
@@ -3000,7 +3000,7 @@ const Ba = [
|
|
|
3000
3000
|
onChange: a
|
|
3001
3001
|
}
|
|
3002
3002
|
) });
|
|
3003
|
-
},
|
|
3003
|
+
}, ei = () => {
|
|
3004
3004
|
const { nodeProps: e, setNodeProps: o } = Tn(), { currentScreen: r, getResponsiveProp: t } = k(), a = (h, g = r) => {
|
|
3005
3005
|
o({ sx: I(h, g) });
|
|
3006
3006
|
}, s = {
|
|
@@ -3043,8 +3043,8 @@ const Ba = [
|
|
|
3043
3043
|
/* @__PURE__ */ u(O, { className: "tw:px-2", children: [
|
|
3044
3044
|
/* @__PURE__ */ u(N, { children: [
|
|
3045
3045
|
/* @__PURE__ */ u(f, { name: "Items management", children: [
|
|
3046
|
-
/* @__PURE__ */ n(
|
|
3047
|
-
/* @__PURE__ */ n(
|
|
3046
|
+
/* @__PURE__ */ n($a, {}),
|
|
3047
|
+
/* @__PURE__ */ n(_a, {})
|
|
3048
3048
|
] }),
|
|
3049
3049
|
/* @__PURE__ */ n(f, { name: "Size", children: /* @__PURE__ */ n(H, { onChange: a, value: c }) })
|
|
3050
3050
|
] }),
|
|
@@ -3058,11 +3058,11 @@ const Ba = [
|
|
|
3058
3058
|
] })
|
|
3059
3059
|
] })
|
|
3060
3060
|
] });
|
|
3061
|
-
},
|
|
3061
|
+
}, Ha = (e) => E({
|
|
3062
3062
|
nodeId: e
|
|
3063
3063
|
}), qe = () => E({
|
|
3064
|
-
transform:
|
|
3065
|
-
}),
|
|
3064
|
+
transform: Po
|
|
3065
|
+
}), Va = () => {
|
|
3066
3066
|
const { nodeProps: e, setNodeProps: o } = qe(), r = (t) => {
|
|
3067
3067
|
const a = isNaN(t.target.valueAsNumber) ? void 0 : t.target.valueAsNumber;
|
|
3068
3068
|
o({
|
|
@@ -3082,7 +3082,7 @@ const Ba = [
|
|
|
3082
3082
|
onChange: r
|
|
3083
3083
|
}
|
|
3084
3084
|
) });
|
|
3085
|
-
},
|
|
3085
|
+
}, ja = () => {
|
|
3086
3086
|
const { nodeProps: e, setNodeProps: o } = qe(), r = (t) => {
|
|
3087
3087
|
o({
|
|
3088
3088
|
autoplayOptions: {
|
|
@@ -3091,10 +3091,10 @@ const Ba = [
|
|
|
3091
3091
|
});
|
|
3092
3092
|
};
|
|
3093
3093
|
return /* @__PURE__ */ n(L, { name: "Loop", children: /* @__PURE__ */ n(le, { checked: !e.autoplayOptions?.stopOnLastSnap, onChange: r }) });
|
|
3094
|
-
},
|
|
3094
|
+
}, Ua = () => {
|
|
3095
3095
|
const { getResponsiveProp: e, currentScreen: o } = k(), { nodeProps: r, setNodeResponsiveProps: t } = qe(), a = e(r, "slidesPerView");
|
|
3096
3096
|
return /* @__PURE__ */ n(L, { name: "Items per view", responsive: !0, children: /* @__PURE__ */ n(
|
|
3097
|
-
|
|
3097
|
+
fo,
|
|
3098
3098
|
{
|
|
3099
3099
|
className: "tw:w-1/2",
|
|
3100
3100
|
onChange: (i) => {
|
|
@@ -3114,7 +3114,7 @@ const Ba = [
|
|
|
3114
3114
|
]
|
|
3115
3115
|
}
|
|
3116
3116
|
) });
|
|
3117
|
-
},
|
|
3117
|
+
}, ti = () => {
|
|
3118
3118
|
const { nodeProps: e, setNodeResponsiveProps: o, setNodeProps: r } = qe(), { getResponsiveProp: t, currentScreen: a } = k(), s = (C, p = a) => {
|
|
3119
3119
|
r({ sx: I(C, p) });
|
|
3120
3120
|
}, i = () => /* @__PURE__ */ n(
|
|
@@ -3129,7 +3129,7 @@ const Ba = [
|
|
|
3129
3129
|
), d = {
|
|
3130
3130
|
columnGap: t(e, "spaceBetween") ?? 0
|
|
3131
3131
|
}, l = ({ columnGap: C }) => {
|
|
3132
|
-
o({ spaceBetween:
|
|
3132
|
+
o({ spaceBetween: eo(C) ? C : void 0 }, a);
|
|
3133
3133
|
}, c = (C) => {
|
|
3134
3134
|
r({
|
|
3135
3135
|
autoplayOptions: {
|
|
@@ -3174,7 +3174,7 @@ const Ba = [
|
|
|
3174
3174
|
/* @__PURE__ */ u(O, { className: "tw:px-2", children: [
|
|
3175
3175
|
/* @__PURE__ */ u(N, { children: [
|
|
3176
3176
|
/* @__PURE__ */ u(f, { name: "Display", children: [
|
|
3177
|
-
/* @__PURE__ */ n(
|
|
3177
|
+
/* @__PURE__ */ n(Ua, {}),
|
|
3178
3178
|
/* @__PURE__ */ n(at, { value: d, onChange: l, name: "Items spacing" })
|
|
3179
3179
|
] }),
|
|
3180
3180
|
/* @__PURE__ */ n(f, { name: "Item management", children: /* @__PURE__ */ n(ve, { getNewNodeElement: i }) }),
|
|
@@ -3186,8 +3186,8 @@ const Ba = [
|
|
|
3186
3186
|
right: /* @__PURE__ */ n(le, { onChange: c, checked: h })
|
|
3187
3187
|
},
|
|
3188
3188
|
children: h && /* @__PURE__ */ u(It, { children: [
|
|
3189
|
-
/* @__PURE__ */ n(
|
|
3190
|
-
/* @__PURE__ */ n(
|
|
3189
|
+
/* @__PURE__ */ n(Va, {}),
|
|
3190
|
+
/* @__PURE__ */ n(ja, {})
|
|
3191
3191
|
] })
|
|
3192
3192
|
}
|
|
3193
3193
|
)
|
|
@@ -3202,10 +3202,10 @@ const Ba = [
|
|
|
3202
3202
|
] })
|
|
3203
3203
|
] })
|
|
3204
3204
|
] });
|
|
3205
|
-
},
|
|
3206
|
-
transform:
|
|
3207
|
-
}),
|
|
3208
|
-
const { nodeProps: e, setNodeProps: o } =
|
|
3205
|
+
}, Ga = () => E({
|
|
3206
|
+
transform: ko
|
|
3207
|
+
}), ni = () => {
|
|
3208
|
+
const { nodeProps: e, setNodeProps: o } = Ga(), { currentScreen: r, getResponsiveProp: t } = k(), a = (x, w = r) => {
|
|
3209
3209
|
o({ sx: I(x, w) });
|
|
3210
3210
|
}, s = {
|
|
3211
3211
|
paddingBottom: t(e.sx ?? {}, "paddingBottom"),
|
|
@@ -3264,10 +3264,10 @@ const Ba = [
|
|
|
3264
3264
|
] })
|
|
3265
3265
|
] })
|
|
3266
3266
|
] });
|
|
3267
|
-
},
|
|
3268
|
-
transform:
|
|
3269
|
-
}),
|
|
3270
|
-
const { nodeProps: e, setNodeProps: o, setNodeResponsiveProps: r } =
|
|
3267
|
+
}, qa = () => E({
|
|
3268
|
+
transform: Bo
|
|
3269
|
+
}), oi = () => {
|
|
3270
|
+
const { nodeProps: e, setNodeProps: o, setNodeResponsiveProps: r } = qa(), { currentScreen: t, getResponsiveProp: a } = k(), s = (b, C = t) => {
|
|
3271
3271
|
o({
|
|
3272
3272
|
sx: I(b, C)
|
|
3273
3273
|
});
|
|
@@ -3330,15 +3330,15 @@ const Ba = [
|
|
|
3330
3330
|
] })
|
|
3331
3331
|
] })
|
|
3332
3332
|
] });
|
|
3333
|
-
},
|
|
3334
|
-
transform:
|
|
3333
|
+
}, Ja = (e) => E({
|
|
3334
|
+
transform: Io,
|
|
3335
3335
|
nodeId: e
|
|
3336
3336
|
}), Je = () => E({
|
|
3337
|
-
transform:
|
|
3338
|
-
}),
|
|
3337
|
+
transform: Wo
|
|
3338
|
+
}), Ka = ({ accordionNodeId: e, accordionIndex: o }) => {
|
|
3339
3339
|
const [r, t] = U(!1), [a, s] = Xt(o === 0), { id: i, nodeProps: d } = Je(), { query: l, accordionNode: c, actions: h } = ne((P) => ({
|
|
3340
3340
|
accordionNode: P.nodes[e]
|
|
3341
|
-
})), { nodeProps: g, setNodeProps: x } =
|
|
3341
|
+
})), { nodeProps: g, setNodeProps: x } = Ja(e), [w, b] = U(
|
|
3342
3342
|
c.dom ? Te(c.dom).openState : !1
|
|
3343
3343
|
), C = () => {
|
|
3344
3344
|
t(!0);
|
|
@@ -3415,7 +3415,7 @@ const Ba = [
|
|
|
3415
3415
|
]
|
|
3416
3416
|
}
|
|
3417
3417
|
) });
|
|
3418
|
-
},
|
|
3418
|
+
}, Ya = () => {
|
|
3419
3419
|
const { query: e, actions: o } = ne(), { id: r, accordionNodeIds: t } = Q((i) => ({
|
|
3420
3420
|
accordionNodeIds: i.data.nodes
|
|
3421
3421
|
}));
|
|
@@ -3430,7 +3430,7 @@ const Ba = [
|
|
|
3430
3430
|
destinationIndex: l.index
|
|
3431
3431
|
});
|
|
3432
3432
|
}, children: /* @__PURE__ */ n(en, { droppableId: r, children: (i) => /* @__PURE__ */ u("div", { ref: i.innerRef, ...i.droppableProps, className: "tw:flex tw:flex-col tw:gap-2", children: [
|
|
3433
|
-
t.map((d, l) => /* @__PURE__ */ n(
|
|
3433
|
+
t.map((d, l) => /* @__PURE__ */ n(Ka, { accordionNodeId: d, accordionIndex: l }, d)),
|
|
3434
3434
|
i.placeholder
|
|
3435
3435
|
] }) }) }),
|
|
3436
3436
|
/* @__PURE__ */ n(K, { className: "tw:mt-2", onClick: () => {
|
|
@@ -3453,7 +3453,7 @@ const Ba = [
|
|
|
3453
3453
|
o.addNodeTree(i, r);
|
|
3454
3454
|
}, fullWidth: !0, prefix: /* @__PURE__ */ n(W, { source: jt }), children: "Add more" })
|
|
3455
3455
|
] });
|
|
3456
|
-
},
|
|
3456
|
+
}, Za = () => {
|
|
3457
3457
|
const { nodeProps: e, setNodeProps: o } = Je(), [r, t] = U(!1), a = e.accordionSummaryProps?.expandIcon, s = (h) => {
|
|
3458
3458
|
o({
|
|
3459
3459
|
accordionSummaryProps: {
|
|
@@ -3558,7 +3558,7 @@ const Ba = [
|
|
|
3558
3558
|
] })
|
|
3559
3559
|
] }) })
|
|
3560
3560
|
] }) });
|
|
3561
|
-
},
|
|
3561
|
+
}, Xa = () => {
|
|
3562
3562
|
const { id: e, nodeProps: o, setNodeProps: r } = Je(), { query: t } = ne(), a = [
|
|
3563
3563
|
{
|
|
3564
3564
|
value: "single",
|
|
@@ -3577,7 +3577,7 @@ const Ba = [
|
|
|
3577
3577
|
});
|
|
3578
3578
|
};
|
|
3579
3579
|
return /* @__PURE__ */ n(L, { name: "Open mode", children: /* @__PURE__ */ n(_e, { value: o.openMode, onSelectionChange: s, children: a.map((i) => /* @__PURE__ */ n(K, { value: i.value, children: i.label }, i.value)) }) });
|
|
3580
|
-
},
|
|
3580
|
+
}, ri = () => {
|
|
3581
3581
|
const { nodeProps: e, setNodeProps: o } = Je(), { getResponsiveProp: r, currentScreen: t } = k(), a = (b, C = t) => {
|
|
3582
3582
|
o({ sx: I(b, C) });
|
|
3583
3583
|
}, s = {
|
|
@@ -3628,13 +3628,13 @@ const Ba = [
|
|
|
3628
3628
|
/* @__PURE__ */ u(O, { className: "tw:px-2", children: [
|
|
3629
3629
|
/* @__PURE__ */ u(N, { children: [
|
|
3630
3630
|
/* @__PURE__ */ u(f, { name: "Items management", children: [
|
|
3631
|
-
/* @__PURE__ */ n(
|
|
3632
|
-
/* @__PURE__ */ n(
|
|
3631
|
+
/* @__PURE__ */ n(Ya, {}),
|
|
3632
|
+
/* @__PURE__ */ n(Xa, {}),
|
|
3633
3633
|
/* @__PURE__ */ n(Ce, { value: i, onChange: a })
|
|
3634
3634
|
] }),
|
|
3635
3635
|
/* @__PURE__ */ u(f, { name: "Item header", children: [
|
|
3636
3636
|
/* @__PURE__ */ n(nt, { value: h, onChange: l }),
|
|
3637
|
-
/* @__PURE__ */ n(
|
|
3637
|
+
/* @__PURE__ */ n(Za, {})
|
|
3638
3638
|
] }),
|
|
3639
3639
|
/* @__PURE__ */ n(f, { name: "Item content", children: /* @__PURE__ */ n(nt, { value: w, onChange: g }) }),
|
|
3640
3640
|
/* @__PURE__ */ n(f, { name: "Size", children: /* @__PURE__ */ n(H, { value: d, onChange: a }) })
|
|
@@ -3645,10 +3645,10 @@ const Ba = [
|
|
|
3645
3645
|
] })
|
|
3646
3646
|
] })
|
|
3647
3647
|
] });
|
|
3648
|
-
},
|
|
3649
|
-
transform:
|
|
3650
|
-
}),
|
|
3651
|
-
const { currentScreen: e, getResponsiveProp: o } = k(), { nodeProps: r, setNodeProps: t } =
|
|
3648
|
+
}, Qa = () => E({
|
|
3649
|
+
transform: Eo
|
|
3650
|
+
}), ai = () => {
|
|
3651
|
+
const { currentScreen: e, getResponsiveProp: o } = k(), { nodeProps: r, setNodeProps: t } = Qa(), a = {
|
|
3652
3652
|
aspectRatio: o(r.sx ?? {}, "aspectRatio")
|
|
3653
3653
|
}, s = (w, b = e) => {
|
|
3654
3654
|
t({ sx: I(w, b) });
|
|
@@ -3724,7 +3724,7 @@ const Ba = [
|
|
|
3724
3724
|
/* @__PURE__ */ u(f, { name: "Size", children: [
|
|
3725
3725
|
/* @__PURE__ */ n(H, { value: i ?? "", onChange: s }),
|
|
3726
3726
|
/* @__PURE__ */ n(
|
|
3727
|
-
|
|
3727
|
+
xo,
|
|
3728
3728
|
{
|
|
3729
3729
|
suggestOptions: [
|
|
3730
3730
|
{
|
|
@@ -3748,10 +3748,10 @@ const Ba = [
|
|
|
3748
3748
|
] })
|
|
3749
3749
|
] })
|
|
3750
3750
|
] });
|
|
3751
|
-
},
|
|
3752
|
-
transform:
|
|
3753
|
-
}),
|
|
3754
|
-
const { nodeProps: e, setNodeProps: o } =
|
|
3751
|
+
}, es = () => E({
|
|
3752
|
+
transform: Ao
|
|
3753
|
+
}), si = () => {
|
|
3754
|
+
const { nodeProps: e, setNodeProps: o } = es(), { getResponsiveProp: r, currentScreen: t } = k(), a = (g, x = t) => {
|
|
3755
3755
|
o({ sx: I(g, x) });
|
|
3756
3756
|
}, s = {
|
|
3757
3757
|
paddingBottom: r(e.sx ?? {}, "paddingBottom"),
|
|
@@ -3820,10 +3820,10 @@ const Ba = [
|
|
|
3820
3820
|
] })
|
|
3821
3821
|
] })
|
|
3822
3822
|
] });
|
|
3823
|
-
},
|
|
3824
|
-
transform:
|
|
3825
|
-
}),
|
|
3826
|
-
const { nodeProps: e, setNodeProps: o } =
|
|
3823
|
+
}, ts = () => E({
|
|
3824
|
+
transform: Do
|
|
3825
|
+
}), ii = () => {
|
|
3826
|
+
const { nodeProps: e, setNodeProps: o } = ts(), { getResponsiveProp: r, currentScreen: t } = k(), a = (h, g = t) => {
|
|
3827
3827
|
o({ sx: I(h, g) });
|
|
3828
3828
|
}, s = {
|
|
3829
3829
|
paddingBottom: r(e.sx ?? {}, "paddingBottom"),
|
|
@@ -3877,7 +3877,7 @@ const Ba = [
|
|
|
3877
3877
|
] })
|
|
3878
3878
|
] })
|
|
3879
3879
|
] });
|
|
3880
|
-
}, ye = () => E(),
|
|
3880
|
+
}, ye = () => E(), ns = () => {
|
|
3881
3881
|
const { nodeProps: e, setNodeProps: o } = ye(), { currentScreen: r, getResponsiveProp: t } = k(), [a, s] = U(!1), i = e.captionProps ?? {}, d = (c) => {
|
|
3882
3882
|
o({
|
|
3883
3883
|
captionProps: {
|
|
@@ -3961,7 +3961,7 @@ const Ba = [
|
|
|
3961
3961
|
] })
|
|
3962
3962
|
] }) })
|
|
3963
3963
|
] }) }) });
|
|
3964
|
-
},
|
|
3964
|
+
}, os = () => {
|
|
3965
3965
|
const { nodeProps: e, setNodeProps: o } = ye(), { currentScreen: r, getResponsiveProp: t } = k(), [a, s] = U(!1), i = e.timeProps ?? {}, d = (c) => {
|
|
3966
3966
|
o({
|
|
3967
3967
|
timeProps: r === "xs" ? {
|
|
@@ -4038,7 +4038,7 @@ const Ba = [
|
|
|
4038
4038
|
] })
|
|
4039
4039
|
] }) })
|
|
4040
4040
|
] }) }) });
|
|
4041
|
-
},
|
|
4041
|
+
}, rs = () => {
|
|
4042
4042
|
const { currentScreen: e, getResponsiveProp: o } = k(), { nodeProps: r, setNodeProps: t } = ye(), a = (l, c = e) => {
|
|
4043
4043
|
t({
|
|
4044
4044
|
unitItemProps: {
|
|
@@ -4100,7 +4100,7 @@ const Ba = [
|
|
|
4100
4100
|
}
|
|
4101
4101
|
)
|
|
4102
4102
|
] });
|
|
4103
|
-
},
|
|
4103
|
+
}, as = () => {
|
|
4104
4104
|
const { nodeProps: e, setNodeProps: o } = ye(), [r, t] = U(!1), a = [
|
|
4105
4105
|
{
|
|
4106
4106
|
label: "Months",
|
|
@@ -4205,7 +4205,7 @@ const Ba = [
|
|
|
4205
4205
|
] }, d.value)) })
|
|
4206
4206
|
] }) })
|
|
4207
4207
|
] }) });
|
|
4208
|
-
},
|
|
4208
|
+
}, di = () => {
|
|
4209
4209
|
const { nodeProps: e, setNodeProps: o } = ye(), { getResponsiveProp: r, currentScreen: t } = k(), a = (x, w = t) => {
|
|
4210
4210
|
o({ sx: I(x, w) });
|
|
4211
4211
|
}, s = {
|
|
@@ -4257,14 +4257,14 @@ const Ba = [
|
|
|
4257
4257
|
/* @__PURE__ */ u(N, { children: [
|
|
4258
4258
|
/* @__PURE__ */ u(f, { name: "Config", children: [
|
|
4259
4259
|
/* @__PURE__ */ n(L, { name: "Date", children: /* @__PURE__ */ n(
|
|
4260
|
-
|
|
4260
|
+
Vo,
|
|
4261
4261
|
{
|
|
4262
4262
|
onChange: h,
|
|
4263
4263
|
referenceProps: { className: "w-1/2" },
|
|
4264
4264
|
value: ee(e.date) ? null : new Date(e.date)
|
|
4265
4265
|
}
|
|
4266
4266
|
) }),
|
|
4267
|
-
/* @__PURE__ */ n(
|
|
4267
|
+
/* @__PURE__ */ n(as, {}),
|
|
4268
4268
|
/* @__PURE__ */ n(L, { name: "Hide after expired", children: /* @__PURE__ */ n(le, { checked: e.hideAfterExpired ?? !1, onChange: g }) })
|
|
4269
4269
|
] }),
|
|
4270
4270
|
/* @__PURE__ */ u(f, { name: "Layout", children: [
|
|
@@ -4289,9 +4289,9 @@ const Ba = [
|
|
|
4289
4289
|
}
|
|
4290
4290
|
)
|
|
4291
4291
|
] }),
|
|
4292
|
+
/* @__PURE__ */ n(rs, {}),
|
|
4292
4293
|
/* @__PURE__ */ n(os, {}),
|
|
4293
|
-
/* @__PURE__ */ n(ns, {})
|
|
4294
|
-
/* @__PURE__ */ n(ts, {})
|
|
4294
|
+
/* @__PURE__ */ n(ns, {})
|
|
4295
4295
|
] }),
|
|
4296
4296
|
/* @__PURE__ */ u(N, { children: [
|
|
4297
4297
|
/* @__PURE__ */ n(f, { name: "Display on", children: /* @__PURE__ */ n(Y, {}) }),
|
|
@@ -4304,10 +4304,10 @@ const Ba = [
|
|
|
4304
4304
|
] })
|
|
4305
4305
|
] })
|
|
4306
4306
|
] });
|
|
4307
|
-
},
|
|
4307
|
+
}, li = ({ children: e, data: o }) => {
|
|
4308
4308
|
const { resolver: r } = ne((a) => ({
|
|
4309
4309
|
resolver: a.options.resolver
|
|
4310
|
-
})), t =
|
|
4310
|
+
})), t = to(() => {
|
|
4311
4311
|
if (ee(o)) return o;
|
|
4312
4312
|
const a = xe(o) ? JSON.parse(o) : o;
|
|
4313
4313
|
return Object.entries(a).forEach(([, s]) => {
|
|
@@ -4317,8 +4317,8 @@ const Ba = [
|
|
|
4317
4317
|
});
|
|
4318
4318
|
}), a;
|
|
4319
4319
|
}, [o, r]);
|
|
4320
|
-
return /* @__PURE__ */ n(
|
|
4321
|
-
},
|
|
4320
|
+
return /* @__PURE__ */ n(Zn, { data: t, children: e });
|
|
4321
|
+
}, ss = {
|
|
4322
4322
|
// Root
|
|
4323
4323
|
[y.Root]: qn,
|
|
4324
4324
|
// Unknown
|
|
@@ -4362,21 +4362,21 @@ const Ba = [
|
|
|
4362
4362
|
[y.AccordionContent]: _t,
|
|
4363
4363
|
// Timer
|
|
4364
4364
|
[y.CountdownTimer]: Pn
|
|
4365
|
-
},
|
|
4366
|
-
|
|
4365
|
+
}, ci = ({ resolver: e, children: o, ...r }) => /* @__PURE__ */ n(
|
|
4366
|
+
Xn,
|
|
4367
4367
|
{
|
|
4368
4368
|
enabled: !1,
|
|
4369
|
-
onRender:
|
|
4370
|
-
handlers: (t) => new
|
|
4369
|
+
onRender: is,
|
|
4370
|
+
handlers: (t) => new ds({
|
|
4371
4371
|
store: t,
|
|
4372
4372
|
removeHoverOnMouseleave: !0,
|
|
4373
4373
|
isMultiSelectEnabled: () => !1
|
|
4374
4374
|
}),
|
|
4375
|
-
resolver: { ...
|
|
4375
|
+
resolver: { ...ss, ...e },
|
|
4376
4376
|
...r,
|
|
4377
4377
|
children: o
|
|
4378
4378
|
}
|
|
4379
|
-
),
|
|
4379
|
+
), is = ({ render: e }) => {
|
|
4380
4380
|
const { id: o } = E(), { query: r } = ne();
|
|
4381
4381
|
return we(() => {
|
|
4382
4382
|
const t = r.node(o).get(), a = he(t);
|
|
@@ -4386,7 +4386,7 @@ const Ba = [
|
|
|
4386
4386
|
);
|
|
4387
4387
|
}, [o, r]), e;
|
|
4388
4388
|
};
|
|
4389
|
-
class
|
|
4389
|
+
class ds extends Qn {
|
|
4390
4390
|
handlers() {
|
|
4391
4391
|
const o = super.handlers();
|
|
4392
4392
|
return {
|
|
@@ -4399,49 +4399,50 @@ class is extends Xn {
|
|
|
4399
4399
|
}
|
|
4400
4400
|
}
|
|
4401
4401
|
export {
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4402
|
+
ri as A,
|
|
4403
|
+
si as B,
|
|
4404
|
+
li as C,
|
|
4405
|
+
Ks as D,
|
|
4406
|
+
Ha as E,
|
|
4407
|
+
qs as F,
|
|
4408
|
+
Hs as G,
|
|
4409
|
+
Zs as H,
|
|
4410
|
+
oi as I,
|
|
4411
4411
|
Tn as J,
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
ii as
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4412
|
+
Ga as K,
|
|
4413
|
+
js as L,
|
|
4414
|
+
Qs as M,
|
|
4415
|
+
Qa as N,
|
|
4416
|
+
Js as P,
|
|
4417
|
+
V as R,
|
|
4418
|
+
va as S,
|
|
4419
|
+
ei as T,
|
|
4420
|
+
ni as U,
|
|
4421
|
+
Ra as V,
|
|
4422
|
+
Ys as a,
|
|
4423
|
+
Us as b,
|
|
4424
|
+
Vs as c,
|
|
4425
|
+
ci as d,
|
|
4426
|
+
ii as e,
|
|
4427
|
+
di as f,
|
|
4428
|
+
Gs as g,
|
|
4429
|
+
Xs as h,
|
|
4430
|
+
ti as i,
|
|
4430
4431
|
Sn as j,
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4432
|
+
ai as k,
|
|
4433
|
+
Ja as l,
|
|
4434
|
+
es as m,
|
|
4434
4435
|
Ve as n,
|
|
4435
4436
|
nn as o,
|
|
4436
|
-
|
|
4437
|
+
ts as p,
|
|
4437
4438
|
ye as q,
|
|
4438
4439
|
Rt as r,
|
|
4439
4440
|
Rn as s,
|
|
4440
|
-
|
|
4441
|
+
jo as t,
|
|
4441
4442
|
Je as u,
|
|
4442
|
-
|
|
4443
|
+
qa as v,
|
|
4443
4444
|
Se as w,
|
|
4444
4445
|
ut as x,
|
|
4445
|
-
|
|
4446
|
+
Oa as y,
|
|
4446
4447
|
qe as z
|
|
4447
4448
|
};
|