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