@bravostudioai/react 0.1.45 → 0.1.47
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/components.js +514 -516
- package/dist/components.js.map +1 -1
- package/dist/src/components.d.ts.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
- package/src/components.tsx +90 -93
- package/src/version.ts +1 -1
package/dist/components.js
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
import { jsx as d, jsxs as
|
|
2
|
-
import v, { useContext as
|
|
1
|
+
import { jsx as d, jsxs as pt, Fragment as Vt } from "react/jsx-runtime";
|
|
2
|
+
import v, { useContext as N, useMemo as Ht, useState as Nt, useCallback as Ot } from "react";
|
|
3
3
|
import q from "./contexts/EncoreBindingContext.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
4
|
+
import k from "./stores/useEncoreState.js";
|
|
5
|
+
import st from "./contexts/EncoreComponentIdContext.js";
|
|
6
|
+
import Mt from "axios";
|
|
7
|
+
import ft from "./contexts/EncoreActionContext.js";
|
|
8
8
|
import Gt from "./contexts/EncoreRepeatingContainerContext.js";
|
|
9
|
-
const
|
|
9
|
+
const lt = v.createContext({}), H = v.createContext(
|
|
10
10
|
{}
|
|
11
|
-
),
|
|
11
|
+
), at = (t) => t.replace(/#(\w{2})(\w{6})/, "#$2$1"), jt = (t) => t.slice(1, 3) === "00", Ut = (t) => {
|
|
12
12
|
if (!Array.isArray(t)) return null;
|
|
13
13
|
const r = t.find((n) => n.startsWith("input-group:"));
|
|
14
14
|
if (!r) return null;
|
|
15
15
|
const e = r.split(":");
|
|
16
16
|
return e.length >= 3 ? { type: e[1], groupName: e[2] } : null;
|
|
17
|
-
},
|
|
18
|
-
const [t, r] =
|
|
17
|
+
}, it = () => {
|
|
18
|
+
const [t, r] = Nt({ width: 0, height: 0 }), e = v.useRef(null);
|
|
19
19
|
return v.useEffect(() => {
|
|
20
20
|
if (!e.current) return;
|
|
21
21
|
const n = e.current, i = () => {
|
|
22
|
-
const { width: o, height:
|
|
23
|
-
r({ width: o, height:
|
|
22
|
+
const { width: o, height: f } = n.getBoundingClientRect();
|
|
23
|
+
r({ width: o, height: f });
|
|
24
24
|
};
|
|
25
25
|
i(), requestAnimationFrame(() => {
|
|
26
26
|
i();
|
|
27
27
|
});
|
|
28
28
|
const s = new ResizeObserver((o) => {
|
|
29
|
-
for (const
|
|
30
|
-
const a =
|
|
29
|
+
for (const f of o) {
|
|
30
|
+
const a = f.contentRect;
|
|
31
31
|
r({ width: a.width, height: a.height });
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
return s.observe(n), () => s.disconnect();
|
|
35
35
|
}, []), { dimensions: t, ref: e };
|
|
36
36
|
}, W = (t, r = {}) => {
|
|
37
|
-
const e =
|
|
37
|
+
const e = N(lt), n = N(H), i = {
|
|
38
38
|
width: window.innerWidth,
|
|
39
39
|
height: window.innerHeight
|
|
40
|
-
}, s =
|
|
40
|
+
}, s = Ot(
|
|
41
41
|
(l) => (n.dimensions?.width ?? 0) * 0.01 * l,
|
|
42
42
|
[n.dimensions?.width]
|
|
43
43
|
), o = {};
|
|
44
44
|
r = { debug: !1, ...r };
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
const a = n.dimensions?.width ?? i.width,
|
|
45
|
+
const f = k((l) => l.fontsById || {});
|
|
46
|
+
if (k((l) => l.fontsByIdFull || {}), !t || !t) return;
|
|
47
|
+
const a = n.dimensions?.width ?? i.width, h = n.dimensions?.height ?? i.height;
|
|
48
48
|
t.layout?.mode === "GRID" && console.log("[DEBUG] GRID MODE DETECTED", {
|
|
49
49
|
id: "unknown",
|
|
50
50
|
// style object doesn't have ID context here easily without prop drill
|
|
51
51
|
layout: t.layout
|
|
52
|
-
}), t.layout?.layoutSizingHorizontal || t.layout?.layoutSizingVertical || (t.width && a > 0 && (o.width = t.width * a * 0.01), t.aspectRatio && t.width ? a > 0 && (o.height = t.width * a * 0.01 / t.aspectRatio) : t.height &&
|
|
53
|
-
const
|
|
54
|
-
if (!
|
|
55
|
-
const l = t.layout?.layoutSizingHorizontal === "FIXED" || t.layout?.layoutSizingVertical === "FIXED",
|
|
56
|
-
let
|
|
57
|
-
t.horizontalPosition === "center" && (
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
60
|
-
if (
|
|
61
|
-
const
|
|
62
|
-
|
|
52
|
+
}), t.layout?.layoutSizingHorizontal || t.layout?.layoutSizingVertical || (t.width && a > 0 && (o.width = t.width * a * 0.01), t.aspectRatio && t.width ? a > 0 && (o.height = t.width * a * 0.01 / t.aspectRatio) : t.height && h > 0 && (o.height = t.height * h * 0.01));
|
|
53
|
+
const g = n?.isFlex ?? !1;
|
|
54
|
+
if (!g && t.positioning) {
|
|
55
|
+
const l = t.layout?.layoutSizingHorizontal === "FIXED" || t.layout?.layoutSizingVertical === "FIXED", S = l && t.positioning.top < 0 ? 0 : t.positioning.top, w = l && t.positioning.left < 0 ? 0 : t.positioning.left;
|
|
56
|
+
let L = !1;
|
|
57
|
+
t.horizontalPosition === "center" && (L = !0), o.top = `${S}%`;
|
|
58
|
+
const E = !!t.inset;
|
|
59
|
+
if (L) {
|
|
60
|
+
if (E) {
|
|
61
|
+
const c = String(t.inset).split(/\s+/);
|
|
62
|
+
c.length === 3 ? o.inset = `${c[0]} 50% ${c[2]} auto` : c.length === 4 && (o.inset = `${c[0]} 50% ${c[2]} auto`), delete o.left, delete o.right;
|
|
63
63
|
} else
|
|
64
64
|
o.left = "50%", o.right = "auto";
|
|
65
65
|
o.transform = "translateX(-50%)";
|
|
66
66
|
} else
|
|
67
|
-
|
|
67
|
+
E ? o.inset = t.inset : o.left = `${w}%`;
|
|
68
68
|
l ? (o.right = "auto", o.bottom = "auto") : (t.positioning.bottom !== void 0 && (o.bottom = `${t.positioning.bottom}%`), t.positioning.right !== void 0 && (o.right = `${t.positioning.right}%`)), o.position = "absolute";
|
|
69
69
|
}
|
|
70
70
|
if (t.layout?.padding) {
|
|
71
|
-
const l = e.scaleFactor ?? 1,
|
|
72
|
-
|
|
71
|
+
const l = e.scaleFactor ?? 1, S = t.layout.padding;
|
|
72
|
+
S.top !== void 0 && (o.paddingTop = S.top * l), S.right !== void 0 && (o.paddingRight = S.right * l), S.bottom !== void 0 && (o.paddingBottom = S.bottom * l), S.left !== void 0 && (o.paddingLeft = S.left * l);
|
|
73
73
|
}
|
|
74
74
|
if (t.layout?.mode) {
|
|
75
75
|
o.display = "flex";
|
|
76
|
-
const l = (
|
|
76
|
+
const l = (c) => c ? {
|
|
77
77
|
MIN: "flex-start",
|
|
78
78
|
MAX: "flex-end",
|
|
79
79
|
CENTER: "center",
|
|
80
80
|
SPACE_BETWEEN: "space-between",
|
|
81
81
|
SPACE_AROUND: "space-around",
|
|
82
82
|
SPACE_EVENLY: "space-evenly"
|
|
83
|
-
}[
|
|
83
|
+
}[c] || c.toLowerCase().replace(/_/g, "-") : void 0;
|
|
84
84
|
t.layout.mode == "HORIZONTAL" || t.layout.mode == "GRID" ? (o.flexDirection = "row", t.layout.flexWrap && (o.flexWrap = t.layout.flexWrap), o.justifyContent = l(
|
|
85
85
|
t.layout.primaryAxisAlignItems
|
|
86
86
|
), o.alignItems = t.layout.counterAxisAlignItems) : (o.flexDirection = "column", o.justifyContent = l(
|
|
87
87
|
t.layout.primaryAxisAlignItems
|
|
88
88
|
), o.alignItems = t.layout.counterAxisAlignItems), o.flexGrow = t.layout.grow, t.layout.wrap === "WRAP" || t.layout.flexWrap === "wrap" || t.layout.mode === "GRID" ? o.flexWrap = "wrap" : t.layout.flexWrap ? o.flexWrap = t.layout.flexWrap : o.flexWrap = "nowrap";
|
|
89
|
-
const
|
|
90
|
-
o.gap =
|
|
91
|
-
itemSpacing:
|
|
92
|
-
spacing:
|
|
89
|
+
const S = t.layout.itemSpacing, w = e.scaleFactor ?? 1, E = t.layout.primaryAxisAlignItems === "SPACE_BETWEEN" ? 0 : (S !== void 0 ? S : 0) * w;
|
|
90
|
+
o.gap = E === 0 ? "0px" : `${E}px`, o.rowGap = E === 0 ? "0px" : `${E}px`, o.columnGap = E === 0 ? "0px" : `${E}px`, (o.flexWrap === "wrap" || o.flexWrap === "wrap-reverse") && (o.alignContent = "flex-start"), r.debug || t.layout?.mode === "HORIZONTAL" && S === 0 ? console.log("[useEncoreStyle] Setting gap properties:", {
|
|
91
|
+
itemSpacing: S,
|
|
92
|
+
spacing: E,
|
|
93
93
|
gap: o.gap,
|
|
94
94
|
rowGap: o.rowGap,
|
|
95
95
|
columnGap: o.columnGap,
|
|
@@ -99,10 +99,10 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
99
99
|
"[useEncoreStyle] No gap properties set",
|
|
100
100
|
r.debug,
|
|
101
101
|
t.layout?.mode,
|
|
102
|
-
|
|
102
|
+
S
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
|
-
if (t.layout?.layoutSizingHorizontal === "FILL" && (
|
|
105
|
+
if (t.layout?.layoutSizingHorizontal === "FILL" && (g || (o.width = "100%")), t.layout?.layoutSizingHorizontal === "FIXED") {
|
|
106
106
|
const l = e.scaleFactor ?? 1;
|
|
107
107
|
o.width = t.layout.size.x * l;
|
|
108
108
|
}
|
|
@@ -112,12 +112,12 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
112
112
|
}
|
|
113
113
|
if (t.layout?.layoutSizingVertical === "FILL")
|
|
114
114
|
if (!(n?.isFlex ?? !1) && t.positioning && t.positioning?.top !== void 0) {
|
|
115
|
-
const
|
|
116
|
-
o.height = `${
|
|
115
|
+
const L = 100 - t.positioning.top;
|
|
116
|
+
o.height = `${L}%`;
|
|
117
117
|
} else
|
|
118
118
|
o.height = "100%";
|
|
119
|
-
t.layout?.layoutSizingVertical, t.backgroundColor && !jt(t.backgroundColor) && (o.backgroundColor =
|
|
120
|
-
const y = (t.fontId ?
|
|
119
|
+
t.layout?.layoutSizingVertical, t.backgroundColor && !jt(t.backgroundColor) && (o.backgroundColor = at(t.backgroundColor)), t.color && (o.color = at(t.color)), t.lineHeightPx && (o.lineHeight = (t.lineHeightPx * (e.scaleFactor ?? 1)).toString() + "px"), t.fontSize && (o.fontSize = t.fontSize * (e.scaleFactor ?? 1)), t.fontWeight && (o.fontWeight = `${t.fontWeight}`), t.opacity && (o.opacity = t.opacity * 0.01);
|
|
120
|
+
const y = (t.fontId ? f[t.fontId] : void 0) || t.fontFamily || void 0;
|
|
121
121
|
if (y ? ([
|
|
122
122
|
"sans-serif",
|
|
123
123
|
"serif",
|
|
@@ -138,9 +138,9 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
138
138
|
const l = t.cornerRadii.map(s);
|
|
139
139
|
o.borderTopLeftRadius = l[0], o.borderTopRightRadius = l[1], o.borderBottomRightRadius = l[2], o.borderBottomLeftRadius = l[3], delete o.borderRadius;
|
|
140
140
|
}
|
|
141
|
-
return t.borderWidth && (t.borderWidth > 5 ? o.borderWidth = t.borderWidth * 0.5 : o.borderWidth = t.borderWidth * 1.5), t.borderColor && (o.borderColor =
|
|
141
|
+
return t.borderWidth && (t.borderWidth > 5 ? o.borderWidth = t.borderWidth * 0.5 : o.borderWidth = t.borderWidth * 1.5), t.borderColor && (o.borderColor = at(t.borderColor)), (t.borderWidth || t.borderColor) && (o.borderStyle = "solid"), t.rotation && (o.transform = `rotate(${t.rotation}deg)`), t.textCase === "upper" && (o.textTransform = "uppercase"), t.textCase === "lower" && (o.textTransform = "lowercase"), t.letterSpacing && (o.letterSpacing = t.letterSpacing), t.textAlign && (o.textAlign = t.textAlign), r.debug && (o.borderWidth = 1, o.borderColor = "#FF0000FF", o.borderStyle = "solid"), o;
|
|
142
142
|
}, J = ({ id: t, nodeData: r }) => {
|
|
143
|
-
const e =
|
|
143
|
+
const e = N(q), n = e?.nodeData?.[t], { patch: i, list: s } = n ?? { list: null, patch: null }, f = Array.isArray(r?.tags) && (r.tags.includes("encore:data:array") || r.tags.includes("bravo:data:array")) && e?.arrayDataById && e.arrayDataById[t] && Array.isArray(e.arrayDataById[t]) ? e.arrayDataById[t] : null;
|
|
144
144
|
let a = i ? {
|
|
145
145
|
...r,
|
|
146
146
|
...i || {},
|
|
@@ -148,45 +148,45 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
148
148
|
// Preserve original actions if patch has empty or missing actions
|
|
149
149
|
actions: i.actions && Array.isArray(i.actions) && i.actions.length > 0 ? i.actions : r.actions || i.actions || []
|
|
150
150
|
} : r;
|
|
151
|
-
const
|
|
152
|
-
|
|
151
|
+
const h = e?.textOverridesById && e.textOverridesById[t] !== void 0 ? e.textOverridesById[t] : void 0;
|
|
152
|
+
h !== void 0 && Array.isArray(r?.tags) && r.tags.includes("PROP:TEXT_VAR") && (a = {
|
|
153
153
|
...a,
|
|
154
|
-
data: { ...a?.data || {}, text: String(
|
|
154
|
+
data: { ...a?.data || {}, text: String(h) }
|
|
155
155
|
});
|
|
156
|
-
const
|
|
157
|
-
|
|
156
|
+
const I = Array.isArray(r?.tags) && (r.tags.includes("encore:data") || r.tags.includes("bravo:data")), g = e?.rootData;
|
|
157
|
+
g && g[t] && typeof g[t] == "object" && (a = {
|
|
158
158
|
...a,
|
|
159
159
|
data: {
|
|
160
160
|
...a.data || {},
|
|
161
|
-
...
|
|
161
|
+
...g[t]
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
164
|
const y = e?.nodeData && typeof e.nodeData == "object";
|
|
165
|
-
if (
|
|
165
|
+
if (I || y) {
|
|
166
166
|
const l = e?.nodeData;
|
|
167
167
|
if (l && typeof l == "object") {
|
|
168
168
|
if (l[t] !== void 0) {
|
|
169
|
-
const
|
|
170
|
-
|
|
169
|
+
const w = l[t];
|
|
170
|
+
w && typeof w == "object" && a.data && (a = {
|
|
171
171
|
...a,
|
|
172
172
|
data: {
|
|
173
173
|
...a.data,
|
|
174
|
-
...
|
|
174
|
+
...w
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
|
-
} else if (
|
|
177
|
+
} else if (I && l.description && a.data && (a = {
|
|
178
178
|
...a,
|
|
179
179
|
data: {
|
|
180
180
|
...a.data,
|
|
181
181
|
text: l.description
|
|
182
182
|
}
|
|
183
183
|
}), l.image && a.data) {
|
|
184
|
-
const
|
|
184
|
+
const w = l.image.startsWith("//") ? `https:${l.image}` : l.image;
|
|
185
185
|
a = {
|
|
186
186
|
...a,
|
|
187
187
|
data: {
|
|
188
188
|
...a.data,
|
|
189
|
-
imageUrl:
|
|
189
|
+
imageUrl: w
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
192
|
}
|
|
@@ -195,10 +195,10 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
195
195
|
}
|
|
196
196
|
return {
|
|
197
197
|
patch: i,
|
|
198
|
-
list: s ||
|
|
198
|
+
list: s || f,
|
|
199
199
|
// Use arrayData if list is not provided
|
|
200
200
|
patchedNodeData: a,
|
|
201
|
-
arrayData:
|
|
201
|
+
arrayData: f
|
|
202
202
|
// Also return separately for components that need it
|
|
203
203
|
};
|
|
204
204
|
}, Q = ({
|
|
@@ -209,37 +209,30 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
209
209
|
_parentInputGroupInfo: i,
|
|
210
210
|
_parentName: s
|
|
211
211
|
}) => {
|
|
212
|
-
const o =
|
|
213
|
-
|
|
214
|
-
const { onAction: a } = v.useContext(
|
|
215
|
-
|
|
216
|
-
),
|
|
217
|
-
(
|
|
218
|
-
), l =
|
|
219
|
-
(
|
|
220
|
-
),
|
|
221
|
-
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
{ debug: !1 }
|
|
227
|
-
);
|
|
228
|
-
w.zIndex = 99999, w.backgroundColor = "transparent", w.position = "absolute", w.top = "0", w.left = "0", w.right = "0", w.bottom = "0", w.width = "100%", w.height = "100%", w.pointerEvents = "auto", w.isolation = "isolate";
|
|
229
|
-
const k = async (h) => {
|
|
230
|
-
let S = !1;
|
|
231
|
-
const G = () => {
|
|
232
|
-
S = !1;
|
|
212
|
+
const o = k((c) => c.baseURL), f = k((c) => c.appId);
|
|
213
|
+
k((c) => c.pageId);
|
|
214
|
+
const { onAction: a } = v.useContext(ft), { statefulSetId: h } = v.useContext(
|
|
215
|
+
st
|
|
216
|
+
), I = n || h, { patchedNodeData: g } = J({ id: t, nodeData: r }), y = k(
|
|
217
|
+
(c) => c.setStatefulSetVariant
|
|
218
|
+
), l = k(
|
|
219
|
+
(c) => c.setInputGroupValue
|
|
220
|
+
), S = k((c) => c.setAccessToken), { app: w } = k((c) => c.app);
|
|
221
|
+
w.data?.app?.startPageId, w.data?.app?.PageId;
|
|
222
|
+
const L = async (c) => {
|
|
223
|
+
let $ = !1;
|
|
224
|
+
const A = () => {
|
|
225
|
+
$ = !1;
|
|
233
226
|
};
|
|
234
227
|
if (typeof a == "function")
|
|
235
228
|
try {
|
|
236
|
-
await a({ bravo: { cancel:
|
|
229
|
+
await a({ bravo: { cancel: A, action: c, componentId: t } }), $ = !0;
|
|
237
230
|
} catch {
|
|
238
231
|
}
|
|
239
232
|
else
|
|
240
|
-
|
|
241
|
-
if (
|
|
242
|
-
switch (
|
|
233
|
+
$ = !0;
|
|
234
|
+
if ($)
|
|
235
|
+
switch (c.action) {
|
|
243
236
|
case "login":
|
|
244
237
|
// TODO firebase
|
|
245
238
|
// TODO oauth
|
|
@@ -249,7 +242,7 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
249
242
|
case "submit":
|
|
250
243
|
break;
|
|
251
244
|
case "email":
|
|
252
|
-
window.location.href = `mailto:${
|
|
245
|
+
window.location.href = `mailto:${c.params.email}`;
|
|
253
246
|
break;
|
|
254
247
|
case "goback":
|
|
255
248
|
break;
|
|
@@ -258,22 +251,22 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
258
251
|
case "homepage":
|
|
259
252
|
break;
|
|
260
253
|
case "logout":
|
|
261
|
-
|
|
254
|
+
S(void 0);
|
|
262
255
|
break;
|
|
263
256
|
case "none":
|
|
264
257
|
break;
|
|
265
258
|
case "openurl":
|
|
266
|
-
window.open(
|
|
259
|
+
window.open(c.params.url, "_blank");
|
|
267
260
|
break;
|
|
268
261
|
case "phone":
|
|
269
|
-
window.location.href = `tel:${
|
|
262
|
+
window.location.href = `tel:${c.params.phone}`;
|
|
270
263
|
break;
|
|
271
264
|
case "remote":
|
|
272
|
-
const
|
|
273
|
-
|
|
265
|
+
const O = btoa(JSON.stringify(c.params?.data || {})), U = `${o}/devices/apps/${f}/node/${t}/trigger/${c.event}?params=${O}`, M = await Mt.post(U);
|
|
266
|
+
M.data?.action && await L(M.data);
|
|
274
267
|
break;
|
|
275
268
|
case "set-access-token":
|
|
276
|
-
|
|
269
|
+
S(c.params);
|
|
277
270
|
break;
|
|
278
271
|
case "set-state":
|
|
279
272
|
if (i && s)
|
|
@@ -299,65 +292,60 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
299
292
|
componentId: t
|
|
300
293
|
}
|
|
301
294
|
}), console.log("✅ Input group change event fired");
|
|
302
|
-
} catch (
|
|
303
|
-
console.error("❌ Error in onAction callback:",
|
|
295
|
+
} catch (G) {
|
|
296
|
+
console.error("❌ Error in onAction callback:", G);
|
|
304
297
|
}
|
|
305
298
|
else
|
|
306
299
|
console.warn("⚠️ No onAction callback provided");
|
|
307
300
|
else {
|
|
308
|
-
let
|
|
309
|
-
if (!
|
|
301
|
+
let G = I || c.params?.stateSetId || g.data?.stateSetId;
|
|
302
|
+
if (!G) {
|
|
310
303
|
console.error("❌ No stateSetId found in action or nodeData!", {
|
|
311
|
-
actionParams:
|
|
312
|
-
nodeDataStateSetId:
|
|
313
|
-
parentStatefulSetId:
|
|
304
|
+
actionParams: c.params,
|
|
305
|
+
nodeDataStateSetId: g.data?.stateSetId,
|
|
306
|
+
parentStatefulSetId: I
|
|
314
307
|
});
|
|
315
308
|
break;
|
|
316
309
|
}
|
|
317
|
-
y(
|
|
310
|
+
y(G, c.params.state);
|
|
318
311
|
}
|
|
319
312
|
break;
|
|
320
313
|
case "showalert":
|
|
321
|
-
alert(
|
|
314
|
+
alert(c.params.message);
|
|
322
315
|
break;
|
|
323
316
|
default:
|
|
324
|
-
console.log(
|
|
317
|
+
console.log(c), alert(c.action);
|
|
325
318
|
}
|
|
326
319
|
};
|
|
327
320
|
if (r.href)
|
|
328
|
-
return /* @__PURE__ */
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
{
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
e
|
|
349
|
-
] });
|
|
350
|
-
let T = f.actions && f.actions.length > 0 ? f.actions : r.actions || [];
|
|
351
|
-
if (E && T.length > 0 && (T = T.map((h) => h.action === "set-state" ? (h.params?.stateSetId, {
|
|
352
|
-
...h,
|
|
321
|
+
return /* @__PURE__ */ d(
|
|
322
|
+
"div",
|
|
323
|
+
{
|
|
324
|
+
onClick: () => L({
|
|
325
|
+
action: "goto",
|
|
326
|
+
params: { href: r.href },
|
|
327
|
+
event: "tap"
|
|
328
|
+
}),
|
|
329
|
+
style: {
|
|
330
|
+
display: "contents",
|
|
331
|
+
cursor: "pointer"
|
|
332
|
+
},
|
|
333
|
+
role: "button",
|
|
334
|
+
"aria-label": `Go to ${r.href}`,
|
|
335
|
+
children: e
|
|
336
|
+
}
|
|
337
|
+
);
|
|
338
|
+
let E = g.actions && g.actions.length > 0 ? g.actions : r.actions || [];
|
|
339
|
+
if (I && E.length > 0 && (E = E.map((c) => c.action === "set-state" ? (c.params?.stateSetId, {
|
|
340
|
+
...c,
|
|
353
341
|
params: {
|
|
354
|
-
...
|
|
355
|
-
stateSetId:
|
|
342
|
+
...c.params,
|
|
343
|
+
stateSetId: I
|
|
356
344
|
// Always use parent's id
|
|
357
345
|
}
|
|
358
|
-
}) :
|
|
346
|
+
}) : c)), E.length === 0 && (g.data?.stateSetId || I))
|
|
359
347
|
if (i && s)
|
|
360
|
-
|
|
348
|
+
E = [
|
|
361
349
|
{
|
|
362
350
|
action: "set-state",
|
|
363
351
|
params: {
|
|
@@ -368,13 +356,13 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
368
356
|
}
|
|
369
357
|
];
|
|
370
358
|
else {
|
|
371
|
-
const
|
|
372
|
-
|
|
359
|
+
const c = I || g.data.stateSetId;
|
|
360
|
+
c ? E = [
|
|
373
361
|
{
|
|
374
362
|
action: "set-state",
|
|
375
363
|
params: {
|
|
376
|
-
state:
|
|
377
|
-
stateSetId:
|
|
364
|
+
state: k.getState().statefulSetVariants[c] === "active" ? "default" : "active",
|
|
365
|
+
stateSetId: c
|
|
378
366
|
// Use parent's id or button's stateSetId
|
|
379
367
|
},
|
|
380
368
|
event: "tap"
|
|
@@ -384,25 +372,35 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
384
372
|
{ id: t, name: r.name }
|
|
385
373
|
);
|
|
386
374
|
}
|
|
387
|
-
if (
|
|
388
|
-
const
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
375
|
+
if (E && E.length > 0) {
|
|
376
|
+
const c = E[0];
|
|
377
|
+
if (c.event === "tap") {
|
|
378
|
+
const $ = (O) => {
|
|
379
|
+
O.stopPropagation(), L(c);
|
|
380
|
+
}, A = {
|
|
381
|
+
display: "contents",
|
|
382
|
+
cursor: "pointer"
|
|
383
|
+
// Ensure the wrapper doesn't block pointer events, but its children should capture them.
|
|
384
|
+
// pointerEvents: 'auto' is default.
|
|
385
|
+
};
|
|
386
|
+
return c.action === "openurl" && c.params?.url ? /* @__PURE__ */ d(
|
|
387
|
+
"a",
|
|
393
388
|
{
|
|
394
|
-
|
|
395
|
-
|
|
389
|
+
href: c.params.url,
|
|
390
|
+
target: "_blank",
|
|
391
|
+
rel: "noopener noreferrer",
|
|
392
|
+
onClick: (O) => {
|
|
393
|
+
O.stopPropagation();
|
|
396
394
|
},
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
395
|
+
style: A,
|
|
396
|
+
"aria-label": r.name || "Open Link",
|
|
397
|
+
children: e
|
|
400
398
|
}
|
|
401
|
-
)
|
|
402
|
-
|
|
399
|
+
) : /* @__PURE__ */ d("div", { onClick: $, style: A, children: e });
|
|
400
|
+
}
|
|
403
401
|
}
|
|
404
402
|
return e;
|
|
405
|
-
},
|
|
403
|
+
}, ct = ({ id: t, name: r, nodeData: e }) => {
|
|
406
404
|
const { patchedNodeData: n } = J({ id: t, nodeData: e }), i = W(n.style, {
|
|
407
405
|
debug: !1
|
|
408
406
|
});
|
|
@@ -421,34 +419,34 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
421
419
|
e = n;
|
|
422
420
|
const i = W(e.style, {
|
|
423
421
|
debug: !1
|
|
424
|
-
}), s =
|
|
422
|
+
}), s = k((a) => a.assetsById), o = e.style?.scaleMode || "fill";
|
|
425
423
|
o === "fill" ? i.objectFit = "cover" : o === "fit" && (i.objectFit = "contain"), i.objectPosition = "center";
|
|
426
|
-
let
|
|
427
|
-
return !
|
|
424
|
+
let f = e.data?.videoUrl;
|
|
425
|
+
return !f && e.encoreData?.video && (f = e.encoreData.video), f || (f = s[e.assetId]?.url), !f && !i.backgroundColor && !i.borderColor ? null : /* @__PURE__ */ d(
|
|
428
426
|
"video",
|
|
429
427
|
{
|
|
430
428
|
"data-id": t,
|
|
431
429
|
"data-name": r,
|
|
432
430
|
"data-type": "VideoComponent",
|
|
433
431
|
style: { ...i },
|
|
434
|
-
src:
|
|
432
|
+
src: f,
|
|
435
433
|
controls: !0,
|
|
436
434
|
playsInline: !0
|
|
437
435
|
}
|
|
438
436
|
);
|
|
439
|
-
},
|
|
437
|
+
}, ht = ({ id: t, name: r, nodeData: e }) => {
|
|
440
438
|
const n = W(e.style, {
|
|
441
439
|
debug: !1
|
|
442
440
|
});
|
|
443
441
|
if (!n.backgroundColor && !n.borderColor)
|
|
444
442
|
return null;
|
|
445
443
|
if (n.borderColor && !n.backgroundColor && (n.backgroundColor = "transparent"), n.borderColor && n.borderWidth) {
|
|
446
|
-
const
|
|
447
|
-
(!n.width || typeof n.width == "number" && n.width === 0) && (n.width =
|
|
444
|
+
const I = Math.max(n.borderWidth || 0, 1);
|
|
445
|
+
(!n.width || typeof n.width == "number" && n.width === 0) && (n.width = I), (!n.height || typeof n.height == "number" && n.height === 0) && (n.height = I), n.boxSizing = "border-box";
|
|
448
446
|
}
|
|
449
|
-
const i = Array.isArray(e.tags) && e.tags.includes("bravo:layer"), s =
|
|
450
|
-
return a && (n.position = "absolute", n.top = 0, n.left = 0, n.right = 0, n.bottom = 0, n.zIndex = -1, n.width && typeof n.width == "string" && n.width.includes("%") && delete n.width, n.height && typeof n.height == "string" && n.height.includes("%") && delete n.height),
|
|
451
|
-
},
|
|
447
|
+
const i = Array.isArray(e.tags) && e.tags.includes("bravo:layer"), s = N(H)?.isFlex ?? !1, o = e.style?.positioning, f = o && typeof o.top == "number" && typeof o.left == "number" && typeof o.right == "number" && typeof o.bottom == "number" && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0, a = i && (s || f), h = r && r.toLowerCase().startsWith("clip");
|
|
448
|
+
return a && (n.position = "absolute", n.top = 0, n.left = 0, n.right = 0, n.bottom = 0, n.zIndex = -1, n.width && typeof n.width == "string" && n.width.includes("%") && delete n.width, n.height && typeof n.height == "string" && n.height.includes("%") && delete n.height), h && (n.backgroundColor = "transparent"), /* @__PURE__ */ d(Q, { id: t, nodeData: e, children: /* @__PURE__ */ d("div", { "data-name": r, "data-type": "ColorComponent", style: n }) });
|
|
449
|
+
}, gt = ({
|
|
452
450
|
id: t,
|
|
453
451
|
name: r,
|
|
454
452
|
nodeData: e
|
|
@@ -457,41 +455,41 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
457
455
|
debug: !1
|
|
458
456
|
}), i = e.style, s = Array.isArray(i?.gradientColorStops) ? i.gradientColorStops.map((o) => {
|
|
459
457
|
if (!o?.color) return null;
|
|
460
|
-
const
|
|
458
|
+
const f = at(o.color);
|
|
461
459
|
if (typeof o.position == "number") {
|
|
462
460
|
const a = o.position * 100;
|
|
463
|
-
return `${
|
|
461
|
+
return `${f} ${a}%`;
|
|
464
462
|
}
|
|
465
|
-
return
|
|
463
|
+
return f;
|
|
466
464
|
}).filter(Boolean).join(", ") : "";
|
|
467
465
|
if (s) {
|
|
468
466
|
const o = i?.gradientType || "linear";
|
|
469
467
|
n.backgroundImage = o === "radial" ? `radial-gradient(${s})` : `linear-gradient(${s})`, delete n.backgroundColor;
|
|
470
468
|
}
|
|
471
469
|
return /* @__PURE__ */ d(Q, { id: t, nodeData: e, children: /* @__PURE__ */ d("div", { "data-name": r, "data-type": "GradientComponent", style: n }) });
|
|
472
|
-
},
|
|
470
|
+
}, mt = ({ id: t, name: r, nodeData: e }) => {
|
|
473
471
|
const { patchedNodeData: n } = J({ id: t, nodeData: e });
|
|
474
472
|
e = n;
|
|
475
473
|
const i = W(e.style, {
|
|
476
474
|
debug: !1
|
|
477
|
-
}), s =
|
|
478
|
-
|
|
475
|
+
}), s = N(H), o = k((l) => l.assetsById), f = e.style?.scaleMode || "fill";
|
|
476
|
+
f === "fill" ? i.objectFit = "cover" : f === "fit" && (i.objectFit = "contain"), i.objectPosition = "center";
|
|
479
477
|
let a = e.data?.imageUrl;
|
|
480
478
|
!a && e.encoreData?.image && (a = e.encoreData.image.startsWith("//") ? `https:${e.encoreData.image}` : e.encoreData.image), a || (a = o[e.assetId]?.url);
|
|
481
|
-
const
|
|
482
|
-
if (
|
|
483
|
-
const l = typeof
|
|
479
|
+
const h = e.style?.positioning, I = e.style?.aspectRatio, g = s.dimensions?.width || 0, y = s.dimensions?.height || 0;
|
|
480
|
+
if (h && I && g > 0) {
|
|
481
|
+
const l = typeof h.left == "number" && typeof h.right == "number", S = typeof h.top == "number" && typeof h.bottom == "number";
|
|
484
482
|
if (l) {
|
|
485
|
-
const
|
|
486
|
-
if (
|
|
487
|
-
const
|
|
488
|
-
i.width =
|
|
483
|
+
const w = 100 - h.left - h.right;
|
|
484
|
+
if (w > 0) {
|
|
485
|
+
const L = w * g / 100;
|
|
486
|
+
i.width = L, i.height = L / I, i.left = `${Math.max(0, h.left)}%`, i.top = `${Math.max(0, h.top)}%`, delete i.right, delete i.bottom;
|
|
489
487
|
}
|
|
490
|
-
} else if (
|
|
491
|
-
const
|
|
492
|
-
if (
|
|
493
|
-
const
|
|
494
|
-
i.height =
|
|
488
|
+
} else if (S && y > 0) {
|
|
489
|
+
const w = 100 - h.top - h.bottom;
|
|
490
|
+
if (w > 0) {
|
|
491
|
+
const L = w * y / 100;
|
|
492
|
+
i.height = L, i.width = L * I, i.left = `${Math.max(0, h.left)}%`, i.top = `${Math.max(0, h.top)}%`, delete i.right, delete i.bottom;
|
|
495
493
|
}
|
|
496
494
|
}
|
|
497
495
|
}
|
|
@@ -506,12 +504,12 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
506
504
|
alt: r
|
|
507
505
|
}
|
|
508
506
|
) });
|
|
509
|
-
},
|
|
507
|
+
}, yt = ({
|
|
510
508
|
id: t,
|
|
511
509
|
name: r,
|
|
512
510
|
nodeData: e
|
|
513
511
|
}) => {
|
|
514
|
-
const n =
|
|
512
|
+
const n = k((s) => s.setFormInputValue), i = W(e.style, { debug: !1 });
|
|
515
513
|
return /* @__PURE__ */ d(
|
|
516
514
|
"input",
|
|
517
515
|
{
|
|
@@ -524,7 +522,7 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
524
522
|
type: "email"
|
|
525
523
|
}
|
|
526
524
|
);
|
|
527
|
-
},
|
|
525
|
+
}, bt = ({
|
|
528
526
|
id: t,
|
|
529
527
|
name: r,
|
|
530
528
|
nodeData: e
|
|
@@ -540,13 +538,13 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
540
538
|
type: "hidden"
|
|
541
539
|
}
|
|
542
540
|
);
|
|
543
|
-
},
|
|
541
|
+
}, Ct = ({
|
|
544
542
|
id: t,
|
|
545
543
|
name: r,
|
|
546
544
|
nodeData: e
|
|
547
545
|
}) => {
|
|
548
|
-
const n =
|
|
549
|
-
return /* @__PURE__ */
|
|
546
|
+
const n = k((o) => o.setFormInputValue), i = W(e.style, { debug: !1 }), s = k((o) => o.assetsById);
|
|
547
|
+
return /* @__PURE__ */ pt(Vt, { children: [
|
|
550
548
|
/* @__PURE__ */ d(
|
|
551
549
|
"div",
|
|
552
550
|
{
|
|
@@ -567,12 +565,12 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
567
565
|
}
|
|
568
566
|
)
|
|
569
567
|
] });
|
|
570
|
-
},
|
|
568
|
+
}, vt = ({
|
|
571
569
|
id: t,
|
|
572
570
|
name: r,
|
|
573
571
|
nodeData: e
|
|
574
572
|
}) => {
|
|
575
|
-
const n =
|
|
573
|
+
const n = k((s) => s.setFormInputValue), i = W(e.style, { debug: !1 });
|
|
576
574
|
return /* @__PURE__ */ d(
|
|
577
575
|
"input",
|
|
578
576
|
{
|
|
@@ -585,24 +583,24 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
585
583
|
type: "password"
|
|
586
584
|
}
|
|
587
585
|
);
|
|
588
|
-
},
|
|
586
|
+
}, xt = ({
|
|
589
587
|
id: t,
|
|
590
588
|
name: r,
|
|
591
589
|
nodeData: e
|
|
592
590
|
}) => {
|
|
593
|
-
const n =
|
|
591
|
+
const n = k((g) => g.setFormInputValue), { onAction: i } = v.useContext(ft), { patchedNodeData: s } = J({ id: t, nodeData: e }), o = W(s.style, { debug: !1 });
|
|
594
592
|
o.width = "100%", o.flex = "1", o.minWidth = "0", o.boxSizing = "border-box", o.borderColor = o.borderColor ?? "transparent";
|
|
595
|
-
const
|
|
596
|
-
return /* @__PURE__ */
|
|
593
|
+
const f = s.data?.value, a = s.data?.options, h = v.useMemo(() => !a || !Array.isArray(a) ? [] : a.map((g) => typeof g == "string" ? { value: g, label: g } : g), [a]);
|
|
594
|
+
return /* @__PURE__ */ pt(
|
|
597
595
|
"select",
|
|
598
596
|
{
|
|
599
597
|
"data-id": t,
|
|
600
598
|
"data-name": r,
|
|
601
599
|
"data-type": "SelectInputComponent",
|
|
602
|
-
value:
|
|
600
|
+
value: f ?? "",
|
|
603
601
|
style: o,
|
|
604
|
-
onChange: async (
|
|
605
|
-
const y =
|
|
602
|
+
onChange: async (g) => {
|
|
603
|
+
const y = g.target.value;
|
|
606
604
|
if (n(t, y), console.log(`Select changed: ${y}`), typeof i == "function")
|
|
607
605
|
try {
|
|
608
606
|
await i({
|
|
@@ -621,17 +619,17 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
621
619
|
}
|
|
622
620
|
},
|
|
623
621
|
children: [
|
|
624
|
-
|
|
625
|
-
|
|
622
|
+
h.length === 0 && /* @__PURE__ */ d("option", { value: "", disabled: !0, children: "Select an option..." }),
|
|
623
|
+
h.map((g) => /* @__PURE__ */ d("option", { value: g.value, children: g.label }, g.value))
|
|
626
624
|
]
|
|
627
625
|
}
|
|
628
626
|
);
|
|
629
|
-
},
|
|
627
|
+
}, St = ({
|
|
630
628
|
id: t,
|
|
631
629
|
name: r,
|
|
632
630
|
nodeData: e
|
|
633
631
|
}) => {
|
|
634
|
-
const n =
|
|
632
|
+
const n = k((s) => s.setFormInputValue), i = W(e.style, {
|
|
635
633
|
debug: !1
|
|
636
634
|
});
|
|
637
635
|
return /* @__PURE__ */ d(
|
|
@@ -647,7 +645,7 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
647
645
|
type: "text"
|
|
648
646
|
}
|
|
649
647
|
);
|
|
650
|
-
},
|
|
648
|
+
}, It = ({
|
|
651
649
|
id: t,
|
|
652
650
|
name: r,
|
|
653
651
|
nodeData: e,
|
|
@@ -664,17 +662,17 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
664
662
|
children: n
|
|
665
663
|
}
|
|
666
664
|
) });
|
|
667
|
-
},
|
|
665
|
+
}, wt = ({ id: t, name: r, nodeData: e }) => {
|
|
668
666
|
const n = W(e.style, {
|
|
669
667
|
debug: !1
|
|
670
|
-
}), i =
|
|
668
|
+
}), i = k((o) => o.assetsById), s = e.style?.positioning;
|
|
671
669
|
if (s) {
|
|
672
|
-
const o = typeof s.left == "number" && typeof s.right == "number",
|
|
670
|
+
const o = typeof s.left == "number" && typeof s.right == "number", f = typeof s.top == "number" && typeof s.bottom == "number";
|
|
673
671
|
if (o) {
|
|
674
672
|
const a = 100 - s.left - s.right;
|
|
675
673
|
n.width = `${a}%`, n.left = `${s.left}%`, delete n.right;
|
|
676
674
|
}
|
|
677
|
-
if (
|
|
675
|
+
if (f) {
|
|
678
676
|
const a = 100 - s.top - s.bottom;
|
|
679
677
|
n.height = `${a}%`, n.top = `${s.top}%`, delete n.bottom;
|
|
680
678
|
}
|
|
@@ -690,7 +688,7 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
690
688
|
alt: r
|
|
691
689
|
}
|
|
692
690
|
) });
|
|
693
|
-
},
|
|
691
|
+
}, At = ({ id: t, name: r, nodeData: e }) => {
|
|
694
692
|
const { patchedNodeData: n } = J({ id: t, nodeData: e });
|
|
695
693
|
e = n;
|
|
696
694
|
const i = e.data?.text;
|
|
@@ -701,66 +699,66 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
701
699
|
style: e.style,
|
|
702
700
|
color: e.style?.color
|
|
703
701
|
});
|
|
704
|
-
const s = e.style, o = e.fontId ? { ...s, fontId: e.fontId } : s,
|
|
702
|
+
const s = e.style, o = e.fontId ? { ...s, fontId: e.fontId } : s, f = W(o, {
|
|
705
703
|
debug: !1
|
|
706
704
|
});
|
|
707
|
-
|
|
705
|
+
f.display = "flex", f.flexDirection = "column", s.verticalPosition && (f.justifyContent = {
|
|
708
706
|
"from-top": "flex-start",
|
|
709
707
|
center: "center",
|
|
710
708
|
"from-bottom": "flex-end"
|
|
711
709
|
}[s.verticalPosition]);
|
|
712
710
|
const a = i && (i.includes(`
|
|
713
711
|
`) || i.includes("\r"));
|
|
714
|
-
let
|
|
715
|
-
return a &&
|
|
712
|
+
let h;
|
|
713
|
+
return a && f.flexDirection === "column" ? h = i.split(/\r?\n/).map((g, y) => /* @__PURE__ */ d("div", { style: { lineHeight: "inherit" }, children: g || " " }, y)) : h = i, /* @__PURE__ */ d(Q, { id: t, nodeData: e, children: /* @__PURE__ */ d(
|
|
716
714
|
"div",
|
|
717
715
|
{
|
|
718
716
|
"data-id": t,
|
|
719
717
|
"data-name": r,
|
|
720
718
|
"data-type": "TextComponent",
|
|
721
|
-
style:
|
|
722
|
-
children:
|
|
719
|
+
style: f,
|
|
720
|
+
children: h
|
|
723
721
|
}
|
|
724
722
|
) });
|
|
725
|
-
},
|
|
723
|
+
}, dt = ({
|
|
726
724
|
id: t,
|
|
727
725
|
name: r,
|
|
728
726
|
nodeData: e,
|
|
729
727
|
children: n
|
|
730
728
|
}) => {
|
|
731
|
-
const i =
|
|
729
|
+
const i = N(q), { patchedNodeData: s } = J({ id: t, nodeData: e });
|
|
732
730
|
e = s;
|
|
733
|
-
const o = Ut(e.tags),
|
|
731
|
+
const o = Ut(e.tags), f = o ? k((w) => w.inputGroups[o.groupName]) : null, a = k((w) => w.statefulSetVariants[t]), h = W(e.style, {
|
|
734
732
|
debug: !1
|
|
735
733
|
});
|
|
736
|
-
let
|
|
737
|
-
o &&
|
|
738
|
-
const
|
|
734
|
+
let I;
|
|
735
|
+
o && f !== null ? I = f === r ? "active" : "default" : I = a || e.data.initialState || "default";
|
|
736
|
+
const g = v.Children.toArray(n).find((w) => v.isValidElement(w) ? w.props?.nodeData?.data?.state === I : !1), y = v.isValidElement(g) ? v.cloneElement(g, {
|
|
739
737
|
_parentStatefulSetId: t,
|
|
740
738
|
_parentInputGroupInfo: o,
|
|
741
739
|
_parentName: r
|
|
742
740
|
// Pass the name so we can identify which element is active
|
|
743
|
-
}) :
|
|
741
|
+
}) : g, l = /* @__PURE__ */ d(
|
|
744
742
|
"div",
|
|
745
743
|
{
|
|
746
744
|
"data-id": t,
|
|
747
745
|
"data-name": r,
|
|
748
746
|
"data-type": "StatefulSetComponent",
|
|
749
|
-
style:
|
|
747
|
+
style: h,
|
|
750
748
|
children: y
|
|
751
749
|
}
|
|
752
750
|
);
|
|
753
751
|
if (e.type === "component:input-stateful-set")
|
|
754
752
|
return l;
|
|
755
|
-
const
|
|
753
|
+
const S = v.useContext(st);
|
|
756
754
|
return /* @__PURE__ */ d(
|
|
757
755
|
q.Provider,
|
|
758
756
|
{
|
|
759
757
|
value: { nodeData: i?.nodeData?.[t] || {} },
|
|
760
758
|
children: /* @__PURE__ */ d(
|
|
761
|
-
|
|
759
|
+
st.Provider,
|
|
762
760
|
{
|
|
763
|
-
value: { ...
|
|
761
|
+
value: { ...S, statefulSetId: t },
|
|
764
762
|
children: l
|
|
765
763
|
}
|
|
766
764
|
)
|
|
@@ -775,11 +773,11 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
775
773
|
_parentInputGroupInfo: s,
|
|
776
774
|
_parentName: o
|
|
777
775
|
}) => {
|
|
778
|
-
const
|
|
776
|
+
const f = W(e.style, {
|
|
779
777
|
debug: !1
|
|
780
778
|
}), a = {
|
|
781
|
-
...
|
|
782
|
-
position:
|
|
779
|
+
...f,
|
|
780
|
+
position: f.position || "relative"
|
|
783
781
|
};
|
|
784
782
|
return /* @__PURE__ */ d(
|
|
785
783
|
"div",
|
|
@@ -801,9 +799,9 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
801
799
|
)
|
|
802
800
|
}
|
|
803
801
|
);
|
|
804
|
-
},
|
|
805
|
-
|
|
806
|
-
const { dimensions: n, ref: i } =
|
|
802
|
+
}, Et = ({ id: t, name: r, children: e }) => {
|
|
803
|
+
N(H);
|
|
804
|
+
const { dimensions: n, ref: i } = it(), s = {
|
|
807
805
|
zIndex: 0,
|
|
808
806
|
flex: 1,
|
|
809
807
|
position: "absolute",
|
|
@@ -823,7 +821,7 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
823
821
|
children: e
|
|
824
822
|
}
|
|
825
823
|
) });
|
|
826
|
-
},
|
|
824
|
+
}, ut = ({
|
|
827
825
|
id: t,
|
|
828
826
|
name: r,
|
|
829
827
|
nodeData: e,
|
|
@@ -835,12 +833,12 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
835
833
|
`[DEBUG] ContainerComponent ${t} (Hero) FULL nodeData:`,
|
|
836
834
|
JSON.stringify(e, null, 2)
|
|
837
835
|
);
|
|
838
|
-
const o =
|
|
836
|
+
const o = N(q), { patchedNodeData: f, list: a, arrayData: h } = J({
|
|
839
837
|
id: t,
|
|
840
838
|
nodeData: e
|
|
841
839
|
});
|
|
842
|
-
e =
|
|
843
|
-
const { dimensions:
|
|
840
|
+
e = f;
|
|
841
|
+
const { dimensions: I, ref: g } = it(), y = W(e.style, {
|
|
844
842
|
debug: !1
|
|
845
843
|
});
|
|
846
844
|
t === "01KF5PAFET1VY5E81B68GQ9BFQ" && console.log("[DEBUG] Embed Container Render", {
|
|
@@ -850,37 +848,37 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
850
848
|
layout: e.style.layout,
|
|
851
849
|
hasPositioning: !!e.style.positioning
|
|
852
850
|
});
|
|
853
|
-
const l = !!e.style.layout?.mode,
|
|
854
|
-
if (!
|
|
855
|
-
const
|
|
851
|
+
const l = !!e.style.layout?.mode, S = e.style.layout?.mode === "HORIZONTAL" || e.style.layout?.mode === "GRID" ? "row" : "column", w = y.width !== void 0, L = y.height !== void 0, E = N(H), c = E?.isFlex ?? !1, $ = E?.flexDirection, A = c && $ === "row", O = !c && e.style.positioning, U = e.style.layout?.layoutSizingHorizontal === "FIXED" || e.style.layout?.layoutSizingVertical === "FIXED", M = e.style.layout?.layoutSizingHorizontal === "HUG" || e.style.layout?.layoutSizingVertical === "HUG";
|
|
852
|
+
if (!w && !A && !(O && (U || M)) && (y.width = "100%"), !L) {
|
|
853
|
+
const R = !c && e.style.positioning, K = e.style.layout?.layoutSizingVertical === "FILL";
|
|
856
854
|
if (!(e.style.layout?.layoutSizingVertical === "HUG")) {
|
|
857
|
-
if (!l) if (
|
|
855
|
+
if (!l) if (R && K && e.style.positioning?.top !== void 0) {
|
|
858
856
|
const tt = 100 - e.style.positioning.top;
|
|
859
857
|
y.height = `${tt}%`;
|
|
860
858
|
} else
|
|
861
859
|
y.height = "100%";
|
|
862
860
|
}
|
|
863
861
|
}
|
|
864
|
-
const
|
|
865
|
-
width: y.width -
|
|
866
|
-
height: y.height - Y -
|
|
862
|
+
const G = e.style.layout?.layoutSizingHorizontal || e.style.layout?.layoutSizingVertical, V = e.style.positioning && !l && !c && (G || !0) ? { ...y, position: "absolute" } : y.position === "absolute" ? y : { ...y, position: y.position || "relative" }, X = (R) => typeof R == "number" ? R : typeof R == "string" && R.endsWith("px") && parseFloat(R) || 0, j = X(y.paddingLeft), m = X(y.paddingRight), Y = X(y.paddingTop), Z = X(y.paddingBottom), B = U && typeof y.width == "number" && typeof y.height == "number" ? {
|
|
863
|
+
width: y.width - j - m,
|
|
864
|
+
height: y.height - Y - Z
|
|
867
865
|
} : {
|
|
868
|
-
width:
|
|
869
|
-
height:
|
|
866
|
+
width: I.width - j - m,
|
|
867
|
+
height: I.height - Y - Z
|
|
870
868
|
};
|
|
871
869
|
if (i != null && a) {
|
|
872
|
-
const
|
|
873
|
-
if (
|
|
874
|
-
const
|
|
875
|
-
nodeData:
|
|
870
|
+
const R = a[i];
|
|
871
|
+
if (R !== void 0) {
|
|
872
|
+
const K = typeof R == "object" && R !== null ? {
|
|
873
|
+
nodeData: R,
|
|
876
874
|
arrayDataById: o?.arrayDataById,
|
|
877
875
|
textOverridesById: o?.textOverridesById,
|
|
878
876
|
rootData: o?.rootData
|
|
879
|
-
} : { nodeData:
|
|
880
|
-
return /* @__PURE__ */ d(q.Provider, { value:
|
|
877
|
+
} : { nodeData: R };
|
|
878
|
+
return /* @__PURE__ */ d(q.Provider, { value: K, children: /* @__PURE__ */ d(
|
|
881
879
|
H.Provider,
|
|
882
880
|
{
|
|
883
|
-
value: { dimensions:
|
|
881
|
+
value: { dimensions: B, isFlex: l, flexDirection: S },
|
|
884
882
|
children: /* @__PURE__ */ d(
|
|
885
883
|
"div",
|
|
886
884
|
{
|
|
@@ -896,14 +894,14 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
896
894
|
}
|
|
897
895
|
}
|
|
898
896
|
if (a) {
|
|
899
|
-
const
|
|
900
|
-
return Ht(() =>
|
|
901
|
-
const tt = typeof
|
|
902
|
-
nodeData:
|
|
897
|
+
const R = h || a;
|
|
898
|
+
return Ht(() => R.map((D, ot) => {
|
|
899
|
+
const tt = typeof D == "object" && D !== null ? {
|
|
900
|
+
nodeData: D,
|
|
903
901
|
arrayDataById: o?.arrayDataById,
|
|
904
902
|
textOverridesById: o?.textOverridesById,
|
|
905
903
|
rootData: o?.rootData
|
|
906
|
-
} : { nodeData:
|
|
904
|
+
} : { nodeData: D };
|
|
907
905
|
return /* @__PURE__ */ d(
|
|
908
906
|
q.Provider,
|
|
909
907
|
{
|
|
@@ -911,7 +909,7 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
911
909
|
children: /* @__PURE__ */ d(
|
|
912
910
|
H.Provider,
|
|
913
911
|
{
|
|
914
|
-
value: { dimensions:
|
|
912
|
+
value: { dimensions: B, isFlex: l, flexDirection: S },
|
|
915
913
|
children: /* @__PURE__ */ d(
|
|
916
914
|
"div",
|
|
917
915
|
{
|
|
@@ -927,41 +925,41 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
927
925
|
},
|
|
928
926
|
`${t}:${ot}`
|
|
929
927
|
);
|
|
930
|
-
}), [
|
|
928
|
+
}), [R, t]);
|
|
931
929
|
}
|
|
932
|
-
let
|
|
933
|
-
!Array.isArray(
|
|
934
|
-
([
|
|
935
|
-
event:
|
|
936
|
-
...typeof
|
|
930
|
+
let T = e.actions || [];
|
|
931
|
+
!Array.isArray(T) && typeof T == "object" && T !== null && (T = Object.entries(T).map(
|
|
932
|
+
([R, K]) => ({
|
|
933
|
+
event: R,
|
|
934
|
+
...typeof K == "object" && K !== null ? K : {}
|
|
937
935
|
})
|
|
938
936
|
));
|
|
939
|
-
const z = Array.isArray(
|
|
937
|
+
const z = Array.isArray(T) && T.length > 0;
|
|
940
938
|
return /* @__PURE__ */ d(
|
|
941
939
|
H.Provider,
|
|
942
940
|
{
|
|
943
|
-
value: { dimensions:
|
|
941
|
+
value: { dimensions: B, isFlex: l, flexDirection: S },
|
|
944
942
|
children: /* @__PURE__ */ d(
|
|
945
943
|
"div",
|
|
946
944
|
{
|
|
947
945
|
"data-id": t,
|
|
948
946
|
"data-name": r,
|
|
949
947
|
"data-type": "ContainerComponent",
|
|
950
|
-
ref:
|
|
948
|
+
ref: g,
|
|
951
949
|
style: V,
|
|
952
950
|
children: z ? /* @__PURE__ */ d(Q, { id: t, nodeData: e, children: n }) : n
|
|
953
951
|
}
|
|
954
952
|
)
|
|
955
953
|
}
|
|
956
954
|
);
|
|
957
|
-
},
|
|
958
|
-
const { dimensions: i, ref: s } =
|
|
955
|
+
}, Tt = ut, Pt = ({ id: t, name: r, nodeData: e, children: n }) => {
|
|
956
|
+
const { dimensions: i, ref: s } = it(), o = W(e.style, {
|
|
959
957
|
debug: !1
|
|
960
|
-
}),
|
|
958
|
+
}), f = !!e.style.layout?.mode, a = e.style.layout?.mode === "HORIZONTAL" ? "row" : "column", h = o.position ? o : { ...o, position: "relative" };
|
|
961
959
|
return /* @__PURE__ */ d(
|
|
962
960
|
H.Provider,
|
|
963
961
|
{
|
|
964
|
-
value: { dimensions: i, isFlex:
|
|
962
|
+
value: { dimensions: i, isFlex: f, flexDirection: a },
|
|
965
963
|
children: /* @__PURE__ */ d(
|
|
966
964
|
"div",
|
|
967
965
|
{
|
|
@@ -969,7 +967,7 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
969
967
|
"data-name": r,
|
|
970
968
|
"data-type": "TopBarContainerComponent",
|
|
971
969
|
ref: s,
|
|
972
|
-
style:
|
|
970
|
+
style: h,
|
|
973
971
|
children: n
|
|
974
972
|
}
|
|
975
973
|
)
|
|
@@ -987,7 +985,7 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
987
985
|
children: n
|
|
988
986
|
}
|
|
989
987
|
);
|
|
990
|
-
},
|
|
988
|
+
}, Bt = ({ id: t, name: r, nodeData: e, children: n }) => /* @__PURE__ */ d(
|
|
991
989
|
"div",
|
|
992
990
|
{
|
|
993
991
|
"data-id": t,
|
|
@@ -996,7 +994,7 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
996
994
|
style: W(e.style),
|
|
997
995
|
children: n
|
|
998
996
|
}
|
|
999
|
-
),
|
|
997
|
+
), Rt = ({ id: t, name: r, nodeData: e, children: n }) => {
|
|
1000
998
|
const i = W(e.style, {
|
|
1001
999
|
debug: !1
|
|
1002
1000
|
});
|
|
@@ -1010,182 +1008,182 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
1010
1008
|
children: n
|
|
1011
1009
|
}
|
|
1012
1010
|
);
|
|
1013
|
-
},
|
|
1011
|
+
}, rt = ({ id: t, name: r, nodeData: e, children: n }) => {
|
|
1014
1012
|
t === "01KB929X1DQJN954WNGF5AH38B" && console.log(
|
|
1015
1013
|
`[DEBUG] SliderComponent ${t} FULL nodeData:`,
|
|
1016
1014
|
JSON.stringify(e, null, 2)
|
|
1017
1015
|
);
|
|
1018
|
-
const { dimensions: i, ref: s } =
|
|
1016
|
+
const { dimensions: i, ref: s } = it(), o = v.useRef(null), f = v.useRef(null), a = v.useRef(!1), h = v.useRef(null), I = N(lt), g = N(Gt), { onAction: y } = N(ft), [l, S] = v.useState({
|
|
1019
1017
|
currentIndex: void 0,
|
|
1020
1018
|
onIndexChange: void 0
|
|
1021
|
-
}), [
|
|
1022
|
-
e =
|
|
1023
|
-
const
|
|
1024
|
-
let
|
|
1025
|
-
if (!
|
|
1026
|
-
const
|
|
1027
|
-
typeof
|
|
1019
|
+
}), [w, L] = v.useState(0), E = v.useRef(null), { patchedNodeData: c } = J({ id: t, nodeData: e });
|
|
1020
|
+
e = c;
|
|
1021
|
+
const $ = e.data?.params || {}, A = $.infinite === !0, O = $.automatic === !0;
|
|
1022
|
+
let M = Array.isArray(e.tags) && e.tags.some((u) => u.includes("container:slider:vertical")) || e.name && e.name.includes("container:slider:vertical");
|
|
1023
|
+
if (!M && $.animation === "default") {
|
|
1024
|
+
const u = e.style?.width, p = e.style?.height;
|
|
1025
|
+
typeof u == "number" && typeof p == "number" && p > u && (M = !0);
|
|
1028
1026
|
}
|
|
1029
|
-
const
|
|
1027
|
+
const G = M ? "vertical" : $.animation === "default" ? "horizontal" : $.animation || "horizontal", F = W(e.style, {
|
|
1030
1028
|
debug: !1
|
|
1031
|
-
}), V =
|
|
1032
|
-
V || (
|
|
1033
|
-
const
|
|
1034
|
-
const
|
|
1035
|
-
return v.Children.forEach(n, (
|
|
1036
|
-
if (
|
|
1037
|
-
const x =
|
|
1038
|
-
if (Array.isArray(C?.tags) && (C.tags.includes("encore:data:array") || C.tags.includes("bravo:data:array")) && x.id &&
|
|
1039
|
-
const
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
v.cloneElement(
|
|
1029
|
+
}), V = F.width !== void 0, X = F.height !== void 0;
|
|
1030
|
+
V || (F.width = "100%"), X || (F.height = "100%"), F.position || (F.position = "relative");
|
|
1031
|
+
const j = N(q), m = v.useMemo(() => {
|
|
1032
|
+
const u = [];
|
|
1033
|
+
return v.Children.forEach(n, (p) => {
|
|
1034
|
+
if (p == null) return;
|
|
1035
|
+
const x = p?.props || {}, C = x.nodeData || {};
|
|
1036
|
+
if (Array.isArray(C?.tags) && (C.tags.includes("encore:data:array") || C.tags.includes("bravo:data:array")) && x.id && j) {
|
|
1037
|
+
const P = j?.arrayDataById && j.arrayDataById[x.id] && Array.isArray(j.arrayDataById[x.id]) ? j.arrayDataById[x.id] : null;
|
|
1038
|
+
P && P.length > 0 ? P.forEach((et, nt) => {
|
|
1039
|
+
u.push(
|
|
1040
|
+
v.cloneElement(p, {
|
|
1043
1041
|
key: `${x.id}:${nt}`,
|
|
1044
1042
|
// ContainerComponent will use this to know which item to render
|
|
1045
1043
|
_arrayItemIndex: nt,
|
|
1046
1044
|
_arrayItemData: et
|
|
1047
1045
|
})
|
|
1048
1046
|
);
|
|
1049
|
-
}) :
|
|
1047
|
+
}) : u.push(p);
|
|
1050
1048
|
} else
|
|
1051
|
-
|
|
1052
|
-
}),
|
|
1053
|
-
}, [n, t,
|
|
1054
|
-
if (!
|
|
1049
|
+
u.push(p);
|
|
1050
|
+
}), u;
|
|
1051
|
+
}, [n, t, j]), Y = v.useMemo(() => {
|
|
1052
|
+
if (!A || m.length === 0)
|
|
1055
1053
|
return m;
|
|
1056
|
-
const
|
|
1054
|
+
const u = m[0], p = m[m.length - 1];
|
|
1057
1055
|
return [
|
|
1058
|
-
v.cloneElement(
|
|
1059
|
-
key: `clone-last-${
|
|
1056
|
+
v.cloneElement(p, {
|
|
1057
|
+
key: `clone-last-${p.key || p.props.id}`
|
|
1060
1058
|
}),
|
|
1061
1059
|
...m,
|
|
1062
|
-
v.cloneElement(
|
|
1063
|
-
key: `clone-first-${
|
|
1060
|
+
v.cloneElement(u, {
|
|
1061
|
+
key: `clone-first-${u.key || u.props.id}`
|
|
1064
1062
|
})
|
|
1065
1063
|
];
|
|
1066
|
-
}, [m,
|
|
1064
|
+
}, [m, A]), Z = v.useMemo(() => {
|
|
1067
1065
|
if (m.length === 0) return { width: 0, height: 0 };
|
|
1068
|
-
const
|
|
1066
|
+
const p = m[0]?.props?.nodeData?.style, x = I.scaleFactor || 1;
|
|
1069
1067
|
let C = 0, b = 0;
|
|
1070
|
-
return
|
|
1071
|
-
}, [m, i.width, i.height,
|
|
1068
|
+
return p?.layout?.layoutSizingHorizontal === "FIXED" && p?.layout?.size?.x ? C = p.layout.size.x * x : C = i.width || 0, p?.layout?.layoutSizingVertical === "FIXED" && p?.layout?.size?.y ? b = p.layout.size.y * x : b = i.height || 0, { width: C, height: b };
|
|
1069
|
+
}, [m, i.width, i.height, I.scaleFactor]), B = Z.width, T = Z.height, z = G === "vertical", _ = v.useCallback(() => {
|
|
1072
1070
|
if (!o.current || m.length === 0)
|
|
1073
1071
|
return 0;
|
|
1074
|
-
const
|
|
1072
|
+
const u = o.current;
|
|
1075
1073
|
if (z) {
|
|
1076
|
-
if (
|
|
1077
|
-
const
|
|
1078
|
-
if (
|
|
1079
|
-
const C =
|
|
1080
|
-
let b = Math.round(C /
|
|
1074
|
+
if (T === 0) return 0;
|
|
1075
|
+
const p = u.scrollTop;
|
|
1076
|
+
if (A) {
|
|
1077
|
+
const C = p - T;
|
|
1078
|
+
let b = Math.round(C / T);
|
|
1081
1079
|
return b < 0 && (b = 0), b >= m.length && (b = m.length - 1), b;
|
|
1082
1080
|
} else {
|
|
1083
|
-
const x = Math.round(
|
|
1081
|
+
const x = Math.round(p / T);
|
|
1084
1082
|
return x < 0 ? 0 : x >= m.length ? m.length - 1 : x;
|
|
1085
1083
|
}
|
|
1086
1084
|
} else {
|
|
1087
|
-
if (
|
|
1088
|
-
const
|
|
1089
|
-
if (
|
|
1090
|
-
const C =
|
|
1091
|
-
let b = Math.round(C /
|
|
1085
|
+
if (B === 0) return 0;
|
|
1086
|
+
const p = u.scrollLeft;
|
|
1087
|
+
if (A) {
|
|
1088
|
+
const C = p - B;
|
|
1089
|
+
let b = Math.round(C / B);
|
|
1092
1090
|
return b < 0 && (b = 0), b >= m.length && (b = m.length - 1), b;
|
|
1093
1091
|
} else {
|
|
1094
|
-
const x = Math.round(
|
|
1092
|
+
const x = Math.round(p / B);
|
|
1095
1093
|
return x < 0 ? 0 : x >= m.length ? m.length - 1 : x;
|
|
1096
1094
|
}
|
|
1097
1095
|
}
|
|
1098
|
-
}, [
|
|
1099
|
-
(
|
|
1096
|
+
}, [A, m.length, B, T, z]), R = v.useCallback(
|
|
1097
|
+
(u, p = !0) => {
|
|
1100
1098
|
if (!o.current || m.length === 0) return;
|
|
1101
1099
|
const x = o.current;
|
|
1102
1100
|
if (z) {
|
|
1103
1101
|
let C;
|
|
1104
|
-
|
|
1102
|
+
A ? C = T + u * T : C = u * T, x.scrollTo({
|
|
1105
1103
|
top: C,
|
|
1106
|
-
behavior:
|
|
1104
|
+
behavior: p ? "smooth" : "auto"
|
|
1107
1105
|
});
|
|
1108
1106
|
} else {
|
|
1109
1107
|
let C;
|
|
1110
|
-
|
|
1108
|
+
A ? C = B + u * B : C = u * B, x.scrollTo({
|
|
1111
1109
|
left: C,
|
|
1112
|
-
behavior:
|
|
1110
|
+
behavior: p ? "smooth" : "auto"
|
|
1113
1111
|
});
|
|
1114
1112
|
}
|
|
1115
1113
|
},
|
|
1116
|
-
[
|
|
1117
|
-
),
|
|
1118
|
-
if (!
|
|
1119
|
-
const
|
|
1114
|
+
[B, T, A, m.length, z]
|
|
1115
|
+
), K = v.useCallback(() => {
|
|
1116
|
+
if (!A || !o.current || m.length === 0) return;
|
|
1117
|
+
const u = o.current, p = 1;
|
|
1120
1118
|
if (z) {
|
|
1121
|
-
if (
|
|
1122
|
-
const x =
|
|
1123
|
-
x >=
|
|
1119
|
+
if (T === 0) return;
|
|
1120
|
+
const x = u.scrollTop, C = T, b = C, P = b + m.length * C;
|
|
1121
|
+
x >= P - p ? u.scrollTop = b : x <= p && (u.scrollTop = P - C);
|
|
1124
1122
|
} else {
|
|
1125
|
-
if (
|
|
1126
|
-
const x =
|
|
1127
|
-
x >=
|
|
1123
|
+
if (B === 0) return;
|
|
1124
|
+
const x = u.scrollLeft, C = B, b = C, P = b + m.length * C;
|
|
1125
|
+
x >= P - p ? u.scrollLeft = b : x <= p && (u.scrollLeft = P - C);
|
|
1128
1126
|
}
|
|
1129
|
-
}, [
|
|
1127
|
+
}, [A, m.length, B, T, z]);
|
|
1130
1128
|
v.useEffect(() => {
|
|
1131
|
-
if (!
|
|
1132
|
-
const
|
|
1129
|
+
if (!O || m.length <= 1 || B === 0) return;
|
|
1130
|
+
const u = () => {
|
|
1133
1131
|
if (a.current || !o.current) return;
|
|
1134
|
-
const
|
|
1132
|
+
const p = o.current;
|
|
1135
1133
|
if (z) {
|
|
1136
|
-
if (
|
|
1137
|
-
const x =
|
|
1134
|
+
if (T === 0) return;
|
|
1135
|
+
const x = p.scrollTop, C = T;
|
|
1138
1136
|
let b;
|
|
1139
|
-
if (
|
|
1137
|
+
if (A) {
|
|
1140
1138
|
const nt = x - C;
|
|
1141
1139
|
b = Math.round(nt / C), b < 0 && (b = 0), b >= m.length && (b = m.length - 1);
|
|
1142
1140
|
} else
|
|
1143
1141
|
b = Math.round(x / C);
|
|
1144
|
-
let
|
|
1145
|
-
if (
|
|
1146
|
-
|
|
1142
|
+
let P = b + 1;
|
|
1143
|
+
if (A) {
|
|
1144
|
+
P >= m.length && (P = 0);
|
|
1147
1145
|
const et = C;
|
|
1148
|
-
|
|
1149
|
-
top: et +
|
|
1146
|
+
p.scrollTo({
|
|
1147
|
+
top: et + P * C,
|
|
1150
1148
|
behavior: "smooth"
|
|
1151
1149
|
});
|
|
1152
1150
|
} else
|
|
1153
|
-
|
|
1151
|
+
P >= m.length && (P = 0), R(P);
|
|
1154
1152
|
} else {
|
|
1155
|
-
if (
|
|
1156
|
-
const x =
|
|
1153
|
+
if (B === 0) return;
|
|
1154
|
+
const x = p.scrollLeft, C = B;
|
|
1157
1155
|
let b;
|
|
1158
|
-
if (
|
|
1156
|
+
if (A) {
|
|
1159
1157
|
const nt = x - C;
|
|
1160
1158
|
b = Math.round(nt / C), b < 0 && (b = 0), b >= m.length && (b = m.length - 1);
|
|
1161
1159
|
} else
|
|
1162
1160
|
b = Math.round(x / C);
|
|
1163
|
-
let
|
|
1164
|
-
if (
|
|
1165
|
-
|
|
1161
|
+
let P = b + 1;
|
|
1162
|
+
if (A) {
|
|
1163
|
+
P >= m.length && (P = 0);
|
|
1166
1164
|
const et = C;
|
|
1167
|
-
|
|
1168
|
-
left: et +
|
|
1165
|
+
p.scrollTo({
|
|
1166
|
+
left: et + P * C,
|
|
1169
1167
|
behavior: "smooth"
|
|
1170
1168
|
});
|
|
1171
1169
|
} else
|
|
1172
|
-
|
|
1170
|
+
P >= m.length && (P = 0), R(P);
|
|
1173
1171
|
}
|
|
1174
1172
|
};
|
|
1175
|
-
return
|
|
1176
|
-
|
|
1173
|
+
return f.current = setInterval(u, 4e3), () => {
|
|
1174
|
+
f.current && (clearInterval(f.current), f.current = null);
|
|
1177
1175
|
};
|
|
1178
1176
|
}, [
|
|
1179
|
-
|
|
1177
|
+
O,
|
|
1180
1178
|
m.length,
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1179
|
+
A,
|
|
1180
|
+
B,
|
|
1181
|
+
T,
|
|
1184
1182
|
z,
|
|
1185
|
-
|
|
1183
|
+
R
|
|
1186
1184
|
]);
|
|
1187
|
-
const
|
|
1188
|
-
a.current = !0,
|
|
1185
|
+
const D = v.useCallback(() => {
|
|
1186
|
+
a.current = !0, h.current && clearTimeout(h.current), h.current = setTimeout(() => {
|
|
1189
1187
|
a.current = !1;
|
|
1190
1188
|
}, 3e3);
|
|
1191
1189
|
}, []), ot = v.useRef(l);
|
|
@@ -1193,11 +1191,11 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
1193
1191
|
ot.current = l;
|
|
1194
1192
|
}, [l]);
|
|
1195
1193
|
const tt = v.useCallback(
|
|
1196
|
-
(
|
|
1197
|
-
if (
|
|
1198
|
-
|
|
1199
|
-
const
|
|
1200
|
-
if (
|
|
1194
|
+
(u) => {
|
|
1195
|
+
if (E.current === u) return;
|
|
1196
|
+
E.current = u;
|
|
1197
|
+
const p = ot.current;
|
|
1198
|
+
if (p.currentIndex === void 0 && L(u), p.onIndexChange && p.onIndexChange(u), typeof y == "function")
|
|
1201
1199
|
try {
|
|
1202
1200
|
y({
|
|
1203
1201
|
bravo: {
|
|
@@ -1205,7 +1203,7 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
1205
1203
|
},
|
|
1206
1204
|
action: {
|
|
1207
1205
|
action: "index-change",
|
|
1208
|
-
params: { index:
|
|
1206
|
+
params: { index: u }
|
|
1209
1207
|
},
|
|
1210
1208
|
componentId: t
|
|
1211
1209
|
}
|
|
@@ -1217,73 +1215,73 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
1217
1215
|
// Depend on onAction to ensure we call the latest version
|
|
1218
1216
|
);
|
|
1219
1217
|
v.useEffect(() => {
|
|
1220
|
-
const
|
|
1221
|
-
if (!
|
|
1222
|
-
let
|
|
1218
|
+
const u = o.current;
|
|
1219
|
+
if (!u) return;
|
|
1220
|
+
let p = null;
|
|
1223
1221
|
const x = () => {
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
const
|
|
1227
|
-
tt(
|
|
1228
|
-
})) : (
|
|
1229
|
-
const
|
|
1230
|
-
tt(
|
|
1222
|
+
D(), A ? (p !== null && cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
1223
|
+
K();
|
|
1224
|
+
const P = _();
|
|
1225
|
+
tt(P);
|
|
1226
|
+
})) : (p !== null && cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
1227
|
+
const P = _();
|
|
1228
|
+
tt(P);
|
|
1231
1229
|
}));
|
|
1232
|
-
}, C = () =>
|
|
1233
|
-
return
|
|
1230
|
+
}, C = () => D(), b = () => D();
|
|
1231
|
+
return u.addEventListener("scroll", x, { passive: !0 }), u.addEventListener("touchstart", C, {
|
|
1234
1232
|
passive: !0
|
|
1235
|
-
}),
|
|
1236
|
-
|
|
1233
|
+
}), u.addEventListener("mousedown", b), () => {
|
|
1234
|
+
u.removeEventListener("scroll", x), u.removeEventListener("touchstart", C), u.removeEventListener("mousedown", b), h.current && clearTimeout(h.current), p !== null && cancelAnimationFrame(p);
|
|
1237
1235
|
};
|
|
1238
1236
|
}, [
|
|
1239
|
-
|
|
1237
|
+
A,
|
|
1238
|
+
D,
|
|
1240
1239
|
K,
|
|
1241
|
-
Z,
|
|
1242
1240
|
_,
|
|
1243
1241
|
tt
|
|
1244
1242
|
]), v.useEffect(() => {
|
|
1245
|
-
if (
|
|
1246
|
-
const
|
|
1247
|
-
|
|
1243
|
+
if (g) {
|
|
1244
|
+
const u = g.getControlProps(t);
|
|
1245
|
+
u && u !== l && S(u);
|
|
1248
1246
|
}
|
|
1249
|
-
}, [t,
|
|
1250
|
-
if (l.currentIndex !== void 0 && o.current && m.length > 0 &&
|
|
1251
|
-
const
|
|
1247
|
+
}, [t, g, l]), v.useEffect(() => {
|
|
1248
|
+
if (l.currentIndex !== void 0 && o.current && m.length > 0 && B > 0) {
|
|
1249
|
+
const u = Math.max(
|
|
1252
1250
|
0,
|
|
1253
1251
|
Math.min(l.currentIndex, m.length - 1)
|
|
1254
|
-
),
|
|
1255
|
-
|
|
1252
|
+
), p = _();
|
|
1253
|
+
u !== p && R(u, !0);
|
|
1256
1254
|
}
|
|
1257
1255
|
}, [
|
|
1258
1256
|
l.currentIndex,
|
|
1259
1257
|
m.length,
|
|
1260
1258
|
m.length,
|
|
1261
|
-
|
|
1262
|
-
|
|
1259
|
+
B,
|
|
1260
|
+
T,
|
|
1263
1261
|
z,
|
|
1264
|
-
|
|
1262
|
+
R,
|
|
1265
1263
|
_
|
|
1266
1264
|
]), v.useEffect(() => {
|
|
1267
|
-
if (
|
|
1268
|
-
const
|
|
1265
|
+
if (A && o.current && m.length > 0 && m.length > 0 && (z ? T > 0 : B > 0)) {
|
|
1266
|
+
const u = z ? T : B;
|
|
1269
1267
|
setTimeout(() => {
|
|
1270
|
-
o.current && (z ? o.current.scrollTop =
|
|
1268
|
+
o.current && (z ? o.current.scrollTop = u : o.current.scrollLeft = u);
|
|
1271
1269
|
}, 0);
|
|
1272
1270
|
}
|
|
1273
|
-
}, [
|
|
1274
|
-
if (!
|
|
1275
|
-
const { registerContainer:
|
|
1271
|
+
}, [A, m.length, B, T, z]), v.useEffect(() => {
|
|
1272
|
+
if (!g) return;
|
|
1273
|
+
const { registerContainer: u, unregisterContainer: p } = g;
|
|
1276
1274
|
return () => {
|
|
1277
1275
|
};
|
|
1278
1276
|
}, [
|
|
1279
1277
|
t,
|
|
1280
|
-
|
|
1281
|
-
|
|
1278
|
+
g?.registerContainer,
|
|
1279
|
+
g?.unregisterContainer,
|
|
1282
1280
|
// controlProps, // REMOVED to break infinite loop
|
|
1283
|
-
|
|
1281
|
+
R,
|
|
1284
1282
|
_
|
|
1285
1283
|
]);
|
|
1286
|
-
const
|
|
1284
|
+
const $t = {
|
|
1287
1285
|
display: "flex",
|
|
1288
1286
|
flexDirection: z ? "column" : "row",
|
|
1289
1287
|
overflowX: z ? "hidden" : "auto",
|
|
@@ -1294,11 +1292,11 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
1294
1292
|
height: "100%",
|
|
1295
1293
|
WebkitOverflowScrolling: "touch"
|
|
1296
1294
|
// Smooth scrolling on iOS
|
|
1297
|
-
},
|
|
1295
|
+
}, zt = {
|
|
1298
1296
|
flexShrink: 0,
|
|
1299
1297
|
scrollSnapAlign: "start",
|
|
1300
|
-
width:
|
|
1301
|
-
height:
|
|
1298
|
+
width: Z.width > 0 ? Z.width : void 0,
|
|
1299
|
+
height: Z.height > 0 ? Z.height : void 0,
|
|
1302
1300
|
position: "relative"
|
|
1303
1301
|
};
|
|
1304
1302
|
return /* @__PURE__ */ d(
|
|
@@ -1308,51 +1306,51 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
1308
1306
|
"data-name": r,
|
|
1309
1307
|
"data-type": "SliderComponent",
|
|
1310
1308
|
ref: s,
|
|
1311
|
-
style:
|
|
1312
|
-
children: /* @__PURE__ */ d("div", { ref: o, style:
|
|
1309
|
+
style: F,
|
|
1310
|
+
children: /* @__PURE__ */ d("div", { ref: o, style: $t, children: Y.map((u, p) => /* @__PURE__ */ d(
|
|
1313
1311
|
H.Provider,
|
|
1314
1312
|
{
|
|
1315
1313
|
value: {
|
|
1316
1314
|
dimensions: {
|
|
1317
|
-
width:
|
|
1318
|
-
height:
|
|
1315
|
+
width: Z.width,
|
|
1316
|
+
height: Z.height
|
|
1319
1317
|
},
|
|
1320
1318
|
isFlex: !1
|
|
1321
1319
|
},
|
|
1322
|
-
children: /* @__PURE__ */ d("div", { style:
|
|
1320
|
+
children: /* @__PURE__ */ d("div", { style: zt, children: u })
|
|
1323
1321
|
},
|
|
1324
|
-
|
|
1322
|
+
u.key || `slide-${p}`
|
|
1325
1323
|
)) })
|
|
1326
1324
|
}
|
|
1327
1325
|
);
|
|
1328
|
-
},
|
|
1326
|
+
}, kt = (t, r) => {
|
|
1329
1327
|
const e = Array.isArray(t) ? t : [t];
|
|
1330
1328
|
for (const n of e)
|
|
1331
1329
|
if (!(!n || !n.props)) {
|
|
1332
1330
|
if (n.props.id === r)
|
|
1333
1331
|
return n;
|
|
1334
1332
|
if (n.props.children) {
|
|
1335
|
-
const i =
|
|
1333
|
+
const i = kt(n.props.children, r);
|
|
1336
1334
|
if (i) return i;
|
|
1337
1335
|
}
|
|
1338
1336
|
}
|
|
1339
1337
|
return null;
|
|
1340
|
-
},
|
|
1341
|
-
const { dimensions: i, ref: s } =
|
|
1338
|
+
}, Lt = ({ id: t, name: r, nodeData: e, children: n }) => {
|
|
1339
|
+
const { dimensions: i, ref: s } = it(), { componentId: o } = N(st), f = N(H), a = e.style.originalSize?.[0] || 375;
|
|
1342
1340
|
e.style.originalSize?.[1];
|
|
1343
|
-
const
|
|
1341
|
+
const h = f?.dimensions?.width, I = f?.dimensions?.height, g = window.innerWidth, y = h && h > 0 && h < g * 0.8;
|
|
1344
1342
|
let l;
|
|
1345
|
-
i.width > 0 && i.height > 0 ? (l = i.width, i.height) : y &&
|
|
1346
|
-
const
|
|
1347
|
-
let
|
|
1348
|
-
if (
|
|
1349
|
-
const
|
|
1350
|
-
|
|
1343
|
+
i.width > 0 && i.height > 0 ? (l = i.width, i.height) : y && h && I || h && I && h > 0 && I > 0 ? l = h : l = g;
|
|
1344
|
+
const S = a < 768;
|
|
1345
|
+
let w = l, L = "100%";
|
|
1346
|
+
if (S && l > a * 1.5) {
|
|
1347
|
+
const F = Math.round(a * 1.5);
|
|
1348
|
+
w = F, L = F;
|
|
1351
1349
|
}
|
|
1352
|
-
const
|
|
1350
|
+
const c = { scaleFactor: w / a || 1 };
|
|
1353
1351
|
if (o) {
|
|
1354
|
-
const
|
|
1355
|
-
return
|
|
1352
|
+
const F = kt(n, o);
|
|
1353
|
+
return F ? /* @__PURE__ */ d(lt.Provider, { value: c, children: /* @__PURE__ */ d(
|
|
1356
1354
|
H.Provider,
|
|
1357
1355
|
{
|
|
1358
1356
|
value: {
|
|
@@ -1361,48 +1359,48 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
1361
1359
|
height: "100%"
|
|
1362
1360
|
}
|
|
1363
1361
|
},
|
|
1364
|
-
children:
|
|
1362
|
+
children: F
|
|
1365
1363
|
}
|
|
1366
1364
|
) }) : (console.warn(`Child with id "${o}" not found`), null);
|
|
1367
1365
|
}
|
|
1368
|
-
const
|
|
1369
|
-
(
|
|
1370
|
-
const
|
|
1371
|
-
return
|
|
1366
|
+
const $ = Array.isArray(n) ? n : [n], { scrollableChildren: A, nonScrollableChildren: O } = $.reduce(
|
|
1367
|
+
(F, V) => {
|
|
1368
|
+
const j = V.props.nodeData.type === "container:top-bar" ? "nonScrollableChildren" : "scrollableChildren";
|
|
1369
|
+
return F[j].push(V), F;
|
|
1372
1370
|
},
|
|
1373
1371
|
{
|
|
1374
1372
|
scrollableChildren: [],
|
|
1375
1373
|
nonScrollableChildren: []
|
|
1376
1374
|
}
|
|
1377
1375
|
);
|
|
1378
|
-
let
|
|
1379
|
-
if (!
|
|
1380
|
-
const
|
|
1381
|
-
let V = 0,
|
|
1382
|
-
|
|
1376
|
+
let U = e.style?.layout?.mode;
|
|
1377
|
+
if (!U && t === "01KASW494V02Y8P5JVWV5XK62X" && (console.log("🔧 PATCHING missing layout for page", t), U = "HORIZONTAL"), !U && n) {
|
|
1378
|
+
const F = Array.isArray(n) ? n : [n];
|
|
1379
|
+
let V = 0, X = 0;
|
|
1380
|
+
F.forEach((m) => {
|
|
1383
1381
|
const Y = m?.props?.nodeData?.style?.width;
|
|
1384
|
-
Y && (V += Y, Y < 99 &&
|
|
1385
|
-
}),
|
|
1386
|
-
`[PATCH] Detected HORIZONTAL WRAP layout for page ${t} (Partial width children: ${
|
|
1387
|
-
),
|
|
1382
|
+
Y && (V += Y, Y < 99 && X++);
|
|
1383
|
+
}), X > 0 && V >= 99 && (console.log(
|
|
1384
|
+
`[PATCH] Detected HORIZONTAL WRAP layout for page ${t} (Partial width children: ${X}, Total width: ${V})`
|
|
1385
|
+
), U = "HORIZONTAL", e.style || (e.style = {}), e.style.layout || (e.style.layout = {}), e.style.layout.mode = "HORIZONTAL", e.style.layout.flexWrap = "wrap", e.style.layout.primaryAxisAlignItems = "flex-start", e.style.layout.counterAxisAlignItems = "flex-start");
|
|
1388
1386
|
}
|
|
1389
|
-
const
|
|
1390
|
-
(
|
|
1387
|
+
const M = U === "HORIZONTAL" ? "row" : "column", G = O.some(
|
|
1388
|
+
(F) => F?.props?.nodeData?.type !== "container:background"
|
|
1391
1389
|
);
|
|
1392
|
-
return /* @__PURE__ */ d(
|
|
1390
|
+
return /* @__PURE__ */ d(lt.Provider, { value: c, children: /* @__PURE__ */ pt(
|
|
1393
1391
|
"div",
|
|
1394
1392
|
{
|
|
1395
1393
|
style: {
|
|
1396
1394
|
width: "100%",
|
|
1397
1395
|
height: "100%",
|
|
1398
|
-
maxWidth: typeof
|
|
1399
|
-
margin:
|
|
1396
|
+
maxWidth: typeof L == "number" ? `${L}px` : L,
|
|
1397
|
+
margin: S ? "0 auto" : 0,
|
|
1400
1398
|
position: "relative",
|
|
1401
1399
|
overflow: "hidden",
|
|
1402
1400
|
// Only use flex if we have non-background nonScrollableChildren (like top-bar)
|
|
1403
|
-
...
|
|
1401
|
+
...G ? {
|
|
1404
1402
|
display: "flex",
|
|
1405
|
-
flexDirection:
|
|
1403
|
+
flexDirection: M,
|
|
1406
1404
|
gap: 0,
|
|
1407
1405
|
rowGap: 0,
|
|
1408
1406
|
columnGap: 0
|
|
@@ -1410,9 +1408,9 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
1410
1408
|
},
|
|
1411
1409
|
ref: s,
|
|
1412
1410
|
children: [
|
|
1413
|
-
|
|
1414
|
-
(
|
|
1415
|
-
).map((
|
|
1411
|
+
O.filter(
|
|
1412
|
+
(F) => F?.props?.nodeData?.type === "container:background"
|
|
1413
|
+
).map((F, V) => /* @__PURE__ */ d(
|
|
1416
1414
|
H.Provider,
|
|
1417
1415
|
{
|
|
1418
1416
|
value: {
|
|
@@ -1421,13 +1419,13 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
1421
1419
|
height: i.height
|
|
1422
1420
|
}
|
|
1423
1421
|
},
|
|
1424
|
-
children:
|
|
1422
|
+
children: F
|
|
1425
1423
|
},
|
|
1426
1424
|
`bg-${V}`
|
|
1427
1425
|
)),
|
|
1428
|
-
|
|
1429
|
-
(
|
|
1430
|
-
).map((
|
|
1426
|
+
G && O.filter(
|
|
1427
|
+
(F) => F?.props?.nodeData?.type !== "container:background"
|
|
1428
|
+
).map((F, V) => /* @__PURE__ */ d(
|
|
1431
1429
|
H.Provider,
|
|
1432
1430
|
{
|
|
1433
1431
|
value: {
|
|
@@ -1436,7 +1434,7 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
1436
1434
|
height: i.height
|
|
1437
1435
|
}
|
|
1438
1436
|
},
|
|
1439
|
-
children:
|
|
1437
|
+
children: F
|
|
1440
1438
|
},
|
|
1441
1439
|
`non-scroll-${V}`
|
|
1442
1440
|
)),
|
|
@@ -1448,32 +1446,32 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
1448
1446
|
"data-type": "PageComponent",
|
|
1449
1447
|
style: {
|
|
1450
1448
|
position: "relative",
|
|
1451
|
-
...
|
|
1449
|
+
...G ? {
|
|
1452
1450
|
flex: 1,
|
|
1453
|
-
...
|
|
1451
|
+
...M === "row" ? { alignSelf: "stretch" } : {}
|
|
1454
1452
|
// Removed height: "100%" to allow HUG containers to size based on content
|
|
1455
1453
|
} : {
|
|
1456
1454
|
width: "100%"
|
|
1457
1455
|
// Removed height: "100%" to allow HUG containers to size based on content
|
|
1458
1456
|
},
|
|
1459
1457
|
// Remove overflow: auto in horizontal mode as it causes height collapse
|
|
1460
|
-
...
|
|
1458
|
+
...M === "column" && { overflow: "auto" },
|
|
1461
1459
|
...W(e.style, {
|
|
1462
1460
|
debug: !1
|
|
1463
1461
|
})
|
|
1464
1462
|
},
|
|
1465
|
-
children:
|
|
1463
|
+
children: A
|
|
1466
1464
|
}
|
|
1467
1465
|
) })
|
|
1468
1466
|
]
|
|
1469
1467
|
}
|
|
1470
1468
|
) });
|
|
1471
|
-
},
|
|
1469
|
+
}, Wt = ({
|
|
1472
1470
|
id: t,
|
|
1473
1471
|
nodeData: r,
|
|
1474
1472
|
children: e
|
|
1475
1473
|
}) => {
|
|
1476
|
-
const i =
|
|
1474
|
+
const i = N(q)?.embedsById?.[t], s = W(r.style, { debug: !1 });
|
|
1477
1475
|
return i ? /* @__PURE__ */ d(
|
|
1478
1476
|
"div",
|
|
1479
1477
|
{
|
|
@@ -1491,61 +1489,61 @@ const ct = v.createContext({}), H = v.createContext(
|
|
|
1491
1489
|
}
|
|
1492
1490
|
) : /* @__PURE__ */ d("div", { style: s, "data-type": "EmbedComponent-Empty", "data-id": t, children: e });
|
|
1493
1491
|
}, ee = {
|
|
1494
|
-
EmbedComponent:
|
|
1495
|
-
WebViewComponent:
|
|
1496
|
-
ColorComponent:
|
|
1497
|
-
GradientComponent:
|
|
1498
|
-
ImageComponent:
|
|
1499
|
-
EmailInputComponent:
|
|
1500
|
-
HiddenInputComponent:
|
|
1501
|
-
ImageInputComponent:
|
|
1502
|
-
PasswordInputComponent:
|
|
1503
|
-
SelectInputComponent:
|
|
1504
|
-
TextInputComponent:
|
|
1505
|
-
LottieComponent:
|
|
1506
|
-
SvgComponent:
|
|
1507
|
-
TextComponent:
|
|
1508
|
-
StatefulSetComponent:
|
|
1492
|
+
EmbedComponent: Wt,
|
|
1493
|
+
WebViewComponent: ct,
|
|
1494
|
+
ColorComponent: ht,
|
|
1495
|
+
GradientComponent: gt,
|
|
1496
|
+
ImageComponent: mt,
|
|
1497
|
+
EmailInputComponent: yt,
|
|
1498
|
+
HiddenInputComponent: bt,
|
|
1499
|
+
ImageInputComponent: Ct,
|
|
1500
|
+
PasswordInputComponent: vt,
|
|
1501
|
+
SelectInputComponent: xt,
|
|
1502
|
+
TextInputComponent: St,
|
|
1503
|
+
LottieComponent: It,
|
|
1504
|
+
SvgComponent: wt,
|
|
1505
|
+
TextComponent: At,
|
|
1506
|
+
StatefulSetComponent: dt,
|
|
1509
1507
|
StatefulCompoundComponent: Ft,
|
|
1510
|
-
BackgroundContainerComponent:
|
|
1511
|
-
ContainerComponent:
|
|
1512
|
-
CompoundComponent:
|
|
1513
|
-
TopBarContainerComponent:
|
|
1508
|
+
BackgroundContainerComponent: Et,
|
|
1509
|
+
ContainerComponent: ut,
|
|
1510
|
+
CompoundComponent: Tt,
|
|
1511
|
+
TopBarContainerComponent: Pt,
|
|
1514
1512
|
DefaultLayerComponent: Zt,
|
|
1515
|
-
TabsMenuComponent:
|
|
1516
|
-
MenuSideComponent:
|
|
1517
|
-
SliderComponent:
|
|
1518
|
-
PageComponent:
|
|
1513
|
+
TabsMenuComponent: Bt,
|
|
1514
|
+
MenuSideComponent: Rt,
|
|
1515
|
+
SliderComponent: rt,
|
|
1516
|
+
PageComponent: Lt,
|
|
1519
1517
|
// Type string mappings for dynamically loaded components
|
|
1520
|
-
"menu:side":
|
|
1521
|
-
"page:default":
|
|
1522
|
-
"container:background":
|
|
1523
|
-
"container:default":
|
|
1524
|
-
"container:top-bar":
|
|
1525
|
-
"container:slider":
|
|
1526
|
-
"component:text":
|
|
1527
|
-
"component:color":
|
|
1528
|
-
"component:gradient":
|
|
1529
|
-
"component:image":
|
|
1530
|
-
"component:svg":
|
|
1531
|
-
"component:compound":
|
|
1532
|
-
"component:input-stateful-set":
|
|
1533
|
-
"component:stateful-set":
|
|
1518
|
+
"menu:side": Rt,
|
|
1519
|
+
"page:default": Lt,
|
|
1520
|
+
"container:background": Et,
|
|
1521
|
+
"container:default": ut,
|
|
1522
|
+
"container:top-bar": Pt,
|
|
1523
|
+
"container:slider": rt,
|
|
1524
|
+
"component:text": At,
|
|
1525
|
+
"component:color": ht,
|
|
1526
|
+
"component:gradient": gt,
|
|
1527
|
+
"component:image": mt,
|
|
1528
|
+
"component:svg": wt,
|
|
1529
|
+
"component:compound": Tt,
|
|
1530
|
+
"component:input-stateful-set": dt,
|
|
1531
|
+
"component:stateful-set": dt,
|
|
1534
1532
|
"component:stateful-compound": Ft,
|
|
1535
|
-
"component:slider":
|
|
1536
|
-
"component:webview":
|
|
1537
|
-
"component:web-view":
|
|
1533
|
+
"component:slider": rt,
|
|
1534
|
+
"component:webview": ct,
|
|
1535
|
+
"component:web-view": ct,
|
|
1538
1536
|
"component:video": Xt,
|
|
1539
|
-
"component:lottie":
|
|
1540
|
-
"component:email-input":
|
|
1541
|
-
"component:text-input":
|
|
1542
|
-
"component:password-input":
|
|
1543
|
-
"component:select-input":
|
|
1544
|
-
"component:image-input":
|
|
1545
|
-
"component:hidden-input":
|
|
1546
|
-
"component:tabs-menu":
|
|
1547
|
-
"component:embed":
|
|
1548
|
-
ContainerSliderComponent:
|
|
1537
|
+
"component:lottie": It,
|
|
1538
|
+
"component:email-input": yt,
|
|
1539
|
+
"component:text-input": St,
|
|
1540
|
+
"component:password-input": vt,
|
|
1541
|
+
"component:select-input": xt,
|
|
1542
|
+
"component:image-input": Ct,
|
|
1543
|
+
"component:hidden-input": bt,
|
|
1544
|
+
"component:tabs-menu": Bt,
|
|
1545
|
+
"component:embed": Wt,
|
|
1546
|
+
ContainerSliderComponent: rt
|
|
1549
1547
|
};
|
|
1550
1548
|
export {
|
|
1551
1549
|
ee as default
|