@janbox/storefront-builder 2.0.2 → 2.0.3
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/{dialog-header-Bh3Dkw2q.js → countdown-timer.node-CZrTzirS.js} +3315 -2157
- package/dist/editor/components/index.d.ts +0 -1
- package/dist/editor/hooks/index.d.ts +0 -12
- package/dist/editor/hooks/use-editor.d.ts +6 -2
- package/dist/editor/index.d.ts +4 -0
- package/dist/editor/lib/index.d.ts +6 -4
- package/dist/editor/toolbars/css-font-weight/index.d.ts +9 -0
- package/dist/editor/toolbars/{width/width.d.ts → css-width/index.d.ts} +5 -5
- package/dist/editor/toolbars/html-anchor-target/index.d.ts +7 -0
- package/dist/editor/toolbars/index.d.ts +3 -3
- package/dist/editor/toolbars/text-align/index.d.ts +9 -1
- package/dist/editor.js +1189 -693
- package/dist/index-B1b2lC5K.js +4 -0
- package/dist/index-CdI5y-ul.js +8326 -0
- package/dist/index.js +173 -371
- package/dist/templates.js +26 -28
- package/dist/{tooltip-CXOlTkGg.js → tooltip-npH7aBjY.js} +1 -1
- package/package.json +1 -10
- package/dist/anchor-target-CtXzdkBu.js +0 -2918
- package/dist/color-picker-popover-XeaVfYS8.js +0 -225
- package/dist/countdown-timer.node-Bh5fTSJ8.js +0 -913
- package/dist/date-picker-D9K6HWl-.js +0 -157
- package/dist/dropzone-CF4CWXth.js +0 -546
- package/dist/editor/components/toolbar-container.d.ts +0 -1
- package/dist/editor/toolbars/anchor-target/anchor-target.d.ts +0 -7
- package/dist/editor/toolbars/anchor-target/index.d.ts +0 -1
- package/dist/editor/toolbars/font-weight/dataset.d.ts +0 -5
- package/dist/editor/toolbars/font-weight/font-weight.d.ts +0 -9
- package/dist/editor/toolbars/font-weight/index.d.ts +0 -1
- package/dist/editor/toolbars/text-align/text-align.d.ts +0 -8
- package/dist/editor/toolbars/width/index.d.ts +0 -1
- package/dist/editor/toolbars.js +0 -346
- package/dist/editor/ui.js +0 -120
- package/dist/index-800HnUOi.js +0 -4
- package/dist/index-CXyljfMv.js +0 -4593
package/dist/index-CXyljfMv.js
DELETED
|
@@ -1,4593 +0,0 @@
|
|
|
1
|
-
import { jsxs as u, jsx as n, Fragment as Nt } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { a as Wt, F as Et, t as X, M as At, v as T, p as Dt, q as Ot, n as Ft, l as Mt, b as zt, c as $t, P as et, d as _t, i as In, A as Bn, T as Nn, o as Wn, r as En, m as An, S as Dn, s as On, L as Fn, k as Mn, V as zn, I as $n, C as _n, g as Hn, j as Vn, G as jn, H as Un, B as Gn, U as qn, R as Jn, N as Kn } from "./countdown-timer.node-Bh5fTSJ8.js";
|
|
3
|
-
import { Element as Yn, useNode as Q, ROOT_NODE as Zn, Frame as Xn, Editor as Qn, DefaultEventHandlers as eo } from "@craftjs/core";
|
|
4
|
-
import { isString as be, isNil as ee, trimStart as Ht, isNumber as to } from "lodash-es";
|
|
5
|
-
import * as p from "react";
|
|
6
|
-
import { useState as U, useEffect as ve, Fragment as Vt, useMemo as no } from "react";
|
|
7
|
-
import { W as E, t as S, l as se, k as G, x as le, p as oo, c as K, o as ro, n as ao, y as io, A as tt, P as jt, d as Ie, q as Ae, s as De, r as Oe, C as Fe } from "./dialog-header-Bh3Dkw2q.js";
|
|
8
|
-
import { v as A, K as so, E as B, i as Ce, N as Be, k as at, R as Re, G as lo, n as co, W as V, H as ce, D as Y, S as z, h as _, g as $, B as Z, T as P, p as Ut, A as Gt, b as Me, c as ge, d as ze, s as qt, e as it, F as $e, j as uo, M as ho, m as Jt, l as Kt, J as go, r as po, L as st, y as dt, Q as mo, O as fo, q as Ne, o as bo, P as nt, f as xo, a as Yt } from "./anchor-target-CtXzdkBu.js";
|
|
9
|
-
import { getGridProps as vo, getCellProps as Co, GRID_MINIMUM_COLS as Tt, GRID_MAXIMUM_COLS as Ro, getLinkProps as yo, getButtonProps as So, getFlexboxProps as wo, getFlexItemProps as To, getImageProps as ko, getMarqueeProps as Lo, MarqueeDataAttributes as Ye, getTabsProps as Po, getSwiperProps as Io, getUnorderedListProps as Bo, getIconProps as No, getAccordionProps as Wo, getAccordionGroupProps as Eo, getAccordionDataAttributes as Te, AccordionDataAttributes as ot, getVideoProps as Ao, getBoxProps as Do, getContainerProps as Oo } from "@janbox/storefront-ui";
|
|
10
|
-
import { t as W, u as ne, i as kt, a as rt, e as he, C as Zt } from "./color-picker-popover-XeaVfYS8.js";
|
|
11
|
-
import "@janbox/storefront-ui/hooks";
|
|
12
|
-
import "@emotion/react";
|
|
13
|
-
import { useFloating as Fo, autoUpdate as Mo, flip as zo, offset as $o, FloatingPortal as _o } from "@floating-ui/react";
|
|
14
|
-
import "react-use";
|
|
15
|
-
import "@janbox/storefront-ui/theme";
|
|
16
|
-
import "react-colorful";
|
|
17
|
-
import { k as D, i as O, g as k, h as F, j as L, c as xe, f as lt, a as _e, d as Ho, A as ct, e as He } from "./dropzone-CF4CWXth.js";
|
|
18
|
-
import "overlayscrollbars-react";
|
|
19
|
-
import "@tanstack/react-virtual";
|
|
20
|
-
import "react-dropzone";
|
|
21
|
-
import "react-datepicker/dist/react-datepicker.css";
|
|
22
|
-
import "react-datepicker";
|
|
23
|
-
import "@tiptap/extension-text-style";
|
|
24
|
-
import "@tiptap/react";
|
|
25
|
-
import "@tiptap/react/menus";
|
|
26
|
-
import "@tiptap/starter-kit";
|
|
27
|
-
import { useFrame as Xt } from "react-frame-component";
|
|
28
|
-
import "flat";
|
|
29
|
-
import "@janbox/storefront-ui/utils";
|
|
30
|
-
import { useToggle as Qt } from "usehooks-ts";
|
|
31
|
-
import { DragDropContext as en, Droppable as tn, Draggable as nn } from "@hello-pangea/dnd";
|
|
32
|
-
import { W as Vo } from "./date-picker-D9K6HWl-.js";
|
|
33
|
-
const jo = () => A({
|
|
34
|
-
transform: vo
|
|
35
|
-
}), j = Yn, Uo = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
36
|
-
<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"/>
|
|
37
|
-
<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"/>
|
|
38
|
-
<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"/>
|
|
39
|
-
<path d="M6.84 7L10.34 10.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
40
|
-
</svg>
|
|
41
|
-
`, m = ({ name: e, children: o, responsive: r, slots: t }) => /* @__PURE__ */ u("div", { css: { display: "flex", paddingBlock: 8, flexDirection: "column", gap: 8 }, children: [
|
|
42
|
-
/* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
43
|
-
/* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
44
|
-
/* @__PURE__ */ n(E, { source: Uo }),
|
|
45
|
-
/* @__PURE__ */ n(
|
|
46
|
-
"span",
|
|
47
|
-
{
|
|
48
|
-
css: {
|
|
49
|
-
...S.text.sm,
|
|
50
|
-
fontWeight: 500
|
|
51
|
-
},
|
|
52
|
-
children: e
|
|
53
|
-
}
|
|
54
|
-
)
|
|
55
|
-
] }),
|
|
56
|
-
!!r && /* @__PURE__ */ n(so, {}),
|
|
57
|
-
/* @__PURE__ */ n("div", { css: { display: "flex", flex: 1, alignItems: "center", justifyContent: "flex-end" }, children: t?.right })
|
|
58
|
-
] }),
|
|
59
|
-
/* @__PURE__ */ n("div", { css: { display: "flex", flexDirection: "column", gap: 16 }, children: o })
|
|
60
|
-
] }), $i = () => {
|
|
61
|
-
const { nodeProps: e, setNodeResponsiveProps: o, setNodeProps: r } = jo(), { getResponsiveProp: t, currentScreen: a } = B(), i = (w, I = a) => {
|
|
62
|
-
r({
|
|
63
|
-
sx: W(w, I)
|
|
64
|
-
});
|
|
65
|
-
}, s = {
|
|
66
|
-
paddingBottom: t(e.sx ?? {}, "paddingBottom"),
|
|
67
|
-
paddingLeft: t(e.sx ?? {}, "paddingLeft"),
|
|
68
|
-
paddingRight: t(e.sx ?? {}, "paddingRight"),
|
|
69
|
-
paddingTop: t(e.sx ?? {}, "paddingTop"),
|
|
70
|
-
marginBottom: t(e.sx ?? {}, "marginBottom"),
|
|
71
|
-
marginLeft: t(e.sx ?? {}, "marginLeft"),
|
|
72
|
-
marginRight: t(e.sx ?? {}, "marginRight"),
|
|
73
|
-
marginTop: t(e.sx ?? {}, "marginTop")
|
|
74
|
-
}, d = {
|
|
75
|
-
backgroundColor: t(e.sx ?? {}, "backgroundColor"),
|
|
76
|
-
backgroundImage: t(e.sx ?? {}, "backgroundImage"),
|
|
77
|
-
backgroundPosition: t(e.sx ?? {}, "backgroundPosition"),
|
|
78
|
-
backgroundRepeat: t(e.sx ?? {}, "backgroundRepeat"),
|
|
79
|
-
background: t(e.sx ?? {}, "background"),
|
|
80
|
-
backgroundSize: t(e.sx ?? {}, "backgroundSize"),
|
|
81
|
-
backgroundAttachment: t(e.sx ?? {}, "backgroundAttachment")
|
|
82
|
-
}, l = () => /* @__PURE__ */ n(j, { canvas: !0, is: Wt }), c = {
|
|
83
|
-
columnGap: t(e.sx ?? {}, "columnGap") ?? 0
|
|
84
|
-
}, h = {
|
|
85
|
-
rowGap: t(e.sx ?? {}, "rowGap") ?? 0
|
|
86
|
-
}, g = {
|
|
87
|
-
width: t(e.sx ?? {}, "width")
|
|
88
|
-
}, b = {
|
|
89
|
-
height: t(e.sx ?? {}, "height")
|
|
90
|
-
}, C = {
|
|
91
|
-
alignItems: t(e.sx ?? {}, "alignItems")
|
|
92
|
-
}, x = {
|
|
93
|
-
justifyItems: t(e.sx ?? {}, "justifyItems")
|
|
94
|
-
}, R = {
|
|
95
|
-
borderStyle: t(e.sx ?? {}, "borderStyle"),
|
|
96
|
-
borderColor: t(e.sx ?? {}, "borderColor"),
|
|
97
|
-
borderTopWidth: t(e.sx ?? {}, "borderTopWidth"),
|
|
98
|
-
borderRightWidth: t(e.sx ?? {}, "borderRightWidth"),
|
|
99
|
-
borderBottomWidth: t(e.sx ?? {}, "borderBottomWidth"),
|
|
100
|
-
borderLeftWidth: t(e.sx ?? {}, "borderLeftWidth")
|
|
101
|
-
}, f = {
|
|
102
|
-
borderTopLeftRadius: t(e.sx ?? {}, "borderTopLeftRadius"),
|
|
103
|
-
borderTopRightRadius: t(e.sx ?? {}, "borderTopRightRadius"),
|
|
104
|
-
borderBottomRightRadius: t(e.sx ?? {}, "borderBottomRightRadius"),
|
|
105
|
-
borderBottomLeftRadius: t(e.sx ?? {}, "borderBottomLeftRadius")
|
|
106
|
-
}, v = t(e, "cols");
|
|
107
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
108
|
-
/* @__PURE__ */ u(O, { children: [
|
|
109
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
110
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
111
|
-
] }),
|
|
112
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
113
|
-
/* @__PURE__ */ u(L, { children: [
|
|
114
|
-
/* @__PURE__ */ n(m, { name: "Cells", children: /* @__PURE__ */ n(Ce, { getNewNodeElement: l }) }),
|
|
115
|
-
/* @__PURE__ */ u(m, { name: "Layout", children: [
|
|
116
|
-
/* @__PURE__ */ n(Be, { min: 1, name: "Columns", responsive: !0, value: v, onChange: (w) => {
|
|
117
|
-
o(
|
|
118
|
-
{
|
|
119
|
-
cols: w
|
|
120
|
-
},
|
|
121
|
-
a
|
|
122
|
-
);
|
|
123
|
-
} }),
|
|
124
|
-
/* @__PURE__ */ n(at, { value: c, onChange: i }),
|
|
125
|
-
/* @__PURE__ */ n(Re, { value: h, onChange: i }),
|
|
126
|
-
/* @__PURE__ */ n(lo, { value: C, onChange: i }),
|
|
127
|
-
/* @__PURE__ */ n(co, { value: x, onChange: i })
|
|
128
|
-
] }),
|
|
129
|
-
/* @__PURE__ */ u(m, { name: "Size", children: [
|
|
130
|
-
/* @__PURE__ */ n(
|
|
131
|
-
V,
|
|
132
|
-
{
|
|
133
|
-
menu: {
|
|
134
|
-
autoOption: { visible: !0 },
|
|
135
|
-
fitContentOption: { visible: !0 }
|
|
136
|
-
},
|
|
137
|
-
value: g ?? "auto",
|
|
138
|
-
onChange: i
|
|
139
|
-
}
|
|
140
|
-
),
|
|
141
|
-
/* @__PURE__ */ n(ce, { value: b, onChange: i })
|
|
142
|
-
] })
|
|
143
|
-
] }),
|
|
144
|
-
/* @__PURE__ */ u(L, { children: [
|
|
145
|
-
/* @__PURE__ */ n(m, { name: "Display on", children: /* @__PURE__ */ n(Y, {}) }),
|
|
146
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: s, onChange: i }) }),
|
|
147
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
148
|
-
/* @__PURE__ */ n(_, { value: R, onChange: i }),
|
|
149
|
-
/* @__PURE__ */ n($, { value: f, onChange: i })
|
|
150
|
-
] }),
|
|
151
|
-
/* @__PURE__ */ n(m, { name: "Background", children: /* @__PURE__ */ n(Z, { value: d, onChange: i }) })
|
|
152
|
-
] })
|
|
153
|
-
] })
|
|
154
|
-
] });
|
|
155
|
-
}, on = () => A({
|
|
156
|
-
transform: Co
|
|
157
|
-
}), Go = () => {
|
|
158
|
-
const { currentScreen: e, getResponsiveProp: o } = B(), { nodeProps: r, setNodeResponsiveProps: t } = on(), a = o(r, "colSpan") ?? Tt;
|
|
159
|
-
return /* @__PURE__ */ n(P, { responsive: !0, name: "Col span", children: /* @__PURE__ */ n(
|
|
160
|
-
"div",
|
|
161
|
-
{
|
|
162
|
-
css: {
|
|
163
|
-
width: "50%"
|
|
164
|
-
},
|
|
165
|
-
children: /* @__PURE__ */ n(
|
|
166
|
-
xe,
|
|
167
|
-
{
|
|
168
|
-
step: 1,
|
|
169
|
-
onChange: (s) => {
|
|
170
|
-
const d = isNaN(s.target.valueAsNumber) ? void 0 : s.target.valueAsNumber;
|
|
171
|
-
t(
|
|
172
|
-
{
|
|
173
|
-
colSpan: d ?? a
|
|
174
|
-
},
|
|
175
|
-
e
|
|
176
|
-
);
|
|
177
|
-
},
|
|
178
|
-
value: a,
|
|
179
|
-
css: { textAlign: "center" },
|
|
180
|
-
mode: "onBlur",
|
|
181
|
-
size: "32",
|
|
182
|
-
min: Tt,
|
|
183
|
-
max: Ro
|
|
184
|
-
}
|
|
185
|
-
)
|
|
186
|
-
}
|
|
187
|
-
) });
|
|
188
|
-
}, _i = () => {
|
|
189
|
-
const { nodeProps: e, setNodeProps: o } = on(), { currentScreen: r, getResponsiveProp: t } = B(), a = (g, b = r) => {
|
|
190
|
-
o({ sx: W(g, b) });
|
|
191
|
-
}, i = {
|
|
192
|
-
backgroundColor: t(e.sx ?? {}, "backgroundColor"),
|
|
193
|
-
backgroundImage: t(e.sx ?? {}, "backgroundImage"),
|
|
194
|
-
backgroundPosition: t(e.sx ?? {}, "backgroundPosition"),
|
|
195
|
-
backgroundRepeat: t(e.sx ?? {}, "backgroundRepeat"),
|
|
196
|
-
background: t(e.sx ?? {}, "background"),
|
|
197
|
-
backgroundSize: t(e.sx ?? {}, "backgroundSize"),
|
|
198
|
-
backgroundAttachment: t(e.sx ?? {}, "backgroundAttachment")
|
|
199
|
-
}, s = {
|
|
200
|
-
paddingBottom: t(e.sx ?? {}, "paddingBottom"),
|
|
201
|
-
paddingLeft: t(e.sx ?? {}, "paddingLeft"),
|
|
202
|
-
paddingRight: t(e.sx ?? {}, "paddingRight"),
|
|
203
|
-
paddingTop: t(e.sx ?? {}, "paddingTop"),
|
|
204
|
-
marginBottom: t(e.sx ?? {}, "marginBottom"),
|
|
205
|
-
marginLeft: t(e.sx ?? {}, "marginLeft"),
|
|
206
|
-
marginRight: t(e.sx ?? {}, "marginRight"),
|
|
207
|
-
marginTop: t(e.sx ?? {}, "marginTop")
|
|
208
|
-
}, d = {
|
|
209
|
-
borderStyle: t(e.sx ?? {}, "borderStyle"),
|
|
210
|
-
borderColor: t(e.sx ?? {}, "borderColor"),
|
|
211
|
-
borderTopWidth: t(e.sx ?? {}, "borderTopWidth"),
|
|
212
|
-
borderRightWidth: t(e.sx ?? {}, "borderRightWidth"),
|
|
213
|
-
borderBottomWidth: t(e.sx ?? {}, "borderBottomWidth"),
|
|
214
|
-
borderLeftWidth: t(e.sx ?? {}, "borderLeftWidth")
|
|
215
|
-
}, l = {
|
|
216
|
-
borderTopLeftRadius: t(e.sx ?? {}, "borderTopLeftRadius"),
|
|
217
|
-
borderTopRightRadius: t(e.sx ?? {}, "borderTopRightRadius"),
|
|
218
|
-
borderBottomRightRadius: t(e.sx ?? {}, "borderBottomRightRadius"),
|
|
219
|
-
borderBottomLeftRadius: t(e.sx ?? {}, "borderBottomLeftRadius")
|
|
220
|
-
}, c = {
|
|
221
|
-
height: t(e.sx ?? {}, "height")
|
|
222
|
-
}, h = {
|
|
223
|
-
order: t(e.sx ?? {}, "order")
|
|
224
|
-
};
|
|
225
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
226
|
-
/* @__PURE__ */ u(O, { children: [
|
|
227
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
228
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
229
|
-
] }),
|
|
230
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
231
|
-
/* @__PURE__ */ u(L, { children: [
|
|
232
|
-
/* @__PURE__ */ u(m, { name: "Layout", children: [
|
|
233
|
-
/* @__PURE__ */ n(Go, {}),
|
|
234
|
-
/* @__PURE__ */ n(Ut, { value: h, onChange: a })
|
|
235
|
-
] }),
|
|
236
|
-
/* @__PURE__ */ n(m, { name: "Size", children: /* @__PURE__ */ n(ce, { onChange: a, value: c }) })
|
|
237
|
-
] }),
|
|
238
|
-
/* @__PURE__ */ u(L, { children: [
|
|
239
|
-
/* @__PURE__ */ n(m, { name: "Display on", children: /* @__PURE__ */ n(Y, {}) }),
|
|
240
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: s, onChange: a }) }),
|
|
241
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
242
|
-
/* @__PURE__ */ n(_, { value: d, onChange: a }),
|
|
243
|
-
/* @__PURE__ */ n($, { value: l, onChange: a })
|
|
244
|
-
] }),
|
|
245
|
-
/* @__PURE__ */ n(m, { name: "Background", children: /* @__PURE__ */ n(Z, { value: i, onChange: a }) })
|
|
246
|
-
] })
|
|
247
|
-
] })
|
|
248
|
-
] });
|
|
249
|
-
}, ut = () => A({
|
|
250
|
-
transform: yo
|
|
251
|
-
}), qo = () => {
|
|
252
|
-
const { nodeProps: e, setNodeProps: o } = ut();
|
|
253
|
-
return /* @__PURE__ */ n(P, { name: "To", children: /* @__PURE__ */ n("div", { css: { width: "50%" }, children: /* @__PURE__ */ n(
|
|
254
|
-
se,
|
|
255
|
-
{
|
|
256
|
-
onChange: (t) => {
|
|
257
|
-
t.target.value = t.target.value.trim(), o({
|
|
258
|
-
to: t.target.value ? t.target.value : void 0
|
|
259
|
-
});
|
|
260
|
-
},
|
|
261
|
-
value: be(e.to) ? e.to : e.to?.pathname ?? ""
|
|
262
|
-
}
|
|
263
|
-
) }) });
|
|
264
|
-
}, Jo = () => {
|
|
265
|
-
const { nodeProps: e, setNodeProps: o } = ut();
|
|
266
|
-
return /* @__PURE__ */ n(P, { name: "Rel", children: /* @__PURE__ */ n("div", { css: { width: "50%" }, children: /* @__PURE__ */ n(se, { onChange: (t) => {
|
|
267
|
-
t.target.value = t.target.value.trim(), o({
|
|
268
|
-
rel: t.target.value ? t.target.value : void 0
|
|
269
|
-
});
|
|
270
|
-
}, value: e.rel ?? "", placeholder: "nofollow, noreferrer, noopener, ugc" }) }) });
|
|
271
|
-
}, Hi = () => {
|
|
272
|
-
const { nodeProps: e, setNodeResponsiveProps: o, setNodeProps: r } = ut(), { currentScreen: t, getResponsiveProp: a } = B(), i = (v, y = t) => {
|
|
273
|
-
r({ sx: W(v, y) });
|
|
274
|
-
}, s = {
|
|
275
|
-
paddingBottom: a(e.sx ?? {}, "paddingBottom"),
|
|
276
|
-
paddingLeft: a(e.sx ?? {}, "paddingLeft"),
|
|
277
|
-
paddingRight: a(e.sx ?? {}, "paddingRight"),
|
|
278
|
-
paddingTop: a(e.sx ?? {}, "paddingTop"),
|
|
279
|
-
marginBottom: a(e.sx ?? {}, "marginBottom"),
|
|
280
|
-
marginLeft: a(e.sx ?? {}, "marginLeft"),
|
|
281
|
-
marginRight: a(e.sx ?? {}, "marginRight"),
|
|
282
|
-
marginTop: a(e.sx ?? {}, "marginTop")
|
|
283
|
-
}, d = {
|
|
284
|
-
borderStyle: a(e.sx ?? {}, "borderStyle"),
|
|
285
|
-
borderColor: a(e.sx ?? {}, "borderColor"),
|
|
286
|
-
borderTopWidth: a(e.sx ?? {}, "borderTopWidth"),
|
|
287
|
-
borderRightWidth: a(e.sx ?? {}, "borderRightWidth"),
|
|
288
|
-
borderBottomWidth: a(e.sx ?? {}, "borderBottomWidth"),
|
|
289
|
-
borderLeftWidth: a(e.sx ?? {}, "borderLeftWidth")
|
|
290
|
-
}, l = {
|
|
291
|
-
borderTopLeftRadius: a(e.sx ?? {}, "borderTopLeftRadius"),
|
|
292
|
-
borderTopRightRadius: a(e.sx ?? {}, "borderTopRightRadius"),
|
|
293
|
-
borderBottomRightRadius: a(e.sx ?? {}, "borderBottomRightRadius"),
|
|
294
|
-
borderBottomLeftRadius: a(e.sx ?? {}, "borderBottomLeftRadius")
|
|
295
|
-
}, c = (v) => {
|
|
296
|
-
o(
|
|
297
|
-
{
|
|
298
|
-
textVariant: v
|
|
299
|
-
},
|
|
300
|
-
t
|
|
301
|
-
);
|
|
302
|
-
}, h = {
|
|
303
|
-
color: a(e.sx ?? {}, "color", "xs")
|
|
304
|
-
}, g = (v) => {
|
|
305
|
-
i(v, "xs");
|
|
306
|
-
}, b = {
|
|
307
|
-
fontStyle: a(e.sx ?? {}, "fontStyle", "xs"),
|
|
308
|
-
textDecorationLine: a(e.sx ?? {}, "textDecorationLine", "xs"),
|
|
309
|
-
fontWeight: a(e.sx ?? {}, "fontWeight", "xs")
|
|
310
|
-
}, C = (v) => {
|
|
311
|
-
i(
|
|
312
|
-
{
|
|
313
|
-
fontStyle: v.fontStyle,
|
|
314
|
-
textDecorationLine: v.textDecorationLine,
|
|
315
|
-
fontWeight: v.fontWeight
|
|
316
|
-
},
|
|
317
|
-
"xs"
|
|
318
|
-
);
|
|
319
|
-
}, x = a(e.sx ?? {}, "textAlign") ?? "left", R = (v) => {
|
|
320
|
-
i({
|
|
321
|
-
textAlign: v
|
|
322
|
-
});
|
|
323
|
-
}, f = (v) => {
|
|
324
|
-
r({
|
|
325
|
-
target: v
|
|
326
|
-
});
|
|
327
|
-
};
|
|
328
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
329
|
-
/* @__PURE__ */ u(O, { children: [
|
|
330
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
331
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
332
|
-
] }),
|
|
333
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
334
|
-
/* @__PURE__ */ u(L, { children: [
|
|
335
|
-
/* @__PURE__ */ u(m, { name: "Insert link", children: [
|
|
336
|
-
/* @__PURE__ */ n(qo, {}),
|
|
337
|
-
/* @__PURE__ */ n(Gt, { value: e.target, onChange: f })
|
|
338
|
-
] }),
|
|
339
|
-
/* @__PURE__ */ u(m, { name: "Text", children: [
|
|
340
|
-
/* @__PURE__ */ n(
|
|
341
|
-
Me,
|
|
342
|
-
{
|
|
343
|
-
onChange: c,
|
|
344
|
-
value: a(e, "textVariant")
|
|
345
|
-
}
|
|
346
|
-
),
|
|
347
|
-
/* @__PURE__ */ n(ge, { value: h, onChange: g }),
|
|
348
|
-
/* @__PURE__ */ n(ze, { value: b, onChange: C }),
|
|
349
|
-
/* @__PURE__ */ n(qt, { value: x, onChange: R }),
|
|
350
|
-
/* @__PURE__ */ n(
|
|
351
|
-
it,
|
|
352
|
-
{
|
|
353
|
-
value: {
|
|
354
|
-
textTransform: a(e.sx ?? {}, "textTransform", "xs") ?? "none"
|
|
355
|
-
},
|
|
356
|
-
onChange: (v) => i(v, "xs")
|
|
357
|
-
}
|
|
358
|
-
),
|
|
359
|
-
/* @__PURE__ */ n(
|
|
360
|
-
$e,
|
|
361
|
-
{
|
|
362
|
-
value: {
|
|
363
|
-
fontWeight: a(e.sx ?? {}, "fontWeight")
|
|
364
|
-
},
|
|
365
|
-
onChange: i
|
|
366
|
-
}
|
|
367
|
-
)
|
|
368
|
-
] }),
|
|
369
|
-
/* @__PURE__ */ n(m, { name: "SEO", children: /* @__PURE__ */ n(Jo, {}) })
|
|
370
|
-
] }),
|
|
371
|
-
/* @__PURE__ */ u(L, { children: [
|
|
372
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: s, onChange: i }) }),
|
|
373
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
374
|
-
/* @__PURE__ */ n(_, { value: d, onChange: i }),
|
|
375
|
-
/* @__PURE__ */ n($, { value: l, onChange: i })
|
|
376
|
-
] })
|
|
377
|
-
] })
|
|
378
|
-
] })
|
|
379
|
-
] });
|
|
380
|
-
}, Ve = () => A({
|
|
381
|
-
transform: So
|
|
382
|
-
});
|
|
383
|
-
function M(e, o) {
|
|
384
|
-
if (e === !1 || e === null || typeof e > "u")
|
|
385
|
-
throw new Error(o);
|
|
386
|
-
}
|
|
387
|
-
function te(e, o) {
|
|
388
|
-
if (!e) {
|
|
389
|
-
typeof console < "u" && console.warn(o);
|
|
390
|
-
try {
|
|
391
|
-
throw new Error(o);
|
|
392
|
-
} catch {
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
function We({
|
|
397
|
-
pathname: e = "/",
|
|
398
|
-
search: o = "",
|
|
399
|
-
hash: r = ""
|
|
400
|
-
}) {
|
|
401
|
-
return o && o !== "?" && (e += o.charAt(0) === "?" ? o : "?" + o), r && r !== "#" && (e += r.charAt(0) === "#" ? r : "#" + r), e;
|
|
402
|
-
}
|
|
403
|
-
function ht(e) {
|
|
404
|
-
let o = {};
|
|
405
|
-
if (e) {
|
|
406
|
-
let r = e.indexOf("#");
|
|
407
|
-
r >= 0 && (o.hash = e.substring(r), e = e.substring(0, r));
|
|
408
|
-
let t = e.indexOf("?");
|
|
409
|
-
t >= 0 && (o.search = e.substring(t), e = e.substring(0, t)), e && (o.pathname = e);
|
|
410
|
-
}
|
|
411
|
-
return o;
|
|
412
|
-
}
|
|
413
|
-
function rn(e, o, r = "/") {
|
|
414
|
-
return Ko(e, o, r, !1);
|
|
415
|
-
}
|
|
416
|
-
function Ko(e, o, r, t) {
|
|
417
|
-
let a = typeof o == "string" ? ht(o) : o, i = de(a.pathname || "/", r);
|
|
418
|
-
if (i == null)
|
|
419
|
-
return null;
|
|
420
|
-
let s = an(e);
|
|
421
|
-
Yo(s);
|
|
422
|
-
let d = null;
|
|
423
|
-
for (let l = 0; d == null && l < s.length; ++l) {
|
|
424
|
-
let c = sr(i);
|
|
425
|
-
d = ar(
|
|
426
|
-
s[l],
|
|
427
|
-
c,
|
|
428
|
-
t
|
|
429
|
-
);
|
|
430
|
-
}
|
|
431
|
-
return d;
|
|
432
|
-
}
|
|
433
|
-
function an(e, o = [], r = [], t = "", a = !1) {
|
|
434
|
-
let i = (s, d, l = a, c) => {
|
|
435
|
-
let h = {
|
|
436
|
-
relativePath: c === void 0 ? s.path || "" : c,
|
|
437
|
-
caseSensitive: s.caseSensitive === !0,
|
|
438
|
-
childrenIndex: d,
|
|
439
|
-
route: s
|
|
440
|
-
};
|
|
441
|
-
if (h.relativePath.startsWith("/")) {
|
|
442
|
-
if (!h.relativePath.startsWith(t) && l)
|
|
443
|
-
return;
|
|
444
|
-
M(
|
|
445
|
-
h.relativePath.startsWith(t),
|
|
446
|
-
`Absolute route path "${h.relativePath}" nested under path "${t}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
447
|
-
), h.relativePath = h.relativePath.slice(t.length);
|
|
448
|
-
}
|
|
449
|
-
let g = J([t, h.relativePath]), b = r.concat(h);
|
|
450
|
-
s.children && s.children.length > 0 && (M(
|
|
451
|
-
// Our types know better, but runtime JS may not!
|
|
452
|
-
// @ts-expect-error
|
|
453
|
-
s.index !== !0,
|
|
454
|
-
`Index routes must not have child routes. Please remove all child routes from route path "${g}".`
|
|
455
|
-
), an(
|
|
456
|
-
s.children,
|
|
457
|
-
o,
|
|
458
|
-
b,
|
|
459
|
-
g,
|
|
460
|
-
l
|
|
461
|
-
)), !(s.path == null && !s.index) && o.push({
|
|
462
|
-
path: g,
|
|
463
|
-
score: or(g, s.index),
|
|
464
|
-
routesMeta: b
|
|
465
|
-
});
|
|
466
|
-
};
|
|
467
|
-
return e.forEach((s, d) => {
|
|
468
|
-
if (s.path === "" || !s.path?.includes("?"))
|
|
469
|
-
i(s, d);
|
|
470
|
-
else
|
|
471
|
-
for (let l of sn(s.path))
|
|
472
|
-
i(s, d, !0, l);
|
|
473
|
-
}), o;
|
|
474
|
-
}
|
|
475
|
-
function sn(e) {
|
|
476
|
-
let o = e.split("/");
|
|
477
|
-
if (o.length === 0) return [];
|
|
478
|
-
let [r, ...t] = o, a = r.endsWith("?"), i = r.replace(/\?$/, "");
|
|
479
|
-
if (t.length === 0)
|
|
480
|
-
return a ? [i, ""] : [i];
|
|
481
|
-
let s = sn(t.join("/")), d = [];
|
|
482
|
-
return d.push(
|
|
483
|
-
...s.map(
|
|
484
|
-
(l) => l === "" ? i : [i, l].join("/")
|
|
485
|
-
)
|
|
486
|
-
), a && d.push(...s), d.map(
|
|
487
|
-
(l) => e.startsWith("/") && l === "" ? "/" : l
|
|
488
|
-
);
|
|
489
|
-
}
|
|
490
|
-
function Yo(e) {
|
|
491
|
-
e.sort(
|
|
492
|
-
(o, r) => o.score !== r.score ? r.score - o.score : rr(
|
|
493
|
-
o.routesMeta.map((t) => t.childrenIndex),
|
|
494
|
-
r.routesMeta.map((t) => t.childrenIndex)
|
|
495
|
-
)
|
|
496
|
-
);
|
|
497
|
-
}
|
|
498
|
-
var Zo = /^:[\w-]+$/, Xo = 3, Qo = 2, er = 1, tr = 10, nr = -2, Lt = (e) => e === "*";
|
|
499
|
-
function or(e, o) {
|
|
500
|
-
let r = e.split("/"), t = r.length;
|
|
501
|
-
return r.some(Lt) && (t += nr), o && (t += Qo), r.filter((a) => !Lt(a)).reduce(
|
|
502
|
-
(a, i) => a + (Zo.test(i) ? Xo : i === "" ? er : tr),
|
|
503
|
-
t
|
|
504
|
-
);
|
|
505
|
-
}
|
|
506
|
-
function rr(e, o) {
|
|
507
|
-
return e.length === o.length && e.slice(0, -1).every((t, a) => t === o[a]) ? (
|
|
508
|
-
// If two routes are siblings, we should try to match the earlier sibling
|
|
509
|
-
// first. This allows people to have fine-grained control over the matching
|
|
510
|
-
// behavior by simply putting routes with identical paths in the order they
|
|
511
|
-
// want them tried.
|
|
512
|
-
e[e.length - 1] - o[o.length - 1]
|
|
513
|
-
) : (
|
|
514
|
-
// Otherwise, it doesn't really make sense to rank non-siblings by index,
|
|
515
|
-
// so they sort equally.
|
|
516
|
-
0
|
|
517
|
-
);
|
|
518
|
-
}
|
|
519
|
-
function ar(e, o, r = !1) {
|
|
520
|
-
let { routesMeta: t } = e, a = {}, i = "/", s = [];
|
|
521
|
-
for (let d = 0; d < t.length; ++d) {
|
|
522
|
-
let l = t[d], c = d === t.length - 1, h = i === "/" ? o : o.slice(i.length) || "/", g = Ee(
|
|
523
|
-
{ path: l.relativePath, caseSensitive: l.caseSensitive, end: c },
|
|
524
|
-
h
|
|
525
|
-
), b = l.route;
|
|
526
|
-
if (!g && c && r && !t[t.length - 1].route.index && (g = Ee(
|
|
527
|
-
{
|
|
528
|
-
path: l.relativePath,
|
|
529
|
-
caseSensitive: l.caseSensitive,
|
|
530
|
-
end: !1
|
|
531
|
-
},
|
|
532
|
-
h
|
|
533
|
-
)), !g)
|
|
534
|
-
return null;
|
|
535
|
-
Object.assign(a, g.params), s.push({
|
|
536
|
-
// TODO: Can this as be avoided?
|
|
537
|
-
params: a,
|
|
538
|
-
pathname: J([i, g.pathname]),
|
|
539
|
-
pathnameBase: ur(
|
|
540
|
-
J([i, g.pathnameBase])
|
|
541
|
-
),
|
|
542
|
-
route: b
|
|
543
|
-
}), g.pathnameBase !== "/" && (i = J([i, g.pathnameBase]));
|
|
544
|
-
}
|
|
545
|
-
return s;
|
|
546
|
-
}
|
|
547
|
-
function Ee(e, o) {
|
|
548
|
-
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
549
|
-
let [r, t] = ir(
|
|
550
|
-
e.path,
|
|
551
|
-
e.caseSensitive,
|
|
552
|
-
e.end
|
|
553
|
-
), a = o.match(r);
|
|
554
|
-
if (!a) return null;
|
|
555
|
-
let i = a[0], s = i.replace(/(.)\/+$/, "$1"), d = a.slice(1);
|
|
556
|
-
return {
|
|
557
|
-
params: t.reduce(
|
|
558
|
-
(c, { paramName: h, isOptional: g }, b) => {
|
|
559
|
-
if (h === "*") {
|
|
560
|
-
let x = d[b] || "";
|
|
561
|
-
s = i.slice(0, i.length - x.length).replace(/(.)\/+$/, "$1");
|
|
562
|
-
}
|
|
563
|
-
const C = d[b];
|
|
564
|
-
return g && !C ? c[h] = void 0 : c[h] = (C || "").replace(/%2F/g, "/"), c;
|
|
565
|
-
},
|
|
566
|
-
{}
|
|
567
|
-
),
|
|
568
|
-
pathname: i,
|
|
569
|
-
pathnameBase: s,
|
|
570
|
-
pattern: e
|
|
571
|
-
};
|
|
572
|
-
}
|
|
573
|
-
function ir(e, o = !1, r = !0) {
|
|
574
|
-
te(
|
|
575
|
-
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
576
|
-
`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(/\*$/, "/*")}".`
|
|
577
|
-
);
|
|
578
|
-
let t = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
|
|
579
|
-
/\/:([\w-]+)(\?)?/g,
|
|
580
|
-
(s, d, l, c, h) => {
|
|
581
|
-
if (t.push({ paramName: d, isOptional: l != null }), l) {
|
|
582
|
-
let g = h.charAt(c + s.length);
|
|
583
|
-
return g && g !== "/" ? "/([^\\/]*)" : "(?:/([^\\/]*))?";
|
|
584
|
-
}
|
|
585
|
-
return "/([^\\/]+)";
|
|
586
|
-
}
|
|
587
|
-
).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
588
|
-
return e.endsWith("*") ? (t.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, o ? void 0 : "i"), t];
|
|
589
|
-
}
|
|
590
|
-
function sr(e) {
|
|
591
|
-
try {
|
|
592
|
-
return e.split("/").map((o) => decodeURIComponent(o).replace(/\//g, "%2F")).join("/");
|
|
593
|
-
} catch (o) {
|
|
594
|
-
return te(
|
|
595
|
-
!1,
|
|
596
|
-
`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`
|
|
597
|
-
), e;
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
function de(e, o) {
|
|
601
|
-
if (o === "/") return e;
|
|
602
|
-
if (!e.toLowerCase().startsWith(o.toLowerCase()))
|
|
603
|
-
return null;
|
|
604
|
-
let r = o.endsWith("/") ? o.length - 1 : o.length, t = e.charAt(r);
|
|
605
|
-
return t && t !== "/" ? null : e.slice(r) || "/";
|
|
606
|
-
}
|
|
607
|
-
var dr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
608
|
-
function lr(e, o = "/") {
|
|
609
|
-
let {
|
|
610
|
-
pathname: r,
|
|
611
|
-
search: t = "",
|
|
612
|
-
hash: a = ""
|
|
613
|
-
} = typeof e == "string" ? ht(e) : e, i;
|
|
614
|
-
return r ? (r = r.replace(/\/\/+/g, "/"), r.startsWith("/") ? i = Pt(r.substring(1), "/") : i = Pt(r, o)) : i = o, {
|
|
615
|
-
pathname: i,
|
|
616
|
-
search: hr(t),
|
|
617
|
-
hash: gr(a)
|
|
618
|
-
};
|
|
619
|
-
}
|
|
620
|
-
function Pt(e, o) {
|
|
621
|
-
let r = o.replace(/\/+$/, "").split("/");
|
|
622
|
-
return e.split("/").forEach((a) => {
|
|
623
|
-
a === ".." ? r.length > 1 && r.pop() : a !== "." && r.push(a);
|
|
624
|
-
}), r.length > 1 ? r.join("/") : "/";
|
|
625
|
-
}
|
|
626
|
-
function Ze(e, o, r, t) {
|
|
627
|
-
return `Cannot include a '${e}' character in a manually specified \`to.${o}\` field [${JSON.stringify(
|
|
628
|
-
t
|
|
629
|
-
)}]. 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.`;
|
|
630
|
-
}
|
|
631
|
-
function cr(e) {
|
|
632
|
-
return e.filter(
|
|
633
|
-
(o, r) => r === 0 || o.route.path && o.route.path.length > 0
|
|
634
|
-
);
|
|
635
|
-
}
|
|
636
|
-
function dn(e) {
|
|
637
|
-
let o = cr(e);
|
|
638
|
-
return o.map(
|
|
639
|
-
(r, t) => t === o.length - 1 ? r.pathname : r.pathnameBase
|
|
640
|
-
);
|
|
641
|
-
}
|
|
642
|
-
function gt(e, o, r, t = !1) {
|
|
643
|
-
let a;
|
|
644
|
-
typeof e == "string" ? a = ht(e) : (a = { ...e }, M(
|
|
645
|
-
!a.pathname || !a.pathname.includes("?"),
|
|
646
|
-
Ze("?", "pathname", "search", a)
|
|
647
|
-
), M(
|
|
648
|
-
!a.pathname || !a.pathname.includes("#"),
|
|
649
|
-
Ze("#", "pathname", "hash", a)
|
|
650
|
-
), M(
|
|
651
|
-
!a.search || !a.search.includes("#"),
|
|
652
|
-
Ze("#", "search", "hash", a)
|
|
653
|
-
));
|
|
654
|
-
let i = e === "" || a.pathname === "", s = i ? "/" : a.pathname, d;
|
|
655
|
-
if (s == null)
|
|
656
|
-
d = r;
|
|
657
|
-
else {
|
|
658
|
-
let g = o.length - 1;
|
|
659
|
-
if (!t && s.startsWith("..")) {
|
|
660
|
-
let b = s.split("/");
|
|
661
|
-
for (; b[0] === ".."; )
|
|
662
|
-
b.shift(), g -= 1;
|
|
663
|
-
a.pathname = b.join("/");
|
|
664
|
-
}
|
|
665
|
-
d = g >= 0 ? o[g] : "/";
|
|
666
|
-
}
|
|
667
|
-
let l = lr(a, d), c = s && s !== "/" && s.endsWith("/"), h = (i || s === ".") && r.endsWith("/");
|
|
668
|
-
return !l.pathname.endsWith("/") && (c || h) && (l.pathname += "/"), l;
|
|
669
|
-
}
|
|
670
|
-
var J = (e) => e.join("/").replace(/\/\/+/g, "/"), ur = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), hr = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, gr = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, pr = class {
|
|
671
|
-
constructor(e, o, r, t = !1) {
|
|
672
|
-
this.status = e, this.statusText = o || "", this.internal = t, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
|
|
673
|
-
}
|
|
674
|
-
};
|
|
675
|
-
function mr(e) {
|
|
676
|
-
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
677
|
-
}
|
|
678
|
-
function fr(e) {
|
|
679
|
-
return e.map((o) => o.route.path).filter(Boolean).join("/").replace(/\/\/*/g, "/") || "/";
|
|
680
|
-
}
|
|
681
|
-
var ln = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
682
|
-
function cn(e, o) {
|
|
683
|
-
let r = e;
|
|
684
|
-
if (typeof r != "string" || !dr.test(r))
|
|
685
|
-
return {
|
|
686
|
-
absoluteURL: void 0,
|
|
687
|
-
isExternal: !1,
|
|
688
|
-
to: r
|
|
689
|
-
};
|
|
690
|
-
let t = r, a = !1;
|
|
691
|
-
if (ln)
|
|
692
|
-
try {
|
|
693
|
-
let i = new URL(window.location.href), s = r.startsWith("//") ? new URL(i.protocol + r) : new URL(r), d = de(s.pathname, o);
|
|
694
|
-
s.origin === i.origin && d != null ? r = d + s.search + s.hash : a = !0;
|
|
695
|
-
} catch {
|
|
696
|
-
te(
|
|
697
|
-
!1,
|
|
698
|
-
`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
699
|
-
);
|
|
700
|
-
}
|
|
701
|
-
return {
|
|
702
|
-
absoluteURL: t,
|
|
703
|
-
isExternal: a,
|
|
704
|
-
to: r
|
|
705
|
-
};
|
|
706
|
-
}
|
|
707
|
-
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
708
|
-
var un = [
|
|
709
|
-
"POST",
|
|
710
|
-
"PUT",
|
|
711
|
-
"PATCH",
|
|
712
|
-
"DELETE"
|
|
713
|
-
];
|
|
714
|
-
new Set(
|
|
715
|
-
un
|
|
716
|
-
);
|
|
717
|
-
var br = [
|
|
718
|
-
"GET",
|
|
719
|
-
...un
|
|
720
|
-
];
|
|
721
|
-
new Set(br);
|
|
722
|
-
var pe = p.createContext(null);
|
|
723
|
-
pe.displayName = "DataRouter";
|
|
724
|
-
var je = p.createContext(null);
|
|
725
|
-
je.displayName = "DataRouterState";
|
|
726
|
-
var hn = p.createContext(!1);
|
|
727
|
-
function xr() {
|
|
728
|
-
return p.useContext(hn);
|
|
729
|
-
}
|
|
730
|
-
var gn = p.createContext({
|
|
731
|
-
isTransitioning: !1
|
|
732
|
-
});
|
|
733
|
-
gn.displayName = "ViewTransition";
|
|
734
|
-
var vr = p.createContext(
|
|
735
|
-
/* @__PURE__ */ new Map()
|
|
736
|
-
);
|
|
737
|
-
vr.displayName = "Fetchers";
|
|
738
|
-
var Cr = p.createContext(null);
|
|
739
|
-
Cr.displayName = "Await";
|
|
740
|
-
var q = p.createContext(
|
|
741
|
-
null
|
|
742
|
-
);
|
|
743
|
-
q.displayName = "Navigation";
|
|
744
|
-
var pt = p.createContext(
|
|
745
|
-
null
|
|
746
|
-
);
|
|
747
|
-
pt.displayName = "Location";
|
|
748
|
-
var oe = p.createContext({
|
|
749
|
-
outlet: null,
|
|
750
|
-
matches: [],
|
|
751
|
-
isDataRoute: !1
|
|
752
|
-
});
|
|
753
|
-
oe.displayName = "Route";
|
|
754
|
-
var mt = p.createContext(null);
|
|
755
|
-
mt.displayName = "RouteError";
|
|
756
|
-
var pn = "REACT_ROUTER_ERROR", Rr = "REDIRECT", yr = "ROUTE_ERROR_RESPONSE";
|
|
757
|
-
function Sr(e) {
|
|
758
|
-
if (e.startsWith(`${pn}:${Rr}:{`))
|
|
759
|
-
try {
|
|
760
|
-
let o = JSON.parse(e.slice(28));
|
|
761
|
-
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")
|
|
762
|
-
return o;
|
|
763
|
-
} catch {
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
function wr(e) {
|
|
767
|
-
if (e.startsWith(
|
|
768
|
-
`${pn}:${yr}:{`
|
|
769
|
-
))
|
|
770
|
-
try {
|
|
771
|
-
let o = JSON.parse(e.slice(40));
|
|
772
|
-
if (typeof o == "object" && o && typeof o.status == "number" && typeof o.statusText == "string")
|
|
773
|
-
return new pr(
|
|
774
|
-
o.status,
|
|
775
|
-
o.statusText,
|
|
776
|
-
o.data
|
|
777
|
-
);
|
|
778
|
-
} catch {
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
function Tr(e, { relative: o } = {}) {
|
|
782
|
-
M(
|
|
783
|
-
Ue(),
|
|
784
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
785
|
-
// router loaded. We can help them understand how to avoid that.
|
|
786
|
-
"useHref() may be used only in the context of a <Router> component."
|
|
787
|
-
);
|
|
788
|
-
let { basename: r, navigator: t } = p.useContext(q), { hash: a, pathname: i, search: s } = ye(e, { relative: o }), d = i;
|
|
789
|
-
return r !== "/" && (d = i === "/" ? r : J([r, i])), t.createHref({ pathname: d, search: s, hash: a });
|
|
790
|
-
}
|
|
791
|
-
function Ue() {
|
|
792
|
-
return p.useContext(pt) != null;
|
|
793
|
-
}
|
|
794
|
-
function re() {
|
|
795
|
-
return M(
|
|
796
|
-
Ue(),
|
|
797
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
798
|
-
// router loaded. We can help them understand how to avoid that.
|
|
799
|
-
"useLocation() may be used only in the context of a <Router> component."
|
|
800
|
-
), p.useContext(pt).location;
|
|
801
|
-
}
|
|
802
|
-
var mn = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
803
|
-
function fn(e) {
|
|
804
|
-
p.useContext(q).static || p.useLayoutEffect(e);
|
|
805
|
-
}
|
|
806
|
-
function kr() {
|
|
807
|
-
let { isDataRoute: e } = p.useContext(oe);
|
|
808
|
-
return e ? zr() : Lr();
|
|
809
|
-
}
|
|
810
|
-
function Lr() {
|
|
811
|
-
M(
|
|
812
|
-
Ue(),
|
|
813
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
814
|
-
// router loaded. We can help them understand how to avoid that.
|
|
815
|
-
"useNavigate() may be used only in the context of a <Router> component."
|
|
816
|
-
);
|
|
817
|
-
let e = p.useContext(pe), { basename: o, navigator: r } = p.useContext(q), { matches: t } = p.useContext(oe), { pathname: a } = re(), i = JSON.stringify(dn(t)), s = p.useRef(!1);
|
|
818
|
-
return fn(() => {
|
|
819
|
-
s.current = !0;
|
|
820
|
-
}), p.useCallback(
|
|
821
|
-
(l, c = {}) => {
|
|
822
|
-
if (te(s.current, mn), !s.current) return;
|
|
823
|
-
if (typeof l == "number") {
|
|
824
|
-
r.go(l);
|
|
825
|
-
return;
|
|
826
|
-
}
|
|
827
|
-
let h = gt(
|
|
828
|
-
l,
|
|
829
|
-
JSON.parse(i),
|
|
830
|
-
a,
|
|
831
|
-
c.relative === "path"
|
|
832
|
-
);
|
|
833
|
-
e == null && o !== "/" && (h.pathname = h.pathname === "/" ? o : J([o, h.pathname])), (c.replace ? r.replace : r.push)(
|
|
834
|
-
h,
|
|
835
|
-
c.state,
|
|
836
|
-
c
|
|
837
|
-
);
|
|
838
|
-
},
|
|
839
|
-
[
|
|
840
|
-
o,
|
|
841
|
-
r,
|
|
842
|
-
i,
|
|
843
|
-
a,
|
|
844
|
-
e
|
|
845
|
-
]
|
|
846
|
-
);
|
|
847
|
-
}
|
|
848
|
-
p.createContext(null);
|
|
849
|
-
function ye(e, { relative: o } = {}) {
|
|
850
|
-
let { matches: r } = p.useContext(oe), { pathname: t } = re(), a = JSON.stringify(dn(r));
|
|
851
|
-
return p.useMemo(
|
|
852
|
-
() => gt(
|
|
853
|
-
e,
|
|
854
|
-
JSON.parse(a),
|
|
855
|
-
t,
|
|
856
|
-
o === "path"
|
|
857
|
-
),
|
|
858
|
-
[e, a, t, o]
|
|
859
|
-
);
|
|
860
|
-
}
|
|
861
|
-
function Pr(e, o, r) {
|
|
862
|
-
M(
|
|
863
|
-
Ue(),
|
|
864
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
865
|
-
// router loaded. We can help them understand how to avoid that.
|
|
866
|
-
"useRoutes() may be used only in the context of a <Router> component."
|
|
867
|
-
);
|
|
868
|
-
let { navigator: t } = p.useContext(q), { matches: a } = p.useContext(oe), i = a[a.length - 1], s = i ? i.params : {}, d = i ? i.pathname : "/", l = i ? i.pathnameBase : "/", c = i && i.route;
|
|
869
|
-
{
|
|
870
|
-
let f = c && c.path || "";
|
|
871
|
-
xn(
|
|
872
|
-
d,
|
|
873
|
-
!c || f.endsWith("*") || f.endsWith("*?"),
|
|
874
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${f}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
875
|
-
|
|
876
|
-
Please change the parent <Route path="${f}"> to <Route path="${f === "/" ? "*" : `${f}/*`}">.`
|
|
877
|
-
);
|
|
878
|
-
}
|
|
879
|
-
let h = re(), g;
|
|
880
|
-
g = h;
|
|
881
|
-
let b = g.pathname || "/", C = b;
|
|
882
|
-
if (l !== "/") {
|
|
883
|
-
let f = l.replace(/^\//, "").split("/");
|
|
884
|
-
C = "/" + b.replace(/^\//, "").split("/").slice(f.length).join("/");
|
|
885
|
-
}
|
|
886
|
-
let x = rn(e, { pathname: C });
|
|
887
|
-
return te(
|
|
888
|
-
c || x != null,
|
|
889
|
-
`No routes matched location "${g.pathname}${g.search}${g.hash}" `
|
|
890
|
-
), te(
|
|
891
|
-
x == null || x[x.length - 1].route.element !== void 0 || x[x.length - 1].route.Component !== void 0 || x[x.length - 1].route.lazy !== void 0,
|
|
892
|
-
`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
|
|
893
|
-
), Er(
|
|
894
|
-
x && x.map(
|
|
895
|
-
(f) => Object.assign({}, f, {
|
|
896
|
-
params: Object.assign({}, s, f.params),
|
|
897
|
-
pathname: J([
|
|
898
|
-
l,
|
|
899
|
-
// Re-encode pathnames that were decoded inside matchRoutes.
|
|
900
|
-
// Pre-encode `%`, `?` and `#` ahead of `encodeLocation` because it uses
|
|
901
|
-
// `new URL()` internally and we need to prevent it from treating
|
|
902
|
-
// them as separators
|
|
903
|
-
t.encodeLocation ? t.encodeLocation(
|
|
904
|
-
f.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")
|
|
905
|
-
).pathname : f.pathname
|
|
906
|
-
]),
|
|
907
|
-
pathnameBase: f.pathnameBase === "/" ? l : J([
|
|
908
|
-
l,
|
|
909
|
-
// Re-encode pathnames that were decoded inside matchRoutes
|
|
910
|
-
// Pre-encode `%`, `?` and `#` ahead of `encodeLocation` because it uses
|
|
911
|
-
// `new URL()` internally and we need to prevent it from treating
|
|
912
|
-
// them as separators
|
|
913
|
-
t.encodeLocation ? t.encodeLocation(
|
|
914
|
-
f.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")
|
|
915
|
-
).pathname : f.pathnameBase
|
|
916
|
-
])
|
|
917
|
-
})
|
|
918
|
-
),
|
|
919
|
-
a,
|
|
920
|
-
r
|
|
921
|
-
);
|
|
922
|
-
}
|
|
923
|
-
function Ir() {
|
|
924
|
-
let e = Mr(), o = mr(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, t = "rgba(200,200,200, 0.5)", a = { padding: "0.5rem", backgroundColor: t }, i = { padding: "2px 4px", backgroundColor: t }, s = null;
|
|
925
|
-
return console.error(
|
|
926
|
-
"Error handled by React Router default ErrorBoundary:",
|
|
927
|
-
e
|
|
928
|
-
), s = /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ p.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ p.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ p.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ p.createElement("h3", { style: { fontStyle: "italic" } }, o), r ? /* @__PURE__ */ p.createElement("pre", { style: a }, r) : null, s);
|
|
929
|
-
}
|
|
930
|
-
var Br = /* @__PURE__ */ p.createElement(Ir, null), bn = class extends p.Component {
|
|
931
|
-
constructor(e) {
|
|
932
|
-
super(e), this.state = {
|
|
933
|
-
location: e.location,
|
|
934
|
-
revalidation: e.revalidation,
|
|
935
|
-
error: e.error
|
|
936
|
-
};
|
|
937
|
-
}
|
|
938
|
-
static getDerivedStateFromError(e) {
|
|
939
|
-
return { error: e };
|
|
940
|
-
}
|
|
941
|
-
static getDerivedStateFromProps(e, o) {
|
|
942
|
-
return o.location !== e.location || o.revalidation !== "idle" && e.revalidation === "idle" ? {
|
|
943
|
-
error: e.error,
|
|
944
|
-
location: e.location,
|
|
945
|
-
revalidation: e.revalidation
|
|
946
|
-
} : {
|
|
947
|
-
error: e.error !== void 0 ? e.error : o.error,
|
|
948
|
-
location: o.location,
|
|
949
|
-
revalidation: e.revalidation || o.revalidation
|
|
950
|
-
};
|
|
951
|
-
}
|
|
952
|
-
componentDidCatch(e, o) {
|
|
953
|
-
this.props.onError ? this.props.onError(e, o) : console.error(
|
|
954
|
-
"React Router caught the following error during render",
|
|
955
|
-
e
|
|
956
|
-
);
|
|
957
|
-
}
|
|
958
|
-
render() {
|
|
959
|
-
let e = this.state.error;
|
|
960
|
-
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
|
|
961
|
-
const r = wr(e.digest);
|
|
962
|
-
r && (e = r);
|
|
963
|
-
}
|
|
964
|
-
let o = e !== void 0 ? /* @__PURE__ */ p.createElement(oe.Provider, { value: this.props.routeContext }, /* @__PURE__ */ p.createElement(
|
|
965
|
-
mt.Provider,
|
|
966
|
-
{
|
|
967
|
-
value: e,
|
|
968
|
-
children: this.props.component
|
|
969
|
-
}
|
|
970
|
-
)) : this.props.children;
|
|
971
|
-
return this.context ? /* @__PURE__ */ p.createElement(Nr, { error: e }, o) : o;
|
|
972
|
-
}
|
|
973
|
-
};
|
|
974
|
-
bn.contextType = hn;
|
|
975
|
-
var Xe = /* @__PURE__ */ new WeakMap();
|
|
976
|
-
function Nr({
|
|
977
|
-
children: e,
|
|
978
|
-
error: o
|
|
979
|
-
}) {
|
|
980
|
-
let { basename: r } = p.useContext(q);
|
|
981
|
-
if (typeof o == "object" && o && "digest" in o && typeof o.digest == "string") {
|
|
982
|
-
let t = Sr(o.digest);
|
|
983
|
-
if (t) {
|
|
984
|
-
let a = Xe.get(o);
|
|
985
|
-
if (a) throw a;
|
|
986
|
-
let i = cn(t.location, r);
|
|
987
|
-
if (ln && !Xe.get(o))
|
|
988
|
-
if (i.isExternal || t.reloadDocument)
|
|
989
|
-
window.location.href = i.absoluteURL || i.to;
|
|
990
|
-
else {
|
|
991
|
-
const s = Promise.resolve().then(
|
|
992
|
-
() => window.__reactRouterDataRouter.navigate(i.to, {
|
|
993
|
-
replace: t.replace
|
|
994
|
-
})
|
|
995
|
-
);
|
|
996
|
-
throw Xe.set(o, s), s;
|
|
997
|
-
}
|
|
998
|
-
return /* @__PURE__ */ p.createElement(
|
|
999
|
-
"meta",
|
|
1000
|
-
{
|
|
1001
|
-
httpEquiv: "refresh",
|
|
1002
|
-
content: `0;url=${i.absoluteURL || i.to}`
|
|
1003
|
-
}
|
|
1004
|
-
);
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
return e;
|
|
1008
|
-
}
|
|
1009
|
-
function Wr({ routeContext: e, match: o, children: r }) {
|
|
1010
|
-
let t = p.useContext(pe);
|
|
1011
|
-
return t && t.static && t.staticContext && (o.route.errorElement || o.route.ErrorBoundary) && (t.staticContext._deepestRenderedBoundaryId = o.route.id), /* @__PURE__ */ p.createElement(oe.Provider, { value: e }, r);
|
|
1012
|
-
}
|
|
1013
|
-
function Er(e, o = [], r) {
|
|
1014
|
-
let t = r?.state;
|
|
1015
|
-
if (e == null) {
|
|
1016
|
-
if (!t)
|
|
1017
|
-
return null;
|
|
1018
|
-
if (t.errors)
|
|
1019
|
-
e = t.matches;
|
|
1020
|
-
else if (o.length === 0 && !t.initialized && t.matches.length > 0)
|
|
1021
|
-
e = t.matches;
|
|
1022
|
-
else
|
|
1023
|
-
return null;
|
|
1024
|
-
}
|
|
1025
|
-
let a = e, i = t?.errors;
|
|
1026
|
-
if (i != null) {
|
|
1027
|
-
let h = a.findIndex(
|
|
1028
|
-
(g) => g.route.id && i?.[g.route.id] !== void 0
|
|
1029
|
-
);
|
|
1030
|
-
M(
|
|
1031
|
-
h >= 0,
|
|
1032
|
-
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
1033
|
-
i
|
|
1034
|
-
).join(",")}`
|
|
1035
|
-
), a = a.slice(
|
|
1036
|
-
0,
|
|
1037
|
-
Math.min(a.length, h + 1)
|
|
1038
|
-
);
|
|
1039
|
-
}
|
|
1040
|
-
let s = !1, d = -1;
|
|
1041
|
-
if (r && t) {
|
|
1042
|
-
s = t.renderFallback;
|
|
1043
|
-
for (let h = 0; h < a.length; h++) {
|
|
1044
|
-
let g = a[h];
|
|
1045
|
-
if ((g.route.HydrateFallback || g.route.hydrateFallbackElement) && (d = h), g.route.id) {
|
|
1046
|
-
let { loaderData: b, errors: C } = t, x = g.route.loader && !b.hasOwnProperty(g.route.id) && (!C || C[g.route.id] === void 0);
|
|
1047
|
-
if (g.route.lazy || x) {
|
|
1048
|
-
r.isStatic && (s = !0), d >= 0 ? a = a.slice(0, d + 1) : a = [a[0]];
|
|
1049
|
-
break;
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
let l = r?.onError, c = t && l ? (h, g) => {
|
|
1055
|
-
l(h, {
|
|
1056
|
-
location: t.location,
|
|
1057
|
-
params: t.matches?.[0]?.params ?? {},
|
|
1058
|
-
unstable_pattern: fr(t.matches),
|
|
1059
|
-
errorInfo: g
|
|
1060
|
-
});
|
|
1061
|
-
} : void 0;
|
|
1062
|
-
return a.reduceRight(
|
|
1063
|
-
(h, g, b) => {
|
|
1064
|
-
let C, x = !1, R = null, f = null;
|
|
1065
|
-
t && (C = i && g.route.id ? i[g.route.id] : void 0, R = g.route.errorElement || Br, s && (d < 0 && b === 0 ? (xn(
|
|
1066
|
-
"route-fallback",
|
|
1067
|
-
!1,
|
|
1068
|
-
"No `HydrateFallback` element provided to render during initial hydration"
|
|
1069
|
-
), x = !0, f = null) : d === b && (x = !0, f = g.route.hydrateFallbackElement || null)));
|
|
1070
|
-
let v = o.concat(a.slice(0, b + 1)), y = () => {
|
|
1071
|
-
let w;
|
|
1072
|
-
return C ? w = R : x ? w = f : g.route.Component ? w = /* @__PURE__ */ p.createElement(g.route.Component, null) : g.route.element ? w = g.route.element : w = h, /* @__PURE__ */ p.createElement(
|
|
1073
|
-
Wr,
|
|
1074
|
-
{
|
|
1075
|
-
match: g,
|
|
1076
|
-
routeContext: {
|
|
1077
|
-
outlet: h,
|
|
1078
|
-
matches: v,
|
|
1079
|
-
isDataRoute: t != null
|
|
1080
|
-
},
|
|
1081
|
-
children: w
|
|
1082
|
-
}
|
|
1083
|
-
);
|
|
1084
|
-
};
|
|
1085
|
-
return t && (g.route.ErrorBoundary || g.route.errorElement || b === 0) ? /* @__PURE__ */ p.createElement(
|
|
1086
|
-
bn,
|
|
1087
|
-
{
|
|
1088
|
-
location: t.location,
|
|
1089
|
-
revalidation: t.revalidation,
|
|
1090
|
-
component: R,
|
|
1091
|
-
error: C,
|
|
1092
|
-
children: y(),
|
|
1093
|
-
routeContext: { outlet: null, matches: v, isDataRoute: !0 },
|
|
1094
|
-
onError: c
|
|
1095
|
-
}
|
|
1096
|
-
) : y();
|
|
1097
|
-
},
|
|
1098
|
-
null
|
|
1099
|
-
);
|
|
1100
|
-
}
|
|
1101
|
-
function ft(e) {
|
|
1102
|
-
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1103
|
-
}
|
|
1104
|
-
function Ar(e) {
|
|
1105
|
-
let o = p.useContext(pe);
|
|
1106
|
-
return M(o, ft(e)), o;
|
|
1107
|
-
}
|
|
1108
|
-
function Dr(e) {
|
|
1109
|
-
let o = p.useContext(je);
|
|
1110
|
-
return M(o, ft(e)), o;
|
|
1111
|
-
}
|
|
1112
|
-
function Or(e) {
|
|
1113
|
-
let o = p.useContext(oe);
|
|
1114
|
-
return M(o, ft(e)), o;
|
|
1115
|
-
}
|
|
1116
|
-
function bt(e) {
|
|
1117
|
-
let o = Or(e), r = o.matches[o.matches.length - 1];
|
|
1118
|
-
return M(
|
|
1119
|
-
r.route.id,
|
|
1120
|
-
`${e} can only be used on routes that contain a unique "id"`
|
|
1121
|
-
), r.route.id;
|
|
1122
|
-
}
|
|
1123
|
-
function Fr() {
|
|
1124
|
-
return bt(
|
|
1125
|
-
"useRouteId"
|
|
1126
|
-
/* UseRouteId */
|
|
1127
|
-
);
|
|
1128
|
-
}
|
|
1129
|
-
function Mr() {
|
|
1130
|
-
let e = p.useContext(mt), o = Dr(
|
|
1131
|
-
"useRouteError"
|
|
1132
|
-
/* UseRouteError */
|
|
1133
|
-
), r = bt(
|
|
1134
|
-
"useRouteError"
|
|
1135
|
-
/* UseRouteError */
|
|
1136
|
-
);
|
|
1137
|
-
return e !== void 0 ? e : o.errors?.[r];
|
|
1138
|
-
}
|
|
1139
|
-
function zr() {
|
|
1140
|
-
let { router: e } = Ar(
|
|
1141
|
-
"useNavigate"
|
|
1142
|
-
/* UseNavigateStable */
|
|
1143
|
-
), o = bt(
|
|
1144
|
-
"useNavigate"
|
|
1145
|
-
/* UseNavigateStable */
|
|
1146
|
-
), r = p.useRef(!1);
|
|
1147
|
-
return fn(() => {
|
|
1148
|
-
r.current = !0;
|
|
1149
|
-
}), p.useCallback(
|
|
1150
|
-
async (a, i = {}) => {
|
|
1151
|
-
te(r.current, mn), r.current && (typeof a == "number" ? await e.navigate(a) : await e.navigate(a, { fromRouteId: o, ...i }));
|
|
1152
|
-
},
|
|
1153
|
-
[e, o]
|
|
1154
|
-
);
|
|
1155
|
-
}
|
|
1156
|
-
var It = {};
|
|
1157
|
-
function xn(e, o, r) {
|
|
1158
|
-
!o && !It[e] && (It[e] = !0, te(!1, r));
|
|
1159
|
-
}
|
|
1160
|
-
p.memo($r);
|
|
1161
|
-
function $r({
|
|
1162
|
-
routes: e,
|
|
1163
|
-
future: o,
|
|
1164
|
-
state: r,
|
|
1165
|
-
isStatic: t,
|
|
1166
|
-
onError: a
|
|
1167
|
-
}) {
|
|
1168
|
-
return Pr(e, void 0, { state: r, isStatic: t, onError: a });
|
|
1169
|
-
}
|
|
1170
|
-
var Le = "get", Pe = "application/x-www-form-urlencoded";
|
|
1171
|
-
function Ge(e) {
|
|
1172
|
-
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
1173
|
-
}
|
|
1174
|
-
function _r(e) {
|
|
1175
|
-
return Ge(e) && e.tagName.toLowerCase() === "button";
|
|
1176
|
-
}
|
|
1177
|
-
function Hr(e) {
|
|
1178
|
-
return Ge(e) && e.tagName.toLowerCase() === "form";
|
|
1179
|
-
}
|
|
1180
|
-
function Vr(e) {
|
|
1181
|
-
return Ge(e) && e.tagName.toLowerCase() === "input";
|
|
1182
|
-
}
|
|
1183
|
-
function jr(e) {
|
|
1184
|
-
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1185
|
-
}
|
|
1186
|
-
function Ur(e, o) {
|
|
1187
|
-
return e.button === 0 && // Ignore everything but left clicks
|
|
1188
|
-
(!o || o === "_self") && // Let browser handle "target=_blank" etc.
|
|
1189
|
-
!jr(e);
|
|
1190
|
-
}
|
|
1191
|
-
var ke = null;
|
|
1192
|
-
function Gr() {
|
|
1193
|
-
if (ke === null)
|
|
1194
|
-
try {
|
|
1195
|
-
new FormData(
|
|
1196
|
-
document.createElement("form"),
|
|
1197
|
-
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
1198
|
-
0
|
|
1199
|
-
), ke = !1;
|
|
1200
|
-
} catch {
|
|
1201
|
-
ke = !0;
|
|
1202
|
-
}
|
|
1203
|
-
return ke;
|
|
1204
|
-
}
|
|
1205
|
-
var qr = /* @__PURE__ */ new Set([
|
|
1206
|
-
"application/x-www-form-urlencoded",
|
|
1207
|
-
"multipart/form-data",
|
|
1208
|
-
"text/plain"
|
|
1209
|
-
]);
|
|
1210
|
-
function Qe(e) {
|
|
1211
|
-
return e != null && !qr.has(e) ? (te(
|
|
1212
|
-
!1,
|
|
1213
|
-
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Pe}"`
|
|
1214
|
-
), null) : e;
|
|
1215
|
-
}
|
|
1216
|
-
function Jr(e, o) {
|
|
1217
|
-
let r, t, a, i, s;
|
|
1218
|
-
if (Hr(e)) {
|
|
1219
|
-
let d = e.getAttribute("action");
|
|
1220
|
-
t = d ? de(d, o) : null, r = e.getAttribute("method") || Le, a = Qe(e.getAttribute("enctype")) || Pe, i = new FormData(e);
|
|
1221
|
-
} else if (_r(e) || Vr(e) && (e.type === "submit" || e.type === "image")) {
|
|
1222
|
-
let d = e.form;
|
|
1223
|
-
if (d == null)
|
|
1224
|
-
throw new Error(
|
|
1225
|
-
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
1226
|
-
);
|
|
1227
|
-
let l = e.getAttribute("formaction") || d.getAttribute("action");
|
|
1228
|
-
if (t = l ? de(l, o) : null, r = e.getAttribute("formmethod") || d.getAttribute("method") || Le, a = Qe(e.getAttribute("formenctype")) || Qe(d.getAttribute("enctype")) || Pe, i = new FormData(d, e), !Gr()) {
|
|
1229
|
-
let { name: c, type: h, value: g } = e;
|
|
1230
|
-
if (h === "image") {
|
|
1231
|
-
let b = c ? `${c}.` : "";
|
|
1232
|
-
i.append(`${b}x`, "0"), i.append(`${b}y`, "0");
|
|
1233
|
-
} else c && i.append(c, g);
|
|
1234
|
-
}
|
|
1235
|
-
} else {
|
|
1236
|
-
if (Ge(e))
|
|
1237
|
-
throw new Error(
|
|
1238
|
-
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
1239
|
-
);
|
|
1240
|
-
r = Le, t = null, a = Pe, s = e;
|
|
1241
|
-
}
|
|
1242
|
-
return i && a === "text/plain" && (s = i, i = void 0), { action: t, method: r.toLowerCase(), encType: a, formData: i, body: s };
|
|
1243
|
-
}
|
|
1244
|
-
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
1245
|
-
function xt(e, o) {
|
|
1246
|
-
if (e === !1 || e === null || typeof e > "u")
|
|
1247
|
-
throw new Error(o);
|
|
1248
|
-
}
|
|
1249
|
-
function vn(e, o, r, t) {
|
|
1250
|
-
let a = typeof e == "string" ? new URL(
|
|
1251
|
-
e,
|
|
1252
|
-
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
1253
|
-
// don't assume window is available
|
|
1254
|
-
typeof window > "u" ? "server://singlefetch/" : window.location.origin
|
|
1255
|
-
) : e;
|
|
1256
|
-
return r ? a.pathname.endsWith("/") ? a.pathname = `${a.pathname}_.${t}` : a.pathname = `${a.pathname}.${t}` : a.pathname === "/" ? a.pathname = `_root.${t}` : o && de(a.pathname, o) === "/" ? a.pathname = `${o.replace(/\/$/, "")}/_root.${t}` : a.pathname = `${a.pathname.replace(/\/$/, "")}.${t}`, a;
|
|
1257
|
-
}
|
|
1258
|
-
async function Kr(e, o) {
|
|
1259
|
-
if (e.id in o)
|
|
1260
|
-
return o[e.id];
|
|
1261
|
-
try {
|
|
1262
|
-
let r = await import(
|
|
1263
|
-
/* @vite-ignore */
|
|
1264
|
-
/* webpackIgnore: true */
|
|
1265
|
-
e.module
|
|
1266
|
-
);
|
|
1267
|
-
return o[e.id] = r, r;
|
|
1268
|
-
} catch (r) {
|
|
1269
|
-
return console.error(
|
|
1270
|
-
`Error loading route module \`${e.module}\`, reloading page...`
|
|
1271
|
-
), console.error(r), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {
|
|
1272
|
-
});
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
function Yr(e) {
|
|
1276
|
-
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";
|
|
1277
|
-
}
|
|
1278
|
-
async function Zr(e, o, r) {
|
|
1279
|
-
let t = await Promise.all(
|
|
1280
|
-
e.map(async (a) => {
|
|
1281
|
-
let i = o.routes[a.route.id];
|
|
1282
|
-
if (i) {
|
|
1283
|
-
let s = await Kr(i, r);
|
|
1284
|
-
return s.links ? s.links() : [];
|
|
1285
|
-
}
|
|
1286
|
-
return [];
|
|
1287
|
-
})
|
|
1288
|
-
);
|
|
1289
|
-
return ta(
|
|
1290
|
-
t.flat(1).filter(Yr).filter((a) => a.rel === "stylesheet" || a.rel === "preload").map(
|
|
1291
|
-
(a) => a.rel === "stylesheet" ? { ...a, rel: "prefetch", as: "style" } : { ...a, rel: "prefetch" }
|
|
1292
|
-
)
|
|
1293
|
-
);
|
|
1294
|
-
}
|
|
1295
|
-
function Bt(e, o, r, t, a, i) {
|
|
1296
|
-
let s = (l, c) => r[c] ? l.route.id !== r[c].route.id : !0, d = (l, c) => (
|
|
1297
|
-
// param change, /users/123 -> /users/456
|
|
1298
|
-
r[c].pathname !== l.pathname || // splat param changed, which is not present in match.path
|
|
1299
|
-
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
1300
|
-
r[c].route.path?.endsWith("*") && r[c].params["*"] !== l.params["*"]
|
|
1301
|
-
);
|
|
1302
|
-
return i === "assets" ? o.filter(
|
|
1303
|
-
(l, c) => s(l, c) || d(l, c)
|
|
1304
|
-
) : i === "data" ? o.filter((l, c) => {
|
|
1305
|
-
let h = t.routes[l.route.id];
|
|
1306
|
-
if (!h || !h.hasLoader)
|
|
1307
|
-
return !1;
|
|
1308
|
-
if (s(l, c) || d(l, c))
|
|
1309
|
-
return !0;
|
|
1310
|
-
if (l.route.shouldRevalidate) {
|
|
1311
|
-
let g = l.route.shouldRevalidate({
|
|
1312
|
-
currentUrl: new URL(
|
|
1313
|
-
a.pathname + a.search + a.hash,
|
|
1314
|
-
window.origin
|
|
1315
|
-
),
|
|
1316
|
-
currentParams: r[0]?.params || {},
|
|
1317
|
-
nextUrl: new URL(e, window.origin),
|
|
1318
|
-
nextParams: l.params,
|
|
1319
|
-
defaultShouldRevalidate: !0
|
|
1320
|
-
});
|
|
1321
|
-
if (typeof g == "boolean")
|
|
1322
|
-
return g;
|
|
1323
|
-
}
|
|
1324
|
-
return !0;
|
|
1325
|
-
}) : [];
|
|
1326
|
-
}
|
|
1327
|
-
function Xr(e, o, { includeHydrateFallback: r } = {}) {
|
|
1328
|
-
return Qr(
|
|
1329
|
-
e.map((t) => {
|
|
1330
|
-
let a = o.routes[t.route.id];
|
|
1331
|
-
if (!a) return [];
|
|
1332
|
-
let i = [a.module];
|
|
1333
|
-
return a.clientActionModule && (i = i.concat(a.clientActionModule)), a.clientLoaderModule && (i = i.concat(a.clientLoaderModule)), r && a.hydrateFallbackModule && (i = i.concat(a.hydrateFallbackModule)), a.imports && (i = i.concat(a.imports)), i;
|
|
1334
|
-
}).flat(1)
|
|
1335
|
-
);
|
|
1336
|
-
}
|
|
1337
|
-
function Qr(e) {
|
|
1338
|
-
return [...new Set(e)];
|
|
1339
|
-
}
|
|
1340
|
-
function ea(e) {
|
|
1341
|
-
let o = {}, r = Object.keys(e).sort();
|
|
1342
|
-
for (let t of r)
|
|
1343
|
-
o[t] = e[t];
|
|
1344
|
-
return o;
|
|
1345
|
-
}
|
|
1346
|
-
function ta(e, o) {
|
|
1347
|
-
let r = /* @__PURE__ */ new Set();
|
|
1348
|
-
return new Set(o), e.reduce((t, a) => {
|
|
1349
|
-
let i = JSON.stringify(ea(a));
|
|
1350
|
-
return r.has(i) || (r.add(i), t.push({ key: i, link: a })), t;
|
|
1351
|
-
}, []);
|
|
1352
|
-
}
|
|
1353
|
-
function vt() {
|
|
1354
|
-
let e = p.useContext(pe);
|
|
1355
|
-
return xt(
|
|
1356
|
-
e,
|
|
1357
|
-
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
1358
|
-
), e;
|
|
1359
|
-
}
|
|
1360
|
-
function na() {
|
|
1361
|
-
let e = p.useContext(je);
|
|
1362
|
-
return xt(
|
|
1363
|
-
e,
|
|
1364
|
-
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
1365
|
-
), e;
|
|
1366
|
-
}
|
|
1367
|
-
var Ct = p.createContext(void 0);
|
|
1368
|
-
Ct.displayName = "FrameworkContext";
|
|
1369
|
-
function Rt() {
|
|
1370
|
-
let e = p.useContext(Ct);
|
|
1371
|
-
return xt(
|
|
1372
|
-
e,
|
|
1373
|
-
"You must render this element inside a <HydratedRouter> element"
|
|
1374
|
-
), e;
|
|
1375
|
-
}
|
|
1376
|
-
function oa(e, o) {
|
|
1377
|
-
let r = p.useContext(Ct), [t, a] = p.useState(!1), [i, s] = p.useState(!1), { onFocus: d, onBlur: l, onMouseEnter: c, onMouseLeave: h, onTouchStart: g } = o, b = p.useRef(null);
|
|
1378
|
-
p.useEffect(() => {
|
|
1379
|
-
if (e === "render" && s(!0), e === "viewport") {
|
|
1380
|
-
let R = (v) => {
|
|
1381
|
-
v.forEach((y) => {
|
|
1382
|
-
s(y.isIntersecting);
|
|
1383
|
-
});
|
|
1384
|
-
}, f = new IntersectionObserver(R, { threshold: 0.5 });
|
|
1385
|
-
return b.current && f.observe(b.current), () => {
|
|
1386
|
-
f.disconnect();
|
|
1387
|
-
};
|
|
1388
|
-
}
|
|
1389
|
-
}, [e]), p.useEffect(() => {
|
|
1390
|
-
if (t) {
|
|
1391
|
-
let R = setTimeout(() => {
|
|
1392
|
-
s(!0);
|
|
1393
|
-
}, 100);
|
|
1394
|
-
return () => {
|
|
1395
|
-
clearTimeout(R);
|
|
1396
|
-
};
|
|
1397
|
-
}
|
|
1398
|
-
}, [t]);
|
|
1399
|
-
let C = () => {
|
|
1400
|
-
a(!0);
|
|
1401
|
-
}, x = () => {
|
|
1402
|
-
a(!1), s(!1);
|
|
1403
|
-
};
|
|
1404
|
-
return r ? e !== "intent" ? [i, b, {}] : [
|
|
1405
|
-
i,
|
|
1406
|
-
b,
|
|
1407
|
-
{
|
|
1408
|
-
onFocus: fe(d, C),
|
|
1409
|
-
onBlur: fe(l, x),
|
|
1410
|
-
onMouseEnter: fe(c, C),
|
|
1411
|
-
onMouseLeave: fe(h, x),
|
|
1412
|
-
onTouchStart: fe(g, C)
|
|
1413
|
-
}
|
|
1414
|
-
] : [!1, b, {}];
|
|
1415
|
-
}
|
|
1416
|
-
function fe(e, o) {
|
|
1417
|
-
return (r) => {
|
|
1418
|
-
e && e(r), r.defaultPrevented || o(r);
|
|
1419
|
-
};
|
|
1420
|
-
}
|
|
1421
|
-
function ra({ page: e, ...o }) {
|
|
1422
|
-
let r = xr(), { router: t } = vt(), a = p.useMemo(
|
|
1423
|
-
() => rn(t.routes, e, t.basename),
|
|
1424
|
-
[t.routes, e, t.basename]
|
|
1425
|
-
);
|
|
1426
|
-
return a ? r ? /* @__PURE__ */ p.createElement(ia, { page: e, matches: a, ...o }) : /* @__PURE__ */ p.createElement(sa, { page: e, matches: a, ...o }) : null;
|
|
1427
|
-
}
|
|
1428
|
-
function aa(e) {
|
|
1429
|
-
let { manifest: o, routeModules: r } = Rt(), [t, a] = p.useState([]);
|
|
1430
|
-
return p.useEffect(() => {
|
|
1431
|
-
let i = !1;
|
|
1432
|
-
return Zr(e, o, r).then(
|
|
1433
|
-
(s) => {
|
|
1434
|
-
i || a(s);
|
|
1435
|
-
}
|
|
1436
|
-
), () => {
|
|
1437
|
-
i = !0;
|
|
1438
|
-
};
|
|
1439
|
-
}, [e, o, r]), t;
|
|
1440
|
-
}
|
|
1441
|
-
function ia({
|
|
1442
|
-
page: e,
|
|
1443
|
-
matches: o,
|
|
1444
|
-
...r
|
|
1445
|
-
}) {
|
|
1446
|
-
let t = re(), { future: a } = Rt(), { basename: i } = vt(), s = p.useMemo(() => {
|
|
1447
|
-
if (e === t.pathname + t.search + t.hash)
|
|
1448
|
-
return [];
|
|
1449
|
-
let d = vn(
|
|
1450
|
-
e,
|
|
1451
|
-
i,
|
|
1452
|
-
a.unstable_trailingSlashAwareDataRequests,
|
|
1453
|
-
"rsc"
|
|
1454
|
-
), l = !1, c = [];
|
|
1455
|
-
for (let h of o)
|
|
1456
|
-
typeof h.route.shouldRevalidate == "function" ? l = !0 : c.push(h.route.id);
|
|
1457
|
-
return l && c.length > 0 && d.searchParams.set("_routes", c.join(",")), [d.pathname + d.search];
|
|
1458
|
-
}, [
|
|
1459
|
-
i,
|
|
1460
|
-
a.unstable_trailingSlashAwareDataRequests,
|
|
1461
|
-
e,
|
|
1462
|
-
t,
|
|
1463
|
-
o
|
|
1464
|
-
]);
|
|
1465
|
-
return /* @__PURE__ */ p.createElement(p.Fragment, null, s.map((d) => /* @__PURE__ */ p.createElement("link", { key: d, rel: "prefetch", as: "fetch", href: d, ...r })));
|
|
1466
|
-
}
|
|
1467
|
-
function sa({
|
|
1468
|
-
page: e,
|
|
1469
|
-
matches: o,
|
|
1470
|
-
...r
|
|
1471
|
-
}) {
|
|
1472
|
-
let t = re(), { future: a, manifest: i, routeModules: s } = Rt(), { basename: d } = vt(), { loaderData: l, matches: c } = na(), h = p.useMemo(
|
|
1473
|
-
() => Bt(
|
|
1474
|
-
e,
|
|
1475
|
-
o,
|
|
1476
|
-
c,
|
|
1477
|
-
i,
|
|
1478
|
-
t,
|
|
1479
|
-
"data"
|
|
1480
|
-
),
|
|
1481
|
-
[e, o, c, i, t]
|
|
1482
|
-
), g = p.useMemo(
|
|
1483
|
-
() => Bt(
|
|
1484
|
-
e,
|
|
1485
|
-
o,
|
|
1486
|
-
c,
|
|
1487
|
-
i,
|
|
1488
|
-
t,
|
|
1489
|
-
"assets"
|
|
1490
|
-
),
|
|
1491
|
-
[e, o, c, i, t]
|
|
1492
|
-
), b = p.useMemo(() => {
|
|
1493
|
-
if (e === t.pathname + t.search + t.hash)
|
|
1494
|
-
return [];
|
|
1495
|
-
let R = /* @__PURE__ */ new Set(), f = !1;
|
|
1496
|
-
if (o.forEach((y) => {
|
|
1497
|
-
let w = i.routes[y.route.id];
|
|
1498
|
-
!w || !w.hasLoader || (!h.some((I) => I.route.id === y.route.id) && y.route.id in l && s[y.route.id]?.shouldRevalidate || w.hasClientLoader ? f = !0 : R.add(y.route.id));
|
|
1499
|
-
}), R.size === 0)
|
|
1500
|
-
return [];
|
|
1501
|
-
let v = vn(
|
|
1502
|
-
e,
|
|
1503
|
-
d,
|
|
1504
|
-
a.unstable_trailingSlashAwareDataRequests,
|
|
1505
|
-
"data"
|
|
1506
|
-
);
|
|
1507
|
-
return f && R.size > 0 && v.searchParams.set(
|
|
1508
|
-
"_routes",
|
|
1509
|
-
o.filter((y) => R.has(y.route.id)).map((y) => y.route.id).join(",")
|
|
1510
|
-
), [v.pathname + v.search];
|
|
1511
|
-
}, [
|
|
1512
|
-
d,
|
|
1513
|
-
a.unstable_trailingSlashAwareDataRequests,
|
|
1514
|
-
l,
|
|
1515
|
-
t,
|
|
1516
|
-
i,
|
|
1517
|
-
h,
|
|
1518
|
-
o,
|
|
1519
|
-
e,
|
|
1520
|
-
s
|
|
1521
|
-
]), C = p.useMemo(
|
|
1522
|
-
() => Xr(g, i),
|
|
1523
|
-
[g, i]
|
|
1524
|
-
), x = aa(g);
|
|
1525
|
-
return /* @__PURE__ */ p.createElement(p.Fragment, null, b.map((R) => /* @__PURE__ */ p.createElement("link", { key: R, rel: "prefetch", as: "fetch", href: R, ...r })), C.map((R) => /* @__PURE__ */ p.createElement("link", { key: R, rel: "modulepreload", href: R, ...r })), x.map(({ key: R, link: f }) => (
|
|
1526
|
-
// these don't spread `linkProps` because they are full link descriptors
|
|
1527
|
-
// already with their own props
|
|
1528
|
-
/* @__PURE__ */ p.createElement(
|
|
1529
|
-
"link",
|
|
1530
|
-
{
|
|
1531
|
-
key: R,
|
|
1532
|
-
nonce: r.nonce,
|
|
1533
|
-
...f,
|
|
1534
|
-
crossOrigin: f.crossOrigin ?? r.crossOrigin
|
|
1535
|
-
}
|
|
1536
|
-
)
|
|
1537
|
-
)));
|
|
1538
|
-
}
|
|
1539
|
-
function da(...e) {
|
|
1540
|
-
return (o) => {
|
|
1541
|
-
e.forEach((r) => {
|
|
1542
|
-
typeof r == "function" ? r(o) : r != null && (r.current = o);
|
|
1543
|
-
});
|
|
1544
|
-
};
|
|
1545
|
-
}
|
|
1546
|
-
var la = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1547
|
-
try {
|
|
1548
|
-
la && (window.__reactRouterVersion = // @ts-expect-error
|
|
1549
|
-
"7.14.0");
|
|
1550
|
-
} catch {
|
|
1551
|
-
}
|
|
1552
|
-
var Cn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Rn = p.forwardRef(
|
|
1553
|
-
function({
|
|
1554
|
-
onClick: o,
|
|
1555
|
-
discover: r = "render",
|
|
1556
|
-
prefetch: t = "none",
|
|
1557
|
-
relative: a,
|
|
1558
|
-
reloadDocument: i,
|
|
1559
|
-
replace: s,
|
|
1560
|
-
unstable_mask: d,
|
|
1561
|
-
state: l,
|
|
1562
|
-
target: c,
|
|
1563
|
-
to: h,
|
|
1564
|
-
preventScrollReset: g,
|
|
1565
|
-
viewTransition: b,
|
|
1566
|
-
unstable_defaultShouldRevalidate: C,
|
|
1567
|
-
...x
|
|
1568
|
-
}, R) {
|
|
1569
|
-
let { basename: f, navigator: v, unstable_useTransitions: y } = p.useContext(q), w = typeof h == "string" && Cn.test(h), I = cn(h, f);
|
|
1570
|
-
h = I.to;
|
|
1571
|
-
let N = Tr(h, { relative: a }), H = re(), ae = null;
|
|
1572
|
-
if (d) {
|
|
1573
|
-
let ie = gt(
|
|
1574
|
-
d,
|
|
1575
|
-
[],
|
|
1576
|
-
H.unstable_mask ? H.unstable_mask.pathname : "/",
|
|
1577
|
-
!0
|
|
1578
|
-
);
|
|
1579
|
-
f !== "/" && (ie.pathname = ie.pathname === "/" ? f : J([f, ie.pathname])), ae = v.createHref(ie);
|
|
1580
|
-
}
|
|
1581
|
-
let [ue, me, Ke] = oa(
|
|
1582
|
-
t,
|
|
1583
|
-
x
|
|
1584
|
-
), Ln = ga(h, {
|
|
1585
|
-
replace: s,
|
|
1586
|
-
unstable_mask: d,
|
|
1587
|
-
state: l,
|
|
1588
|
-
target: c,
|
|
1589
|
-
preventScrollReset: g,
|
|
1590
|
-
relative: a,
|
|
1591
|
-
viewTransition: b,
|
|
1592
|
-
unstable_defaultShouldRevalidate: C,
|
|
1593
|
-
unstable_useTransitions: y
|
|
1594
|
-
});
|
|
1595
|
-
function Pn(ie) {
|
|
1596
|
-
o && o(ie), ie.defaultPrevented || Ln(ie);
|
|
1597
|
-
}
|
|
1598
|
-
let St = !(I.isExternal || i), wt = (
|
|
1599
|
-
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1600
|
-
/* @__PURE__ */ p.createElement(
|
|
1601
|
-
"a",
|
|
1602
|
-
{
|
|
1603
|
-
...x,
|
|
1604
|
-
...Ke,
|
|
1605
|
-
href: (St ? ae : void 0) || I.absoluteURL || N,
|
|
1606
|
-
onClick: St ? Pn : o,
|
|
1607
|
-
ref: da(R, me),
|
|
1608
|
-
target: c,
|
|
1609
|
-
"data-discover": !w && r === "render" ? "true" : void 0
|
|
1610
|
-
}
|
|
1611
|
-
)
|
|
1612
|
-
);
|
|
1613
|
-
return ue && !w ? /* @__PURE__ */ p.createElement(p.Fragment, null, wt, /* @__PURE__ */ p.createElement(ra, { page: N })) : wt;
|
|
1614
|
-
}
|
|
1615
|
-
);
|
|
1616
|
-
Rn.displayName = "Link";
|
|
1617
|
-
var ca = p.forwardRef(
|
|
1618
|
-
function({
|
|
1619
|
-
"aria-current": o = "page",
|
|
1620
|
-
caseSensitive: r = !1,
|
|
1621
|
-
className: t = "",
|
|
1622
|
-
end: a = !1,
|
|
1623
|
-
style: i,
|
|
1624
|
-
to: s,
|
|
1625
|
-
viewTransition: d,
|
|
1626
|
-
children: l,
|
|
1627
|
-
...c
|
|
1628
|
-
}, h) {
|
|
1629
|
-
let g = ye(s, { relative: c.relative }), b = re(), C = p.useContext(je), { navigator: x, basename: R } = p.useContext(q), f = C != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1630
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1631
|
-
xa(g) && d === !0, v = x.encodeLocation ? x.encodeLocation(g).pathname : g.pathname, y = b.pathname, w = C && C.navigation && C.navigation.location ? C.navigation.location.pathname : null;
|
|
1632
|
-
r || (y = y.toLowerCase(), w = w ? w.toLowerCase() : null, v = v.toLowerCase()), w && R && (w = de(w, R) || w);
|
|
1633
|
-
const I = v !== "/" && v.endsWith("/") ? v.length - 1 : v.length;
|
|
1634
|
-
let N = y === v || !a && y.startsWith(v) && y.charAt(I) === "/", H = w != null && (w === v || !a && w.startsWith(v) && w.charAt(v.length) === "/"), ae = {
|
|
1635
|
-
isActive: N,
|
|
1636
|
-
isPending: H,
|
|
1637
|
-
isTransitioning: f
|
|
1638
|
-
}, ue = N ? o : void 0, me;
|
|
1639
|
-
typeof t == "function" ? me = t(ae) : me = [
|
|
1640
|
-
t,
|
|
1641
|
-
N ? "active" : null,
|
|
1642
|
-
H ? "pending" : null,
|
|
1643
|
-
f ? "transitioning" : null
|
|
1644
|
-
].filter(Boolean).join(" ");
|
|
1645
|
-
let Ke = typeof i == "function" ? i(ae) : i;
|
|
1646
|
-
return /* @__PURE__ */ p.createElement(
|
|
1647
|
-
Rn,
|
|
1648
|
-
{
|
|
1649
|
-
...c,
|
|
1650
|
-
"aria-current": ue,
|
|
1651
|
-
className: me,
|
|
1652
|
-
ref: h,
|
|
1653
|
-
style: Ke,
|
|
1654
|
-
to: s,
|
|
1655
|
-
viewTransition: d
|
|
1656
|
-
},
|
|
1657
|
-
typeof l == "function" ? l(ae) : l
|
|
1658
|
-
);
|
|
1659
|
-
}
|
|
1660
|
-
);
|
|
1661
|
-
ca.displayName = "NavLink";
|
|
1662
|
-
var ua = p.forwardRef(
|
|
1663
|
-
({
|
|
1664
|
-
discover: e = "render",
|
|
1665
|
-
fetcherKey: o,
|
|
1666
|
-
navigate: r,
|
|
1667
|
-
reloadDocument: t,
|
|
1668
|
-
replace: a,
|
|
1669
|
-
state: i,
|
|
1670
|
-
method: s = Le,
|
|
1671
|
-
action: d,
|
|
1672
|
-
onSubmit: l,
|
|
1673
|
-
relative: c,
|
|
1674
|
-
preventScrollReset: h,
|
|
1675
|
-
viewTransition: g,
|
|
1676
|
-
unstable_defaultShouldRevalidate: b,
|
|
1677
|
-
...C
|
|
1678
|
-
}, x) => {
|
|
1679
|
-
let { unstable_useTransitions: R } = p.useContext(q), f = fa(), v = ba(d, { relative: c }), y = s.toLowerCase() === "get" ? "get" : "post", w = typeof d == "string" && Cn.test(d), I = (N) => {
|
|
1680
|
-
if (l && l(N), N.defaultPrevented) return;
|
|
1681
|
-
N.preventDefault();
|
|
1682
|
-
let H = N.nativeEvent.submitter, ae = H?.getAttribute("formmethod") || s, ue = () => f(H || N.currentTarget, {
|
|
1683
|
-
fetcherKey: o,
|
|
1684
|
-
method: ae,
|
|
1685
|
-
navigate: r,
|
|
1686
|
-
replace: a,
|
|
1687
|
-
state: i,
|
|
1688
|
-
relative: c,
|
|
1689
|
-
preventScrollReset: h,
|
|
1690
|
-
viewTransition: g,
|
|
1691
|
-
unstable_defaultShouldRevalidate: b
|
|
1692
|
-
});
|
|
1693
|
-
R && r !== !1 ? p.startTransition(() => ue()) : ue();
|
|
1694
|
-
};
|
|
1695
|
-
return /* @__PURE__ */ p.createElement(
|
|
1696
|
-
"form",
|
|
1697
|
-
{
|
|
1698
|
-
ref: x,
|
|
1699
|
-
method: y,
|
|
1700
|
-
action: v,
|
|
1701
|
-
onSubmit: t ? l : I,
|
|
1702
|
-
...C,
|
|
1703
|
-
"data-discover": !w && e === "render" ? "true" : void 0
|
|
1704
|
-
}
|
|
1705
|
-
);
|
|
1706
|
-
}
|
|
1707
|
-
);
|
|
1708
|
-
ua.displayName = "Form";
|
|
1709
|
-
function ha(e) {
|
|
1710
|
-
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1711
|
-
}
|
|
1712
|
-
function yn(e) {
|
|
1713
|
-
let o = p.useContext(pe);
|
|
1714
|
-
return M(o, ha(e)), o;
|
|
1715
|
-
}
|
|
1716
|
-
function ga(e, {
|
|
1717
|
-
target: o,
|
|
1718
|
-
replace: r,
|
|
1719
|
-
unstable_mask: t,
|
|
1720
|
-
state: a,
|
|
1721
|
-
preventScrollReset: i,
|
|
1722
|
-
relative: s,
|
|
1723
|
-
viewTransition: d,
|
|
1724
|
-
unstable_defaultShouldRevalidate: l,
|
|
1725
|
-
unstable_useTransitions: c
|
|
1726
|
-
} = {}) {
|
|
1727
|
-
let h = kr(), g = re(), b = ye(e, { relative: s });
|
|
1728
|
-
return p.useCallback(
|
|
1729
|
-
(C) => {
|
|
1730
|
-
if (Ur(C, o)) {
|
|
1731
|
-
C.preventDefault();
|
|
1732
|
-
let x = r !== void 0 ? r : We(g) === We(b), R = () => h(e, {
|
|
1733
|
-
replace: x,
|
|
1734
|
-
unstable_mask: t,
|
|
1735
|
-
state: a,
|
|
1736
|
-
preventScrollReset: i,
|
|
1737
|
-
relative: s,
|
|
1738
|
-
viewTransition: d,
|
|
1739
|
-
unstable_defaultShouldRevalidate: l
|
|
1740
|
-
});
|
|
1741
|
-
c ? p.startTransition(() => R()) : R();
|
|
1742
|
-
}
|
|
1743
|
-
},
|
|
1744
|
-
[
|
|
1745
|
-
g,
|
|
1746
|
-
h,
|
|
1747
|
-
b,
|
|
1748
|
-
r,
|
|
1749
|
-
t,
|
|
1750
|
-
a,
|
|
1751
|
-
o,
|
|
1752
|
-
e,
|
|
1753
|
-
i,
|
|
1754
|
-
s,
|
|
1755
|
-
d,
|
|
1756
|
-
l,
|
|
1757
|
-
c
|
|
1758
|
-
]
|
|
1759
|
-
);
|
|
1760
|
-
}
|
|
1761
|
-
var pa = 0, ma = () => `__${String(++pa)}__`;
|
|
1762
|
-
function fa() {
|
|
1763
|
-
let { router: e } = yn(
|
|
1764
|
-
"useSubmit"
|
|
1765
|
-
/* UseSubmit */
|
|
1766
|
-
), { basename: o } = p.useContext(q), r = Fr(), t = e.fetch, a = e.navigate;
|
|
1767
|
-
return p.useCallback(
|
|
1768
|
-
async (i, s = {}) => {
|
|
1769
|
-
let { action: d, method: l, encType: c, formData: h, body: g } = Jr(
|
|
1770
|
-
i,
|
|
1771
|
-
o
|
|
1772
|
-
);
|
|
1773
|
-
if (s.navigate === !1) {
|
|
1774
|
-
let b = s.fetcherKey || ma();
|
|
1775
|
-
await t(b, r, s.action || d, {
|
|
1776
|
-
unstable_defaultShouldRevalidate: s.unstable_defaultShouldRevalidate,
|
|
1777
|
-
preventScrollReset: s.preventScrollReset,
|
|
1778
|
-
formData: h,
|
|
1779
|
-
body: g,
|
|
1780
|
-
formMethod: s.method || l,
|
|
1781
|
-
formEncType: s.encType || c,
|
|
1782
|
-
flushSync: s.flushSync
|
|
1783
|
-
});
|
|
1784
|
-
} else
|
|
1785
|
-
await a(s.action || d, {
|
|
1786
|
-
unstable_defaultShouldRevalidate: s.unstable_defaultShouldRevalidate,
|
|
1787
|
-
preventScrollReset: s.preventScrollReset,
|
|
1788
|
-
formData: h,
|
|
1789
|
-
body: g,
|
|
1790
|
-
formMethod: s.method || l,
|
|
1791
|
-
formEncType: s.encType || c,
|
|
1792
|
-
replace: s.replace,
|
|
1793
|
-
state: s.state,
|
|
1794
|
-
fromRouteId: r,
|
|
1795
|
-
flushSync: s.flushSync,
|
|
1796
|
-
viewTransition: s.viewTransition
|
|
1797
|
-
});
|
|
1798
|
-
},
|
|
1799
|
-
[t, a, o, r]
|
|
1800
|
-
);
|
|
1801
|
-
}
|
|
1802
|
-
function ba(e, { relative: o } = {}) {
|
|
1803
|
-
let { basename: r } = p.useContext(q), t = p.useContext(oe);
|
|
1804
|
-
M(t, "useFormAction must be used inside a RouteContext");
|
|
1805
|
-
let [a] = t.matches.slice(-1), i = { ...ye(e || ".", { relative: o }) }, s = re();
|
|
1806
|
-
if (e == null) {
|
|
1807
|
-
i.search = s.search;
|
|
1808
|
-
let d = new URLSearchParams(i.search), l = d.getAll("index");
|
|
1809
|
-
if (l.some((h) => h === "")) {
|
|
1810
|
-
d.delete("index"), l.filter((g) => g).forEach((g) => d.append("index", g));
|
|
1811
|
-
let h = d.toString();
|
|
1812
|
-
i.search = h ? `?${h}` : "";
|
|
1813
|
-
}
|
|
1814
|
-
}
|
|
1815
|
-
return (!e || e === ".") && a.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r : J([r, i.pathname])), We(i);
|
|
1816
|
-
}
|
|
1817
|
-
function xa(e, { relative: o } = {}) {
|
|
1818
|
-
let r = p.useContext(gn);
|
|
1819
|
-
M(
|
|
1820
|
-
r != null,
|
|
1821
|
-
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
1822
|
-
);
|
|
1823
|
-
let { basename: t } = yn(
|
|
1824
|
-
"useViewTransitionState"
|
|
1825
|
-
/* useViewTransitionState */
|
|
1826
|
-
), a = ye(e, { relative: o });
|
|
1827
|
-
if (!r.isTransitioning)
|
|
1828
|
-
return !1;
|
|
1829
|
-
let i = de(r.currentLocation.pathname, t) || r.currentLocation.pathname, s = de(r.nextLocation.pathname, t) || r.nextLocation.pathname;
|
|
1830
|
-
return Ee(a.pathname, s) != null || Ee(a.pathname, i) != null;
|
|
1831
|
-
}
|
|
1832
|
-
const va = ({ readonlyTo: e }) => {
|
|
1833
|
-
const { nodeProps: o, setNodeProps: r } = Ve(), t = e ?? o.anchor?.to, a = (() => {
|
|
1834
|
-
if (!ee(t))
|
|
1835
|
-
return be(t) ? t : We(t);
|
|
1836
|
-
})();
|
|
1837
|
-
return /* @__PURE__ */ n(P, { name: "To", children: /* @__PURE__ */ n("div", { css: { width: "50%" }, children: /* @__PURE__ */ n(
|
|
1838
|
-
se,
|
|
1839
|
-
{
|
|
1840
|
-
readOnly: !!e,
|
|
1841
|
-
placeholder: "https://example.com",
|
|
1842
|
-
mode: "onBlur",
|
|
1843
|
-
value: a ?? "",
|
|
1844
|
-
onChange: (s) => {
|
|
1845
|
-
if (s.target.value = s.target.value.trim(), !s.target.value) {
|
|
1846
|
-
r({
|
|
1847
|
-
anchor: void 0
|
|
1848
|
-
});
|
|
1849
|
-
return;
|
|
1850
|
-
}
|
|
1851
|
-
r({
|
|
1852
|
-
anchor: {
|
|
1853
|
-
to: s.target.value
|
|
1854
|
-
}
|
|
1855
|
-
});
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
) }) });
|
|
1859
|
-
}, Ca = () => {
|
|
1860
|
-
const { nodeProps: e, setNodeResponsiveProps: o } = Ve(), { getResponsiveProp: r, currentScreen: t } = B(), a = [
|
|
1861
|
-
{
|
|
1862
|
-
label: "Small",
|
|
1863
|
-
value: "sm"
|
|
1864
|
-
},
|
|
1865
|
-
{
|
|
1866
|
-
label: "Medium",
|
|
1867
|
-
value: "md"
|
|
1868
|
-
},
|
|
1869
|
-
{
|
|
1870
|
-
label: "Large",
|
|
1871
|
-
value: "lg"
|
|
1872
|
-
}
|
|
1873
|
-
], i = (s) => {
|
|
1874
|
-
o(
|
|
1875
|
-
{
|
|
1876
|
-
size: s
|
|
1877
|
-
},
|
|
1878
|
-
t
|
|
1879
|
-
);
|
|
1880
|
-
};
|
|
1881
|
-
return /* @__PURE__ */ n(P, { name: "Size variant", children: /* @__PURE__ */ n(
|
|
1882
|
-
lt,
|
|
1883
|
-
{
|
|
1884
|
-
css: {
|
|
1885
|
-
width: "50%"
|
|
1886
|
-
},
|
|
1887
|
-
options: a,
|
|
1888
|
-
value: r(e, "size") ?? null,
|
|
1889
|
-
onChange: i
|
|
1890
|
-
}
|
|
1891
|
-
) });
|
|
1892
|
-
}, Ra = [
|
|
1893
|
-
{
|
|
1894
|
-
value: "contained",
|
|
1895
|
-
label: "Contained"
|
|
1896
|
-
},
|
|
1897
|
-
{
|
|
1898
|
-
value: "outlined",
|
|
1899
|
-
label: "Outlined"
|
|
1900
|
-
},
|
|
1901
|
-
{
|
|
1902
|
-
value: "text",
|
|
1903
|
-
label: "Text"
|
|
1904
|
-
}
|
|
1905
|
-
], ya = () => {
|
|
1906
|
-
const { nodeProps: e, setNodeProps: o } = Ve(), r = (t) => {
|
|
1907
|
-
o({
|
|
1908
|
-
variant: t.currentTarget.value
|
|
1909
|
-
});
|
|
1910
|
-
};
|
|
1911
|
-
return /* @__PURE__ */ n(P, { name: "Variant", children: /* @__PURE__ */ n("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: Ra.map((t) => {
|
|
1912
|
-
const a = e?.variant === t.value;
|
|
1913
|
-
return /* @__PURE__ */ n(
|
|
1914
|
-
"button",
|
|
1915
|
-
{
|
|
1916
|
-
onClick: r,
|
|
1917
|
-
value: t.value,
|
|
1918
|
-
css: [
|
|
1919
|
-
{
|
|
1920
|
-
borderRadius: 4,
|
|
1921
|
-
padding: 4,
|
|
1922
|
-
backgroundColor: S.palette.white["1s"],
|
|
1923
|
-
color: S.palette.white["3s"],
|
|
1924
|
-
borderWidth: 1,
|
|
1925
|
-
borderStyle: "solid",
|
|
1926
|
-
borderColor: "transparent"
|
|
1927
|
-
},
|
|
1928
|
-
a && { color: S.palette.white["6s"], borderColor: S.palette.white["4s"] }
|
|
1929
|
-
],
|
|
1930
|
-
children: /* @__PURE__ */ n(
|
|
1931
|
-
"div",
|
|
1932
|
-
{
|
|
1933
|
-
css: [
|
|
1934
|
-
{
|
|
1935
|
-
position: "relative",
|
|
1936
|
-
display: "flex",
|
|
1937
|
-
paddingInline: 12,
|
|
1938
|
-
paddingBlock: 4,
|
|
1939
|
-
borderRadius: 4,
|
|
1940
|
-
overflow: "hidden",
|
|
1941
|
-
justifyContent: "center",
|
|
1942
|
-
alignItems: "center"
|
|
1943
|
-
},
|
|
1944
|
-
t.value === "outlined" && {
|
|
1945
|
-
borderWidth: 1,
|
|
1946
|
-
borderStyle: "solid",
|
|
1947
|
-
borderColor: S.palette.white["2s"],
|
|
1948
|
-
backgroundColor: S.palette.white["1s"]
|
|
1949
|
-
},
|
|
1950
|
-
t.value === "contained" && { backgroundColor: S.palette.black["7s"] }
|
|
1951
|
-
],
|
|
1952
|
-
children: /* @__PURE__ */ n("span", { css: { ...S.text.xs }, children: "Aa" })
|
|
1953
|
-
}
|
|
1954
|
-
)
|
|
1955
|
-
},
|
|
1956
|
-
t.value
|
|
1957
|
-
);
|
|
1958
|
-
}) }) });
|
|
1959
|
-
}, Vi = ({ readonlyTo: e }) => {
|
|
1960
|
-
const { nodeProps: o, setNodeProps: r } = Ve(), { currentScreen: t, getResponsiveProp: a } = B(), i = (h, g = t) => {
|
|
1961
|
-
r({
|
|
1962
|
-
sx: W(h, g)
|
|
1963
|
-
});
|
|
1964
|
-
}, s = {
|
|
1965
|
-
width: a(o.sx ?? {}, "width")
|
|
1966
|
-
}, d = (h) => {
|
|
1967
|
-
r({
|
|
1968
|
-
color: h
|
|
1969
|
-
});
|
|
1970
|
-
}, l = (h) => {
|
|
1971
|
-
r({
|
|
1972
|
-
anchor: {
|
|
1973
|
-
target: h
|
|
1974
|
-
}
|
|
1975
|
-
});
|
|
1976
|
-
}, c = (h) => {
|
|
1977
|
-
r({
|
|
1978
|
-
dangerouslySetInnerHTML: {
|
|
1979
|
-
__html: h.target.value
|
|
1980
|
-
}
|
|
1981
|
-
});
|
|
1982
|
-
};
|
|
1983
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
1984
|
-
/* @__PURE__ */ u(O, { children: [
|
|
1985
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
1986
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
1987
|
-
] }),
|
|
1988
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
1989
|
-
/* @__PURE__ */ u(L, { children: [
|
|
1990
|
-
/* @__PURE__ */ n(m, { name: "Text", children: /* @__PURE__ */ n(P, { name: "Content", children: /* @__PURE__ */ n("div", { css: { width: "50%" }, children: /* @__PURE__ */ n(se, { value: o.dangerouslySetInnerHTML?.__html.toString() ?? "", onChange: c }) }) }) }),
|
|
1991
|
-
/* @__PURE__ */ u(m, { name: "Color & Variant", children: [
|
|
1992
|
-
/* @__PURE__ */ n(uo, { value: o.color, onChange: d }),
|
|
1993
|
-
/* @__PURE__ */ n(ya, {})
|
|
1994
|
-
] }),
|
|
1995
|
-
/* @__PURE__ */ u(m, { name: "Size", children: [
|
|
1996
|
-
/* @__PURE__ */ n(Ca, {}),
|
|
1997
|
-
/* @__PURE__ */ n(V, { onChange: i, value: s })
|
|
1998
|
-
] }),
|
|
1999
|
-
/* @__PURE__ */ u(m, { name: "Link", children: [
|
|
2000
|
-
/* @__PURE__ */ n(va, { readonlyTo: e }),
|
|
2001
|
-
/* @__PURE__ */ n(Gt, { value: o.anchor?.target, onChange: l })
|
|
2002
|
-
] })
|
|
2003
|
-
] }),
|
|
2004
|
-
/* @__PURE__ */ u(L, { children: [
|
|
2005
|
-
/* @__PURE__ */ n(m, { name: "Display on", children: /* @__PURE__ */ n(Y, {}) }),
|
|
2006
|
-
/* @__PURE__ */ n(m, { name: "Spacing", children: /* @__PURE__ */ n(
|
|
2007
|
-
ho,
|
|
2008
|
-
{
|
|
2009
|
-
value: {
|
|
2010
|
-
marginTop: a(o.sx ?? {}, "marginTop"),
|
|
2011
|
-
marginBottom: a(o.sx ?? {}, "marginBottom"),
|
|
2012
|
-
marginLeft: a(o.sx ?? {}, "marginLeft"),
|
|
2013
|
-
marginRight: a(o.sx ?? {}, "marginRight")
|
|
2014
|
-
},
|
|
2015
|
-
onChange: i
|
|
2016
|
-
}
|
|
2017
|
-
) })
|
|
2018
|
-
] })
|
|
2019
|
-
] })
|
|
2020
|
-
] });
|
|
2021
|
-
}, Sn = () => A({
|
|
2022
|
-
transform: wo
|
|
2023
|
-
}), Sa = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2024
|
-
<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"/>
|
|
2025
|
-
<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"/>
|
|
2026
|
-
</svg>`, wa = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2027
|
-
<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"/>
|
|
2028
|
-
<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"/>
|
|
2029
|
-
</svg>`, Ta = [
|
|
2030
|
-
{
|
|
2031
|
-
value: "row",
|
|
2032
|
-
icon: wa,
|
|
2033
|
-
label: "Row"
|
|
2034
|
-
},
|
|
2035
|
-
{
|
|
2036
|
-
value: "column",
|
|
2037
|
-
icon: Sa,
|
|
2038
|
-
label: "Column"
|
|
2039
|
-
}
|
|
2040
|
-
], ka = () => {
|
|
2041
|
-
const { nodeProps: e, setNodeProps: o } = Sn(), { currentScreen: r, getResponsiveProp: t } = B(), a = t(e.sx ?? {}, "flexDirection");
|
|
2042
|
-
return /* @__PURE__ */ n(P, { responsive: !0, name: "Direction", children: /* @__PURE__ */ n(_e, { value: a, onSelectionChange: (s) => {
|
|
2043
|
-
o({
|
|
2044
|
-
sx: W(
|
|
2045
|
-
{
|
|
2046
|
-
flexDirection: s,
|
|
2047
|
-
justifyContent: void 0,
|
|
2048
|
-
alignItems: void 0
|
|
2049
|
-
},
|
|
2050
|
-
r
|
|
2051
|
-
)
|
|
2052
|
-
});
|
|
2053
|
-
}, children: Ta.map((s) => /* @__PURE__ */ n(
|
|
2054
|
-
G,
|
|
2055
|
-
{
|
|
2056
|
-
tooltip: {
|
|
2057
|
-
content: s.label
|
|
2058
|
-
},
|
|
2059
|
-
size: "24",
|
|
2060
|
-
value: s.value,
|
|
2061
|
-
children: /* @__PURE__ */ n(E, { source: s.icon })
|
|
2062
|
-
},
|
|
2063
|
-
s.value
|
|
2064
|
-
)) }) });
|
|
2065
|
-
}, ji = () => {
|
|
2066
|
-
const { nodeProps: e, setNodeProps: o } = Sn(), { currentScreen: r, getResponsiveProp: t } = B(), a = (v, y = r) => {
|
|
2067
|
-
o({ sx: W(v, y) });
|
|
2068
|
-
}, i = {
|
|
2069
|
-
paddingBottom: t(e.sx ?? {}, "paddingBottom"),
|
|
2070
|
-
paddingLeft: t(e.sx ?? {}, "paddingLeft"),
|
|
2071
|
-
paddingRight: t(e.sx ?? {}, "paddingRight"),
|
|
2072
|
-
paddingTop: t(e.sx ?? {}, "paddingTop"),
|
|
2073
|
-
marginBottom: t(e.sx ?? {}, "marginBottom"),
|
|
2074
|
-
marginLeft: t(e.sx ?? {}, "marginLeft"),
|
|
2075
|
-
marginRight: t(e.sx ?? {}, "marginRight"),
|
|
2076
|
-
marginTop: t(e.sx ?? {}, "marginTop")
|
|
2077
|
-
}, s = {
|
|
2078
|
-
borderStyle: t(e.sx ?? {}, "borderStyle"),
|
|
2079
|
-
borderColor: t(e.sx ?? {}, "borderColor"),
|
|
2080
|
-
borderTopWidth: t(e.sx ?? {}, "borderTopWidth"),
|
|
2081
|
-
borderRightWidth: t(e.sx ?? {}, "borderRightWidth"),
|
|
2082
|
-
borderBottomWidth: t(e.sx ?? {}, "borderBottomWidth"),
|
|
2083
|
-
borderLeftWidth: t(e.sx ?? {}, "borderLeftWidth")
|
|
2084
|
-
}, d = {
|
|
2085
|
-
borderTopLeftRadius: t(e.sx ?? {}, "borderTopLeftRadius"),
|
|
2086
|
-
borderTopRightRadius: t(e.sx ?? {}, "borderTopRightRadius"),
|
|
2087
|
-
borderBottomRightRadius: t(e.sx ?? {}, "borderBottomRightRadius"),
|
|
2088
|
-
borderBottomLeftRadius: t(e.sx ?? {}, "borderBottomLeftRadius")
|
|
2089
|
-
}, l = () => /* @__PURE__ */ n(j, { canvas: !0, is: Et }), c = {
|
|
2090
|
-
rowGap: t(e.sx ?? {}, "rowGap") ?? 0
|
|
2091
|
-
}, h = {
|
|
2092
|
-
columnGap: t(e.sx ?? {}, "columnGap") ?? 0
|
|
2093
|
-
}, g = {
|
|
2094
|
-
width: t(e.sx ?? {}, "width")
|
|
2095
|
-
}, b = {
|
|
2096
|
-
alignItems: t(e.sx ?? {}, "alignItems")
|
|
2097
|
-
}, C = {
|
|
2098
|
-
height: t(e.sx ?? {}, "height")
|
|
2099
|
-
}, x = t(e.sx ?? {}, "flexDirection"), R = {
|
|
2100
|
-
justifyContent: t(e.sx ?? {}, "justifyContent")
|
|
2101
|
-
}, f = {
|
|
2102
|
-
backgroundColor: t(e.sx ?? {}, "backgroundColor"),
|
|
2103
|
-
backgroundImage: t(e.sx ?? {}, "backgroundImage"),
|
|
2104
|
-
backgroundPosition: t(e.sx ?? {}, "backgroundPosition"),
|
|
2105
|
-
backgroundRepeat: t(e.sx ?? {}, "backgroundRepeat"),
|
|
2106
|
-
background: t(e.sx ?? {}, "background"),
|
|
2107
|
-
backgroundSize: t(e.sx ?? {}, "backgroundSize"),
|
|
2108
|
-
backgroundAttachment: t(e.sx ?? {}, "backgroundAttachment")
|
|
2109
|
-
};
|
|
2110
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
2111
|
-
/* @__PURE__ */ u(O, { children: [
|
|
2112
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
2113
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
2114
|
-
] }),
|
|
2115
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
2116
|
-
/* @__PURE__ */ u(L, { children: [
|
|
2117
|
-
/* @__PURE__ */ n(m, { name: "Flex items", children: /* @__PURE__ */ n(Ce, { getNewNodeElement: l }) }),
|
|
2118
|
-
/* @__PURE__ */ u(m, { name: "Layout", children: [
|
|
2119
|
-
/* @__PURE__ */ n(ka, {}),
|
|
2120
|
-
/* @__PURE__ */ n(
|
|
2121
|
-
Jt,
|
|
2122
|
-
{
|
|
2123
|
-
value: {
|
|
2124
|
-
flexWrap: t(e.sx ?? {}, "flexWrap")
|
|
2125
|
-
},
|
|
2126
|
-
onChange: a
|
|
2127
|
-
}
|
|
2128
|
-
),
|
|
2129
|
-
/* @__PURE__ */ n(Re, { value: c, onChange: a }),
|
|
2130
|
-
/* @__PURE__ */ n(at, { value: h, onChange: a }),
|
|
2131
|
-
/* @__PURE__ */ n(Kt, { flexDirection: x, value: b, onChange: a }),
|
|
2132
|
-
/* @__PURE__ */ n(
|
|
2133
|
-
go,
|
|
2134
|
-
{
|
|
2135
|
-
onChange: a,
|
|
2136
|
-
value: R,
|
|
2137
|
-
direction: x === "column" ? "column" : "row"
|
|
2138
|
-
}
|
|
2139
|
-
)
|
|
2140
|
-
] }),
|
|
2141
|
-
/* @__PURE__ */ u(m, { name: "Size", children: [
|
|
2142
|
-
/* @__PURE__ */ n(
|
|
2143
|
-
V,
|
|
2144
|
-
{
|
|
2145
|
-
menu: {
|
|
2146
|
-
autoOption: { visible: !0 },
|
|
2147
|
-
fitContentOption: { visible: !0 }
|
|
2148
|
-
},
|
|
2149
|
-
onChange: a,
|
|
2150
|
-
value: g
|
|
2151
|
-
}
|
|
2152
|
-
),
|
|
2153
|
-
/* @__PURE__ */ n(ce, { value: C, units: ["px", "%"], onChange: a })
|
|
2154
|
-
] })
|
|
2155
|
-
] }),
|
|
2156
|
-
/* @__PURE__ */ u(L, { children: [
|
|
2157
|
-
/* @__PURE__ */ n(m, { name: "Display on", children: /* @__PURE__ */ n(Y, {}) }),
|
|
2158
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: i, onChange: a }) }),
|
|
2159
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
2160
|
-
/* @__PURE__ */ n(_, { value: s, onChange: a }),
|
|
2161
|
-
/* @__PURE__ */ n($, { value: d, onChange: a })
|
|
2162
|
-
] }),
|
|
2163
|
-
/* @__PURE__ */ n(m, { name: "Background", children: /* @__PURE__ */ n(Z, { value: f, onChange: a }) })
|
|
2164
|
-
] })
|
|
2165
|
-
] })
|
|
2166
|
-
] });
|
|
2167
|
-
}, yt = () => A({
|
|
2168
|
-
transform: To
|
|
2169
|
-
}), La = () => {
|
|
2170
|
-
const { nodeProps: e, setNodeProps: o } = yt(), { getResponsiveProp: r, currentScreen: t } = B(), a = r(e.sx ?? {}, "flexGrow");
|
|
2171
|
-
return /* @__PURE__ */ n(P, { guide: "Automatically expands to fill the available space in a flex container.", name: "Auto grow", children: /* @__PURE__ */ n(le, { onChange: (s) => {
|
|
2172
|
-
o({
|
|
2173
|
-
sx: W(
|
|
2174
|
-
{
|
|
2175
|
-
flexGrow: s.target.checked ? 1 : void 0
|
|
2176
|
-
},
|
|
2177
|
-
t
|
|
2178
|
-
)
|
|
2179
|
-
});
|
|
2180
|
-
}, checked: !ee(a) }) });
|
|
2181
|
-
}, Pa = () => {
|
|
2182
|
-
const { nodeProps: e, setNodeProps: o } = yt(), { getResponsiveProp: r, currentScreen: t } = B(), a = r(e.sx ?? {}, "flexShrink");
|
|
2183
|
-
return /* @__PURE__ */ n(P, { guide: "Automatically shrinks when there isn’t enough space in the flex container.", name: "Auto shrink", children: /* @__PURE__ */ n(le, { onChange: (s) => {
|
|
2184
|
-
o({
|
|
2185
|
-
sx: W(
|
|
2186
|
-
{
|
|
2187
|
-
flexShrink: s.target.checked ? void 0 : 0
|
|
2188
|
-
},
|
|
2189
|
-
t
|
|
2190
|
-
)
|
|
2191
|
-
});
|
|
2192
|
-
}, checked: a !== 0 }) });
|
|
2193
|
-
}, Ui = () => {
|
|
2194
|
-
const { nodeProps: e, setNodeProps: o } = yt(), { currentScreen: r, getResponsiveProp: t } = B(), a = (g, b = r) => {
|
|
2195
|
-
o({ sx: W(g, b) });
|
|
2196
|
-
}, i = {
|
|
2197
|
-
paddingBottom: t(e.sx ?? {}, "paddingBottom"),
|
|
2198
|
-
paddingLeft: t(e.sx ?? {}, "paddingLeft"),
|
|
2199
|
-
paddingRight: t(e.sx ?? {}, "paddingRight"),
|
|
2200
|
-
paddingTop: t(e.sx ?? {}, "paddingTop"),
|
|
2201
|
-
marginBottom: t(e.sx ?? {}, "marginBottom"),
|
|
2202
|
-
marginLeft: t(e.sx ?? {}, "marginLeft"),
|
|
2203
|
-
marginRight: t(e.sx ?? {}, "marginRight"),
|
|
2204
|
-
marginTop: t(e.sx ?? {}, "marginTop")
|
|
2205
|
-
}, s = {
|
|
2206
|
-
borderStyle: t(e.sx ?? {}, "borderStyle"),
|
|
2207
|
-
borderColor: t(e.sx ?? {}, "borderColor"),
|
|
2208
|
-
borderTopWidth: t(e.sx ?? {}, "borderTopWidth"),
|
|
2209
|
-
borderRightWidth: t(e.sx ?? {}, "borderRightWidth"),
|
|
2210
|
-
borderBottomWidth: t(e.sx ?? {}, "borderBottomWidth"),
|
|
2211
|
-
borderLeftWidth: t(e.sx ?? {}, "borderLeftWidth")
|
|
2212
|
-
}, d = {
|
|
2213
|
-
borderTopLeftRadius: t(e.sx ?? {}, "borderTopLeftRadius"),
|
|
2214
|
-
borderTopRightRadius: t(e.sx ?? {}, "borderTopRightRadius"),
|
|
2215
|
-
borderBottomRightRadius: t(e.sx ?? {}, "borderBottomRightRadius"),
|
|
2216
|
-
borderBottomLeftRadius: t(e.sx ?? {}, "borderBottomLeftRadius")
|
|
2217
|
-
}, l = {
|
|
2218
|
-
width: t(e.sx ?? {}, "width")
|
|
2219
|
-
}, c = {
|
|
2220
|
-
backgroundColor: t(e.sx ?? {}, "backgroundColor"),
|
|
2221
|
-
backgroundImage: t(e.sx ?? {}, "backgroundImage"),
|
|
2222
|
-
backgroundPosition: t(e.sx ?? {}, "backgroundPosition"),
|
|
2223
|
-
backgroundRepeat: t(e.sx ?? {}, "backgroundRepeat"),
|
|
2224
|
-
background: t(e.sx ?? {}, "background"),
|
|
2225
|
-
backgroundSize: t(e.sx ?? {}, "backgroundSize"),
|
|
2226
|
-
backgroundAttachment: t(e.sx ?? {}, "backgroundAttachment")
|
|
2227
|
-
}, h = {
|
|
2228
|
-
order: t(e.sx ?? {}, "order")
|
|
2229
|
-
};
|
|
2230
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
2231
|
-
/* @__PURE__ */ u(O, { children: [
|
|
2232
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
2233
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
2234
|
-
] }),
|
|
2235
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
2236
|
-
/* @__PURE__ */ n(L, { children: /* @__PURE__ */ u(m, { name: "Layout", children: [
|
|
2237
|
-
/* @__PURE__ */ n(Pa, {}),
|
|
2238
|
-
/* @__PURE__ */ n(La, {}),
|
|
2239
|
-
/* @__PURE__ */ n(
|
|
2240
|
-
V,
|
|
2241
|
-
{
|
|
2242
|
-
menu: {
|
|
2243
|
-
autoOption: { visible: !0 },
|
|
2244
|
-
fitContentOption: { visible: !0 }
|
|
2245
|
-
},
|
|
2246
|
-
onChange: a,
|
|
2247
|
-
value: l
|
|
2248
|
-
}
|
|
2249
|
-
),
|
|
2250
|
-
/* @__PURE__ */ n(
|
|
2251
|
-
ce,
|
|
2252
|
-
{
|
|
2253
|
-
value: {
|
|
2254
|
-
height: t(e.sx ?? {}, "height")
|
|
2255
|
-
},
|
|
2256
|
-
onChange: a
|
|
2257
|
-
}
|
|
2258
|
-
),
|
|
2259
|
-
/* @__PURE__ */ n(Ut, { value: h, onChange: a })
|
|
2260
|
-
] }) }),
|
|
2261
|
-
/* @__PURE__ */ u(L, { children: [
|
|
2262
|
-
/* @__PURE__ */ n(m, { name: "Display on", children: /* @__PURE__ */ n(Y, {}) }),
|
|
2263
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: i, onChange: a }) }),
|
|
2264
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
2265
|
-
/* @__PURE__ */ n(_, { value: s, onChange: a }),
|
|
2266
|
-
/* @__PURE__ */ n($, { value: d, onChange: a })
|
|
2267
|
-
] }),
|
|
2268
|
-
/* @__PURE__ */ n(m, { name: "Background", children: /* @__PURE__ */ n(Z, { value: c, onChange: a }) })
|
|
2269
|
-
] })
|
|
2270
|
-
] })
|
|
2271
|
-
] });
|
|
2272
|
-
}, wn = ({ availableTags: e = [] }) => {
|
|
2273
|
-
const { setNodeProps: o, setNodeResponsiveProps: r, nodeProps: t } = A(), { currentScreen: a, getResponsiveProp: i } = B(), s = (y, w = a) => {
|
|
2274
|
-
o({ sx: W(y, w) });
|
|
2275
|
-
}, d = i(t.sx ?? {}, "textAlign") ?? "left", l = (y) => {
|
|
2276
|
-
s({
|
|
2277
|
-
textAlign: y
|
|
2278
|
-
});
|
|
2279
|
-
}, c = {
|
|
2280
|
-
fontStyle: i(t.sx ?? {}, "fontStyle", "xs"),
|
|
2281
|
-
textDecorationLine: i(t.sx ?? {}, "textDecorationLine", "xs"),
|
|
2282
|
-
fontWeight: i(t.sx ?? {}, "fontWeight", "xs")
|
|
2283
|
-
}, h = (y) => {
|
|
2284
|
-
s(
|
|
2285
|
-
{
|
|
2286
|
-
fontStyle: y.fontStyle,
|
|
2287
|
-
textDecorationLine: y.textDecorationLine,
|
|
2288
|
-
fontWeight: y.fontWeight
|
|
2289
|
-
},
|
|
2290
|
-
"xs"
|
|
2291
|
-
);
|
|
2292
|
-
}, g = {
|
|
2293
|
-
width: i(t.sx ?? {}, "width")
|
|
2294
|
-
}, b = {
|
|
2295
|
-
color: i(t.sx ?? {}, "color", "xs")
|
|
2296
|
-
}, C = (y) => {
|
|
2297
|
-
s(y, "xs");
|
|
2298
|
-
}, x = (y) => {
|
|
2299
|
-
r(
|
|
2300
|
-
{
|
|
2301
|
-
sizeVariant: y
|
|
2302
|
-
},
|
|
2303
|
-
a
|
|
2304
|
-
);
|
|
2305
|
-
}, R = {
|
|
2306
|
-
paddingBottom: i(t.sx ?? {}, "paddingBottom"),
|
|
2307
|
-
paddingLeft: i(t.sx ?? {}, "paddingLeft"),
|
|
2308
|
-
paddingRight: i(t.sx ?? {}, "paddingRight"),
|
|
2309
|
-
paddingTop: i(t.sx ?? {}, "paddingTop"),
|
|
2310
|
-
marginBottom: i(t.sx ?? {}, "marginBottom"),
|
|
2311
|
-
marginLeft: i(t.sx ?? {}, "marginLeft"),
|
|
2312
|
-
marginRight: i(t.sx ?? {}, "marginRight"),
|
|
2313
|
-
marginTop: i(t.sx ?? {}, "marginTop")
|
|
2314
|
-
}, f = t.as, v = (y) => {
|
|
2315
|
-
o({
|
|
2316
|
-
as: y
|
|
2317
|
-
});
|
|
2318
|
-
};
|
|
2319
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
2320
|
-
/* @__PURE__ */ u(O, { children: [
|
|
2321
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
2322
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
2323
|
-
] }),
|
|
2324
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
2325
|
-
/* @__PURE__ */ u(L, { children: [
|
|
2326
|
-
/* @__PURE__ */ u(m, { name: "Text", children: [
|
|
2327
|
-
/* @__PURE__ */ n(
|
|
2328
|
-
Me,
|
|
2329
|
-
{
|
|
2330
|
-
onChange: x,
|
|
2331
|
-
value: i(t, "sizeVariant")
|
|
2332
|
-
}
|
|
2333
|
-
),
|
|
2334
|
-
/* @__PURE__ */ n(ge, { value: b, onChange: C }),
|
|
2335
|
-
/* @__PURE__ */ n(ze, { value: c, onChange: h }),
|
|
2336
|
-
/* @__PURE__ */ n(qt, { value: d, onChange: l }),
|
|
2337
|
-
/* @__PURE__ */ n(
|
|
2338
|
-
it,
|
|
2339
|
-
{
|
|
2340
|
-
value: {
|
|
2341
|
-
textTransform: i(t.sx ?? {}, "textTransform", "xs") ?? "none"
|
|
2342
|
-
},
|
|
2343
|
-
onChange: (y) => s(y, "xs")
|
|
2344
|
-
}
|
|
2345
|
-
),
|
|
2346
|
-
/* @__PURE__ */ n(
|
|
2347
|
-
$e,
|
|
2348
|
-
{
|
|
2349
|
-
responsive: !0,
|
|
2350
|
-
value: {
|
|
2351
|
-
fontWeight: i(t.sx ?? {}, "fontWeight")
|
|
2352
|
-
},
|
|
2353
|
-
onChange: s
|
|
2354
|
-
}
|
|
2355
|
-
)
|
|
2356
|
-
] }),
|
|
2357
|
-
/* @__PURE__ */ n(m, { name: "Size", children: /* @__PURE__ */ n(V, { value: g, onChange: s }) }),
|
|
2358
|
-
e.length > 0 && /* @__PURE__ */ n(m, { name: "SEO", children: /* @__PURE__ */ n(po, { onChange: v, value: f, availableTags: e }) })
|
|
2359
|
-
] }),
|
|
2360
|
-
/* @__PURE__ */ u(L, { children: [
|
|
2361
|
-
/* @__PURE__ */ n(m, { name: "Display on", children: /* @__PURE__ */ n(Y, {}) }),
|
|
2362
|
-
/* @__PURE__ */ n(m, { name: "Spacing", children: /* @__PURE__ */ n(z, { value: R, onChange: s }) })
|
|
2363
|
-
] })
|
|
2364
|
-
] })
|
|
2365
|
-
] });
|
|
2366
|
-
}, Gi = () => /* @__PURE__ */ n(wn, {}), qi = () => {
|
|
2367
|
-
const { id: e } = Q(), { document: o } = Xt(), { actions: r, query: t } = ne(), [a, i] = U(!1), {
|
|
2368
|
-
dom: s,
|
|
2369
|
-
name: d,
|
|
2370
|
-
moveable: l,
|
|
2371
|
-
deletable: c,
|
|
2372
|
-
connectors: { drag: h },
|
|
2373
|
-
parentSelectableNode: g,
|
|
2374
|
-
selectable: b
|
|
2375
|
-
} = Q((v) => {
|
|
2376
|
-
let y = v.data.parent ? t.node(v.data.parent).get() : null;
|
|
2377
|
-
for (; y && !kt(y); )
|
|
2378
|
-
y = y.data.parent && y.data.parent !== Zn ? t.node(y.data.parent).get() : null;
|
|
2379
|
-
return {
|
|
2380
|
-
dom: v.dom,
|
|
2381
|
-
name: rt(v),
|
|
2382
|
-
moveable: t.node(v.id).isDraggable(),
|
|
2383
|
-
deletable: t.node(v.id).isDeletable() && !!(v.data.custom?.deletable ?? !0),
|
|
2384
|
-
parentSelectableNode: y,
|
|
2385
|
-
parentNode: v.data.parent,
|
|
2386
|
-
selectable: kt(v)
|
|
2387
|
-
};
|
|
2388
|
-
}), { floatingStyles: C, refs: x } = Fo({
|
|
2389
|
-
open: !0,
|
|
2390
|
-
placement: "bottom-start",
|
|
2391
|
-
middleware: [zo(), $o(4)],
|
|
2392
|
-
whileElementsMounted: Mo
|
|
2393
|
-
}), R = (v) => {
|
|
2394
|
-
const y = v.currentTarget.getAttribute("value");
|
|
2395
|
-
!ee(y) && r.selectNode(y);
|
|
2396
|
-
};
|
|
2397
|
-
ve(() => {
|
|
2398
|
-
x.setReference(s);
|
|
2399
|
-
}, [s, x]);
|
|
2400
|
-
const f = () => {
|
|
2401
|
-
r.delete(e);
|
|
2402
|
-
};
|
|
2403
|
-
return /* @__PURE__ */ n(Vt, { children: b && x.reference.current && /* @__PURE__ */ n(_o, { root: o?.body, children: /* @__PURE__ */ n("div", { ref: x.setFloating, style: C, children: /* @__PURE__ */ u(
|
|
2404
|
-
"div",
|
|
2405
|
-
{
|
|
2406
|
-
css: {
|
|
2407
|
-
display: "flex",
|
|
2408
|
-
paddingBlock: 4,
|
|
2409
|
-
paddingInline: 6,
|
|
2410
|
-
backgroundColor: S.palette.ink["6s"],
|
|
2411
|
-
color: S.palette.white["6s"],
|
|
2412
|
-
borderRadius: 4,
|
|
2413
|
-
alignItems: "center",
|
|
2414
|
-
gap: 4
|
|
2415
|
-
},
|
|
2416
|
-
children: [
|
|
2417
|
-
l && /* @__PURE__ */ n(
|
|
2418
|
-
G,
|
|
2419
|
-
{
|
|
2420
|
-
ref: (v) => {
|
|
2421
|
-
v && h(v);
|
|
2422
|
-
},
|
|
2423
|
-
css: { cursor: "grab" },
|
|
2424
|
-
size: "20",
|
|
2425
|
-
children: /* @__PURE__ */ n(E, { size: 16, source: st })
|
|
2426
|
-
}
|
|
2427
|
-
),
|
|
2428
|
-
/* @__PURE__ */ u(Ho, { offset: 8, onOpenChange: i, open: a, children: [
|
|
2429
|
-
/* @__PURE__ */ n(oo, { children: /* @__PURE__ */ n(
|
|
2430
|
-
K,
|
|
2431
|
-
{
|
|
2432
|
-
suffix: /* @__PURE__ */ n(
|
|
2433
|
-
E,
|
|
2434
|
-
{
|
|
2435
|
-
css: [
|
|
2436
|
-
{ transition: "transform" },
|
|
2437
|
-
a && { transform: "rotate(-180deg)" },
|
|
2438
|
-
!g && {
|
|
2439
|
-
display: "none"
|
|
2440
|
-
}
|
|
2441
|
-
],
|
|
2442
|
-
size: 16,
|
|
2443
|
-
source: ct
|
|
2444
|
-
}
|
|
2445
|
-
),
|
|
2446
|
-
variant: "text",
|
|
2447
|
-
size: "24",
|
|
2448
|
-
children: d
|
|
2449
|
-
}
|
|
2450
|
-
) }),
|
|
2451
|
-
!!g && /* @__PURE__ */ n(ro, { children: /* @__PURE__ */ n(ao, { onClick: R, value: g.id, children: rt(g) }) })
|
|
2452
|
-
] }),
|
|
2453
|
-
c && /* @__PURE__ */ n(G, { onClick: f, css: { cursor: "grab" }, size: "20", children: /* @__PURE__ */ n(E, { size: 16, source: dt }) })
|
|
2454
|
-
]
|
|
2455
|
-
}
|
|
2456
|
-
) }) }) });
|
|
2457
|
-
}, Ji = () => {
|
|
2458
|
-
const { dom: e } = Q((a) => ({
|
|
2459
|
-
dom: a.dom
|
|
2460
|
-
})), { window: o } = Xt(), [r, t] = U(null);
|
|
2461
|
-
return ve(() => {
|
|
2462
|
-
if (!e || !o) return;
|
|
2463
|
-
let a = null, i = !1;
|
|
2464
|
-
const s = () => {
|
|
2465
|
-
const h = e.getBoundingClientRect();
|
|
2466
|
-
t(h), i = !1;
|
|
2467
|
-
}, d = () => {
|
|
2468
|
-
i || (i = !0, a = o.requestAnimationFrame(s));
|
|
2469
|
-
};
|
|
2470
|
-
s(), o.addEventListener("scroll", d, !0), o.addEventListener("resize", d);
|
|
2471
|
-
const l = new ResizeObserver(d);
|
|
2472
|
-
l.observe(e);
|
|
2473
|
-
const c = new MutationObserver(d);
|
|
2474
|
-
return c.observe(e, { attributes: !0, childList: !0, subtree: !0 }), () => {
|
|
2475
|
-
a !== null && o.cancelAnimationFrame(a), o.removeEventListener("scroll", d, !0), o.removeEventListener("resize", d), l.disconnect(), c.disconnect();
|
|
2476
|
-
};
|
|
2477
|
-
}, [e, o]), r ? /* @__PURE__ */ n(
|
|
2478
|
-
"div",
|
|
2479
|
-
{
|
|
2480
|
-
css: {
|
|
2481
|
-
position: "fixed",
|
|
2482
|
-
left: `${r.left}px`,
|
|
2483
|
-
top: `${r.top}px`,
|
|
2484
|
-
width: `${r.width}px`,
|
|
2485
|
-
height: `${r.height}px`,
|
|
2486
|
-
pointerEvents: "none",
|
|
2487
|
-
zIndex: 9999,
|
|
2488
|
-
outlineWidth: 1,
|
|
2489
|
-
outlineStyle: "dashed",
|
|
2490
|
-
outlineColor: S.palette.ink["6s"],
|
|
2491
|
-
outlineOffset: -1
|
|
2492
|
-
}
|
|
2493
|
-
}
|
|
2494
|
-
) : null;
|
|
2495
|
-
}, Ki = () => /* @__PURE__ */ n(wn, { availableTags: ["h1", "h2", "h3", "h4", "h5", "h6", "div"] }), Se = () => A({
|
|
2496
|
-
transform: ko
|
|
2497
|
-
}), Ia = () => {
|
|
2498
|
-
const { nodeProps: e, setNodeProps: o } = Se();
|
|
2499
|
-
return /* @__PURE__ */ n(P, { direction: "vertical", name: "Alt text", children: /* @__PURE__ */ n(
|
|
2500
|
-
io,
|
|
2501
|
-
{
|
|
2502
|
-
onBlur: (a) => {
|
|
2503
|
-
o({
|
|
2504
|
-
alt: a.target.value.trim()
|
|
2505
|
-
});
|
|
2506
|
-
},
|
|
2507
|
-
onChange: (a) => {
|
|
2508
|
-
o({
|
|
2509
|
-
alt: Ht(a.target.value)
|
|
2510
|
-
});
|
|
2511
|
-
},
|
|
2512
|
-
placeholder: "E.g: Classic white crewneck t-shirt with minimalist logo design, casual and versatile style",
|
|
2513
|
-
rows: 3,
|
|
2514
|
-
value: e.alt ?? ""
|
|
2515
|
-
}
|
|
2516
|
-
) });
|
|
2517
|
-
}, Ba = () => {
|
|
2518
|
-
const { nodeProps: e, setNodeProps: o } = Se(), r = (t) => {
|
|
2519
|
-
o({
|
|
2520
|
-
loading: t.target.checked ? "eager" : "lazy"
|
|
2521
|
-
});
|
|
2522
|
-
};
|
|
2523
|
-
return /* @__PURE__ */ n(P, { name: "Preload", children: /* @__PURE__ */ n(le, { checked: e.loading === "eager", onChange: r }) });
|
|
2524
|
-
};
|
|
2525
|
-
var Tn = /* @__PURE__ */ ((e) => (e.Auto = "auto", e.Square = "1 / 1", e.Widescreen = "16 / 9", e.Portrait = "9 / 16", e.Custom = "custom", e))(Tn || {});
|
|
2526
|
-
const Na = [
|
|
2527
|
-
{
|
|
2528
|
-
value: "auto",
|
|
2529
|
-
label: "Original"
|
|
2530
|
-
},
|
|
2531
|
-
{
|
|
2532
|
-
value: "1 / 1",
|
|
2533
|
-
label: "Square"
|
|
2534
|
-
},
|
|
2535
|
-
{
|
|
2536
|
-
value: "16 / 9",
|
|
2537
|
-
label: "Widescreen"
|
|
2538
|
-
},
|
|
2539
|
-
{
|
|
2540
|
-
value: "9 / 16",
|
|
2541
|
-
label: "Portrait"
|
|
2542
|
-
},
|
|
2543
|
-
{
|
|
2544
|
-
value: "custom",
|
|
2545
|
-
label: "Custom"
|
|
2546
|
-
}
|
|
2547
|
-
], Wa = ({ label: e }) => e, Ea = ({ label: e, value: o }) => [
|
|
2548
|
-
"auto",
|
|
2549
|
-
"custom"
|
|
2550
|
-
/* Custom */
|
|
2551
|
-
].includes(o) ? e : `${e} (${o})`, Aa = () => {
|
|
2552
|
-
const { nodeProps: e, setNodeProps: o } = Se(), { currentScreen: r, getResponsiveProp: t } = B(), [a, i] = U(null), s = t(e.sx ?? {}, "aspectRatio") ?? "auto", d = Object.values(Tn).find((f) => f === s) ?? "custom", l = (f) => {
|
|
2553
|
-
f.target.select();
|
|
2554
|
-
}, c = (f = "auto") => {
|
|
2555
|
-
const v = {
|
|
2556
|
-
aspectRatio: f === "auto" ? void 0 : f
|
|
2557
|
-
};
|
|
2558
|
-
f !== "auto" && (v.height = ""), o({
|
|
2559
|
-
sx: W(v, r)
|
|
2560
|
-
});
|
|
2561
|
-
}, h = (f) => {
|
|
2562
|
-
if (i(f === "custom" ? f : null), f === "custom") {
|
|
2563
|
-
i(f);
|
|
2564
|
-
return;
|
|
2565
|
-
}
|
|
2566
|
-
i(null), c(f);
|
|
2567
|
-
}, g = a ?? d, b = s.toString().split("/"), C = tt(b.at(0)), x = tt(b.at(1)), R = (f) => {
|
|
2568
|
-
const v = isNaN(f.target.valueAsNumber) ? void 0 : f.target.valueAsNumber, y = {
|
|
2569
|
-
x: C ?? v,
|
|
2570
|
-
y: x ?? v,
|
|
2571
|
-
[f.target.name]: v
|
|
2572
|
-
}, w = ee(y.x) || ee(y.y) ? void 0 : `${y.x} / ${y.y}`;
|
|
2573
|
-
c(w);
|
|
2574
|
-
};
|
|
2575
|
-
return /* @__PURE__ */ u("div", { css: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
2576
|
-
/* @__PURE__ */ n(P, { responsive: !0, name: "Proportion", children: /* @__PURE__ */ n(
|
|
2577
|
-
lt,
|
|
2578
|
-
{
|
|
2579
|
-
value: g,
|
|
2580
|
-
onChange: h,
|
|
2581
|
-
optionLabel: Ea,
|
|
2582
|
-
selectedRenderer: Wa,
|
|
2583
|
-
options: Na,
|
|
2584
|
-
css: {
|
|
2585
|
-
width: "50%"
|
|
2586
|
-
}
|
|
2587
|
-
}
|
|
2588
|
-
) }),
|
|
2589
|
-
g === "custom" && /* @__PURE__ */ n("div", { css: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ u(
|
|
2590
|
-
"div",
|
|
2591
|
-
{
|
|
2592
|
-
css: {
|
|
2593
|
-
display: "flex",
|
|
2594
|
-
paddingBlock: "0.125rem",
|
|
2595
|
-
paddingInline: 8,
|
|
2596
|
-
alignItems: "center",
|
|
2597
|
-
gap: 2,
|
|
2598
|
-
borderRadius: 8,
|
|
2599
|
-
width: "50%",
|
|
2600
|
-
backgroundColor: S.palette.white["1s"]
|
|
2601
|
-
},
|
|
2602
|
-
children: [
|
|
2603
|
-
/* @__PURE__ */ n(
|
|
2604
|
-
xe,
|
|
2605
|
-
{
|
|
2606
|
-
name: "x",
|
|
2607
|
-
onFocus: l,
|
|
2608
|
-
classes: {
|
|
2609
|
-
main: "bg-transparent px-1"
|
|
2610
|
-
},
|
|
2611
|
-
size: "28",
|
|
2612
|
-
value: C,
|
|
2613
|
-
onChange: R,
|
|
2614
|
-
mode: "onBlur",
|
|
2615
|
-
placeholder: "X",
|
|
2616
|
-
css: { textAlign: "center" }
|
|
2617
|
-
}
|
|
2618
|
-
),
|
|
2619
|
-
/* @__PURE__ */ n("span", { css: { color: S.palette.white["3s"], ...S.text.xs }, children: "/" }),
|
|
2620
|
-
/* @__PURE__ */ n(
|
|
2621
|
-
xe,
|
|
2622
|
-
{
|
|
2623
|
-
name: "y",
|
|
2624
|
-
placeholder: "Y",
|
|
2625
|
-
value: x,
|
|
2626
|
-
mode: "onBlur",
|
|
2627
|
-
onChange: R,
|
|
2628
|
-
onFocus: l,
|
|
2629
|
-
classes: {
|
|
2630
|
-
main: "bg-transparent px-1"
|
|
2631
|
-
},
|
|
2632
|
-
size: "28",
|
|
2633
|
-
css: { textAlign: "center" }
|
|
2634
|
-
}
|
|
2635
|
-
)
|
|
2636
|
-
]
|
|
2637
|
-
}
|
|
2638
|
-
) })
|
|
2639
|
-
] });
|
|
2640
|
-
}, Da = () => {
|
|
2641
|
-
const { nodeProps: e, setNodeProps: o } = Se();
|
|
2642
|
-
return /* @__PURE__ */ u("div", { css: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
2643
|
-
/* @__PURE__ */ n(P, { name: "Choose image" }),
|
|
2644
|
-
/* @__PURE__ */ n(mo, { onChange: (t) => {
|
|
2645
|
-
o({
|
|
2646
|
-
src: t
|
|
2647
|
-
});
|
|
2648
|
-
}, source: e.src })
|
|
2649
|
-
] });
|
|
2650
|
-
}, Yi = () => {
|
|
2651
|
-
const { currentScreen: e, getResponsiveProp: o } = B(), { readOnly: r } = Q((x) => ({
|
|
2652
|
-
readOnly: x.dom?.getAttribute("aria-readonly") === X.True
|
|
2653
|
-
})), { nodeProps: t, setNodeProps: a } = Se(), i = o(t.sx ?? {}, "aspectRatio") ?? "auto", s = (x, R = e) => {
|
|
2654
|
-
a({ sx: W(x, R) });
|
|
2655
|
-
}, d = {
|
|
2656
|
-
width: o(t.sx ?? {}, "width")
|
|
2657
|
-
}, l = {
|
|
2658
|
-
height: o(t.sx ?? {}, "height")
|
|
2659
|
-
}, c = {
|
|
2660
|
-
objectFit: o(t.sx ?? {}, "objectFit")
|
|
2661
|
-
}, h = (x) => {
|
|
2662
|
-
s(
|
|
2663
|
-
{
|
|
2664
|
-
objectFit: x.objectFit ?? "cover"
|
|
2665
|
-
},
|
|
2666
|
-
"xs"
|
|
2667
|
-
);
|
|
2668
|
-
}, g = {
|
|
2669
|
-
paddingBottom: o(t.sx ?? {}, "paddingBottom"),
|
|
2670
|
-
paddingLeft: o(t.sx ?? {}, "paddingLeft"),
|
|
2671
|
-
paddingRight: o(t.sx ?? {}, "paddingRight"),
|
|
2672
|
-
paddingTop: o(t.sx ?? {}, "paddingTop"),
|
|
2673
|
-
marginBottom: o(t.sx ?? {}, "marginBottom"),
|
|
2674
|
-
marginLeft: o(t.sx ?? {}, "marginLeft"),
|
|
2675
|
-
marginRight: o(t.sx ?? {}, "marginRight"),
|
|
2676
|
-
marginTop: o(t.sx ?? {}, "marginTop")
|
|
2677
|
-
}, b = {
|
|
2678
|
-
borderStyle: o(t.sx ?? {}, "borderStyle"),
|
|
2679
|
-
borderColor: o(t.sx ?? {}, "borderColor"),
|
|
2680
|
-
borderTopWidth: o(t.sx ?? {}, "borderTopWidth"),
|
|
2681
|
-
borderRightWidth: o(t.sx ?? {}, "borderRightWidth"),
|
|
2682
|
-
borderBottomWidth: o(t.sx ?? {}, "borderBottomWidth"),
|
|
2683
|
-
borderLeftWidth: o(t.sx ?? {}, "borderLeftWidth")
|
|
2684
|
-
}, C = {
|
|
2685
|
-
borderTopLeftRadius: o(t.sx ?? {}, "borderTopLeftRadius"),
|
|
2686
|
-
borderTopRightRadius: o(t.sx ?? {}, "borderTopRightRadius"),
|
|
2687
|
-
borderBottomRightRadius: o(t.sx ?? {}, "borderBottomRightRadius"),
|
|
2688
|
-
borderBottomLeftRadius: o(t.sx ?? {}, "borderBottomLeftRadius")
|
|
2689
|
-
};
|
|
2690
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
2691
|
-
/* @__PURE__ */ u(O, { children: [
|
|
2692
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
2693
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
2694
|
-
] }),
|
|
2695
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
2696
|
-
/* @__PURE__ */ u(L, { children: [
|
|
2697
|
-
/* @__PURE__ */ u(m, { name: "Image", children: [
|
|
2698
|
-
!r && /* @__PURE__ */ n(Da, {}),
|
|
2699
|
-
/* @__PURE__ */ n(Ba, {})
|
|
2700
|
-
] }),
|
|
2701
|
-
/* @__PURE__ */ u(m, { name: "Size", children: [
|
|
2702
|
-
/* @__PURE__ */ n(Aa, {}),
|
|
2703
|
-
/* @__PURE__ */ n(V, { value: d, onChange: s }),
|
|
2704
|
-
i === "auto" && /* @__PURE__ */ n(ce, { value: l, onChange: s }),
|
|
2705
|
-
/* @__PURE__ */ n(fo, { value: c, onChange: h })
|
|
2706
|
-
] }),
|
|
2707
|
-
/* @__PURE__ */ n(m, { name: "SEO", children: /* @__PURE__ */ n(Ia, {}) })
|
|
2708
|
-
] }),
|
|
2709
|
-
/* @__PURE__ */ u(L, { children: [
|
|
2710
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: g, onChange: s }) }),
|
|
2711
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
2712
|
-
/* @__PURE__ */ n(_, { value: b, onChange: s }),
|
|
2713
|
-
/* @__PURE__ */ n($, { value: C, onChange: s })
|
|
2714
|
-
] })
|
|
2715
|
-
] })
|
|
2716
|
-
] })
|
|
2717
|
-
] });
|
|
2718
|
-
}, Oa = () => A({
|
|
2719
|
-
transform: Lo
|
|
2720
|
-
}), Fa = () => {
|
|
2721
|
-
const { nodeDOM: e } = Q((i) => ({
|
|
2722
|
-
nodeDOM: i.dom
|
|
2723
|
-
})), o = (i) => i?.getAttribute(Ye.PlayState) || "on", [r, t] = U(!1), a = () => {
|
|
2724
|
-
const i = o(e);
|
|
2725
|
-
e?.setAttribute(Ye.PlayState, i === "on" ? "off" : "on");
|
|
2726
|
-
};
|
|
2727
|
-
return ve(() => {
|
|
2728
|
-
const i = new MutationObserver((s) => {
|
|
2729
|
-
const d = s.at(0)?.target;
|
|
2730
|
-
if (!d) return;
|
|
2731
|
-
const l = o(d);
|
|
2732
|
-
t(l === "on");
|
|
2733
|
-
});
|
|
2734
|
-
return e && i.observe(e, {
|
|
2735
|
-
attributes: !0,
|
|
2736
|
-
attributeFilter: [Ye.PlayState]
|
|
2737
|
-
}), () => {
|
|
2738
|
-
i.disconnect();
|
|
2739
|
-
};
|
|
2740
|
-
}, [e]), /* @__PURE__ */ n(K, { onClick: a, children: r ? "Pause" : "Play" });
|
|
2741
|
-
}, Ma = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2742
|
-
<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"/>
|
|
2743
|
-
</svg>
|
|
2744
|
-
`, Zi = () => {
|
|
2745
|
-
const { nodeProps: e, setNodeProps: o, setNodeResponsiveProps: r } = Oa(), { currentScreen: t, getResponsiveProp: a } = B(), i = (f, v = t) => {
|
|
2746
|
-
o({ sx: W(f, v) });
|
|
2747
|
-
};
|
|
2748
|
-
a(e.sx ?? {}, "columnGap");
|
|
2749
|
-
const s = {
|
|
2750
|
-
paddingBottom: a(e.sx ?? {}, "paddingBottom"),
|
|
2751
|
-
paddingLeft: a(e.sx ?? {}, "paddingLeft"),
|
|
2752
|
-
paddingRight: a(e.sx ?? {}, "paddingRight"),
|
|
2753
|
-
paddingTop: a(e.sx ?? {}, "paddingTop"),
|
|
2754
|
-
marginBottom: a(e.sx ?? {}, "marginBottom"),
|
|
2755
|
-
marginLeft: a(e.sx ?? {}, "marginLeft"),
|
|
2756
|
-
marginRight: a(e.sx ?? {}, "marginRight"),
|
|
2757
|
-
marginTop: a(e.sx ?? {}, "marginTop")
|
|
2758
|
-
}, d = {
|
|
2759
|
-
borderStyle: a(e.sx ?? {}, "borderStyle"),
|
|
2760
|
-
borderColor: a(e.sx ?? {}, "borderColor"),
|
|
2761
|
-
borderTopWidth: a(e.sx ?? {}, "borderTopWidth"),
|
|
2762
|
-
borderRightWidth: a(e.sx ?? {}, "borderRightWidth"),
|
|
2763
|
-
borderBottomWidth: a(e.sx ?? {}, "borderBottomWidth"),
|
|
2764
|
-
borderLeftWidth: a(e.sx ?? {}, "borderLeftWidth")
|
|
2765
|
-
}, l = {
|
|
2766
|
-
borderTopLeftRadius: a(e.sx ?? {}, "borderTopLeftRadius"),
|
|
2767
|
-
borderTopRightRadius: a(e.sx ?? {}, "borderTopRightRadius"),
|
|
2768
|
-
borderBottomRightRadius: a(e.sx ?? {}, "borderBottomRightRadius"),
|
|
2769
|
-
borderBottomLeftRadius: a(e.sx ?? {}, "borderBottomLeftRadius")
|
|
2770
|
-
}, c = {
|
|
2771
|
-
backgroundColor: a(e.sx ?? {}, "backgroundColor"),
|
|
2772
|
-
backgroundImage: a(e.sx ?? {}, "backgroundImage"),
|
|
2773
|
-
backgroundPosition: a(e.sx ?? {}, "backgroundPosition"),
|
|
2774
|
-
backgroundRepeat: a(e.sx ?? {}, "backgroundRepeat"),
|
|
2775
|
-
background: a(e.sx ?? {}, "background"),
|
|
2776
|
-
backgroundSize: a(e.sx ?? {}, "backgroundSize"),
|
|
2777
|
-
backgroundAttachment: a(e.sx ?? {}, "backgroundAttachment")
|
|
2778
|
-
}, h = () => /* @__PURE__ */ n(
|
|
2779
|
-
j,
|
|
2780
|
-
{
|
|
2781
|
-
canvas: !0,
|
|
2782
|
-
custom: {
|
|
2783
|
-
displayName: "Marquee Item (new)"
|
|
2784
|
-
},
|
|
2785
|
-
is: At
|
|
2786
|
-
}
|
|
2787
|
-
), g = (f) => {
|
|
2788
|
-
o({
|
|
2789
|
-
separatorIcon: f.target.checked ? {
|
|
2790
|
-
source: Ma
|
|
2791
|
-
} : void 0
|
|
2792
|
-
});
|
|
2793
|
-
}, b = (f) => {
|
|
2794
|
-
o({
|
|
2795
|
-
separatorIcon: {
|
|
2796
|
-
source: f
|
|
2797
|
-
}
|
|
2798
|
-
});
|
|
2799
|
-
}, C = (f) => {
|
|
2800
|
-
o({
|
|
2801
|
-
separatorIcon: {
|
|
2802
|
-
sx: f
|
|
2803
|
-
}
|
|
2804
|
-
});
|
|
2805
|
-
}, x = (f) => {
|
|
2806
|
-
o({
|
|
2807
|
-
separatorIcon: {
|
|
2808
|
-
size: f
|
|
2809
|
-
}
|
|
2810
|
-
});
|
|
2811
|
-
}, R = (f) => {
|
|
2812
|
-
r(
|
|
2813
|
-
{
|
|
2814
|
-
spaceBetween: f
|
|
2815
|
-
},
|
|
2816
|
-
t
|
|
2817
|
-
);
|
|
2818
|
-
};
|
|
2819
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
2820
|
-
/* @__PURE__ */ u(O, { children: [
|
|
2821
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
2822
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
2823
|
-
] }),
|
|
2824
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
2825
|
-
/* @__PURE__ */ u(L, { children: [
|
|
2826
|
-
/* @__PURE__ */ n(m, { name: "Items", children: /* @__PURE__ */ n(Ce, { getNewNodeElement: h }) }),
|
|
2827
|
-
/* @__PURE__ */ u(m, { name: "States", children: [
|
|
2828
|
-
/* @__PURE__ */ n(
|
|
2829
|
-
Be,
|
|
2830
|
-
{
|
|
2831
|
-
value: a(e, "spaceBetween"),
|
|
2832
|
-
name: "Items spacing",
|
|
2833
|
-
responsive: !0,
|
|
2834
|
-
onChange: R
|
|
2835
|
-
}
|
|
2836
|
-
),
|
|
2837
|
-
/* @__PURE__ */ n(Fa, {})
|
|
2838
|
-
] }),
|
|
2839
|
-
/* @__PURE__ */ n(
|
|
2840
|
-
m,
|
|
2841
|
-
{
|
|
2842
|
-
name: "Separator",
|
|
2843
|
-
slots: {
|
|
2844
|
-
right: /* @__PURE__ */ n(le, { onChange: g, checked: !!e.separatorIcon })
|
|
2845
|
-
},
|
|
2846
|
-
children: e.separatorIcon && /* @__PURE__ */ u(Nt, { children: [
|
|
2847
|
-
/* @__PURE__ */ n(
|
|
2848
|
-
Ne,
|
|
2849
|
-
{
|
|
2850
|
-
name: "Icon",
|
|
2851
|
-
source: e.separatorIcon.source,
|
|
2852
|
-
onChange: b
|
|
2853
|
-
}
|
|
2854
|
-
),
|
|
2855
|
-
/* @__PURE__ */ n(
|
|
2856
|
-
ge,
|
|
2857
|
-
{
|
|
2858
|
-
value: {
|
|
2859
|
-
color: e.separatorIcon.sx?.color
|
|
2860
|
-
},
|
|
2861
|
-
onChange: C
|
|
2862
|
-
}
|
|
2863
|
-
),
|
|
2864
|
-
/* @__PURE__ */ n(
|
|
2865
|
-
Be,
|
|
2866
|
-
{
|
|
2867
|
-
value: e.separatorIcon.size ?? 24,
|
|
2868
|
-
name: "Size (px)",
|
|
2869
|
-
onChange: x
|
|
2870
|
-
}
|
|
2871
|
-
)
|
|
2872
|
-
] })
|
|
2873
|
-
}
|
|
2874
|
-
)
|
|
2875
|
-
] }),
|
|
2876
|
-
/* @__PURE__ */ u(L, { children: [
|
|
2877
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: s, onChange: i }) }),
|
|
2878
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
2879
|
-
/* @__PURE__ */ n(_, { value: d, onChange: i }),
|
|
2880
|
-
/* @__PURE__ */ n($, { value: l, onChange: i })
|
|
2881
|
-
] }),
|
|
2882
|
-
/* @__PURE__ */ n(m, { name: "Background", children: /* @__PURE__ */ n(Z, { value: c, onChange: i }) })
|
|
2883
|
-
] })
|
|
2884
|
-
] })
|
|
2885
|
-
] });
|
|
2886
|
-
}, kn = (e) => A({
|
|
2887
|
-
transform: Po,
|
|
2888
|
-
nodeId: e
|
|
2889
|
-
}), za = ({ tabIndex: e, tabNodeId: o }) => {
|
|
2890
|
-
const [r, t] = U(!1), [a, i] = Qt(e === 0), { nodeProps: s, setNodeProps: d } = Ha(o), { actions: l, query: c } = ne(), { tabNode: h, tabPanelNode: g } = Q((f) => {
|
|
2891
|
-
const v = f.data.nodes.find(
|
|
2892
|
-
(N) => he(c.node(N).get()) === T.TabList
|
|
2893
|
-
);
|
|
2894
|
-
if (!v)
|
|
2895
|
-
throw new Error("Tab list node not found");
|
|
2896
|
-
const y = c.node(v).get().data.nodes.at(e);
|
|
2897
|
-
if (!y)
|
|
2898
|
-
throw new Error("Tab node not found");
|
|
2899
|
-
const w = f.data.nodes.find(
|
|
2900
|
-
(N) => he(c.node(N).get()) === T.TabContent
|
|
2901
|
-
);
|
|
2902
|
-
if (!w)
|
|
2903
|
-
throw new Error("Tab content node not found");
|
|
2904
|
-
const I = c.node(w).get().data.nodes.at(e);
|
|
2905
|
-
if (!I)
|
|
2906
|
-
throw new Error("Tab panel node not found");
|
|
2907
|
-
return {
|
|
2908
|
-
tabNode: c.node(y).get(),
|
|
2909
|
-
tabPanelNode: c.node(I).get()
|
|
2910
|
-
};
|
|
2911
|
-
}), b = (f) => {
|
|
2912
|
-
f.stopPropagation(), l.delete(h.id), l.delete(g.id);
|
|
2913
|
-
}, C = () => {
|
|
2914
|
-
t(!0);
|
|
2915
|
-
}, x = () => {
|
|
2916
|
-
t(!1);
|
|
2917
|
-
}, R = (f) => {
|
|
2918
|
-
d({
|
|
2919
|
-
dangerouslySetInnerHTML: {
|
|
2920
|
-
__html: f.target.value || s.dangerouslySetInnerHTML?.__html || ""
|
|
2921
|
-
}
|
|
2922
|
-
});
|
|
2923
|
-
};
|
|
2924
|
-
return /* @__PURE__ */ n(nn, { index: e, draggableId: e.toString(), children: (f) => /* @__PURE__ */ u(
|
|
2925
|
-
"div",
|
|
2926
|
-
{
|
|
2927
|
-
css: {
|
|
2928
|
-
borderRadius: 8,
|
|
2929
|
-
overflow: "hidden",
|
|
2930
|
-
borderWidth: 1,
|
|
2931
|
-
borderStyle: "solid",
|
|
2932
|
-
borderColor: S.palette.white["2s"]
|
|
2933
|
-
},
|
|
2934
|
-
ref: f.innerRef,
|
|
2935
|
-
...f.draggableProps,
|
|
2936
|
-
...f.dragHandleProps,
|
|
2937
|
-
children: [
|
|
2938
|
-
/* @__PURE__ */ u(
|
|
2939
|
-
"div",
|
|
2940
|
-
{
|
|
2941
|
-
css: {
|
|
2942
|
-
display: "flex",
|
|
2943
|
-
alignItems: "center",
|
|
2944
|
-
gap: 4,
|
|
2945
|
-
paddingInline: 8,
|
|
2946
|
-
paddingBlock: 6,
|
|
2947
|
-
backgroundColor: S.palette.white["1s"],
|
|
2948
|
-
"&:hover": { backgroundColor: S.palette.white["2s"] },
|
|
2949
|
-
...S.text.xs
|
|
2950
|
-
},
|
|
2951
|
-
onMouseEnter: C,
|
|
2952
|
-
onMouseLeave: x,
|
|
2953
|
-
"aria-hidden": !0,
|
|
2954
|
-
children: [
|
|
2955
|
-
/* @__PURE__ */ n(E, { source: st }),
|
|
2956
|
-
/* @__PURE__ */ n(
|
|
2957
|
-
"span",
|
|
2958
|
-
{
|
|
2959
|
-
css: {
|
|
2960
|
-
overflow: "hidden",
|
|
2961
|
-
textOverflow: "ellipsis",
|
|
2962
|
-
whiteSpace: "nowrap",
|
|
2963
|
-
flex: 1
|
|
2964
|
-
},
|
|
2965
|
-
children: rt(h)
|
|
2966
|
-
}
|
|
2967
|
-
),
|
|
2968
|
-
/* @__PURE__ */ n(Ie, { open: r || a, orientation: "horizontal", children: /* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
2969
|
-
/* @__PURE__ */ n(G, { onClick: b, children: /* @__PURE__ */ n(E, { source: dt }) }),
|
|
2970
|
-
/* @__PURE__ */ n(G, { onClick: i, children: /* @__PURE__ */ n(
|
|
2971
|
-
E,
|
|
2972
|
-
{
|
|
2973
|
-
css: [{ transition: "transform" }, a && { transform: "rotate(-180deg)" }],
|
|
2974
|
-
source: ct
|
|
2975
|
-
}
|
|
2976
|
-
) })
|
|
2977
|
-
] }) })
|
|
2978
|
-
]
|
|
2979
|
-
}
|
|
2980
|
-
),
|
|
2981
|
-
/* @__PURE__ */ n(Ie, { open: a, children: /* @__PURE__ */ n("div", { css: { padding: 8, display: "flex", flexDirection: "column", gap: 16 }, children: /* @__PURE__ */ n(P, { name: "Content", children: /* @__PURE__ */ n(
|
|
2982
|
-
se,
|
|
2983
|
-
{
|
|
2984
|
-
onChange: R,
|
|
2985
|
-
value: s.dangerouslySetInnerHTML?.__html.toString() ?? "",
|
|
2986
|
-
mode: "onBlur"
|
|
2987
|
-
}
|
|
2988
|
-
) }) }) })
|
|
2989
|
-
]
|
|
2990
|
-
}
|
|
2991
|
-
) });
|
|
2992
|
-
}, $a = () => {
|
|
2993
|
-
const { query: e, actions: o } = ne(), { id: r, tabListNode: t, tabContentNode: a } = Q((d) => {
|
|
2994
|
-
const l = d.data.nodes.find(
|
|
2995
|
-
(h) => he(e.node(h).get()) === T.TabList
|
|
2996
|
-
);
|
|
2997
|
-
if (!l)
|
|
2998
|
-
throw new Error("Tab list node not found");
|
|
2999
|
-
const c = d.data.nodes.find(
|
|
3000
|
-
(h) => he(e.node(h).get()) === T.TabContent
|
|
3001
|
-
);
|
|
3002
|
-
if (!c)
|
|
3003
|
-
throw new Error("Tab content node not found");
|
|
3004
|
-
return {
|
|
3005
|
-
tabListNode: e.node(l).get(),
|
|
3006
|
-
tabContentNode: e.node(c).get()
|
|
3007
|
-
};
|
|
3008
|
-
});
|
|
3009
|
-
return /* @__PURE__ */ u("div", { children: [
|
|
3010
|
-
/* @__PURE__ */ n(en, { onDragEnd: (d) => {
|
|
3011
|
-
const { source: l, destination: c } = d;
|
|
3012
|
-
if (!c || l.index === c.index) return;
|
|
3013
|
-
const h = t.data.nodes.at(l.index), g = a.data.nodes.at(l.index);
|
|
3014
|
-
h && g && (o.move({
|
|
3015
|
-
nodeId: h,
|
|
3016
|
-
sourceIndex: l.index,
|
|
3017
|
-
destinationIndex: c.index
|
|
3018
|
-
}), o.move({
|
|
3019
|
-
nodeId: g,
|
|
3020
|
-
sourceIndex: l.index,
|
|
3021
|
-
destinationIndex: c.index
|
|
3022
|
-
}));
|
|
3023
|
-
}, children: /* @__PURE__ */ n(tn, { droppableId: r, children: (d) => /* @__PURE__ */ u(
|
|
3024
|
-
"div",
|
|
3025
|
-
{
|
|
3026
|
-
ref: d.innerRef,
|
|
3027
|
-
...d.droppableProps,
|
|
3028
|
-
css: { display: "flex", flexDirection: "column", gap: 8 },
|
|
3029
|
-
children: [
|
|
3030
|
-
t.data.nodes.map((l, c) => /* @__PURE__ */ n(za, { tabNodeId: l, tabIndex: c }, l)),
|
|
3031
|
-
d.placeholder
|
|
3032
|
-
]
|
|
3033
|
-
}
|
|
3034
|
-
) }) }),
|
|
3035
|
-
/* @__PURE__ */ n(K, { css: { marginTop: 8 }, onClick: () => {
|
|
3036
|
-
const d = e.parseReactElement(
|
|
3037
|
-
/* @__PURE__ */ n(
|
|
3038
|
-
j,
|
|
3039
|
-
{
|
|
3040
|
-
canvas: !0,
|
|
3041
|
-
is: Dt,
|
|
3042
|
-
dangerouslySetInnerHTML: {
|
|
3043
|
-
__html: "Tab (new)"
|
|
3044
|
-
}
|
|
3045
|
-
}
|
|
3046
|
-
)
|
|
3047
|
-
).toNodeTree();
|
|
3048
|
-
o.addNodeTree(d, t.id);
|
|
3049
|
-
const l = e.parseReactElement(/* @__PURE__ */ n(j, { canvas: !0, is: Ot })).toNodeTree();
|
|
3050
|
-
o.addNodeTree(l, a.id);
|
|
3051
|
-
}, fullWidth: !0, prefix: /* @__PURE__ */ n(E, { source: jt }), children: "Add more" })
|
|
3052
|
-
] });
|
|
3053
|
-
}, _a = () => {
|
|
3054
|
-
const { query: e } = ne(), { nodeProps: o, setNodeProps: r } = kn(), { selectOptions: t } = Q((i) => {
|
|
3055
|
-
const s = i.data.nodes.find(
|
|
3056
|
-
(l) => he(e.node(l).get()) === T.TabList
|
|
3057
|
-
);
|
|
3058
|
-
if (!s)
|
|
3059
|
-
throw new Error("Tab list node not found");
|
|
3060
|
-
return {
|
|
3061
|
-
selectOptions: e.node(s).get().data.nodes.map((l, c) => ({
|
|
3062
|
-
value: c,
|
|
3063
|
-
label: e.node(l).get().data.props.dangerouslySetInnerHTML?.__html.toString() ?? "Tab"
|
|
3064
|
-
}))
|
|
3065
|
-
};
|
|
3066
|
-
}), a = (i) => {
|
|
3067
|
-
r({
|
|
3068
|
-
defaultActiveIndex: i
|
|
3069
|
-
});
|
|
3070
|
-
};
|
|
3071
|
-
return /* @__PURE__ */ n(P, { name: "Default active", children: /* @__PURE__ */ n(
|
|
3072
|
-
lt,
|
|
3073
|
-
{
|
|
3074
|
-
value: o.defaultActiveIndex ?? 0,
|
|
3075
|
-
options: t,
|
|
3076
|
-
placeholder: "Select a tab",
|
|
3077
|
-
onChange: a
|
|
3078
|
-
}
|
|
3079
|
-
) });
|
|
3080
|
-
}, Xi = () => {
|
|
3081
|
-
const { nodeProps: e, setNodeProps: o } = kn(), { currentScreen: r, getResponsiveProp: t } = B(), a = (h, g = r) => {
|
|
3082
|
-
o({ sx: W(h, g) });
|
|
3083
|
-
}, i = {
|
|
3084
|
-
paddingBottom: t(e.sx ?? {}, "paddingBottom"),
|
|
3085
|
-
paddingLeft: t(e.sx ?? {}, "paddingLeft"),
|
|
3086
|
-
paddingRight: t(e.sx ?? {}, "paddingRight"),
|
|
3087
|
-
paddingTop: t(e.sx ?? {}, "paddingTop"),
|
|
3088
|
-
marginBottom: t(e.sx ?? {}, "marginBottom"),
|
|
3089
|
-
marginLeft: t(e.sx ?? {}, "marginLeft"),
|
|
3090
|
-
marginRight: t(e.sx ?? {}, "marginRight"),
|
|
3091
|
-
marginTop: t(e.sx ?? {}, "marginTop")
|
|
3092
|
-
}, s = {
|
|
3093
|
-
borderStyle: t(e.sx ?? {}, "borderStyle"),
|
|
3094
|
-
borderColor: t(e.sx ?? {}, "borderColor"),
|
|
3095
|
-
borderTopWidth: t(e.sx ?? {}, "borderTopWidth"),
|
|
3096
|
-
borderRightWidth: t(e.sx ?? {}, "borderRightWidth"),
|
|
3097
|
-
borderBottomWidth: t(e.sx ?? {}, "borderBottomWidth"),
|
|
3098
|
-
borderLeftWidth: t(e.sx ?? {}, "borderLeftWidth")
|
|
3099
|
-
}, d = {
|
|
3100
|
-
borderTopLeftRadius: t(e.sx ?? {}, "borderTopLeftRadius"),
|
|
3101
|
-
borderTopRightRadius: t(e.sx ?? {}, "borderTopRightRadius"),
|
|
3102
|
-
borderBottomRightRadius: t(e.sx ?? {}, "borderBottomRightRadius"),
|
|
3103
|
-
borderBottomLeftRadius: t(e.sx ?? {}, "borderBottomLeftRadius")
|
|
3104
|
-
}, l = {
|
|
3105
|
-
backgroundColor: t(e.sx ?? {}, "backgroundColor"),
|
|
3106
|
-
backgroundImage: t(e.sx ?? {}, "backgroundImage"),
|
|
3107
|
-
backgroundPosition: t(e.sx ?? {}, "backgroundPosition"),
|
|
3108
|
-
backgroundRepeat: t(e.sx ?? {}, "backgroundRepeat"),
|
|
3109
|
-
background: t(e.sx ?? {}, "background"),
|
|
3110
|
-
backgroundSize: t(e.sx ?? {}, "backgroundSize"),
|
|
3111
|
-
backgroundAttachment: t(e.sx ?? {}, "backgroundAttachment")
|
|
3112
|
-
}, c = {
|
|
3113
|
-
width: t(e.sx ?? {}, "width") ?? "auto"
|
|
3114
|
-
};
|
|
3115
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
3116
|
-
/* @__PURE__ */ u(O, { children: [
|
|
3117
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
3118
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
3119
|
-
] }),
|
|
3120
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
3121
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3122
|
-
/* @__PURE__ */ u(m, { name: "Items management", children: [
|
|
3123
|
-
/* @__PURE__ */ n($a, {}),
|
|
3124
|
-
/* @__PURE__ */ n(_a, {})
|
|
3125
|
-
] }),
|
|
3126
|
-
/* @__PURE__ */ n(m, { name: "Size", children: /* @__PURE__ */ n(V, { onChange: a, value: c }) })
|
|
3127
|
-
] }),
|
|
3128
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3129
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: i, onChange: a }) }),
|
|
3130
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
3131
|
-
/* @__PURE__ */ n(_, { value: s, onChange: a }),
|
|
3132
|
-
/* @__PURE__ */ n($, { value: d, onChange: a })
|
|
3133
|
-
] }),
|
|
3134
|
-
/* @__PURE__ */ n(m, { name: "Background", children: /* @__PURE__ */ n(Z, { value: l, onChange: a }) })
|
|
3135
|
-
] })
|
|
3136
|
-
] })
|
|
3137
|
-
] });
|
|
3138
|
-
}, Ha = (e) => A({
|
|
3139
|
-
nodeId: e
|
|
3140
|
-
}), qe = () => A({
|
|
3141
|
-
transform: Io
|
|
3142
|
-
}), Va = () => {
|
|
3143
|
-
const { nodeProps: e, setNodeProps: o } = qe(), r = (t) => {
|
|
3144
|
-
const a = isNaN(t.target.valueAsNumber) ? void 0 : t.target.valueAsNumber;
|
|
3145
|
-
o({
|
|
3146
|
-
autoplayOptions: {
|
|
3147
|
-
delay: a ?? e.autoplayOptions?.delay
|
|
3148
|
-
}
|
|
3149
|
-
});
|
|
3150
|
-
};
|
|
3151
|
-
return /* @__PURE__ */ n(P, { name: "Delay", children: /* @__PURE__ */ n("div", { css: { width: "50%" }, children: /* @__PURE__ */ n(xe, { value: e.autoplayOptions?.delay, mode: "onBlur", onChange: r }) }) });
|
|
3152
|
-
}, ja = () => {
|
|
3153
|
-
const { nodeProps: e, setNodeProps: o } = qe(), r = (t) => {
|
|
3154
|
-
o({
|
|
3155
|
-
autoplayOptions: {
|
|
3156
|
-
stopOnLastSnap: !t.target.checked
|
|
3157
|
-
}
|
|
3158
|
-
});
|
|
3159
|
-
};
|
|
3160
|
-
return /* @__PURE__ */ n(P, { name: "Loop", children: /* @__PURE__ */ n(le, { checked: !e.autoplayOptions?.stopOnLastSnap, onChange: r }) });
|
|
3161
|
-
}, Ua = () => {
|
|
3162
|
-
const { getResponsiveProp: e, currentScreen: o } = B(), { nodeProps: r, setNodeResponsiveProps: t } = qe(), a = e(r, "slidesPerView");
|
|
3163
|
-
return /* @__PURE__ */ n(P, { name: "Items per view", responsive: !0, children: /* @__PURE__ */ n(
|
|
3164
|
-
bo,
|
|
3165
|
-
{
|
|
3166
|
-
css: {
|
|
3167
|
-
width: "50%"
|
|
3168
|
-
},
|
|
3169
|
-
onChange: (s) => {
|
|
3170
|
-
t(
|
|
3171
|
-
{
|
|
3172
|
-
slidesPerView: s
|
|
3173
|
-
},
|
|
3174
|
-
o
|
|
3175
|
-
);
|
|
3176
|
-
},
|
|
3177
|
-
value: a,
|
|
3178
|
-
options: [
|
|
3179
|
-
{
|
|
3180
|
-
label: "auto",
|
|
3181
|
-
value: "auto"
|
|
3182
|
-
}
|
|
3183
|
-
]
|
|
3184
|
-
}
|
|
3185
|
-
) });
|
|
3186
|
-
}, Qi = () => {
|
|
3187
|
-
const { nodeProps: e, setNodeResponsiveProps: o, setNodeProps: r } = qe(), { getResponsiveProp: t, currentScreen: a } = B(), i = (R, f = a) => {
|
|
3188
|
-
r({ sx: W(R, f) });
|
|
3189
|
-
}, s = () => /* @__PURE__ */ n(
|
|
3190
|
-
j,
|
|
3191
|
-
{
|
|
3192
|
-
custom: {
|
|
3193
|
-
displayName: "Slide new"
|
|
3194
|
-
},
|
|
3195
|
-
is: Ft,
|
|
3196
|
-
canvas: !0
|
|
3197
|
-
}
|
|
3198
|
-
), d = {
|
|
3199
|
-
columnGap: t(e, "spaceBetween") ?? 0
|
|
3200
|
-
}, l = ({ columnGap: R }) => {
|
|
3201
|
-
o({ spaceBetween: to(R) ? R : void 0 }, a);
|
|
3202
|
-
}, c = (R) => {
|
|
3203
|
-
r({
|
|
3204
|
-
autoplayOptions: {
|
|
3205
|
-
active: R.target.checked
|
|
3206
|
-
}
|
|
3207
|
-
});
|
|
3208
|
-
}, h = e.autoplayOptions?.active ?? !1, g = {
|
|
3209
|
-
paddingBottom: t(e.sx ?? {}, "paddingBottom"),
|
|
3210
|
-
paddingLeft: t(e.sx ?? {}, "paddingLeft"),
|
|
3211
|
-
paddingRight: t(e.sx ?? {}, "paddingRight"),
|
|
3212
|
-
paddingTop: t(e.sx ?? {}, "paddingTop"),
|
|
3213
|
-
marginBottom: t(e.sx ?? {}, "marginBottom"),
|
|
3214
|
-
marginLeft: t(e.sx ?? {}, "marginLeft"),
|
|
3215
|
-
marginRight: t(e.sx ?? {}, "marginRight"),
|
|
3216
|
-
marginTop: t(e.sx ?? {}, "marginTop")
|
|
3217
|
-
}, b = {
|
|
3218
|
-
borderStyle: t(e.sx ?? {}, "borderStyle"),
|
|
3219
|
-
borderColor: t(e.sx ?? {}, "borderColor"),
|
|
3220
|
-
borderTopWidth: t(e.sx ?? {}, "borderTopWidth"),
|
|
3221
|
-
borderRightWidth: t(e.sx ?? {}, "borderRightWidth"),
|
|
3222
|
-
borderBottomWidth: t(e.sx ?? {}, "borderBottomWidth"),
|
|
3223
|
-
borderLeftWidth: t(e.sx ?? {}, "borderLeftWidth")
|
|
3224
|
-
}, C = {
|
|
3225
|
-
borderTopLeftRadius: t(e.sx ?? {}, "borderTopLeftRadius"),
|
|
3226
|
-
borderTopRightRadius: t(e.sx ?? {}, "borderTopRightRadius"),
|
|
3227
|
-
borderBottomRightRadius: t(e.sx ?? {}, "borderBottomRightRadius"),
|
|
3228
|
-
borderBottomLeftRadius: t(e.sx ?? {}, "borderBottomLeftRadius")
|
|
3229
|
-
}, x = {
|
|
3230
|
-
backgroundColor: t(e.sx ?? {}, "backgroundColor"),
|
|
3231
|
-
backgroundImage: t(e.sx ?? {}, "backgroundImage"),
|
|
3232
|
-
backgroundPosition: t(e.sx ?? {}, "backgroundPosition"),
|
|
3233
|
-
backgroundRepeat: t(e.sx ?? {}, "backgroundRepeat"),
|
|
3234
|
-
background: t(e.sx ?? {}, "background"),
|
|
3235
|
-
backgroundSize: t(e.sx ?? {}, "backgroundSize"),
|
|
3236
|
-
backgroundAttachment: t(e.sx ?? {}, "backgroundAttachment")
|
|
3237
|
-
};
|
|
3238
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
3239
|
-
/* @__PURE__ */ u(O, { children: [
|
|
3240
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
3241
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
3242
|
-
] }),
|
|
3243
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
3244
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3245
|
-
/* @__PURE__ */ u(m, { name: "Display", children: [
|
|
3246
|
-
/* @__PURE__ */ n(Ua, {}),
|
|
3247
|
-
/* @__PURE__ */ n(at, { value: d, onChange: l, name: "Items spacing" })
|
|
3248
|
-
] }),
|
|
3249
|
-
/* @__PURE__ */ n(m, { name: "Item management", children: /* @__PURE__ */ n(Ce, { getNewNodeElement: s }) }),
|
|
3250
|
-
/* @__PURE__ */ n(
|
|
3251
|
-
m,
|
|
3252
|
-
{
|
|
3253
|
-
name: "Autoplay",
|
|
3254
|
-
slots: {
|
|
3255
|
-
right: /* @__PURE__ */ n(le, { onChange: c, checked: h })
|
|
3256
|
-
},
|
|
3257
|
-
children: h && /* @__PURE__ */ u(Nt, { children: [
|
|
3258
|
-
/* @__PURE__ */ n(Va, {}),
|
|
3259
|
-
/* @__PURE__ */ n(ja, {})
|
|
3260
|
-
] })
|
|
3261
|
-
}
|
|
3262
|
-
)
|
|
3263
|
-
] }),
|
|
3264
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3265
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: g, onChange: i }) }),
|
|
3266
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
3267
|
-
/* @__PURE__ */ n(_, { value: b, onChange: i }),
|
|
3268
|
-
/* @__PURE__ */ n($, { value: C, onChange: i })
|
|
3269
|
-
] }),
|
|
3270
|
-
/* @__PURE__ */ n(m, { name: "Background", children: /* @__PURE__ */ n(Z, { value: x, onChange: i }) })
|
|
3271
|
-
] })
|
|
3272
|
-
] })
|
|
3273
|
-
] });
|
|
3274
|
-
}, Ga = () => A({
|
|
3275
|
-
transform: Bo
|
|
3276
|
-
}), es = () => {
|
|
3277
|
-
const { nodeProps: e, setNodeProps: o } = Ga(), { currentScreen: r, getResponsiveProp: t } = B(), a = (b, C = r) => {
|
|
3278
|
-
o({ sx: W(b, C) });
|
|
3279
|
-
}, i = {
|
|
3280
|
-
paddingBottom: t(e.sx ?? {}, "paddingBottom"),
|
|
3281
|
-
paddingLeft: t(e.sx ?? {}, "paddingLeft"),
|
|
3282
|
-
paddingRight: t(e.sx ?? {}, "paddingRight"),
|
|
3283
|
-
paddingTop: t(e.sx ?? {}, "paddingTop"),
|
|
3284
|
-
marginBottom: t(e.sx ?? {}, "marginBottom"),
|
|
3285
|
-
marginLeft: t(e.sx ?? {}, "marginLeft"),
|
|
3286
|
-
marginRight: t(e.sx ?? {}, "marginRight"),
|
|
3287
|
-
marginTop: t(e.sx ?? {}, "marginTop")
|
|
3288
|
-
}, s = {
|
|
3289
|
-
borderStyle: t(e.sx ?? {}, "borderStyle"),
|
|
3290
|
-
borderColor: t(e.sx ?? {}, "borderColor"),
|
|
3291
|
-
borderTopWidth: t(e.sx ?? {}, "borderTopWidth"),
|
|
3292
|
-
borderRightWidth: t(e.sx ?? {}, "borderRightWidth"),
|
|
3293
|
-
borderBottomWidth: t(e.sx ?? {}, "borderBottomWidth"),
|
|
3294
|
-
borderLeftWidth: t(e.sx ?? {}, "borderLeftWidth")
|
|
3295
|
-
}, d = {
|
|
3296
|
-
borderTopLeftRadius: t(e.sx ?? {}, "borderTopLeftRadius"),
|
|
3297
|
-
borderTopRightRadius: t(e.sx ?? {}, "borderTopRightRadius"),
|
|
3298
|
-
borderBottomRightRadius: t(e.sx ?? {}, "borderBottomRightRadius"),
|
|
3299
|
-
borderBottomLeftRadius: t(e.sx ?? {}, "borderBottomLeftRadius")
|
|
3300
|
-
}, l = () => /* @__PURE__ */ n(j, { canvas: !0, is: Mt }), c = {
|
|
3301
|
-
rowGap: t(e.sx ?? {}, "rowGap") ?? 0
|
|
3302
|
-
}, h = {
|
|
3303
|
-
width: t(e.sx ?? {}, "width")
|
|
3304
|
-
}, g = {
|
|
3305
|
-
alignItems: t(e.sx ?? {}, "alignItems")
|
|
3306
|
-
};
|
|
3307
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
3308
|
-
/* @__PURE__ */ u(O, { children: [
|
|
3309
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
3310
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
3311
|
-
] }),
|
|
3312
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
3313
|
-
/* @__PURE__ */ n(L, { children: /* @__PURE__ */ u(m, { name: "Layout", children: [
|
|
3314
|
-
/* @__PURE__ */ n(Ce, { getNewNodeElement: l }),
|
|
3315
|
-
/* @__PURE__ */ n(Re, { value: c, onChange: a }),
|
|
3316
|
-
/* @__PURE__ */ n(
|
|
3317
|
-
Kt,
|
|
3318
|
-
{
|
|
3319
|
-
blacklist: ["stretch"],
|
|
3320
|
-
flexDirection: "column",
|
|
3321
|
-
onChange: a,
|
|
3322
|
-
value: g
|
|
3323
|
-
}
|
|
3324
|
-
),
|
|
3325
|
-
/* @__PURE__ */ n(V, { onChange: a, value: h })
|
|
3326
|
-
] }) }),
|
|
3327
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3328
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: i, onChange: a }) }),
|
|
3329
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
3330
|
-
/* @__PURE__ */ n(_, { value: s, onChange: a }),
|
|
3331
|
-
/* @__PURE__ */ n($, { value: d, onChange: a })
|
|
3332
|
-
] })
|
|
3333
|
-
] })
|
|
3334
|
-
] })
|
|
3335
|
-
] });
|
|
3336
|
-
}, qa = () => A({
|
|
3337
|
-
transform: No
|
|
3338
|
-
}), ts = () => {
|
|
3339
|
-
const { nodeProps: e, setNodeProps: o, setNodeResponsiveProps: r } = qa(), { currentScreen: t, getResponsiveProp: a } = B(), i = (x, R = t) => {
|
|
3340
|
-
o({
|
|
3341
|
-
sx: W(x, R)
|
|
3342
|
-
});
|
|
3343
|
-
}, s = {
|
|
3344
|
-
color: a(e.sx ?? {}, "color", "xs")
|
|
3345
|
-
}, d = (x) => {
|
|
3346
|
-
i(x, "xs");
|
|
3347
|
-
}, l = {
|
|
3348
|
-
paddingBottom: a(e.sx ?? {}, "paddingBottom"),
|
|
3349
|
-
paddingLeft: a(e.sx ?? {}, "paddingLeft"),
|
|
3350
|
-
paddingRight: a(e.sx ?? {}, "paddingRight"),
|
|
3351
|
-
paddingTop: a(e.sx ?? {}, "paddingTop"),
|
|
3352
|
-
marginBottom: a(e.sx ?? {}, "marginBottom"),
|
|
3353
|
-
marginLeft: a(e.sx ?? {}, "marginLeft"),
|
|
3354
|
-
marginRight: a(e.sx ?? {}, "marginRight"),
|
|
3355
|
-
marginTop: a(e.sx ?? {}, "marginTop")
|
|
3356
|
-
}, c = {
|
|
3357
|
-
borderStyle: a(e.sx ?? {}, "borderStyle"),
|
|
3358
|
-
borderColor: a(e.sx ?? {}, "borderColor"),
|
|
3359
|
-
borderTopWidth: a(e.sx ?? {}, "borderTopWidth"),
|
|
3360
|
-
borderRightWidth: a(e.sx ?? {}, "borderRightWidth"),
|
|
3361
|
-
borderBottomWidth: a(e.sx ?? {}, "borderBottomWidth"),
|
|
3362
|
-
borderLeftWidth: a(e.sx ?? {}, "borderLeftWidth")
|
|
3363
|
-
}, h = {
|
|
3364
|
-
borderTopLeftRadius: a(e.sx ?? {}, "borderTopLeftRadius"),
|
|
3365
|
-
borderTopRightRadius: a(e.sx ?? {}, "borderTopRightRadius"),
|
|
3366
|
-
borderBottomRightRadius: a(e.sx ?? {}, "borderBottomRightRadius"),
|
|
3367
|
-
borderBottomLeftRadius: a(e.sx ?? {}, "borderBottomLeftRadius")
|
|
3368
|
-
}, g = (x) => {
|
|
3369
|
-
o({
|
|
3370
|
-
source: x
|
|
3371
|
-
});
|
|
3372
|
-
}, b = tt(a(e, "size")), C = (x) => {
|
|
3373
|
-
r(
|
|
3374
|
-
{
|
|
3375
|
-
size: t === "xs" ? x ?? b ?? 24 : x
|
|
3376
|
-
},
|
|
3377
|
-
t
|
|
3378
|
-
);
|
|
3379
|
-
};
|
|
3380
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
3381
|
-
/* @__PURE__ */ u(O, { children: [
|
|
3382
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
3383
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
3384
|
-
] }),
|
|
3385
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
3386
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3387
|
-
/* @__PURE__ */ n(m, { name: "Source", children: /* @__PURE__ */ n(Ne, { onChange: g, source: e.source }) }),
|
|
3388
|
-
/* @__PURE__ */ u(m, { name: "Color & Size", children: [
|
|
3389
|
-
/* @__PURE__ */ n(ge, { value: s, onChange: d }),
|
|
3390
|
-
/* @__PURE__ */ n(Be, { value: b, name: "Size (px)", onChange: C })
|
|
3391
|
-
] })
|
|
3392
|
-
] }),
|
|
3393
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3394
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: l, onChange: i }) }),
|
|
3395
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
3396
|
-
/* @__PURE__ */ n(_, { value: c, onChange: i }),
|
|
3397
|
-
/* @__PURE__ */ n($, { value: h, onChange: i })
|
|
3398
|
-
] })
|
|
3399
|
-
] })
|
|
3400
|
-
] })
|
|
3401
|
-
] });
|
|
3402
|
-
}, Ja = (e) => A({
|
|
3403
|
-
transform: Wo,
|
|
3404
|
-
nodeId: e
|
|
3405
|
-
}), Je = () => A({
|
|
3406
|
-
transform: Eo
|
|
3407
|
-
}), Ka = ({ accordionNodeId: e, accordionIndex: o }) => {
|
|
3408
|
-
const [r, t] = U(!1), [a, i] = Qt(o === 0), { id: s, nodeProps: d } = Je(), { query: l, accordionNode: c, actions: h } = ne((I) => ({
|
|
3409
|
-
accordionNode: I.nodes[e]
|
|
3410
|
-
})), { nodeProps: g, setNodeProps: b } = Ja(e), [C, x] = U(
|
|
3411
|
-
c.dom ? Te(c.dom).openState : !1
|
|
3412
|
-
), R = () => {
|
|
3413
|
-
t(!0);
|
|
3414
|
-
}, f = () => {
|
|
3415
|
-
t(!1);
|
|
3416
|
-
}, v = (I) => {
|
|
3417
|
-
I.stopPropagation(), h.delete(c.id);
|
|
3418
|
-
}, y = () => {
|
|
3419
|
-
const I = c.dom;
|
|
3420
|
-
if (!I) return;
|
|
3421
|
-
const { openState: N } = Te(I);
|
|
3422
|
-
I.setAttribute(ot.OpenState, N ? X.False : X.True);
|
|
3423
|
-
};
|
|
3424
|
-
ve(() => {
|
|
3425
|
-
const I = new MutationObserver((N) => {
|
|
3426
|
-
const H = N.at(0)?.target;
|
|
3427
|
-
ee(H) || x(Te(H).openState);
|
|
3428
|
-
});
|
|
3429
|
-
return c.dom && (x(Te(c.dom).openState), I.observe(c.dom, {
|
|
3430
|
-
attributes: !0,
|
|
3431
|
-
attributeFilter: [ot.OpenState]
|
|
3432
|
-
})), () => {
|
|
3433
|
-
I.disconnect();
|
|
3434
|
-
};
|
|
3435
|
-
}, [c.dom]);
|
|
3436
|
-
const w = (I) => {
|
|
3437
|
-
b({
|
|
3438
|
-
defaultOpen: I.target.checked
|
|
3439
|
-
}), d.openMode === "single" && I.target.checked && l.node(s).childNodes().forEach((N) => {
|
|
3440
|
-
N !== e && h.setProp(N, (H) => {
|
|
3441
|
-
delete H.defaultOpen;
|
|
3442
|
-
});
|
|
3443
|
-
});
|
|
3444
|
-
};
|
|
3445
|
-
return /* @__PURE__ */ n(nn, { index: o, draggableId: o.toString(), children: (I) => /* @__PURE__ */ u(
|
|
3446
|
-
"div",
|
|
3447
|
-
{
|
|
3448
|
-
css: {
|
|
3449
|
-
borderRadius: 8,
|
|
3450
|
-
overflow: "hidden",
|
|
3451
|
-
borderWidth: 1,
|
|
3452
|
-
borderStyle: "solid",
|
|
3453
|
-
borderColor: S.palette.white["2s"]
|
|
3454
|
-
},
|
|
3455
|
-
ref: I.innerRef,
|
|
3456
|
-
...I.draggableProps,
|
|
3457
|
-
...I.dragHandleProps,
|
|
3458
|
-
children: [
|
|
3459
|
-
/* @__PURE__ */ u(
|
|
3460
|
-
"div",
|
|
3461
|
-
{
|
|
3462
|
-
css: {
|
|
3463
|
-
display: "flex",
|
|
3464
|
-
alignItems: "center",
|
|
3465
|
-
gap: 4,
|
|
3466
|
-
paddingInline: 8,
|
|
3467
|
-
paddingBlock: 6,
|
|
3468
|
-
backgroundColor: S.palette.white["1s"],
|
|
3469
|
-
"&:hover": { backgroundColor: S.palette.white["2s"] },
|
|
3470
|
-
...S.text.xs
|
|
3471
|
-
},
|
|
3472
|
-
onMouseEnter: R,
|
|
3473
|
-
onMouseLeave: f,
|
|
3474
|
-
"aria-hidden": !0,
|
|
3475
|
-
children: [
|
|
3476
|
-
/* @__PURE__ */ n(E, { source: st }),
|
|
3477
|
-
/* @__PURE__ */ n("span", { css: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", flex: 1 }, children: "Item" }),
|
|
3478
|
-
/* @__PURE__ */ n(Ie, { open: r || a, orientation: "horizontal", children: /* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
3479
|
-
/* @__PURE__ */ n(G, { onClick: v, children: /* @__PURE__ */ n(E, { source: dt }) }),
|
|
3480
|
-
/* @__PURE__ */ n(G, { onClick: i, children: /* @__PURE__ */ n(
|
|
3481
|
-
E,
|
|
3482
|
-
{
|
|
3483
|
-
css: [{ transition: "transform" }, a && { transform: "rotate(-180deg)" }],
|
|
3484
|
-
source: ct
|
|
3485
|
-
}
|
|
3486
|
-
) })
|
|
3487
|
-
] }) })
|
|
3488
|
-
]
|
|
3489
|
-
}
|
|
3490
|
-
),
|
|
3491
|
-
/* @__PURE__ */ n(Ie, { open: a, children: /* @__PURE__ */ u("div", { css: { padding: 8, display: "flex", flexDirection: "column", gap: 16 }, children: [
|
|
3492
|
-
/* @__PURE__ */ n(P, { name: "Default open", children: /* @__PURE__ */ n(le, { onChange: w, checked: g.defaultOpen ?? !1 }) }),
|
|
3493
|
-
/* @__PURE__ */ n(K, { onClick: y, children: C ? "Close" : "Open" })
|
|
3494
|
-
] }) })
|
|
3495
|
-
]
|
|
3496
|
-
}
|
|
3497
|
-
) });
|
|
3498
|
-
}, Ya = () => {
|
|
3499
|
-
const { query: e, actions: o } = ne(), { id: r, accordionNodeIds: t } = Q((s) => ({
|
|
3500
|
-
accordionNodeIds: s.data.nodes
|
|
3501
|
-
}));
|
|
3502
|
-
return /* @__PURE__ */ u("div", { children: [
|
|
3503
|
-
/* @__PURE__ */ n(en, { onDragEnd: (s) => {
|
|
3504
|
-
const { source: d, destination: l } = s;
|
|
3505
|
-
if (!l || d.index === l.index) return;
|
|
3506
|
-
const c = t.at(d.index);
|
|
3507
|
-
c && o.move({
|
|
3508
|
-
nodeId: c,
|
|
3509
|
-
sourceIndex: d.index,
|
|
3510
|
-
destinationIndex: l.index
|
|
3511
|
-
});
|
|
3512
|
-
}, children: /* @__PURE__ */ n(tn, { droppableId: r, children: (s) => /* @__PURE__ */ u(
|
|
3513
|
-
"div",
|
|
3514
|
-
{
|
|
3515
|
-
ref: s.innerRef,
|
|
3516
|
-
...s.droppableProps,
|
|
3517
|
-
css: { display: "flex", flexDirection: "column", gap: 8 },
|
|
3518
|
-
children: [
|
|
3519
|
-
t.map((d, l) => /* @__PURE__ */ n(Ka, { accordionNodeId: d, accordionIndex: l }, d)),
|
|
3520
|
-
s.placeholder
|
|
3521
|
-
]
|
|
3522
|
-
}
|
|
3523
|
-
) }) }),
|
|
3524
|
-
/* @__PURE__ */ n(K, { css: { marginTop: 8 }, onClick: () => {
|
|
3525
|
-
const s = e.parseReactElement(
|
|
3526
|
-
/* @__PURE__ */ u(j, { is: zt, children: [
|
|
3527
|
-
/* @__PURE__ */ n(j, { is: $t, children: /* @__PURE__ */ n(j, { sizeVariant: "base", is: et, dangerouslySetInnerHTML: { __html: "Accordion (new)" } }) }),
|
|
3528
|
-
/* @__PURE__ */ n(j, { is: _t, children: /* @__PURE__ */ n(
|
|
3529
|
-
j,
|
|
3530
|
-
{
|
|
3531
|
-
sx: {
|
|
3532
|
-
paddingTop: 8,
|
|
3533
|
-
paddingBottom: 8
|
|
3534
|
-
},
|
|
3535
|
-
is: et,
|
|
3536
|
-
dangerouslySetInnerHTML: { __html: "Content for accordion (new)" }
|
|
3537
|
-
}
|
|
3538
|
-
) })
|
|
3539
|
-
] })
|
|
3540
|
-
).toNodeTree();
|
|
3541
|
-
o.addNodeTree(s, r);
|
|
3542
|
-
}, fullWidth: !0, prefix: /* @__PURE__ */ n(E, { source: jt }), children: "Add more" })
|
|
3543
|
-
] });
|
|
3544
|
-
}, Za = () => {
|
|
3545
|
-
const { nodeProps: e, setNodeProps: o } = Je(), [r, t] = U(!1), a = e.accordionSummaryProps?.expandIcon, i = (h) => {
|
|
3546
|
-
o({
|
|
3547
|
-
accordionSummaryProps: {
|
|
3548
|
-
expandIcon: {
|
|
3549
|
-
source: {
|
|
3550
|
-
expanded: h
|
|
3551
|
-
}
|
|
3552
|
-
}
|
|
3553
|
-
}
|
|
3554
|
-
});
|
|
3555
|
-
}, s = (h) => {
|
|
3556
|
-
o({
|
|
3557
|
-
accordionSummaryProps: {
|
|
3558
|
-
expandIcon: {
|
|
3559
|
-
source: {
|
|
3560
|
-
collapsed: h
|
|
3561
|
-
}
|
|
3562
|
-
}
|
|
3563
|
-
}
|
|
3564
|
-
});
|
|
3565
|
-
}, d = (h) => {
|
|
3566
|
-
o({
|
|
3567
|
-
accordionSummaryProps: {
|
|
3568
|
-
expandIcon: {
|
|
3569
|
-
position: h
|
|
3570
|
-
}
|
|
3571
|
-
}
|
|
3572
|
-
});
|
|
3573
|
-
}, l = (h) => {
|
|
3574
|
-
const g = isNaN(h.target.valueAsNumber) ? void 0 : h.target.valueAsNumber;
|
|
3575
|
-
o({
|
|
3576
|
-
accordionSummaryProps: {
|
|
3577
|
-
expandIcon: {
|
|
3578
|
-
size: g
|
|
3579
|
-
}
|
|
3580
|
-
}
|
|
3581
|
-
});
|
|
3582
|
-
}, c = (h) => {
|
|
3583
|
-
o({
|
|
3584
|
-
accordionSummaryProps: {
|
|
3585
|
-
expandIcon: {
|
|
3586
|
-
sx: {
|
|
3587
|
-
color: h
|
|
3588
|
-
}
|
|
3589
|
-
}
|
|
3590
|
-
}
|
|
3591
|
-
});
|
|
3592
|
-
};
|
|
3593
|
-
return /* @__PURE__ */ n(P, { name: "Expand icon", children: /* @__PURE__ */ u(Ae, { placement: "right", open: r, onOpenChange: t, children: [
|
|
3594
|
-
/* @__PURE__ */ n(De, { children: /* @__PURE__ */ u(
|
|
3595
|
-
"button",
|
|
3596
|
-
{
|
|
3597
|
-
css: [
|
|
3598
|
-
{
|
|
3599
|
-
display: "flex",
|
|
3600
|
-
paddingInline: 8,
|
|
3601
|
-
alignItems: "center",
|
|
3602
|
-
gap: 8,
|
|
3603
|
-
width: "50%",
|
|
3604
|
-
height: 32,
|
|
3605
|
-
borderRadius: 6,
|
|
3606
|
-
backgroundColor: S.palette.white["1s"]
|
|
3607
|
-
},
|
|
3608
|
-
r && { backgroundColor: S.palette.black["7s"] }
|
|
3609
|
-
],
|
|
3610
|
-
children: [
|
|
3611
|
-
/* @__PURE__ */ n("div", { css: { marginInline: "auto" }, children: /* @__PURE__ */ n(E, { source: a?.source.expanded ?? "" }) }),
|
|
3612
|
-
/* @__PURE__ */ n("div", { css: { paddingInline: 8, color: S.palette.white["2s"], ...S.text.xs }, children: "|" }),
|
|
3613
|
-
/* @__PURE__ */ n("div", { css: { marginInline: "auto" }, children: /* @__PURE__ */ n(E, { source: a?.source.collapsed ?? "" }) })
|
|
3614
|
-
]
|
|
3615
|
-
}
|
|
3616
|
-
) }),
|
|
3617
|
-
/* @__PURE__ */ n(Oe, { children: /* @__PURE__ */ u("div", { style: { width: 280 }, children: [
|
|
3618
|
-
/* @__PURE__ */ u("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
3619
|
-
/* @__PURE__ */ n("p", { css: { flex: 1, fontWeight: 500 }, children: "Expand icon" }),
|
|
3620
|
-
/* @__PURE__ */ n(He, { children: /* @__PURE__ */ n(G, { children: /* @__PURE__ */ n(E, { source: Fe }) }) })
|
|
3621
|
-
] }),
|
|
3622
|
-
/* @__PURE__ */ n("hr", { css: { marginBlock: 8, borderColor: S.palette.white["1s"] } }),
|
|
3623
|
-
/* @__PURE__ */ u("div", { css: { display: "flex", flexDirection: "column", gap: 16 }, children: [
|
|
3624
|
-
/* @__PURE__ */ n(
|
|
3625
|
-
Ne,
|
|
3626
|
-
{
|
|
3627
|
-
source: a?.source.expanded ?? "",
|
|
3628
|
-
name: "When expanded",
|
|
3629
|
-
onChange: i
|
|
3630
|
-
}
|
|
3631
|
-
),
|
|
3632
|
-
/* @__PURE__ */ n(
|
|
3633
|
-
Ne,
|
|
3634
|
-
{
|
|
3635
|
-
onChange: s,
|
|
3636
|
-
source: a?.source.collapsed ?? "",
|
|
3637
|
-
name: "When collapsed"
|
|
3638
|
-
}
|
|
3639
|
-
),
|
|
3640
|
-
/* @__PURE__ */ n(P, { name: "Position", children: /* @__PURE__ */ u(_e, { value: a?.position, onSelectionChange: d, children: [
|
|
3641
|
-
/* @__PURE__ */ n(K, { value: "left", size: "28", children: "Left" }),
|
|
3642
|
-
/* @__PURE__ */ n(K, { value: "right", size: "28", children: "Right" })
|
|
3643
|
-
] }) }),
|
|
3644
|
-
/* @__PURE__ */ n(P, { name: "Size", children: /* @__PURE__ */ n("div", { css: { width: "50%" }, children: /* @__PURE__ */ n(
|
|
3645
|
-
xe,
|
|
3646
|
-
{
|
|
3647
|
-
mode: "onBlur",
|
|
3648
|
-
value: a?.size ?? 24,
|
|
3649
|
-
onChange: l,
|
|
3650
|
-
step: 1,
|
|
3651
|
-
css: { textAlign: "center" }
|
|
3652
|
-
}
|
|
3653
|
-
) }) }),
|
|
3654
|
-
/* @__PURE__ */ n(P, { name: "Color", children: /* @__PURE__ */ n(Zt, { color: a?.sx?.color, onChange: c }) })
|
|
3655
|
-
] })
|
|
3656
|
-
] }) })
|
|
3657
|
-
] }) });
|
|
3658
|
-
}, Xa = () => {
|
|
3659
|
-
const { id: e, nodeProps: o, setNodeProps: r } = Je(), { query: t } = ne(), a = [
|
|
3660
|
-
{
|
|
3661
|
-
value: "single",
|
|
3662
|
-
label: "Single"
|
|
3663
|
-
},
|
|
3664
|
-
{
|
|
3665
|
-
value: "multiple",
|
|
3666
|
-
label: "Multiple"
|
|
3667
|
-
}
|
|
3668
|
-
], i = (s) => {
|
|
3669
|
-
r({
|
|
3670
|
-
openMode: s
|
|
3671
|
-
}), s === "single" && t.node(e).childNodes().forEach((d) => {
|
|
3672
|
-
const l = t.node(d).get().dom;
|
|
3673
|
-
l && l.setAttribute(ot.OpenState, X.False);
|
|
3674
|
-
});
|
|
3675
|
-
};
|
|
3676
|
-
return /* @__PURE__ */ n(P, { name: "Open mode", children: /* @__PURE__ */ n(_e, { value: o.openMode, onSelectionChange: i, children: a.map((s) => /* @__PURE__ */ n(K, { value: s.value, children: s.label }, s.value)) }) });
|
|
3677
|
-
}, ns = () => {
|
|
3678
|
-
const { nodeProps: e, setNodeProps: o } = Je(), { getResponsiveProp: r, currentScreen: t } = B(), a = (x, R = t) => {
|
|
3679
|
-
o({ sx: W(x, R) });
|
|
3680
|
-
}, i = {
|
|
3681
|
-
paddingBottom: r(e.sx ?? {}, "paddingBottom") ?? e.sx?.paddingBottom,
|
|
3682
|
-
paddingLeft: r(e.sx ?? {}, "paddingLeft") ?? e.sx?.paddingLeft,
|
|
3683
|
-
paddingRight: r(e.sx ?? {}, "paddingRight") ?? e.sx?.paddingRight,
|
|
3684
|
-
paddingTop: r(e.sx ?? {}, "paddingTop") ?? e.sx?.paddingTop,
|
|
3685
|
-
marginBottom: r(e.sx ?? {}, "marginBottom") ?? e.sx?.marginBottom,
|
|
3686
|
-
marginLeft: r(e.sx ?? {}, "marginLeft") ?? e.sx?.marginLeft,
|
|
3687
|
-
marginRight: r(e.sx ?? {}, "marginRight") ?? e.sx?.marginRight,
|
|
3688
|
-
marginTop: r(e.sx ?? {}, "marginTop") ?? e.sx?.marginTop
|
|
3689
|
-
}, s = {
|
|
3690
|
-
rowGap: r(e.sx ?? {}, "rowGap") ?? e.sx?.rowGap ?? 0
|
|
3691
|
-
}, d = {
|
|
3692
|
-
width: r(e.sx ?? {}, "width") ?? e.sx?.width
|
|
3693
|
-
}, l = (x, R = t) => {
|
|
3694
|
-
o({
|
|
3695
|
-
accordionSummaryProps: {
|
|
3696
|
-
[R]: {
|
|
3697
|
-
css: x
|
|
3698
|
-
}
|
|
3699
|
-
}
|
|
3700
|
-
});
|
|
3701
|
-
}, c = e.accordionSummaryProps ?? {}, h = {
|
|
3702
|
-
paddingTop: r(c.sx ?? {}, "paddingTop"),
|
|
3703
|
-
paddingLeft: r(c.sx ?? {}, "paddingLeft"),
|
|
3704
|
-
paddingRight: r(c.sx ?? {}, "paddingRight"),
|
|
3705
|
-
paddingBottom: r(c.sx ?? {}, "paddingBottom")
|
|
3706
|
-
}, g = (x, R = t) => {
|
|
3707
|
-
o({
|
|
3708
|
-
accordionContentProps: {
|
|
3709
|
-
[R]: {
|
|
3710
|
-
css: x
|
|
3711
|
-
}
|
|
3712
|
-
}
|
|
3713
|
-
});
|
|
3714
|
-
}, b = e.accordionContentProps ?? {}, C = {
|
|
3715
|
-
paddingTop: r(b.sx ?? {}, "paddingTop"),
|
|
3716
|
-
paddingLeft: r(b.sx ?? {}, "paddingLeft"),
|
|
3717
|
-
paddingRight: r(b.sx ?? {}, "paddingRight"),
|
|
3718
|
-
paddingBottom: r(b.sx ?? {}, "paddingBottom")
|
|
3719
|
-
};
|
|
3720
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
3721
|
-
/* @__PURE__ */ u(O, { children: [
|
|
3722
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
3723
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
3724
|
-
] }),
|
|
3725
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
3726
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3727
|
-
/* @__PURE__ */ u(m, { name: "Items management", children: [
|
|
3728
|
-
/* @__PURE__ */ n(Ya, {}),
|
|
3729
|
-
/* @__PURE__ */ n(Xa, {}),
|
|
3730
|
-
/* @__PURE__ */ n(Re, { value: s, onChange: a })
|
|
3731
|
-
] }),
|
|
3732
|
-
/* @__PURE__ */ u(m, { name: "Item header", children: [
|
|
3733
|
-
/* @__PURE__ */ n(nt, { value: h, onChange: l }),
|
|
3734
|
-
/* @__PURE__ */ n(Za, {})
|
|
3735
|
-
] }),
|
|
3736
|
-
/* @__PURE__ */ n(m, { name: "Item content", children: /* @__PURE__ */ n(nt, { value: C, onChange: g }) }),
|
|
3737
|
-
/* @__PURE__ */ n(m, { name: "Size", children: /* @__PURE__ */ n(V, { value: d, onChange: a }) })
|
|
3738
|
-
] }),
|
|
3739
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3740
|
-
/* @__PURE__ */ n(m, { name: "Display on", children: /* @__PURE__ */ n(Y, {}) }),
|
|
3741
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: i, onChange: a }) })
|
|
3742
|
-
] })
|
|
3743
|
-
] })
|
|
3744
|
-
] });
|
|
3745
|
-
}, Qa = () => A({
|
|
3746
|
-
transform: Ao
|
|
3747
|
-
}), os = () => {
|
|
3748
|
-
const { currentScreen: e, getResponsiveProp: o } = B(), { nodeProps: r, setNodeProps: t } = Qa(), a = {
|
|
3749
|
-
aspectRatio: o(r.sx ?? {}, "aspectRatio")
|
|
3750
|
-
}, i = (C, x = e) => {
|
|
3751
|
-
t({ sx: W(C, x) });
|
|
3752
|
-
}, s = {
|
|
3753
|
-
width: o(r.sx ?? {}, "width")
|
|
3754
|
-
}, d = {
|
|
3755
|
-
paddingBottom: o(r.sx ?? {}, "paddingBottom"),
|
|
3756
|
-
paddingLeft: o(r.sx ?? {}, "paddingLeft"),
|
|
3757
|
-
paddingRight: o(r.sx ?? {}, "paddingRight"),
|
|
3758
|
-
paddingTop: o(r.sx ?? {}, "paddingTop"),
|
|
3759
|
-
marginBottom: o(r.sx ?? {}, "marginBottom"),
|
|
3760
|
-
marginLeft: o(r.sx ?? {}, "marginLeft"),
|
|
3761
|
-
marginRight: o(r.sx ?? {}, "marginRight"),
|
|
3762
|
-
marginTop: o(r.sx ?? {}, "marginTop")
|
|
3763
|
-
}, l = {
|
|
3764
|
-
borderStyle: o(r.sx ?? {}, "borderStyle"),
|
|
3765
|
-
borderColor: o(r.sx ?? {}, "borderColor"),
|
|
3766
|
-
borderTopWidth: o(r.sx ?? {}, "borderTopWidth"),
|
|
3767
|
-
borderRightWidth: o(r.sx ?? {}, "borderRightWidth"),
|
|
3768
|
-
borderBottomWidth: o(r.sx ?? {}, "borderBottomWidth"),
|
|
3769
|
-
borderLeftWidth: o(r.sx ?? {}, "borderLeftWidth")
|
|
3770
|
-
}, c = {
|
|
3771
|
-
borderTopLeftRadius: o(r.sx ?? {}, "borderTopLeftRadius"),
|
|
3772
|
-
borderTopRightRadius: o(r.sx ?? {}, "borderTopRightRadius"),
|
|
3773
|
-
borderBottomRightRadius: o(r.sx ?? {}, "borderBottomRightRadius"),
|
|
3774
|
-
borderBottomLeftRadius: o(r.sx ?? {}, "borderBottomLeftRadius")
|
|
3775
|
-
}, h = (C) => {
|
|
3776
|
-
try {
|
|
3777
|
-
const x = new URL(C.target.value);
|
|
3778
|
-
t({
|
|
3779
|
-
src: x.toString()
|
|
3780
|
-
});
|
|
3781
|
-
} catch {
|
|
3782
|
-
}
|
|
3783
|
-
}, g = r.light ?? "", b = (C) => {
|
|
3784
|
-
try {
|
|
3785
|
-
const x = new URL(C.target.value);
|
|
3786
|
-
t({
|
|
3787
|
-
light: x.toString()
|
|
3788
|
-
});
|
|
3789
|
-
} catch {
|
|
3790
|
-
}
|
|
3791
|
-
};
|
|
3792
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
3793
|
-
/* @__PURE__ */ u(O, { children: [
|
|
3794
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
3795
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
3796
|
-
] }),
|
|
3797
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
3798
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3799
|
-
/* @__PURE__ */ u(m, { name: "Video source", children: [
|
|
3800
|
-
/* @__PURE__ */ n(P, { name: "Video link", children: /* @__PURE__ */ n("div", { css: { width: "50%" }, children: /* @__PURE__ */ n(
|
|
3801
|
-
se,
|
|
3802
|
-
{
|
|
3803
|
-
mode: "onBlur",
|
|
3804
|
-
placeholder: "https://example.com/video.mp4",
|
|
3805
|
-
onChange: h,
|
|
3806
|
-
value: r.src
|
|
3807
|
-
}
|
|
3808
|
-
) }) }),
|
|
3809
|
-
be(g) && /* @__PURE__ */ n(P, { name: "Thumbnail", children: /* @__PURE__ */ n("div", { css: { width: "50%" }, children: /* @__PURE__ */ n(
|
|
3810
|
-
se,
|
|
3811
|
-
{
|
|
3812
|
-
mode: "onBlur",
|
|
3813
|
-
placeholder: "https://example.com/thumbnail.jpg",
|
|
3814
|
-
onChange: b,
|
|
3815
|
-
value: g
|
|
3816
|
-
}
|
|
3817
|
-
) }) })
|
|
3818
|
-
] }),
|
|
3819
|
-
/* @__PURE__ */ u(m, { name: "Size", children: [
|
|
3820
|
-
/* @__PURE__ */ n(V, { value: s ?? "", onChange: i }),
|
|
3821
|
-
/* @__PURE__ */ n(
|
|
3822
|
-
xo,
|
|
3823
|
-
{
|
|
3824
|
-
suggestOptions: [
|
|
3825
|
-
{
|
|
3826
|
-
label: "Square",
|
|
3827
|
-
value: "1 / 1"
|
|
3828
|
-
},
|
|
3829
|
-
{ label: "16 / 9", value: "16 / 9" }
|
|
3830
|
-
],
|
|
3831
|
-
value: a,
|
|
3832
|
-
onChange: i
|
|
3833
|
-
}
|
|
3834
|
-
)
|
|
3835
|
-
] })
|
|
3836
|
-
] }),
|
|
3837
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3838
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: d, onChange: i }) }),
|
|
3839
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
3840
|
-
/* @__PURE__ */ n(_, { value: l, onChange: i }),
|
|
3841
|
-
/* @__PURE__ */ n($, { value: c, onChange: i })
|
|
3842
|
-
] })
|
|
3843
|
-
] })
|
|
3844
|
-
] })
|
|
3845
|
-
] });
|
|
3846
|
-
}, ei = () => A({
|
|
3847
|
-
transform: Do
|
|
3848
|
-
}), rs = () => {
|
|
3849
|
-
const { nodeProps: e, setNodeProps: o } = ei(), { getResponsiveProp: r, currentScreen: t } = B(), a = (g, b = t) => {
|
|
3850
|
-
o({ sx: W(g, b) });
|
|
3851
|
-
}, i = {
|
|
3852
|
-
paddingBottom: r(e.sx ?? {}, "paddingBottom"),
|
|
3853
|
-
paddingLeft: r(e.sx ?? {}, "paddingLeft"),
|
|
3854
|
-
paddingRight: r(e.sx ?? {}, "paddingRight"),
|
|
3855
|
-
paddingTop: r(e.sx ?? {}, "paddingTop"),
|
|
3856
|
-
marginBottom: r(e.sx ?? {}, "marginBottom"),
|
|
3857
|
-
marginLeft: r(e.sx ?? {}, "marginLeft"),
|
|
3858
|
-
marginRight: r(e.sx ?? {}, "marginRight"),
|
|
3859
|
-
marginTop: r(e.sx ?? {}, "marginTop")
|
|
3860
|
-
}, s = {
|
|
3861
|
-
backgroundColor: r(e.sx ?? {}, "backgroundColor"),
|
|
3862
|
-
backgroundImage: r(e.sx ?? {}, "backgroundImage"),
|
|
3863
|
-
backgroundPosition: r(e.sx ?? {}, "backgroundPosition"),
|
|
3864
|
-
backgroundRepeat: r(e.sx ?? {}, "backgroundRepeat"),
|
|
3865
|
-
background: r(e.sx ?? {}, "background"),
|
|
3866
|
-
backgroundSize: r(e.sx ?? {}, "backgroundSize"),
|
|
3867
|
-
backgroundAttachment: r(e.sx ?? {}, "backgroundAttachment")
|
|
3868
|
-
}, d = {
|
|
3869
|
-
width: r(e.sx ?? {}, "width") ?? "auto"
|
|
3870
|
-
}, l = {
|
|
3871
|
-
height: r(e.sx ?? {}, "height") ?? "auto"
|
|
3872
|
-
}, c = {
|
|
3873
|
-
borderStyle: r(e.sx ?? {}, "borderStyle"),
|
|
3874
|
-
borderColor: r(e.sx ?? {}, "borderColor"),
|
|
3875
|
-
borderTopWidth: r(e.sx ?? {}, "borderTopWidth"),
|
|
3876
|
-
borderRightWidth: r(e.sx ?? {}, "borderRightWidth"),
|
|
3877
|
-
borderBottomWidth: r(e.sx ?? {}, "borderBottomWidth"),
|
|
3878
|
-
borderLeftWidth: r(e.sx ?? {}, "borderLeftWidth")
|
|
3879
|
-
}, h = {
|
|
3880
|
-
borderTopLeftRadius: r(e.sx ?? {}, "borderTopLeftRadius"),
|
|
3881
|
-
borderTopRightRadius: r(e.sx ?? {}, "borderTopRightRadius"),
|
|
3882
|
-
borderBottomRightRadius: r(e.sx ?? {}, "borderBottomRightRadius"),
|
|
3883
|
-
borderBottomLeftRadius: r(e.sx ?? {}, "borderBottomLeftRadius")
|
|
3884
|
-
};
|
|
3885
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
3886
|
-
/* @__PURE__ */ u(O, { children: [
|
|
3887
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
3888
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
3889
|
-
] }),
|
|
3890
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
3891
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3892
|
-
/* @__PURE__ */ u(m, { name: "Layout", children: [
|
|
3893
|
-
/* @__PURE__ */ n(
|
|
3894
|
-
V,
|
|
3895
|
-
{
|
|
3896
|
-
menu: {
|
|
3897
|
-
autoOption: { visible: !0 },
|
|
3898
|
-
fitContentOption: { visible: !0 }
|
|
3899
|
-
},
|
|
3900
|
-
value: d,
|
|
3901
|
-
onChange: a
|
|
3902
|
-
}
|
|
3903
|
-
),
|
|
3904
|
-
/* @__PURE__ */ n(ce, { value: l, onChange: a })
|
|
3905
|
-
] }),
|
|
3906
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
3907
|
-
/* @__PURE__ */ n(_, { value: c, onChange: a }),
|
|
3908
|
-
/* @__PURE__ */ n($, { value: h, onChange: a })
|
|
3909
|
-
] }),
|
|
3910
|
-
/* @__PURE__ */ n(m, { name: "Background", children: /* @__PURE__ */ n(Z, { value: s, onChange: a }) })
|
|
3911
|
-
] }),
|
|
3912
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3913
|
-
/* @__PURE__ */ n(m, { name: "Display on", children: /* @__PURE__ */ n(Y, {}) }),
|
|
3914
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: i, onChange: a }) })
|
|
3915
|
-
] })
|
|
3916
|
-
] })
|
|
3917
|
-
] });
|
|
3918
|
-
}, ti = () => A({
|
|
3919
|
-
transform: Oo
|
|
3920
|
-
}), as = () => {
|
|
3921
|
-
const { nodeProps: e, setNodeProps: o } = ti(), { getResponsiveProp: r, currentScreen: t } = B(), a = (h, g = t) => {
|
|
3922
|
-
o({ sx: W(h, g) });
|
|
3923
|
-
}, i = {
|
|
3924
|
-
paddingBottom: r(e.sx ?? {}, "paddingBottom"),
|
|
3925
|
-
paddingLeft: r(e.sx ?? {}, "paddingLeft"),
|
|
3926
|
-
paddingRight: r(e.sx ?? {}, "paddingRight"),
|
|
3927
|
-
paddingTop: r(e.sx ?? {}, "paddingTop"),
|
|
3928
|
-
marginBottom: r(e.sx ?? {}, "marginBottom"),
|
|
3929
|
-
marginLeft: r(e.sx ?? {}, "marginLeft"),
|
|
3930
|
-
marginRight: r(e.sx ?? {}, "marginRight"),
|
|
3931
|
-
marginTop: r(e.sx ?? {}, "marginTop")
|
|
3932
|
-
}, s = {
|
|
3933
|
-
backgroundColor: r(e.sx ?? {}, "backgroundColor"),
|
|
3934
|
-
backgroundImage: r(e.sx ?? {}, "backgroundImage"),
|
|
3935
|
-
backgroundPosition: r(e.sx ?? {}, "backgroundPosition"),
|
|
3936
|
-
backgroundRepeat: r(e.sx ?? {}, "backgroundRepeat"),
|
|
3937
|
-
background: r(e.sx ?? {}, "background"),
|
|
3938
|
-
backgroundSize: r(e.sx ?? {}, "backgroundSize"),
|
|
3939
|
-
backgroundAttachment: r(e.sx ?? {}, "backgroundAttachment")
|
|
3940
|
-
}, d = {
|
|
3941
|
-
height: r(e.sx ?? {}, "height") ?? "auto"
|
|
3942
|
-
}, l = {
|
|
3943
|
-
borderStyle: r(e.sx ?? {}, "borderStyle"),
|
|
3944
|
-
borderColor: r(e.sx ?? {}, "borderColor"),
|
|
3945
|
-
borderTopWidth: r(e.sx ?? {}, "borderTopWidth"),
|
|
3946
|
-
borderRightWidth: r(e.sx ?? {}, "borderRightWidth"),
|
|
3947
|
-
borderBottomWidth: r(e.sx ?? {}, "borderBottomWidth"),
|
|
3948
|
-
borderLeftWidth: r(e.sx ?? {}, "borderLeftWidth")
|
|
3949
|
-
}, c = {
|
|
3950
|
-
borderTopLeftRadius: r(e.sx ?? {}, "borderTopLeftRadius"),
|
|
3951
|
-
borderTopRightRadius: r(e.sx ?? {}, "borderTopRightRadius"),
|
|
3952
|
-
borderBottomRightRadius: r(e.sx ?? {}, "borderBottomRightRadius"),
|
|
3953
|
-
borderBottomLeftRadius: r(e.sx ?? {}, "borderBottomLeftRadius")
|
|
3954
|
-
};
|
|
3955
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
3956
|
-
/* @__PURE__ */ u(O, { children: [
|
|
3957
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
3958
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
3959
|
-
] }),
|
|
3960
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
3961
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3962
|
-
/* @__PURE__ */ n(m, { name: "Layout", children: /* @__PURE__ */ n(ce, { value: d, onChange: a }) }),
|
|
3963
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
3964
|
-
/* @__PURE__ */ n(_, { value: l, onChange: a }),
|
|
3965
|
-
/* @__PURE__ */ n($, { value: c, onChange: a })
|
|
3966
|
-
] }),
|
|
3967
|
-
/* @__PURE__ */ n(m, { name: "Background", children: /* @__PURE__ */ n(Z, { value: s, onChange: a }) })
|
|
3968
|
-
] }),
|
|
3969
|
-
/* @__PURE__ */ u(L, { children: [
|
|
3970
|
-
/* @__PURE__ */ n(m, { name: "Display on", children: /* @__PURE__ */ n(Y, {}) }),
|
|
3971
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: i, onChange: a }) })
|
|
3972
|
-
] })
|
|
3973
|
-
] })
|
|
3974
|
-
] });
|
|
3975
|
-
}, we = () => A(), ni = () => {
|
|
3976
|
-
const { nodeProps: e, setNodeProps: o } = we(), { currentScreen: r, getResponsiveProp: t } = B(), [a, i] = U(!1), s = e.captionProps ?? {}, d = (c) => {
|
|
3977
|
-
o({
|
|
3978
|
-
captionProps: {
|
|
3979
|
-
[r]: {
|
|
3980
|
-
sizeVariant: c
|
|
3981
|
-
}
|
|
3982
|
-
}
|
|
3983
|
-
});
|
|
3984
|
-
}, l = (c) => {
|
|
3985
|
-
o({
|
|
3986
|
-
captionProps: {
|
|
3987
|
-
sx: c
|
|
3988
|
-
}
|
|
3989
|
-
});
|
|
3990
|
-
};
|
|
3991
|
-
return /* @__PURE__ */ n(m, { name: "Caption style", children: /* @__PURE__ */ n(P, { name: "Text style", children: /* @__PURE__ */ u(Ae, { open: a, onOpenChange: i, placement: "right-end", children: [
|
|
3992
|
-
/* @__PURE__ */ n(De, { children: /* @__PURE__ */ u(
|
|
3993
|
-
"button",
|
|
3994
|
-
{
|
|
3995
|
-
css: [
|
|
3996
|
-
{
|
|
3997
|
-
display: "flex",
|
|
3998
|
-
paddingInline: 8,
|
|
3999
|
-
alignItems: "center",
|
|
4000
|
-
gap: 8,
|
|
4001
|
-
borderRadius: 6,
|
|
4002
|
-
textAlign: "left",
|
|
4003
|
-
width: "50%",
|
|
4004
|
-
height: 32,
|
|
4005
|
-
backgroundColor: S.palette.white["1s"],
|
|
4006
|
-
overflow: "hidden",
|
|
4007
|
-
textOverflow: "ellipsis",
|
|
4008
|
-
whiteSpace: "nowrap",
|
|
4009
|
-
...S.text.xs
|
|
4010
|
-
},
|
|
4011
|
-
a && { backgroundColor: S.palette.black["7s"] }
|
|
4012
|
-
],
|
|
4013
|
-
children: [
|
|
4014
|
-
/* @__PURE__ */ n(
|
|
4015
|
-
E,
|
|
4016
|
-
{
|
|
4017
|
-
css: {
|
|
4018
|
-
color: "white"
|
|
4019
|
-
},
|
|
4020
|
-
source: Yt
|
|
4021
|
-
}
|
|
4022
|
-
),
|
|
4023
|
-
/* @__PURE__ */ n("span", { children: "Auto" })
|
|
4024
|
-
]
|
|
4025
|
-
}
|
|
4026
|
-
) }),
|
|
4027
|
-
/* @__PURE__ */ n(Oe, { children: /* @__PURE__ */ u("div", { style: { width: 280 }, children: [
|
|
4028
|
-
/* @__PURE__ */ u("div", { css: { display: "flex", justifyContent: "space-between", alignItems: "center", gap: 8 }, children: [
|
|
4029
|
-
/* @__PURE__ */ n("div", { css: { fontWeight: 500 }, children: "Text style" }),
|
|
4030
|
-
/* @__PURE__ */ n(He, { children: /* @__PURE__ */ n(G, { children: /* @__PURE__ */ n(E, { source: Fe }) }) })
|
|
4031
|
-
] }),
|
|
4032
|
-
/* @__PURE__ */ n("hr", { css: { marginBlock: 8, borderColor: S.palette.white["1s"] } }),
|
|
4033
|
-
/* @__PURE__ */ u("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: [
|
|
4034
|
-
/* @__PURE__ */ n(
|
|
4035
|
-
Me,
|
|
4036
|
-
{
|
|
4037
|
-
value: t(s, "sizeVariant"),
|
|
4038
|
-
onChange: d
|
|
4039
|
-
}
|
|
4040
|
-
),
|
|
4041
|
-
/* @__PURE__ */ n(
|
|
4042
|
-
ge,
|
|
4043
|
-
{
|
|
4044
|
-
value: { color: t(s.sx ?? {}, "color") },
|
|
4045
|
-
onChange: l
|
|
4046
|
-
}
|
|
4047
|
-
),
|
|
4048
|
-
/* @__PURE__ */ n(
|
|
4049
|
-
ze,
|
|
4050
|
-
{
|
|
4051
|
-
name: "Style",
|
|
4052
|
-
value: {
|
|
4053
|
-
fontWeight: t(s.sx ?? {}, "fontWeight"),
|
|
4054
|
-
fontStyle: t(s.sx ?? {}, "fontStyle"),
|
|
4055
|
-
textDecorationLine: t(s.sx ?? {}, "textDecorationLine")
|
|
4056
|
-
},
|
|
4057
|
-
onChange: l
|
|
4058
|
-
}
|
|
4059
|
-
),
|
|
4060
|
-
/* @__PURE__ */ n(
|
|
4061
|
-
$e,
|
|
4062
|
-
{
|
|
4063
|
-
value: { fontWeight: t(s.sx ?? {}, "fontWeight") },
|
|
4064
|
-
onChange: l
|
|
4065
|
-
}
|
|
4066
|
-
),
|
|
4067
|
-
/* @__PURE__ */ n(
|
|
4068
|
-
it,
|
|
4069
|
-
{
|
|
4070
|
-
value: {
|
|
4071
|
-
textTransform: t(s.sx ?? {}, "textTransform") ?? "none"
|
|
4072
|
-
},
|
|
4073
|
-
onChange: l
|
|
4074
|
-
}
|
|
4075
|
-
)
|
|
4076
|
-
] })
|
|
4077
|
-
] }) })
|
|
4078
|
-
] }) }) });
|
|
4079
|
-
}, oi = () => {
|
|
4080
|
-
const { nodeProps: e, setNodeProps: o } = we(), { currentScreen: r, getResponsiveProp: t } = B(), [a, i] = U(!1), s = e.timeProps ?? {}, d = (c) => {
|
|
4081
|
-
o({
|
|
4082
|
-
timeProps: r === "xs" ? {
|
|
4083
|
-
sizeVariant: c
|
|
4084
|
-
} : {
|
|
4085
|
-
[r]: {
|
|
4086
|
-
sizeVariant: c
|
|
4087
|
-
}
|
|
4088
|
-
}
|
|
4089
|
-
});
|
|
4090
|
-
}, l = (c) => {
|
|
4091
|
-
o({
|
|
4092
|
-
timeProps: {
|
|
4093
|
-
sx: c
|
|
4094
|
-
}
|
|
4095
|
-
});
|
|
4096
|
-
};
|
|
4097
|
-
return /* @__PURE__ */ n(m, { name: "Time style", children: /* @__PURE__ */ n(P, { name: "Text style", children: /* @__PURE__ */ u(Ae, { open: a, onOpenChange: i, placement: "right-end", children: [
|
|
4098
|
-
/* @__PURE__ */ n(De, { children: /* @__PURE__ */ u(
|
|
4099
|
-
"button",
|
|
4100
|
-
{
|
|
4101
|
-
css: [
|
|
4102
|
-
{
|
|
4103
|
-
display: "flex",
|
|
4104
|
-
paddingInline: 8,
|
|
4105
|
-
alignItems: "center",
|
|
4106
|
-
gap: 8,
|
|
4107
|
-
borderRadius: 6,
|
|
4108
|
-
textAlign: "left",
|
|
4109
|
-
width: "50%",
|
|
4110
|
-
height: 32,
|
|
4111
|
-
backgroundColor: S.palette.white["1s"],
|
|
4112
|
-
overflow: "hidden",
|
|
4113
|
-
textOverflow: "ellipsis",
|
|
4114
|
-
whiteSpace: "nowrap",
|
|
4115
|
-
...S.text.xs
|
|
4116
|
-
},
|
|
4117
|
-
a && { backgroundColor: S.palette.black["7s"] }
|
|
4118
|
-
],
|
|
4119
|
-
children: [
|
|
4120
|
-
/* @__PURE__ */ n(
|
|
4121
|
-
E,
|
|
4122
|
-
{
|
|
4123
|
-
css: {
|
|
4124
|
-
color: "white"
|
|
4125
|
-
},
|
|
4126
|
-
source: Yt
|
|
4127
|
-
}
|
|
4128
|
-
),
|
|
4129
|
-
/* @__PURE__ */ n("span", { children: "Auto" })
|
|
4130
|
-
]
|
|
4131
|
-
}
|
|
4132
|
-
) }),
|
|
4133
|
-
/* @__PURE__ */ n(Oe, { children: /* @__PURE__ */ u("div", { style: { width: 280 }, children: [
|
|
4134
|
-
/* @__PURE__ */ u("div", { css: { display: "flex", justifyContent: "space-between", alignItems: "center", gap: 8 }, children: [
|
|
4135
|
-
/* @__PURE__ */ n("div", { css: { fontWeight: 500 }, children: "Text style" }),
|
|
4136
|
-
/* @__PURE__ */ n(He, { children: /* @__PURE__ */ n(G, { children: /* @__PURE__ */ n(E, { source: Fe }) }) })
|
|
4137
|
-
] }),
|
|
4138
|
-
/* @__PURE__ */ n("hr", { css: { marginBlock: 8, borderColor: S.palette.white["1s"] } }),
|
|
4139
|
-
/* @__PURE__ */ u("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: [
|
|
4140
|
-
/* @__PURE__ */ n(
|
|
4141
|
-
Me,
|
|
4142
|
-
{
|
|
4143
|
-
value: t(s, "sizeVariant"),
|
|
4144
|
-
onChange: d
|
|
4145
|
-
}
|
|
4146
|
-
),
|
|
4147
|
-
/* @__PURE__ */ n(
|
|
4148
|
-
ge,
|
|
4149
|
-
{
|
|
4150
|
-
value: { color: t(s.sx ?? {}, "color") },
|
|
4151
|
-
onChange: l
|
|
4152
|
-
}
|
|
4153
|
-
),
|
|
4154
|
-
/* @__PURE__ */ n(
|
|
4155
|
-
ze,
|
|
4156
|
-
{
|
|
4157
|
-
name: "Style",
|
|
4158
|
-
value: {
|
|
4159
|
-
fontWeight: t(s.sx ?? {}, "fontWeight"),
|
|
4160
|
-
fontStyle: t(s.sx ?? {}, "fontStyle"),
|
|
4161
|
-
textDecorationLine: t(s.sx ?? {}, "textDecorationLine")
|
|
4162
|
-
},
|
|
4163
|
-
onChange: l
|
|
4164
|
-
}
|
|
4165
|
-
),
|
|
4166
|
-
/* @__PURE__ */ n(
|
|
4167
|
-
$e,
|
|
4168
|
-
{
|
|
4169
|
-
value: { fontWeight: t(s.sx ?? {}, "fontWeight") },
|
|
4170
|
-
onChange: l
|
|
4171
|
-
}
|
|
4172
|
-
)
|
|
4173
|
-
] })
|
|
4174
|
-
] }) })
|
|
4175
|
-
] }) }) });
|
|
4176
|
-
}, ri = () => {
|
|
4177
|
-
const { currentScreen: e, getResponsiveProp: o } = B(), { nodeProps: r, setNodeProps: t } = we(), a = (l, c = e) => {
|
|
4178
|
-
t({
|
|
4179
|
-
unitItemProps: {
|
|
4180
|
-
sx: c === "xs" ? l : {
|
|
4181
|
-
[c]: l
|
|
4182
|
-
}
|
|
4183
|
-
}
|
|
4184
|
-
});
|
|
4185
|
-
}, i = r.unitItemProps ?? {}, s = {
|
|
4186
|
-
paddingTop: o(i.sx ?? {}, "paddingTop"),
|
|
4187
|
-
paddingRight: o(i.sx ?? {}, "paddingRight"),
|
|
4188
|
-
paddingBottom: o(i.sx ?? {}, "paddingBottom"),
|
|
4189
|
-
paddingLeft: o(i.sx ?? {}, "paddingLeft")
|
|
4190
|
-
}, d = (l) => {
|
|
4191
|
-
a(
|
|
4192
|
-
{
|
|
4193
|
-
backgroundColor: l
|
|
4194
|
-
},
|
|
4195
|
-
"xs"
|
|
4196
|
-
);
|
|
4197
|
-
};
|
|
4198
|
-
return /* @__PURE__ */ u(m, { name: "Item style", children: [
|
|
4199
|
-
/* @__PURE__ */ n(
|
|
4200
|
-
V,
|
|
4201
|
-
{
|
|
4202
|
-
menu: {
|
|
4203
|
-
autoOption: { visible: !0 }
|
|
4204
|
-
},
|
|
4205
|
-
value: { width: o(i.sx ?? {}, "width") ?? "auto" },
|
|
4206
|
-
onChange: a
|
|
4207
|
-
}
|
|
4208
|
-
),
|
|
4209
|
-
/* @__PURE__ */ n(nt, { onChange: a, value: s }),
|
|
4210
|
-
/* @__PURE__ */ n(
|
|
4211
|
-
Re,
|
|
4212
|
-
{
|
|
4213
|
-
name: "Item gap",
|
|
4214
|
-
onChange: a,
|
|
4215
|
-
value: { rowGap: o(i.sx ?? {}, "rowGap") ?? 0 }
|
|
4216
|
-
}
|
|
4217
|
-
),
|
|
4218
|
-
/* @__PURE__ */ n(P, { name: "Background", children: /* @__PURE__ */ n(
|
|
4219
|
-
Zt,
|
|
4220
|
-
{
|
|
4221
|
-
color: o(i.sx ?? {}, "backgroundColor"),
|
|
4222
|
-
onChange: d
|
|
4223
|
-
}
|
|
4224
|
-
) }),
|
|
4225
|
-
/* @__PURE__ */ n(
|
|
4226
|
-
$,
|
|
4227
|
-
{
|
|
4228
|
-
value: {
|
|
4229
|
-
borderBottomLeftRadius: o(i.sx ?? {}, "borderBottomLeftRadius"),
|
|
4230
|
-
borderBottomRightRadius: o(i.sx ?? {}, "borderBottomRightRadius"),
|
|
4231
|
-
borderTopLeftRadius: o(i.sx ?? {}, "borderTopLeftRadius"),
|
|
4232
|
-
borderTopRightRadius: o(i.sx ?? {}, "borderTopRightRadius")
|
|
4233
|
-
},
|
|
4234
|
-
onChange: a
|
|
4235
|
-
}
|
|
4236
|
-
)
|
|
4237
|
-
] });
|
|
4238
|
-
}, ai = () => {
|
|
4239
|
-
const { nodeProps: e, setNodeProps: o } = we(), [r, t] = U(!1), a = [
|
|
4240
|
-
{
|
|
4241
|
-
label: "Months",
|
|
4242
|
-
value: "months"
|
|
4243
|
-
},
|
|
4244
|
-
{
|
|
4245
|
-
label: "Weeks",
|
|
4246
|
-
value: "weeks"
|
|
4247
|
-
},
|
|
4248
|
-
{
|
|
4249
|
-
label: "Days",
|
|
4250
|
-
value: "days"
|
|
4251
|
-
},
|
|
4252
|
-
{
|
|
4253
|
-
label: "Hours",
|
|
4254
|
-
value: "hours"
|
|
4255
|
-
},
|
|
4256
|
-
{
|
|
4257
|
-
label: "Minutes",
|
|
4258
|
-
value: "minutes"
|
|
4259
|
-
},
|
|
4260
|
-
{
|
|
4261
|
-
label: "Seconds",
|
|
4262
|
-
value: "seconds"
|
|
4263
|
-
}
|
|
4264
|
-
].map((d) => ({
|
|
4265
|
-
...d,
|
|
4266
|
-
currentValue: e.units.find((l) => l.value === d.value)
|
|
4267
|
-
})), i = (d, l) => {
|
|
4268
|
-
if (d === X.False) {
|
|
4269
|
-
o((c) => {
|
|
4270
|
-
c.units = c.units.filter((h) => h.value !== l.currentTarget.name);
|
|
4271
|
-
});
|
|
4272
|
-
return;
|
|
4273
|
-
}
|
|
4274
|
-
o((c) => {
|
|
4275
|
-
const h = [];
|
|
4276
|
-
a.forEach((g) => {
|
|
4277
|
-
if (g.value === l.currentTarget.name) {
|
|
4278
|
-
h.push({
|
|
4279
|
-
value: g.value,
|
|
4280
|
-
caption: g.label
|
|
4281
|
-
});
|
|
4282
|
-
return;
|
|
4283
|
-
}
|
|
4284
|
-
const b = c.units.find((C) => C.value === g.value);
|
|
4285
|
-
if (b) {
|
|
4286
|
-
h.push(b);
|
|
4287
|
-
return;
|
|
4288
|
-
}
|
|
4289
|
-
}), c.units = h;
|
|
4290
|
-
});
|
|
4291
|
-
}, s = (d) => {
|
|
4292
|
-
o((l) => {
|
|
4293
|
-
l.units = l.units.map((c) => c.value === d.target.name ? { ...c, caption: d.target.value } : c);
|
|
4294
|
-
});
|
|
4295
|
-
};
|
|
4296
|
-
return /* @__PURE__ */ n(P, { name: "Units", children: /* @__PURE__ */ u(Ae, { placement: "right", open: r, onOpenChange: t, children: [
|
|
4297
|
-
/* @__PURE__ */ n(De, { children: /* @__PURE__ */ n(
|
|
4298
|
-
"button",
|
|
4299
|
-
{
|
|
4300
|
-
css: [
|
|
4301
|
-
{
|
|
4302
|
-
paddingInline: 8,
|
|
4303
|
-
borderRadius: 6,
|
|
4304
|
-
textAlign: "left",
|
|
4305
|
-
width: "50%",
|
|
4306
|
-
height: 32,
|
|
4307
|
-
backgroundColor: S.palette.white["1s"],
|
|
4308
|
-
overflow: "hidden",
|
|
4309
|
-
textOverflow: "ellipsis",
|
|
4310
|
-
whiteSpace: "nowrap",
|
|
4311
|
-
...S.text.xs
|
|
4312
|
-
},
|
|
4313
|
-
r && { backgroundColor: S.palette.black["7s"] }
|
|
4314
|
-
],
|
|
4315
|
-
children: a.filter((d) => !!d.currentValue).map((d) => d.label).join(", ") || /* @__PURE__ */ n("span", { css: { color: S.palette.white["3s"] }, children: "None" })
|
|
4316
|
-
}
|
|
4317
|
-
) }),
|
|
4318
|
-
/* @__PURE__ */ n(Oe, { style: { top: 120 }, children: /* @__PURE__ */ u("div", { style: { width: 280 }, children: [
|
|
4319
|
-
/* @__PURE__ */ u("div", { css: { display: "flex", justifyContent: "space-between", alignItems: "center", gap: 8 }, children: [
|
|
4320
|
-
/* @__PURE__ */ n("div", { css: { fontWeight: 500 }, children: "Units" }),
|
|
4321
|
-
/* @__PURE__ */ n(He, { children: /* @__PURE__ */ n(G, { children: /* @__PURE__ */ n(E, { source: Fe }) }) })
|
|
4322
|
-
] }),
|
|
4323
|
-
/* @__PURE__ */ n("hr", { css: { marginBlock: 8, borderColor: S.palette.white["1s"] } }),
|
|
4324
|
-
/* @__PURE__ */ n("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: a.map((d) => /* @__PURE__ */ u(Vt, { children: [
|
|
4325
|
-
/* @__PURE__ */ n(P, { name: d.label, children: /* @__PURE__ */ u(
|
|
4326
|
-
_e,
|
|
4327
|
-
{
|
|
4328
|
-
onSelectionChange: i,
|
|
4329
|
-
css: {
|
|
4330
|
-
width: "50%"
|
|
4331
|
-
},
|
|
4332
|
-
value: (!!d.currentValue).toString(),
|
|
4333
|
-
children: [
|
|
4334
|
-
/* @__PURE__ */ n(K, { name: d.value, css: { flex: 1 }, value: X.True, size: "28", children: "Show" }),
|
|
4335
|
-
/* @__PURE__ */ n(K, { name: d.value, css: { flex: 1 }, value: X.False, size: "28", children: "Hide" })
|
|
4336
|
-
]
|
|
4337
|
-
}
|
|
4338
|
-
) }),
|
|
4339
|
-
!!d.currentValue && /* @__PURE__ */ n(P, { name: `${d.label} caption`, children: /* @__PURE__ */ n("div", { css: { width: "50%" }, children: /* @__PURE__ */ n(
|
|
4340
|
-
se,
|
|
4341
|
-
{
|
|
4342
|
-
transform: Ht,
|
|
4343
|
-
debounce: 400,
|
|
4344
|
-
name: d.value,
|
|
4345
|
-
onChange: s,
|
|
4346
|
-
value: d.currentValue.caption ?? "",
|
|
4347
|
-
placeholder: "Caption"
|
|
4348
|
-
}
|
|
4349
|
-
) }) })
|
|
4350
|
-
] }, d.value)) })
|
|
4351
|
-
] }) })
|
|
4352
|
-
] }) });
|
|
4353
|
-
}, is = () => {
|
|
4354
|
-
const { nodeProps: e, setNodeProps: o } = we(), { getResponsiveProp: r, currentScreen: t } = B(), a = (b, C = t) => {
|
|
4355
|
-
o({ sx: W(b, C) });
|
|
4356
|
-
}, i = {
|
|
4357
|
-
paddingBottom: r(e.sx ?? {}, "paddingBottom"),
|
|
4358
|
-
paddingLeft: r(e.sx ?? {}, "paddingLeft"),
|
|
4359
|
-
paddingRight: r(e.sx ?? {}, "paddingRight"),
|
|
4360
|
-
paddingTop: r(e.sx ?? {}, "paddingTop"),
|
|
4361
|
-
marginBottom: r(e.sx ?? {}, "marginBottom"),
|
|
4362
|
-
marginLeft: r(e.sx ?? {}, "marginLeft"),
|
|
4363
|
-
marginRight: r(e.sx ?? {}, "marginRight"),
|
|
4364
|
-
marginTop: r(e.sx ?? {}, "marginTop")
|
|
4365
|
-
}, s = {
|
|
4366
|
-
backgroundColor: r(e.sx ?? {}, "backgroundColor"),
|
|
4367
|
-
backgroundImage: r(e.sx ?? {}, "backgroundImage"),
|
|
4368
|
-
backgroundPosition: r(e.sx ?? {}, "backgroundPosition"),
|
|
4369
|
-
backgroundRepeat: r(e.sx ?? {}, "backgroundRepeat"),
|
|
4370
|
-
background: r(e.sx ?? {}, "background"),
|
|
4371
|
-
backgroundSize: r(e.sx ?? {}, "backgroundSize"),
|
|
4372
|
-
backgroundAttachment: r(e.sx ?? {}, "backgroundAttachment")
|
|
4373
|
-
}, d = {
|
|
4374
|
-
width: r(e.sx ?? {}, "width") ?? "auto"
|
|
4375
|
-
}, l = {
|
|
4376
|
-
borderStyle: r(e.sx ?? {}, "borderStyle"),
|
|
4377
|
-
borderColor: r(e.sx ?? {}, "borderColor"),
|
|
4378
|
-
borderTopWidth: r(e.sx ?? {}, "borderTopWidth"),
|
|
4379
|
-
borderRightWidth: r(e.sx ?? {}, "borderRightWidth"),
|
|
4380
|
-
borderBottomWidth: r(e.sx ?? {}, "borderBottomWidth"),
|
|
4381
|
-
borderLeftWidth: r(e.sx ?? {}, "borderLeftWidth")
|
|
4382
|
-
}, c = {
|
|
4383
|
-
borderTopLeftRadius: r(e.sx ?? {}, "borderTopLeftRadius"),
|
|
4384
|
-
borderTopRightRadius: r(e.sx ?? {}, "borderTopRightRadius"),
|
|
4385
|
-
borderBottomRightRadius: r(e.sx ?? {}, "borderBottomRightRadius"),
|
|
4386
|
-
borderBottomLeftRadius: r(e.sx ?? {}, "borderBottomLeftRadius")
|
|
4387
|
-
}, h = (b) => {
|
|
4388
|
-
o({
|
|
4389
|
-
date: b
|
|
4390
|
-
});
|
|
4391
|
-
}, g = (b) => {
|
|
4392
|
-
o({
|
|
4393
|
-
hideAfterExpired: b.target.checked
|
|
4394
|
-
});
|
|
4395
|
-
};
|
|
4396
|
-
return /* @__PURE__ */ u(D, { children: [
|
|
4397
|
-
/* @__PURE__ */ u(O, { children: [
|
|
4398
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Settings" }),
|
|
4399
|
-
/* @__PURE__ */ n(k, { fill: !0, children: "Advanced" })
|
|
4400
|
-
] }),
|
|
4401
|
-
/* @__PURE__ */ u(F, { css: { paddingInline: 8 }, children: [
|
|
4402
|
-
/* @__PURE__ */ u(L, { children: [
|
|
4403
|
-
/* @__PURE__ */ u(m, { name: "Config", children: [
|
|
4404
|
-
/* @__PURE__ */ n(P, { name: "Date", children: /* @__PURE__ */ n(
|
|
4405
|
-
Vo,
|
|
4406
|
-
{
|
|
4407
|
-
onChange: h,
|
|
4408
|
-
referenceProps: { className: "w-1/2" },
|
|
4409
|
-
value: ee(e.date) ? null : new Date(e.date)
|
|
4410
|
-
}
|
|
4411
|
-
) }),
|
|
4412
|
-
/* @__PURE__ */ n(ai, {}),
|
|
4413
|
-
/* @__PURE__ */ n(P, { name: "Hide after expired", children: /* @__PURE__ */ n(le, { checked: e.hideAfterExpired ?? !1, onChange: g }) })
|
|
4414
|
-
] }),
|
|
4415
|
-
/* @__PURE__ */ u(m, { name: "Layout", children: [
|
|
4416
|
-
/* @__PURE__ */ n(
|
|
4417
|
-
V,
|
|
4418
|
-
{
|
|
4419
|
-
menu: {
|
|
4420
|
-
autoOption: { visible: !0 },
|
|
4421
|
-
fitContentOption: { visible: !0 }
|
|
4422
|
-
},
|
|
4423
|
-
value: d,
|
|
4424
|
-
onChange: a
|
|
4425
|
-
}
|
|
4426
|
-
),
|
|
4427
|
-
/* @__PURE__ */ n(
|
|
4428
|
-
Jt,
|
|
4429
|
-
{
|
|
4430
|
-
value: {
|
|
4431
|
-
flexWrap: r(e.sx ?? {}, "flexWrap")
|
|
4432
|
-
},
|
|
4433
|
-
onChange: a
|
|
4434
|
-
}
|
|
4435
|
-
)
|
|
4436
|
-
] }),
|
|
4437
|
-
/* @__PURE__ */ n(ri, {}),
|
|
4438
|
-
/* @__PURE__ */ n(oi, {}),
|
|
4439
|
-
/* @__PURE__ */ n(ni, {})
|
|
4440
|
-
] }),
|
|
4441
|
-
/* @__PURE__ */ u(L, { children: [
|
|
4442
|
-
/* @__PURE__ */ n(m, { name: "Display on", children: /* @__PURE__ */ n(Y, {}) }),
|
|
4443
|
-
/* @__PURE__ */ n(m, { name: "Spacing (px)", children: /* @__PURE__ */ n(z, { value: i, onChange: a }) }),
|
|
4444
|
-
/* @__PURE__ */ u(m, { name: "Shape", children: [
|
|
4445
|
-
/* @__PURE__ */ n(_, { value: l, onChange: a }),
|
|
4446
|
-
/* @__PURE__ */ n($, { value: c, onChange: a })
|
|
4447
|
-
] }),
|
|
4448
|
-
/* @__PURE__ */ n(m, { name: "Background", children: /* @__PURE__ */ n(Z, { value: s, onChange: a }) })
|
|
4449
|
-
] })
|
|
4450
|
-
] })
|
|
4451
|
-
] });
|
|
4452
|
-
}, ss = ({ children: e, data: o }) => {
|
|
4453
|
-
const { resolver: r } = ne((a) => ({
|
|
4454
|
-
resolver: a.options.resolver
|
|
4455
|
-
})), t = no(() => {
|
|
4456
|
-
if (ee(o)) return o;
|
|
4457
|
-
const a = be(o) ? JSON.parse(o) : o;
|
|
4458
|
-
return Object.entries(a).forEach(([, i]) => {
|
|
4459
|
-
const s = be(i.type) ? i.type : i.type.resolvedName;
|
|
4460
|
-
r[s] || (console.error(`Unknown node: ${s}`), i.type = {
|
|
4461
|
-
resolvedName: T.Unknown
|
|
4462
|
-
});
|
|
4463
|
-
}), a;
|
|
4464
|
-
}, [o, r]);
|
|
4465
|
-
return /* @__PURE__ */ n(Xn, { data: t, children: e });
|
|
4466
|
-
}, ii = {
|
|
4467
|
-
// Root
|
|
4468
|
-
[T.Root]: Jn,
|
|
4469
|
-
// Unknown
|
|
4470
|
-
[T.Unknown]: qn,
|
|
4471
|
-
// Button
|
|
4472
|
-
[T.Button]: Gn,
|
|
4473
|
-
// Text
|
|
4474
|
-
[T.Paragraph]: et,
|
|
4475
|
-
[T.Heading]: Un,
|
|
4476
|
-
// Layout
|
|
4477
|
-
[T.Grid]: jn,
|
|
4478
|
-
[T.Cell]: Wt,
|
|
4479
|
-
[T.Flexbox]: Vn,
|
|
4480
|
-
[T.FlexItem]: Et,
|
|
4481
|
-
[T.Box]: Hn,
|
|
4482
|
-
[T.Container]: _n,
|
|
4483
|
-
// Media
|
|
4484
|
-
[T.Image]: $n,
|
|
4485
|
-
[T.Video]: zn,
|
|
4486
|
-
[T.Icon]: Mn,
|
|
4487
|
-
// Navigation
|
|
4488
|
-
[T.Link]: Fn,
|
|
4489
|
-
// List
|
|
4490
|
-
[T.UnorderedList]: On,
|
|
4491
|
-
[T.ListItem]: Mt,
|
|
4492
|
-
// Carousel
|
|
4493
|
-
[T.Swiper]: Dn,
|
|
4494
|
-
[T.SwiperSlide]: Ft,
|
|
4495
|
-
[T.Marquee]: An,
|
|
4496
|
-
[T.MarqueeItem]: At,
|
|
4497
|
-
// Tabs
|
|
4498
|
-
[T.Tabs]: En,
|
|
4499
|
-
[T.TabList]: Wn,
|
|
4500
|
-
[T.Tab]: Dt,
|
|
4501
|
-
[T.TabContent]: Nn,
|
|
4502
|
-
[T.TabPanel]: Ot,
|
|
4503
|
-
// Accordion
|
|
4504
|
-
[T.AccordionGroup]: Bn,
|
|
4505
|
-
[T.Accordion]: zt,
|
|
4506
|
-
[T.AccordionSummary]: $t,
|
|
4507
|
-
[T.AccordionContent]: _t,
|
|
4508
|
-
// Timer
|
|
4509
|
-
[T.CountdownTimer]: In
|
|
4510
|
-
}, ds = ({ resolver: e, children: o, ...r }) => /* @__PURE__ */ n(
|
|
4511
|
-
Qn,
|
|
4512
|
-
{
|
|
4513
|
-
enabled: !1,
|
|
4514
|
-
onRender: si,
|
|
4515
|
-
handlers: (t) => new di({
|
|
4516
|
-
store: t,
|
|
4517
|
-
removeHoverOnMouseleave: !0,
|
|
4518
|
-
isMultiSelectEnabled: () => !1
|
|
4519
|
-
}),
|
|
4520
|
-
resolver: { ...ii, ...e },
|
|
4521
|
-
...r,
|
|
4522
|
-
children: o
|
|
4523
|
-
}
|
|
4524
|
-
), si = ({ render: e }) => {
|
|
4525
|
-
const { id: o } = A(), { query: r } = ne();
|
|
4526
|
-
return ve(() => {
|
|
4527
|
-
const t = r.node(o).get(), a = he(t);
|
|
4528
|
-
if (ee(a))
|
|
4529
|
-
throw new Error(
|
|
4530
|
-
`The node with id "${t.data.displayName}" does not have a resolved ID. Please check your node configuration.`
|
|
4531
|
-
);
|
|
4532
|
-
}, [o, r]), e;
|
|
4533
|
-
};
|
|
4534
|
-
class di extends eo {
|
|
4535
|
-
handlers() {
|
|
4536
|
-
const o = super.handlers();
|
|
4537
|
-
return {
|
|
4538
|
-
...o,
|
|
4539
|
-
select(r, t) {
|
|
4540
|
-
return (r.getAttribute(Kn.DATA_NODE_SELECTABLE) ?? X.True) === X.True ? o.select(r, t) : () => {
|
|
4541
|
-
};
|
|
4542
|
-
}
|
|
4543
|
-
};
|
|
4544
|
-
}
|
|
4545
|
-
}
|
|
4546
|
-
export {
|
|
4547
|
-
ns as A,
|
|
4548
|
-
rs as B,
|
|
4549
|
-
ss as C,
|
|
4550
|
-
qi as D,
|
|
4551
|
-
Ha as E,
|
|
4552
|
-
Ui as F,
|
|
4553
|
-
$i as G,
|
|
4554
|
-
Ki as H,
|
|
4555
|
-
ts as I,
|
|
4556
|
-
kn as J,
|
|
4557
|
-
Ga as K,
|
|
4558
|
-
Hi as L,
|
|
4559
|
-
Zi as M,
|
|
4560
|
-
Qa as N,
|
|
4561
|
-
Gi as P,
|
|
4562
|
-
j as R,
|
|
4563
|
-
Ca as S,
|
|
4564
|
-
Xi as T,
|
|
4565
|
-
es as U,
|
|
4566
|
-
ya as V,
|
|
4567
|
-
Ji as a,
|
|
4568
|
-
Vi as b,
|
|
4569
|
-
_i as c,
|
|
4570
|
-
ds as d,
|
|
4571
|
-
as as e,
|
|
4572
|
-
is as f,
|
|
4573
|
-
ji as g,
|
|
4574
|
-
Yi as h,
|
|
4575
|
-
Qi as i,
|
|
4576
|
-
wn as j,
|
|
4577
|
-
os as k,
|
|
4578
|
-
Ja as l,
|
|
4579
|
-
ei as m,
|
|
4580
|
-
Ve as n,
|
|
4581
|
-
on as o,
|
|
4582
|
-
ti as p,
|
|
4583
|
-
we as q,
|
|
4584
|
-
yt as r,
|
|
4585
|
-
Sn as s,
|
|
4586
|
-
jo as t,
|
|
4587
|
-
Je as u,
|
|
4588
|
-
qa as v,
|
|
4589
|
-
Se as w,
|
|
4590
|
-
ut as x,
|
|
4591
|
-
Oa as y,
|
|
4592
|
-
qe as z
|
|
4593
|
-
};
|