@janbox/storefront-builder 2.0.7 → 2.0.9
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/{countdown-timer.inspector-DEhYueYx.js → countdown-timer.inspector-EFXiJ973.js} +712 -715
- package/dist/{dataset-DToMsct-.js → dataset-DQ21hyBo.js} +609 -625
- package/dist/editor.js +87 -86
- package/dist/index-Cx5nImHp.js +4 -0
- package/dist/index.js +101 -102
- package/dist/style.css +1 -1
- package/dist/templates.js +7 -8
- package/dist/{tooltip-Dw5U2fSJ.js → tooltip-Bi1eNiUc.js} +1 -1
- package/package.json +1 -1
- package/dist/index-D8gzgG22.js +0 -4
package/dist/{countdown-timer.inspector-DEhYueYx.js → countdown-timer.inspector-EFXiJ973.js}
RENAMED
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
import { jsx as t, jsxs as u, Fragment as Pe } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import * as b from "react";
|
|
3
3
|
import { Children as qt, isValidElement as Jt, cloneElement as Dn, useRef as bt, useEffect as Me, useMemo as xt, useCallback as Pn, Fragment as ze, useState as E } from "react";
|
|
4
|
-
import { TextStyleKit as
|
|
5
|
-
import { useEditor as
|
|
6
|
-
import { BubbleMenu as
|
|
7
|
-
import { StarterKit as
|
|
8
|
-
import { isFunction as
|
|
4
|
+
import { TextStyleKit as Vo } from "@tiptap/extension-text-style";
|
|
5
|
+
import { useEditor as Ho, EditorContent as Oo, useEditorState as Do } from "@tiptap/react";
|
|
6
|
+
import { BubbleMenu as zo } from "@tiptap/react/menus";
|
|
7
|
+
import { StarterKit as Fo } from "@tiptap/starter-kit";
|
|
8
|
+
import { isFunction as jo, merge as zn, set as Fn, isNumber as wt, isNil as D, isUndefined as Kt, get as Ke, parseInt as Zo, trimStart as Xt, isString as de } from "lodash-es";
|
|
9
9
|
import { useFrame as Yt } from "react-frame-component";
|
|
10
|
-
import { f as
|
|
10
|
+
import { f as oe, g as kt, t as v, ac as re, a5 as B, a6 as k, b as Ye, M as jn, av as $o, aw as _o, ax as Uo, ay as Zn, ag as Go, as as Fe, ar as je, aq as Ze, af as $n, ap as qo, az as Jo, Q as Ne, ai as $e, aa as ae, ab as Y, ad as Ve, E as ht, O as $t, a7 as Se, a8 as Le, a9 as Te, at as ce, a as Ko, Y as H, F as Xo, au as Yo, a3 as Ce, aA as He, aB as Qo, N as Oe, a2 as er, p as tr, v as nr, w as or, r as rr, o as ar, c as ir, d as sr, P as Nn, e as lr } from "./dataset-DQ21hyBo.js";
|
|
11
11
|
import { useControllableState as Re } from "@janbox/storefront-ui/hooks";
|
|
12
|
-
import { ClassNames as
|
|
13
|
-
import { useMergeRefs as Qt, useFloating as Rt, autoUpdate as yt, offset as St, flip as Lt, size as en, useClick as tn, useHover as
|
|
14
|
-
import { useUpdateEffect as sn, useToggle as
|
|
15
|
-
import { FLOATING_Z_INDEX as Xe, paletteVars as
|
|
12
|
+
import { ClassNames as dr } from "@emotion/react";
|
|
13
|
+
import { useMergeRefs as Qt, useFloating as Rt, autoUpdate as yt, offset as St, flip as Lt, size as en, useClick as tn, useHover as cr, safePolygon as ur, useDismiss as nn, useRole as on, useInteractions as rn, useFloatingParentNodeId as hr, FloatingTree as pr, FloatingPortal as an } from "@floating-ui/react";
|
|
14
|
+
import { useUpdateEffect as sn, useToggle as gr } from "react-use";
|
|
15
|
+
import { FLOATING_Z_INDEX as Xe, paletteVars as mr } from "@janbox/storefront-ui/theme";
|
|
16
16
|
import "react-colorful";
|
|
17
|
-
import { OverlayScrollbarsComponent as
|
|
18
|
-
import { useVirtualizer as
|
|
19
|
-
import
|
|
20
|
-
import "react-datepicker
|
|
21
|
-
import {
|
|
22
|
-
import { useNode as oe, Element as kr, ROOT_NODE as Rr, Frame as yr, Editor as Sr, DefaultEventHandlers as Lr } from "@craftjs/core";
|
|
17
|
+
import { OverlayScrollbarsComponent as fr } from "overlayscrollbars-react";
|
|
18
|
+
import { useVirtualizer as Cr } from "@tanstack/react-virtual";
|
|
19
|
+
import vr, { useDropzone as br } from "react-dropzone";
|
|
20
|
+
import { DatePicker as xr } from "react-datepicker";
|
|
21
|
+
import { useNode as ne, Element as wr, ROOT_NODE as kr, Frame as Rr, Editor as yr, DefaultEventHandlers as Sr } from "@craftjs/core";
|
|
23
22
|
import { flatten as _n } from "flat";
|
|
24
|
-
import { getGridProps as
|
|
25
|
-
import { getResponsiveProp as
|
|
23
|
+
import { getGridProps as Lr, getCellProps as Tr, GRID_MINIMUM_COLS as Mn, GRID_MAXIMUM_COLS as Ir, getLinkProps as Br, getButtonProps as Pr, getFlexboxProps as Nr, getFlexItemProps as Mr, getImageProps as Wr, getMarqueeProps as Ar, getAccordionGroupProps as Er, getAccordionProps as Vr, getBoxProps as Hr, getContainerProps as Or, getIconProps as Dr, getSwiperProps as zr, getTabsProps as Fr, getUnorderedListProps as jr, getVideoProps as Zr, MarqueeDataAttributes as zt, getAccordionDataAttributes as it, AccordionDataAttributes as _t } from "@janbox/storefront-ui";
|
|
24
|
+
import { getResponsiveProp as $r, getColorShadesByVariant as _r } from "@janbox/storefront-ui/utils";
|
|
26
25
|
import { useToggle as Un } from "usehooks-ts";
|
|
27
26
|
import { Draggable as ln, DragDropContext as dn, Droppable as cn } from "@hello-pangea/dnd";
|
|
28
|
-
import { W as
|
|
29
|
-
const
|
|
30
|
-
const { id: o } =
|
|
27
|
+
import { W as Ur } from "./tooltip-Bi1eNiUc.js";
|
|
28
|
+
const O = (e = {}) => {
|
|
29
|
+
const { id: o } = ne(), r = e?.nodeId ?? o, { nodeProps: n, actions: a } = oe((l) => ({
|
|
31
30
|
nodeProps: l.nodes[r ?? o]?.data.props ?? {}
|
|
32
|
-
})), i = (l, d) =>
|
|
31
|
+
})), i = (l, d) => jo(l) ? a.setProp(r, l) : a.setProp(r, (c) => {
|
|
33
32
|
if (d?.merge) {
|
|
34
33
|
zn(c, l);
|
|
35
34
|
return;
|
|
@@ -50,33 +49,33 @@ const H = (e = {}) => {
|
|
|
50
49
|
setNodeProps: i,
|
|
51
50
|
setNodeResponsiveProps: s
|
|
52
51
|
};
|
|
53
|
-
},
|
|
54
|
-
transform:
|
|
55
|
-
}),
|
|
52
|
+
}, Gr = () => O({
|
|
53
|
+
transform: Lr
|
|
54
|
+
}), te = wr, W = () => {
|
|
56
55
|
const { screen: e } = kt();
|
|
57
|
-
return { getResponsiveProp: (r, n, a, i) =>
|
|
58
|
-
},
|
|
56
|
+
return { getResponsiveProp: (r, n, a, i) => $r(r, n, a ?? e, i), currentScreen: e };
|
|
57
|
+
}, qr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
59
58
|
<rect x="4.99707" y="2.99609" width="14.0058" height="18.0075" rx="2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
60
59
|
<path d="M9.4989 18.5031H14.501" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
61
60
|
</svg>
|
|
62
|
-
`,
|
|
61
|
+
`, Jr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
63
62
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.0025 14.0007H5.99754C4.89208 14.0007 3.9967 13.1053 3.9967 11.9998V4.99693C3.9967 3.89147 4.89208 2.99609 5.99754 2.99609H18.0025C19.108 2.99609 20.0034 3.89147 20.0034 4.99693V11.9998C20.0034 13.1053 19.108 14.0007 18.0025 14.0007Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
64
63
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.1446 14.001H5.85546C4.96209 14.001 4.17676 14.5932 3.93166 15.4526L3.0743 18.4538C2.70915 19.7314 3.66855 21.0039 4.9981 21.0039H19.0019C20.3315 21.0039 21.2909 19.7314 20.9257 18.4538L20.0684 15.4526C19.8223 14.5932 19.0379 14.001 18.1446 14.001Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
65
64
|
<path d="M9.99915 18.0022H14.0008" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
66
65
|
</svg>
|
|
67
|
-
`,
|
|
66
|
+
`, Kr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
68
67
|
<path d="M10 4V5.8C10 6.131 10.224 6.4 10.5 6.4H13.5C13.776 6.4 14 6.131 14 5.8V4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
69
68
|
<path d="M10.88 17.5H13.12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
70
69
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M9 4H15C16.105 4 17 4.895 17 6V18C17 19.105 16.105 20 15 20H9C7.895 20 7 19.105 7 18V6C7 4.895 7.895 4 9 4Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
71
70
|
</svg>
|
|
72
|
-
`,
|
|
71
|
+
`, Xr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
73
72
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.4316 17.0019H5.56829C4.14777 17.0019 2.99622 15.8504 2.99622 14.4299V5.56817C2.99622 4.14765 4.14777 2.99609 5.56829 2.99609H18.4306C19.113 2.99583 19.7674 3.2667 20.25 3.74908C20.7326 4.23147 21.0037 4.88584 21.0037 5.56817V14.4289C21.004 15.1112 20.7331 15.7657 20.2507 16.2482C19.7683 16.7308 19.114 17.0019 18.4316 17.0019Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
74
73
|
<path d="M21.0037 13.0002H2.99622" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
75
74
|
<path d="M14.0008 17.002L14.501 21.0036" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
76
75
|
<path d="M9.99921 17.002L9.49901 21.0036" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
77
76
|
<path d="M8.14136 21.0041H15.8586" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
78
77
|
</svg>
|
|
79
|
-
`,
|
|
78
|
+
`, Yr = [
|
|
80
79
|
{
|
|
81
80
|
value: "primary",
|
|
82
81
|
label: "Primary"
|
|
@@ -105,33 +104,33 @@ const H = (e = {}) => {
|
|
|
105
104
|
value: "neutral",
|
|
106
105
|
label: "Neutral"
|
|
107
106
|
}
|
|
108
|
-
],
|
|
107
|
+
], Vl = {
|
|
109
108
|
xs: 390,
|
|
110
109
|
sm: 768,
|
|
111
110
|
md: 1280,
|
|
112
111
|
lg: 1680
|
|
113
112
|
}, Ut = [
|
|
114
113
|
{
|
|
115
|
-
icon:
|
|
114
|
+
icon: Kr,
|
|
116
115
|
size: "xs",
|
|
117
116
|
name: "Mobile"
|
|
118
117
|
},
|
|
119
118
|
{
|
|
120
|
-
icon:
|
|
119
|
+
icon: qr,
|
|
121
120
|
size: "sm",
|
|
122
121
|
name: "Tablet"
|
|
123
122
|
},
|
|
124
123
|
{
|
|
125
|
-
icon:
|
|
124
|
+
icon: Jr,
|
|
126
125
|
size: "md",
|
|
127
126
|
name: "Laptop"
|
|
128
127
|
},
|
|
129
128
|
{
|
|
130
|
-
icon:
|
|
129
|
+
icon: Xr,
|
|
131
130
|
size: "lg",
|
|
132
131
|
name: "Desktop"
|
|
133
132
|
}
|
|
134
|
-
],
|
|
133
|
+
], Qr = "px", Q = ({
|
|
135
134
|
children: e,
|
|
136
135
|
defaultValue: o,
|
|
137
136
|
value: r,
|
|
@@ -147,7 +146,7 @@ const H = (e = {}) => {
|
|
|
147
146
|
const p = c.currentTarget.value;
|
|
148
147
|
p !== i && (s(p), n?.(p, c));
|
|
149
148
|
};
|
|
150
|
-
return /* @__PURE__ */ t(
|
|
149
|
+
return /* @__PURE__ */ t(dr, { children: ({ cx: c, css: p }) => /* @__PURE__ */ t(
|
|
151
150
|
"div",
|
|
152
151
|
{
|
|
153
152
|
css: {
|
|
@@ -198,10 +197,10 @@ const H = (e = {}) => {
|
|
|
198
197
|
if (S = S.replace(/e|E/g, ""), e >= 0 && (S = S.replace(/^-/, "")), r === 0)
|
|
199
198
|
S = S.replace(/\.\d+$/, "");
|
|
200
199
|
else {
|
|
201
|
-
const
|
|
202
|
-
if (
|
|
203
|
-
const M =
|
|
204
|
-
S = `${
|
|
200
|
+
const I = S.split(".");
|
|
201
|
+
if (I.length > 1) {
|
|
202
|
+
const M = I.at(1)?.slice(0, Math.min(g, Wn));
|
|
203
|
+
S = `${I.at(0)}.${M}`;
|
|
205
204
|
}
|
|
206
205
|
}
|
|
207
206
|
return l.transform?.(S) ?? S;
|
|
@@ -215,18 +214,18 @@ const H = (e = {}) => {
|
|
|
215
214
|
const M = new Event("input", { bubbles: !0 });
|
|
216
215
|
d.current.dispatchEvent(M);
|
|
217
216
|
}, y = (S) => {
|
|
218
|
-
const
|
|
219
|
-
if (D(
|
|
220
|
-
const M =
|
|
221
|
-
M !==
|
|
217
|
+
const I = d.current;
|
|
218
|
+
if (D(I)) return;
|
|
219
|
+
const M = I.valueAsNumber, V = Math.min(isNaN(M) ? e + i : M + i, o);
|
|
220
|
+
M !== V && R(V.toString());
|
|
222
221
|
}, T = (S) => {
|
|
223
|
-
const
|
|
224
|
-
if (D(
|
|
225
|
-
const M =
|
|
226
|
-
M !==
|
|
222
|
+
const I = d.current;
|
|
223
|
+
if (D(I)) return;
|
|
224
|
+
const M = I.valueAsNumber, V = Math.max(isNaN(M) ? e : M - i, e);
|
|
225
|
+
M !== V && R(V.toString());
|
|
227
226
|
};
|
|
228
227
|
return /* @__PURE__ */ t(
|
|
229
|
-
|
|
228
|
+
re,
|
|
230
229
|
{
|
|
231
230
|
...l,
|
|
232
231
|
css: {
|
|
@@ -240,7 +239,7 @@ const H = (e = {}) => {
|
|
|
240
239
|
}
|
|
241
240
|
},
|
|
242
241
|
prefix: l.prefix ?? (i > 0 ? /* @__PURE__ */ t(
|
|
243
|
-
|
|
242
|
+
B,
|
|
244
243
|
{
|
|
245
244
|
disabled: wt(n) && n <= e,
|
|
246
245
|
onClick: T,
|
|
@@ -248,7 +247,7 @@ const H = (e = {}) => {
|
|
|
248
247
|
children: /* @__PURE__ */ t(k, { source: jn })
|
|
249
248
|
}
|
|
250
249
|
) : null),
|
|
251
|
-
suffix: l.suffix ?? (i > 0 ? /* @__PURE__ */ t(
|
|
250
|
+
suffix: l.suffix ?? (i > 0 ? /* @__PURE__ */ t(B, { onClick: y, "aria-disabled": isNaN(h) ? !1 : h <= e, children: /* @__PURE__ */ t(k, { source: Ye }) }) : null),
|
|
252
251
|
type: "number",
|
|
253
252
|
value: c,
|
|
254
253
|
onChange: x,
|
|
@@ -260,7 +259,7 @@ const H = (e = {}) => {
|
|
|
260
259
|
}, We = ({ event: e = "click", reason: o, ref: r, ...n }) => {
|
|
261
260
|
const a = bt(null), {
|
|
262
261
|
context: { onOpenChange: i }
|
|
263
|
-
} =
|
|
262
|
+
} = $o(), s = Qt([r, a]);
|
|
264
263
|
return Me(() => {
|
|
265
264
|
const l = a.current;
|
|
266
265
|
if (!l) return;
|
|
@@ -295,8 +294,8 @@ const H = (e = {}) => {
|
|
|
295
294
|
value: e
|
|
296
295
|
}), h = Rt({
|
|
297
296
|
open: d,
|
|
298
|
-
onOpenChange: (S,
|
|
299
|
-
c(S), r?.(S,
|
|
297
|
+
onOpenChange: (S, I, M) => {
|
|
298
|
+
c(S), r?.(S, I, M);
|
|
300
299
|
},
|
|
301
300
|
placement: o,
|
|
302
301
|
middleware: [
|
|
@@ -304,20 +303,20 @@ const H = (e = {}) => {
|
|
|
304
303
|
Lt(),
|
|
305
304
|
en({
|
|
306
305
|
apply({ elements: S }) {
|
|
307
|
-
const
|
|
306
|
+
const I = {
|
|
308
307
|
zIndex: `${Xe}`,
|
|
309
308
|
minWidth: `${S.reference.getBoundingClientRect().width}px`
|
|
310
309
|
};
|
|
311
|
-
Object.assign(S.floating.style,
|
|
310
|
+
Object.assign(S.floating.style, I);
|
|
312
311
|
}
|
|
313
312
|
})
|
|
314
313
|
],
|
|
315
314
|
whileElementsMounted: yt
|
|
316
315
|
}), { context: C, refs: g } = h, m = tn(C, {
|
|
317
316
|
enabled: s === "click"
|
|
318
|
-
}), x =
|
|
317
|
+
}), x = cr(C, {
|
|
319
318
|
enabled: s === "hover",
|
|
320
|
-
handleClose:
|
|
319
|
+
handleClose: ur()
|
|
321
320
|
}), f = nn(
|
|
322
321
|
C,
|
|
323
322
|
zn(
|
|
@@ -335,8 +334,8 @@ const H = (e = {}) => {
|
|
|
335
334
|
);
|
|
336
335
|
return sn(() => {
|
|
337
336
|
Kt(i) || (g.setReference?.(i), C.onOpenChange(!D(i)));
|
|
338
|
-
}, [i]), /* @__PURE__ */ t(
|
|
339
|
-
}, _e = (e) =>
|
|
337
|
+
}, [i]), /* @__PURE__ */ t(_o.Provider, { value: T, children: a });
|
|
338
|
+
}, _e = (e) => hr() ? /* @__PURE__ */ t(An, { ...e }) : /* @__PURE__ */ t(pr, { children: /* @__PURE__ */ t(An, { ...e }) }), j = ({ defaultIndex: e, activeIndex: o, children: r, onTabChange: n, ...a }) => {
|
|
340
339
|
const [i, s] = Re({
|
|
341
340
|
defaultValue: e ?? 0,
|
|
342
341
|
value: o
|
|
@@ -346,7 +345,7 @@ const H = (e = {}) => {
|
|
|
346
345
|
activeIndex: i,
|
|
347
346
|
focusTab: l
|
|
348
347
|
}), [i]);
|
|
349
|
-
return /* @__PURE__ */ t(
|
|
348
|
+
return /* @__PURE__ */ t(Uo.Provider, { value: d, children: /* @__PURE__ */ t("div", { css: { display: "flex", flexDirection: "column" }, ...a, children: r }) });
|
|
350
349
|
}, P = ({ fill: e = !1, ...o }) => {
|
|
351
350
|
const { activeIndex: r, focusTab: n } = Zn(), a = Number(Ke(o, "data-tab-index")), i = (s) => {
|
|
352
351
|
n(a), o.onClick?.(s);
|
|
@@ -396,8 +395,8 @@ const H = (e = {}) => {
|
|
|
396
395
|
children: n
|
|
397
396
|
}
|
|
398
397
|
);
|
|
399
|
-
},
|
|
400
|
-
|
|
398
|
+
}, ea = ({ children: e, options: o, ...r }) => /* @__PURE__ */ t(
|
|
399
|
+
fr,
|
|
401
400
|
{
|
|
402
401
|
options: {
|
|
403
402
|
scrollbars: {
|
|
@@ -411,18 +410,18 @@ const H = (e = {}) => {
|
|
|
411
410
|
), Ie = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
412
411
|
<path d="M6 9L12 15L18 9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
413
412
|
</svg>
|
|
414
|
-
`,
|
|
413
|
+
`, ta = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
415
414
|
<path d="M10,18a1,1,0,0,1-.71-.29l-5-5a1,1,0,0,1,1.42-1.42L10,15.59l8.29-8.3a1,1,0,1,1,1.42,1.42l-9,9A1,1,0,0,1,10,18Z"></path>
|
|
416
|
-
</svg>`,
|
|
417
|
-
const a = bt(null), i = Qt([a, r]), s =
|
|
415
|
+
</svg>`, na = ({ RowComponent: e, options: o, ref: r, ...n }) => {
|
|
416
|
+
const a = bt(null), i = Qt([a, r]), s = Cr({
|
|
418
417
|
...o,
|
|
419
418
|
getScrollElement: () => {
|
|
420
419
|
const c = a.current?.getElement()?.firstElementChild;
|
|
421
420
|
return c instanceof HTMLDivElement ? c : null;
|
|
422
421
|
}
|
|
423
422
|
}), l = s.getVirtualItems(), d = s.getTotalSize();
|
|
424
|
-
return /* @__PURE__ */ t(
|
|
425
|
-
|
|
423
|
+
return /* @__PURE__ */ t(ea, { ...n, ref: i, children: /* @__PURE__ */ t(
|
|
424
|
+
Go.div,
|
|
426
425
|
{
|
|
427
426
|
initial: { opacity: 0 },
|
|
428
427
|
animate: { opacity: 1 },
|
|
@@ -457,31 +456,30 @@ const H = (e = {}) => {
|
|
|
457
456
|
placeholder: g,
|
|
458
457
|
prefix: m,
|
|
459
458
|
suffix: x,
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
} = e, [M, O] = Re({
|
|
459
|
+
size: f = "32",
|
|
460
|
+
listProps: R,
|
|
461
|
+
selectedRenderer: y,
|
|
462
|
+
checkedIcon: T,
|
|
463
|
+
...S
|
|
464
|
+
} = e, [I, M] = Re({
|
|
467
465
|
defaultValue: !1,
|
|
468
466
|
value: n
|
|
469
|
-
}), [
|
|
467
|
+
}), [V, se] = Re({
|
|
470
468
|
defaultValue: p,
|
|
471
469
|
value: l
|
|
472
|
-
}),
|
|
473
|
-
!F && !me || (
|
|
474
|
-
}, { refs:
|
|
475
|
-
open:
|
|
476
|
-
onOpenChange:
|
|
470
|
+
}), pe = (F, X, me) => {
|
|
471
|
+
!F && !me || (M(F), a?.(F, X, me));
|
|
472
|
+
}, { refs: ke, floatingStyles: qe, context: Be } = Rt({
|
|
473
|
+
open: I,
|
|
474
|
+
onOpenChange: pe,
|
|
477
475
|
placement: o,
|
|
478
476
|
middleware: [
|
|
479
477
|
Lt(),
|
|
480
478
|
St(4),
|
|
481
479
|
en({
|
|
482
480
|
apply({ elements: F }) {
|
|
483
|
-
const { width:
|
|
484
|
-
minWidth: `${me ??
|
|
481
|
+
const { width: X } = F.reference.getBoundingClientRect(), me = r === "fit-parent" ? X : r, at = {
|
|
482
|
+
minWidth: `${me ?? X}px`,
|
|
485
483
|
width: Kt(me) ? me : `${me}px`,
|
|
486
484
|
zIndex: Xe
|
|
487
485
|
};
|
|
@@ -490,27 +488,27 @@ const H = (e = {}) => {
|
|
|
490
488
|
})
|
|
491
489
|
],
|
|
492
490
|
whileElementsMounted: yt
|
|
493
|
-
}),
|
|
491
|
+
}), Ee = tn(Be), q = nn(Be, i), J = on(Be), { getReferenceProps: ge, getFloatingProps: Ot } = rn([Ee, q, J]), rt = Pn(
|
|
494
492
|
(F) => typeof d == "function" ? d(F) : Ke(F, d ?? "value"),
|
|
495
493
|
[d]
|
|
496
494
|
), Bn = Pn(
|
|
497
495
|
(F) => typeof c == "function" ? c(F) : Ke(F, c ?? "label"),
|
|
498
496
|
[c]
|
|
499
|
-
),
|
|
500
|
-
const
|
|
501
|
-
|
|
497
|
+
), Ao = (F) => {
|
|
498
|
+
const X = rt(F);
|
|
499
|
+
X !== V && (se(X), C?.(X, F), M(!1));
|
|
502
500
|
}, Dt = xt(
|
|
503
|
-
() => h.find((F) =>
|
|
504
|
-
[rt, h,
|
|
505
|
-
),
|
|
506
|
-
const
|
|
507
|
-
if (D(
|
|
508
|
-
const me = rt(
|
|
501
|
+
() => h.find((F) => V === rt(F)),
|
|
502
|
+
[rt, h, V]
|
|
503
|
+
), Eo = ({ row: F }) => {
|
|
504
|
+
const X = h.at(F.index);
|
|
505
|
+
if (D(X)) return /* @__PURE__ */ t(Pe, {});
|
|
506
|
+
const me = rt(X), at = V === me;
|
|
509
507
|
return /* @__PURE__ */ u(
|
|
510
508
|
"div",
|
|
511
509
|
{
|
|
512
|
-
onClick: (
|
|
513
|
-
|
|
510
|
+
onClick: (dl) => {
|
|
511
|
+
Ao(X);
|
|
514
512
|
},
|
|
515
513
|
"aria-hidden": !0,
|
|
516
514
|
css: [
|
|
@@ -528,8 +526,8 @@ const H = (e = {}) => {
|
|
|
528
526
|
at && { backgroundColor: v.palette.black["7s"] }
|
|
529
527
|
],
|
|
530
528
|
children: [
|
|
531
|
-
/* @__PURE__ */ t("div", { css: { flex: 1, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: Bn(
|
|
532
|
-
at && (
|
|
529
|
+
/* @__PURE__ */ t("div", { css: { flex: 1, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: Bn(X) }),
|
|
530
|
+
at && (T ?? /* @__PURE__ */ t(k, { size: 16, source: ta }))
|
|
533
531
|
]
|
|
534
532
|
}
|
|
535
533
|
);
|
|
@@ -538,11 +536,10 @@ const H = (e = {}) => {
|
|
|
538
536
|
/* @__PURE__ */ u(
|
|
539
537
|
"button",
|
|
540
538
|
{
|
|
541
|
-
className: f,
|
|
542
539
|
css: [
|
|
543
540
|
{
|
|
544
541
|
...v.text.xs,
|
|
545
|
-
height: Number(
|
|
542
|
+
height: Number(f),
|
|
546
543
|
display: "inline-flex",
|
|
547
544
|
position: "relative",
|
|
548
545
|
paddingInline: 8,
|
|
@@ -563,7 +560,7 @@ const H = (e = {}) => {
|
|
|
563
560
|
borderColor: "transparent"
|
|
564
561
|
}
|
|
565
562
|
},
|
|
566
|
-
|
|
563
|
+
I && {
|
|
567
564
|
backgroundColor: v.palette.black["7s"],
|
|
568
565
|
"&::after": {
|
|
569
566
|
content: '""',
|
|
@@ -577,33 +574,33 @@ const H = (e = {}) => {
|
|
|
577
574
|
}
|
|
578
575
|
}
|
|
579
576
|
],
|
|
580
|
-
...
|
|
581
|
-
...
|
|
582
|
-
ref:
|
|
577
|
+
...S,
|
|
578
|
+
...ge(),
|
|
579
|
+
ref: ke.setReference,
|
|
583
580
|
children: [
|
|
584
581
|
m,
|
|
585
|
-
/* @__PURE__ */ t("div", { css: { flex: 1, textAlign: "left", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: Dt ?
|
|
582
|
+
/* @__PURE__ */ t("div", { css: { flex: 1, textAlign: "left", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: Dt ? y?.(Dt) ?? Bn(Dt) : /* @__PURE__ */ t("span", { css: { color: v.palette.white["3s"] }, children: g }) }),
|
|
586
583
|
x ?? /* @__PURE__ */ t(
|
|
587
584
|
k,
|
|
588
585
|
{
|
|
589
586
|
source: Ie,
|
|
590
|
-
css: [{ transition: "transform" },
|
|
587
|
+
css: [{ transition: "transform" }, I && { transform: "rotate(-180deg)" }],
|
|
591
588
|
size: 16
|
|
592
589
|
}
|
|
593
590
|
)
|
|
594
591
|
]
|
|
595
592
|
}
|
|
596
593
|
),
|
|
597
|
-
|
|
594
|
+
I && /* @__PURE__ */ t(an, { root: document.body, children: /* @__PURE__ */ t(
|
|
598
595
|
"div",
|
|
599
596
|
{
|
|
600
|
-
ref:
|
|
597
|
+
ref: ke.setFloating,
|
|
601
598
|
css: { borderRadius: 8, backgroundColor: v.palette.ink["6s"] },
|
|
602
599
|
style: {
|
|
603
600
|
...qe,
|
|
604
601
|
zIndex: Xe
|
|
605
602
|
},
|
|
606
|
-
...
|
|
603
|
+
...Ot(),
|
|
607
604
|
children: /* @__PURE__ */ u(
|
|
608
605
|
"div",
|
|
609
606
|
{
|
|
@@ -618,21 +615,21 @@ const H = (e = {}) => {
|
|
|
618
615
|
...v.text.xs
|
|
619
616
|
},
|
|
620
617
|
children: [
|
|
621
|
-
s && /* @__PURE__ */ t("div", { css: { paddingInline: 8, marginBottom: 8 }, children: /* @__PURE__ */ t(
|
|
618
|
+
s && /* @__PURE__ */ t("div", { css: { paddingInline: 8, marginBottom: 8 }, children: /* @__PURE__ */ t(re, { fullWidth: !0, autoFocus: !0 }) }),
|
|
622
619
|
/* @__PURE__ */ t(
|
|
623
|
-
|
|
620
|
+
na,
|
|
624
621
|
{
|
|
625
|
-
RowComponent:
|
|
626
|
-
...
|
|
622
|
+
RowComponent: Eo,
|
|
623
|
+
...R,
|
|
627
624
|
css: { paddingInline: 4 },
|
|
628
625
|
style: {
|
|
629
626
|
// height: 160,
|
|
630
|
-
...
|
|
627
|
+
...R?.style
|
|
631
628
|
},
|
|
632
629
|
options: {
|
|
633
630
|
count: h.length,
|
|
634
631
|
estimateSize: () => 32,
|
|
635
|
-
...
|
|
632
|
+
...R?.options
|
|
636
633
|
}
|
|
637
634
|
}
|
|
638
635
|
)
|
|
@@ -642,13 +639,13 @@ const H = (e = {}) => {
|
|
|
642
639
|
}
|
|
643
640
|
) })
|
|
644
641
|
] });
|
|
645
|
-
},
|
|
646
|
-
const r =
|
|
642
|
+
}, oa = ({ children: e, ...o }) => {
|
|
643
|
+
const r = br(o);
|
|
647
644
|
return /* @__PURE__ */ u("div", { ...r.getRootProps(), children: [
|
|
648
645
|
e?.(r),
|
|
649
646
|
/* @__PURE__ */ t("input", { ...r.getInputProps() })
|
|
650
647
|
] });
|
|
651
|
-
},
|
|
648
|
+
}, ra = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
652
649
|
<path d="M16 2V6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
653
650
|
<path d="M8 2V6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
654
651
|
<path d="M3 9H21" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -659,7 +656,7 @@ const H = (e = {}) => {
|
|
|
659
656
|
<path d="M7.01304 16.729C6.87504 16.729 6.76304 16.841 6.76404 16.979C6.76404 17.117 6.87604 17.229 7.01404 17.229C7.15204 17.229 7.26404 17.117 7.26404 16.979C7.26404 16.841 7.15204 16.729 7.01304 16.729" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
660
657
|
<path d="M12.013 16.729C11.875 16.729 11.763 16.841 11.764 16.979C11.764 17.117 11.876 17.229 12.014 17.229C12.152 17.229 12.264 17.117 12.264 16.979C12.264 16.841 12.152 16.729 12.013 16.729" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
661
658
|
</svg>
|
|
662
|
-
`,
|
|
659
|
+
`, aa = (e) => {
|
|
663
660
|
const {
|
|
664
661
|
placement: o = "bottom",
|
|
665
662
|
contentWidth: r,
|
|
@@ -684,7 +681,7 @@ const H = (e = {}) => {
|
|
|
684
681
|
value: n
|
|
685
682
|
}), S = (q, J, ge) => {
|
|
686
683
|
!q && !ge || (T(q), a?.(q, J, ge));
|
|
687
|
-
}, { refs:
|
|
684
|
+
}, { refs: I, floatingStyles: M, context: V } = Rt({
|
|
688
685
|
open: y,
|
|
689
686
|
onOpenChange: S,
|
|
690
687
|
placement: o,
|
|
@@ -703,7 +700,7 @@ const H = (e = {}) => {
|
|
|
703
700
|
})
|
|
704
701
|
],
|
|
705
702
|
whileElementsMounted: yt
|
|
706
|
-
}),
|
|
703
|
+
}), se = tn(V), pe = nn(V, i), ke = on(V), { getReferenceProps: qe, getFloatingProps: Be } = rn([se, pe, ke]), Ee = (q) => {
|
|
707
704
|
q && (R(q), d?.(q));
|
|
708
705
|
};
|
|
709
706
|
return /* @__PURE__ */ u(ze, { children: [
|
|
@@ -751,11 +748,11 @@ const H = (e = {}) => {
|
|
|
751
748
|
}
|
|
752
749
|
],
|
|
753
750
|
...x,
|
|
754
|
-
...
|
|
751
|
+
...qe({
|
|
755
752
|
...p,
|
|
756
753
|
className: p?.className
|
|
757
754
|
}),
|
|
758
|
-
ref:
|
|
755
|
+
ref: I.setReference,
|
|
759
756
|
children: [
|
|
760
757
|
h,
|
|
761
758
|
/* @__PURE__ */ t("div", { css: { flex: 1, textAlign: "left", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: f ? /* @__PURE__ */ t("span", { children: new Intl.DateTimeFormat(void 0, {
|
|
@@ -763,19 +760,19 @@ const H = (e = {}) => {
|
|
|
763
760
|
timeStyle: "short",
|
|
764
761
|
hour12: !1
|
|
765
762
|
}).format(f) }) : /* @__PURE__ */ t("span", { children: c }) }),
|
|
766
|
-
C ?? /* @__PURE__ */ t(k, { source:
|
|
763
|
+
C ?? /* @__PURE__ */ t(k, { source: ra, size: 16 })
|
|
767
764
|
]
|
|
768
765
|
}
|
|
769
766
|
),
|
|
770
767
|
y && /* @__PURE__ */ t(an, { root: document.body, children: /* @__PURE__ */ t(
|
|
771
768
|
"div",
|
|
772
769
|
{
|
|
773
|
-
ref:
|
|
770
|
+
ref: I.setFloating,
|
|
774
771
|
style: {
|
|
775
772
|
...M,
|
|
776
773
|
zIndex: Xe
|
|
777
774
|
},
|
|
778
|
-
...
|
|
775
|
+
...Be(),
|
|
779
776
|
children: /* @__PURE__ */ t(
|
|
780
777
|
"div",
|
|
781
778
|
{
|
|
@@ -786,7 +783,7 @@ const H = (e = {}) => {
|
|
|
786
783
|
borderRadius: 8,
|
|
787
784
|
...v.text.xs
|
|
788
785
|
},
|
|
789
|
-
children: /* @__PURE__ */ t(
|
|
786
|
+
children: /* @__PURE__ */ t(xr, { showTimeInput: m, selected: f, onChange: Ee, inline: !0 })
|
|
790
787
|
}
|
|
791
788
|
)
|
|
792
789
|
}
|
|
@@ -797,11 +794,11 @@ const H = (e = {}) => {
|
|
|
797
794
|
o({ screen: n.currentTarget.getAttribute("value") });
|
|
798
795
|
};
|
|
799
796
|
return /* @__PURE__ */ t("div", { children: /* @__PURE__ */ u(_e, { children: [
|
|
800
|
-
/* @__PURE__ */ t(Fe, { children: /* @__PURE__ */ t(
|
|
797
|
+
/* @__PURE__ */ t(Fe, { children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(k, { source: Ut.find((n) => n.size === e)?.icon ?? "" }) }) }),
|
|
801
798
|
/* @__PURE__ */ t(je, { children: Ut.map((n) => /* @__PURE__ */ t(Ze, { isActive: n.size === e, value: n.size, onClick: r, children: /* @__PURE__ */ t(k, { source: n.icon }) }, n.size)) })
|
|
802
799
|
] }) });
|
|
803
|
-
},
|
|
804
|
-
const o =
|
|
800
|
+
}, ia = (e) => {
|
|
801
|
+
const o = Zo(e ?? "");
|
|
805
802
|
return isNaN(o) ? void 0 : o;
|
|
806
803
|
}, qn = ({
|
|
807
804
|
units: e = ["px", "%"],
|
|
@@ -816,12 +813,12 @@ const H = (e = {}) => {
|
|
|
816
813
|
d(s);
|
|
817
814
|
}, [s]);
|
|
818
815
|
const c = ({ value: m, unit: x }) => {
|
|
819
|
-
if (D(m) || D(x) || x ===
|
|
816
|
+
if (D(m) || D(x) || x === Qr) {
|
|
820
817
|
n?.(m);
|
|
821
818
|
return;
|
|
822
819
|
}
|
|
823
820
|
n?.(`${m}${x}`);
|
|
824
|
-
}, p =
|
|
821
|
+
}, p = ia(r?.toString()), h = (m) => {
|
|
825
822
|
m.stopPropagation();
|
|
826
823
|
const x = m.currentTarget.value;
|
|
827
824
|
x !== l && (d(m.currentTarget.value), c({ value: a[x], unit: x }));
|
|
@@ -839,7 +836,7 @@ const H = (e = {}) => {
|
|
|
839
836
|
{
|
|
840
837
|
size: o,
|
|
841
838
|
suffix: /* @__PURE__ */ t("div", { css: { display: "inline-flex", alignItems: "center", gap: 4 }, children: e.map((m) => /* @__PURE__ */ t(
|
|
842
|
-
|
|
839
|
+
B,
|
|
843
840
|
{
|
|
844
841
|
onClick: h,
|
|
845
842
|
value: m,
|
|
@@ -907,8 +904,8 @@ const H = (e = {}) => {
|
|
|
907
904
|
backgroundColor: v.palette.white["1s"]
|
|
908
905
|
},
|
|
909
906
|
children: [
|
|
910
|
-
/* @__PURE__ */ t(
|
|
911
|
-
|
|
907
|
+
/* @__PURE__ */ t(qo, { isLoading: i, children: /* @__PURE__ */ t(
|
|
908
|
+
vr,
|
|
912
909
|
{
|
|
913
910
|
accept: {
|
|
914
911
|
"image/png": [".png"],
|
|
@@ -993,7 +990,7 @@ const H = (e = {}) => {
|
|
|
993
990
|
}
|
|
994
991
|
) }),
|
|
995
992
|
/* @__PURE__ */ t(
|
|
996
|
-
|
|
993
|
+
re,
|
|
997
994
|
{
|
|
998
995
|
onChange: p,
|
|
999
996
|
title: n,
|
|
@@ -1022,7 +1019,7 @@ const H = (e = {}) => {
|
|
|
1022
1019
|
css: { display: "flex", alignItems: "center", gap: 8, ...v.text.xs, color: v.palette.white["5s"] },
|
|
1023
1020
|
children: [
|
|
1024
1021
|
e,
|
|
1025
|
-
!!a && /* @__PURE__ */ t(
|
|
1022
|
+
!!a && /* @__PURE__ */ t(Ur, { placement: "top-start", content: a, children: /* @__PURE__ */ t(k, { css: { cursor: "pointer" }, size: 16, source: Jo }) })
|
|
1026
1023
|
]
|
|
1027
1024
|
}
|
|
1028
1025
|
),
|
|
@@ -1031,7 +1028,7 @@ const H = (e = {}) => {
|
|
|
1031
1028
|
r
|
|
1032
1029
|
]
|
|
1033
1030
|
}
|
|
1034
|
-
),
|
|
1031
|
+
), sa = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1035
1032
|
<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"/>
|
|
1036
1033
|
<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"/>
|
|
1037
1034
|
<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"/>
|
|
@@ -1040,7 +1037,7 @@ const H = (e = {}) => {
|
|
|
1040
1037
|
`, w = ({ name: e, children: o, responsive: r, slots: n }) => /* @__PURE__ */ u("div", { css: { display: "flex", paddingBlock: 8, flexDirection: "column", gap: 8 }, children: [
|
|
1041
1038
|
/* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
1042
1039
|
/* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
1043
|
-
/* @__PURE__ */ t(k, { source:
|
|
1040
|
+
/* @__PURE__ */ t(k, { source: sa }),
|
|
1044
1041
|
/* @__PURE__ */ t(
|
|
1045
1042
|
"span",
|
|
1046
1043
|
{
|
|
@@ -1056,7 +1053,7 @@ const H = (e = {}) => {
|
|
|
1056
1053
|
/* @__PURE__ */ t("div", { css: { display: "flex", flex: 1, alignItems: "center", justifyContent: "flex-end" }, children: n?.right })
|
|
1057
1054
|
] }),
|
|
1058
1055
|
/* @__PURE__ */ t("div", { css: { display: "flex", flexDirection: "column", gap: 16 }, children: o })
|
|
1059
|
-
] }),
|
|
1056
|
+
] }), la = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1060
1057
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.221 4.29206V4.29206C19.438 3.50906 18.183 3.46806 17.35 4.19606L9.31298 11.2281C8.44198 11.9901 8.39798 13.3291 9.21598 14.1471L10.365 15.2961C11.183 16.1141 12.523 16.0691 13.284 15.1991L20.316 7.16206C21.045 6.33006 21.003 5.07506 20.221 4.29206V4.29206Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1061
1058
|
<path d="M10.87 9.87012L14.65 13.6501" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1062
1059
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.59903 20.3231H7.30203C10.287 20.3231 11.782 16.7141 9.67103 14.6031V14.6031C8.11903 13.0511 5.48303 13.6221 4.71303 15.6771L3.19103 19.7351C3.08503 20.0201 3.29503 20.3231 3.59903 20.3231Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -1072,8 +1069,8 @@ const H = (e = {}) => {
|
|
|
1072
1069
|
<path d="M16 6V12C16 14.2091 14.2091 16 12 16V16C9.79086 16 8 14.2091 8 12V6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1073
1070
|
<path d="M7 19H17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1074
1071
|
</svg>
|
|
1075
|
-
`,
|
|
1076
|
-
const [o, r] = E(!1), { nodeDOM: n } =
|
|
1072
|
+
`, da = ({ editor: e }) => {
|
|
1073
|
+
const [o, r] = E(!1), { nodeDOM: n } = ne((c) => ({
|
|
1077
1074
|
nodeDOM: c.dom
|
|
1078
1075
|
}));
|
|
1079
1076
|
Me(() => {
|
|
@@ -1084,7 +1081,7 @@ const H = (e = {}) => {
|
|
|
1084
1081
|
e.off("selectionUpdate", c);
|
|
1085
1082
|
};
|
|
1086
1083
|
}, [e]);
|
|
1087
|
-
const a =
|
|
1084
|
+
const a = Do({
|
|
1088
1085
|
editor: e,
|
|
1089
1086
|
selector(c) {
|
|
1090
1087
|
return {
|
|
@@ -1142,7 +1139,7 @@ const H = (e = {}) => {
|
|
|
1142
1139
|
) }),
|
|
1143
1140
|
/* @__PURE__ */ t("div", { css: { height: 20, width: 1, backgroundColor: v.palette.white["1s"] } }),
|
|
1144
1141
|
/* @__PURE__ */ t(
|
|
1145
|
-
|
|
1142
|
+
B,
|
|
1146
1143
|
{
|
|
1147
1144
|
title: "Bold",
|
|
1148
1145
|
size: "28",
|
|
@@ -1153,7 +1150,7 @@ const H = (e = {}) => {
|
|
|
1153
1150
|
}
|
|
1154
1151
|
),
|
|
1155
1152
|
/* @__PURE__ */ t(
|
|
1156
|
-
|
|
1153
|
+
B,
|
|
1157
1154
|
{
|
|
1158
1155
|
size: "28",
|
|
1159
1156
|
title: "Italic",
|
|
@@ -1164,7 +1161,7 @@ const H = (e = {}) => {
|
|
|
1164
1161
|
}
|
|
1165
1162
|
),
|
|
1166
1163
|
/* @__PURE__ */ t(
|
|
1167
|
-
|
|
1164
|
+
B,
|
|
1168
1165
|
{
|
|
1169
1166
|
size: "28",
|
|
1170
1167
|
title: "Underline",
|
|
@@ -1182,7 +1179,7 @@ const H = (e = {}) => {
|
|
|
1182
1179
|
placement: "bottom",
|
|
1183
1180
|
color: s,
|
|
1184
1181
|
onChange: l,
|
|
1185
|
-
children: /* @__PURE__ */ t(
|
|
1182
|
+
children: /* @__PURE__ */ t(B, { size: "28", title: "Underline", children: /* @__PURE__ */ u(
|
|
1186
1183
|
"div",
|
|
1187
1184
|
{
|
|
1188
1185
|
css: {
|
|
@@ -1195,7 +1192,7 @@ const H = (e = {}) => {
|
|
|
1195
1192
|
height: 20
|
|
1196
1193
|
},
|
|
1197
1194
|
children: [
|
|
1198
|
-
/* @__PURE__ */ t(k, { size: 18, source:
|
|
1195
|
+
/* @__PURE__ */ t(k, { size: 18, source: la }),
|
|
1199
1196
|
/* @__PURE__ */ t(
|
|
1200
1197
|
"div",
|
|
1201
1198
|
{
|
|
@@ -1221,17 +1218,17 @@ const H = (e = {}) => {
|
|
|
1221
1218
|
]
|
|
1222
1219
|
}
|
|
1223
1220
|
);
|
|
1224
|
-
},
|
|
1225
|
-
const { document: n } = Yt(), a =
|
|
1221
|
+
}, Hl = ({ options: e, deps: o, ref: r }) => {
|
|
1222
|
+
const { document: n } = Yt(), a = Ho(
|
|
1226
1223
|
{
|
|
1227
1224
|
...e,
|
|
1228
|
-
extensions: [
|
|
1225
|
+
extensions: [Fo, Vo, ...e?.extensions ?? []]
|
|
1229
1226
|
},
|
|
1230
1227
|
o
|
|
1231
1228
|
);
|
|
1232
1229
|
return /* @__PURE__ */ u(ze, { children: [
|
|
1233
1230
|
/* @__PURE__ */ t(
|
|
1234
|
-
|
|
1231
|
+
Oo,
|
|
1235
1232
|
{
|
|
1236
1233
|
css: {
|
|
1237
1234
|
".tiptap": {
|
|
@@ -1243,39 +1240,39 @@ const H = (e = {}) => {
|
|
|
1243
1240
|
}
|
|
1244
1241
|
),
|
|
1245
1242
|
/* @__PURE__ */ t(
|
|
1246
|
-
|
|
1243
|
+
zo,
|
|
1247
1244
|
{
|
|
1248
1245
|
appendTo: document.body,
|
|
1249
1246
|
getReferencedVirtualElement: () => n?.activeElement ?? null,
|
|
1250
1247
|
editor: a,
|
|
1251
|
-
children: /* @__PURE__ */ t(
|
|
1248
|
+
children: /* @__PURE__ */ t(da, { editor: a })
|
|
1252
1249
|
}
|
|
1253
1250
|
)
|
|
1254
1251
|
] });
|
|
1255
|
-
},
|
|
1252
|
+
}, ca = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.49995 2.99936L14.4999 2.99805C14.7761 2.99802 15 3.22185 15 3.49799C15 3.77413 14.7762 3.99802 14.5001 3.99805L2.50005 3.99936C2.22391 3.99939 2.00003 3.77556 2 3.49942C1.99997 3.22327 2.2238 2.99939 2.49995 2.99936Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.97492 6.00077L12.025 6C12.3012 5.99997 12.5251 6.2238 12.5251 6.49994C12.5251 6.77609 12.3013 6.99997 12.0251 7L4.97503 7.00077C4.69889 7.0008 4.47501 6.77697 4.47498 6.50083C4.47495 6.22468 4.69878 6.0008 4.97492 6.00077Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.97492 12.0027L12.025 12.002C12.3012 12.0019 12.5251 12.2258 12.5251 12.5019C12.5251 12.778 12.3013 13.0019 12.0251 13.002L4.97503 13.0027C4.69889 13.0028 4.47501 12.7789 4.47498 12.5028C4.47495 12.2266 4.69878 12.0028 4.97492 12.0027Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M3.52704 9.00109L13.4728 9C13.749 8.99997 13.9729 9.2238 13.9729 9.49994C13.9729 9.77609 13.7491 9.99997 13.473 10L3.52715 10.0011C3.25101 10.0011 3.02713 9.77729 3.0271 9.50114C3.02707 9.225 3.2509 9.00112 3.52704 9.00109Z" fill="currentColor"></path></svg></svg>', ua = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.49995 2.99741L14.4999 2.99609C14.7761 2.99606 15 3.2199 15 3.49604C15 3.77218 14.7762 3.99606 14.5001 3.99609L2.50005 3.99741C2.22391 3.99744 2.00003 3.77361 2 3.49746C1.99997 3.22132 2.2238 2.99744 2.49995 2.99741Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M2.49995 5.99936L14.4999 5.99805C14.7761 5.99802 15 6.22185 15 6.49799C15 6.77413 14.7762 6.99802 14.5001 6.99805L2.50005 6.99936C2.22391 6.99939 2.00003 6.77556 2 6.49942C1.99997 6.22327 2.2238 5.99939 2.49995 5.99936Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M2.49995 12.0029L11.5045 12.002C11.7806 12.0019 12.0045 12.2258 12.0045 12.5019C12.0045 12.778 11.7807 13.0019 11.5046 13.002L2.50005 13.0029C2.22391 13.003 2.00003 12.7791 2 12.503C1.99997 12.2269 2.2238 12.003 2.49995 12.0029Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M2.49995 9.00131L14.4999 9C14.7761 8.99997 15 9.2238 15 9.49995C15 9.77609 14.7762 9.99997 14.5001 10L2.50005 10.0013C2.22391 10.0013 2.00003 9.77751 2 9.50137C1.99997 9.22523 2.2238 9.00134 2.49995 9.00131Z" fill="currentColor"></path></svg></svg>', ha = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.49995 2.99936L14.4999 2.99805C14.7761 2.99802 15 3.22185 15 3.49799C15 3.77413 14.7762 3.99802 14.5001 3.99805L2.50005 3.99936C2.22391 3.99939 2.00003 3.77556 2 3.49942C1.99997 3.22327 2.2238 2.99939 2.49995 2.99936Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M2.49995 6.00077L9.55005 6C9.8262 5.99997 10.0501 6.2238 10.0501 6.49994C10.0501 6.77609 9.82631 6.99997 9.55016 7L2.50005 7.00077C2.22391 7.0008 2.00003 6.77697 2 6.50083C1.99997 6.22468 2.2238 6.0008 2.49995 6.00077Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M2.49995 12.0027L9.55005 12.002C9.8262 12.0019 10.0501 12.2258 10.0501 12.5019C10.0501 12.778 9.82631 13.0019 9.55016 13.002L2.50005 13.0027C2.22391 13.0028 2.00003 12.7789 2 12.5028C1.99997 12.2266 2.2238 12.0028 2.49995 12.0027Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M2.49995 9.00109L12.4457 9C12.7219 8.99997 12.9458 9.2238 12.9458 9.49994C12.9458 9.77609 12.722 9.99997 12.4459 10L2.50005 10.0011C2.22391 10.0011 2.00003 9.77729 2 9.50114C1.99997 9.225 2.2238 9.00112 2.49995 9.00109Z" fill="currentColor"></path></svg></svg>', pa = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.49995 2.99936L14.4999 2.99805C14.7761 2.99802 15 3.22185 15 3.49799C15 3.77413 14.7762 3.99802 14.5001 3.99805L2.50005 3.99936C2.22391 3.99939 2.00003 3.77556 2 3.49942C1.99997 3.22327 2.2238 2.99939 2.49995 2.99936Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M7.4499 6.00077L14.5 6C14.7761 5.99997 15 6.2238 15.0001 6.49994C15.0001 6.77609 14.7763 6.99997 14.5001 7L7.45001 7.00077C7.17386 7.0008 6.94998 6.77697 6.94995 6.50083C6.94992 6.22468 7.17375 6.0008 7.4499 6.00077Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M7.4499 12.0027L14.5 12.002C14.7761 12.0019 15 12.2258 15.0001 12.5019C15.0001 12.778 14.7763 13.0019 14.5001 13.002L7.45001 13.0027C7.17386 13.0028 6.94998 12.7789 6.94995 12.5028C6.94992 12.2266 7.17375 12.0028 7.4499 12.0027Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.55414 9.00109L14.4999 9C14.7761 8.99997 15 9.2238 15 9.49994C15 9.77609 14.7762 9.99997 14.5001 10L4.55425 10.0011C4.27811 10.0011 4.05423 9.77729 4.0542 9.50114C4.05417 9.225 4.278 9.00112 4.55414 9.00109Z" fill="currentColor"></path></svg></svg>', eo = ({ value: e, onChange: o, label: r }) => {
|
|
1256
1253
|
const n = [
|
|
1257
1254
|
{
|
|
1258
|
-
icon:
|
|
1255
|
+
icon: ha,
|
|
1259
1256
|
value: "left"
|
|
1260
1257
|
},
|
|
1261
1258
|
{
|
|
1262
|
-
icon:
|
|
1259
|
+
icon: ca,
|
|
1263
1260
|
value: "center"
|
|
1264
1261
|
},
|
|
1265
1262
|
{
|
|
1266
|
-
icon:
|
|
1263
|
+
icon: pa,
|
|
1267
1264
|
value: "right"
|
|
1268
1265
|
},
|
|
1269
1266
|
{
|
|
1270
|
-
icon:
|
|
1267
|
+
icon: ua,
|
|
1271
1268
|
value: "justify"
|
|
1272
1269
|
}
|
|
1273
1270
|
];
|
|
1274
|
-
return /* @__PURE__ */ t(L, { name: r ?? "Text align", responsive: !0, children: /* @__PURE__ */ t(
|
|
1271
|
+
return /* @__PURE__ */ t(L, { name: r ?? "Text align", responsive: !0, children: /* @__PURE__ */ t(Q, { onSelectionChange: (i) => {
|
|
1275
1272
|
o?.({
|
|
1276
1273
|
textAlign: i
|
|
1277
1274
|
});
|
|
1278
|
-
}, value: e?.textAlign, children: n.map((i) => /* @__PURE__ */ t(
|
|
1275
|
+
}, value: e?.textAlign, children: n.map((i) => /* @__PURE__ */ t(B, { value: i.value, children: /* @__PURE__ */ t(k, { source: i.icon }) }, i.value)) }) });
|
|
1279
1276
|
}, Tt = ({ value: e, onChange: o, name: r, responsive: n }) => {
|
|
1280
1277
|
const a = () => {
|
|
1281
1278
|
o?.({
|
|
@@ -1295,7 +1292,7 @@ const H = (e = {}) => {
|
|
|
1295
1292
|
};
|
|
1296
1293
|
return /* @__PURE__ */ t(L, { name: r ?? "Text Style", responsive: n, children: /* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
1297
1294
|
/* @__PURE__ */ t(
|
|
1298
|
-
|
|
1295
|
+
B,
|
|
1299
1296
|
{
|
|
1300
1297
|
onClick: a,
|
|
1301
1298
|
size: "28",
|
|
@@ -1304,7 +1301,7 @@ const H = (e = {}) => {
|
|
|
1304
1301
|
}
|
|
1305
1302
|
),
|
|
1306
1303
|
/* @__PURE__ */ t(
|
|
1307
|
-
|
|
1304
|
+
B,
|
|
1308
1305
|
{
|
|
1309
1306
|
onClick: i,
|
|
1310
1307
|
size: "28",
|
|
@@ -1313,7 +1310,7 @@ const H = (e = {}) => {
|
|
|
1313
1310
|
}
|
|
1314
1311
|
),
|
|
1315
1312
|
/* @__PURE__ */ t(
|
|
1316
|
-
|
|
1313
|
+
B,
|
|
1317
1314
|
{
|
|
1318
1315
|
onClick: s,
|
|
1319
1316
|
size: "28",
|
|
@@ -1341,11 +1338,11 @@ const H = (e = {}) => {
|
|
|
1341
1338
|
example: "aa"
|
|
1342
1339
|
}
|
|
1343
1340
|
];
|
|
1344
|
-
return /* @__PURE__ */ t(L, { name: r ?? "Text Transform", responsive: n, children: /* @__PURE__ */ t(
|
|
1341
|
+
return /* @__PURE__ */ t(L, { name: r ?? "Text Transform", responsive: n, children: /* @__PURE__ */ t(Q, { onSelectionChange: (s) => {
|
|
1345
1342
|
o?.({
|
|
1346
1343
|
textTransform: s === "none" ? void 0 : s
|
|
1347
1344
|
});
|
|
1348
|
-
}, value: e?.textTransform, children: a.map((s) => /* @__PURE__ */ t(
|
|
1345
|
+
}, value: e?.textTransform, children: a.map((s) => /* @__PURE__ */ t(B, { value: s.value, children: s.icon ? /* @__PURE__ */ t(k, { source: s.icon }) : /* @__PURE__ */ t(
|
|
1349
1346
|
"span",
|
|
1350
1347
|
{
|
|
1351
1348
|
css: {
|
|
@@ -1355,7 +1352,7 @@ const H = (e = {}) => {
|
|
|
1355
1352
|
children: s.example
|
|
1356
1353
|
}
|
|
1357
1354
|
) }, s.value)) }) });
|
|
1358
|
-
},
|
|
1355
|
+
}, ee = ({ name: e, value: o, onChange: r, responsive: n = !0, menu: a }) => {
|
|
1359
1356
|
const i = bt(null), [s, l] = E(!1), d = (f) => {
|
|
1360
1357
|
r?.({
|
|
1361
1358
|
width: f
|
|
@@ -1412,7 +1409,7 @@ const H = (e = {}) => {
|
|
|
1412
1409
|
value: f.value,
|
|
1413
1410
|
children: [
|
|
1414
1411
|
f.label,
|
|
1415
|
-
f.clearable && o?.width === f.value && /* @__PURE__ */ t(
|
|
1412
|
+
f.clearable && o?.width === f.value && /* @__PURE__ */ t(B, { onClick: x, size: "20", children: /* @__PURE__ */ t(k, { size: 16, source: ae }) })
|
|
1416
1413
|
]
|
|
1417
1414
|
},
|
|
1418
1415
|
f.value
|
|
@@ -1480,7 +1477,7 @@ const H = (e = {}) => {
|
|
|
1480
1477
|
value: f.value,
|
|
1481
1478
|
children: [
|
|
1482
1479
|
f.label,
|
|
1483
|
-
f.clearable && o?.height === f.value && /* @__PURE__ */ t(
|
|
1480
|
+
f.clearable && o?.height === f.value && /* @__PURE__ */ t(B, { onClick: x, size: "20", children: /* @__PURE__ */ t(k, { size: 16, source: ae }) })
|
|
1484
1481
|
]
|
|
1485
1482
|
},
|
|
1486
1483
|
f.value
|
|
@@ -1494,36 +1491,36 @@ const H = (e = {}) => {
|
|
|
1494
1491
|
});
|
|
1495
1492
|
};
|
|
1496
1493
|
return /* @__PURE__ */ t(L, { name: e ?? "Color", responsive: o, children: /* @__PURE__ */ t($e, { color: r?.color, onChange: a }) });
|
|
1497
|
-
},
|
|
1498
|
-
const r = kt(), n = _n(
|
|
1494
|
+
}, ga = ({ value: e, onChange: o }) => {
|
|
1495
|
+
const r = kt(), n = _n(mr), a = (() => {
|
|
1499
1496
|
const s = Object.keys(n).find((l) => n[l] === e?.backgroundColor);
|
|
1500
1497
|
return s ? Ke(r.theme.palette, s) : e?.backgroundColor;
|
|
1501
1498
|
})();
|
|
1502
1499
|
return /* @__PURE__ */ t(L, { name: "Color", children: /* @__PURE__ */ t($e, { color: a, onChange: (s) => {
|
|
1503
1500
|
o?.({ ...e, backgroundColor: s });
|
|
1504
1501
|
} }) });
|
|
1505
|
-
},
|
|
1502
|
+
}, ma = '<svg width="16" height="16" viewBox="0 0 15 4" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 0.5C0.5 0.223858 0.723858 0 1 0H4C4.27614 0 4.5 0.223858 4.5 0.5V3.5C4.5 3.77614 4.27614 4 4 4H1C0.723858 4 0.5 3.77614 0.5 3.5V0.5ZM1.5 1V3H3.5V1H1.5Z" fill="currentColor"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 0.5C5.5 0.223858 5.72386 0 6 0H9C9.27614 0 9.5 0.223858 9.5 0.5V3.5C9.5 3.77614 9.27614 4 9 4H6C5.72386 4 5.5 3.77614 5.5 3.5V0.5ZM6.5 1V3H8.5V1H6.5Z" fill="currentColor"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M11 0C10.7239 0 10.5 0.223858 10.5 0.5V3.5C10.5 3.77614 10.7239 4 11 4H14C14.2761 4 14.5 3.77614 14.5 3.5V0.5C14.5 0.223858 14.2761 0 14 0H11ZM11.5 3V1H13.5V3H11.5Z" fill="currentColor"></path> </svg>', fa = `<svg width="16" height="16" viewBox="0 0 5 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1506
1503
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 0.5C0.5 0.223858 0.723858 0 1 0H4C4.27614 0 4.5 0.223858 4.5 0.5V3.5C4.5 3.77614 4.27614 4 4 4H1C0.723858 4 0.5 3.77614 0.5 3.5V0.5ZM1.5 1V3H3.5V1H1.5Z" fill="currentColor"></path>
|
|
1507
1504
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 5.5C0.5 5.22386 0.723858 5 1 5H4C4.27614 5 4.5 5.22386 4.5 5.5V8.5C4.5 8.77614 4.27614 9 4 9H1C0.723858 9 0.5 8.77614 0.5 8.5V5.5ZM1.5 6V8H3.5V6H1.5Z" fill="currentColor"></path>
|
|
1508
1505
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M1 10C0.723858 10 0.5 10.2239 0.5 10.5V13.5C0.5 13.7761 0.723858 14 1 14H4C4.27614 14 4.5 13.7761 4.5 13.5V10.5C4.5 10.2239 4.27614 10 4 10H1ZM1.5 13V11H3.5V13H1.5Z" fill="currentColor"></path>
|
|
1509
|
-
</svg>`,
|
|
1506
|
+
</svg>`, Ca = '<svg width="16" height="16" viewBox="0 0 15 14" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 0.5C0.5 0.223858 0.723858 0 1 0H4C4.27614 0 4.5 0.223858 4.5 0.5V3.5C4.5 3.77614 4.27614 4 4 4H1C0.723858 4 0.5 3.77614 0.5 3.5V0.5ZM1.5 1V3H3.5V1H1.5Z" fill="currentColor"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 5.5C0.5 5.22386 0.723858 5 1 5H4C4.27614 5 4.5 5.22386 4.5 5.5V8.5C4.5 8.77614 4.27614 9 4 9H1C0.723858 9 0.5 8.77614 0.5 8.5V5.5ZM1.5 6V8H3.5V6H1.5Z" fill="currentColor"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M1 10C0.723858 10 0.5 10.2239 0.5 10.5V13.5C0.5 13.7761 0.723858 14 1 14H4C4.27614 14 4.5 13.7761 4.5 13.5V10.5C4.5 10.2239 4.27614 10 4 10H1ZM1.5 13V11H3.5V13H1.5Z" fill="currentColor"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 0.5C5.5 0.223858 5.72386 0 6 0H9C9.27614 0 9.5 0.223858 9.5 0.5V3.5C9.5 3.77614 9.27614 4 9 4H6C5.72386 4 5.5 3.77614 5.5 3.5V0.5ZM6.5 1V3H8.5V1H6.5Z" fill="currentColor"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M6 5C5.72386 5 5.5 5.22386 5.5 5.5V8.5C5.5 8.77614 5.72386 9 6 9H9C9.27614 9 9.5 8.77614 9.5 8.5V5.5C9.5 5.22386 9.27614 5 9 5H6ZM6.5 8V6H8.5V8H6.5Z" fill="currentColor"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 10.5C5.5 10.2239 5.72386 10 6 10H9C9.27614 10 9.5 10.2239 9.5 10.5V13.5C9.5 13.7761 9.27614 14 9 14H6C5.72386 14 5.5 13.7761 5.5 13.5V10.5ZM6.5 11V13H8.5V11H6.5Z" fill="currentColor"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M11 0C10.7239 0 10.5 0.223858 10.5 0.5V3.5C10.5 3.77614 10.7239 4 11 4H14C14.2761 4 14.5 3.77614 14.5 3.5V0.5C14.5 0.223858 14.2761 0 14 0H11ZM11.5 3V1H13.5V3H11.5Z" fill="currentColor"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M10.5 5.5C10.5 5.22386 10.7239 5 11 5H14C14.2761 5 14.5 5.22386 14.5 5.5V8.5C14.5 8.77614 14.2761 9 14 9H11C10.7239 9 10.5 8.77614 10.5 8.5V5.5ZM11.5 6V8H13.5V6H11.5Z" fill="currentColor"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M11 10C10.7239 10 10.5 10.2239 10.5 10.5V13.5C10.5 13.7761 10.7239 14 11 14H14C14.2761 14 14.5 13.7761 14.5 13.5V10.5C14.5 10.2239 14.2761 10 14 10H11ZM11.5 13V11H13.5V13H11.5Z" fill="currentColor"></path> </svg>', va = [
|
|
1510
1507
|
{
|
|
1511
1508
|
value: "no-repeat",
|
|
1512
1509
|
icon: un
|
|
1513
1510
|
},
|
|
1514
1511
|
{
|
|
1515
1512
|
value: "repeat-x",
|
|
1516
|
-
icon:
|
|
1513
|
+
icon: ma
|
|
1517
1514
|
},
|
|
1518
1515
|
{
|
|
1519
1516
|
value: "repeat-y",
|
|
1520
|
-
icon:
|
|
1517
|
+
icon: fa
|
|
1521
1518
|
},
|
|
1522
1519
|
{
|
|
1523
1520
|
value: "repeat",
|
|
1524
|
-
icon:
|
|
1521
|
+
icon: Ca
|
|
1525
1522
|
}
|
|
1526
|
-
],
|
|
1523
|
+
], ba = [
|
|
1527
1524
|
"left top",
|
|
1528
1525
|
"top",
|
|
1529
1526
|
"right top",
|
|
@@ -1533,7 +1530,7 @@ const H = (e = {}) => {
|
|
|
1533
1530
|
"left bottom",
|
|
1534
1531
|
"bottom",
|
|
1535
1532
|
"right bottom"
|
|
1536
|
-
],
|
|
1533
|
+
], xa = ["cover", "contain", "auto"], wa = [
|
|
1537
1534
|
{
|
|
1538
1535
|
value: "scroll",
|
|
1539
1536
|
label: "Scroll"
|
|
@@ -1546,7 +1543,7 @@ const H = (e = {}) => {
|
|
|
1546
1543
|
value: "local",
|
|
1547
1544
|
label: "Local"
|
|
1548
1545
|
}
|
|
1549
|
-
],
|
|
1546
|
+
], ka = `<svg width="24" height="24" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1550
1547
|
<circle cx="12.5" cy="12.5" r="1.5" fill="currentColor" stroke="currentColor" stroke-width="1.2"/>
|
|
1551
1548
|
</svg>`, to = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1552
1549
|
<path d="M22 21L15.3833 8.53125C15.2099 8.20436 14.8701 8 14.5 8C14.1299 8 13.7901 8.20436 13.6167 8.53125L7 21" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -1558,8 +1555,8 @@ const H = (e = {}) => {
|
|
|
1558
1555
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.43506 4.51868C9.35978 4.6148 10.0468 5.41892 9.99748 6.34731C9.94813 7.27571 9.1797 8.00245 8.25 8H4.5C3.67157 8 3 7.32843 3 6.5C3 5.67157 3.67157 5 4.5 5C4.49826 3.98978 5.25139 3.13744 6.25414 3.01479C7.2569 2.89214 8.19325 3.53782 8.43506 4.51868Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1559
1556
|
<path d="M9.95966 15.4228L8.378 12.5214C8.20283 12.2 7.86604 12 7.5 12C7.13396 12 6.79717 12.2 6.622 12.5214L2 21.0001" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1560
1557
|
</svg>
|
|
1561
|
-
`,
|
|
1562
|
-
const [r, n] =
|
|
1558
|
+
`, Ra = (e) => e?.match(/url\((['"]?)(https?:\/\/[^'")]+)\1\)/)?.at(2), ya = ({ onChange: e, value: o }) => {
|
|
1559
|
+
const [r, n] = gr(!1), a = o?.backgroundPosition ?? "center", i = o?.backgroundRepeat ?? "no-repeat", s = o?.backgroundSize ?? "cover", l = o?.backgroundAttachment ?? "scroll", d = (g) => {
|
|
1563
1560
|
e?.({
|
|
1564
1561
|
backgroundImage: g ? `url(${g})` : void 0,
|
|
1565
1562
|
backgroundPosition: a,
|
|
@@ -1597,12 +1594,12 @@ const H = (e = {}) => {
|
|
|
1597
1594
|
backgroundSize: s,
|
|
1598
1595
|
backgroundAttachment: l
|
|
1599
1596
|
},
|
|
1600
|
-
source:
|
|
1597
|
+
source: Ra(o?.backgroundImage),
|
|
1601
1598
|
onChange: d
|
|
1602
1599
|
}
|
|
1603
1600
|
),
|
|
1604
1601
|
/* @__PURE__ */ t(
|
|
1605
|
-
|
|
1602
|
+
Y,
|
|
1606
1603
|
{
|
|
1607
1604
|
suffix: /* @__PURE__ */ t(
|
|
1608
1605
|
k,
|
|
@@ -1616,7 +1613,7 @@ const H = (e = {}) => {
|
|
|
1616
1613
|
}
|
|
1617
1614
|
),
|
|
1618
1615
|
/* @__PURE__ */ t(Ve, { open: r, children: /* @__PURE__ */ u("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: [
|
|
1619
|
-
/* @__PURE__ */ t(L, { name: "Scale", children: /* @__PURE__ */ t("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children:
|
|
1616
|
+
/* @__PURE__ */ t(L, { name: "Scale", children: /* @__PURE__ */ t("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: xa.map((g) => {
|
|
1620
1617
|
const m = s === g;
|
|
1621
1618
|
return /* @__PURE__ */ t(
|
|
1622
1619
|
"button",
|
|
@@ -1701,10 +1698,10 @@ const H = (e = {}) => {
|
|
|
1701
1698
|
backgroundColor: v.palette.white["1s"],
|
|
1702
1699
|
gridTemplateColumns: "repeat(3, minmax(0, 1fr))"
|
|
1703
1700
|
},
|
|
1704
|
-
children:
|
|
1701
|
+
children: ba.map((g) => {
|
|
1705
1702
|
const m = a === g;
|
|
1706
1703
|
return /* @__PURE__ */ u(
|
|
1707
|
-
|
|
1704
|
+
B,
|
|
1708
1705
|
{
|
|
1709
1706
|
css: [
|
|
1710
1707
|
{ position: "relative" },
|
|
@@ -1716,7 +1713,7 @@ const H = (e = {}) => {
|
|
|
1716
1713
|
value: g,
|
|
1717
1714
|
size: "20",
|
|
1718
1715
|
children: [
|
|
1719
|
-
/* @__PURE__ */ t(k, { source:
|
|
1716
|
+
/* @__PURE__ */ t(k, { source: ka }),
|
|
1720
1717
|
m && /* @__PURE__ */ t(
|
|
1721
1718
|
"div",
|
|
1722
1719
|
{
|
|
@@ -1738,7 +1735,7 @@ const H = (e = {}) => {
|
|
|
1738
1735
|
})
|
|
1739
1736
|
}
|
|
1740
1737
|
) }),
|
|
1741
|
-
/* @__PURE__ */ t(L, { name: "Repeat", children: /* @__PURE__ */ t(
|
|
1738
|
+
/* @__PURE__ */ t(L, { name: "Repeat", children: /* @__PURE__ */ t(Q, { value: i, onSelectionChange: c, children: va.map((g) => /* @__PURE__ */ t(B, { value: g.value, children: /* @__PURE__ */ t(k, { source: g.icon }) }, g.value)) }) }),
|
|
1742
1739
|
/* @__PURE__ */ t(L, { name: "Attachment", children: /* @__PURE__ */ t(
|
|
1743
1740
|
be,
|
|
1744
1741
|
{
|
|
@@ -1747,7 +1744,7 @@ const H = (e = {}) => {
|
|
|
1747
1744
|
width: "50%"
|
|
1748
1745
|
},
|
|
1749
1746
|
value: l,
|
|
1750
|
-
options:
|
|
1747
|
+
options: wa
|
|
1751
1748
|
}
|
|
1752
1749
|
) })
|
|
1753
1750
|
] }) })
|
|
@@ -1780,8 +1777,8 @@ const H = (e = {}) => {
|
|
|
1780
1777
|
paddingTop: 2
|
|
1781
1778
|
},
|
|
1782
1779
|
children: [
|
|
1783
|
-
/* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
|
|
1784
|
-
/* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
|
|
1780
|
+
/* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(ga, { onChange: o, value: e }) }),
|
|
1781
|
+
/* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(ya, { onChange: o, value: e }) })
|
|
1785
1782
|
]
|
|
1786
1783
|
}
|
|
1787
1784
|
)
|
|
@@ -1789,7 +1786,7 @@ const H = (e = {}) => {
|
|
|
1789
1786
|
<rect width="48" height="48" fill="white" fill-opacity="0.01"/>
|
|
1790
1787
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M19 10.3075C19 12.6865 17.2091 14.615 15 14.615C12.7909 14.615 11 12.6865 11 10.3075C11 7.92854 12.7909 6 15 6C17.2091 6 19 7.92854 19 10.3075ZM15 28.615C17.2091 28.615 19 26.6865 19 24.3075C19 21.9285 17.2091 20 15 20C12.7909 20 11 21.9285 11 24.3075C11 26.6865 12.7909 28.615 15 28.615ZM15 42.615C17.2091 42.615 19 40.6865 19 38.3075C19 35.9285 17.2091 34 15 34C12.7909 34 11 35.9285 11 38.3075C11 40.6865 12.7909 42.615 15 42.615Z" fill="currentColor"/>
|
|
1791
1788
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M37 10.3075C37 12.6865 35.2091 14.615 33 14.615C30.7909 14.615 29 12.6865 29 10.3075C29 7.92854 30.7909 6 33 6C35.2091 6 37 7.92854 37 10.3075ZM33 28.615C35.2091 28.615 37 26.6865 37 24.3075C37 21.9285 35.2091 20 33 20C30.7909 20 29 21.9285 29 24.3075C29 26.6865 30.7909 28.615 33 28.615ZM33 42.615C35.2091 42.615 37 40.6865 37 38.3075C37 35.9285 35.2091 34 33 34C30.7909 34 29 35.9285 29 38.3075C29 40.6865 30.7909 42.615 33 42.615Z" fill="currentColor"/>
|
|
1792
|
-
</svg>`,
|
|
1789
|
+
</svg>`, Sa = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1793
1790
|
<path d="M16 18H18C19.1046 18 20 17.1046 20 16V5C20 3.89543 19.1046 3 18 3H9C7.89543 3 7 3.89543 7 5V7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1794
1791
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.3593 9.47041L13.5296 7.6407C13.1194 7.23047 12.563 7 11.9828 7H6C4.89543 7 4 7.89543 4 9V19C4 20.1046 4.89543 21 6 21H14C15.1046 21 16 20.1046 16 19V11.0172C16 10.437 15.7695 9.88065 15.3593 9.47041Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1795
1792
|
<path d="M16 11.5H13C12.1716 11.5 11.5 10.8284 11.5 10V7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -1802,8 +1799,8 @@ const H = (e = {}) => {
|
|
|
1802
1799
|
<path d="M15.43 11L15 17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1803
1800
|
<path d="M8.56997 11L8.99997 17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1804
1801
|
</svg>
|
|
1805
|
-
`,
|
|
1806
|
-
const [r, n] = E(!1), { actions: a } =
|
|
1802
|
+
`, La = ({ node: e, nodeIndex: o }) => {
|
|
1803
|
+
const [r, n] = E(!1), { actions: a } = oe(), i = (p) => {
|
|
1807
1804
|
p.stopPropagation(), a.delete(e.id);
|
|
1808
1805
|
}, s = (p) => {
|
|
1809
1806
|
p.stopPropagation();
|
|
@@ -1861,9 +1858,9 @@ const H = (e = {}) => {
|
|
|
1861
1858
|
}
|
|
1862
1859
|
),
|
|
1863
1860
|
/* @__PURE__ */ t(Ve, { open: r, orientation: "horizontal", children: /* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
1864
|
-
/* @__PURE__ */ t(
|
|
1861
|
+
/* @__PURE__ */ t(B, { tooltip: { content: "Duplicate" }, onClick: s, children: /* @__PURE__ */ t(k, { size: 16, source: Sa }) }),
|
|
1865
1862
|
/* @__PURE__ */ t(
|
|
1866
|
-
|
|
1863
|
+
B,
|
|
1867
1864
|
{
|
|
1868
1865
|
tooltip: {
|
|
1869
1866
|
content: "Delete"
|
|
@@ -1879,7 +1876,7 @@ const H = (e = {}) => {
|
|
|
1879
1876
|
}
|
|
1880
1877
|
) });
|
|
1881
1878
|
}, Qe = ({ getNewNodeElement: e }) => {
|
|
1882
|
-
const { query: o, actions: r } =
|
|
1879
|
+
const { query: o, actions: r } = oe(), { id: n } = ne(), a = o.node(n).childNodes().map((l) => o.node(l).get());
|
|
1883
1880
|
return /* @__PURE__ */ u("div", { children: [
|
|
1884
1881
|
/* @__PURE__ */ t(dn, { onDragEnd: (l) => {
|
|
1885
1882
|
const { source: d, destination: c } = l;
|
|
@@ -1893,13 +1890,13 @@ const H = (e = {}) => {
|
|
|
1893
1890
|
...l.droppableProps,
|
|
1894
1891
|
css: { display: "flex", flexDirection: "column", gap: 8 },
|
|
1895
1892
|
children: [
|
|
1896
|
-
a.map((d, c) => /* @__PURE__ */ t(
|
|
1893
|
+
a.map((d, c) => /* @__PURE__ */ t(La, { node: d, nodeIndex: c }, d.id)),
|
|
1897
1894
|
l.placeholder
|
|
1898
1895
|
]
|
|
1899
1896
|
}
|
|
1900
1897
|
) }) }),
|
|
1901
1898
|
/* @__PURE__ */ t(
|
|
1902
|
-
|
|
1899
|
+
Y,
|
|
1903
1900
|
{
|
|
1904
1901
|
css: { marginTop: 8 },
|
|
1905
1902
|
onClick: () => {
|
|
@@ -1912,22 +1909,22 @@ const H = (e = {}) => {
|
|
|
1912
1909
|
}
|
|
1913
1910
|
)
|
|
1914
1911
|
] });
|
|
1915
|
-
},
|
|
1912
|
+
}, Ta = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><path d="M1.25 8.96875C1.25 8.69261 1.47386 8.46875 1.75 8.46875H5.5C5.77614 8.46875 6 8.69261 6 8.96875V10.9688C6 11.2449 5.77614 11.4688 5.5 11.4688H1.75C1.47386 11.4688 1.25 11.2449 1.25 10.9688V8.96875Z" fill="currentColor"></path><path d="M7.62512 9.03125C7.62512 8.75511 7.84898 8.53125 8.12512 8.53125H11.8751C12.1513 8.53125 12.3751 8.75511 12.3751 9.03125V11.0312C12.3751 11.3074 12.1513 11.5312 11.8751 11.5312H8.12512C7.84898 11.5312 7.62512 11.3074 7.62512 11.0312V9.03125Z" fill="currentColor"></path><path d="M14 8.96875C14 8.69261 14.2239 8.46875 14.5 8.46875H18.25C18.5261 8.46875 18.75 8.69261 18.75 8.96875V10.9688C18.75 11.2449 18.5261 11.4688 18.25 11.4688H14.5C14.2239 11.4688 14 11.2449 14 10.9688V8.96875Z" fill="currentColor"></path></svg>', Ia = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><path d="M1.25 10C1.25 9.17157 1.92157 8.5 2.75 8.5C3.57843 8.5 4.25 9.17157 4.25 10C4.25 10.8284 3.57843 11.5 2.75 11.5C1.92157 11.5 1.25 10.8284 1.25 10Z" fill="currentColor"></path><path d="M6.08333 10C6.08333 9.17157 6.75491 8.5 7.58333 8.5C8.41176 8.5 9.08333 9.17157 9.08333 10C9.08333 10.8284 8.41176 11.5 7.58333 11.5C6.75491 11.5 6.08333 10.8284 6.08333 10Z" fill="currentColor"></path><path d="M10.9167 10C10.9167 9.17157 11.5883 8.5 12.4167 8.5C13.2451 8.5 13.9167 9.17157 13.9167 10C13.9167 10.8284 13.2451 11.5 12.4167 11.5C11.5883 11.5 10.9167 10.8284 10.9167 10Z" fill="currentColor"></path><path d="M15.75 10C15.75 9.17157 16.4216 8.5 17.25 8.5C18.0784 8.5 18.75 9.17157 18.75 10C18.75 10.8284 18.0784 11.5 17.25 11.5C16.4216 11.5 15.75 10.8284 15.75 10Z" fill="currentColor"></path></svg>', Ba = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><path d="M1.10547 9C1.10547 8.72386 1.32933 8.5 1.60547 8.5H18.1064C18.3826 8.5 18.6064 8.72386 18.6064 9V11C18.6064 11.2761 18.3826 11.5 18.1064 11.5H1.60547C1.32933 11.5 1.10547 11.2761 1.10547 11V9Z" fill="#currentColor"></path></svg>', Pa = [
|
|
1916
1913
|
{
|
|
1917
1914
|
value: "none",
|
|
1918
1915
|
icon: un
|
|
1919
1916
|
},
|
|
1920
1917
|
{
|
|
1921
1918
|
value: "solid",
|
|
1922
|
-
icon:
|
|
1919
|
+
icon: Ba
|
|
1923
1920
|
},
|
|
1924
1921
|
{
|
|
1925
1922
|
value: "dashed",
|
|
1926
|
-
icon:
|
|
1923
|
+
icon: Ta
|
|
1927
1924
|
},
|
|
1928
1925
|
{
|
|
1929
1926
|
value: "dotted",
|
|
1930
|
-
icon:
|
|
1927
|
+
icon: Ia
|
|
1931
1928
|
}
|
|
1932
1929
|
], K = ({ responsive: e = !0, value: o, onChange: r }) => {
|
|
1933
1930
|
const n = o?.borderBottomWidth ?? 0, a = o?.borderTopWidth ?? 0, i = o?.borderLeftWidth ?? 0, s = o?.borderRightWidth ?? 0, l = (g = "none") => {
|
|
@@ -1965,7 +1962,7 @@ const H = (e = {}) => {
|
|
|
1965
1962
|
borderColor: g
|
|
1966
1963
|
});
|
|
1967
1964
|
}, color: o?.borderColor }),
|
|
1968
|
-
/* @__PURE__ */ t(
|
|
1965
|
+
/* @__PURE__ */ t(Q, { value: d, onSelectionChange: l, children: Pa.map((g) => /* @__PURE__ */ t(B, { value: g.value, children: /* @__PURE__ */ t(k, { source: g.icon }) }, g.value)) })
|
|
1969
1966
|
] }) }),
|
|
1970
1967
|
d !== "none" && /* @__PURE__ */ t("div", { css: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ t("div", { css: { display: "flex", alignItems: "center", gap: 4 }, children: /* @__PURE__ */ u(
|
|
1971
1968
|
"div",
|
|
@@ -2053,10 +2050,10 @@ const H = (e = {}) => {
|
|
|
2053
2050
|
<path d="M18 8L22 12L18 16" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2054
2051
|
<path d="M6 16L2 12L6 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2055
2052
|
</svg>
|
|
2056
|
-
`, st = '<svg width="16" height="16" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="text-dark-150 rotate-90"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.125 16.25C7.94733 16.25 3.75 12.0527 3.75 6.875L3.75 3.125C3.75 2.77982 3.47018 2.5 3.125 2.5C2.77982 2.5 2.5 2.77982 2.5 3.125L2.5 6.875C2.5 12.743 7.25698 17.5 13.125 17.5L16.875 17.5C17.2202 17.5 17.5 17.2202 17.5 16.875C17.5 16.5298 17.2202 16.25 16.875 16.25L13.125 16.25Z" fill="currentColor" stroke="currentColor" stroke-width="0.25" stroke-linecap="round"></path></svg>',
|
|
2053
|
+
`, st = '<svg width="16" height="16" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="text-dark-150 rotate-90"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.125 16.25C7.94733 16.25 3.75 12.0527 3.75 6.875L3.75 3.125C3.75 2.77982 3.47018 2.5 3.125 2.5C2.77982 2.5 2.5 2.77982 2.5 3.125L2.5 6.875C2.5 12.743 7.25698 17.5 13.125 17.5L16.875 17.5C17.2202 17.5 17.5 17.2202 17.5 16.875C17.5 16.5298 17.2202 16.25 16.875 16.25L13.125 16.25Z" fill="currentColor" stroke="currentColor" stroke-width="0.25" stroke-linecap="round"></path></svg>', Na = '<svg width="16" height="16" viewBox="0 0 17 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><path fill-rule="evenodd" clip-rule="evenodd" d="M2.1665 8C2.1665 11.5899 5.07665 14.5 8.6665 14.5C12.2564 14.5 15.1665 11.5899 15.1665 8C15.1665 4.41015 12.2564 1.5 8.6665 1.5C5.07665 1.5 2.1665 4.41015 2.1665 8ZM8.6665 0C4.24823 0 0.666504 3.58172 0.666504 8C0.666504 12.4183 4.24823 16 8.6665 16C13.0848 16 16.6665 12.4183 16.6665 8C16.6665 3.58172 13.0848 0 8.6665 0Z" fill="currentColor"></path></svg>', Ma = `<svg width="24" height="24" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
|
2057
2054
|
<path fill="currentColor" d="M36,416H476a20.023,20.023,0,0,0,20-20V116a20.023,20.023,0,0,0-20-20H36a20.023,20.023,0,0,0-20,20V396A20.023,20.023,0,0,0,36,416ZM48,128H464V384H48Z" />
|
|
2058
2055
|
</svg>
|
|
2059
|
-
`,
|
|
2056
|
+
`, Wa = '<svg width="22" height="14" viewBox="0 0 24 14" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><path fill-rule="evenodd" clip-rule="evenodd" d="M18.3335 1.5H4.3335C2.95278 1.5 1.8335 2.61929 1.8335 4V10C1.8335 11.3807 2.95278 12.5 4.3335 12.5H18.3335C19.7142 12.5 20.8335 11.3807 20.8335 10V4C20.8335 2.61929 19.7142 1.5 18.3335 1.5ZM4.3335 0C2.12436 0 0.333496 1.79086 0.333496 4V10C0.333496 12.2091 2.12436 14 4.3335 14H18.3335C20.5426 14 22.3335 12.2091 22.3335 10V4C22.3335 1.79086 20.5426 0 18.3335 0H4.3335Z" fill="currentColor"></path></svg>', fe = 9999, G = ({ value: e, onChange: o, name: r, responsive: n = !0 }) => {
|
|
2060
2057
|
const [a, i] = E(!1), s = Object.values(e ?? {}).every((h) => (h ?? 0) === 0), l = Object.values(e ?? {}).every((h) => (h ?? 0) === fe), d = !s && !l, c = (h) => {
|
|
2061
2058
|
const C = isNaN(h.target.valueAsNumber) ? void 0 : h.target.valueAsNumber;
|
|
2062
2059
|
o?.({
|
|
@@ -2126,7 +2123,7 @@ const H = (e = {}) => {
|
|
|
2126
2123
|
/* @__PURE__ */ t(Te, { children: /* @__PURE__ */ u("div", { children: [
|
|
2127
2124
|
/* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: 8 }, children: [
|
|
2128
2125
|
/* @__PURE__ */ t("span", { css: { fontWeight: 500 }, children: "Corner" }),
|
|
2129
|
-
/* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(
|
|
2126
|
+
/* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(k, { source: ae }) }) })
|
|
2130
2127
|
] }),
|
|
2131
2128
|
/* @__PURE__ */ t("hr", { css: { marginBlock: 8, borderColor: v.palette.white["1s"] } }),
|
|
2132
2129
|
/* @__PURE__ */ u("div", { style: { maxWidth: 256 }, css: { display: "flex", gap: 8 }, children: [
|
|
@@ -2224,7 +2221,7 @@ const H = (e = {}) => {
|
|
|
2224
2221
|
),
|
|
2225
2222
|
/* @__PURE__ */ u("div", { css: { display: "flex", flexDirection: "column", justifyContent: "space-between" }, children: [
|
|
2226
2223
|
/* @__PURE__ */ t(
|
|
2227
|
-
|
|
2224
|
+
B,
|
|
2228
2225
|
{
|
|
2229
2226
|
onClick: p,
|
|
2230
2227
|
disabled: s,
|
|
@@ -2233,13 +2230,13 @@ const H = (e = {}) => {
|
|
|
2233
2230
|
k,
|
|
2234
2231
|
{
|
|
2235
2232
|
css: [{ color: v.palette.white["3s"] }, s && { color: v.palette.white["6s"] }],
|
|
2236
|
-
source:
|
|
2233
|
+
source: Ma
|
|
2237
2234
|
}
|
|
2238
2235
|
)
|
|
2239
2236
|
}
|
|
2240
2237
|
),
|
|
2241
2238
|
/* @__PURE__ */ t(
|
|
2242
|
-
|
|
2239
|
+
B,
|
|
2243
2240
|
{
|
|
2244
2241
|
onClick: p,
|
|
2245
2242
|
disabled: d,
|
|
@@ -2256,13 +2253,13 @@ const H = (e = {}) => {
|
|
|
2256
2253
|
{ color: v.palette.white["3s"] },
|
|
2257
2254
|
d && { color: v.palette.white["6s"] }
|
|
2258
2255
|
],
|
|
2259
|
-
source:
|
|
2256
|
+
source: Wa
|
|
2260
2257
|
}
|
|
2261
2258
|
)
|
|
2262
2259
|
}
|
|
2263
2260
|
),
|
|
2264
2261
|
/* @__PURE__ */ t(
|
|
2265
|
-
|
|
2262
|
+
B,
|
|
2266
2263
|
{
|
|
2267
2264
|
onClick: p,
|
|
2268
2265
|
disabled: l,
|
|
@@ -2276,7 +2273,7 @@ const H = (e = {}) => {
|
|
|
2276
2273
|
k,
|
|
2277
2274
|
{
|
|
2278
2275
|
css: [{ color: v.palette.white["3s"] }, l && { color: v.palette.white["6s"] }],
|
|
2279
|
-
source:
|
|
2276
|
+
source: Na
|
|
2280
2277
|
}
|
|
2281
2278
|
)
|
|
2282
2279
|
}
|
|
@@ -2285,7 +2282,7 @@ const H = (e = {}) => {
|
|
|
2285
2282
|
] })
|
|
2286
2283
|
] }) })
|
|
2287
2284
|
] }) });
|
|
2288
|
-
},
|
|
2285
|
+
}, Aa = [
|
|
2289
2286
|
{
|
|
2290
2287
|
value: "6xl",
|
|
2291
2288
|
label: "Heading 1"
|
|
@@ -2346,7 +2343,7 @@ const H = (e = {}) => {
|
|
|
2346
2343
|
}
|
|
2347
2344
|
},
|
|
2348
2345
|
value: e ?? "auto",
|
|
2349
|
-
options:
|
|
2346
|
+
options: Aa
|
|
2350
2347
|
}
|
|
2351
2348
|
) }) }), Nt = ({ value: e, responsive: o, name: r, onChange: n }) => /* @__PURE__ */ t(L, { responsive: o, name: r ?? "Font weight", children: /* @__PURE__ */ t(
|
|
2352
2349
|
be,
|
|
@@ -2400,7 +2397,7 @@ const H = (e = {}) => {
|
|
|
2400
2397
|
}
|
|
2401
2398
|
}
|
|
2402
2399
|
}
|
|
2403
|
-
) }),
|
|
2400
|
+
) }), Ea = ({ value: e, name: o, onChange: r, availableTags: n }) => {
|
|
2404
2401
|
const a = n.map((i) => ({
|
|
2405
2402
|
value: i,
|
|
2406
2403
|
label: i
|
|
@@ -2421,13 +2418,13 @@ const H = (e = {}) => {
|
|
|
2421
2418
|
}
|
|
2422
2419
|
}
|
|
2423
2420
|
) });
|
|
2424
|
-
},
|
|
2421
|
+
}, Va = ["cover", "contain"], Ha = ({ name: e, responsive: o = !1, value: r, onChange: n }) => {
|
|
2425
2422
|
const a = (i) => {
|
|
2426
2423
|
n?.({
|
|
2427
2424
|
objectFit: i.currentTarget.value
|
|
2428
2425
|
});
|
|
2429
2426
|
};
|
|
2430
|
-
return /* @__PURE__ */ t(L, { responsive: o, name: e ?? "Image scale", children: /* @__PURE__ */ t("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children:
|
|
2427
|
+
return /* @__PURE__ */ t(L, { responsive: o, name: e ?? "Image scale", children: /* @__PURE__ */ t("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: Va.map((i) => {
|
|
2431
2428
|
const s = r?.objectFit === i;
|
|
2432
2429
|
return /* @__PURE__ */ t(
|
|
2433
2430
|
"button",
|
|
@@ -2525,8 +2522,8 @@ const H = (e = {}) => {
|
|
|
2525
2522
|
mode: "onBlur",
|
|
2526
2523
|
css: { textAlign: "center" },
|
|
2527
2524
|
value: n ?? "",
|
|
2528
|
-
prefix: /* @__PURE__ */ t(
|
|
2529
|
-
suffix: /* @__PURE__ */ t(
|
|
2525
|
+
prefix: /* @__PURE__ */ t(B, { disabled: wt(n) && n <= a, onClick: C, children: /* @__PURE__ */ t(k, { source: jn }) }),
|
|
2526
|
+
suffix: /* @__PURE__ */ t(B, { onClick: h, children: /* @__PURE__ */ t(k, { source: Ye }) })
|
|
2530
2527
|
}
|
|
2531
2528
|
) }) });
|
|
2532
2529
|
}, gn = ({ name: e, responsive: o = !0, value: r, onChange: n }) => {
|
|
@@ -2567,8 +2564,8 @@ const H = (e = {}) => {
|
|
|
2567
2564
|
onChange: a
|
|
2568
2565
|
}
|
|
2569
2566
|
);
|
|
2570
|
-
},
|
|
2571
|
-
|
|
2567
|
+
}, Oa = ({ onChange: e }) => /* @__PURE__ */ t(
|
|
2568
|
+
oa,
|
|
2572
2569
|
{
|
|
2573
2570
|
accept: {
|
|
2574
2571
|
svg: [".svg"]
|
|
@@ -2619,7 +2616,7 @@ const H = (e = {}) => {
|
|
|
2619
2616
|
}
|
|
2620
2617
|
), pt = ({ source: e, onChange: o, name: r }) => /* @__PURE__ */ t(L, { name: r ?? "Choose icon", children: /* @__PURE__ */ u(Se, { placement: "right-start", children: [
|
|
2621
2618
|
/* @__PURE__ */ t(Le, { children: /* @__PURE__ */ t(
|
|
2622
|
-
|
|
2619
|
+
B,
|
|
2623
2620
|
{
|
|
2624
2621
|
css: {
|
|
2625
2622
|
backgroundColor: v.palette.white["1s"]
|
|
@@ -2639,7 +2636,7 @@ const H = (e = {}) => {
|
|
|
2639
2636
|
children: "Choose icon"
|
|
2640
2637
|
}
|
|
2641
2638
|
),
|
|
2642
|
-
/* @__PURE__ */ t("div", { css: { width: 320 }, children: /* @__PURE__ */ t(
|
|
2639
|
+
/* @__PURE__ */ t("div", { css: { width: 320 }, children: /* @__PURE__ */ t(Oa, { onChange: o }) })
|
|
2643
2640
|
] }) })
|
|
2644
2641
|
] }) }), no = `<svg width="20" height="20" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2645
2642
|
<path d="M1.5 14.5C1.5 14.2239 1.72386 14 2 14L15 14C15.2761 14 15.5 14.2239 15.5 14.5C15.5 14.7761 15.2761 15 15 15L2 15C1.72386 15 1.5 14.7761 1.5 14.5Z" fill="currentColor"></path>
|
|
@@ -2727,8 +2724,8 @@ const H = (e = {}) => {
|
|
|
2727
2724
|
alignItems: d
|
|
2728
2725
|
});
|
|
2729
2726
|
};
|
|
2730
|
-
return /* @__PURE__ */ t(L, { responsive: o, name: e ?? "Align items", children: /* @__PURE__ */ t(
|
|
2731
|
-
},
|
|
2727
|
+
return /* @__PURE__ */ t(L, { responsive: o, name: e ?? "Align items", children: /* @__PURE__ */ t(Q, { value: r?.alignItems, onSelectionChange: l, children: s.map((d) => /* @__PURE__ */ t(B, { value: d.value, children: /* @__PURE__ */ t(k, { source: d.icon }) }, d.value)) }) });
|
|
2728
|
+
}, Da = ({
|
|
2732
2729
|
name: e,
|
|
2733
2730
|
responsive: o = !0,
|
|
2734
2731
|
value: r,
|
|
@@ -2791,9 +2788,9 @@ const H = (e = {}) => {
|
|
|
2791
2788
|
justifyContent: l
|
|
2792
2789
|
});
|
|
2793
2790
|
};
|
|
2794
|
-
return /* @__PURE__ */ t(L, { responsive: o, name: e ?? "Justify content", children: /* @__PURE__ */ t(
|
|
2795
|
-
},
|
|
2796
|
-
const { main: o } =
|
|
2791
|
+
return /* @__PURE__ */ t(L, { responsive: o, name: e ?? "Justify content", children: /* @__PURE__ */ t(Q, { value: r?.justifyContent, onSelectionChange: s, children: i.map((l) => /* @__PURE__ */ t(B, { value: l.value, children: /* @__PURE__ */ t(k, { source: l.icon }) }, l.value)) }) });
|
|
2792
|
+
}, za = (e) => {
|
|
2793
|
+
const { main: o } = _r(e.value);
|
|
2797
2794
|
return /* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", gap: 8, justifyContent: "space-between" }, children: [
|
|
2798
2795
|
e.label,
|
|
2799
2796
|
/* @__PURE__ */ t(
|
|
@@ -2806,19 +2803,19 @@ const H = (e = {}) => {
|
|
|
2806
2803
|
}
|
|
2807
2804
|
)
|
|
2808
2805
|
] });
|
|
2809
|
-
},
|
|
2806
|
+
}, Fa = (e) => /* @__PURE__ */ t(L, { name: "Color", children: /* @__PURE__ */ t(
|
|
2810
2807
|
be,
|
|
2811
2808
|
{
|
|
2812
2809
|
checkedIcon: /* @__PURE__ */ t(Pe, {}),
|
|
2813
2810
|
placement: "bottom-end",
|
|
2814
|
-
optionLabel:
|
|
2815
|
-
options:
|
|
2811
|
+
optionLabel: za,
|
|
2812
|
+
options: Yr,
|
|
2816
2813
|
css: {
|
|
2817
2814
|
width: "50%"
|
|
2818
2815
|
},
|
|
2819
2816
|
...e
|
|
2820
2817
|
}
|
|
2821
|
-
) }),
|
|
2818
|
+
) }), ja = ({
|
|
2822
2819
|
value: e,
|
|
2823
2820
|
options: o,
|
|
2824
2821
|
onChange: r,
|
|
@@ -2868,7 +2865,7 @@ const H = (e = {}) => {
|
|
|
2868
2865
|
value: m.value,
|
|
2869
2866
|
children: [
|
|
2870
2867
|
m.label,
|
|
2871
|
-
x && (m.closeable ?? !1) && /* @__PURE__ */ t(
|
|
2868
|
+
x && (m.closeable ?? !1) && /* @__PURE__ */ t(B, { onClick: h, size: "20", children: /* @__PURE__ */ t(k, { size: 16, source: ae }) })
|
|
2872
2869
|
]
|
|
2873
2870
|
},
|
|
2874
2871
|
m.value
|
|
@@ -2877,7 +2874,7 @@ const H = (e = {}) => {
|
|
|
2877
2874
|
] })
|
|
2878
2875
|
] });
|
|
2879
2876
|
}, he = ({ propertyPath: e }) => {
|
|
2880
|
-
const { nodeProps: o, setNodeProps: r } =
|
|
2877
|
+
const { nodeProps: o, setNodeProps: r } = O(), n = e ? Ke(o, e) : null, a = (i) => {
|
|
2881
2878
|
const s = {
|
|
2882
2879
|
...n,
|
|
2883
2880
|
[i.target.name]: i.target.checked ? void 0 : !1
|
|
@@ -2907,7 +2904,7 @@ const H = (e = {}) => {
|
|
|
2907
2904
|
},
|
|
2908
2905
|
i.size
|
|
2909
2906
|
)) });
|
|
2910
|
-
},
|
|
2907
|
+
}, Za = ({ name: e, responsive: o = !0, value: r, onChange: n }) => {
|
|
2911
2908
|
const a = [
|
|
2912
2909
|
{
|
|
2913
2910
|
label: "Top",
|
|
@@ -2934,8 +2931,8 @@ const H = (e = {}) => {
|
|
|
2934
2931
|
justifyItems: s === "stretch" ? void 0 : s
|
|
2935
2932
|
});
|
|
2936
2933
|
};
|
|
2937
|
-
return /* @__PURE__ */ t(L, { responsive: o, name: e ?? "Justify items", children: /* @__PURE__ */ t(
|
|
2938
|
-
},
|
|
2934
|
+
return /* @__PURE__ */ t(L, { responsive: o, name: e ?? "Justify items", children: /* @__PURE__ */ t(Q, { value: r?.justifyItems ?? "stretch", onSelectionChange: i, children: a.map((s) => /* @__PURE__ */ t(B, { value: s.value, children: /* @__PURE__ */ t(k, { source: s.icon }) }, s.value)) }) });
|
|
2935
|
+
}, $a = ({ name: e, responsive: o = !0, value: r, onChange: n }) => {
|
|
2939
2936
|
const a = [
|
|
2940
2937
|
{
|
|
2941
2938
|
label: "Top",
|
|
@@ -2962,8 +2959,8 @@ const H = (e = {}) => {
|
|
|
2962
2959
|
alignItems: s
|
|
2963
2960
|
});
|
|
2964
2961
|
};
|
|
2965
|
-
return /* @__PURE__ */ t(L, { responsive: o, name: e ?? "Align items", children: /* @__PURE__ */ t(
|
|
2966
|
-
},
|
|
2962
|
+
return /* @__PURE__ */ t(L, { responsive: o, name: e ?? "Align items", children: /* @__PURE__ */ t(Q, { value: r?.alignItems ?? "stretch", onSelectionChange: i, children: a.map((s) => /* @__PURE__ */ t(B, { value: s.value, children: /* @__PURE__ */ t(k, { source: s.icon }) }, s.value)) }) });
|
|
2963
|
+
}, _a = ({
|
|
2967
2964
|
suggestOptions: e,
|
|
2968
2965
|
responsive: o = !0,
|
|
2969
2966
|
name: r,
|
|
@@ -3121,7 +3118,7 @@ const H = (e = {}) => {
|
|
|
3121
3118
|
/* @__PURE__ */ u(Te, { children: [
|
|
3122
3119
|
/* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: 8 }, children: [
|
|
3123
3120
|
/* @__PURE__ */ t("span", { css: { fontWeight: 500 }, children: "Padding" }),
|
|
3124
|
-
/* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(
|
|
3121
|
+
/* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(k, { source: ae }) }) })
|
|
3125
3122
|
] }),
|
|
3126
3123
|
/* @__PURE__ */ t("hr", { css: { marginBlock: 12, borderColor: v.palette.white["1s"] } }),
|
|
3127
3124
|
/* @__PURE__ */ u("div", { css: { display: "grid", gap: 8, gridTemplateColumns: "repeat(3, minmax(0, 1fr))" }, style: { maxWidth: 256 }, children: [
|
|
@@ -3261,7 +3258,7 @@ const H = (e = {}) => {
|
|
|
3261
3258
|
value: h.value,
|
|
3262
3259
|
children: [
|
|
3263
3260
|
h.label,
|
|
3264
|
-
C && /* @__PURE__ */ t(
|
|
3261
|
+
C && /* @__PURE__ */ t(B, { size: "20", onClick: p, children: /* @__PURE__ */ t(k, { size: 16, source: ae }) })
|
|
3265
3262
|
]
|
|
3266
3263
|
},
|
|
3267
3264
|
h.value
|
|
@@ -3321,7 +3318,7 @@ const H = (e = {}) => {
|
|
|
3321
3318
|
/* @__PURE__ */ u(Te, { children: [
|
|
3322
3319
|
/* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: 8 }, children: [
|
|
3323
3320
|
/* @__PURE__ */ t("span", { css: { fontWeight: 500 }, children: "Margin" }),
|
|
3324
|
-
/* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(
|
|
3321
|
+
/* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(k, { source: ae }) }) })
|
|
3325
3322
|
] }),
|
|
3326
3323
|
/* @__PURE__ */ t("hr", { css: { marginBlock: "0.75rem", borderColor: v.palette.white["1s"] } }),
|
|
3327
3324
|
/* @__PURE__ */ u(
|
|
@@ -3350,7 +3347,7 @@ const H = (e = {}) => {
|
|
|
3350
3347
|
<path d="M7 17V10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3351
3348
|
<path d="M4 10H10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3352
3349
|
</svg>
|
|
3353
|
-
`, co = ({ value: e, onChange: o, name: r }) => /* @__PURE__ */ t(L, { name: r ?? "Open in", children: /* @__PURE__ */ t(
|
|
3350
|
+
`, co = ({ value: e, onChange: o, name: r }) => /* @__PURE__ */ t(L, { name: r ?? "Open in", children: /* @__PURE__ */ t(Q, { value: e ?? "_self", onSelectionChange: o, children: [
|
|
3354
3351
|
{
|
|
3355
3352
|
label: "Current",
|
|
3356
3353
|
value: "_self"
|
|
@@ -3359,10 +3356,10 @@ const H = (e = {}) => {
|
|
|
3359
3356
|
label: "New tab",
|
|
3360
3357
|
value: "_blank"
|
|
3361
3358
|
}
|
|
3362
|
-
].map((a) => /* @__PURE__ */ t(
|
|
3363
|
-
const { nodeProps: e, setNodeResponsiveProps: o, setNodeProps: r } =
|
|
3359
|
+
].map((a) => /* @__PURE__ */ t(Y, { value: a.value, size: "28", children: a.label }, a.value)) }) }), Ol = () => {
|
|
3360
|
+
const { nodeProps: e, setNodeResponsiveProps: o, setNodeProps: r } = Gr(), { getResponsiveProp: n, currentScreen: a } = W(), i = (y, T = a) => {
|
|
3364
3361
|
r({
|
|
3365
|
-
sx:
|
|
3362
|
+
sx: H(y, T)
|
|
3366
3363
|
});
|
|
3367
3364
|
}, s = {
|
|
3368
3365
|
backgroundColor: n(e.sx ?? {}, "backgroundColor"),
|
|
@@ -3372,7 +3369,7 @@ const H = (e = {}) => {
|
|
|
3372
3369
|
background: n(e.sx ?? {}, "background"),
|
|
3373
3370
|
backgroundSize: n(e.sx ?? {}, "backgroundSize"),
|
|
3374
3371
|
backgroundAttachment: n(e.sx ?? {}, "backgroundAttachment")
|
|
3375
|
-
}, l = () => /* @__PURE__ */ t(
|
|
3372
|
+
}, l = () => /* @__PURE__ */ t(te, { canvas: !0, is: Ko }), d = {
|
|
3376
3373
|
columnGap: n(e.sx ?? {}, "columnGap") ?? 0
|
|
3377
3374
|
}, c = {
|
|
3378
3375
|
rowGap: n(e.sx ?? {}, "rowGap") ?? 0
|
|
@@ -3416,12 +3413,12 @@ const H = (e = {}) => {
|
|
|
3416
3413
|
} }),
|
|
3417
3414
|
/* @__PURE__ */ t(gn, { value: d, onChange: i }),
|
|
3418
3415
|
/* @__PURE__ */ t(et, { value: c, onChange: i }),
|
|
3419
|
-
/* @__PURE__ */ t(
|
|
3420
|
-
/* @__PURE__ */ t(
|
|
3416
|
+
/* @__PURE__ */ t($a, { value: C, onChange: i }),
|
|
3417
|
+
/* @__PURE__ */ t(Za, { value: g, onChange: i })
|
|
3421
3418
|
] }),
|
|
3422
3419
|
/* @__PURE__ */ u(w, { name: "Size", children: [
|
|
3423
3420
|
/* @__PURE__ */ t(
|
|
3424
|
-
|
|
3421
|
+
ee,
|
|
3425
3422
|
{
|
|
3426
3423
|
menu: {
|
|
3427
3424
|
autoOption: { visible: !0 },
|
|
@@ -3470,9 +3467,9 @@ const H = (e = {}) => {
|
|
|
3470
3467
|
] })
|
|
3471
3468
|
] })
|
|
3472
3469
|
] });
|
|
3473
|
-
}, uo = () =>
|
|
3474
|
-
transform:
|
|
3475
|
-
}),
|
|
3470
|
+
}, uo = () => O({
|
|
3471
|
+
transform: Tr
|
|
3472
|
+
}), Ua = () => {
|
|
3476
3473
|
const { currentScreen: e, getResponsiveProp: o } = W(), { nodeProps: r, setNodeResponsiveProps: n } = uo(), a = o(r, "colSpan") ?? Mn;
|
|
3477
3474
|
return /* @__PURE__ */ t(L, { responsive: !0, name: "Col span", children: /* @__PURE__ */ t(
|
|
3478
3475
|
"div",
|
|
@@ -3498,14 +3495,14 @@ const H = (e = {}) => {
|
|
|
3498
3495
|
mode: "onBlur",
|
|
3499
3496
|
size: "32",
|
|
3500
3497
|
min: Mn,
|
|
3501
|
-
max:
|
|
3498
|
+
max: Ir
|
|
3502
3499
|
}
|
|
3503
3500
|
)
|
|
3504
3501
|
}
|
|
3505
3502
|
) });
|
|
3506
|
-
},
|
|
3503
|
+
}, Dl = () => {
|
|
3507
3504
|
const { nodeProps: e, setNodeProps: o } = uo(), { currentScreen: r, getResponsiveProp: n } = W(), a = (p, h = r) => {
|
|
3508
|
-
o({ sx:
|
|
3505
|
+
o({ sx: H(p, h) });
|
|
3509
3506
|
}, i = {
|
|
3510
3507
|
backgroundColor: n(e.sx ?? {}, "backgroundColor"),
|
|
3511
3508
|
backgroundImage: n(e.sx ?? {}, "backgroundImage"),
|
|
@@ -3539,7 +3536,7 @@ const H = (e = {}) => {
|
|
|
3539
3536
|
/* @__PURE__ */ u($, { css: { paddingInline: 8 }, children: [
|
|
3540
3537
|
/* @__PURE__ */ u(N, { children: [
|
|
3541
3538
|
/* @__PURE__ */ u(w, { name: "Layout", children: [
|
|
3542
|
-
/* @__PURE__ */ t(
|
|
3539
|
+
/* @__PURE__ */ t(Ua, {}),
|
|
3543
3540
|
/* @__PURE__ */ t(io, { value: c, onChange: a })
|
|
3544
3541
|
] }),
|
|
3545
3542
|
/* @__PURE__ */ t(w, { name: "Size", children: /* @__PURE__ */ t(Ae, { onChange: a, value: d }) })
|
|
@@ -3580,12 +3577,12 @@ const H = (e = {}) => {
|
|
|
3580
3577
|
] })
|
|
3581
3578
|
] })
|
|
3582
3579
|
] });
|
|
3583
|
-
}, Cn = () =>
|
|
3584
|
-
transform:
|
|
3585
|
-
}),
|
|
3580
|
+
}, Cn = () => O({
|
|
3581
|
+
transform: Br
|
|
3582
|
+
}), Ga = () => {
|
|
3586
3583
|
const { nodeProps: e, setNodeProps: o } = Cn();
|
|
3587
3584
|
return /* @__PURE__ */ t(L, { name: "To", children: /* @__PURE__ */ t("div", { css: { width: "50%" }, children: /* @__PURE__ */ t(
|
|
3588
|
-
|
|
3585
|
+
re,
|
|
3589
3586
|
{
|
|
3590
3587
|
onChange: (n) => {
|
|
3591
3588
|
n.target.value = n.target.value.trim(), o({
|
|
@@ -3595,16 +3592,16 @@ const H = (e = {}) => {
|
|
|
3595
3592
|
value: de(e.to) ? e.to : e.to?.pathname ?? ""
|
|
3596
3593
|
}
|
|
3597
3594
|
) }) });
|
|
3598
|
-
},
|
|
3595
|
+
}, qa = () => {
|
|
3599
3596
|
const { nodeProps: e, setNodeProps: o } = Cn();
|
|
3600
|
-
return /* @__PURE__ */ t(L, { name: "Rel", children: /* @__PURE__ */ t("div", { css: { width: "50%" }, children: /* @__PURE__ */ t(
|
|
3597
|
+
return /* @__PURE__ */ t(L, { name: "Rel", children: /* @__PURE__ */ t("div", { css: { width: "50%" }, children: /* @__PURE__ */ t(re, { onChange: (n) => {
|
|
3601
3598
|
n.target.value = n.target.value.trim(), o({
|
|
3602
3599
|
rel: n.target.value ? n.target.value : void 0
|
|
3603
3600
|
});
|
|
3604
3601
|
}, value: e.rel ?? "", placeholder: "nofollow, noreferrer, noopener, ugc" }) }) });
|
|
3605
|
-
},
|
|
3602
|
+
}, zl = () => {
|
|
3606
3603
|
const { nodeProps: e, setNodeResponsiveProps: o, setNodeProps: r } = Cn(), { currentScreen: n, getResponsiveProp: a } = W(), i = (m, x = n) => {
|
|
3607
|
-
r({ sx:
|
|
3604
|
+
r({ sx: H(m, x) });
|
|
3608
3605
|
}, s = {
|
|
3609
3606
|
borderStyle: a(e.sx ?? {}, "borderStyle"),
|
|
3610
3607
|
borderColor: a(e.sx ?? {}, "borderColor"),
|
|
@@ -3654,7 +3651,7 @@ const H = (e = {}) => {
|
|
|
3654
3651
|
/* @__PURE__ */ u($, { css: { paddingInline: 8 }, children: [
|
|
3655
3652
|
/* @__PURE__ */ u(N, { children: [
|
|
3656
3653
|
/* @__PURE__ */ u(w, { name: "Insert link", children: [
|
|
3657
|
-
/* @__PURE__ */ t(
|
|
3654
|
+
/* @__PURE__ */ t(Ga, {}),
|
|
3658
3655
|
/* @__PURE__ */ t(co, { value: e.target, onChange: g })
|
|
3659
3656
|
] }),
|
|
3660
3657
|
/* @__PURE__ */ u(w, { name: "Text", children: [
|
|
@@ -3695,7 +3692,7 @@ const H = (e = {}) => {
|
|
|
3695
3692
|
}
|
|
3696
3693
|
)
|
|
3697
3694
|
] }),
|
|
3698
|
-
/* @__PURE__ */ t(w, { name: "SEO", children: /* @__PURE__ */ t(
|
|
3695
|
+
/* @__PURE__ */ t(w, { name: "SEO", children: /* @__PURE__ */ t(qa, {}) })
|
|
3699
3696
|
] }),
|
|
3700
3697
|
/* @__PURE__ */ u(N, { children: [
|
|
3701
3698
|
/* @__PURE__ */ u(w, { name: "Spacing (px)", children: [
|
|
@@ -3731,8 +3728,8 @@ const H = (e = {}) => {
|
|
|
3731
3728
|
] })
|
|
3732
3729
|
] })
|
|
3733
3730
|
] });
|
|
3734
|
-
}, Mt = () =>
|
|
3735
|
-
transform:
|
|
3731
|
+
}, Mt = () => O({
|
|
3732
|
+
transform: Pr
|
|
3736
3733
|
});
|
|
3737
3734
|
function U(e, o) {
|
|
3738
3735
|
if (e === !1 || e === null || typeof e > "u")
|
|
@@ -3765,18 +3762,18 @@ function vn(e) {
|
|
|
3765
3762
|
return o;
|
|
3766
3763
|
}
|
|
3767
3764
|
function ho(e, o, r = "/") {
|
|
3768
|
-
return
|
|
3765
|
+
return Ja(e, o, r, !1);
|
|
3769
3766
|
}
|
|
3770
|
-
function
|
|
3767
|
+
function Ja(e, o, r, n) {
|
|
3771
3768
|
let a = typeof o == "string" ? vn(o) : o, i = ye(a.pathname || "/", r);
|
|
3772
3769
|
if (i == null)
|
|
3773
3770
|
return null;
|
|
3774
3771
|
let s = po(e);
|
|
3775
|
-
|
|
3772
|
+
Ka(s);
|
|
3776
3773
|
let l = null;
|
|
3777
3774
|
for (let d = 0; l == null && d < s.length; ++d) {
|
|
3778
|
-
let c =
|
|
3779
|
-
l =
|
|
3775
|
+
let c = si(i);
|
|
3776
|
+
l = ai(
|
|
3780
3777
|
s[d],
|
|
3781
3778
|
c,
|
|
3782
3779
|
n
|
|
@@ -3814,7 +3811,7 @@ function po(e, o = [], r = [], n = "", a = !1) {
|
|
|
3814
3811
|
d
|
|
3815
3812
|
)), !(s.path == null && !s.index) && o.push({
|
|
3816
3813
|
path: h,
|
|
3817
|
-
score:
|
|
3814
|
+
score: oi(h, s.index),
|
|
3818
3815
|
routesMeta: C
|
|
3819
3816
|
});
|
|
3820
3817
|
};
|
|
@@ -3841,23 +3838,23 @@ function go(e) {
|
|
|
3841
3838
|
(d) => e.startsWith("/") && d === "" ? "/" : d
|
|
3842
3839
|
);
|
|
3843
3840
|
}
|
|
3844
|
-
function
|
|
3841
|
+
function Ka(e) {
|
|
3845
3842
|
e.sort(
|
|
3846
|
-
(o, r) => o.score !== r.score ? r.score - o.score :
|
|
3843
|
+
(o, r) => o.score !== r.score ? r.score - o.score : ri(
|
|
3847
3844
|
o.routesMeta.map((n) => n.childrenIndex),
|
|
3848
3845
|
r.routesMeta.map((n) => n.childrenIndex)
|
|
3849
3846
|
)
|
|
3850
3847
|
);
|
|
3851
3848
|
}
|
|
3852
|
-
var
|
|
3853
|
-
function
|
|
3849
|
+
var Xa = /^:[\w-]+$/, Ya = 3, Qa = 2, ei = 1, ti = 10, ni = -2, En = (e) => e === "*";
|
|
3850
|
+
function oi(e, o) {
|
|
3854
3851
|
let r = e.split("/"), n = r.length;
|
|
3855
|
-
return r.some(En) && (n +=
|
|
3856
|
-
(a, i) => a + (
|
|
3852
|
+
return r.some(En) && (n += ni), o && (n += Qa), r.filter((a) => !En(a)).reduce(
|
|
3853
|
+
(a, i) => a + (Xa.test(i) ? Ya : i === "" ? ei : ti),
|
|
3857
3854
|
n
|
|
3858
3855
|
);
|
|
3859
3856
|
}
|
|
3860
|
-
function
|
|
3857
|
+
function ri(e, o) {
|
|
3861
3858
|
return e.length === o.length && e.slice(0, -1).every((n, a) => n === o[a]) ? (
|
|
3862
3859
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
3863
3860
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -3870,7 +3867,7 @@ function ai(e, o) {
|
|
|
3870
3867
|
0
|
|
3871
3868
|
);
|
|
3872
3869
|
}
|
|
3873
|
-
function
|
|
3870
|
+
function ai(e, o, r = !1) {
|
|
3874
3871
|
let { routesMeta: n } = e, a = {}, i = "/", s = [];
|
|
3875
3872
|
for (let l = 0; l < n.length; ++l) {
|
|
3876
3873
|
let d = n[l], c = l === n.length - 1, p = i === "/" ? o : o.slice(i.length) || "/", h = vt(
|
|
@@ -3890,7 +3887,7 @@ function ii(e, o, r = !1) {
|
|
|
3890
3887
|
// TODO: Can this as be avoided?
|
|
3891
3888
|
params: a,
|
|
3892
3889
|
pathname: le([i, h.pathname]),
|
|
3893
|
-
pathnameBase:
|
|
3890
|
+
pathnameBase: ui(
|
|
3894
3891
|
le([i, h.pathnameBase])
|
|
3895
3892
|
),
|
|
3896
3893
|
route: C
|
|
@@ -3900,7 +3897,7 @@ function ii(e, o, r = !1) {
|
|
|
3900
3897
|
}
|
|
3901
3898
|
function vt(e, o) {
|
|
3902
3899
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
3903
|
-
let [r, n] =
|
|
3900
|
+
let [r, n] = ii(
|
|
3904
3901
|
e.path,
|
|
3905
3902
|
e.caseSensitive,
|
|
3906
3903
|
e.end
|
|
@@ -3924,7 +3921,7 @@ function vt(e, o) {
|
|
|
3924
3921
|
pattern: e
|
|
3925
3922
|
};
|
|
3926
3923
|
}
|
|
3927
|
-
function
|
|
3924
|
+
function ii(e, o = !1, r = !0) {
|
|
3928
3925
|
ve(
|
|
3929
3926
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
3930
3927
|
`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(/\*$/, "/*")}".`
|
|
@@ -3941,7 +3938,7 @@ function si(e, o = !1, r = !0) {
|
|
|
3941
3938
|
).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
3942
3939
|
return e.endsWith("*") ? (n.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, o ? void 0 : "i"), n];
|
|
3943
3940
|
}
|
|
3944
|
-
function
|
|
3941
|
+
function si(e) {
|
|
3945
3942
|
try {
|
|
3946
3943
|
return e.split("/").map((o) => decodeURIComponent(o).replace(/\//g, "%2F")).join("/");
|
|
3947
3944
|
} catch (o) {
|
|
@@ -3958,8 +3955,8 @@ function ye(e, o) {
|
|
|
3958
3955
|
let r = o.endsWith("/") ? o.length - 1 : o.length, n = e.charAt(r);
|
|
3959
3956
|
return n && n !== "/" ? null : e.slice(r) || "/";
|
|
3960
3957
|
}
|
|
3961
|
-
var
|
|
3962
|
-
function
|
|
3958
|
+
var li = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
3959
|
+
function di(e, o = "/") {
|
|
3963
3960
|
let {
|
|
3964
3961
|
pathname: r,
|
|
3965
3962
|
search: n = "",
|
|
@@ -3967,8 +3964,8 @@ function ci(e, o = "/") {
|
|
|
3967
3964
|
} = typeof e == "string" ? vn(e) : e, i;
|
|
3968
3965
|
return r ? (r = r.replace(/\/\/+/g, "/"), r.startsWith("/") ? i = Vn(r.substring(1), "/") : i = Vn(r, o)) : i = o, {
|
|
3969
3966
|
pathname: i,
|
|
3970
|
-
search:
|
|
3971
|
-
hash:
|
|
3967
|
+
search: hi(n),
|
|
3968
|
+
hash: pi(a)
|
|
3972
3969
|
};
|
|
3973
3970
|
}
|
|
3974
3971
|
function Vn(e, o) {
|
|
@@ -3982,13 +3979,13 @@ function Ft(e, o, r, n) {
|
|
|
3982
3979
|
n
|
|
3983
3980
|
)}]. 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.`;
|
|
3984
3981
|
}
|
|
3985
|
-
function
|
|
3982
|
+
function ci(e) {
|
|
3986
3983
|
return e.filter(
|
|
3987
3984
|
(o, r) => r === 0 || o.route.path && o.route.path.length > 0
|
|
3988
3985
|
);
|
|
3989
3986
|
}
|
|
3990
3987
|
function mo(e) {
|
|
3991
|
-
let o =
|
|
3988
|
+
let o = ci(e);
|
|
3992
3989
|
return o.map(
|
|
3993
3990
|
(r, n) => n === o.length - 1 ? r.pathname : r.pathnameBase
|
|
3994
3991
|
);
|
|
@@ -4018,24 +4015,24 @@ function bn(e, o, r, n = !1) {
|
|
|
4018
4015
|
}
|
|
4019
4016
|
l = h >= 0 ? o[h] : "/";
|
|
4020
4017
|
}
|
|
4021
|
-
let d =
|
|
4018
|
+
let d = di(a, l), c = s && s !== "/" && s.endsWith("/"), p = (i || s === ".") && r.endsWith("/");
|
|
4022
4019
|
return !d.pathname.endsWith("/") && (c || p) && (d.pathname += "/"), d;
|
|
4023
4020
|
}
|
|
4024
|
-
var le = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
4021
|
+
var le = (e) => e.join("/").replace(/\/\/+/g, "/"), ui = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), hi = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, pi = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, gi = class {
|
|
4025
4022
|
constructor(e, o, r, n = !1) {
|
|
4026
4023
|
this.status = e, this.statusText = o || "", this.internal = n, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
|
|
4027
4024
|
}
|
|
4028
4025
|
};
|
|
4029
|
-
function
|
|
4026
|
+
function mi(e) {
|
|
4030
4027
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
4031
4028
|
}
|
|
4032
|
-
function
|
|
4029
|
+
function fi(e) {
|
|
4033
4030
|
return e.map((o) => o.route.path).filter(Boolean).join("/").replace(/\/\/*/g, "/") || "/";
|
|
4034
4031
|
}
|
|
4035
4032
|
var fo = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
4036
4033
|
function Co(e, o) {
|
|
4037
4034
|
let r = e;
|
|
4038
|
-
if (typeof r != "string" || !
|
|
4035
|
+
if (typeof r != "string" || !li.test(r))
|
|
4039
4036
|
return {
|
|
4040
4037
|
absoluteURL: void 0,
|
|
4041
4038
|
isExternal: !1,
|
|
@@ -4068,33 +4065,33 @@ var vo = [
|
|
|
4068
4065
|
new Set(
|
|
4069
4066
|
vo
|
|
4070
4067
|
);
|
|
4071
|
-
var
|
|
4068
|
+
var Ci = [
|
|
4072
4069
|
"GET",
|
|
4073
4070
|
...vo
|
|
4074
4071
|
];
|
|
4075
|
-
new Set(
|
|
4072
|
+
new Set(Ci);
|
|
4076
4073
|
var Ge = b.createContext(null);
|
|
4077
4074
|
Ge.displayName = "DataRouter";
|
|
4078
4075
|
var Wt = b.createContext(null);
|
|
4079
4076
|
Wt.displayName = "DataRouterState";
|
|
4080
4077
|
var bo = b.createContext(!1);
|
|
4081
|
-
function
|
|
4078
|
+
function vi() {
|
|
4082
4079
|
return b.useContext(bo);
|
|
4083
4080
|
}
|
|
4084
4081
|
var xo = b.createContext({
|
|
4085
4082
|
isTransitioning: !1
|
|
4086
4083
|
});
|
|
4087
4084
|
xo.displayName = "ViewTransition";
|
|
4088
|
-
var
|
|
4085
|
+
var bi = b.createContext(
|
|
4089
4086
|
/* @__PURE__ */ new Map()
|
|
4090
4087
|
);
|
|
4091
|
-
|
|
4092
|
-
var
|
|
4093
|
-
|
|
4094
|
-
var
|
|
4088
|
+
bi.displayName = "Fetchers";
|
|
4089
|
+
var xi = b.createContext(null);
|
|
4090
|
+
xi.displayName = "Await";
|
|
4091
|
+
var ie = b.createContext(
|
|
4095
4092
|
null
|
|
4096
4093
|
);
|
|
4097
|
-
|
|
4094
|
+
ie.displayName = "Navigation";
|
|
4098
4095
|
var xn = b.createContext(
|
|
4099
4096
|
null
|
|
4100
4097
|
);
|
|
@@ -4107,9 +4104,9 @@ var xe = b.createContext({
|
|
|
4107
4104
|
xe.displayName = "Route";
|
|
4108
4105
|
var wn = b.createContext(null);
|
|
4109
4106
|
wn.displayName = "RouteError";
|
|
4110
|
-
var wo = "REACT_ROUTER_ERROR",
|
|
4111
|
-
function
|
|
4112
|
-
if (e.startsWith(`${wo}:${
|
|
4107
|
+
var wo = "REACT_ROUTER_ERROR", wi = "REDIRECT", ki = "ROUTE_ERROR_RESPONSE";
|
|
4108
|
+
function Ri(e) {
|
|
4109
|
+
if (e.startsWith(`${wo}:${wi}:{`))
|
|
4113
4110
|
try {
|
|
4114
4111
|
let o = JSON.parse(e.slice(28));
|
|
4115
4112
|
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")
|
|
@@ -4117,14 +4114,14 @@ function yi(e) {
|
|
|
4117
4114
|
} catch {
|
|
4118
4115
|
}
|
|
4119
4116
|
}
|
|
4120
|
-
function
|
|
4117
|
+
function yi(e) {
|
|
4121
4118
|
if (e.startsWith(
|
|
4122
|
-
`${wo}:${
|
|
4119
|
+
`${wo}:${ki}:{`
|
|
4123
4120
|
))
|
|
4124
4121
|
try {
|
|
4125
4122
|
let o = JSON.parse(e.slice(40));
|
|
4126
4123
|
if (typeof o == "object" && o && typeof o.status == "number" && typeof o.statusText == "string")
|
|
4127
|
-
return new
|
|
4124
|
+
return new gi(
|
|
4128
4125
|
o.status,
|
|
4129
4126
|
o.statusText,
|
|
4130
4127
|
o.data
|
|
@@ -4132,14 +4129,14 @@ function Si(e) {
|
|
|
4132
4129
|
} catch {
|
|
4133
4130
|
}
|
|
4134
4131
|
}
|
|
4135
|
-
function
|
|
4132
|
+
function Si(e, { relative: o } = {}) {
|
|
4136
4133
|
U(
|
|
4137
4134
|
At(),
|
|
4138
4135
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
4139
4136
|
// router loaded. We can help them understand how to avoid that.
|
|
4140
4137
|
"useHref() may be used only in the context of a <Router> component."
|
|
4141
4138
|
);
|
|
4142
|
-
let { basename: r, navigator: n } = b.useContext(
|
|
4139
|
+
let { basename: r, navigator: n } = b.useContext(ie), { hash: a, pathname: i, search: s } = tt(e, { relative: o }), l = i;
|
|
4143
4140
|
return r !== "/" && (l = i === "/" ? r : le([r, i])), n.createHref({ pathname: l, search: s, hash: a });
|
|
4144
4141
|
}
|
|
4145
4142
|
function At() {
|
|
@@ -4155,20 +4152,20 @@ function we() {
|
|
|
4155
4152
|
}
|
|
4156
4153
|
var ko = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
4157
4154
|
function Ro(e) {
|
|
4158
|
-
b.useContext(
|
|
4155
|
+
b.useContext(ie).static || b.useLayoutEffect(e);
|
|
4159
4156
|
}
|
|
4160
|
-
function
|
|
4157
|
+
function Li() {
|
|
4161
4158
|
let { isDataRoute: e } = b.useContext(xe);
|
|
4162
|
-
return e ?
|
|
4159
|
+
return e ? Di() : Ti();
|
|
4163
4160
|
}
|
|
4164
|
-
function
|
|
4161
|
+
function Ti() {
|
|
4165
4162
|
U(
|
|
4166
4163
|
At(),
|
|
4167
4164
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
4168
4165
|
// router loaded. We can help them understand how to avoid that.
|
|
4169
4166
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
4170
4167
|
);
|
|
4171
|
-
let e = b.useContext(Ge), { basename: o, navigator: r } = b.useContext(
|
|
4168
|
+
let e = b.useContext(Ge), { basename: o, navigator: r } = b.useContext(ie), { matches: n } = b.useContext(xe), { pathname: a } = we(), i = JSON.stringify(mo(n)), s = b.useRef(!1);
|
|
4172
4169
|
return Ro(() => {
|
|
4173
4170
|
s.current = !0;
|
|
4174
4171
|
}), b.useCallback(
|
|
@@ -4212,14 +4209,14 @@ function tt(e, { relative: o } = {}) {
|
|
|
4212
4209
|
[e, a, n, o]
|
|
4213
4210
|
);
|
|
4214
4211
|
}
|
|
4215
|
-
function
|
|
4212
|
+
function Ii(e, o, r) {
|
|
4216
4213
|
U(
|
|
4217
4214
|
At(),
|
|
4218
4215
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
4219
4216
|
// router loaded. We can help them understand how to avoid that.
|
|
4220
4217
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
4221
4218
|
);
|
|
4222
|
-
let { navigator: n } = b.useContext(
|
|
4219
|
+
let { navigator: n } = b.useContext(ie), { matches: a } = b.useContext(xe), i = a[a.length - 1], s = i ? i.params : {}, l = i ? i.pathname : "/", d = i ? i.pathnameBase : "/", c = i && i.route;
|
|
4223
4220
|
{
|
|
4224
4221
|
let f = c && c.path || "";
|
|
4225
4222
|
So(
|
|
@@ -4244,7 +4241,7 @@ Please change the parent <Route path="${f}"> to <Route path="${f === "/" ? "*" :
|
|
|
4244
4241
|
), ve(
|
|
4245
4242
|
m == null || m[m.length - 1].route.element !== void 0 || m[m.length - 1].route.Component !== void 0 || m[m.length - 1].route.lazy !== void 0,
|
|
4246
4243
|
`Matched leaf route at location "${h.pathname}${h.search}${h.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.`
|
|
4247
|
-
),
|
|
4244
|
+
), Wi(
|
|
4248
4245
|
m && m.map(
|
|
4249
4246
|
(f) => Object.assign({}, f, {
|
|
4250
4247
|
params: Object.assign({}, s, f.params),
|
|
@@ -4274,14 +4271,14 @@ Please change the parent <Route path="${f}"> to <Route path="${f === "/" ? "*" :
|
|
|
4274
4271
|
r
|
|
4275
4272
|
);
|
|
4276
4273
|
}
|
|
4277
|
-
function
|
|
4278
|
-
let e =
|
|
4274
|
+
function Bi() {
|
|
4275
|
+
let e = Oi(), o = mi(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, n = "rgba(200,200,200, 0.5)", a = { padding: "0.5rem", backgroundColor: n }, i = { padding: "2px 4px", backgroundColor: n }, s = null;
|
|
4279
4276
|
return console.error(
|
|
4280
4277
|
"Error handled by React Router default ErrorBoundary:",
|
|
4281
4278
|
e
|
|
4282
4279
|
), s = /* @__PURE__ */ b.createElement(b.Fragment, null, /* @__PURE__ */ b.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ b.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ b.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ b.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ b.createElement(b.Fragment, null, /* @__PURE__ */ b.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ b.createElement("h3", { style: { fontStyle: "italic" } }, o), r ? /* @__PURE__ */ b.createElement("pre", { style: a }, r) : null, s);
|
|
4283
4280
|
}
|
|
4284
|
-
var
|
|
4281
|
+
var Pi = /* @__PURE__ */ b.createElement(Bi, null), yo = class extends b.Component {
|
|
4285
4282
|
constructor(e) {
|
|
4286
4283
|
super(e), this.state = {
|
|
4287
4284
|
location: e.location,
|
|
@@ -4312,7 +4309,7 @@ var Ni = /* @__PURE__ */ b.createElement(Pi, null), yo = class extends b.Compone
|
|
|
4312
4309
|
render() {
|
|
4313
4310
|
let e = this.state.error;
|
|
4314
4311
|
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
|
|
4315
|
-
const r =
|
|
4312
|
+
const r = yi(e.digest);
|
|
4316
4313
|
r && (e = r);
|
|
4317
4314
|
}
|
|
4318
4315
|
let o = e !== void 0 ? /* @__PURE__ */ b.createElement(xe.Provider, { value: this.props.routeContext }, /* @__PURE__ */ b.createElement(
|
|
@@ -4322,18 +4319,18 @@ var Ni = /* @__PURE__ */ b.createElement(Pi, null), yo = class extends b.Compone
|
|
|
4322
4319
|
children: this.props.component
|
|
4323
4320
|
}
|
|
4324
4321
|
)) : this.props.children;
|
|
4325
|
-
return this.context ? /* @__PURE__ */ b.createElement(
|
|
4322
|
+
return this.context ? /* @__PURE__ */ b.createElement(Ni, { error: e }, o) : o;
|
|
4326
4323
|
}
|
|
4327
4324
|
};
|
|
4328
4325
|
yo.contextType = bo;
|
|
4329
4326
|
var jt = /* @__PURE__ */ new WeakMap();
|
|
4330
|
-
function
|
|
4327
|
+
function Ni({
|
|
4331
4328
|
children: e,
|
|
4332
4329
|
error: o
|
|
4333
4330
|
}) {
|
|
4334
|
-
let { basename: r } = b.useContext(
|
|
4331
|
+
let { basename: r } = b.useContext(ie);
|
|
4335
4332
|
if (typeof o == "object" && o && "digest" in o && typeof o.digest == "string") {
|
|
4336
|
-
let n =
|
|
4333
|
+
let n = Ri(o.digest);
|
|
4337
4334
|
if (n) {
|
|
4338
4335
|
let a = jt.get(o);
|
|
4339
4336
|
if (a) throw a;
|
|
@@ -4360,11 +4357,11 @@ function Mi({
|
|
|
4360
4357
|
}
|
|
4361
4358
|
return e;
|
|
4362
4359
|
}
|
|
4363
|
-
function
|
|
4360
|
+
function Mi({ routeContext: e, match: o, children: r }) {
|
|
4364
4361
|
let n = b.useContext(Ge);
|
|
4365
4362
|
return n && n.static && n.staticContext && (o.route.errorElement || o.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = o.route.id), /* @__PURE__ */ b.createElement(xe.Provider, { value: e }, r);
|
|
4366
4363
|
}
|
|
4367
|
-
function
|
|
4364
|
+
function Wi(e, o = [], r) {
|
|
4368
4365
|
let n = r?.state;
|
|
4369
4366
|
if (e == null) {
|
|
4370
4367
|
if (!n)
|
|
@@ -4409,14 +4406,14 @@ function Ai(e, o = [], r) {
|
|
|
4409
4406
|
d(p, {
|
|
4410
4407
|
location: n.location,
|
|
4411
4408
|
params: n.matches?.[0]?.params ?? {},
|
|
4412
|
-
unstable_pattern:
|
|
4409
|
+
unstable_pattern: fi(n.matches),
|
|
4413
4410
|
errorInfo: h
|
|
4414
4411
|
});
|
|
4415
4412
|
} : void 0;
|
|
4416
4413
|
return a.reduceRight(
|
|
4417
4414
|
(p, h, C) => {
|
|
4418
4415
|
let g, m = !1, x = null, f = null;
|
|
4419
|
-
n && (g = i && h.route.id ? i[h.route.id] : void 0, x = h.route.errorElement ||
|
|
4416
|
+
n && (g = i && h.route.id ? i[h.route.id] : void 0, x = h.route.errorElement || Pi, s && (l < 0 && C === 0 ? (So(
|
|
4420
4417
|
"route-fallback",
|
|
4421
4418
|
!1,
|
|
4422
4419
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
@@ -4424,7 +4421,7 @@ function Ai(e, o = [], r) {
|
|
|
4424
4421
|
let R = o.concat(a.slice(0, C + 1)), y = () => {
|
|
4425
4422
|
let T;
|
|
4426
4423
|
return g ? T = x : m ? T = f : h.route.Component ? T = /* @__PURE__ */ b.createElement(h.route.Component, null) : h.route.element ? T = h.route.element : T = p, /* @__PURE__ */ b.createElement(
|
|
4427
|
-
|
|
4424
|
+
Mi,
|
|
4428
4425
|
{
|
|
4429
4426
|
match: h,
|
|
4430
4427
|
routeContext: {
|
|
@@ -4455,33 +4452,33 @@ function Ai(e, o = [], r) {
|
|
|
4455
4452
|
function kn(e) {
|
|
4456
4453
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
4457
4454
|
}
|
|
4458
|
-
function
|
|
4455
|
+
function Ai(e) {
|
|
4459
4456
|
let o = b.useContext(Ge);
|
|
4460
4457
|
return U(o, kn(e)), o;
|
|
4461
4458
|
}
|
|
4462
|
-
function
|
|
4459
|
+
function Ei(e) {
|
|
4463
4460
|
let o = b.useContext(Wt);
|
|
4464
4461
|
return U(o, kn(e)), o;
|
|
4465
4462
|
}
|
|
4466
|
-
function
|
|
4463
|
+
function Vi(e) {
|
|
4467
4464
|
let o = b.useContext(xe);
|
|
4468
4465
|
return U(o, kn(e)), o;
|
|
4469
4466
|
}
|
|
4470
4467
|
function Rn(e) {
|
|
4471
|
-
let o =
|
|
4468
|
+
let o = Vi(e), r = o.matches[o.matches.length - 1];
|
|
4472
4469
|
return U(
|
|
4473
4470
|
r.route.id,
|
|
4474
4471
|
`${e} can only be used on routes that contain a unique "id"`
|
|
4475
4472
|
), r.route.id;
|
|
4476
4473
|
}
|
|
4477
|
-
function
|
|
4474
|
+
function Hi() {
|
|
4478
4475
|
return Rn(
|
|
4479
4476
|
"useRouteId"
|
|
4480
4477
|
/* UseRouteId */
|
|
4481
4478
|
);
|
|
4482
4479
|
}
|
|
4483
|
-
function
|
|
4484
|
-
let e = b.useContext(wn), o =
|
|
4480
|
+
function Oi() {
|
|
4481
|
+
let e = b.useContext(wn), o = Ei(
|
|
4485
4482
|
"useRouteError"
|
|
4486
4483
|
/* UseRouteError */
|
|
4487
4484
|
), r = Rn(
|
|
@@ -4490,8 +4487,8 @@ function Di() {
|
|
|
4490
4487
|
);
|
|
4491
4488
|
return e !== void 0 ? e : o.errors?.[r];
|
|
4492
4489
|
}
|
|
4493
|
-
function
|
|
4494
|
-
let { router: e } =
|
|
4490
|
+
function Di() {
|
|
4491
|
+
let { router: e } = Ai(
|
|
4495
4492
|
"useNavigate"
|
|
4496
4493
|
/* UseNavigateStable */
|
|
4497
4494
|
), o = Rn(
|
|
@@ -4511,39 +4508,39 @@ var Hn = {};
|
|
|
4511
4508
|
function So(e, o, r) {
|
|
4512
4509
|
!o && !Hn[e] && (Hn[e] = !0, ve(!1, r));
|
|
4513
4510
|
}
|
|
4514
|
-
b.memo(
|
|
4515
|
-
function
|
|
4511
|
+
b.memo(zi);
|
|
4512
|
+
function zi({
|
|
4516
4513
|
routes: e,
|
|
4517
4514
|
future: o,
|
|
4518
4515
|
state: r,
|
|
4519
4516
|
isStatic: n,
|
|
4520
4517
|
onError: a
|
|
4521
4518
|
}) {
|
|
4522
|
-
return
|
|
4519
|
+
return Ii(e, void 0, { state: r, isStatic: n, onError: a });
|
|
4523
4520
|
}
|
|
4524
4521
|
var ct = "get", ut = "application/x-www-form-urlencoded";
|
|
4525
4522
|
function Et(e) {
|
|
4526
4523
|
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
4527
4524
|
}
|
|
4528
|
-
function
|
|
4525
|
+
function Fi(e) {
|
|
4529
4526
|
return Et(e) && e.tagName.toLowerCase() === "button";
|
|
4530
4527
|
}
|
|
4531
|
-
function
|
|
4528
|
+
function ji(e) {
|
|
4532
4529
|
return Et(e) && e.tagName.toLowerCase() === "form";
|
|
4533
4530
|
}
|
|
4534
|
-
function
|
|
4531
|
+
function Zi(e) {
|
|
4535
4532
|
return Et(e) && e.tagName.toLowerCase() === "input";
|
|
4536
4533
|
}
|
|
4537
|
-
function
|
|
4534
|
+
function $i(e) {
|
|
4538
4535
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
4539
4536
|
}
|
|
4540
|
-
function
|
|
4537
|
+
function _i(e, o) {
|
|
4541
4538
|
return e.button === 0 && // Ignore everything but left clicks
|
|
4542
4539
|
(!o || o === "_self") && // Let browser handle "target=_blank" etc.
|
|
4543
|
-
|
|
4540
|
+
!$i(e);
|
|
4544
4541
|
}
|
|
4545
4542
|
var dt = null;
|
|
4546
|
-
function
|
|
4543
|
+
function Ui() {
|
|
4547
4544
|
if (dt === null)
|
|
4548
4545
|
try {
|
|
4549
4546
|
new FormData(
|
|
@@ -4556,30 +4553,30 @@ function Gi() {
|
|
|
4556
4553
|
}
|
|
4557
4554
|
return dt;
|
|
4558
4555
|
}
|
|
4559
|
-
var
|
|
4556
|
+
var Gi = /* @__PURE__ */ new Set([
|
|
4560
4557
|
"application/x-www-form-urlencoded",
|
|
4561
4558
|
"multipart/form-data",
|
|
4562
4559
|
"text/plain"
|
|
4563
4560
|
]);
|
|
4564
4561
|
function Zt(e) {
|
|
4565
|
-
return e != null && !
|
|
4562
|
+
return e != null && !Gi.has(e) ? (ve(
|
|
4566
4563
|
!1,
|
|
4567
4564
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ut}"`
|
|
4568
4565
|
), null) : e;
|
|
4569
4566
|
}
|
|
4570
|
-
function
|
|
4567
|
+
function qi(e, o) {
|
|
4571
4568
|
let r, n, a, i, s;
|
|
4572
|
-
if (
|
|
4569
|
+
if (ji(e)) {
|
|
4573
4570
|
let l = e.getAttribute("action");
|
|
4574
4571
|
n = l ? ye(l, o) : null, r = e.getAttribute("method") || ct, a = Zt(e.getAttribute("enctype")) || ut, i = new FormData(e);
|
|
4575
|
-
} else if (
|
|
4572
|
+
} else if (Fi(e) || Zi(e) && (e.type === "submit" || e.type === "image")) {
|
|
4576
4573
|
let l = e.form;
|
|
4577
4574
|
if (l == null)
|
|
4578
4575
|
throw new Error(
|
|
4579
4576
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
4580
4577
|
);
|
|
4581
4578
|
let d = e.getAttribute("formaction") || l.getAttribute("action");
|
|
4582
|
-
if (n = d ? ye(d, o) : null, r = e.getAttribute("formmethod") || l.getAttribute("method") || ct, a = Zt(e.getAttribute("formenctype")) || Zt(l.getAttribute("enctype")) || ut, i = new FormData(l, e), !
|
|
4579
|
+
if (n = d ? ye(d, o) : null, r = e.getAttribute("formmethod") || l.getAttribute("method") || ct, a = Zt(e.getAttribute("formenctype")) || Zt(l.getAttribute("enctype")) || ut, i = new FormData(l, e), !Ui()) {
|
|
4583
4580
|
let { name: c, type: p, value: h } = e;
|
|
4584
4581
|
if (p === "image") {
|
|
4585
4582
|
let C = c ? `${c}.` : "";
|
|
@@ -4609,7 +4606,7 @@ function Lo(e, o, r, n) {
|
|
|
4609
4606
|
) : e;
|
|
4610
4607
|
return r ? a.pathname.endsWith("/") ? a.pathname = `${a.pathname}_.${n}` : a.pathname = `${a.pathname}.${n}` : a.pathname === "/" ? a.pathname = `_root.${n}` : o && ye(a.pathname, o) === "/" ? a.pathname = `${o.replace(/\/$/, "")}/_root.${n}` : a.pathname = `${a.pathname.replace(/\/$/, "")}.${n}`, a;
|
|
4611
4608
|
}
|
|
4612
|
-
async function
|
|
4609
|
+
async function Ji(e, o) {
|
|
4613
4610
|
if (e.id in o)
|
|
4614
4611
|
return o[e.id];
|
|
4615
4612
|
try {
|
|
@@ -4626,22 +4623,22 @@ async function Ki(e, o) {
|
|
|
4626
4623
|
});
|
|
4627
4624
|
}
|
|
4628
4625
|
}
|
|
4629
|
-
function
|
|
4626
|
+
function Ki(e) {
|
|
4630
4627
|
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";
|
|
4631
4628
|
}
|
|
4632
|
-
async function
|
|
4629
|
+
async function Xi(e, o, r) {
|
|
4633
4630
|
let n = await Promise.all(
|
|
4634
4631
|
e.map(async (a) => {
|
|
4635
4632
|
let i = o.routes[a.route.id];
|
|
4636
4633
|
if (i) {
|
|
4637
|
-
let s = await
|
|
4634
|
+
let s = await Ji(i, r);
|
|
4638
4635
|
return s.links ? s.links() : [];
|
|
4639
4636
|
}
|
|
4640
4637
|
return [];
|
|
4641
4638
|
})
|
|
4642
4639
|
);
|
|
4643
|
-
return
|
|
4644
|
-
n.flat(1).filter(
|
|
4640
|
+
return ts(
|
|
4641
|
+
n.flat(1).filter(Ki).filter((a) => a.rel === "stylesheet" || a.rel === "preload").map(
|
|
4645
4642
|
(a) => a.rel === "stylesheet" ? { ...a, rel: "prefetch", as: "style" } : { ...a, rel: "prefetch" }
|
|
4646
4643
|
)
|
|
4647
4644
|
);
|
|
@@ -4678,8 +4675,8 @@ function On(e, o, r, n, a, i) {
|
|
|
4678
4675
|
return !0;
|
|
4679
4676
|
}) : [];
|
|
4680
4677
|
}
|
|
4681
|
-
function
|
|
4682
|
-
return
|
|
4678
|
+
function Yi(e, o, { includeHydrateFallback: r } = {}) {
|
|
4679
|
+
return Qi(
|
|
4683
4680
|
e.map((n) => {
|
|
4684
4681
|
let a = o.routes[n.route.id];
|
|
4685
4682
|
if (!a) return [];
|
|
@@ -4688,19 +4685,19 @@ function Qi(e, o, { includeHydrateFallback: r } = {}) {
|
|
|
4688
4685
|
}).flat(1)
|
|
4689
4686
|
);
|
|
4690
4687
|
}
|
|
4691
|
-
function
|
|
4688
|
+
function Qi(e) {
|
|
4692
4689
|
return [...new Set(e)];
|
|
4693
4690
|
}
|
|
4694
|
-
function
|
|
4691
|
+
function es(e) {
|
|
4695
4692
|
let o = {}, r = Object.keys(e).sort();
|
|
4696
4693
|
for (let n of r)
|
|
4697
4694
|
o[n] = e[n];
|
|
4698
4695
|
return o;
|
|
4699
4696
|
}
|
|
4700
|
-
function
|
|
4697
|
+
function ts(e, o) {
|
|
4701
4698
|
let r = /* @__PURE__ */ new Set();
|
|
4702
4699
|
return new Set(o), e.reduce((n, a) => {
|
|
4703
|
-
let i = JSON.stringify(
|
|
4700
|
+
let i = JSON.stringify(es(a));
|
|
4704
4701
|
return r.has(i) || (r.add(i), n.push({ key: i, link: a })), n;
|
|
4705
4702
|
}, []);
|
|
4706
4703
|
}
|
|
@@ -4711,7 +4708,7 @@ function Sn() {
|
|
|
4711
4708
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
4712
4709
|
), e;
|
|
4713
4710
|
}
|
|
4714
|
-
function
|
|
4711
|
+
function ns() {
|
|
4715
4712
|
let e = b.useContext(Wt);
|
|
4716
4713
|
return yn(
|
|
4717
4714
|
e,
|
|
@@ -4727,7 +4724,7 @@ function Tn() {
|
|
|
4727
4724
|
"You must render this element inside a <HydratedRouter> element"
|
|
4728
4725
|
), e;
|
|
4729
4726
|
}
|
|
4730
|
-
function
|
|
4727
|
+
function os(e, o) {
|
|
4731
4728
|
let r = b.useContext(Ln), [n, a] = b.useState(!1), [i, s] = b.useState(!1), { onFocus: l, onBlur: d, onMouseEnter: c, onMouseLeave: p, onTouchStart: h } = o, C = b.useRef(null);
|
|
4732
4729
|
b.useEffect(() => {
|
|
4733
4730
|
if (e === "render" && s(!0), e === "viewport") {
|
|
@@ -4772,18 +4769,18 @@ function Je(e, o) {
|
|
|
4772
4769
|
e && e(r), r.defaultPrevented || o(r);
|
|
4773
4770
|
};
|
|
4774
4771
|
}
|
|
4775
|
-
function
|
|
4776
|
-
let r =
|
|
4772
|
+
function rs({ page: e, ...o }) {
|
|
4773
|
+
let r = vi(), { router: n } = Sn(), a = b.useMemo(
|
|
4777
4774
|
() => ho(n.routes, e, n.basename),
|
|
4778
4775
|
[n.routes, e, n.basename]
|
|
4779
4776
|
);
|
|
4780
|
-
return a ? r ? /* @__PURE__ */ b.createElement(
|
|
4777
|
+
return a ? r ? /* @__PURE__ */ b.createElement(is, { page: e, matches: a, ...o }) : /* @__PURE__ */ b.createElement(ss, { page: e, matches: a, ...o }) : null;
|
|
4781
4778
|
}
|
|
4782
|
-
function
|
|
4779
|
+
function as(e) {
|
|
4783
4780
|
let { manifest: o, routeModules: r } = Tn(), [n, a] = b.useState([]);
|
|
4784
4781
|
return b.useEffect(() => {
|
|
4785
4782
|
let i = !1;
|
|
4786
|
-
return
|
|
4783
|
+
return Xi(e, o, r).then(
|
|
4787
4784
|
(s) => {
|
|
4788
4785
|
i || a(s);
|
|
4789
4786
|
}
|
|
@@ -4792,7 +4789,7 @@ function is(e) {
|
|
|
4792
4789
|
};
|
|
4793
4790
|
}, [e, o, r]), n;
|
|
4794
4791
|
}
|
|
4795
|
-
function
|
|
4792
|
+
function is({
|
|
4796
4793
|
page: e,
|
|
4797
4794
|
matches: o,
|
|
4798
4795
|
...r
|
|
@@ -4818,12 +4815,12 @@ function ss({
|
|
|
4818
4815
|
]);
|
|
4819
4816
|
return /* @__PURE__ */ b.createElement(b.Fragment, null, s.map((l) => /* @__PURE__ */ b.createElement("link", { key: l, rel: "prefetch", as: "fetch", href: l, ...r })));
|
|
4820
4817
|
}
|
|
4821
|
-
function
|
|
4818
|
+
function ss({
|
|
4822
4819
|
page: e,
|
|
4823
4820
|
matches: o,
|
|
4824
4821
|
...r
|
|
4825
4822
|
}) {
|
|
4826
|
-
let n = we(), { future: a, manifest: i, routeModules: s } = Tn(), { basename: l } = Sn(), { loaderData: d, matches: c } =
|
|
4823
|
+
let n = we(), { future: a, manifest: i, routeModules: s } = Tn(), { basename: l } = Sn(), { loaderData: d, matches: c } = ns(), p = b.useMemo(
|
|
4827
4824
|
() => On(
|
|
4828
4825
|
e,
|
|
4829
4826
|
o,
|
|
@@ -4873,9 +4870,9 @@ function ls({
|
|
|
4873
4870
|
e,
|
|
4874
4871
|
s
|
|
4875
4872
|
]), g = b.useMemo(
|
|
4876
|
-
() =>
|
|
4873
|
+
() => Yi(h, i),
|
|
4877
4874
|
[h, i]
|
|
4878
|
-
), m =
|
|
4875
|
+
), m = as(h);
|
|
4879
4876
|
return /* @__PURE__ */ b.createElement(b.Fragment, null, C.map((x) => /* @__PURE__ */ b.createElement("link", { key: x, rel: "prefetch", as: "fetch", href: x, ...r })), g.map((x) => /* @__PURE__ */ b.createElement("link", { key: x, rel: "modulepreload", href: x, ...r })), m.map(({ key: x, link: f }) => (
|
|
4880
4877
|
// these don't spread `linkProps` because they are full link descriptors
|
|
4881
4878
|
// already with their own props
|
|
@@ -4890,16 +4887,16 @@ function ls({
|
|
|
4890
4887
|
)
|
|
4891
4888
|
)));
|
|
4892
4889
|
}
|
|
4893
|
-
function
|
|
4890
|
+
function ls(...e) {
|
|
4894
4891
|
return (o) => {
|
|
4895
4892
|
e.forEach((r) => {
|
|
4896
4893
|
typeof r == "function" ? r(o) : r != null && (r.current = o);
|
|
4897
4894
|
});
|
|
4898
4895
|
};
|
|
4899
4896
|
}
|
|
4900
|
-
var
|
|
4897
|
+
var ds = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
4901
4898
|
try {
|
|
4902
|
-
|
|
4899
|
+
ds && (window.__reactRouterVersion = // @ts-expect-error
|
|
4903
4900
|
"7.14.0");
|
|
4904
4901
|
} catch {
|
|
4905
4902
|
}
|
|
@@ -4920,9 +4917,9 @@ var To = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Io = b.forwardRef(
|
|
|
4920
4917
|
unstable_defaultShouldRevalidate: g,
|
|
4921
4918
|
...m
|
|
4922
4919
|
}, x) {
|
|
4923
|
-
let { basename: f, navigator: R, unstable_useTransitions: y } = b.useContext(
|
|
4920
|
+
let { basename: f, navigator: R, unstable_useTransitions: y } = b.useContext(ie), T = typeof p == "string" && To.test(p), S = Co(p, f);
|
|
4924
4921
|
p = S.to;
|
|
4925
|
-
let
|
|
4922
|
+
let I = Si(p, { relative: a }), M = we(), V = null;
|
|
4926
4923
|
if (l) {
|
|
4927
4924
|
let J = bn(
|
|
4928
4925
|
l,
|
|
@@ -4930,12 +4927,12 @@ var To = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Io = b.forwardRef(
|
|
|
4930
4927
|
M.unstable_mask ? M.unstable_mask.pathname : "/",
|
|
4931
4928
|
!0
|
|
4932
4929
|
);
|
|
4933
|
-
f !== "/" && (J.pathname = J.pathname === "/" ? f : le([f, J.pathname])),
|
|
4930
|
+
f !== "/" && (J.pathname = J.pathname === "/" ? f : le([f, J.pathname])), V = R.createHref(J);
|
|
4934
4931
|
}
|
|
4935
|
-
let [
|
|
4932
|
+
let [se, pe, ke] = os(
|
|
4936
4933
|
n,
|
|
4937
4934
|
m
|
|
4938
|
-
),
|
|
4935
|
+
), qe = ps(p, {
|
|
4939
4936
|
replace: s,
|
|
4940
4937
|
unstable_mask: l,
|
|
4941
4938
|
state: d,
|
|
@@ -4946,29 +4943,29 @@ var To = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Io = b.forwardRef(
|
|
|
4946
4943
|
unstable_defaultShouldRevalidate: g,
|
|
4947
4944
|
unstable_useTransitions: y
|
|
4948
4945
|
});
|
|
4949
|
-
function
|
|
4950
|
-
o && o(J), J.defaultPrevented ||
|
|
4946
|
+
function Be(J) {
|
|
4947
|
+
o && o(J), J.defaultPrevented || qe(J);
|
|
4951
4948
|
}
|
|
4952
|
-
let
|
|
4949
|
+
let Ee = !(S.isExternal || i), q = (
|
|
4953
4950
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
4954
4951
|
/* @__PURE__ */ b.createElement(
|
|
4955
4952
|
"a",
|
|
4956
4953
|
{
|
|
4957
4954
|
...m,
|
|
4958
|
-
...
|
|
4959
|
-
href: (
|
|
4960
|
-
onClick:
|
|
4961
|
-
ref:
|
|
4955
|
+
...ke,
|
|
4956
|
+
href: (Ee ? V : void 0) || S.absoluteURL || I,
|
|
4957
|
+
onClick: Ee ? Be : o,
|
|
4958
|
+
ref: ls(x, pe),
|
|
4962
4959
|
target: c,
|
|
4963
4960
|
"data-discover": !T && r === "render" ? "true" : void 0
|
|
4964
4961
|
}
|
|
4965
4962
|
)
|
|
4966
4963
|
);
|
|
4967
|
-
return
|
|
4964
|
+
return se && !T ? /* @__PURE__ */ b.createElement(b.Fragment, null, q, /* @__PURE__ */ b.createElement(rs, { page: I })) : q;
|
|
4968
4965
|
}
|
|
4969
4966
|
);
|
|
4970
4967
|
Io.displayName = "Link";
|
|
4971
|
-
var
|
|
4968
|
+
var cs = b.forwardRef(
|
|
4972
4969
|
function({
|
|
4973
4970
|
"aria-current": o = "page",
|
|
4974
4971
|
caseSensitive: r = !1,
|
|
@@ -4980,40 +4977,40 @@ var us = b.forwardRef(
|
|
|
4980
4977
|
children: d,
|
|
4981
4978
|
...c
|
|
4982
4979
|
}, p) {
|
|
4983
|
-
let h = tt(s, { relative: c.relative }), C = we(), g = b.useContext(Wt), { navigator: m, basename: x } = b.useContext(
|
|
4980
|
+
let h = tt(s, { relative: c.relative }), C = we(), g = b.useContext(Wt), { navigator: m, basename: x } = b.useContext(ie), f = g != null && // Conditional usage is OK here because the usage of a data router is static
|
|
4984
4981
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
4985
|
-
|
|
4982
|
+
vs(h) && l === !0, R = m.encodeLocation ? m.encodeLocation(h).pathname : h.pathname, y = C.pathname, T = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
|
|
4986
4983
|
r || (y = y.toLowerCase(), T = T ? T.toLowerCase() : null, R = R.toLowerCase()), T && x && (T = ye(T, x) || T);
|
|
4987
4984
|
const S = R !== "/" && R.endsWith("/") ? R.length - 1 : R.length;
|
|
4988
|
-
let
|
|
4989
|
-
isActive:
|
|
4985
|
+
let I = y === R || !a && y.startsWith(R) && y.charAt(S) === "/", M = T != null && (T === R || !a && T.startsWith(R) && T.charAt(R.length) === "/"), V = {
|
|
4986
|
+
isActive: I,
|
|
4990
4987
|
isPending: M,
|
|
4991
4988
|
isTransitioning: f
|
|
4992
|
-
},
|
|
4993
|
-
typeof n == "function" ? pe = n(
|
|
4989
|
+
}, se = I ? o : void 0, pe;
|
|
4990
|
+
typeof n == "function" ? pe = n(V) : pe = [
|
|
4994
4991
|
n,
|
|
4995
|
-
|
|
4992
|
+
I ? "active" : null,
|
|
4996
4993
|
M ? "pending" : null,
|
|
4997
4994
|
f ? "transitioning" : null
|
|
4998
4995
|
].filter(Boolean).join(" ");
|
|
4999
|
-
let
|
|
4996
|
+
let ke = typeof i == "function" ? i(V) : i;
|
|
5000
4997
|
return /* @__PURE__ */ b.createElement(
|
|
5001
4998
|
Io,
|
|
5002
4999
|
{
|
|
5003
5000
|
...c,
|
|
5004
|
-
"aria-current":
|
|
5001
|
+
"aria-current": se,
|
|
5005
5002
|
className: pe,
|
|
5006
5003
|
ref: p,
|
|
5007
|
-
style:
|
|
5004
|
+
style: ke,
|
|
5008
5005
|
to: s,
|
|
5009
5006
|
viewTransition: l
|
|
5010
5007
|
},
|
|
5011
|
-
typeof d == "function" ? d(
|
|
5008
|
+
typeof d == "function" ? d(V) : d
|
|
5012
5009
|
);
|
|
5013
5010
|
}
|
|
5014
5011
|
);
|
|
5015
|
-
|
|
5016
|
-
var
|
|
5012
|
+
cs.displayName = "NavLink";
|
|
5013
|
+
var us = b.forwardRef(
|
|
5017
5014
|
({
|
|
5018
5015
|
discover: e = "render",
|
|
5019
5016
|
fetcherKey: o,
|
|
@@ -5030,12 +5027,12 @@ var hs = b.forwardRef(
|
|
|
5030
5027
|
unstable_defaultShouldRevalidate: C,
|
|
5031
5028
|
...g
|
|
5032
5029
|
}, m) => {
|
|
5033
|
-
let { unstable_useTransitions: x } = b.useContext(
|
|
5034
|
-
if (d && d(
|
|
5035
|
-
|
|
5036
|
-
let M =
|
|
5030
|
+
let { unstable_useTransitions: x } = b.useContext(ie), f = fs(), R = Cs(l, { relative: c }), y = s.toLowerCase() === "get" ? "get" : "post", T = typeof l == "string" && To.test(l), S = (I) => {
|
|
5031
|
+
if (d && d(I), I.defaultPrevented) return;
|
|
5032
|
+
I.preventDefault();
|
|
5033
|
+
let M = I.nativeEvent.submitter, V = M?.getAttribute("formmethod") || s, se = () => f(M || I.currentTarget, {
|
|
5037
5034
|
fetcherKey: o,
|
|
5038
|
-
method:
|
|
5035
|
+
method: V,
|
|
5039
5036
|
navigate: r,
|
|
5040
5037
|
replace: a,
|
|
5041
5038
|
state: i,
|
|
@@ -5044,7 +5041,7 @@ var hs = b.forwardRef(
|
|
|
5044
5041
|
viewTransition: h,
|
|
5045
5042
|
unstable_defaultShouldRevalidate: C
|
|
5046
5043
|
});
|
|
5047
|
-
x && r !== !1 ? b.startTransition(() =>
|
|
5044
|
+
x && r !== !1 ? b.startTransition(() => se()) : se();
|
|
5048
5045
|
};
|
|
5049
5046
|
return /* @__PURE__ */ b.createElement(
|
|
5050
5047
|
"form",
|
|
@@ -5059,15 +5056,15 @@ var hs = b.forwardRef(
|
|
|
5059
5056
|
);
|
|
5060
5057
|
}
|
|
5061
5058
|
);
|
|
5062
|
-
|
|
5063
|
-
function
|
|
5059
|
+
us.displayName = "Form";
|
|
5060
|
+
function hs(e) {
|
|
5064
5061
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
5065
5062
|
}
|
|
5066
5063
|
function Bo(e) {
|
|
5067
5064
|
let o = b.useContext(Ge);
|
|
5068
|
-
return U(o,
|
|
5065
|
+
return U(o, hs(e)), o;
|
|
5069
5066
|
}
|
|
5070
|
-
function
|
|
5067
|
+
function ps(e, {
|
|
5071
5068
|
target: o,
|
|
5072
5069
|
replace: r,
|
|
5073
5070
|
unstable_mask: n,
|
|
@@ -5078,10 +5075,10 @@ function gs(e, {
|
|
|
5078
5075
|
unstable_defaultShouldRevalidate: d,
|
|
5079
5076
|
unstable_useTransitions: c
|
|
5080
5077
|
} = {}) {
|
|
5081
|
-
let p =
|
|
5078
|
+
let p = Li(), h = we(), C = tt(e, { relative: s });
|
|
5082
5079
|
return b.useCallback(
|
|
5083
5080
|
(g) => {
|
|
5084
|
-
if (
|
|
5081
|
+
if (_i(g, o)) {
|
|
5085
5082
|
g.preventDefault();
|
|
5086
5083
|
let m = r !== void 0 ? r : Ct(h) === Ct(C), x = () => p(e, {
|
|
5087
5084
|
replace: m,
|
|
@@ -5112,20 +5109,20 @@ function gs(e, {
|
|
|
5112
5109
|
]
|
|
5113
5110
|
);
|
|
5114
5111
|
}
|
|
5115
|
-
var
|
|
5116
|
-
function
|
|
5112
|
+
var gs = 0, ms = () => `__${String(++gs)}__`;
|
|
5113
|
+
function fs() {
|
|
5117
5114
|
let { router: e } = Bo(
|
|
5118
5115
|
"useSubmit"
|
|
5119
5116
|
/* UseSubmit */
|
|
5120
|
-
), { basename: o } = b.useContext(
|
|
5117
|
+
), { basename: o } = b.useContext(ie), r = Hi(), n = e.fetch, a = e.navigate;
|
|
5121
5118
|
return b.useCallback(
|
|
5122
5119
|
async (i, s = {}) => {
|
|
5123
|
-
let { action: l, method: d, encType: c, formData: p, body: h } =
|
|
5120
|
+
let { action: l, method: d, encType: c, formData: p, body: h } = qi(
|
|
5124
5121
|
i,
|
|
5125
5122
|
o
|
|
5126
5123
|
);
|
|
5127
5124
|
if (s.navigate === !1) {
|
|
5128
|
-
let C = s.fetcherKey ||
|
|
5125
|
+
let C = s.fetcherKey || ms();
|
|
5129
5126
|
await n(C, r, s.action || l, {
|
|
5130
5127
|
unstable_defaultShouldRevalidate: s.unstable_defaultShouldRevalidate,
|
|
5131
5128
|
preventScrollReset: s.preventScrollReset,
|
|
@@ -5153,8 +5150,8 @@ function Cs() {
|
|
|
5153
5150
|
[n, a, o, r]
|
|
5154
5151
|
);
|
|
5155
5152
|
}
|
|
5156
|
-
function
|
|
5157
|
-
let { basename: r } = b.useContext(
|
|
5153
|
+
function Cs(e, { relative: o } = {}) {
|
|
5154
|
+
let { basename: r } = b.useContext(ie), n = b.useContext(xe);
|
|
5158
5155
|
U(n, "useFormAction must be used inside a RouteContext");
|
|
5159
5156
|
let [a] = n.matches.slice(-1), i = { ...tt(e || ".", { relative: o }) }, s = we();
|
|
5160
5157
|
if (e == null) {
|
|
@@ -5168,7 +5165,7 @@ function vs(e, { relative: o } = {}) {
|
|
|
5168
5165
|
}
|
|
5169
5166
|
return (!e || e === ".") && a.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r : le([r, i.pathname])), Ct(i);
|
|
5170
5167
|
}
|
|
5171
|
-
function
|
|
5168
|
+
function vs(e, { relative: o } = {}) {
|
|
5172
5169
|
let r = b.useContext(xo);
|
|
5173
5170
|
U(
|
|
5174
5171
|
r != null,
|
|
@@ -5183,13 +5180,13 @@ function bs(e, { relative: o } = {}) {
|
|
|
5183
5180
|
let i = ye(r.currentLocation.pathname, n) || r.currentLocation.pathname, s = ye(r.nextLocation.pathname, n) || r.nextLocation.pathname;
|
|
5184
5181
|
return vt(a.pathname, s) != null || vt(a.pathname, i) != null;
|
|
5185
5182
|
}
|
|
5186
|
-
const
|
|
5183
|
+
const bs = ({ readonlyTo: e }) => {
|
|
5187
5184
|
const { nodeProps: o, setNodeProps: r } = Mt(), n = e ?? o.anchor?.to, a = (() => {
|
|
5188
5185
|
if (!D(n))
|
|
5189
5186
|
return de(n) ? n : Ct(n);
|
|
5190
5187
|
})();
|
|
5191
5188
|
return /* @__PURE__ */ t(L, { name: "To", children: /* @__PURE__ */ t("div", { css: { width: "50%" }, children: /* @__PURE__ */ t(
|
|
5192
|
-
|
|
5189
|
+
re,
|
|
5193
5190
|
{
|
|
5194
5191
|
readOnly: !!e,
|
|
5195
5192
|
placeholder: "https://example.com",
|
|
@@ -5210,7 +5207,7 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5210
5207
|
}
|
|
5211
5208
|
}
|
|
5212
5209
|
) }) });
|
|
5213
|
-
},
|
|
5210
|
+
}, xs = () => {
|
|
5214
5211
|
const { nodeProps: e, setNodeResponsiveProps: o } = Mt(), { getResponsiveProp: r, currentScreen: n } = W(), a = [
|
|
5215
5212
|
{
|
|
5216
5213
|
label: "Small",
|
|
@@ -5243,7 +5240,7 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5243
5240
|
onChange: i
|
|
5244
5241
|
}
|
|
5245
5242
|
) });
|
|
5246
|
-
},
|
|
5243
|
+
}, ws = [
|
|
5247
5244
|
{
|
|
5248
5245
|
value: "contained",
|
|
5249
5246
|
label: "Contained"
|
|
@@ -5256,13 +5253,13 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5256
5253
|
value: "text",
|
|
5257
5254
|
label: "Text"
|
|
5258
5255
|
}
|
|
5259
|
-
],
|
|
5256
|
+
], ks = () => {
|
|
5260
5257
|
const { nodeProps: e, setNodeProps: o } = Mt(), r = (n) => {
|
|
5261
5258
|
o({
|
|
5262
5259
|
variant: n.currentTarget.value
|
|
5263
5260
|
});
|
|
5264
5261
|
};
|
|
5265
|
-
return /* @__PURE__ */ t(L, { name: "Variant", children: /* @__PURE__ */ t("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children:
|
|
5262
|
+
return /* @__PURE__ */ t(L, { name: "Variant", children: /* @__PURE__ */ t("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: ws.map((n) => {
|
|
5266
5263
|
const a = e?.variant === n.value;
|
|
5267
5264
|
return /* @__PURE__ */ t(
|
|
5268
5265
|
"button",
|
|
@@ -5310,10 +5307,10 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5310
5307
|
n.value
|
|
5311
5308
|
);
|
|
5312
5309
|
}) }) });
|
|
5313
|
-
},
|
|
5310
|
+
}, Fl = ({ readonlyTo: e }) => {
|
|
5314
5311
|
const { nodeProps: o, setNodeProps: r } = Mt(), { currentScreen: n, getResponsiveProp: a } = W(), i = (p, h = n) => {
|
|
5315
5312
|
r({
|
|
5316
|
-
sx:
|
|
5313
|
+
sx: H(p, h)
|
|
5317
5314
|
});
|
|
5318
5315
|
}, s = {
|
|
5319
5316
|
width: a(o.sx ?? {}, "width")
|
|
@@ -5341,17 +5338,17 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5341
5338
|
] }),
|
|
5342
5339
|
/* @__PURE__ */ u($, { css: { paddingInline: 8 }, children: [
|
|
5343
5340
|
/* @__PURE__ */ u(N, { children: [
|
|
5344
|
-
/* @__PURE__ */ t(w, { name: "Text", children: /* @__PURE__ */ t(L, { name: "Content", children: /* @__PURE__ */ t("div", { css: { width: "50%" }, children: /* @__PURE__ */ t(
|
|
5341
|
+
/* @__PURE__ */ t(w, { name: "Text", children: /* @__PURE__ */ t(L, { name: "Content", children: /* @__PURE__ */ t("div", { css: { width: "50%" }, children: /* @__PURE__ */ t(re, { value: o.dangerouslySetInnerHTML?.__html.toString() ?? "", onChange: c }) }) }) }),
|
|
5345
5342
|
/* @__PURE__ */ u(w, { name: "Color & Variant", children: [
|
|
5346
|
-
/* @__PURE__ */ t(
|
|
5347
|
-
/* @__PURE__ */ t(
|
|
5343
|
+
/* @__PURE__ */ t(Fa, { value: o.color, onChange: l }),
|
|
5344
|
+
/* @__PURE__ */ t(ks, {})
|
|
5348
5345
|
] }),
|
|
5349
5346
|
/* @__PURE__ */ u(w, { name: "Size", children: [
|
|
5350
|
-
/* @__PURE__ */ t(
|
|
5351
|
-
/* @__PURE__ */ t(
|
|
5347
|
+
/* @__PURE__ */ t(xs, {}),
|
|
5348
|
+
/* @__PURE__ */ t(ee, { onChange: i, value: s })
|
|
5352
5349
|
] }),
|
|
5353
5350
|
/* @__PURE__ */ u(w, { name: "Link", children: [
|
|
5354
|
-
/* @__PURE__ */ t(
|
|
5351
|
+
/* @__PURE__ */ t(bs, { readonlyTo: e }),
|
|
5355
5352
|
/* @__PURE__ */ t(co, { value: o.anchor?.target, onChange: d })
|
|
5356
5353
|
] })
|
|
5357
5354
|
] }),
|
|
@@ -5372,30 +5369,30 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5372
5369
|
] })
|
|
5373
5370
|
] })
|
|
5374
5371
|
] });
|
|
5375
|
-
}, Po = () =>
|
|
5376
|
-
transform:
|
|
5377
|
-
}),
|
|
5372
|
+
}, Po = () => O({
|
|
5373
|
+
transform: Nr
|
|
5374
|
+
}), Rs = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5378
5375
|
<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"/>
|
|
5379
5376
|
<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"/>
|
|
5380
|
-
</svg>`,
|
|
5377
|
+
</svg>`, ys = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5381
5378
|
<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"/>
|
|
5382
5379
|
<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"/>
|
|
5383
|
-
</svg>`,
|
|
5380
|
+
</svg>`, Ss = [
|
|
5384
5381
|
{
|
|
5385
5382
|
value: "row",
|
|
5386
|
-
icon:
|
|
5383
|
+
icon: ys,
|
|
5387
5384
|
label: "Row"
|
|
5388
5385
|
},
|
|
5389
5386
|
{
|
|
5390
5387
|
value: "column",
|
|
5391
|
-
icon:
|
|
5388
|
+
icon: Rs,
|
|
5392
5389
|
label: "Column"
|
|
5393
5390
|
}
|
|
5394
|
-
],
|
|
5391
|
+
], Ls = () => {
|
|
5395
5392
|
const { nodeProps: e, setNodeProps: o } = Po(), { currentScreen: r, getResponsiveProp: n } = W(), a = n(e.sx ?? {}, "flexDirection");
|
|
5396
|
-
return /* @__PURE__ */ t(L, { responsive: !0, name: "Direction", children: /* @__PURE__ */ t(
|
|
5393
|
+
return /* @__PURE__ */ t(L, { responsive: !0, name: "Direction", children: /* @__PURE__ */ t(Q, { value: a, onSelectionChange: (s) => {
|
|
5397
5394
|
o({
|
|
5398
|
-
sx:
|
|
5395
|
+
sx: H(
|
|
5399
5396
|
{
|
|
5400
5397
|
flexDirection: s,
|
|
5401
5398
|
justifyContent: void 0,
|
|
@@ -5404,8 +5401,8 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5404
5401
|
r
|
|
5405
5402
|
)
|
|
5406
5403
|
});
|
|
5407
|
-
}, children:
|
|
5408
|
-
|
|
5404
|
+
}, children: Ss.map((s) => /* @__PURE__ */ t(
|
|
5405
|
+
B,
|
|
5409
5406
|
{
|
|
5410
5407
|
tooltip: {
|
|
5411
5408
|
content: s.label
|
|
@@ -5416,9 +5413,9 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5416
5413
|
},
|
|
5417
5414
|
s.value
|
|
5418
5415
|
)) }) });
|
|
5419
|
-
},
|
|
5416
|
+
}, jl = () => {
|
|
5420
5417
|
const { nodeProps: e, setNodeProps: o } = Po(), { currentScreen: r, getResponsiveProp: n } = W(), a = (f, R = r) => {
|
|
5421
|
-
o({ sx:
|
|
5418
|
+
o({ sx: H(f, R) });
|
|
5422
5419
|
}, i = {
|
|
5423
5420
|
borderStyle: n(e.sx ?? {}, "borderStyle"),
|
|
5424
5421
|
borderColor: n(e.sx ?? {}, "borderColor"),
|
|
@@ -5431,7 +5428,7 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5431
5428
|
borderTopRightRadius: n(e.sx ?? {}, "borderTopRightRadius"),
|
|
5432
5429
|
borderBottomRightRadius: n(e.sx ?? {}, "borderBottomRightRadius"),
|
|
5433
5430
|
borderBottomLeftRadius: n(e.sx ?? {}, "borderBottomLeftRadius")
|
|
5434
|
-
}, l = () => /* @__PURE__ */ t(
|
|
5431
|
+
}, l = () => /* @__PURE__ */ t(te, { canvas: !0, is: Xo }), d = {
|
|
5435
5432
|
rowGap: n(e.sx ?? {}, "rowGap") ?? 0
|
|
5436
5433
|
}, c = {
|
|
5437
5434
|
columnGap: n(e.sx ?? {}, "columnGap") ?? 0
|
|
@@ -5461,7 +5458,7 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5461
5458
|
/* @__PURE__ */ u(N, { children: [
|
|
5462
5459
|
/* @__PURE__ */ t(w, { name: "Flex items", children: /* @__PURE__ */ t(Qe, { getNewNodeElement: l }) }),
|
|
5463
5460
|
/* @__PURE__ */ u(w, { name: "Layout", children: [
|
|
5464
|
-
/* @__PURE__ */ t(
|
|
5461
|
+
/* @__PURE__ */ t(Ls, {}),
|
|
5465
5462
|
/* @__PURE__ */ t(
|
|
5466
5463
|
so,
|
|
5467
5464
|
{
|
|
@@ -5475,7 +5472,7 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5475
5472
|
/* @__PURE__ */ t(gn, { value: c, onChange: a }),
|
|
5476
5473
|
/* @__PURE__ */ t(ao, { flexDirection: g, value: h, onChange: a }),
|
|
5477
5474
|
/* @__PURE__ */ t(
|
|
5478
|
-
|
|
5475
|
+
Da,
|
|
5479
5476
|
{
|
|
5480
5477
|
onChange: a,
|
|
5481
5478
|
value: m,
|
|
@@ -5485,7 +5482,7 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5485
5482
|
] }),
|
|
5486
5483
|
/* @__PURE__ */ u(w, { name: "Size", children: [
|
|
5487
5484
|
/* @__PURE__ */ t(
|
|
5488
|
-
|
|
5485
|
+
ee,
|
|
5489
5486
|
{
|
|
5490
5487
|
menu: {
|
|
5491
5488
|
autoOption: { visible: !0 },
|
|
@@ -5534,13 +5531,13 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5534
5531
|
] })
|
|
5535
5532
|
] })
|
|
5536
5533
|
] });
|
|
5537
|
-
}, In = () =>
|
|
5538
|
-
transform:
|
|
5539
|
-
}),
|
|
5534
|
+
}, In = () => O({
|
|
5535
|
+
transform: Mr
|
|
5536
|
+
}), Ts = () => {
|
|
5540
5537
|
const { nodeProps: e, setNodeProps: o } = In(), { getResponsiveProp: r, currentScreen: n } = W(), a = r(e.sx ?? {}, "flexGrow");
|
|
5541
5538
|
return /* @__PURE__ */ t(L, { guide: "Automatically expands to fill the available space in a flex container.", name: "Auto grow", children: /* @__PURE__ */ t(ce, { onChange: (s) => {
|
|
5542
5539
|
o({
|
|
5543
|
-
sx:
|
|
5540
|
+
sx: H(
|
|
5544
5541
|
{
|
|
5545
5542
|
flexGrow: s.target.checked ? 1 : void 0
|
|
5546
5543
|
},
|
|
@@ -5548,11 +5545,11 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5548
5545
|
)
|
|
5549
5546
|
});
|
|
5550
5547
|
}, checked: !D(a) }) });
|
|
5551
|
-
},
|
|
5548
|
+
}, Is = () => {
|
|
5552
5549
|
const { nodeProps: e, setNodeProps: o } = In(), { getResponsiveProp: r, currentScreen: n } = W(), a = r(e.sx ?? {}, "flexShrink");
|
|
5553
5550
|
return /* @__PURE__ */ t(L, { guide: "Automatically shrinks when there isn’t enough space in the flex container.", name: "Auto shrink", children: /* @__PURE__ */ t(ce, { onChange: (s) => {
|
|
5554
5551
|
o({
|
|
5555
|
-
sx:
|
|
5552
|
+
sx: H(
|
|
5556
5553
|
{
|
|
5557
5554
|
flexShrink: s.target.checked ? void 0 : 0
|
|
5558
5555
|
},
|
|
@@ -5560,9 +5557,9 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5560
5557
|
)
|
|
5561
5558
|
});
|
|
5562
5559
|
}, checked: a !== 0 }) });
|
|
5563
|
-
},
|
|
5560
|
+
}, Zl = () => {
|
|
5564
5561
|
const { nodeProps: e, setNodeProps: o } = In(), { currentScreen: r, getResponsiveProp: n } = W(), a = (p, h = r) => {
|
|
5565
|
-
o({ sx:
|
|
5562
|
+
o({ sx: H(p, h) });
|
|
5566
5563
|
}, i = {
|
|
5567
5564
|
borderStyle: n(e.sx ?? {}, "borderStyle"),
|
|
5568
5565
|
borderColor: n(e.sx ?? {}, "borderColor"),
|
|
@@ -5595,10 +5592,10 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5595
5592
|
] }),
|
|
5596
5593
|
/* @__PURE__ */ u($, { css: { paddingInline: 8 }, children: [
|
|
5597
5594
|
/* @__PURE__ */ t(N, { children: /* @__PURE__ */ u(w, { name: "Layout", children: [
|
|
5598
|
-
/* @__PURE__ */ t(Bs, {}),
|
|
5599
5595
|
/* @__PURE__ */ t(Is, {}),
|
|
5596
|
+
/* @__PURE__ */ t(Ts, {}),
|
|
5600
5597
|
/* @__PURE__ */ t(
|
|
5601
|
-
|
|
5598
|
+
ee,
|
|
5602
5599
|
{
|
|
5603
5600
|
menu: {
|
|
5604
5601
|
autoOption: { visible: !0 },
|
|
@@ -5656,8 +5653,8 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5656
5653
|
] })
|
|
5657
5654
|
] });
|
|
5658
5655
|
}, No = ({ availableTags: e = [] }) => {
|
|
5659
|
-
const { setNodeProps: o, setNodeResponsiveProps: r, nodeProps: n } =
|
|
5660
|
-
o({ sx:
|
|
5656
|
+
const { setNodeProps: o, setNodeResponsiveProps: r, nodeProps: n } = O(), { currentScreen: a, getResponsiveProp: i } = W(), s = (x, f = a) => {
|
|
5657
|
+
o({ sx: H(x, f) });
|
|
5661
5658
|
}, l = {
|
|
5662
5659
|
fontStyle: i(n.sx ?? {}, "fontStyle", "xs"),
|
|
5663
5660
|
textDecorationLine: i(n.sx ?? {}, "textDecorationLine", "xs"),
|
|
@@ -5735,8 +5732,8 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5735
5732
|
}
|
|
5736
5733
|
)
|
|
5737
5734
|
] }),
|
|
5738
|
-
/* @__PURE__ */ t(w, { name: "Size", children: /* @__PURE__ */ t(
|
|
5739
|
-
e.length > 0 && /* @__PURE__ */ t(w, { name: "SEO", children: /* @__PURE__ */ t(
|
|
5735
|
+
/* @__PURE__ */ t(w, { name: "Size", children: /* @__PURE__ */ t(ee, { value: c, onChange: s }) }),
|
|
5736
|
+
e.length > 0 && /* @__PURE__ */ t(w, { name: "SEO", children: /* @__PURE__ */ t(Ea, { onChange: m, value: g, availableTags: e }) })
|
|
5740
5737
|
] }),
|
|
5741
5738
|
/* @__PURE__ */ u(N, { children: [
|
|
5742
5739
|
/* @__PURE__ */ t(w, { name: "Display on", children: /* @__PURE__ */ t(he, {}) }),
|
|
@@ -5769,8 +5766,8 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5769
5766
|
] })
|
|
5770
5767
|
] })
|
|
5771
5768
|
] });
|
|
5772
|
-
},
|
|
5773
|
-
const { id: e } =
|
|
5769
|
+
}, $l = () => /* @__PURE__ */ t(No, {}), _l = () => {
|
|
5770
|
+
const { id: e } = ne(), { document: o } = Yt(), { actions: r, query: n } = oe(), [a, i] = E(!1), {
|
|
5774
5771
|
dom: s,
|
|
5775
5772
|
name: l,
|
|
5776
5773
|
moveable: d,
|
|
@@ -5778,10 +5775,10 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5778
5775
|
connectors: { drag: p },
|
|
5779
5776
|
parentSelectableNode: h,
|
|
5780
5777
|
selectable: C
|
|
5781
|
-
} =
|
|
5778
|
+
} = ne((R) => {
|
|
5782
5779
|
let y = R.data.parent ? n.node(R.data.parent).get() : null;
|
|
5783
5780
|
for (; y && !$t(y); )
|
|
5784
|
-
y = y.data.parent && y.data.parent !==
|
|
5781
|
+
y = y.data.parent && y.data.parent !== kr ? n.node(y.data.parent).get() : null;
|
|
5785
5782
|
return {
|
|
5786
5783
|
dom: R.dom,
|
|
5787
5784
|
name: ht(R),
|
|
@@ -5821,7 +5818,7 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5821
5818
|
},
|
|
5822
5819
|
children: [
|
|
5823
5820
|
d && /* @__PURE__ */ t(
|
|
5824
|
-
|
|
5821
|
+
B,
|
|
5825
5822
|
{
|
|
5826
5823
|
ref: (R) => {
|
|
5827
5824
|
R && p(R);
|
|
@@ -5833,7 +5830,7 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5833
5830
|
),
|
|
5834
5831
|
/* @__PURE__ */ u(_e, { offset: 8, onOpenChange: i, open: a, children: [
|
|
5835
5832
|
/* @__PURE__ */ t(Fe, { children: /* @__PURE__ */ t(
|
|
5836
|
-
|
|
5833
|
+
Y,
|
|
5837
5834
|
{
|
|
5838
5835
|
suffix: /* @__PURE__ */ t(
|
|
5839
5836
|
k,
|
|
@@ -5856,12 +5853,12 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5856
5853
|
) }),
|
|
5857
5854
|
!!h && /* @__PURE__ */ t(je, { children: /* @__PURE__ */ t(Ze, { onClick: x, value: h.id, children: ht(h) }) })
|
|
5858
5855
|
] }),
|
|
5859
|
-
c && /* @__PURE__ */ t(
|
|
5856
|
+
c && /* @__PURE__ */ t(B, { onClick: f, css: { cursor: "grab" }, size: "20", children: /* @__PURE__ */ t(k, { size: 16, source: Bt }) })
|
|
5860
5857
|
]
|
|
5861
5858
|
}
|
|
5862
5859
|
) }) }) });
|
|
5863
|
-
},
|
|
5864
|
-
const { dom: e } =
|
|
5860
|
+
}, Ul = () => {
|
|
5861
|
+
const { dom: e } = ne((a) => ({
|
|
5865
5862
|
dom: a.dom
|
|
5866
5863
|
})), { window: o } = Yt(), [r, n] = E(null);
|
|
5867
5864
|
return Me(() => {
|
|
@@ -5898,12 +5895,12 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5898
5895
|
}
|
|
5899
5896
|
}
|
|
5900
5897
|
) : null;
|
|
5901
|
-
},
|
|
5902
|
-
transform:
|
|
5903
|
-
}),
|
|
5898
|
+
}, Gl = () => /* @__PURE__ */ t(No, { availableTags: ["h1", "h2", "h3", "h4", "h5", "h6", "div"] }), nt = () => O({
|
|
5899
|
+
transform: Wr
|
|
5900
|
+
}), Bs = () => {
|
|
5904
5901
|
const { nodeProps: e, setNodeProps: o } = nt();
|
|
5905
5902
|
return /* @__PURE__ */ t(L, { direction: "vertical", name: "Alt text", children: /* @__PURE__ */ t(
|
|
5906
|
-
|
|
5903
|
+
Yo,
|
|
5907
5904
|
{
|
|
5908
5905
|
onBlur: (a) => {
|
|
5909
5906
|
o({
|
|
@@ -5920,7 +5917,7 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5920
5917
|
value: e.alt ?? ""
|
|
5921
5918
|
}
|
|
5922
5919
|
) });
|
|
5923
|
-
},
|
|
5920
|
+
}, Ps = () => {
|
|
5924
5921
|
const { nodeProps: e, setNodeProps: o } = nt(), r = (n) => {
|
|
5925
5922
|
o({
|
|
5926
5923
|
loading: n.target.checked ? "eager" : "lazy"
|
|
@@ -5929,7 +5926,7 @@ const xs = ({ readonlyTo: e }) => {
|
|
|
5929
5926
|
return /* @__PURE__ */ t(L, { name: "Preload", children: /* @__PURE__ */ t(ce, { checked: e.loading === "eager", onChange: r }) });
|
|
5930
5927
|
};
|
|
5931
5928
|
var Mo = /* @__PURE__ */ ((e) => (e.Auto = "auto", e.Square = "1 / 1", e.Widescreen = "16 / 9", e.Portrait = "9 / 16", e.Custom = "custom", e))(Mo || {});
|
|
5932
|
-
const
|
|
5929
|
+
const Ns = [
|
|
5933
5930
|
{
|
|
5934
5931
|
value: "auto",
|
|
5935
5932
|
label: "Original"
|
|
@@ -5950,11 +5947,11 @@ const Ms = [
|
|
|
5950
5947
|
value: "custom",
|
|
5951
5948
|
label: "Custom"
|
|
5952
5949
|
}
|
|
5953
|
-
],
|
|
5950
|
+
], Ms = ({ label: e }) => e, Ws = ({ label: e, value: o }) => [
|
|
5954
5951
|
"auto",
|
|
5955
5952
|
"custom"
|
|
5956
5953
|
/* Custom */
|
|
5957
|
-
].includes(o) ? e : `${e} (${o})`,
|
|
5954
|
+
].includes(o) ? e : `${e} (${o})`, As = () => {
|
|
5958
5955
|
const { nodeProps: e, setNodeProps: o } = nt(), { currentScreen: r, getResponsiveProp: n } = W(), [a, i] = E(null), s = n(e.sx ?? {}, "aspectRatio") ?? "auto", l = Object.values(Mo).find((f) => f === s) ?? "custom", d = (f) => {
|
|
5959
5956
|
f.target.select();
|
|
5960
5957
|
}, c = (f = "auto") => {
|
|
@@ -5962,7 +5959,7 @@ const Ms = [
|
|
|
5962
5959
|
aspectRatio: f === "auto" ? void 0 : f
|
|
5963
5960
|
};
|
|
5964
5961
|
f !== "auto" && (R.height = ""), o({
|
|
5965
|
-
sx:
|
|
5962
|
+
sx: H(R, r)
|
|
5966
5963
|
});
|
|
5967
5964
|
}, p = (f) => {
|
|
5968
5965
|
if (i(f === "custom" ? f : null), f === "custom") {
|
|
@@ -5984,9 +5981,9 @@ const Ms = [
|
|
|
5984
5981
|
{
|
|
5985
5982
|
value: h,
|
|
5986
5983
|
onChange: p,
|
|
5987
|
-
optionLabel:
|
|
5988
|
-
selectedRenderer:
|
|
5989
|
-
options:
|
|
5984
|
+
optionLabel: Ws,
|
|
5985
|
+
selectedRenderer: Ms,
|
|
5986
|
+
options: Ns,
|
|
5990
5987
|
css: {
|
|
5991
5988
|
width: "50%"
|
|
5992
5989
|
}
|
|
@@ -6043,7 +6040,7 @@ const Ms = [
|
|
|
6043
6040
|
}
|
|
6044
6041
|
) })
|
|
6045
6042
|
] });
|
|
6046
|
-
},
|
|
6043
|
+
}, Es = () => {
|
|
6047
6044
|
const { nodeProps: e, setNodeProps: o } = nt();
|
|
6048
6045
|
return /* @__PURE__ */ u("div", { css: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
6049
6046
|
/* @__PURE__ */ t(L, { name: "Choose image" }),
|
|
@@ -6053,11 +6050,11 @@ const Ms = [
|
|
|
6053
6050
|
});
|
|
6054
6051
|
}, source: e.src })
|
|
6055
6052
|
] });
|
|
6056
|
-
},
|
|
6057
|
-
const { currentScreen: e, getResponsiveProp: o } = W(), { readOnly: r } =
|
|
6053
|
+
}, ql = () => {
|
|
6054
|
+
const { currentScreen: e, getResponsiveProp: o } = W(), { readOnly: r } = ne((g) => ({
|
|
6058
6055
|
readOnly: g.dom?.getAttribute("aria-readonly") === Ce.True
|
|
6059
6056
|
})), { nodeProps: n, setNodeProps: a } = nt(), i = o(n.sx ?? {}, "aspectRatio") ?? "auto", s = (g, m = e) => {
|
|
6060
|
-
a({ sx:
|
|
6057
|
+
a({ sx: H(g, m) });
|
|
6061
6058
|
}, l = {
|
|
6062
6059
|
width: o(n.sx ?? {}, "width")
|
|
6063
6060
|
}, d = {
|
|
@@ -6092,16 +6089,16 @@ const Ms = [
|
|
|
6092
6089
|
/* @__PURE__ */ u($, { css: { paddingInline: 8 }, children: [
|
|
6093
6090
|
/* @__PURE__ */ u(N, { children: [
|
|
6094
6091
|
/* @__PURE__ */ u(w, { name: "Image", children: [
|
|
6095
|
-
!r && /* @__PURE__ */ t(
|
|
6096
|
-
/* @__PURE__ */ t(
|
|
6092
|
+
!r && /* @__PURE__ */ t(Es, {}),
|
|
6093
|
+
/* @__PURE__ */ t(Ps, {})
|
|
6097
6094
|
] }),
|
|
6098
6095
|
/* @__PURE__ */ u(w, { name: "Size", children: [
|
|
6099
|
-
/* @__PURE__ */ t(
|
|
6100
|
-
/* @__PURE__ */ t(
|
|
6096
|
+
/* @__PURE__ */ t(As, {}),
|
|
6097
|
+
/* @__PURE__ */ t(ee, { value: l, onChange: s }),
|
|
6101
6098
|
i === "auto" && /* @__PURE__ */ t(Ae, { value: d, onChange: s }),
|
|
6102
|
-
/* @__PURE__ */ t(
|
|
6099
|
+
/* @__PURE__ */ t(Ha, { value: c, onChange: p })
|
|
6103
6100
|
] }),
|
|
6104
|
-
/* @__PURE__ */ t(w, { name: "SEO", children: /* @__PURE__ */ t(
|
|
6101
|
+
/* @__PURE__ */ t(w, { name: "SEO", children: /* @__PURE__ */ t(Bs, {}) })
|
|
6105
6102
|
] }),
|
|
6106
6103
|
/* @__PURE__ */ u(N, { children: [
|
|
6107
6104
|
/* @__PURE__ */ u(w, { name: "Spacing (px)", children: [
|
|
@@ -6137,10 +6134,10 @@ const Ms = [
|
|
|
6137
6134
|
] })
|
|
6138
6135
|
] })
|
|
6139
6136
|
] });
|
|
6140
|
-
},
|
|
6141
|
-
transform:
|
|
6142
|
-
}),
|
|
6143
|
-
const { resolver: r } =
|
|
6137
|
+
}, Vs = () => O({
|
|
6138
|
+
transform: Ar
|
|
6139
|
+
}), Jl = ({ children: e, data: o }) => {
|
|
6140
|
+
const { resolver: r } = oe((a) => ({
|
|
6144
6141
|
resolver: a.options.resolver
|
|
6145
6142
|
})), n = xt(() => {
|
|
6146
6143
|
if (D(o)) return o;
|
|
@@ -6152,45 +6149,45 @@ const Ms = [
|
|
|
6152
6149
|
});
|
|
6153
6150
|
}), a;
|
|
6154
6151
|
}, [o, r]);
|
|
6155
|
-
return /* @__PURE__ */ t(
|
|
6156
|
-
}, Vt = () =>
|
|
6157
|
-
transform:
|
|
6158
|
-
}),
|
|
6159
|
-
transform:
|
|
6152
|
+
return /* @__PURE__ */ t(Rr, { data: n, children: e });
|
|
6153
|
+
}, Vt = () => O({
|
|
6154
|
+
transform: Er
|
|
6155
|
+
}), Hs = (e) => O({
|
|
6156
|
+
transform: Vr,
|
|
6160
6157
|
nodeId: e
|
|
6161
|
-
}),
|
|
6158
|
+
}), Os = () => O({
|
|
6159
|
+
transform: Hr
|
|
6160
|
+
}), Ds = () => O({
|
|
6162
6161
|
transform: Or
|
|
6163
|
-
}), zs = () =>
|
|
6162
|
+
}), ot = () => O(), zs = () => O({
|
|
6164
6163
|
transform: Dr
|
|
6165
|
-
}),
|
|
6164
|
+
}), Ht = () => O({
|
|
6166
6165
|
transform: zr
|
|
6167
|
-
}),
|
|
6168
|
-
transform: Fr
|
|
6169
|
-
}), js = (e) => H({
|
|
6166
|
+
}), Fs = (e) => O({
|
|
6170
6167
|
nodeId: e
|
|
6171
|
-
}), Wo = (e) =>
|
|
6172
|
-
transform:
|
|
6168
|
+
}), Wo = (e) => O({
|
|
6169
|
+
transform: Fr,
|
|
6173
6170
|
nodeId: e
|
|
6174
|
-
}),
|
|
6171
|
+
}), js = () => O({
|
|
6172
|
+
transform: jr
|
|
6173
|
+
}), Zs = () => O({
|
|
6175
6174
|
transform: Zr
|
|
6176
|
-
}),
|
|
6177
|
-
|
|
6178
|
-
}), Yl = ({ resolver: e, children: o, ...r }) => /* @__PURE__ */ t(
|
|
6179
|
-
Sr,
|
|
6175
|
+
}), Kl = ({ resolver: e, children: o, ...r }) => /* @__PURE__ */ t(
|
|
6176
|
+
yr,
|
|
6180
6177
|
{
|
|
6181
6178
|
enabled: !1,
|
|
6182
|
-
onRender:
|
|
6183
|
-
handlers: (n) => new
|
|
6179
|
+
onRender: $s,
|
|
6180
|
+
handlers: (n) => new _s({
|
|
6184
6181
|
store: n,
|
|
6185
6182
|
removeHoverOnMouseleave: !0,
|
|
6186
6183
|
isMultiSelectEnabled: () => !1
|
|
6187
6184
|
}),
|
|
6188
|
-
resolver: { ...
|
|
6185
|
+
resolver: { ...Qo, ...e },
|
|
6189
6186
|
...r,
|
|
6190
6187
|
children: o
|
|
6191
6188
|
}
|
|
6192
|
-
),
|
|
6193
|
-
const { id: o } =
|
|
6189
|
+
), $s = ({ render: e }) => {
|
|
6190
|
+
const { id: o } = O(), { query: r } = oe();
|
|
6194
6191
|
return Me(() => {
|
|
6195
6192
|
const n = r.node(o).get(), a = Oe(n);
|
|
6196
6193
|
if (D(a))
|
|
@@ -6199,20 +6196,20 @@ const Ms = [
|
|
|
6199
6196
|
);
|
|
6200
6197
|
}, [o, r]), e;
|
|
6201
6198
|
};
|
|
6202
|
-
class
|
|
6199
|
+
class _s extends Sr {
|
|
6203
6200
|
handlers() {
|
|
6204
6201
|
const o = super.handlers();
|
|
6205
6202
|
return {
|
|
6206
6203
|
...o,
|
|
6207
6204
|
select(r, n) {
|
|
6208
|
-
return (r.getAttribute(
|
|
6205
|
+
return (r.getAttribute(er.DATA_NODE_SELECTABLE) ?? Ce.True) === Ce.True ? o.select(r, n) : () => {
|
|
6209
6206
|
};
|
|
6210
6207
|
}
|
|
6211
6208
|
};
|
|
6212
6209
|
}
|
|
6213
6210
|
}
|
|
6214
|
-
const
|
|
6215
|
-
const { nodeDOM: e } =
|
|
6211
|
+
const Us = () => {
|
|
6212
|
+
const { nodeDOM: e } = ne((i) => ({
|
|
6216
6213
|
nodeDOM: i.dom
|
|
6217
6214
|
})), o = (i) => i?.getAttribute(zt.PlayState) || "on", [r, n] = E(!1), a = () => {
|
|
6218
6215
|
const i = o(e);
|
|
@@ -6231,13 +6228,13 @@ const Gs = () => {
|
|
|
6231
6228
|
}), () => {
|
|
6232
6229
|
i.disconnect();
|
|
6233
6230
|
};
|
|
6234
|
-
}, [e]), /* @__PURE__ */ t(
|
|
6235
|
-
},
|
|
6231
|
+
}, [e]), /* @__PURE__ */ t(Y, { onClick: a, children: r ? "Pause" : "Play" });
|
|
6232
|
+
}, Gs = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6236
6233
|
<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"/>
|
|
6237
6234
|
</svg>
|
|
6238
|
-
`,
|
|
6239
|
-
const { nodeProps: e, setNodeProps: o, setNodeResponsiveProps: r } =
|
|
6240
|
-
o({ sx:
|
|
6235
|
+
`, Xl = () => {
|
|
6236
|
+
const { nodeProps: e, setNodeProps: o, setNodeResponsiveProps: r } = Vs(), { currentScreen: n, getResponsiveProp: a } = W(), i = (x, f = n) => {
|
|
6237
|
+
o({ sx: H(x, f) });
|
|
6241
6238
|
}, s = {
|
|
6242
6239
|
borderStyle: a(e.sx ?? {}, "borderStyle"),
|
|
6243
6240
|
borderColor: a(e.sx ?? {}, "borderColor"),
|
|
@@ -6259,18 +6256,18 @@ const Gs = () => {
|
|
|
6259
6256
|
backgroundSize: a(e.sx ?? {}, "backgroundSize"),
|
|
6260
6257
|
backgroundAttachment: a(e.sx ?? {}, "backgroundAttachment")
|
|
6261
6258
|
}, c = () => /* @__PURE__ */ t(
|
|
6262
|
-
|
|
6259
|
+
te,
|
|
6263
6260
|
{
|
|
6264
6261
|
canvas: !0,
|
|
6265
6262
|
custom: {
|
|
6266
6263
|
displayName: "Marquee Item (new)"
|
|
6267
6264
|
},
|
|
6268
|
-
is:
|
|
6265
|
+
is: tr
|
|
6269
6266
|
}
|
|
6270
6267
|
), p = (x) => {
|
|
6271
6268
|
o({
|
|
6272
6269
|
separatorIcon: x.target.checked ? {
|
|
6273
|
-
source:
|
|
6270
|
+
source: Gs
|
|
6274
6271
|
} : void 0
|
|
6275
6272
|
});
|
|
6276
6273
|
}, h = (x) => {
|
|
@@ -6317,7 +6314,7 @@ const Gs = () => {
|
|
|
6317
6314
|
onChange: m
|
|
6318
6315
|
}
|
|
6319
6316
|
),
|
|
6320
|
-
/* @__PURE__ */ t(
|
|
6317
|
+
/* @__PURE__ */ t(Us, {})
|
|
6321
6318
|
] }),
|
|
6322
6319
|
/* @__PURE__ */ t(
|
|
6323
6320
|
w,
|
|
@@ -6391,10 +6388,10 @@ const Gs = () => {
|
|
|
6391
6388
|
] })
|
|
6392
6389
|
] })
|
|
6393
6390
|
] });
|
|
6394
|
-
},
|
|
6395
|
-
const [r, n] = E(!1), [a, i] = Un(e === 0), { nodeProps: s, setNodeProps: l } =
|
|
6391
|
+
}, qs = ({ tabIndex: e, tabNodeId: o }) => {
|
|
6392
|
+
const [r, n] = E(!1), [a, i] = Un(e === 0), { nodeProps: s, setNodeProps: l } = Fs(o), { actions: d, query: c } = oe(), { tabNode: p, tabPanelNode: h } = ne((f) => {
|
|
6396
6393
|
const R = f.data.nodes.find(
|
|
6397
|
-
(
|
|
6394
|
+
(I) => Oe(c.node(I).get()) === He.TabList
|
|
6398
6395
|
);
|
|
6399
6396
|
if (!R)
|
|
6400
6397
|
throw new Error("Tab list node not found");
|
|
@@ -6402,7 +6399,7 @@ const Gs = () => {
|
|
|
6402
6399
|
if (!y)
|
|
6403
6400
|
throw new Error("Tab node not found");
|
|
6404
6401
|
const T = f.data.nodes.find(
|
|
6405
|
-
(
|
|
6402
|
+
(I) => Oe(c.node(I).get()) === He.TabContent
|
|
6406
6403
|
);
|
|
6407
6404
|
if (!T)
|
|
6408
6405
|
throw new Error("Tab content node not found");
|
|
@@ -6471,8 +6468,8 @@ const Gs = () => {
|
|
|
6471
6468
|
}
|
|
6472
6469
|
),
|
|
6473
6470
|
/* @__PURE__ */ t(Ve, { open: r || a, orientation: "horizontal", children: /* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
6474
|
-
/* @__PURE__ */ t(
|
|
6475
|
-
/* @__PURE__ */ t(
|
|
6471
|
+
/* @__PURE__ */ t(B, { onClick: C, children: /* @__PURE__ */ t(k, { source: Bt }) }),
|
|
6472
|
+
/* @__PURE__ */ t(B, { onClick: i, children: /* @__PURE__ */ t(
|
|
6476
6473
|
k,
|
|
6477
6474
|
{
|
|
6478
6475
|
css: [{ transition: "transform" }, a && { transform: "rotate(-180deg)" }],
|
|
@@ -6484,7 +6481,7 @@ const Gs = () => {
|
|
|
6484
6481
|
}
|
|
6485
6482
|
),
|
|
6486
6483
|
/* @__PURE__ */ t(Ve, { open: a, children: /* @__PURE__ */ t("div", { css: { padding: 8, display: "flex", flexDirection: "column", gap: 16 }, children: /* @__PURE__ */ t(L, { name: "Content", children: /* @__PURE__ */ t(
|
|
6487
|
-
|
|
6484
|
+
re,
|
|
6488
6485
|
{
|
|
6489
6486
|
onChange: x,
|
|
6490
6487
|
value: s.dangerouslySetInnerHTML?.__html.toString() ?? "",
|
|
@@ -6494,8 +6491,8 @@ const Gs = () => {
|
|
|
6494
6491
|
]
|
|
6495
6492
|
}
|
|
6496
6493
|
) });
|
|
6497
|
-
},
|
|
6498
|
-
const { query: e, actions: o } =
|
|
6494
|
+
}, Js = () => {
|
|
6495
|
+
const { query: e, actions: o } = oe(), { id: r, tabListNode: n, tabContentNode: a } = ne((l) => {
|
|
6499
6496
|
const d = l.data.nodes.find(
|
|
6500
6497
|
(p) => Oe(e.node(p).get()) === He.TabList
|
|
6501
6498
|
);
|
|
@@ -6532,18 +6529,18 @@ const Gs = () => {
|
|
|
6532
6529
|
...l.droppableProps,
|
|
6533
6530
|
css: { display: "flex", flexDirection: "column", gap: 8 },
|
|
6534
6531
|
children: [
|
|
6535
|
-
n.data.nodes.map((d, c) => /* @__PURE__ */ t(
|
|
6532
|
+
n.data.nodes.map((d, c) => /* @__PURE__ */ t(qs, { tabNodeId: d, tabIndex: c }, d)),
|
|
6536
6533
|
l.placeholder
|
|
6537
6534
|
]
|
|
6538
6535
|
}
|
|
6539
6536
|
) }) }),
|
|
6540
|
-
/* @__PURE__ */ t(
|
|
6537
|
+
/* @__PURE__ */ t(Y, { css: { marginTop: 8 }, onClick: () => {
|
|
6541
6538
|
const l = e.parseReactElement(
|
|
6542
6539
|
/* @__PURE__ */ t(
|
|
6543
|
-
|
|
6540
|
+
te,
|
|
6544
6541
|
{
|
|
6545
6542
|
canvas: !0,
|
|
6546
|
-
is:
|
|
6543
|
+
is: nr,
|
|
6547
6544
|
dangerouslySetInnerHTML: {
|
|
6548
6545
|
__html: "Tab (new)"
|
|
6549
6546
|
}
|
|
@@ -6551,12 +6548,12 @@ const Gs = () => {
|
|
|
6551
6548
|
)
|
|
6552
6549
|
).toNodeTree();
|
|
6553
6550
|
o.addNodeTree(l, n.id);
|
|
6554
|
-
const d = e.parseReactElement(/* @__PURE__ */ t(
|
|
6551
|
+
const d = e.parseReactElement(/* @__PURE__ */ t(te, { canvas: !0, is: or })).toNodeTree();
|
|
6555
6552
|
o.addNodeTree(d, a.id);
|
|
6556
6553
|
}, fullWidth: !0, prefix: /* @__PURE__ */ t(k, { source: Ye }), children: "Add more" })
|
|
6557
6554
|
] });
|
|
6558
|
-
},
|
|
6559
|
-
const { query: e } =
|
|
6555
|
+
}, Ks = () => {
|
|
6556
|
+
const { query: e } = oe(), { nodeProps: o, setNodeProps: r } = Wo(), { selectOptions: n } = ne((i) => {
|
|
6560
6557
|
const s = i.data.nodes.find(
|
|
6561
6558
|
(d) => Oe(e.node(d).get()) === He.TabList
|
|
6562
6559
|
);
|
|
@@ -6582,9 +6579,9 @@ const Gs = () => {
|
|
|
6582
6579
|
onChange: a
|
|
6583
6580
|
}
|
|
6584
6581
|
) });
|
|
6585
|
-
},
|
|
6582
|
+
}, Yl = () => {
|
|
6586
6583
|
const { nodeProps: e, setNodeProps: o } = Wo(), { currentScreen: r, getResponsiveProp: n } = W(), a = (c, p = r) => {
|
|
6587
|
-
o({ sx:
|
|
6584
|
+
o({ sx: H(c, p) });
|
|
6588
6585
|
}, i = {
|
|
6589
6586
|
borderStyle: n(e.sx ?? {}, "borderStyle"),
|
|
6590
6587
|
borderColor: n(e.sx ?? {}, "borderColor"),
|
|
@@ -6616,10 +6613,10 @@ const Gs = () => {
|
|
|
6616
6613
|
/* @__PURE__ */ u($, { css: { paddingInline: 8 }, children: [
|
|
6617
6614
|
/* @__PURE__ */ u(N, { children: [
|
|
6618
6615
|
/* @__PURE__ */ u(w, { name: "Items management", children: [
|
|
6619
|
-
/* @__PURE__ */ t(
|
|
6620
|
-
/* @__PURE__ */ t(
|
|
6616
|
+
/* @__PURE__ */ t(Js, {}),
|
|
6617
|
+
/* @__PURE__ */ t(Ks, {})
|
|
6621
6618
|
] }),
|
|
6622
|
-
/* @__PURE__ */ t(w, { name: "Size", children: /* @__PURE__ */ t(
|
|
6619
|
+
/* @__PURE__ */ t(w, { name: "Size", children: /* @__PURE__ */ t(ee, { onChange: a, value: d }) })
|
|
6623
6620
|
] }),
|
|
6624
6621
|
/* @__PURE__ */ u(N, { children: [
|
|
6625
6622
|
/* @__PURE__ */ u(w, { name: "Spacing (px)", children: [
|
|
@@ -6656,7 +6653,7 @@ const Gs = () => {
|
|
|
6656
6653
|
] })
|
|
6657
6654
|
] })
|
|
6658
6655
|
] });
|
|
6659
|
-
},
|
|
6656
|
+
}, Xs = () => {
|
|
6660
6657
|
const { nodeProps: e, setNodeProps: o } = Ht(), r = (n) => {
|
|
6661
6658
|
const a = isNaN(n.target.valueAsNumber) ? void 0 : n.target.valueAsNumber;
|
|
6662
6659
|
o({
|
|
@@ -6666,7 +6663,7 @@ const Gs = () => {
|
|
|
6666
6663
|
});
|
|
6667
6664
|
};
|
|
6668
6665
|
return /* @__PURE__ */ t(L, { name: "Delay", children: /* @__PURE__ */ t("div", { css: { width: "50%" }, children: /* @__PURE__ */ t(A, { value: e.autoplayOptions?.delay, mode: "onBlur", onChange: r }) }) });
|
|
6669
|
-
},
|
|
6666
|
+
}, Ys = () => {
|
|
6670
6667
|
const { nodeProps: e, setNodeProps: o } = Ht(), r = (n) => {
|
|
6671
6668
|
o({
|
|
6672
6669
|
autoplayOptions: {
|
|
@@ -6675,10 +6672,10 @@ const Gs = () => {
|
|
|
6675
6672
|
});
|
|
6676
6673
|
};
|
|
6677
6674
|
return /* @__PURE__ */ t(L, { name: "Loop", children: /* @__PURE__ */ t(ce, { checked: !e.autoplayOptions?.stopOnLastSnap, onChange: r }) });
|
|
6678
|
-
},
|
|
6675
|
+
}, Qs = () => {
|
|
6679
6676
|
const { getResponsiveProp: e, currentScreen: o } = W(), { nodeProps: r, setNodeResponsiveProps: n } = Ht(), a = e(r, "slidesPerView");
|
|
6680
6677
|
return /* @__PURE__ */ t(L, { name: "Items per view", responsive: !0, children: /* @__PURE__ */ t(
|
|
6681
|
-
|
|
6678
|
+
ja,
|
|
6682
6679
|
{
|
|
6683
6680
|
css: {
|
|
6684
6681
|
width: "50%"
|
|
@@ -6700,16 +6697,16 @@ const Gs = () => {
|
|
|
6700
6697
|
]
|
|
6701
6698
|
}
|
|
6702
6699
|
) });
|
|
6703
|
-
},
|
|
6700
|
+
}, Ql = () => {
|
|
6704
6701
|
const { nodeProps: e, setNodeResponsiveProps: o, setNodeProps: r } = Ht(), { getResponsiveProp: n, currentScreen: a } = W(), i = (m, x = a) => {
|
|
6705
|
-
r({ sx:
|
|
6702
|
+
r({ sx: H(m, x) });
|
|
6706
6703
|
}, s = () => /* @__PURE__ */ t(
|
|
6707
|
-
|
|
6704
|
+
te,
|
|
6708
6705
|
{
|
|
6709
6706
|
custom: {
|
|
6710
6707
|
displayName: "Slide new"
|
|
6711
6708
|
},
|
|
6712
|
-
is:
|
|
6709
|
+
is: rr,
|
|
6713
6710
|
canvas: !0
|
|
6714
6711
|
}
|
|
6715
6712
|
), l = {
|
|
@@ -6751,7 +6748,7 @@ const Gs = () => {
|
|
|
6751
6748
|
/* @__PURE__ */ u($, { css: { paddingInline: 8 }, children: [
|
|
6752
6749
|
/* @__PURE__ */ u(N, { children: [
|
|
6753
6750
|
/* @__PURE__ */ u(w, { name: "Display", children: [
|
|
6754
|
-
/* @__PURE__ */ t(
|
|
6751
|
+
/* @__PURE__ */ t(Qs, {}),
|
|
6755
6752
|
/* @__PURE__ */ t(gn, { value: l, onChange: d, name: "Items spacing" })
|
|
6756
6753
|
] }),
|
|
6757
6754
|
/* @__PURE__ */ t(w, { name: "Item management", children: /* @__PURE__ */ t(Qe, { getNewNodeElement: s }) }),
|
|
@@ -6763,8 +6760,8 @@ const Gs = () => {
|
|
|
6763
6760
|
right: /* @__PURE__ */ t(ce, { onChange: c, checked: p })
|
|
6764
6761
|
},
|
|
6765
6762
|
children: p && /* @__PURE__ */ u(Pe, { children: [
|
|
6766
|
-
/* @__PURE__ */ t(
|
|
6767
|
-
/* @__PURE__ */ t(
|
|
6763
|
+
/* @__PURE__ */ t(Xs, {}),
|
|
6764
|
+
/* @__PURE__ */ t(Ys, {})
|
|
6768
6765
|
] })
|
|
6769
6766
|
}
|
|
6770
6767
|
)
|
|
@@ -6804,9 +6801,9 @@ const Gs = () => {
|
|
|
6804
6801
|
] })
|
|
6805
6802
|
] })
|
|
6806
6803
|
] });
|
|
6807
|
-
},
|
|
6808
|
-
const { nodeProps: e, setNodeProps: o } =
|
|
6809
|
-
o({ sx:
|
|
6804
|
+
}, ed = () => {
|
|
6805
|
+
const { nodeProps: e, setNodeProps: o } = js(), { currentScreen: r, getResponsiveProp: n } = W(), a = (h, C = r) => {
|
|
6806
|
+
o({ sx: H(h, C) });
|
|
6810
6807
|
}, i = {
|
|
6811
6808
|
borderStyle: n(e.sx ?? {}, "borderStyle"),
|
|
6812
6809
|
borderColor: n(e.sx ?? {}, "borderColor"),
|
|
@@ -6819,7 +6816,7 @@ const Gs = () => {
|
|
|
6819
6816
|
borderTopRightRadius: n(e.sx ?? {}, "borderTopRightRadius"),
|
|
6820
6817
|
borderBottomRightRadius: n(e.sx ?? {}, "borderBottomRightRadius"),
|
|
6821
6818
|
borderBottomLeftRadius: n(e.sx ?? {}, "borderBottomLeftRadius")
|
|
6822
|
-
}, l = () => /* @__PURE__ */ t(
|
|
6819
|
+
}, l = () => /* @__PURE__ */ t(te, { canvas: !0, is: ar }), d = {
|
|
6823
6820
|
rowGap: n(e.sx ?? {}, "rowGap") ?? 0
|
|
6824
6821
|
}, c = {
|
|
6825
6822
|
width: n(e.sx ?? {}, "width")
|
|
@@ -6844,7 +6841,7 @@ const Gs = () => {
|
|
|
6844
6841
|
value: p
|
|
6845
6842
|
}
|
|
6846
6843
|
),
|
|
6847
|
-
/* @__PURE__ */ t(
|
|
6844
|
+
/* @__PURE__ */ t(ee, { onChange: a, value: c })
|
|
6848
6845
|
] }) }),
|
|
6849
6846
|
/* @__PURE__ */ u(N, { children: [
|
|
6850
6847
|
/* @__PURE__ */ u(w, { name: "Spacing (px)", children: [
|
|
@@ -6880,10 +6877,10 @@ const Gs = () => {
|
|
|
6880
6877
|
] })
|
|
6881
6878
|
] })
|
|
6882
6879
|
] });
|
|
6883
|
-
},
|
|
6884
|
-
const { nodeProps: e, setNodeProps: o, setNodeResponsiveProps: r } =
|
|
6880
|
+
}, td = () => {
|
|
6881
|
+
const { nodeProps: e, setNodeProps: o, setNodeResponsiveProps: r } = zs(), { currentScreen: n, getResponsiveProp: a } = W(), i = (g, m = n) => {
|
|
6885
6882
|
o({
|
|
6886
|
-
sx:
|
|
6883
|
+
sx: H(g, m)
|
|
6887
6884
|
});
|
|
6888
6885
|
}, s = {
|
|
6889
6886
|
color: a(e.sx ?? {}, "color", "xs")
|
|
@@ -6960,10 +6957,10 @@ const Gs = () => {
|
|
|
6960
6957
|
] })
|
|
6961
6958
|
] })
|
|
6962
6959
|
] });
|
|
6963
|
-
},
|
|
6964
|
-
const [r, n] = E(!1), [a, i] = Un(o === 0), { id: s, nodeProps: l } = Vt(), { query: d, accordionNode: c, actions: p } =
|
|
6960
|
+
}, el = ({ accordionNodeId: e, accordionIndex: o }) => {
|
|
6961
|
+
const [r, n] = E(!1), [a, i] = Un(o === 0), { id: s, nodeProps: l } = Vt(), { query: d, accordionNode: c, actions: p } = oe((S) => ({
|
|
6965
6962
|
accordionNode: S.nodes[e]
|
|
6966
|
-
})), { nodeProps: h, setNodeProps: C } =
|
|
6963
|
+
})), { nodeProps: h, setNodeProps: C } = Hs(e), [g, m] = E(
|
|
6967
6964
|
c.dom ? it(c.dom).openState : !1
|
|
6968
6965
|
), x = () => {
|
|
6969
6966
|
n(!0);
|
|
@@ -6974,12 +6971,12 @@ const Gs = () => {
|
|
|
6974
6971
|
}, y = () => {
|
|
6975
6972
|
const S = c.dom;
|
|
6976
6973
|
if (!S) return;
|
|
6977
|
-
const { openState:
|
|
6978
|
-
S.setAttribute(_t.OpenState,
|
|
6974
|
+
const { openState: I } = it(S);
|
|
6975
|
+
S.setAttribute(_t.OpenState, I ? Ce.False : Ce.True);
|
|
6979
6976
|
};
|
|
6980
6977
|
Me(() => {
|
|
6981
|
-
const S = new MutationObserver((
|
|
6982
|
-
const M =
|
|
6978
|
+
const S = new MutationObserver((I) => {
|
|
6979
|
+
const M = I.at(0)?.target;
|
|
6983
6980
|
D(M) || m(it(M).openState);
|
|
6984
6981
|
});
|
|
6985
6982
|
return c.dom && (m(it(c.dom).openState), S.observe(c.dom, {
|
|
@@ -6992,8 +6989,8 @@ const Gs = () => {
|
|
|
6992
6989
|
const T = (S) => {
|
|
6993
6990
|
C({
|
|
6994
6991
|
defaultOpen: S.target.checked
|
|
6995
|
-
}), l.openMode === "single" && S.target.checked && d.node(s).childNodes().forEach((
|
|
6996
|
-
|
|
6992
|
+
}), l.openMode === "single" && S.target.checked && d.node(s).childNodes().forEach((I) => {
|
|
6993
|
+
I !== e && p.setProp(I, (M) => {
|
|
6997
6994
|
delete M.defaultOpen;
|
|
6998
6995
|
});
|
|
6999
6996
|
});
|
|
@@ -7032,8 +7029,8 @@ const Gs = () => {
|
|
|
7032
7029
|
/* @__PURE__ */ t(k, { source: It }),
|
|
7033
7030
|
/* @__PURE__ */ t("span", { css: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", flex: 1 }, children: "Item" }),
|
|
7034
7031
|
/* @__PURE__ */ t(Ve, { open: r || a, orientation: "horizontal", children: /* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
7035
|
-
/* @__PURE__ */ t(
|
|
7036
|
-
/* @__PURE__ */ t(
|
|
7032
|
+
/* @__PURE__ */ t(B, { onClick: R, children: /* @__PURE__ */ t(k, { source: Bt }) }),
|
|
7033
|
+
/* @__PURE__ */ t(B, { onClick: i, children: /* @__PURE__ */ t(
|
|
7037
7034
|
k,
|
|
7038
7035
|
{
|
|
7039
7036
|
css: [{ transition: "transform" }, a && { transform: "rotate(-180deg)" }],
|
|
@@ -7046,13 +7043,13 @@ const Gs = () => {
|
|
|
7046
7043
|
),
|
|
7047
7044
|
/* @__PURE__ */ t(Ve, { open: a, children: /* @__PURE__ */ u("div", { css: { padding: 8, display: "flex", flexDirection: "column", gap: 16 }, children: [
|
|
7048
7045
|
/* @__PURE__ */ t(L, { name: "Default open", children: /* @__PURE__ */ t(ce, { onChange: T, checked: h.defaultOpen ?? !1 }) }),
|
|
7049
|
-
/* @__PURE__ */ t(
|
|
7046
|
+
/* @__PURE__ */ t(Y, { onClick: y, children: g ? "Close" : "Open" })
|
|
7050
7047
|
] }) })
|
|
7051
7048
|
]
|
|
7052
7049
|
}
|
|
7053
7050
|
) });
|
|
7054
|
-
},
|
|
7055
|
-
const { query: e, actions: o } =
|
|
7051
|
+
}, tl = () => {
|
|
7052
|
+
const { query: e, actions: o } = oe(), { id: r, accordionNodeIds: n } = ne((s) => ({
|
|
7056
7053
|
accordionNodeIds: s.data.nodes
|
|
7057
7054
|
}));
|
|
7058
7055
|
return /* @__PURE__ */ u("div", { children: [
|
|
@@ -7072,24 +7069,24 @@ const Gs = () => {
|
|
|
7072
7069
|
...s.droppableProps,
|
|
7073
7070
|
css: { display: "flex", flexDirection: "column", gap: 8 },
|
|
7074
7071
|
children: [
|
|
7075
|
-
n.map((l, d) => /* @__PURE__ */ t(
|
|
7072
|
+
n.map((l, d) => /* @__PURE__ */ t(el, { accordionNodeId: l, accordionIndex: d }, l)),
|
|
7076
7073
|
s.placeholder
|
|
7077
7074
|
]
|
|
7078
7075
|
}
|
|
7079
7076
|
) }) }),
|
|
7080
|
-
/* @__PURE__ */ t(
|
|
7077
|
+
/* @__PURE__ */ t(Y, { css: { marginTop: 8 }, onClick: () => {
|
|
7081
7078
|
const s = e.parseReactElement(
|
|
7082
|
-
/* @__PURE__ */ u(
|
|
7083
|
-
/* @__PURE__ */ t(
|
|
7084
|
-
|
|
7079
|
+
/* @__PURE__ */ u(te, { is: ir, children: [
|
|
7080
|
+
/* @__PURE__ */ t(te, { is: sr, children: /* @__PURE__ */ t(
|
|
7081
|
+
te,
|
|
7085
7082
|
{
|
|
7086
7083
|
sizeVariant: "base",
|
|
7087
7084
|
is: Nn,
|
|
7088
7085
|
dangerouslySetInnerHTML: { __html: "Accordion (new)" }
|
|
7089
7086
|
}
|
|
7090
7087
|
) }),
|
|
7091
|
-
/* @__PURE__ */ t(
|
|
7092
|
-
|
|
7088
|
+
/* @__PURE__ */ t(te, { is: lr, children: /* @__PURE__ */ t(
|
|
7089
|
+
te,
|
|
7093
7090
|
{
|
|
7094
7091
|
sx: {
|
|
7095
7092
|
paddingTop: 8,
|
|
@@ -7104,7 +7101,7 @@ const Gs = () => {
|
|
|
7104
7101
|
o.addNodeTree(s, r);
|
|
7105
7102
|
}, fullWidth: !0, prefix: /* @__PURE__ */ t(k, { source: Ye }), children: "Add more" })
|
|
7106
7103
|
] });
|
|
7107
|
-
},
|
|
7104
|
+
}, nl = () => {
|
|
7108
7105
|
const { nodeProps: e, setNodeProps: o } = Vt(), [r, n] = E(!1), a = e.accordionSummaryProps?.expandIcon, i = (p) => {
|
|
7109
7106
|
o({
|
|
7110
7107
|
accordionSummaryProps: {
|
|
@@ -7180,7 +7177,7 @@ const Gs = () => {
|
|
|
7180
7177
|
/* @__PURE__ */ t(Te, { children: /* @__PURE__ */ u("div", { style: { width: 280 }, children: [
|
|
7181
7178
|
/* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
7182
7179
|
/* @__PURE__ */ t("p", { css: { flex: 1, fontWeight: 500 }, children: "Expand icon" }),
|
|
7183
|
-
/* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(
|
|
7180
|
+
/* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(k, { source: ae }) }) })
|
|
7184
7181
|
] }),
|
|
7185
7182
|
/* @__PURE__ */ t("hr", { css: { marginBlock: 8, borderColor: v.palette.white["1s"] } }),
|
|
7186
7183
|
/* @__PURE__ */ u("div", { css: { display: "flex", flexDirection: "column", gap: 16 }, children: [
|
|
@@ -7200,9 +7197,9 @@ const Gs = () => {
|
|
|
7200
7197
|
name: "When collapsed"
|
|
7201
7198
|
}
|
|
7202
7199
|
),
|
|
7203
|
-
/* @__PURE__ */ t(L, { name: "Position", children: /* @__PURE__ */ u(
|
|
7204
|
-
/* @__PURE__ */ t(
|
|
7205
|
-
/* @__PURE__ */ t(
|
|
7200
|
+
/* @__PURE__ */ t(L, { name: "Position", children: /* @__PURE__ */ u(Q, { value: a?.position, onSelectionChange: l, children: [
|
|
7201
|
+
/* @__PURE__ */ t(Y, { value: "left", size: "28", children: "Left" }),
|
|
7202
|
+
/* @__PURE__ */ t(Y, { value: "right", size: "28", children: "Right" })
|
|
7206
7203
|
] }) }),
|
|
7207
7204
|
/* @__PURE__ */ t(L, { name: "Size", children: /* @__PURE__ */ t("div", { css: { width: "50%" }, children: /* @__PURE__ */ t(
|
|
7208
7205
|
A,
|
|
@@ -7218,8 +7215,8 @@ const Gs = () => {
|
|
|
7218
7215
|
] })
|
|
7219
7216
|
] }) })
|
|
7220
7217
|
] }) });
|
|
7221
|
-
},
|
|
7222
|
-
const { id: e, nodeProps: o, setNodeProps: r } = Vt(), { query: n } =
|
|
7218
|
+
}, ol = () => {
|
|
7219
|
+
const { id: e, nodeProps: o, setNodeProps: r } = Vt(), { query: n } = oe(), a = [
|
|
7223
7220
|
{
|
|
7224
7221
|
value: "single",
|
|
7225
7222
|
label: "Single"
|
|
@@ -7236,10 +7233,10 @@ const Gs = () => {
|
|
|
7236
7233
|
d && d.setAttribute(_t.OpenState, Ce.False);
|
|
7237
7234
|
});
|
|
7238
7235
|
};
|
|
7239
|
-
return /* @__PURE__ */ t(L, { name: "Open mode", children: /* @__PURE__ */ t(
|
|
7240
|
-
},
|
|
7236
|
+
return /* @__PURE__ */ t(L, { name: "Open mode", children: /* @__PURE__ */ t(Q, { value: o.openMode, onSelectionChange: i, children: a.map((s) => /* @__PURE__ */ t(Y, { value: s.value, children: s.label }, s.value)) }) });
|
|
7237
|
+
}, nd = () => {
|
|
7241
7238
|
const { nodeProps: e, setNodeProps: o } = Vt(), { getResponsiveProp: r, currentScreen: n } = W(), a = (g, m = n) => {
|
|
7242
|
-
o({ sx:
|
|
7239
|
+
o({ sx: H(g, m) });
|
|
7243
7240
|
}, i = {
|
|
7244
7241
|
rowGap: r(e.sx ?? {}, "rowGap") ?? e.sx?.rowGap ?? 0
|
|
7245
7242
|
}, s = {
|
|
@@ -7279,16 +7276,16 @@ const Gs = () => {
|
|
|
7279
7276
|
/* @__PURE__ */ u($, { css: { paddingInline: 8 }, children: [
|
|
7280
7277
|
/* @__PURE__ */ u(N, { children: [
|
|
7281
7278
|
/* @__PURE__ */ u(w, { name: "Items management", children: [
|
|
7282
|
-
/* @__PURE__ */ t(
|
|
7283
|
-
/* @__PURE__ */ t(
|
|
7279
|
+
/* @__PURE__ */ t(tl, {}),
|
|
7280
|
+
/* @__PURE__ */ t(ol, {}),
|
|
7284
7281
|
/* @__PURE__ */ t(et, { value: i, onChange: a })
|
|
7285
7282
|
] }),
|
|
7286
7283
|
/* @__PURE__ */ u(w, { name: "Item header", children: [
|
|
7287
7284
|
/* @__PURE__ */ t(z, { value: c, onChange: l }),
|
|
7288
|
-
/* @__PURE__ */ t(
|
|
7285
|
+
/* @__PURE__ */ t(nl, {})
|
|
7289
7286
|
] }),
|
|
7290
7287
|
/* @__PURE__ */ t(w, { name: "Item content", children: /* @__PURE__ */ t(z, { value: C, onChange: p }) }),
|
|
7291
|
-
/* @__PURE__ */ t(w, { name: "Size", children: /* @__PURE__ */ t(
|
|
7288
|
+
/* @__PURE__ */ t(w, { name: "Size", children: /* @__PURE__ */ t(ee, { value: s, onChange: a }) })
|
|
7292
7289
|
] }),
|
|
7293
7290
|
/* @__PURE__ */ u(N, { children: [
|
|
7294
7291
|
/* @__PURE__ */ t(w, { name: "Display on", children: /* @__PURE__ */ t(he, {}) }),
|
|
@@ -7321,11 +7318,11 @@ const Gs = () => {
|
|
|
7321
7318
|
] })
|
|
7322
7319
|
] })
|
|
7323
7320
|
] });
|
|
7324
|
-
},
|
|
7325
|
-
const { currentScreen: e, getResponsiveProp: o } = W(), { nodeProps: r, setNodeProps: n } =
|
|
7321
|
+
}, od = () => {
|
|
7322
|
+
const { currentScreen: e, getResponsiveProp: o } = W(), { nodeProps: r, setNodeProps: n } = Zs(), a = {
|
|
7326
7323
|
aspectRatio: o(r.sx ?? {}, "aspectRatio")
|
|
7327
7324
|
}, i = (C, g = e) => {
|
|
7328
|
-
n({ sx:
|
|
7325
|
+
n({ sx: H(C, g) });
|
|
7329
7326
|
}, s = {
|
|
7330
7327
|
width: o(r.sx ?? {}, "width")
|
|
7331
7328
|
}, l = {
|
|
@@ -7366,7 +7363,7 @@ const Gs = () => {
|
|
|
7366
7363
|
/* @__PURE__ */ u(N, { children: [
|
|
7367
7364
|
/* @__PURE__ */ u(w, { name: "Video source", children: [
|
|
7368
7365
|
/* @__PURE__ */ t(L, { name: "Video link", children: /* @__PURE__ */ t("div", { css: { width: "50%" }, children: /* @__PURE__ */ t(
|
|
7369
|
-
|
|
7366
|
+
re,
|
|
7370
7367
|
{
|
|
7371
7368
|
mode: "onBlur",
|
|
7372
7369
|
placeholder: "https://example.com/video.mp4",
|
|
@@ -7375,7 +7372,7 @@ const Gs = () => {
|
|
|
7375
7372
|
}
|
|
7376
7373
|
) }) }),
|
|
7377
7374
|
de(p) && /* @__PURE__ */ t(L, { name: "Thumbnail", children: /* @__PURE__ */ t("div", { css: { width: "50%" }, children: /* @__PURE__ */ t(
|
|
7378
|
-
|
|
7375
|
+
re,
|
|
7379
7376
|
{
|
|
7380
7377
|
mode: "onBlur",
|
|
7381
7378
|
placeholder: "https://example.com/thumbnail.jpg",
|
|
@@ -7385,9 +7382,9 @@ const Gs = () => {
|
|
|
7385
7382
|
) }) })
|
|
7386
7383
|
] }),
|
|
7387
7384
|
/* @__PURE__ */ u(w, { name: "Size", children: [
|
|
7388
|
-
/* @__PURE__ */ t(
|
|
7385
|
+
/* @__PURE__ */ t(ee, { value: s ?? "", onChange: i }),
|
|
7389
7386
|
/* @__PURE__ */ t(
|
|
7390
|
-
|
|
7387
|
+
_a,
|
|
7391
7388
|
{
|
|
7392
7389
|
suggestOptions: [
|
|
7393
7390
|
{
|
|
@@ -7436,9 +7433,9 @@ const Gs = () => {
|
|
|
7436
7433
|
] })
|
|
7437
7434
|
] })
|
|
7438
7435
|
] });
|
|
7439
|
-
},
|
|
7440
|
-
const { nodeProps: e, setNodeProps: o } =
|
|
7441
|
-
o({ sx:
|
|
7436
|
+
}, rd = () => {
|
|
7437
|
+
const { nodeProps: e, setNodeProps: o } = Os(), { getResponsiveProp: r, currentScreen: n } = W(), a = (p, h = n) => {
|
|
7438
|
+
o({ sx: H(p, h) });
|
|
7442
7439
|
}, i = {
|
|
7443
7440
|
backgroundColor: r(e.sx ?? {}, "backgroundColor"),
|
|
7444
7441
|
backgroundImage: r(e.sx ?? {}, "backgroundImage"),
|
|
@@ -7473,7 +7470,7 @@ const Gs = () => {
|
|
|
7473
7470
|
/* @__PURE__ */ u(N, { children: [
|
|
7474
7471
|
/* @__PURE__ */ u(w, { name: "Layout", children: [
|
|
7475
7472
|
/* @__PURE__ */ t(
|
|
7476
|
-
|
|
7473
|
+
ee,
|
|
7477
7474
|
{
|
|
7478
7475
|
menu: {
|
|
7479
7476
|
autoOption: { visible: !0 },
|
|
@@ -7522,9 +7519,9 @@ const Gs = () => {
|
|
|
7522
7519
|
] })
|
|
7523
7520
|
] })
|
|
7524
7521
|
] });
|
|
7525
|
-
},
|
|
7526
|
-
const { nodeProps: e, setNodeProps: o } =
|
|
7527
|
-
o({ sx:
|
|
7522
|
+
}, ad = () => {
|
|
7523
|
+
const { nodeProps: e, setNodeProps: o } = Ds(), { getResponsiveProp: r, currentScreen: n } = W(), a = (c, p = n) => {
|
|
7524
|
+
o({ sx: H(c, p) });
|
|
7528
7525
|
}, i = {
|
|
7529
7526
|
backgroundColor: r(e.sx ?? {}, "backgroundColor"),
|
|
7530
7527
|
backgroundImage: r(e.sx ?? {}, "backgroundImage"),
|
|
@@ -7593,7 +7590,7 @@ const Gs = () => {
|
|
|
7593
7590
|
] })
|
|
7594
7591
|
] })
|
|
7595
7592
|
] });
|
|
7596
|
-
},
|
|
7593
|
+
}, rl = () => {
|
|
7597
7594
|
const { nodeProps: e, setNodeProps: o } = ot(), { currentScreen: r, getResponsiveProp: n } = W(), [a, i] = E(!1), s = e.captionProps ?? {}, l = (c) => {
|
|
7598
7595
|
o({
|
|
7599
7596
|
captionProps: {
|
|
@@ -7648,7 +7645,7 @@ const Gs = () => {
|
|
|
7648
7645
|
/* @__PURE__ */ t(Te, { children: /* @__PURE__ */ u("div", { style: { width: 280 }, children: [
|
|
7649
7646
|
/* @__PURE__ */ u("div", { css: { display: "flex", justifyContent: "space-between", alignItems: "center", gap: 8 }, children: [
|
|
7650
7647
|
/* @__PURE__ */ t("div", { css: { fontWeight: 500 }, children: "Text style" }),
|
|
7651
|
-
/* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(
|
|
7648
|
+
/* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(k, { source: ae }) }) })
|
|
7652
7649
|
] }),
|
|
7653
7650
|
/* @__PURE__ */ t("hr", { css: { marginBlock: 8, borderColor: v.palette.white["1s"] } }),
|
|
7654
7651
|
/* @__PURE__ */ u("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: [
|
|
@@ -7697,7 +7694,7 @@ const Gs = () => {
|
|
|
7697
7694
|
] })
|
|
7698
7695
|
] }) })
|
|
7699
7696
|
] }) }) });
|
|
7700
|
-
},
|
|
7697
|
+
}, al = () => {
|
|
7701
7698
|
const { nodeProps: e, setNodeProps: o } = ot(), { currentScreen: r, getResponsiveProp: n } = W(), [a, i] = E(!1), s = e.timeProps ?? {}, l = (c) => {
|
|
7702
7699
|
o({
|
|
7703
7700
|
timeProps: r === "xs" ? {
|
|
@@ -7754,7 +7751,7 @@ const Gs = () => {
|
|
|
7754
7751
|
/* @__PURE__ */ t(Te, { children: /* @__PURE__ */ u("div", { style: { width: 280 }, children: [
|
|
7755
7752
|
/* @__PURE__ */ u("div", { css: { display: "flex", justifyContent: "space-between", alignItems: "center", gap: 8 }, children: [
|
|
7756
7753
|
/* @__PURE__ */ t("div", { css: { fontWeight: 500 }, children: "Text style" }),
|
|
7757
|
-
/* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(
|
|
7754
|
+
/* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(k, { source: ae }) }) })
|
|
7758
7755
|
] }),
|
|
7759
7756
|
/* @__PURE__ */ t("hr", { css: { marginBlock: 8, borderColor: v.palette.white["1s"] } }),
|
|
7760
7757
|
/* @__PURE__ */ u("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: [
|
|
@@ -7794,7 +7791,7 @@ const Gs = () => {
|
|
|
7794
7791
|
] })
|
|
7795
7792
|
] }) })
|
|
7796
7793
|
] }) }) });
|
|
7797
|
-
},
|
|
7794
|
+
}, il = () => {
|
|
7798
7795
|
const { currentScreen: e, getResponsiveProp: o } = W(), { nodeProps: r, setNodeProps: n } = ot(), a = (d, c = e) => {
|
|
7799
7796
|
n({
|
|
7800
7797
|
unitItemProps: {
|
|
@@ -7818,7 +7815,7 @@ const Gs = () => {
|
|
|
7818
7815
|
};
|
|
7819
7816
|
return /* @__PURE__ */ u(w, { name: "Item style", children: [
|
|
7820
7817
|
/* @__PURE__ */ t(
|
|
7821
|
-
|
|
7818
|
+
ee,
|
|
7822
7819
|
{
|
|
7823
7820
|
menu: {
|
|
7824
7821
|
autoOption: { visible: !0 }
|
|
@@ -7856,7 +7853,7 @@ const Gs = () => {
|
|
|
7856
7853
|
}
|
|
7857
7854
|
)
|
|
7858
7855
|
] });
|
|
7859
|
-
},
|
|
7856
|
+
}, sl = () => {
|
|
7860
7857
|
const { nodeProps: e, setNodeProps: o } = ot(), [r, n] = E(!1), a = [
|
|
7861
7858
|
{
|
|
7862
7859
|
label: "Months",
|
|
@@ -7939,12 +7936,12 @@ const Gs = () => {
|
|
|
7939
7936
|
/* @__PURE__ */ t(Te, { style: { top: 120 }, children: /* @__PURE__ */ u("div", { style: { width: 280 }, children: [
|
|
7940
7937
|
/* @__PURE__ */ u("div", { css: { display: "flex", justifyContent: "space-between", alignItems: "center", gap: 8 }, children: [
|
|
7941
7938
|
/* @__PURE__ */ t("div", { css: { fontWeight: 500 }, children: "Units" }),
|
|
7942
|
-
/* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(
|
|
7939
|
+
/* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(k, { source: ae }) }) })
|
|
7943
7940
|
] }),
|
|
7944
7941
|
/* @__PURE__ */ t("hr", { css: { marginBlock: 8, borderColor: v.palette.white["1s"] } }),
|
|
7945
7942
|
/* @__PURE__ */ t("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: a.map((l) => /* @__PURE__ */ u(ze, { children: [
|
|
7946
7943
|
/* @__PURE__ */ t(L, { name: l.label, children: /* @__PURE__ */ u(
|
|
7947
|
-
|
|
7944
|
+
Q,
|
|
7948
7945
|
{
|
|
7949
7946
|
onSelectionChange: i,
|
|
7950
7947
|
css: {
|
|
@@ -7952,13 +7949,13 @@ const Gs = () => {
|
|
|
7952
7949
|
},
|
|
7953
7950
|
value: (!!l.currentValue).toString(),
|
|
7954
7951
|
children: [
|
|
7955
|
-
/* @__PURE__ */ t(
|
|
7956
|
-
/* @__PURE__ */ t(
|
|
7952
|
+
/* @__PURE__ */ t(Y, { name: l.value, css: { flex: 1 }, value: Ce.True, size: "28", children: "Show" }),
|
|
7953
|
+
/* @__PURE__ */ t(Y, { name: l.value, css: { flex: 1 }, value: Ce.False, size: "28", children: "Hide" })
|
|
7957
7954
|
]
|
|
7958
7955
|
}
|
|
7959
7956
|
) }),
|
|
7960
7957
|
!!l.currentValue && /* @__PURE__ */ t(L, { name: `${l.label} caption`, children: /* @__PURE__ */ t("div", { css: { width: "50%" }, children: /* @__PURE__ */ t(
|
|
7961
|
-
|
|
7958
|
+
re,
|
|
7962
7959
|
{
|
|
7963
7960
|
transform: Xt,
|
|
7964
7961
|
debounce: 400,
|
|
@@ -7971,9 +7968,9 @@ const Gs = () => {
|
|
|
7971
7968
|
] }, l.value)) })
|
|
7972
7969
|
] }) })
|
|
7973
7970
|
] }) });
|
|
7974
|
-
},
|
|
7971
|
+
}, id = () => {
|
|
7975
7972
|
const { nodeProps: e, setNodeProps: o } = ot(), { getResponsiveProp: r, currentScreen: n } = W(), a = (h, C = n) => {
|
|
7976
|
-
o({ sx:
|
|
7973
|
+
o({ sx: H(h, C) });
|
|
7977
7974
|
}, i = {
|
|
7978
7975
|
backgroundColor: r(e.sx ?? {}, "backgroundColor"),
|
|
7979
7976
|
backgroundImage: r(e.sx ?? {}, "backgroundImage"),
|
|
@@ -8014,19 +8011,19 @@ const Gs = () => {
|
|
|
8014
8011
|
/* @__PURE__ */ u(N, { children: [
|
|
8015
8012
|
/* @__PURE__ */ u(w, { name: "Config", children: [
|
|
8016
8013
|
/* @__PURE__ */ t(L, { name: "Date", children: /* @__PURE__ */ t(
|
|
8017
|
-
|
|
8014
|
+
aa,
|
|
8018
8015
|
{
|
|
8019
8016
|
onChange: c,
|
|
8020
8017
|
referenceProps: { className: "w-1/2" },
|
|
8021
8018
|
value: D(e.date) ? null : new Date(e.date)
|
|
8022
8019
|
}
|
|
8023
8020
|
) }),
|
|
8024
|
-
/* @__PURE__ */ t(
|
|
8021
|
+
/* @__PURE__ */ t(sl, {}),
|
|
8025
8022
|
/* @__PURE__ */ t(L, { name: "Hide after expired", children: /* @__PURE__ */ t(ce, { checked: e.hideAfterExpired ?? !1, onChange: p }) })
|
|
8026
8023
|
] }),
|
|
8027
8024
|
/* @__PURE__ */ u(w, { name: "Layout", children: [
|
|
8028
8025
|
/* @__PURE__ */ t(
|
|
8029
|
-
|
|
8026
|
+
ee,
|
|
8030
8027
|
{
|
|
8031
8028
|
menu: {
|
|
8032
8029
|
autoOption: { visible: !0 },
|
|
@@ -8046,9 +8043,9 @@ const Gs = () => {
|
|
|
8046
8043
|
}
|
|
8047
8044
|
)
|
|
8048
8045
|
] }),
|
|
8049
|
-
/* @__PURE__ */ t(sl, {}),
|
|
8050
8046
|
/* @__PURE__ */ t(il, {}),
|
|
8051
|
-
/* @__PURE__ */ t(al, {})
|
|
8047
|
+
/* @__PURE__ */ t(al, {}),
|
|
8048
|
+
/* @__PURE__ */ t(rl, {})
|
|
8052
8049
|
] }),
|
|
8053
8050
|
/* @__PURE__ */ u(N, { children: [
|
|
8054
8051
|
/* @__PURE__ */ t(w, { name: "Display on", children: /* @__PURE__ */ t(he, {}) }),
|
|
@@ -8089,107 +8086,107 @@ const Gs = () => {
|
|
|
8089
8086
|
};
|
|
8090
8087
|
export {
|
|
8091
8088
|
lo as $,
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8089
|
+
nd as A,
|
|
8090
|
+
rd as B,
|
|
8091
|
+
Jl as C,
|
|
8092
|
+
_l as D,
|
|
8093
|
+
Vs as E,
|
|
8094
|
+
Zl as F,
|
|
8095
|
+
Ol as G,
|
|
8096
|
+
Gl as H,
|
|
8097
|
+
td as I,
|
|
8101
8098
|
Ht as J,
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8099
|
+
Fs as K,
|
|
8100
|
+
zl as L,
|
|
8101
|
+
Xl as M,
|
|
8102
|
+
te as N,
|
|
8106
8103
|
Wo as O,
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8104
|
+
$l as P,
|
|
8105
|
+
js as Q,
|
|
8106
|
+
Zs as R,
|
|
8107
|
+
xs as S,
|
|
8108
|
+
Hl as T,
|
|
8109
|
+
ed as U,
|
|
8110
|
+
ks as V,
|
|
8111
|
+
ea as W,
|
|
8115
8112
|
L as X,
|
|
8116
8113
|
A as Y,
|
|
8117
8114
|
be as Z,
|
|
8118
8115
|
qn as _,
|
|
8119
|
-
|
|
8116
|
+
Ul as a,
|
|
8120
8117
|
We as a0,
|
|
8121
8118
|
Pt as a1,
|
|
8122
8119
|
Ue as a2,
|
|
8123
8120
|
Tt as a3,
|
|
8124
8121
|
Nt as a4,
|
|
8125
8122
|
hn as a5,
|
|
8126
|
-
|
|
8123
|
+
Q as a6,
|
|
8127
8124
|
Ut as a7,
|
|
8128
8125
|
Ie as a8,
|
|
8129
8126
|
Bt as a9,
|
|
8130
8127
|
pt as aA,
|
|
8131
|
-
|
|
8128
|
+
Ea as aB,
|
|
8132
8129
|
w as aC,
|
|
8133
|
-
|
|
8134
|
-
|
|
8130
|
+
aa as aD,
|
|
8131
|
+
oa as aE,
|
|
8135
8132
|
_e as aF,
|
|
8136
8133
|
P as aG,
|
|
8137
8134
|
$ as aH,
|
|
8138
8135
|
Z as aI,
|
|
8139
8136
|
N as aJ,
|
|
8140
8137
|
j as aK,
|
|
8141
|
-
|
|
8142
|
-
|
|
8138
|
+
na as aL,
|
|
8139
|
+
Aa as aM,
|
|
8143
8140
|
W as aN,
|
|
8144
|
-
|
|
8145
|
-
|
|
8141
|
+
Vl as aa,
|
|
8142
|
+
_a as ab,
|
|
8146
8143
|
ue as ac,
|
|
8147
8144
|
G as ad,
|
|
8148
8145
|
K as ae,
|
|
8149
8146
|
Qe as af,
|
|
8150
|
-
|
|
8147
|
+
Fa as ag,
|
|
8151
8148
|
gn as ah,
|
|
8152
8149
|
eo as ai,
|
|
8153
|
-
|
|
8150
|
+
ee as aj,
|
|
8154
8151
|
he as ak,
|
|
8155
8152
|
ao as al,
|
|
8156
8153
|
so as am,
|
|
8157
|
-
|
|
8154
|
+
$a as an,
|
|
8158
8155
|
Ae as ao,
|
|
8159
8156
|
co as ap,
|
|
8160
8157
|
Kn as aq,
|
|
8161
|
-
|
|
8162
|
-
|
|
8158
|
+
Da as ar,
|
|
8159
|
+
Za as as,
|
|
8163
8160
|
_ as at,
|
|
8164
8161
|
De as au,
|
|
8165
|
-
|
|
8166
|
-
|
|
8162
|
+
ja as av,
|
|
8163
|
+
Ha as aw,
|
|
8167
8164
|
io as ax,
|
|
8168
8165
|
z as ay,
|
|
8169
8166
|
et as az,
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8167
|
+
Fl as b,
|
|
8168
|
+
Dl as c,
|
|
8169
|
+
Kl as d,
|
|
8170
|
+
ad as e,
|
|
8171
|
+
id as f,
|
|
8172
|
+
jl as g,
|
|
8173
|
+
ql as h,
|
|
8174
|
+
Ql as i,
|
|
8175
|
+
Yl as j,
|
|
8179
8176
|
No as k,
|
|
8180
|
-
|
|
8177
|
+
od as l,
|
|
8181
8178
|
Vt as m,
|
|
8182
|
-
|
|
8183
|
-
|
|
8179
|
+
Hs as n,
|
|
8180
|
+
Os as o,
|
|
8184
8181
|
Mt as p,
|
|
8185
8182
|
uo as q,
|
|
8186
|
-
|
|
8183
|
+
Ds as r,
|
|
8187
8184
|
ot as s,
|
|
8188
8185
|
In as t,
|
|
8189
|
-
|
|
8186
|
+
O as u,
|
|
8190
8187
|
Po as v,
|
|
8191
|
-
|
|
8192
|
-
|
|
8188
|
+
Gr as w,
|
|
8189
|
+
zs as x,
|
|
8193
8190
|
nt as y,
|
|
8194
8191
|
Cn as z
|
|
8195
8192
|
};
|